").append(e).html())):n?Nr.clone.call(e):e,a)for(var s in a)r.data("$"+s+"Controller",a[s].instance);return q.$$addScopeInfo(r,t),n&&n(r,t),l&&l(t,r,r,i),r}}function _(t,e,n,r,i,o){function a(t,n,r,i){var o,a,s,u,c,l,p;if(f)for(p=Array(n.length),u=0;u
u;)a=p[h[u++]],n=h[u++],o=h[u++],n?(n.scope?(s=t.$new(),q.$$addScopeInfo(zn(a),s)):s=t,l=n.transcludeOnThisElement?B(t,n.transclude,i):!n.templateOnThisElement&&i?i:!i&&e?B(t,e):null,n(o,s,a,r,l)):o&&o(t,a.childNodes,void 0,i)}for(var s,u,c,l,f,h=[],p=0;ph;h++){var d=!1,m=!1;s=f[h],o=s.name,u=ur(s.value),s=Kt(o),(c=Ct.test(s))&&(o=o.replace(Kr,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})),(s=s.match(Et))&&tt(s[1])&&(d=o,m=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),s=Kt(o.toLowerCase()),a[s]=o,!c&&n.hasOwnProperty(s)||(n[s]=u,Nt(t,s)&&(n[s]=!0)),lt(t,e,u,s,c),X(e,s,"A",r,i,d,m)}if(t=t.className,g(t)&&(t=t.animVal),b(t)&&""!==t)for(;o=$.exec(t);)s=Kt(o[2]),X(e,s,"C",r,i)&&(n[s]=ur(o[3])),t=t.substr(o.index+o[0].length);break;case mr:if(11===Hn)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===mr;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);st(e,t.nodeValue);break;case 8:try{(o=l.exec(t.nodeValue))&&(s=Kt(o[1]),X(e,s,"M",r,i)&&(n[s]=ur(o[2])))}catch(v){}}return e.sort(it),e}function z(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Zr("uterdir",e,n);1==t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return zn(r)}function W(t,e,n){return function(r,i,o,a,s){return i=z(i[0],e,n),t(r,i,o,a,s)}}function G(t,e,n,r,i,o){var a;return t?q(e,n,r,i,o):function(){return a||(a=q(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function Z(t,e,n,i,a,s,c,l,f){function h(t,e,n,r){t&&(n&&(t=W(t,n,r)),t.require=d.require,t.directiveName=$,(E===d||d.$$isolateScope)&&(t=ht(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=W(e,n,r)),e.require=d.require,e.directiveName=$,(E===d||d.$$isolateScope)&&(e=ht(e,{isolateScope:!0})),l.push(e))}function p(t,i,a,s,f){function h(t,e,n,r){var i;if(A(t)||(r=n,n=e,e=t,t=void 0),V&&(i=b),n||(n=V?O.parent():O),!r)return f(t,e,i,n,T);var o=f.$$slots[r];if(o)return o(t,e,i,n,T);if(m(o))throw Zr("noslot",r,L(O))}var p,d,$,v,y,b,w,O;e===a?(s=n,O=n.$$element):(O=zn(a),s=new R(O,n)),y=i,E?v=i.$new(!0):x&&(y=i.$parent),f&&(w=h,w.$$boundTransclude=f,w.isSlotFilled=function(t){return!!f.$$slots[t]}),C&&(b=K(O,s,w,C,v,i,E)),E&&(q.$$addScopeInfo(O,v,!0,!(k&&(k===E||k===E.$$originalDirective))),q.$$addScopeClass(O,!0),v.$$isolateBindings=E.$$isolateBindings,d=mt(i,s,v,v.$$isolateBindings,E),d.removeWatches&&v.$on("$destroy",d.removeWatches));for(p in b){d=C[p],$=b[p];var M=d.$$bindings.bindToController;$.bindingInfo=$.identifier&&M?mt(y,s,$.instance,M,d):{};var N=$();N!==$.instance&&($.instance=N,O.data("$"+d.name+"Controller",N),$.bindingInfo.removeWatches&&$.bindingInfo.removeWatches(),$.bindingInfo=mt(y,s,$.instance,M,d))}for(r(C,function(t,e){var n=t.require;t.bindToController&&!ar(n)&&g(n)&&u(b[e].instance,J(e,n,O,b))}),r(b,function(t){var e=t.instance;if(S(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(n){o(n)}if(S(e.$onInit))try{e.$onInit()}catch(r){o(r)}S(e.$onDestroy)&&y.$on("$destroy",function(){e.$onDestroy()})}),p=0,d=c.length;d>p;p++)$=c[p],dt($,$.isolateScope?v:i,O,s,$.require&&J($.directiveName,$.require,O,b),w);var T=i;for(E&&(E.template||null===E.templateUrl)&&(T=v),t&&t(T,a.childNodes,void 0,f),p=l.length-1;p>=0;p--)$=l[p],dt($,$.isolateScope?v:i,O,s,$.require&&J($.directiveName,$.require,O,b),w);r(b,function(t){t=t.instance,S(t.$postLink)&&t.$postLink()})}f=f||{};for(var d,$,v,y,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,C=f.controllerDirectives,E=f.newIsolateScopeDirective,k=f.templateDirective,O=f.nonTlbTranscludeDirective,M=!1,N=!1,V=f.hasElementTranscludeDirective,j=n.$$element=zn(e),I=i,D=!1,F=!1,U=0,_=t.length;_>U;U++){d=t[U];var B=d.$$start,Z=d.$$end;if(B&&(j=z(e,B,Z)),v=void 0,w>d.priority)break;if((b=d.scope)&&(d.templateUrl||(g(b)?(ot("new/isolated scope",E||x,d,j),E=d):ot("new/isolated scope",E,d,j)),x=x||d),$=d.name,!D&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(b=U+1;D=t[b++];)if(D.transclude&&!D.$$tlb||D.replace&&(D.templateUrl||D.template)){
F=!0;break}D=!0}if(!d.templateUrl&&d.controller&&(b=d.controller,C=C||at(),ot("'"+$+"' controller",C[$],d,j),C[$]=d),b=d.transclude)if(M=!0,d.$$tlb||(ot("transclusion",O,d,j),O=d),"element"==b)V=!0,w=d.priority,v=j,j=n.$$element=zn(q.$$createComment($,n[$])),e=j[0],ft(a,Xn.call(v,0),e),v[0].$$parentNode=v[0].parentNode,I=G(F,v,i,w,s&&s.name,{nonTlbTranscludeDirective:O});else{var X=at();if(v=zn($t(e)).contents(),g(b)){v=[];var Q=at(),tt=at();r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,Q[t]=e,X[e]=null,tt[e]=n}),r(j.contents(),function(t){var e=Q[Kt(T(t))];e?(tt[e]=!0,X[e]=X[e]||[],X[e].push(t)):v.push(t)}),r(tt,function(t,e){if(!t)throw Zr("reqslot",e)});for(var et in X)X[et]&&(X[et]=G(F,X[et],i))}j.empty(),I=G(F,v,i,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope}),I.$$slots=X}if(d.template)if(N=!0,ot("template",k,d,j),k=d,b=S(d.template)?d.template(j,n):d.template,b=St(b),d.replace){if(s=d,v=Er.test(b)?Xt(ut(d.templateNamespace,ur(b))):[],e=v[0],1!=v.length||1!==e.nodeType)throw Zr("tplrt",$,"");ft(a,j,e),_={$attr:{}},b=H(e,[],_);var it=t.splice(U+1,t.length-(U+1));(E||x)&&Y(b,E,x),t=t.concat(b).concat(it),nt(n,_),_=t.length}else j.html(b);if(d.templateUrl)N=!0,ot("template",k,d,j),k=d,d.replace&&(s=d),p=rt(t.splice(U,t.length-U),j,n,a,M&&I,c,l,{controllerDirectives:C,newScopeDirective:x!==d&&x,newIsolateScopeDirective:E,templateDirective:k,nonTlbTranscludeDirective:O}),_=t.length;else if(d.compile)try{y=d.compile(j,n,I);var st=d.$$originalDirective||d;S(y)?h(null,P(st,y),B,Z):y&&h(P(st,y.pre),P(st,y.post),B,Z)}catch(ct){o(ct,L(j))}d.terminal&&(p.terminal=!0,w=Math.max(w,d.priority))}return p.scope=x&&!0===x.scope,p.transcludeOnThisElement=M,p.templateOnThisElement=N,p.transclude=I,f.hasElementTranscludeDirective=V,p}function J(t,e,n,i){var o;if(b(e)){var a=e.match(w);e=e.substring(a[0].length);var s=a[1]||a[3],a="?"===a[2];if("^^"===s?n=n.parent():o=(o=i&&i[e])&&o.instance,!o){var u="$"+e+"Controller";o=s?n.inheritedData(u):n.data(u)}if(!o&&!a)throw Zr("ctreq",e,t)}else if(ar(e))for(o=[],s=0,a=e.length;a>s;s++)o[s]=J(t,e[s],n,i);else g(e)&&(o={},r(e,function(e,r){o[r]=J(t,e,n,i)}));return o||null}function K(t,e,n,r,i,o,a){var s,u=at();for(s in r){var c=r[s],l={$scope:c===a||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=c.controller;"@"==f&&(f=e[c.name]),l=d(f,l,!0,c.controllerAs),u[c.name]=l,t.data("$"+c.name+"Controller",l.instance)}return u}function Y(t,e,n){for(var r=0,i=t.length;i>r;r++)t[r]=f(t[r],{$$isolateScope:e,$$newScope:n})}function X(t,n,r,a,s,u,l){if(n===s)return null;if(s=null,c.hasOwnProperty(n)){var h;n=e.get(n+"Directive");for(var p=0,d=n.length;d>p;p++)try{if(h=n[p],(m(a)||a>h.priority)&&-1!=h.restrict.indexOf(r)){if(u&&(h=f(h,{$$start:u,$$end:l})),!h.$$bindings){var $=h,v=h,y=h.name,b={isolateScope:null,bindToController:null};if(g(v.scope)&&(!0===v.bindToController?(b.bindToController=i(v.scope,y,!0),b.isolateScope={}):b.isolateScope=i(v.scope,y,!1)),g(v.bindToController)&&(b.bindToController=i(v.bindToController,y,!0)),g(b.bindToController)){var w=v.controller,x=v.controllerAs;if(!w)throw Zr("noctrl",y);if(!Qt(w,x))throw Zr("noident",y)}var S=$.$$bindings=b;g(S.isolateScope)&&(h.$$isolateBindings=S.isolateScope)}t.push(h),s=h}}catch(C){o(C)}}return s}function tt(t){if(c.hasOwnProperty(t))for(var n=e.get(t+"Directive"),r=0,i=n.length;i>r;r++)if(t=n[r],t.multiElement)return!0;return!1}function nt(t,e){var n=e.$attr,i=t.$attr;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function rt(t,e,n,i,o,s,u,c){var l,h,p=[],d=e[0],$=t.shift(),m=f($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),v=S($.templateUrl)?$.templateUrl(e,n):$.templateUrl,y=$.templateNamespace;return e.empty(),a(v).then(function(a){var f,b;if(a=St(a),$.replace){if(a=Er.test(a)?Xt(ut(y,ur(a))):[],f=a[0],1!=a.length||1!==f.nodeType)throw Zr("tplrt",$.name,v);a={$attr:{}},ft(i,e,f);var w=H(f,[],a);g($.scope)&&Y(w,!0),t=w.concat(t),nt(n,a)}else f=d,e.html(a);for(t.unshift(m),l=Z(t,f,n,o,e,$,s,u,c),r(i,function(t,n){t==f&&(i[n]=e[0])}),h=_(e[0].childNodes,o);p.length;){a=p.shift(),b=p.shift();var x=p.shift(),S=p.shift(),w=e[0];if(!a.$$destroyed){if(b!==d){var C=b.className;c.hasElementTranscludeDirective&&$.replace||(w=$t(f)),ft(x,zn(b),w),U(zn(w),C)}b=l.transcludeOnThisElement?B(a,l.transclude,S):S,l(h,a,w,i,b)}}p=null}),function(t,e,n,r,i){t=i,e.$$destroyed||(p?p.push(e,n,r,t):(l.transcludeOnThisElement&&(t=B(e,l.transclude,i)),l(h,e,n,r,t)))}}function it(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name"+n+""+e+">",r.childNodes[0].childNodes;default:return n}}function ct(t,e){if("srcdoc"==e)return M.HTML;var n=T(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?M.RESOURCE_URL:void 0}function lt(t,e,r,i,o){var a=ct(t,i);o=y[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===T(t))throw Zr("selmulti",L(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){if(e=u.$$observers||(u.$$observers=at()),x.test(i))throw Zr("nodomevents");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(t),(e[i]||(e[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function ft(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;o>i;i++)if(e[i]==a){e[i++]=r,o=i+s-1;for(var c=e.length;c>i;i++,o++)c>o?e[i]=e[o]:delete e[i];e.length-=s-1,e.context===a&&(e.context=r);break}for(u&&u.replaceChild(r,a),e=t.document.createDocumentFragment(),i=0;s>i;i++)e.appendChild(n[i]);for(zn.hasData(a)&&(zn.data(r,zn.data(a)),zn(a).off("$destroy")),zn.cleanData(e.querySelectorAll("*")),i=1;s>i;i++)delete n[i];n[0]=r,n.length=1}function ht(t,e){return u(function(){return t.apply(null,arguments)},t,e)}function dt(t,e,n,r,i,a){try{t(e,n,r,i,a)}catch(s){o(s,L(n))}}function mt(t,e,i,o,a){function u(e,n,r){S(i.$onChanges)&&n!==r&&(vt||(t.$$postDigest(D),vt=[]),l||(l={},vt.push(c)),l[e]&&(r=l[e].previousValue),l[e]=new Jt(r,n))}function c(){i.$onChanges(l),l=void 0}var l,f=[],p={};return r(o,function(r,o){var c,l,d,$,m=r.attrName,v=r.optional;switch(r.mode){case"@":v||Jn.call(e,m)||(i[o]=e[m]=void 0),e.$observe(m,function(t){(b(t)||k(t))&&(u(o,t,i[o]),i[o]=t)}),e.$$observers[m].$$scope=t,c=e[m],b(c)?i[o]=n(c)(t):k(c)&&(i[o]=c),p[o]=new Jt(Jr,i[o]);break;case"=":if(!Jn.call(e,m)){if(v)break;e[m]=void 0}if(v&&!e[m])break;l=s(e[m]),$=l.literal?I:function(t,e){return t===e||t!==t&&e!==e},d=l.assign||function(){throw c=i[o]=l(t),Zr("nonassign",e[m],m,a.name)},c=i[o]=l(t),v=function(e){return $(e,i[o])||($(e,c)?d(t,e=i[o]):i[o]=e),c=e},v.$stateful=!0,v=r.collection?t.$watchCollection(e[m],v):t.$watch(s(e[m],v),null,l.literal),f.push(v);break;case"<":if(!Jn.call(e,m)){if(v)break;e[m]=void 0}if(v&&!e[m])break;l=s(e[m]);var g=i[o]=l(t);p[o]=new Jt(Jr,i[o]),v=t.$watch(l,function(t,e){if(e===t){if(e===g)return;e=g}u(o,t,e),i[o]=t},l.literal),f.push(v);break;case"&":if(l=e.hasOwnProperty(m)?s(e[m]):h,l===h&&v)break;i[o]=function(e){return l(t,e)}}}),{initialChanges:p,removeWatches:f.length&&function(){for(var t=0,e=f.length;e>t;++t)f[t]()}}}var vt,gt=/^\w/,yt=t.document.createElement("div"),bt=O;R.prototype={$normalize:Kt,$addClass:function(t){t&&0l;l++)var f=2*l,a=a+j(ur(s[f]),!0),a=a+(" "+ur(s[f+1]));s=ur(s[2*l]).split(/\s/),a+=j(ur(s[0]),!0),2===s.length&&(a+=" "+ur(s[1])),this[t]=e=a}!1!==n&&(null===e||m(e)?this.$$element.removeAttr(i):gt.test(i)?this.$$element.attr(i,e):F(this.$$element[0],i,e)),(t=this.$$observers)&&r(t[u],function(t){try{t(e)}catch(n){o(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=at()),i=r[t]||(r[t]=[]);return i.push(e),C.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||m(n[t])||e(n[t])}),function(){V(i,e)}}};var wt=n.startSymbol(),xt=n.endSymbol(),St="{{"==wt&&"}}"==xt?p:function(t){return t.replace(/\{\{/g,wt).replace(/}}/g,xt)},Ct=/^ngAttr[A-Z]/,Et=/^(.+)Start$/;return q.$$addBindingInfo=E?function(t,e){var n=t.data("$binding")||[];ar(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:h,q.$$addBindingClass=E?function(t){U(t,"ng-binding")}:h,q.$$addScopeInfo=E?function(t,e,n,r){t.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:h,q.$$addScopeClass=E?function(t,e){U(t,e?"ng-isolate-scope":"ng-scope")}:h,q.$$createComment=function(e,n){var r="";return E&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},q}]}function Jt(t,e){this.previousValue=t,this.currentValue=e}function Kt(t){return lt(t.replace(Kr,""))}function Yt(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/),o=0;t:for(;o=e)return t;for(;e--;)8===t[e].nodeType&&Qn.call(t,e,1);return t}function Qt(t,e){if(e&&b(e))return e;if(b(t)){var n=Xr.exec(t);if(n)return n[3]}}function te(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){rt(e,"controller"),g(e)?u(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!g(t.$scope))throw e("$controller")("noscp",i,n);t.$scope[n]=r}return function(e,a,s,c){var l,f,h;if(s=!0===s,c&&b(c)&&(h=c),b(e)){if(c=e.match(Xr),!c)throw Yr("ctrlfmt",e);f=c[1],h=h||c[3],e=t.hasOwnProperty(f)?t[f]:it(a.$scope,f,!0)||(n?it(i,f,!0):void 0),nt(e,f,!0)}return s?(s=(ar(e)?e[e.length-1]:e).prototype,l=Object.create(s||null),h&&o(a,h,l,f||e.name),u(function(){var t=r.invoke(e,l,a,f);return t!==l&&(g(t)||S(t))&&(l=t,h&&o(a,h,l,f||e.name)),l},{instance:l,identifier:h})):(l=r.instantiate(e,a,f),h&&o(a,h,l,f||e.name),l)}}]}function ee(){this.$get=["$window",function(t){return zn(t.document)}]}function ne(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function re(t){return g(t)?x(t)?t.toISOString():F(t):t}function ie(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||m(t)||(ar(t)?r(t,function(t){e.push(G(n)+"="+G(re(t)))}):e.push(G(n)+"="+G(re(t))))}),e.join("&")}}}function oe(){this.$get=function(){return function(t){function e(t,o,a){null===t||m(t)||(ar(t)?r(t,function(t,n){e(t,o+"["+(g(t)?n:"")+"]")}):g(t)&&!x(t)?i(t,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):n.push(G(o)+"="+G(re(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function ae(t,e){if(b(t)){var n=t.replace(ii,"").trim();if(n){var r=e("Content-Type");(r=r&&0===r.indexOf(ti))||(r=(r=n.match(ni))&&ri[r[0]].test(n)),r&&(t=U(n))}}return t}function se(t){var e,n=at();return b(t)?r(t.split("\n"),function(t){e=t.indexOf(":");var r=Kn(ur(t.substr(0,e)));t=ur(t.substr(e+1)),r&&(n[r]=n[r]?n[r]+", "+t:t)}):g(t)&&r(t,function(t,e){var r=Kn(e),i=ur(t);r&&(n[r]=n[r]?n[r]+", "+i:i)}),n}function ue(t){var e;return function(n){return e||(e=se(t)),n?(n=e[Kn(n)],void 0===n&&(n=null),n):e}}function ce(t,e,n,i){return S(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function le(){var t=this.defaults={transformResponse:[ae],transformRequest:[function(t){return g(t)&&"[object File]"!==er.call(t)&&"[object Blob]"!==er.call(t)&&"[object FormData]"!==er.call(t)?F(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ut(ei),put:ut(ei),patch:ut(ei)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return v(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return v(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,c,l,f,h){function p(n){function o(t){var e=u({},t);return e.data=ce(t.data,t.headers,t.status,s.transformResponse),t=t.status,t>=200&&300>t?e:f.reject(e)}function a(t,e){var n,i={};return r(t,function(t,r){S(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}if(!g(n))throw e("$http")("badreq",n);if(!b(n.url))throw e("$http")("badreq",n.url);var s=u({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);s.headers=function(e){var n,r,i,o=t.headers,s=u({},e.headers),o=u({},o.common,o[Kn(e.method)]);t:for(n in o){r=Kn(n);for(i in s)if(Kn(i)===r)continue t;s[n]=o[n]}return a(s,ut(e))}(n),s.method=Yn(s.method),s.paramSerializer=b(s.paramSerializer)?h.get(s.paramSerializer):s.paramSerializer;var c=[function(e){var n=e.headers,i=ce(e.data,ue(n),void 0,e.transformRequest);return m(i)&&r(n,function(t,e){"content-type"===Kn(e)&&delete n[e]}),m(e.withCredentials)&&!m(t.withCredentials)&&(e.withCredentials=t.withCredentials),d(e,i).then(o,o)},void 0],l=f.when(s);for(r(w,function(t){(t.request||t.requestError)&&c.unshift(t.request,t.requestError),(t.response||t.responseError)&&c.push(t.response,t.responseError)});c.length;){n=c.shift();var p=c.shift(),l=l.then(n,p)}return i?(l.success=function(t){return nt(t,"fn"),l.then(function(e){t(e.data,e.status,e.headers,s)}),l},l.error=function(t){return nt(t,"fn"),l.then(null,function(e){t(e.data,e.status,e.headers,s)}),l}):(l.success=ai("success"),l.error=ai("error")),l}function d(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),e}}function u(t,e,r,i){function o(){c(e,t,r,i)}b&&(t>=200&&300>t?b.put(A,[t,e,se(r),i]):b.remove(A)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function c(t,n,r,i){n=n>=-1?n:0,(n>=200&&300>n?x.resolve:x.reject)({data:t,status:n,headers:ue(r),config:e,statusText:i})}function h(t){c(t.data,t.status,ut(t.headers()),t.statusText)}function d(){var t=p.pendingRequests.indexOf(e);-1!==t&&p.pendingRequests.splice(t,1)}var b,w,x=f.defer(),C=x.promise,E=e.headers,A=$(e.url,e.paramSerializer(e.params));return p.pendingRequests.push(e),C.then(d,d),!e.cache&&!t.cache||!1===e.cache||"GET"!==e.method&&"JSONP"!==e.method||(b=g(e.cache)?e.cache:g(t.cache)?t.cache:y),b&&(w=b.get(A),v(w)?w&&S(w.then)?w.then(h,h):ar(w)?c(w[1],w[0],ut(w[2]),w[3]):c(w,200,{},"OK"):b.put(A,C)),m(w)&&((w=un(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0)&&(E[e.xsrfHeaderName||t.xsrfHeaderName]=w),a(e.method,A,i,u,E,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))),C}function $(t,e){return 00)var A=n(y,f);else f&&S(f.then)&&f.then(y)}}function de(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(h,t).replace(p,e)}function s(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function c(o,c,h,p){function $(t){try{var e=t;t=h?i.getTrusted(h,e):i.valueOf(e);var n;if(p&&!v(t))n=t;else if(null==t)n="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=F(t)}n=t}return n}catch(a){r(si.interr(o,a))}}if(!o.length||-1===o.indexOf(t)){var g;return c||(c=a(o),g=d(c),g.exp=o,g.expressions=[],g.$$watchDelegate=s),g}p=!!p;var y,b,w=0,x=[],C=[];g=o.length;for(var E=[],A=[];g>w;){if(-1==(y=o.indexOf(t,w))||-1==(b=o.indexOf(e,y+l))){w!==g&&E.push(a(o.substring(w)));break}w!==y&&E.push(a(o.substring(w,y))),w=o.substring(y+l,b),x.push(w),C.push(n(w,$)),w=b+f,A.push(E.length),E.push("")}if(h&&1e;e++){if(p&&m(t[e]))return;E[A[e]]=t[e]}return E.join("")};return u(function(t){var e=0,n=x.length,i=Array(n);try{for(;n>e;e++)i[e]=C[e](t);return k(i)}catch(a){r(si.interr(o,a))}},{exp:o,expressions:x,$$watchDelegate:function(t,e){var n;return t.$watchGroup(C,function(r,i){var o=k(r);S(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var l=t.length,f=e.length,h=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function $e(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,s,u,c){function l(){f?o.apply(null,h):o($)}var f=40&&$>=u&&(g.resolve($),d(y.$$intervalId),delete a[y.$$intervalId]),m||t.$apply()},s),a[y.$$intervalId]=g,y}var a={};return o.cancel=function(t){return t&&t.$$intervalId in a?(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0):!1},o}]}function me(t){t=t.split("/");for(var e=t.length;e--;)t[e]=W(t[e]);return t.join("/")}function ve(t,e){var n=sn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=l(n.port)||ci[n.protocol]||null}function ge(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=sn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=H(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ye(t,e){return 0===e.lastIndexOf(t,0)?e.substr(t.length):void 0}function be(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function we(t){return t.replace(/(#.+)|#$/,"$1")}function xe(t,e,n){this.$$html5=!0,n=n||"",ve(t,this),this.$$parse=function(t){var n=ye(e,t);if(!b(n))throw li("ipthprfx",t,e);ge(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=z(this.$$search),n=this.$$hash?"#"+W(this.$$hash):"";this.$$url=me(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return v(o=ye(t,r))?(a=o,a=v(o=ye(n,o))?e+(ye("/",o)||o):t+a):v(o=ye(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a}}function Se(t,e,n){ve(t,this),this.$$parse=function(r){var i,o=ye(t,r)||ye(e,r);m(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",m(o)&&(t=r,this.replace())):(i=ye(n,o),m(i)&&(i=o)),ge(i,this),r=this.$$path;var o=t,a=/^\/[A-Z]:(\/.*)/;0===i.lastIndexOf(o,0)&&(i=i.replace(o,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$compose=function(){var e=z(this.$$search),r=this.$$hash?"#"+W(this.$$hash):"";this.$$url=me(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return be(t)==be(e)?(this.$$parse(e),!0):!1}}function Ce(t,e,n){this.$$html5=!0,Se.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==be(r)?o=r:(a=ye(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=z(this.$$search),r=this.$$hash?"#"+W(this.$$hash):"";this.$$url=me(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Ee(t){return function(){return this[t]}}function Ae(t,e){return function(n){return m(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function ke(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return v(e)?(t=e,this):t},this.html5Mode=function(t){return k(t)?(e.enabled=t,this):g(t)?(k(t.enabled)&&(e.enabled=t.enabled),k(t.requireBase)&&(e.requireBase=t.requireBase),k(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(a){throw c.url(i),c.$$state=o,a}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l;l=r.baseHref();var f,h=r.url();if(e.enabled){if(!l&&e.requireBase)throw li("nobase");f=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/"),l=i.history?xe:Ce}else f=be(h),l=Se;var p=f.substr(0,be(f).lastIndexOf("/")+1);c=new l(f,p,"#"+t),c.$$parseLinkUrl(h,h),c.$$state=r.state();var d=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=zn(t.target);"a"!==T(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");g(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=sn(s.animVal).href),d.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(s,u)||(t.preventDefault(),c.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),we(c.absUrl())!=we(h)&&r.url(c.absUrl(),!0);var $=!0;return r.onUrlChange(function(t,e){m(ye(p,t))?a.location.href=t:(n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;t=we(t),c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,s(i,!1,o)):($=!1,u(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var t=we(r.url()),e=we(c.absUrl()),o=r.state(),a=c.$$replace,l=t!==e||c.$$html5&&i.history&&o!==c.$$state;($||l)&&($=!1,n.$evalAsync(function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(l&&s(e,a,o===c.$$state?null:c.$$state),u(t,o)))})),c.$$replace=!1}),c}]}function Oe(){var t=!0,e=this;this.debugEnabled=function(e){return v(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||h;t=!1;try{t=!!o.apply}catch(a){}return t?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Me(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw hi("isecfld",e);return t}function Ne(t){return t+""}function Te(t,e){if(t){if(t.constructor===t)throw hi("isecfn",e);if(t.window===t)throw hi("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw hi("isecdom",e);if(t===Object)throw hi("isecobj",e)}return t}function Ve(t,e){if(t){if(t.constructor===t)throw hi("isecfn",e);if(t===pi||t===di||t===$i)throw hi("isecff",e)}}function je(t,e){if(t&&(t===0..constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw hi("isecaf",e)}function Ie(t,e){return"undefined"!=typeof t?t:e}function De(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function Pe(t,e){var n,i;switch(t.type){case yi.Program:n=!0,r(t.body,function(t){Pe(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case yi.Literal:t.constant=!0,t.toWatch=[];break;case yi.UnaryExpression:Pe(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case yi.BinaryExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case yi.LogicalExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case yi.ConditionalExpression:Pe(t.test,e),Pe(t.alternate,e),Pe(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case yi.Identifier:t.constant=!1,t.toWatch=[t];break;case yi.MemberExpression:Pe(t.object,e),t.computed&&Pe(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case yi.CallExpression:n=t.filter?!e(t.callee.name).$stateful:!1,i=[],r(t.arguments,function(t){Pe(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&!e(t.callee.name).$stateful?i:[t];break;case yi.AssignmentExpression:Pe(t.left,e),Pe(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case yi.ArrayExpression:n=!0,i=[],r(t.elements,function(t){Pe(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case yi.ObjectExpression:n=!0,i=[],r(t.properties,function(t){Pe(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case yi.ThisExpression:t.constant=!1,t.toWatch=[];break;case yi.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Re(t){if(1==t.length){t=t[0].expression;var e=t.toWatch;return 1!==e.length?e:e[0]!==t?e:void 0}}function Fe(t){return t.type===yi.Identifier||t.type===yi.MemberExpression}function Ue(t){return 1===t.body.length&&Fe(t.body[0].expression)?{type:yi.AssignmentExpression,left:t.body[0].expression,right:{type:yi.NGValueParameter},operator:"="}:void 0}function qe(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===yi.Literal||t.body[0].expression.type===yi.ArrayExpression||t.body[0].expression.type===yi.ObjectExpression)}function _e(t,e){this.astBuilder=t,this.$filter=e}function Le(t,e){this.astBuilder=t,this.$filter=e}function Be(t){return"constructor"==t}function He(t){return S(t.valueOf)?t.valueOf():wi.call(t)}function ze(){var t,e,n=at(),i=at(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function s(t,e,r){var o,s,c;switch(r=r||b,typeof t){case"string":c=t=t.trim();var m=r?i:n;if(o=m[c],!o){":"===t.charAt(0)&&":"===t.charAt(1)&&(s=!0,t=t.substring(2)),o=r?y:g;var v=new gi(o);o=new bi(v,a,o).parse(t),o.constant?o.$$watchDelegate=d:s?o.$$watchDelegate=o.literal?p:f:o.inputs&&(o.$$watchDelegate=l),r&&(o=u(o)),m[c]=o}return $(o,e);case"function":return $(t,e);default:return $(h,e)}}function u(t){function e(e,n,r,i){var o=b;b=!0;try{return t(e,n,r,i)}finally{b=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=u(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&nf;f++)u[f]=c,l[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;i>n;n++){var s=a[n](t);(e||(e=!c(s,u[n])))&&(l[n]=s,u[n]=s&&He(s))}return e&&(o=r(t,void 0,void 0,l)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,S(e)&&e.apply(this,arguments),v(t)&&r.$$postDigest(function(){v(o)&&i()})},n)}function p(t,e,n,i){function o(t){var e=!0;return r(t,function(t){v(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return i(t)},function(t,n,r){s=t,S(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(s)&&a()})},n)}function d(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function $(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,n=n!==p&&n!==f?function(n,i,o,a){return o=r&&a?a[0]:t(n,i,o,a),e(o,n,i)}:function(n,r,i,o){return i=t(n,r,i,o),n=e(i,n,r),v(i)?n:i};return t.$$watchDelegate&&t.$$watchDelegate!==l?n.$$watchDelegate=t.$$watchDelegate:e.$stateful||(n.$$watchDelegate=l,r=!t.inputs,n.inputs=t.inputs?t.inputs:[t]),n}var m=lr().noUnsafeEval,g={csp:m,expensiveChecks:!1,literals:j(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},y={csp:m,expensiveChecks:!0,literals:j(o),isIdentifierStart:S(t)&&t,isIdentifierContinue:S(e)&&e},b=!1;return s.$$runningExpensiveChecks=function(){return b},s}]}function We(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Ze(function(e){t.$evalAsync(e)},e)}]}function Ge(){this.$get=["$browser","$exceptionHandler",function(t,e){return Ze(function(e){t.defer(e)},e)}]}function Ze(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function a(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){var t,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var o=0,a=i.length;a>o;++o){r=i[o][0],t=i[o][e.status];try{S(t)?r.resolve(t(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(s){r.reject(s),n(s)}}}))}function s(){this.promise=new i;
}var c=e("$q",TypeError);u(i.prototype,{then:function(t,e,n){if(m(t)&&m(e)&&m(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),0=this.promise.$$state.status&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;a>o;o++){i=r[o][0],t=r[o][3];try{i.notify(S(t)?t(e):e)}catch(s){n(s)}}})}});var l=function(t,e){var n=new s;return e?n.resolve(t):n.reject(t),n.promise},f=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(i){return l(i,!1)}return r&&S(r.then)?r.then(function(){return l(t,e)},function(t){return l(t,!1)}):l(t,e)},h=function(t,e,n,r){var i=new s;return i.resolve(t),i.promise.then(e,n,r)},p=function(t){if(!S(t))throw c("norslvr",t);var e=new s;return t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise};return p.prototype=i.prototype,p.defer=function(){var t=new s;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t},p.reject=function(t){var e=new s;return e.reject(t),e.promise},p.when=h,p.resolve=h,p.all=function(t){var e=new s,n=0,i=ar(t)?[]:{};return r(t,function(t,r){n++,h(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise},p}function Je(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Ke(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++or,this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),a=null,s=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,u,c){function l(t){t.currentScope.$$destroyed=!0}function f(t){9===Hn&&(t.$$childHead&&f(t.$$childHead),t.$$nextSibling&&f(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function p(){this.$id=++or,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function d(t){if(x.$$phase)throw o("inprog",x.$$phase);x.$$phase=t}function $(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function v(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function y(){}function b(){for(;A.length;)try{A.shift()()}catch(t){e(t)}s=null}function w(){null===s&&(s=c.defer(function(){x.$apply(b)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",l),r},$watch:function(t,e,n,r){var i=u(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,c={fn:e,last:y,get:i,exp:r||t,eq:!!n};return a=null,S(e)||(c.fn=h),s||(s=o.$$watchers=[]),s.unshift(c),$(this,1),function(){0<=V(s,c)&&$(o,-1),a=null}},$watchGroup:function(t,e){function n(){u=!1,c?(c=!1,e(o,o,s)):e(o,i,s)}var i=Array(t.length),o=Array(t.length),a=[],s=this,u=!1,c=!0;if(!t.length){var l=!0;return s.$evalAsync(function(){l&&e(o,o,s)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=s.$watch(t,function(t,r){o[e]=t,i[e]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function r(t){i=t;var e,r,a,s;if(!m(i)){if(g(i))if(n(i))for(o!==h&&(o=h,$=o.length=0,l++),t=i.length,$!==t&&(l++,o.length=$=t),e=0;t>e;e++)s=o[e],a=i[e],r=s!==s&&a!==a,r||s===a||(l++,o[e]=a);else{o!==p&&(o=p={},$=0,l++),t=0;for(e in i)Jn.call(i,e)&&(t++,a=i[e],s=o[e],e in o?(r=s!==s&&a!==a,r||s===a||(l++,o[e]=a)):($++,o[e]=a,l++));if($>t)for(e in l++,o)Jn.call(i,e)||($--,delete o[e])}else o!==i&&(o=i,l++);return l}}r.$stateful=!0;var i,o,a,s=this,c=1g&&(m=4-g,w[m]||(w[m]=[]),w[m].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(O){e(O)}if(!(f=$.$$watchersCount&&$.$$childHead||$!==this&&$.$$nextSibling))for(;$!==this&&!(f=$.$$nextSibling);)$=$.$parent}while($=f);if((p||C.length)&&!g--)throw x.$$phase=null,o("infdig",i,w)}while(p||C.length);for(x.$$phase=null;ki;i++)if(r[i])try{r[i].apply(null,l)}catch(f){e(f)}else r.splice(i,1),i--,o--;if(u)return c.currentScope=null,c;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(t,n){var r=this,i=this,o={name:t,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return o;for(var a,s,u=D([o],arguments,1);r=i;){for(o.currentScope=r,i=r.$$listeners[t]||[],a=0,s=i.length;s>a;a++)if(i[a])try{i[a].apply(null,u)}catch(c){e(c)}else i.splice(a,1),a--,s--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var x=new p,C=x.$$asyncQueue=[],E=x.$$postDigestQueue=[],A=x.$$applyAsyncQueue=[],k=0;return x}]}function Ye(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return v(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return v(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=sn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Xe(t){if("self"===t)return t;if(b(t)){if(-1u;u++)if(r(t[u],a)){l=!0;break}if(l)for(u=0,c=e.length;c>u;u++)if(r(e[u],a)){l=!1;break}if(l)return i;throw xi("insecurl",i.toString())}if(n===Si.HTML)return o(i);throw xi("unsafe")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function en(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>Hn)throw xi("iequirks");var i=ut(Si);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=p),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(Si,function(t,e){var n=Kn(e);i[lt("parse_as_"+n)]=function(e){return o(t,e)},i[lt("get_trusted_"+n)]=function(e){return a(t,e)},i[lt("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function nn(){this.$get=["$window","$document",function(t,e){var n,r={},i=!(t.chrome&&t.chrome.app&&t.chrome.app.runtime)&&t.history&&t.history.pushState,o=l((/android (\d+)/.exec(Kn((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,c=s.body&&s.body.style,f=!1,h=!1;if(c){for(var p in c)if(f=u.exec(p)){n=f[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),h=!!("animation"in c||n+"Animation"in c),!o||f&&h||(f=b(c.webkitTransition),h=b(c.webkitAnimation))}return{history:!(!i||4>o||a),hasEvent:function(t){if("input"===t&&11>=Hn)return!1;if(m(r[t])){var e=s.createElement("div");r[t]="on"+t in e}return r[t]},csp:lr(),vendorPrefix:n,transitions:f,animations:h,android:o}}]}function rn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,s){o.totalPendingRequests++,b(a)&&!m(e.get(a))||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return ar(c)?c=c.filter(function(t){return t!==ae}):c===ae&&(c=null),n.get(a,u({cache:e,transformResponse:c},t))["finally"](function(){o.totalPendingRequests--}).then(function(t){return e.put(a,t.data),t.data},function(t){if(!s)throw Ci("tpload",a,t.status,t.statusText);return r.reject(t)})}return o.totalPendingRequests=0,o}]}function on(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){t=t.getElementsByClassName("ng-binding");var i=[];return r(t,function(t){var o=ir.element(t).data("$binding");o&&r(o,function(r){n?new RegExp("(^|\\s)"+cr(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!=r.indexOf(e)&&i.push(t)})}),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(u=e(o.substring(0,s)),m(r[u])&&(r[u]=e(o.substring(s+1))));return r}}function fn(){this.$get=ln}function hn(t){function e(n,i){if(g(n)){var o={};return r(n,function(t,n){o[n]=e(n,t)}),o}return t.factory(n+"Filter",i)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",vn),e("date",On),e("filter",pn),e("json",Mn),e("limitTo",Nn),e("lowercase",ji),e("number",gn),e("orderBy",Vn),e("uppercase",Ii)}function pn(){return function(t,r,i){if(!n(t)){if(null==t)return t;throw e("filter")("notarray",t)}var o;switch(mn(r)){case"function":break;case"boolean":case"null":case"number":case"string":o=!0;case"object":r=dn(r,i,o);break;default:return t}return Array.prototype.filter.call(t,r)}}function dn(t,e,n){var r=g(t)&&"$"in t;return!0===e?e=I:S(e)||(e=function(t,e){return m(t)?!1:null===t||null===e?t===e:g(e)||g(t)&&!$(t)?!1:(t=Kn(""+t),e=Kn(""+e),-1!==t.indexOf(e))}),function(i){return r&&!g(i)?$n(i,t.$,e,!1):$n(i,t,e,n)}}function $n(t,e,n,r,i){var o=mn(t),a=mn(e);if("string"===a&&"!"===e.charAt(0))return!$n(t,e.substring(1),n,r);if(ar(t))return t.some(function(t){return $n(t,e,n,r)});switch(o){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&&$n(t[s],e,n,!0))return!0;return i?!1:$n(t,e,n,!1)}if("object"===a){for(s in e)if(i=e[s],!S(i)&&!m(i)&&(o="$"===s,!$n(o?t:t[s],i,n,o,o)))return!1;return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function mn(t){return null===t?"null":typeof t}function vn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return m(n)&&(n=e.CURRENCY_SYM),m(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:wn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function gn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:wn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function yn(t){var e,n,r,i,o,a=0;for(-1<(n=t.indexOf(Oi))&&(t=t.replace(Oi,"")),0<(r=t.search(/e/i))?(0>n&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):0>n&&(n=t.length),r=0;t.charAt(r)==Mi;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==Mi;)o--;for(n-=r,e=[],i=0;o>=r;r++,i++)e[i]=+t.charAt(r)}return n>ki&&(e=e.splice(0,ki-1),a=n-1,n=1),{d:e,e:a,i:n}}function bn(t,e,n,r){var i=t.d,o=i.length-t.i;if(e=m(e)?Math.min(Math.max(n,o),r):+e,n=e+t.i,r=i[n],n>0){i.splice(Math.max(t.i,n));for(var a=n;aa;a++)i[a]=0;if(r>=5)if(0>n-1){for(r=0;r>n;r--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[n-1]++;for(;os;)u.unshift(0),s++;for(s>0?o=u.splice(s,u.length):(o=u,u=[0]),s=[],u.length>=e.lgSize&&s.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)s.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&s.unshift(u.join("")),u=s.join(n),o.length&&(u+=r+o.join("")),i&&(u+="e+"+i)}return 0>t&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function xn(t,e,n,r){var i="";for((0>t||r&&0>=t)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),xn(o,e,r,i)}}function Cn(t,e,n){return function(r,i){var o=r["get"+t](),a=Yn((n?"STANDALONE":"")+(e?"SHORT":"")+t);return i[a][o]}}function En(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function An(t){return function(e){var n=En(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+n,e=1+Math.round(e/6048e5),xn(e,t)}}function kn(t,e){return 0>=t.getFullYear()?e.ERAS[0]:e.ERAS[1]}function On(t){function e(t){var e;if(e=t.match(n)){t=new Date(0);var r=0,i=0,o=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(r=l(e[9]+e[10]),i=l(e[9]+e[11])),o.call(t,l(e[1]),l(e[2])-1,l(e[3])),r=l(e[4]||0)-r,i=l(e[5]||0)-i,o=l(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),a.call(t,r,i,o,e)}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,b(n)&&(n=Vi.test(n)?l(n):e(n)),w(n)&&(n=new Date(n)),!x(n)||!isFinite(n.getTime()))return n;for(;i;)(s=Ti.exec(i))?(c=D(c,s,1),i=c.pop()):(c.push(i),i=null);var f=n.getTimezoneOffset();return o&&(f=q(o,f),n=_(n,o,!0)),r(c,function(e){a=Ni[e],u+=a?a(n,t.DATETIME_FORMATS,f):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Mn(){return function(t,e){return m(e)&&(e=2),F(t,e)}}function Nn(){return function(t,e,r){return e=1/0===Math.abs(Number(e))?Number(e):l(e),isNaN(e)?t:(w(t)&&(t=t.toString()),n(t)?(r=!r||isNaN(r)?0:l(r),r=0>r?Math.max(0,t.length+r):r,e>=0?Tn(t,r,r+e):0===r?Tn(t,e,t.length):Tn(t,Math.max(0,r+e),r)):t)}}function Tn(t,e,n){return b(t)?t.slice(e,n):Xn.call(t,e,n)}function Vn(t){function r(e){return e.map(function(e){var n=1,r=p;if(S(e))r=e;else if(b(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant)))var i=r(),r=function(t){return t[i]};return{get:r,descending:n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t,e){var n=0,r=t.type,i=e.type;if(r===i){var i=t.value,o=e.value;"string"===r?(i=i.toLowerCase(),o=o.toLowerCase()):"object"===r&&(g(i)&&(i=t.index),g(o)&&(o=e.index)),i!==o&&(n=o>i?-1:1)}else n=i>r?-1:1;return n}return function(t,a,s,u){if(null==t)return t;if(!n(t))throw e("orderBy")("notarray",t);ar(a)||(a=[a]),0===a.length&&(a=["+"]);var c=r(a),l=s?-1:1,f=S(u)?u:o;return t=Array.prototype.map.call(t,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map(function(n){var r=n.get(t);return n=typeof r,null===r?(n="string",r="null"):"object"===n&&(S(r.valueOf)&&(r=r.valueOf(),i(r))||$(r)&&(r=r.toString(),i(r))),{value:r,type:n,index:e}})}}),t.sort(function(t,e){for(var n=0,r=c.length;r>n;n++){var i=f(t.predicateValues[n],e.predicateValues[n]);if(i)return i*c[n].descending*l}return f(t.tieBreaker,e.tieBreaker)*l}),t=t.map(function(t){return t.value})}}function jn(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",d(t)}function In(t,e,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Ri,a.$rollbackViewValue=function(){r(s,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(t){t.$commitViewValue()})},a.$addControl=function(t){rt(t.$name,"input"),s.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],r(a.$pending,function(e,n){a.$setValidity(n,null,t)}),r(a.$error,function(e,n){a.$setValidity(n,null,t)}),r(a.$$success,function(e,n){a.$setValidity(n,null,t)}),V(s,t),t.$$parentForm=Ri},Ln({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,bo),i.addClass(t,wo),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,bo,wo+" ng-submitted"),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(t){t.$setPristine()})},a.$setUntouched=function(){r(s,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,"ng-submitted"),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function Dn(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Pn(t,e,n,r,i,o){var a=Kn(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,c()})}var u,c=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var i=e.val();t=t&&t.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=ur(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,t)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||c(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||l(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",l)}e.on("change",c),Ki[a]&&r.$$hasNativeValidators&&a===n.type&&e.on("keydown wheel mousedown",function(t){if(!u){var e=this.validity,n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||c(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Rn(t,e){return function(n,i){var o,a;if(x(n))return n;if(b(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),_i.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n=$},a.$observe("min",function(t){$=h(t),s.$validate()})}if(v(a.max)||a.ngMax){var g;s.$validators.max=function(t){return!f(t)||m(g)||n(t)<=g},a.$observe("max",function(t){g=h(t),s.$validate()})}}}function Un(t,e,n,r){(r.$$hasNativeValidators=g(e[0].validity))&&r.$parsers.push(function(t){var n=e.prop("validity")||{};return n.badInput||n.typeMismatch?void 0:t})}function qn(t,e,n,r,i){if(v(r)){if(t=t(r),!t.constant)throw So("constexpr",n,r);return t(e)}return i}function _n(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[],r=0;t:for(;r0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function f(t,e){var r=i(e,t),o=i(t,e),r=l(r,1),o=l(o,-1);r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function h(t){if(!0===e||(1&a.$index)===e){var n=o(t||[]);if(p){if(!I(t,p)){var r=o(p);f(r,n)}}else c(n)}p=ar(t)?t.map(function(t){return ut(t)}):ut(t)}var p;a.$watch(u[t],h,!0),u.$observe("class",function(e){h(a.$eval(u[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[t]));i===e?c(s):(i=l(s,-1),u.$removeClass(i))}})}}}]}function Ln(t){function e(t,e){e&&!o[t]?(u.addClass(i,t),o[t]=!0):!e&&o[t]&&(u.removeClass(i,t),o[t]=!1)}function n(t,n){t=t?"-"+Q(t,"-"):"",e(go+t,!0===n),e(yo+t,!1===n)}var r=t.ctrl,i=t.$element,o={},a=t.set,s=t.unset,u=t.$animate;o[yo]=!(o[go]=i.hasClass(go)),r.$setValidity=function(t,i,o){m(i)?(r.$pending||(r.$pending={}),a(r.$pending,t,o)):(r.$pending&&s(r.$pending,t,o),Bn(r.$pending)&&(r.$pending=void 0)),k(i)?i?(s(r.$error,t,o),a(r.$$success,t,o)):(a(r.$error,t,o),s(r.$$success,t,o)):(s(r.$error,t,o),s(r.$$success,t,o)),r.$pending?(e(xo,!0),r.$valid=r.$invalid=void 0,n("",null)):(e(xo,!1),r.$valid=Bn(r.$error),r.$invalid=!r.$valid,n("",r.$valid)),i=r.$pending&&r.$pending[t]?void 0:r.$error[t]?!1:r.$$success[t]?!0:null,n(t,i),r.$$parentForm.$setValidity(t,i,r)}}function Bn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Hn,zn,Wn,Gn,Zn=/^\/(.+)\/([a-z]*)$/,Jn=Object.prototype.hasOwnProperty,Kn=function(t){return b(t)?t.toLowerCase():t},Yn=function(t){return b(t)?t.toUpperCase():t},Xn=[].slice,Qn=[].splice,tr=[].push,er=Object.prototype.toString,nr=Object.getPrototypeOf,rr=e("ng"),ir=t.angular||(t.angular={}),or=0;Hn=t.document.documentMode,h.$inject=[],p.$inject=[];var ar=Array.isArray,sr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,ur=function(t){return b(t)?t.trim():t},cr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#n;++n)if(r=pr[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return fr.name_=i},hr=/:/g,pr=["ng-","data-ng-","ng:","x-ng-"],dr=/[A-Z]/g,$r=!1,mr=3,vr={full:"1.5.7",major:1,minor:5,dot:7,codeName:"hexagonal-circumvolution"};dt.expando="ng339";var gr=dt.cache={},yr=1;dt._data=function(t){return this.cache[t[this.expando]]||{}};var br=/([\:\-\_]+(.))/g,wr=/^moz([A-Z])/,xr={mouseleave:"mouseout",mouseenter:"mouseover"},Sr=e("jqLite"),Cr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Er=/<|?\w+;/,Ar=/<([\w:-]+)/,kr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Or={option:[1,'"],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};Or.optgroup=Or.option,Or.tbody=Or.tfoot=Or.colgroup=Or.caption=Or.thead,Or.th=Or.td;var Mr=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Nr=dt.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),dt(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return zn(t>=0?this[t]:this[this.length+t])},length:0,push:tr,sort:[].sort,splice:[].splice},Tr={};r("multiple selected checked disabled readOnly required open".split(" "),function(t){Tr[Kn(t)]=t});var Vr={};r("input select option textarea button form details".split(" "),function(t){Vr[t]=!0});var jr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:bt,removeData:gt,hasData:function(t){for(var e in gr[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;n>e;e++)gt(t[e])}},function(t,e){dt[e]=t}),r({data:bt,inheritedData:At,scope:function(t){return zn.data(t,"$scope")||At(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return zn.data(t,"$isolateScope")||zn.data(t,"$isolateScopeNoTemplate")},controller:Et,injector:function(t){return At(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:wt,css:function(t,e,n){return e=lt(e),v(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r=t.nodeType;if(r!==mr&&2!==r&&8!==r)if(r=Kn(e),Tr[r]){if(!v(n))return t[e]||(t.attributes.getNamedItem(e)||h).specified?r:void 0;n?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(v(n))t.setAttribute(e,n);else if(t.getAttribute)return t=t.getAttribute(e,2),null===t?void 0:t},prop:function(t,e,n){return v(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(m(e)){var n=t.nodeType;return 1===n||n===mr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(m(e)){if(t.multiple&&"select"===T(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return m(e)?t.innerHTML:(mt(t,!0),void(t.innerHTML=e))},empty:kt},function(t,e){dt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==kt&&m(2==t.length&&t!==wt&&t!==Et?e:n)){if(g(e)){for(r=0;o>r;r++)if(t===bt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(r=t.$dv,o=m(r)?Math.min(o,1):o,i=0;o>i;i++){var a=t(this[i],e,n);r=r?r+a:a}return r}for(r=0;o>r;r++)t(this[r],e,n);
return this}}),r({removeData:gt,on:function(t,e,n,r){if(v(r))throw Sr("onargs");if(ft(t)){r=yt(t,!0);var i=r.events,o=r.handle;o||(o=r.handle=Tt(t,i)),r=0<=e.indexOf(" ")?e.split(" "):[e];for(var a=r.length,s=function(e,r,a){var s=i[e];s||(s=i[e]=[],s.specialHandlerWrapper=r,"$destroy"===e||a||t.addEventListener(e,o,!1)),s.push(n)};a--;)e=r[a],xr[e]?(s(xr[e],jt),s(e,void 0,!0)):s(e)}},off:vt,one:function(t,e,n){t=zn(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;mt(t),r(new dt(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n){e=new dt(e);for(var n=0,r=e.length;r>n;n++)t.appendChild(e[n])}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;r(new dt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){pt(t,zn(e).eq(0).clone()[0])},remove:Ot,detach:function(t){Ot(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new dt(e);for(var i=0,o=e.length;o>i;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:St,removeClass:xt,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;m(r)&&(r=!wt(t,e)),(r?St:xt)(t,e)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:$t,triggerHandler:function(t,e,n){var i,o,a=e.type||e,s=yt(t);(s=(s=s&&s.events)&&s[a])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:h,type:a,target:t},e.type&&(i=u(i,e)),e=ut(s),o=n?[i].concat(n):[i],r(e,function(e){i.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(t,e){dt.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;a>o;o++)m(i)?(i=t(this[o],e,n,r),v(i)&&(i=zn(i))):Ct(i,t(this[o],e,n,r));return v(i)?i:this},dt.prototype.bind=dt.prototype.on,dt.prototype.unbind=dt.prototype.off}),Pt.prototype={put:function(t,e){this[Dt(t,this.nextUid)]=e},get:function(t){return this[Dt(t,this.nextUid)]},remove:function(t){var e=this[t=Dt(t,this.nextUid)];return delete this[t],e}};var Ir=[function(){this.$get=[function(){return Pt}]}],Dr=/^([^\(]+?)=>/,Pr=/^[^\(]*\(\s*([^\)]*)\)/m,Rr=/,/,Fr=/^\s*(_?)(\S+?)\1\s*$/,Ur=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,qr=e("$injector");Ut.$$annotate=function(t,e,n){var i;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw b(n)&&n||(n=t.name||Ft(t)),qr("strictdi",n);e=Rt(t),r(e[1].split(Rr),function(t){t.replace(Fr,function(t,e,n){i.push(n)})})}t.$inject=i}}else ar(t)?(e=t.length-1,nt(t[e],"fn"),i=t.slice(0,e)):nt(t,"fn",!0);return i};var _r=e("$animate"),Lr=function(){this.$get=h},Br=function(){var t=new Pt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&(e=b(e)?e.split(" "):ar(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function a(){r(e,function(e){var n=t.get(e);if(n){var i=Lt(e.attr("class")),o="",a="";r(n,function(t,e){t!==!!i[e]&&(t?o+=(o.length?" ":"")+e:a+=(a.length?" ":"")+e)}),r(e,function(t){o&&St(t,o),a&&xt(t,a)}),t.remove(e)}}),e.length=0}return{enabled:h,on:h,off:h,pin:h,push:function(r,s,u,c){return c&&c(),u=u||{},u.from&&r.css(u.from),u.to&&r.css(u.to),(u.addClass||u.removeClass)&&(s=u.addClass,c=u.removeClass,u=t.get(r)||{},s=o(u,s,!0),c=o(u,c,!1),(s||c)&&(t.put(r,u),e.push(r),1===e.length&&i.$$postDigest(a))),r=new n,r.complete(),r}}}]},Hr=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw _r("notcsel",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw _r("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r;t:{for(r=0;r <= >= && || ! = |".split(" "),function(t){mi[t]=!0});var vi={n:"\n",f:"\f",r:"\r",t:" ",v:"\x0B","'":"'",'"':'"'},gi=function(t){this.options=t};gi.prototype={constructor:gi,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index="0"&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||" "===t||"\n"===t||"\x0B"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&56319>=n&&r>=56320&&57343>=r?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=v(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,hi("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index","<=",">=");)e={type:yi.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:yi.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:yi.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:yi.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=j(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:yi.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:yi.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:yi.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:yi.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:yi.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.filterChain());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:yi.Identifier,name:t.text}},constant:function(){return{type:yi.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:yi.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:yi.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:yi.ObjectExpression,properties:e}},throwError:function(t,e){throw hi("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw hi("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw hi("ueoe",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){t=this.tokens[t];var o=t.text;if(o===e||o===n||o===r||o===i||!(e||n||r||i))return t}return!1},expect:function(t,e,n,r){return(t=this.peek(t,e,n,r))?(this.tokens.shift(),t):!1},selfReferential:{"this":{type:yi.ThisExpression},$locals:{type:yi.LocalsExpression}}},_e.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Pe(i,n.$filter);var o,a="";return this.stage="assign",(o=Ue(i))&&(this.state.computing="assign",a=this.nextId(),this.recurse(o,a),this.return_(a),a="fn.assign="+this.generateFunction("assign","s,v,l")),o=Re(i.body),n.stage="inputs",r(o,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i),a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",a=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",a)(this.$filter,Me,Te,Ve,Ne,je,Ie,De,t),this.state=this.stage=void 0,a.literal=qe(i),a.constant=i.constant,a},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,i,o,a){var s,u,c,l,f,p=this;if(i=i||h,!a&&v(t.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));else switch(t.type){case yi.Program:r(t.body,function(e,n){p.recurse(e.expression,void 0,void 0,function(t){u=t}),n!==t.body.length-1?p.current().body.push(u,";"):p.return_(u)});break;case yi.Literal:l=this.escape(t.value),this.assign(e,l),i(l);break;case yi.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){u=t}),l=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,l),i(l);break;case yi.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){u=t}),l="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,l),i(l);break;case yi.LogicalExpression:e=e||this.nextId(),p.recurse(t.left,e),p.if_("&&"===t.operator?e:p.not(e),p.lazyRecurse(t.right,e)),i(e);break;case yi.ConditionalExpression:e=e||this.nextId(),p.recurse(t.test,e),p.if_(e,p.lazyRecurse(t.alternate,e),p.lazyRecurse(t.consequent,e)),i(e);break;case yi.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),Me(t.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",t.name)),function(){p.if_("inputs"===p.stage||"s",function(){o&&1!==o&&p.if_(p.not(p.nonComputedMember("s",t.name)),p.lazyAssign(p.nonComputedMember("s",t.name),"{}")),p.assign(e,p.nonComputedMember("s",t.name))})},e&&p.lazyAssign(e,p.nonComputedMember("l",t.name))),(p.state.expensiveChecks||Be(t.name))&&p.addEnsureSafeObject(e),i(e);break;case yi.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),p.recurse(t.object,s,void 0,function(){p.if_(p.notNull(s),function(){o&&1!==o&&p.addEnsureSafeAssignContext(s),t.computed?(u=p.nextId(),p.recurse(t.property,u),p.getStringValue(u),p.addEnsureSafeMemberName(u),o&&1!==o&&p.if_(p.not(p.computedMember(s,u)),p.lazyAssign(p.computedMember(s,u),"{}")),l=p.ensureSafeObject(p.computedMember(s,u)),p.assign(e,l),n&&(n.computed=!0,n.name=u)):(Me(t.property.name),o&&1!==o&&p.if_(p.not(p.nonComputedMember(s,t.property.name)),p.lazyAssign(p.nonComputedMember(s,t.property.name),"{}")),l=p.nonComputedMember(s,t.property.name),(p.state.expensiveChecks||Be(t.property.name))&&(l=p.ensureSafeObject(l)),p.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))},function(){p.assign(e,"undefined")}),i(e)},!!o);break;case yi.CallExpression:e=e||this.nextId(),t.filter?(u=p.filter(t.callee.name),c=[],r(t.arguments,function(t){var e=p.nextId();p.recurse(t,e),c.push(e)}),l=u+"("+c.join(",")+")",p.assign(e,l),i(e)):(u=p.nextId(),s={},c=[],p.recurse(t.callee,u,s,function(){p.if_(p.notNull(u),function(){p.addEnsureSafeFunction(u),r(t.arguments,function(t){p.recurse(t,p.nextId(),void 0,function(t){c.push(p.ensureSafeObject(t))})}),s.name?(p.state.expensiveChecks||p.addEnsureSafeObject(s.context),l=p.member(s.context,s.name,s.computed)+"("+c.join(",")+")"):l=u+"("+c.join(",")+")",l=p.ensureSafeObject(l),p.assign(e,l)},function(){p.assign(e,"undefined")}),i(e)}));break;case yi.AssignmentExpression:if(u=this.nextId(),s={},!Fe(t.left))throw hi("lval");this.recurse(t.left,void 0,s,function(){p.if_(p.notNull(s.context),function(){p.recurse(t.right,u),p.addEnsureSafeObject(p.member(s.context,s.name,s.computed)),p.addEnsureSafeAssignContext(s.context),l=p.member(s.context,s.name,s.computed)+t.operator+u,p.assign(e,l),i(e||l)})},1);break;case yi.ArrayExpression:c=[],r(t.elements,function(t){p.recurse(t,p.nextId(),void 0,function(t){c.push(t)})}),l="["+c.join(",")+"]",this.assign(e,l),i(l);break;case yi.ObjectExpression:c=[],f=!1,r(t.properties,function(t){t.computed&&(f=!0)}),f?(e=e||this.nextId(),this.assign(e,"{}"),r(t.properties,function(t){t.computed?(s=p.nextId(),p.recurse(t.key,s)):s=t.key.type===yi.Identifier?t.key.name:""+t.key.value,u=p.nextId(),p.recurse(t.value,u),p.assign(p.member(e,s,t.computed),u)})):(r(t.properties,function(e){p.recurse(e.value,t.constant?void 0:p.nextId(),void 0,function(t){c.push(p.escape(e.key.type===yi.Identifier?e.key.name:""+e.key.value)+":"+t)})}),l="{"+c.join(",")+"}",this.assign(e,l)),i(e||l);break;case yi.ThisExpression:this.assign(e,"s"),i("s");break;case yi.LocalsExpression:this.assign(e,"l"),i("l");break;case yi.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){return t?(this.current().body.push(t,"=",e,";"),t):void 0},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[^$_a-zA-Z0-9]/g;return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(e)?t+"."+e:t+'["'+e.replace(n,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(b(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw hi("esc")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Le.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,Pe(i,n.$filter);var o,a;(o=Ue(i))&&(a=this.recurse(o)),o=Re(i.body);var s;o&&(s=[],r(o,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var u=[];return r(i.body,function(t){u.push(n.recurse(t.expression))}),o=0===i.body.length?h:1===i.body.length?u[0]:function(t,e){var n;return r(u,function(r){n=r(t,e)}),n},a&&(o.assign=function(t,e,n){return a(t,n,e)}),s&&(o.inputs=s),o.literal=qe(i),o.constant=i.constant,o},recurse:function(t,e,n){var i,o,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case yi.Literal:return this.value(t.value,e);case yi.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case yi.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yi.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case yi.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case yi.Identifier:return Me(t.name,s.expression),s.identifier(t.name,s.expensiveChecks||Be(t.name),e,n,s.expression);case yi.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(Me(t.property.name,s.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,e,n,s.expression);case yi.CallExpression:return a=[],r(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var s=[],u=0;u":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)>e(r,i,o,a),n?{value:r}:r}},"binary<=":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)<=e(r,i,o,a),n?{value:r}:r}},"binary>=":function(t,e,n){return function(r,i,o,a){
return r=t(r,i,o,a)>=e(r,i,o,a),n?{value:r}:r}},"binary&&":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)&&e(r,i,o,a),n?{value:r}:r}},"binary||":function(t,e,n){return function(r,i,o,a){return r=t(r,i,o,a)||e(r,i,o,a),n?{value:r}:r}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){return i=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s),r?{value:i}:i}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n,r,i){return function(o,a,s,u){return o=a&&t in a?a:o,r&&1!==r&&o&&!o[t]&&(o[t]={}),a=o?o[t]:void 0,e&&Te(a,i),n?{context:o,name:t,value:a}:a}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var c,l,f=t(o,a,s,u);return null!=f&&(c=e(o,a,s,u),c+="",Me(c,i),r&&1!==r&&(je(f),f&&!f[c]&&(f[c]={})),l=f[c],Te(l,i)),n?{context:f,name:c,value:l}:l}},nonComputedMember:function(t,e,n,r,i,o){return function(a,s,u,c){return a=t(a,s,u,c),i&&1!==i&&(je(a),a&&!a[e]&&(a[e]={})),s=null!=a?a[e]:void 0,(n||Be(e))&&Te(s,o),r?{context:a,name:e,value:s}:s}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var bi=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new yi(t,n),this.astCompiler=n.csp?new Le(this.ast,e):new _e(this.ast,e)};bi.prototype={constructor:bi,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var wi=Object.prototype.valueOf,xi=e("$sce"),Si={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ci=e("$compile"),Ei=t.document.createElement("a"),Ai=sn(t.location.href);ln.$inject=["$document"],hn.$inject=["$provide"];var ki=22,Oi=".",Mi="0";vn.$inject=["$locale"],gn.$inject=["$locale"];var Ni={yyyy:Sn("FullYear",4,0,!1,!0),yy:Sn("FullYear",2,0,!0,!0),y:Sn("FullYear",1,0,!1,!0),MMMM:Cn("Month"),MMM:Cn("Month",!0),MM:Sn("Month",2,1),M:Sn("Month",1,1),LLLL:Cn("Month",!1,!0),dd:Sn("Date",2),d:Sn("Date",1),HH:Sn("Hours",2),H:Sn("Hours",1),hh:Sn("Hours",2,-12),h:Sn("Hours",1,-12),mm:Sn("Minutes",2),m:Sn("Minutes",1),ss:Sn("Seconds",2),s:Sn("Seconds",1),sss:Sn("Milliseconds",3),EEEE:Cn("Day"),EEE:Cn("Day",!0),a:function(t,e){return 12>t.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return t=-1*n,t=(t>=0?"+":"")+(xn(Math[t>0?"floor":"ceil"](t/60),2)+xn(Math.abs(t%60),2))},ww:An(2),w:An(1),G:kn,GG:kn,GGG:kn,GGGG:function(t,e){return 0>=t.getFullYear()?e.ERANAMES[0]:e.ERANAMES[1]}},Ti=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Vi=/^\-?\d+$/;On.$inject=["$locale"];var ji=d(Kn),Ii=d(Yn);Vn.$inject=["$parse"];var Di=d({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===er.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Pi={};r(Tr,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=Kt("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Pi[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(jr,function(t,e){Pi[e]=function(){return{priority:100,link:function(t,n,r){return"ngPattern"===e&&"/"==r.ngPattern.charAt(0)&&(n=r.ngPattern.match(Zn))?void r.$set("ngPattern",new RegExp(n[1],n[2])):void t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=Kt("ng-"+t);Pi[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===er.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){e?(i.$set(a,e),Hn&&o&&r.prop(o,i[a])):"href"===t&&i.$set(a,null)})}}}});var Ri={$addControl:h,$$renameControl:function(t,e){t.$name=e},$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h};In.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Fi=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||h}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:In,compile:function(n,i){n.addClass(bo).addClass(go);var o=i.name?"name":t&&i.ngForm?"ngForm":!1;return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var c=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};n[0].addEventListener("submit",c,!1),n.on("$destroy",function(){e(function(){n[0].removeEventListener("submit",c,!1)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):h;o&&(l(t,s),i.$observe(o,function(e){s.$name!==e&&(l(t,void 0),s.$$parentForm.$$renameControl(s,e),(l=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(t,void 0),u(s,Ri)})}}}}}]},Ui=Fi(),qi=Fi(!0),_i=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Li=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Bi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Hi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,zi=/^(\d{4,})-(\d{2})-(\d{2})$/,Wi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Gi=/^(\d{4,})-W(\d\d)$/,Zi=/^(\d{4,})-(\d\d)$/,Ji=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ki=at();r(["date","datetime-local","month","time","week"],function(t){Ki[t]=!0});var Yi={text:function(t,e,n,r,i,o){Pn(t,e,n,r,i,o),Dn(r)},date:Fn("date",zi,Rn(zi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Fn("datetimelocal",Wi,Rn(Wi,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Fn("time",Ji,Rn(Ji,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Fn("week",Gi,function(t,e){if(x(t))return t;if(b(t)){Gi.lastIndex=0;var n=Gi.exec(t);if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,u=En(r),i=7*(i-1);return e&&(n=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),s=e.getMilliseconds()),new Date(r,0,u.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:Fn("month",Zi,Rn(Zi,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o){if(Un(t,e,n,r),Pn(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Hi.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!w(t))throw So("numfmt",t);t=t.toString()}return t}),v(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||m(a)||t>=a},n.$observe("min",function(t){v(t)&&!w(t)&&(t=parseFloat(t,10)),a=w(t)&&!isNaN(t)?t:void 0,r.$validate()})}if(v(n.max)||n.ngMax){var s;r.$validators.max=function(t){return r.$isEmpty(t)||m(s)||s>=t},n.$observe("max",function(t){v(t)&&!w(t)&&(t=parseFloat(t,10)),s=w(t)&&!isNaN(t)?t:void 0,r.$validate()})}},url:function(t,e,n,r,i,o){Pn(t,e,n,r,i,o),Dn(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Li.test(n)}},email:function(t,e,n,r,i,o){Pn(t,e,n,r,i,o),Dn(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Bi.test(n)}},radio:function(t,e,n,r){m(n.name)&&e.attr("name",++or),e.on("click",function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)}),r.$render=function(){e[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,a,s){var u=qn(s,t,"ngTrueValue",n.ngTrueValue,!0),c=qn(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){r.$setViewValue(e[0].checked,t&&t.type)}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return I(t,u)}),r.$parsers.push(function(t){return t?u:c})},hidden:h,button:h,submit:h,reset:h,file:h},Xi=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Yi[Kn(a.type)]||Yi.text)(i,o,a,s[0],e,t,n,r)}}}}],Qi=/^(true|false|\d+)$/,to=function(){return{restrict:"A",priority:100,compile:function(t,e){return Qi.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},eo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=m(t)?"":t})}}}}],no=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){n=t(r.attr(i.$attr.ngBindTemplate)),e.$$addBindingInfo(r,n.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=m(t)?"":t})}}}}],ro=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")})}}}}],io=d({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),oo=_n("",!0),ao=_n("Odd",0),so=_n("Even",1),uo=jn({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),co=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],lo={},fo={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Kt("ng-"+t);lo[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};fo[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var ho=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=ot(s.clone),t.leave(c).then(function(){c=null}),s=null))})}}}],po=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ir.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,h,p,d=0,$=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!v(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t,t=l(e,function(t){$(),n.enter(t,null,i).then(u)}),f=e,p=t,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h!==d||($(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):($(),c.template=null)})}}}}],$o=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){er.call(r[0]).match(/SVG/)?(r.empty(),e(ht(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),e(r.contents())(n))}}}],mo=jn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),vo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?ur(o):o;i.$parsers.push(function(t){if(!m(t)){var e=[];return t&&r(t.split(s),function(t){t&&e.push(a?ur(t):t)}),e}}),i.$formatters.push(function(t){return ar(t)?t.join(o):void 0}),i.$isEmpty=function(t){return!t||!t.length}}}},go="ng-valid",yo="ng-invalid",bo="ng-pristine",wo="ng-dirty",xo="ng-pending",So=e("ngModel"),Co=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,a,s,u,c,l){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(t),this.$$parentForm=Ri;var f,p=o(n.ngModel),d=p.assign,$=p,g=d,y=null,b=this;this.$$setOptions=function(t){if((b.$options=t)&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");$=function(t){var n=p(t);return S(n)&&(n=e(t)),n},g=function(t,e){S(p(t))?r(t,{$$$p:e}):d(t,e)}}else if(!p.assign)throw So("nonassign",n.ngModel,L(i))},this.$render=h,this.$isEmpty=function(t){return m(t)||""===t||null===t||t!==t},this.$$updateEmptyClasses=function(t){b.$isEmpty(t)?(a.removeClass(i,"ng-not-empty"),a.addClass(i,"ng-empty")):(a.removeClass(i,"ng-empty"),a.addClass(i,"ng-not-empty"))};var x=0;Ln({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,wo),a.addClass(i,bo)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,bo),a.addClass(i,wo),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){s.cancel(y),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!w(b.$modelValue)||!isNaN(b.$modelValue)){var t=b.$$rawModelValue,e=b.$valid,n=b.$modelValue,r=b.$options&&b.$options.allowInvalid;b.$$runValidators(t,b.$$lastCommittedViewValue,function(i){r||e===i||(b.$modelValue=i?t:void 0,b.$modelValue!==n&&b.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var n=!0;return r(b.$validators,function(r,i){var o=r(t,e);n=n&&o,a(i,o)}),n?!0:(r(b.$asyncValidators,function(t,e){a(e,null)}),!1)}function o(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var s=r(t,e);if(!s||!S(s.then))throw So("nopromise",s);a(o,void 0),n.push(s.then(function(){a(o,!0)},function(){i=!1,a(o,!1)}))}),n.length?c.all(n).then(function(){s(i)},h):s(!0)}function a(t,e){u===x&&b.$setValidity(t,e)}function s(t){u===x&&n(t)}x++;var u=x;(function(){var t=b.$$parserName||"parse";return m(f)?(a(t,null),!0):(f||(r(b.$validators,function(t,e){a(e,null)}),r(b.$asyncValidators,function(t,e){a(e,null)})),a(t,f),f)})()&&i()?o():s(!1)},this.$commitViewValue=function(){var t=b.$viewValue;s.cancel(y),(b.$$lastCommittedViewValue!==t||""===t&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(t),b.$$lastCommittedViewValue=t,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=b.$$lastCommittedViewValue;if(f=m(e)?void 0:!0)for(var n=0;no;o++){var u=t===n?o:n[o],c=t[u],u=b(c,u),c=p(c,u);e.push(c),(s[2]||s[1])&&(c=$(r,u),e.push(c)),s[4]&&(u=v(r,u),e.push(u))}return e}),getOptions:function(){for(var t=[],e={},n=g(r)||[],o=a(n),s=o.length,u=0;s>u;u++){var c=n===o?u:o[u],h=b(n[c],c),y=f(r,h),c=p(y,h),w=$(r,h),x=m(r,h),h=v(r,h),y=new i(c,y,w,x,h);t.push(y),e[c]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[d(t)]},getViewValueFromOption:function(t){return l?ir.copy(t.viewValue):t.viewValue}}}}}var s=t.document.createElement("option"),u=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=h},post:function(t,n,o,c){function l(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function f(){var t=w&&p.readValue();if(w)for(var e=w.items.length-1;e>=0;e--){var r=w.items[e];Ot(r.group?r.element.parentNode:r.element)}w=x.getOptions();var i={};y&&n.prepend(h),w.items.forEach(function(t){var e;if(v(t.group)){e=i[t.group],e||(e=u.cloneNode(!1),S.appendChild(e),e.label=t.group,i[t.group]=e);var n=s.cloneNode(!1)}else e=S,n=s.cloneNode(!1);e.appendChild(n),l(t,n)}),n[0].appendChild(S),d.$render(),d.$isEmpty(t)||(e=p.readValue(),(x.trackBy||$?I(t,e):t===e)||(d.$setViewValue(e),d.$render()))}var h,p=c[0],d=c[1],$=o.multiple;c=0;for(var m=n.children(),g=m.length;g>c;c++)if(""===m[c].value){h=m.eq(c);break}var y=!!h,b=zn(s.cloneNode(!1));b.val("?");var w,x=a(o.ngOptions,n,t),S=i[0].createDocumentFragment();$?(d.$isEmpty=function(t){return!t||0===t.length},p.writeValue=function(t){w.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){(t=w.getOptionFromViewValue(t))&&(t.element.selected=!0)})},p.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){(t=w.selectValueMap[t])&&!t.disabled&&e.push(w.getViewValueFromOption(t))}),e},x.trackBy&&t.$watchCollection(function(){return ar(d.$viewValue)?d.$viewValue.map(function(t){return x.getTrackByValue(t)}):void 0},function(){d.$render()})):(p.writeValue=function(t){var e=w.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(b.remove(),y||h.remove(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||y?(b.remove(),y||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)):(y||h.remove(),n.prepend(b),n.val("?"),b.prop("selected",!0),b.attr("selected",!0))},p.readValue=function(){var t=w.selectValueMap[n.val()];return t&&!t.disabled?(y||h.remove(),b.remove(),w.getViewValueFromOption(t)):null},x.trackBy&&t.$watch(function(){return x.getTrackByValue(d.$viewValue)},function(){d.$render()})),y?(h.remove(),e(h)(t),h.removeClass("ng-scope")):h=zn(s.cloneNode(!1)),n.empty(),f(),t.$watchCollection(x.getWatchables,f)}}}}],Vo=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function c(t){s.text(t||"")}var l,f=u.count,p=u.$attr.when&&s.attr(u.$attr.when),d=u.offset||0,$=a.$eval(p)||{},v={},g=e.startSymbol(),y=e.endSymbol(),b=g+f+"-"+d+y,x=ir.noop;r(u,function(t,e){var n=o.exec(e);n&&(n=(n[1]?"-":"")+Kn(n[2]),$[n]=s.attr(u.$attr[e]))}),r($,function(t,n){v[n]=e(t.replace(i,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);i||r in $||(r=t.pluralCat(r-d)),r===l||i&&w(l)&&isNaN(l)||(x(),i=v[r],m(i)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+p),x=h,c()):x=a.$watch(i,c),l=r)})}}}],jo=["$parse","$animate","$compile",function(t,i,o){var a=e("ngRepeat"),s=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,u){var c=u.ngRepeat,l=o.$$createComment("end ngRepeat",c),f=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!f)throw a("iexp",c);var h=f[1],p=f[2],d=f[3],$=f[4],f=h.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!f)throw a("iidexp",h);var m=f[3]||f[1],v=f[2];if(d&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw a("badident",d);var g,y,b,w,x={$id:Dt};return $?g=t($):(b=function(t,e){return Dt(e)},w=function(t){return t}),function(t,e,o,u,f){g&&(y=function(e,n,r){return v&&(x[v]=e),x[m]=n,x.$index=r,g(t,x)});var h=at();t.$watchCollection(p,function(o){var u,p,$,g,x,S,C,E,A,k,O=e[0],M=at();if(d&&(t[d]=o),n(o))E=o,p=y||b;else for(k in p=y||w,E=[],o)Jn.call(o,k)&&"$"!==k.charAt(0)&&E.push(k);for(g=E.length,k=Array(g),u=0;g>u;u++)if(x=o===E?u:E[u],S=o[x],C=p(x,S,u),h[C])A=h[C],delete h[C],M[C]=A,k[u]=A;else{if(M[C])throw r(k,function(t){t&&t.scope&&(h[t.id]=t)}),a("dupes",c,C,S);k[u]={id:C,scope:void 0,clone:void 0},M[C]=!0}for($ in h){if(A=h[$],C=ot(A.clone),i.leave(C),C[0].parentNode)for(u=0,p=C.length;p>u;u++)C[u].$$NG_REMOVED=!0;A.scope.$destroy()}for(u=0;g>u;u++)if(x=o===E?u:E[u],S=o[x],A=k[u],A.scope){$=O;do $=$.nextSibling;while($&&$.$$NG_REMOVED);A.clone[0]!=$&&i.move(ot(A.clone),null,O),O=A.clone[A.clone.length-1],s(A.scope,u,m,S,v,x,g)}else f(function(t,e){A.scope=e;var n=l.cloneNode(!1);t[t.length++]=n,i.enter(t,null,O),O=n,A.clone=t,M[A.id]=A,s(A.scope,u,m,S,v,x,g)});h=M})}}}}],Io=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Do=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Po=jn(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Ro=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=[],u=[],c=[],l=[],f=function(t,e){return function(){t.splice(e,1)}};n.$watch(o.ngSwitch||o.on,function(n){var i,o;for(i=0,o=c.length;o>i;++i)t.cancel(c[i]);for(i=c.length=0,o=l.length;o>i;++i){var h=ot(u[i].clone);l[i].$destroy(),(c[i]=t.leave(h)).then(f(c,i))}u.length=0,l.length=0,(s=a.cases["!"+n]||a.cases["?"])&&r(s,function(n){n.transclude(function(r,i){l.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen"),u.push({clone:r}),t.enter(r,o.parent(),o)})})})}}}],Fo=jn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Uo=jn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),qo=e("ngTransclude"),_o=jn({restrict:"EAC",link:function(t,e,n,r,i){if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw qo("orphan",L(e));i(function(t){t.length&&(e.empty(),e.append(t))},null,n.ngTransclude||n.ngTranscludeSlot)}}),Lo=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){"text/ng-template"==n.type&&t.put(n.id,e[0].text)}}}],Bo={$setViewValue:h,$render:h},Ho=["$element","$scope",function(e,n){var r=this,i=new Pt;r.ngModelCtrl=Bo,r.unknownOption=zn(t.document.createElement("option")),r.renderUnknownOption=function(t){t="? "+Dt(t)+" ?",r.unknownOption.val(t),e.prepend(r.unknownOption),e.val(t)},n.$on("$destroy",function(){r.renderUnknownOption=h}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(8!==e[0].nodeType){rt(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),e[0].hasAttribute("selected")&&(e[0].selected=!0)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){if(i){var a;n.$observe("value",function(t){v(a)&&r.removeOption(a),a=t,r.addOption(t,e)})}else o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],zo=function(){return{restrict:"E",require:["select","?ngModel"],controller:Ho,priority:1,link:{pre:function(t,e,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Pt(t);r(e.find("option"),function(t){t.selected=v(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==o.$viewValue||I(s,o.$viewValue)||(s=ut(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Wo=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(v(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o=e.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&&o.registerOption(t,e,n,r,i)}}}}],Go=d({restrict:"E",terminal:!1}),Zo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Jo=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(b(t)&&0i||r.$isEmpty(e)||e.length<=i}}}}},Yo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=l(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(tt(),ct(ir),ir.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,n){var r=0|t,i=n;return void 0===i&&(i=Math.min(e(t),3)),Math.pow(10,i),1==r&&0==i?"one":"other"}})}]),zn(t.document).ready(function(){J(t.document,K)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('');var cutsTheMustard="querySelector"in document&&"localStorage"in window&&"addEventListener"in window;cutsTheMustard&&(document.documentElement.className=document.documentElement.className.replace(/\bcore\b/g,"enhanced")),addScript("https://cdn.polyfill.io/v2/polyfill.min.js");FirstFT Quiz: the week in news
How well did you keep up with the news this week? Take our quiz to find out
Published by Bryan Harris and David Blood
FirstFT is your essential daily email briefing of the world's top stories from the FT and the best of the rest of the web. Sign Up Now
Question {{$index + 1}} of 10
{{questions[$index].imgcredit}}
{{questions[$index].answercopy}}
{{userScore.value}}/{{questions.length}}