/,">"))}return r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),r.unshift("ng"),t=Se(r),t.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),t},o=/^NG_DEFER_BOOTSTRAP!/;return t&&!o.test(t.name)?i():(t.name=t.name.replace(o,""),void(ir.resumeBootstrap=function(t){a(t,function(t){r.push(t)}),i()}))}function z(t,e){return e=e||"_",t.replace(lr,function(t,n){return(n?e:"")+t.toLowerCase()})}function q(t,e,n){if(!t)throw rr("areq",e||"?",n||"required");return t}function W(t,e,n){return n&&or(t)&&(t=t[t.length-1]),q(b(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function X(t,e){if("hasOwnProperty"===t)throw rr("badname",e)}function Z(t,e,n){if(!e)return t;e=e.split(".");for(var r,i=t,a=e.length,o=0;a>o;o++)r=e[o],t&&(t=(i=t)[r]);return!n&&b(t)?x(i,t):t}function J(t){var e=t[0];if(t=t[t.length-1],e===t)return zn(e);var n=[e];do{if(e=e.nextSibling,!e)break;n.push(e)}while(e!==t);return zn(n)}function K(t){var e=r("$injector"),n=r("ng");return t=t.angular||(t.angular={}),t.$$minErr=t.$$minErr||r,t.module||(t.module=function(){var t={};return function(r,i,a){if("hasOwnProperty"===r)throw n("badname","module");return i&&t.hasOwnProperty(r)&&(t[r]=null),t[r]||(t[r]=function(){function t(t,e,r){return function(){return n[r||"push"]([t,e,arguments]),u}}if(!i)throw e("nomod",r);var n=[],o=[],s=t("$injector","invoke"),u={_invokeQueue:n,_runBlocks:o,requires:i,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:s,run:function(t){return o.push(t),this}};return a&&s(a),u}())}}())}function Q(e){d(e,{bootstrap:B,copy:I,extend:d,equals:C,element:zn,forEach:a,injector:Se,noop:h,bind:x,toJson:P,fromJson:U,identity:m,isUndefined:g,isDefined:$,isString:T,isFunction:b,isObject:E,isNumber:S,isElement:O,isArray:or,version:cr,isDate:A,lowercase:Jn,uppercase:Qn,callbacks:{counter:0},$$minErr:r,$$csp:ur}),Wn=K(t);try{Wn("ngLocale")}catch(n){Wn("ngLocale",[]).provider("$locale",Ve)}Wn("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:vn}),t.provider("$compile",_e).directive({a:si,input:$i,textarea:$i,form:di,script:ta,select:ra,style:aa,option:ia,ngBind:Ii,ngBindHtml:Ci,ngBindTemplate:Mi,ngClass:xi,ngClassEven:Pi,ngClassOdd:Li,ngCloak:Ui,ngController:Di,ngForm:fi,ngHide:Wi,ngIf:Hi,ngInclude:ji,ngInit:Vi,ngNonBindable:Yi,ngPluralize:Bi,ngRepeat:zi,ngShow:qi,ngStyle:Xi,ngSwitch:Zi,ngSwitchWhen:Ji,ngSwitchDefault:Ki,ngOptions:na,ngTransclude:Qi,ngModel:yi,ngList:wi,ngChange:Ri,required:Oi,ngRequired:Oi,ngValue:Ni}).directive({ngInclude:Gi}).directive(ui).directive(ki),t.provider({$anchorScroll:Ae,$animate:Cr,$browser:Re,$cacheFactory:Oe,$controller:Me,$document:Ce,$exceptionHandler:xe,$filter:On,$interpolate:je,$interval:Ge,$http:De,$httpBackend:Fe,$location:en,$log:nn,$parse:dn,$rootScope:mn,$q:fn,$sce:Tn,$sceDelegate:En,$sniffer:Sn,$templateCache:we,$timeout:An,$window:Rn,$$rAF:hn,$$asyncCallback:be})}])}function te(t){return t.replace(mr,function(t,e,n,r){return r?n.toUpperCase():n}).replace(vr,"Moz$1")}function ee(t,e,n,r){function i(t){var i,o,s,u,l,c,d=n&&t?[this.filter(t)]:[this],f=e;if(!r||null!=t)for(;d.length;)for(i=d.shift(),o=0,s=i.length;s>o;o++)for(u=zn(i[o]),f?u.triggerHandler("$destroy"):f=!f,l=0,u=(c=u.children()).length;u>l;l++)d.push(qn(c[l]));return a.apply(this,arguments)}var a=qn.fn[t],a=a.$original||a;i.$original=a,qn.fn[t]=i}function ne(t){if(t instanceof ne)return t;if(T(t)&&(t=sr(t)),!(this instanceof ne)){if(T(t)&&"<"!=t.charAt(0))throw gr("nosel");return new ne(t)}if(T(t)){var n=t;t=e;var r;if(r=$r.exec(n))t=[t.createElement(r[1])];else{var i,a=t;if(t=a.createDocumentFragment(),r=[],Er.test(n)){for(a=t.appendChild(a.createElement("div")),i=(Tr.exec(n)||["",""])[1].toLowerCase(),i=Ar[i]||Ar._default,a.innerHTML="
"+i[1]+n.replace(Sr,"<$1>$2>")+i[2],a.removeChild(a.firstChild),n=i[0];n--;)a=a.lastChild;for(n=0,i=a.childNodes.length;i>n;++n)r.push(a.childNodes[n]);a=t.firstChild,a.textContent=""}else r.push(a.createTextNode(n));t.textContent="",t.innerHTML="",t=r}fe(this,t),zn(e.createDocumentFragment()).append(this)}else fe(this,t)}function re(t){return t.cloneNode(!0)}function ie(t){oe(t);var e=0;for(t=t.childNodes||[];ei;i++)if((r=zn.data(t,e[i]))!==n)return r;t=t.parentNode||11===t.nodeType&&t.host}}function me(t){for(var e=0,n=t.childNodes;e=Bn?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=t,r}function $e(t,e){var r,i=typeof t;return"function"==i||"object"==i&&null!==t?"function"==typeof(r=t.$$hashKey)?r=t.$$hashKey():r===n&&(r=t.$$hashKey=(e||l)()):r=t,i+":"+r}function Ee(t,e){if(e){var n=0;this.nextUid=function(){return++n}}a(t,this.put,this)}function Te(t){var e,n;return"function"==typeof t?(e=t.$inject)||(e=[],t.length&&(n=t.toString().replace(Nr,""),n=n.match(Or),a(n[1].split(wr),function(t){t.replace(_r,function(t,n,r){e.push(r)})})),t.$inject=e):or(t)?(n=t.length-1,W(t[n],"fn"),e=t.slice(0,n)):W(t,"fn",!0),e}function Se(t){function e(t){return function(e,n){return E(e)?void a(e,u(t)):t(e,n)}}function n(t,e){if(X(t,"service"),(b(e)||or(e))&&(e=p.instantiate(e)),!e.$get)throw Ir("pget",t);return f[t+l]=e}function r(t,e){return n(t,{$get:e})}function i(t){var e,n,r,o,s=[];return a(t,function(t){if(!d.get(t)){d.put(t,!0);try{if(T(t))for(e=Wn(t),s=s.concat(i(e.requires)).concat(e._runBlocks),n=e._invokeQueue,r=0,o=n.length;o>r;r++){var a=n[r],u=p.get(a[0]);u[a[1]].apply(u,a[2])}else b(t)?s.push(p.invoke(t)):or(t)?s.push(p.invoke(t)):W(t,"module")}catch(l){throw or(t)&&(t=t[t.length-1]),l.message&&l.stack&&-1==l.stack.indexOf(l.message)&&(l=l.message+"\n"+l.stack),Ir("modulerr",t,l.stack||l.message||l)}}}),s}function o(t,e){function n(n){if(t.hasOwnProperty(n)){if(t[n]===s)throw Ir("cdep",n+" <- "+c.join(" <- "));return t[n]}try{return c.unshift(n),t[n]=s,t[n]=e(n)}catch(r){throw t[n]===s&&delete t[n],r}finally{c.shift()}}function r(t,e,r){var i,a,o,s=[],u=Te(t);for(a=0,i=u.length;i>a;a++){if(o=u[a],"string"!=typeof o)throw Ir("itkn",o);s.push(r&&r.hasOwnProperty(o)?r[o]:n(o))}return or(t)&&(t=t[i]),t.apply(e,s)}return{invoke:r,instantiate:function(t,e){var n,i=function(){};return i.prototype=(or(t)?t[t.length-1]:t).prototype,i=new i,n=r(t,i,e),E(n)||b(n)?n:i},get:n,annotate:Te,has:function(e){return f.hasOwnProperty(e+l)||t.hasOwnProperty(e)}}}var s={},l="Provider",c=[],d=new Ee([],!0),f={$provide:{provider:e(n),factory:e(r),service:e(function(t,e){return r(t,["$injector",function(t){return t.instantiate(e)}])}),value:e(function(t,e){return r(t,v(e))}),constant:e(function(t,e){X(t,"constant"),f[t]=e,m[t]=e}),decorator:function(t,e){var n=p.get(t+l),r=n.$get;n.$get=function(){var t=g.invoke(r,n);return g.invoke(e,null,{$delegate:t})}}}},p=f.$injector=o(f,function(){throw Ir("unpr",c.join(" <- "))}),m={},g=m.$injector=o(m,function(t){return t=p.get(t+l),g.invoke(t.$get,t)});return a(i(t),function(t){g.invoke(t||h)}),g}function Ae(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return a(t,function(t){e||"a"!==Jn(t.nodeName)||(e=t)}),e}function o(){var t,r=n.hash();r?(t=s.getElementById(r))?t.scrollIntoView():(t=i(s.getElementsByName(r)))?t.scrollIntoView():"top"===r&&e.scrollTo(0,0):e.scrollTo(0,0)}var s=e.document;return t&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(o)}),o}]}function be(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]}function ye(t,e,r,i){function o(t){try{t.apply(null,tr.call(arguments,1))}finally{if($--,0===$)for(;E.length;)try{E.pop()()}catch(e){r.error(e)}}}function s(t,e){!function n(){a(A,function(t){t()}),S=e(n,t)}()}function u(){b!=l.url()&&(b=l.url(),a(O,function(t){t(l.url())}))}var l=this,c=e[0],d=t.location,f=t.history,p=t.setTimeout,m=t.clearTimeout,v={};l.isMock=!1;var $=0,E=[];l.$$completeOutstandingRequest=o,l.$$incOutstandingRequestCount=function(){$++},l.notifyWhenNoOutstandingRequests=function(t){a(A,function(t){t()}),0===$?t():E.push(t)};var S,A=[];l.addPollFn=function(t){return g(S)&&s(100,p),A.push(t),t};var b=d.href,y=e.find("base"),R=null;l.url=function(e,n){if(d!==t.location&&(d=t.location),f!==t.history&&(f=t.history),!e)return R||d.href.replace(/%27/g,"'");if(b!=e){var r=b&&We(b)===We(e);return b=e,!r&&i.history?n?f.replaceState(null,"",e):(f.pushState(null,"",e),y.attr("href",y.attr("href"))):(r||(R=e),n?d.replace(e):d.href=e),l}};var O=[],w=!1;l.onUrlChange=function(e){return w||(i.history&&zn(t).on("popstate",u),i.hashchange?zn(t).on("hashchange",u):l.addPollFn(u),w=!0),O.push(e),e},l.$$checkUrlChange=u,l.baseHref=function(){var t=y.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var _={},N="",I=l.baseHref();l.cookies=function(t,e){var i,a,o,s;if(!t){if(c.cookie!==N)for(N=c.cookie,i=N.split("; "),_={},o=0;o0&&(t=unescape(a.substring(0,s)),_[t]===n&&(_[t]=unescape(a.substring(s+1))));return _}e===n?c.cookie=escape(t)+"=;path="+I+";expires=Thu, 01 Jan 1970 00:00:00 GMT":T(e)&&(i=(c.cookie=escape(t)+"="+escape(e)+";path="+I).length+1,i>4096&&r.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},l.defer=function(t,e){var n;return $++,n=p(function(){delete v[n],o(t)},e||0),v[n]=!0,n},l.defer.cancel=function(t){return v[t]?(delete v[t],m(t),o(h),!0):!1}}function Re(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ye(t,r,e,n)}]}function Oe(){this.$get=function(){function t(t,n){function i(t){t!=f&&(p?p==t&&(p=t.n):p=t,a(t.n,t.p),a(t,f),f=t,f.n=null)}function a(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid",t);var o=0,s=d({},n,{id:t}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},f=null,p=null;return e[t]={put:function(t,e){if(ll&&this.remove(p.key),e)},get:function(t){if(l").parent()[0])});var o=_(t,e,t,n,r,i);return w(t,"ng-scope"),function(e,n,r,i){q(e,"scope");var s=n?br.clone.call(t):t;a(r,function(t,e){s.data("$"+e+"Controller",t)}),r=0;for(var u=s.length;u>r;r++){var l=s[r].nodeType;1!==l&&9!==l||s.eq(r).data("$scope",e)}return n&&n(s,e),o&&o(e,s,s,i),s}}function w(t,e){try{t.addClass(e)}catch(n){}}function _(t,e,r,i,a,o){function s(t,r,i,a){var o,s,u,l,c,d,p;o=r.length;var h=Array(o);for(l=0;o>l;l++)h[l]=r[l];for(d=l=0,c=f.length;c>l;d++)s=h[d],r=f[l++],o=f[l++],r?(r.scope?(u=t.$new(),zn.data(s,"$scope",u)):u=t,p=r.transcludeOnThisElement?N(t,r.transclude,a):!r.templateOnThisElement&&a?a:!a&&e?N(t,e):null,r(o,u,s,i,p)):o&&o(t,s.childNodes,n,a)}for(var u,l,c,d,f=[],p=0;pp;p++){var m=!1,v=!1;if(u=f[p],!Bn||Bn>=8||u.specified){a=u.name,c=sr(u.value),u=Ne(a),(d=te.test(u))&&(a=z(u.substr(6),"-"));var g=u.replace(/(Start|End)$/,"");u===g+"Start"&&(m=a,v=a.substr(0,a.length-5)+"end",a=a.substr(0,a.length-6)),u=Ne(a.toLowerCase()),o[u]=a,(d||!n.hasOwnProperty(u))&&(n[u]=c,ve(t,u)&&(n[u]=!0)),B(t,e,c,u),D(e,u,"A",r,i,m,v)}}if(t=t.className,T(t)&&""!==t)for(;a=l.exec(t);)u=Ne(a[2]),D(e,u,"C",r,i)&&(n[u]=sr(a[3])),t=t.substr(a.index+a[0].length);break;case 3:V(e,t.nodeValue);break;case 8:try{(a=s.exec(t.nodeValue))&&(u=Ne(a[1]),D(e,u,"M",r,i)&&(n[u]=sr(a[2])))}catch($){}}return e.sort(j),e}function x(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw xr("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 L(t,e,n){return function(r,i,a,o,s){return i=x(i[0],e,n),t(r,i,a,o,s)}}function P(t,i,o,s,l,c,d,f,p){function h(t,e,n,r){t&&(n&&(t=L(t,n,r)),t.require=A.require,t.directiveName=y,(D===A||A.$$isolateScope)&&(t=X(t,{isolateScope:!0})),d.push(t)),e&&(n&&(e=L(e,n,r)),e.require=A.require,e.directiveName=y,(D===A||A.$$isolateScope)&&(e=X(e,{isolateScope:!0})),f.push(e))}function m(t,e,n,r){var i,o="data",s=!1;if(T(e)){for(;"^"==(i=e.charAt(0))||"?"==i;)e=e.substr(1),"^"==i&&(o="inheritedData"),s=s||"?"==i;if(i=null,r&&"data"===o&&(i=r[e]),i=i||n[o]("$"+e+"Controller"),!i&&!s)throw xr("ctreq",e,t)}else or(e)&&(i=[],a(e,function(e){i.push(m(t,e,n,r))}));return i}function $(t,e,s,l,c){function p(t,e){var r;return 2>arguments.length&&(e=t,t=n),z&&(r=y),c(t,e,r)}var h,$,E,T,S,A,b,y={};if(h=i===s?o:M(o,new Z(zn(s),o.$attr)),$=h.$$element,D){var R=/^\s*([@=&])(\??)\s*(\w*)\s*$/;A=e.$new(!0),!j||j!==D&&j!==D.$$originalDirective?$.data("$isolateScopeNoTemplate",A):$.data("$isolateScope",A),w($,"ng-isolate-scope"),a(D.scope,function(t,n){var i,a,o,s,u=t.match(R)||[],l=u[3]||n,c="?"==u[2],u=u[1];switch(A.$$isolateBindings[n]=u+l,u){case"@":h.$observe(l,function(t){A[n]=t}),h.$$observers[l].$$scope=e,h[l]&&(A[n]=r(h[l])(e));break;case"=":if(c&&!h[l])break;a=v(h[l]),s=a.literal?C:function(t,e){return t===e||t!==t&&e!==e},o=a.assign||function(){throw i=A[n]=a(e),xr("nonassign",h[l],D.name)},i=A[n]=a(e),A.$watch(function(){var t=a(e);return s(t,A[n])||(s(t,i)?o(e,t=A[n]):A[n]=t),i=t},null,a.literal);break;case"&":a=v(h[l]),A[n]=function(t){return a(e,t)};break;default:throw xr("iscp",D.name,n,t)}})}for(b=c&&p,P&&a(P,function(t){var n,r={$scope:t===D||t.$$isolateScope?A:e,$element:$,$attrs:h,$transclude:b};S=t.controller,"@"==S&&(S=h[t.name]),n=g(S,r),y[t.name]=n,z||$.data("$"+t.name+"Controller",n),t.controllerAs&&(r.$scope[t.controllerAs]=n)}),l=0,E=d.length;E>l;l++)try{(T=d[l])(T.isolateScope?A:e,$,h,T.require&&m(T.directiveName,T.require,$,y),b)}catch(O){u(O,k($))}for(l=e,D&&(D.template||null===D.templateUrl)&&(l=A),t&&t(l,s.childNodes,n,c),l=f.length-1;l>=0;l--)try{(T=f[l])(T.isolateScope?A:e,$,h,T.require&&m(T.directiveName,T.require,$,y),b)}catch(_){u(_,k($))}}p=p||{};for(var S,A,y,R,_,N=-Number.MAX_VALUE,P=p.controllerDirectives,D=p.newIsolateScopeDirective,j=p.templateDirective,V=p.nonTlbTranscludeDirective,Y=!1,B=!1,z=p.hasElementTranscludeDirective,q=o.$$element=zn(i),J=s,K=0,te=t.length;te>K;K++){A=t[K];var ee=A.$$start,ne=A.$$end;if(ee&&(q=x(i,ee,ne)),R=n,N>A.priority)break;if((R=A.scope)&&(S=S||A,A.templateUrl||(G("new/isolated scope",D,A,q),E(R)&&(D=A))),y=A.name,!A.templateUrl&&A.controller&&(R=A.controller,P=P||{},G("'"+y+"' controller",P[y],A,q),P[y]=A),(R=A.transclude)&&(Y=!0,A.$$tlb||(G("transclusion",V,A,q),V=A),"element"==R?(z=!0,N=A.priority,R=q,q=o.$$element=zn(e.createComment(" "+y+": "+o[y]+" ")),i=q[0],W(l,tr.call(R,0),i),J=O(R,s,N,c&&c.name,{nonTlbTranscludeDirective:V})):(R=zn(re(i)).contents(),q.empty(),J=O(R,s))),A.template)if(B=!0,G("template",j,A,q),j=A,R=b(A.template)?A.template(q,o):A.template,R=Q(R),A.replace){if(c=A,R=Er.test(R)?zn(sr(R)):[],i=R[0],1!=R.length||1!==i.nodeType)throw xr("tplrt",y,"");W(l,q,i),te={$attr:{}},R=I(i,[],te);var ie=t.splice(K+1,t.length-(K+1));D&&U(R),t=t.concat(R).concat(ie),F(o,te),te=t.length}else q.html(R);if(A.templateUrl)B=!0,G("template",j,A,q),j=A,A.replace&&(c=A),$=H(t.splice(K,t.length-K),q,o,l,Y&&J,d,f,{controllerDirectives:P,newIsolateScopeDirective:D,templateDirective:j,nonTlbTranscludeDirective:V}),te=t.length;else if(A.compile)try{_=A.compile(q,o,J),b(_)?h(null,_,ee,ne):_&&h(_.pre,_.post,ee,ne)}catch(ae){u(ae,k(q))}A.terminal&&($.terminal=!0,N=Math.max(N,A.priority))}return $.scope=S&&!0===S.scope,$.transcludeOnThisElement=Y,$.templateOnThisElement=B,$.transclude=J,p.hasElementTranscludeDirective=z,$}function U(t){for(var e=0,n=t.length;n>e;e++)t[e]=p(t[e],{$$isolateScope:!0})}function D(e,r,a,s,l,c,d){if(r===l)return null;if(l=null,i.hasOwnProperty(r)){var f;r=t.get(r+o);for(var h=0,m=r.length;m>h;h++)try{f=r[h],(s===n||s>f.priority)&&-1!=f.restrict.indexOf(a)&&(c&&(f=p(f,{$$start:c,$$end:d})),e.push(f),l=f)}catch(v){u(v)}}return l}function F(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;a(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),a(e,function(e,a){"class"==a?(w(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,r[a]=n[a])})}function H(t,e,n,r,i,o,s,u){var l,c,p=[],m=e[0],v=t.shift(),g=d({},v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),$=b(v.templateUrl)?v.templateUrl(e,n):v.templateUrl;return e.empty(),f.get(A.getTrustedResourceUrl($),{cache:h}).success(function(d){var f,h;if(d=Q(d),v.replace){if(d=Er.test(d)?zn(sr(d)):[],f=d[0],1!=d.length||1!==f.nodeType)throw xr("tplrt",v.name,$);d={$attr:{}},W(r,e,f);var T=I(f,[],d);E(v.scope)&&U(T),t=T.concat(t),F(n,d)}else f=m,e.html(d);for(t.unshift(g),l=P(t,f,n,i,e,v,o,s,u),a(r,function(t,n){t==f&&(r[n]=e[0])}),c=_(e[0].childNodes,i);p.length;){d=p.shift(),h=p.shift();var S=p.shift(),A=p.shift(),T=e[0];if(h!==m){var b=h.className;u.hasElementTranscludeDirective&&v.replace||(T=re(f)),W(S,zn(h),T),w(zn(T),b)}h=l.transcludeOnThisElement?N(d,l.transclude,A):A,l(c,d,T,r,h)}p=null}).error(function(t,e,n,r){throw xr("tpload",r.url)}),function(t,e,n,r,i){t=i,p?(p.push(e),p.push(n),p.push(r),p.push(t)):(l.transcludeOnThisElement&&(t=N(e,l.transclude,i)),l(c,e,n,r,t))}}function j(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.namei;i++)if(t[i]==o){t[i++]=r,a=i+s-1;for(var l=t.length;l>i;i++,a++)l>a?t[i]=t[a]:delete t[i];t.length-=s-1;break}for(u&&u.replaceChild(r,o),t=e.createDocumentFragment(),t.appendChild(o),r[zn.expando]=o[zn.expando],o=1,s=n.length;s>o;o++)u=n[o],zn(u).remove(),t.appendChild(u),delete n[o];n[0]=r,n.length=1}function X(t,e){return d(function(){return t.apply(null,arguments)},t,e)}var Z=function(t,e){this.$$element=t,this.$attr=e||{}};Z.prototype={$normalize:Ne,$addClass:function(t){t&&0t.status?e:c.reject(e)}var r={method:"get",transformRequest:o.transformRequest,transformResponse:o.transformResponse},i=function(t){var e,n,r=o.headers,i=d({},t.headers),r=d({},r.common,r[Jn(t.method)]);t:for(e in r){t=Jn(e);for(n in i)if(Jn(n)===t)continue t;i[e]=r[e]}return function(t){var e;a(t,function(n,r){b(n)&&(e=n(),null!=e?t[r]=e:delete t[r])})}(i),i}(t);d(r,t),r.headers=i,r.method=Qn(r.method);var s=[function(t){i=t.headers;var n=Ue(t.data,Pe(i),t.transformRequest);return g(n)&&a(i,function(t,e){"content-type"===Jn(e)&&delete i[e]}),g(t.withCredentials)&&!g(o.withCredentials)&&(t.withCredentials=o.withCredentials),h(t,n,i).then(e,e)},n],u=c.when(r);for(a(S,function(t){(t.request||t.requestError)&&s.unshift(t.request,t.requestError),(t.response||t.responseError)&&s.push(t.response,t.responseError)});s.length;){t=s.shift();var l=s.shift(),u=u.then(t,l)}return u.success=function(t){return u.then(function(e){t(e.data,e.status,e.headers,r)}),u},u.error=function(t){return u.then(null,function(e){t(e.data,e.status,e.headers,r)}),u},u}function h(r,a,s){function u(t,e,n,r){f&&(t>=200&&300>t?f.put(A,[t,e,Le(n),r]):f.remove(A)),l(e,t,n,r),i.$$phase||i.$apply()}function l(t,e,n,i){e=Math.max(e,0),(e>=200&&300>e?T.resolve:T.reject)({data:t,status:e,headers:Pe(n),config:r,statusText:i})}function d(){var t=_(p.pendingRequests,r);-1!==t&&p.pendingRequests.splice(t,1)}var f,h,T=c.defer(),S=T.promise,A=m(r.url,r.params);if(p.pendingRequests.push(r),S.then(d,d),!r.cache&&!o.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(f=E(r.cache)?r.cache:E(o.cache)?o.cache:v),f)if(h=f.get(A),$(h)){if(h&&b(h.then))return h.then(d,d),h;or(h)?l(h[1],h[0],M(h[2]),h[3]):l(h,200,{},"OK")}else f.put(A,S);return g(h)&&((h=yn(r.url)?e.cookies()[r.xsrfCookieName||o.xsrfCookieName]:n)&&(s[r.xsrfHeaderName||o.xsrfHeaderName]=h),t(r.method,A,a,u,s,r.timeout,r.withCredentials,r.responseType)),S}function m(t,e){if(!e)return t;var n=[];return s(e,function(t,e){null===t||g(t)||(or(t)||(t=[t]),a(t,function(t){E(t)&&(t=A(t)?t.toISOString():P(t)),n.push(V(e)+"="+V(t))}))}),0=Bn&&(!e.match(/^(get|post|head|put|delete|options)$/i)||!t.XMLHttpRequest))return new t.ActiveXObject("Microsoft.XMLHTTP");if(t.XMLHttpRequest)return new t.XMLHttpRequest;throw r("$httpBackend")("noxhr")}function Fe(){this.$get=["$browser","$window","$document",function(t,e,n){return He(t,ke,t.defer,e.angular.callbacks,n[0])}]}function He(t,e,n,r,i){function o(t,e,n){var a=i.createElement("script"),o=null;return a.type="text/javascript",a.src=t,a.async=!0,o=function(t){hr(a,"load",o),hr(a,"error",o),i.body.removeChild(a),a=null;var s=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},pr(a,"load",o),pr(a,"error",o),8>=Bn&&(a.onreadystatechange=function(){T(a.readyState)&&/loaded|complete/.test(a.readyState)&&(a.onreadystatechange=null,o({type:"load"}))}),i.body.appendChild(a),o}var s=-1;return function(i,u,l,c,d,f,p,m){function v(){E=s,S&&S(),A&&A.abort()}function g(e,r,i,a,o){R&&n.cancel(R),S=A=null,0===r&&(r=i?200:"file"==bn(u).protocol?404:0),e(1223===r?204:r,i,a,o||""),t.$$completeOutstandingRequest(h)}var E;if(t.$$incOutstandingRequestCount(),u=u||t.url(),"jsonp"==Jn(i)){var T="_"+(r.counter++).toString(36);r[T]=function(t){r[T].data=t,r[T].called=!0};var S=o(u.replace("JSON_CALLBACK","angular.callbacks."+T),T,function(t,e){g(c,t,r[T].data,"",e),r[T]=h})}else{var A=e(i);if(A.open(i,u,!0),a(d,function(t,e){$(t)&&A.setRequestHeader(e,t)}),A.onreadystatechange=function(){if(A&&4==A.readyState){var t=null,e=null,n="";E!==s&&(t=A.getAllResponseHeaders(),e="response"in A?A.response:A.responseText),E===s&&10>Bn||(n=A.statusText),g(c,E||A.status,e,t,n)}},p&&(A.withCredentials=!0),m)try{A.responseType=m}catch(y){if("json"!==m)throw y}A.send(l||null)}if(f>0)var R=n(v,f);else f&&b(f.then)&&f.then(v)}}function je(){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 a(a,u,l){for(var c,d,f=0,p=[],h=a.length,m=!1,v=[];h>f;)-1!=(c=a.indexOf(t,f))&&-1!=(d=a.indexOf(e,c+o))?(f!=c&&p.push(a.substring(f,c)),p.push(f=n(m=a.substring(c+o,d))),f.exp=m,f=d+s,m=!0):(f!=h&&p.push(a.substring(f)),f=h);if((h=p.length)||(p.push(""),h=1),l&&1n;n++){if("function"==typeof(e=p[n]))if(e=e(t),e=l?i.getTrusted(l,e):i.valueOf(e),null==e)e="";else switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=P(e)}v[n]=e}return v.join("")}catch(s){t=Pr("interr",a,s.toString()),r(t)}},f.exp=a,f.parts=p,f):void 0}var o=t.length,s=e.length;return a.startSymbol=function(){return t},a.endSymbol=function(){return e},a}]}function Ge(){this.$get=["$rootScope","$window","$q",function(t,e,n){function r(r,a,o,s){var u=e.setInterval,l=e.clearInterval,c=n.defer(),d=c.promise,f=0,p=$(s)&&!s;return o=$(o)?o:0,d.then(null,null,r),d.$$intervalId=u(function(){c.notify(f++),o>0&&f>=o&&(c.resolve(f),l(d.$$intervalId),delete i[d.$$intervalId]),p||t.$apply()},a),i[d.$$intervalId]=c,d}var i={};return r.cancel=function(t){return t&&t.$$intervalId in i?(i[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete i[t.$$intervalId],!0):!1},r}]}function Ve(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(t){return 1===t?"one":"other"}}}}function Ye(t){t=t.split("/");for(var e=t.length;e--;)t[e]=G(t[e]);return t.join("/")}function Be(t,e,n){t=bn(t,n),e.$$protocol=t.protocol,e.$$host=t.hostname,e.$$port=f(t.port)||Dr[t.protocol]||null}function ze(t,e,n){var r="/"!==t.charAt(0);r&&(t="/"+t),t=bn(t,n),e.$$path=decodeURIComponent(r&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname),e.$$search=H(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function qe(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function We(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function Xe(t){return t.substr(0,We(t).lastIndexOf("/")+1)}function Ze(t,e){this.$$html5=!0,e=e||"";var r=Xe(t);Be(t,this,t),this.$$parse=function(e){var n=qe(r,e);if(!T(n))throw kr("ipthprfx",e,r);ze(n,this,t),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=j(this.$$search),e=this.$$hash?"#"+G(this.$$hash):"";this.$$url=Ye(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i){var a,o;return(a=qe(t,i))!==n?(o=a,o=(a=qe(e,a))!==n?r+(qe("/",a)||a):t+o):(a=qe(r,i))!==n?o=r+a:r==i+"/"&&(o=r),o&&this.$$parse(o),!!o}}function Je(t,e){var n=Xe(t);Be(t,this,t),this.$$parse=function(r){var i=qe(t,r)||qe(n,r),i="#"==i.charAt(0)?qe(e,i):this.$$html5?i:"";if(!T(i))throw kr("ihshprfx",r,e);ze(i,this,t),r=this.$$path;var a=/^\/[A-Z]:(\/.*)/;0===i.indexOf(t)&&(i=i.replace(t,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$compose=function(){var n=j(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=Ye(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e){return We(t)==We(e)?(this.$$parse(e),!0):!1}}function Ke(t,e){this.$$html5=!0,Je.apply(this,arguments);var n=Xe(t);this.$$parseLinkUrl=function(r){var i,a;return t==We(r)?i=r:(a=qe(n,r))?i=t+e+a:n===r+"/"&&(i=n),i&&this.$$parse(i),!!i},this.$$compose=function(){var n=j(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=Ye(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+e+this.$$url}}function Qe(t){return function(){return this[t]}}function tn(t,e){return function(n){return g(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function en(){var e="",n=!1;this.hashPrefix=function(t){return $(t)?(e=t,this):e},this.html5Mode=function(t){return $(t)?(n=t,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,a,o){function s(t){r.$broadcast("$locationChangeSuccess",u.absUrl(),t)}var u,l=i.baseHref(),c=i.url();n?(l=c.substring(0,c.indexOf("/",c.indexOf("//")+2))+(l||"/"),a=a.history?Ze:Ke):(l=We(c),a=Je),u=new a(l,"#"+e),u.$$parseLinkUrl(c,c);var d=/^\s*(javascript|mailto):/i;o.on("click",function(e){if(!e.ctrlKey&&!e.metaKey&&2!=e.which){for(var n=zn(e.target);"a"!==Jn(n[0].nodeName);)if(n[0]===o[0]||!(n=n.parent())[0])return;var a=n.prop("href"),s=n.attr("href")||n.attr("xlink:href");E(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=bn(a.animVal).href),d.test(a)||!a||n.attr("target")||e.isDefaultPrevented()||!u.$$parseLinkUrl(a,s)||(e.preventDefault(),u.absUrl()!=i.url()&&(r.$apply(),t.angular["ff-684208-preventDefault"]=!0))}}),u.absUrl()!=c&&i.url(u.absUrl(),!0),i.onUrlChange(function(t){u.absUrl()!=t&&(r.$evalAsync(function(){var e=u.absUrl();u.$$parse(t),r.$broadcast("$locationChangeStart",t,e).defaultPrevented?(u.$$parse(e),i.url(e)):s(e)}),r.$$phase||r.$digest())});var f=0;return r.$watch(function(){var t=i.url(),e=u.$$replace;return f&&t==u.absUrl()||(f++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),t).defaultPrevented?u.$$parse(t):(i.url(u.absUrl(),e),s(t))})),u.$$replace=!1,f}),u}]}function nn(){var t=!0,e=this;this.debugEnabled=function(e){return $(e)?(t=e,this):t},this.$get=["$window",function(n){function r(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 i(t){var e=n.console||{},i=e[t]||e.log||h;t=!1;try{t=!!i.apply}catch(o){}return t?function(){var t=[];return a(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function rn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Hr("isecfld",e);return t}function an(t,e){if(t){if(t.constructor===t)throw Hr("isecfn",e);if(t.document&&t.location&&t.alert&&t.setInterval)throw Hr("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Hr("isecdom",e);if(t===Object)throw Hr("isecobj",e)}return t}function on(t,e,r,i,a){an(t,i),a=a||{},e=e.split(".");for(var o,s=0;1l?un(u[0],u[1],u[2],u[3],u[4],r,e):function(t,i){var a,o=0;do a=un(u[o++],u[o++],u[o++],u[o++],u[o++],r,e)(t,i),i=n,t=a;while(l>o);return a};else{var c="var p;\n";i&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var d=i;a(u,function(t,n){rn(t,r);var a=(n?"s":'((l&&l.hasOwnProperty("'+t+'"))?l:s)')+'["'+t+'"]',o=i||sn(t);o&&(a="eso("+a+", fe)",d=!0),c+="if(s == null) return undefined;\ns="+a+";\n",e.unwrapPromises&&(c+='if (s && s.then) {\n pw("'+r.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v='+(o?"eso(v)":"v")+";});\n}\n s="+(o?"eso(s.$$v)":"s.$$v")+"\n}\n")}),c+="return s;",s=new Function("s","l","pw","eso","fe",c),s.toString=v(c),(d||e.unwrapPromises)&&(s=ln(s,r))}return"hasOwnProperty"!==t&&(o[t]=s),s}function dn(){var t={},e={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0,expensiveChecks:!1};this.unwrapPromises=function(t){return $(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises},this.logPromiseWarnings=function(t){return $(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(r,i,a){n.csp=i.csp;var o={csp:n.csp,unwrapPromises:n.unwrapPromises,logPromiseWarnings:n.logPromiseWarnings,expensiveChecks:!0};return Fr=function(t){n.logPromiseWarnings&&!jr.hasOwnProperty(t)&&(jr[t]=!0,a.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(i,a){var s;switch(typeof i){case"string":var u=a?e:t;if(u.hasOwnProperty(i))return u[i];s=a?o:n;var l=new qr(s);return s=new Wr(l,r,s).parse(i),"hasOwnProperty"!==i&&(u[i]=s),s;case"function":return i;default:return h}}}]}function fn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return pn(function(e){t.$evalAsync(e)},e)}]}function pn(t,e){function r(t){return t}function i(t){return u(t)}var o=function(){var a,u,c=[];return u={resolve:function(e){if(c){var r=c;c=n,a=s(e),r.length&&t(function(){for(var t,e=0,n=r.length;n>e;e++)t=r[e],a.then(t[0],t[1],t[2])})}},reject:function(t){u.resolve(l(t))},notify:function(e){if(c){var n=c;c.length&&t(function(){for(var t,r=0,i=n.length;i>r;r++)t=n[r],t[2](e)})}},promise:{then:function(t,n,s){var u=o(),l=function(n){try{u.resolve((b(t)?t:r)(n))}catch(i){u.reject(i),e(i)}},d=function(t){try{u.resolve((b(n)?n:i)(t))}catch(r){u.reject(r),e(r)}},f=function(t){try{u.notify((b(s)?s:r)(t))}catch(n){e(n)}};return c?c.push([l,d,f]):a.then(l,d,f),u.promise},"catch":function(t){return this.then(null,t)},"finally":function(t){function e(t,e){var n=o();return e?n.resolve(t):n.reject(t),n.promise}function n(n,i){var a=null;try{a=(t||r)()}catch(o){return e(o,!1)}return a&&b(a.then)?a.then(function(){return e(n,i)},function(t){return e(t,!1)}):e(n,i)}return this.then(function(t){return n(t,!0)},function(t){return n(t,!1)})}}}},s=function(e){return e&&b(e.then)?e:{then:function(n){var r=o();return t(function(){r.resolve(n(e))}),r.promise}}},u=function(t){var e=o();return e.reject(t),e.promise},l=function(n){return{then:function(r,a){var s=o();return t(function(){try{s.resolve((b(a)?a:i)(n))}catch(t){s.reject(t),e(t)}}),s.promise}}};return{defer:o,reject:u,when:function(n,a,l,c){var d,f=o(),p=function(t){try{return(b(a)?a:r)(t)}catch(n){return e(n),u(n)}},h=function(t){try{return(b(l)?l:i)(t)}catch(n){return e(n),u(n)}},m=function(t){try{return(b(c)?c:r)(t)}catch(n){e(n)}};return t(function(){s(n).then(function(t){d||(d=!0,f.resolve(s(t).then(p,h,m)))},function(t){d||(d=!0,f.resolve(h(t)))},function(t){d||f.notify(m(t))})}),f.promise},all:function(t){var e=o(),n=0,r=or(t)?[]:{};return a(t,function(t,i){n++,s(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}}}function hn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,a=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 a.supported=i,a}]}function mn(){var t=10,e=r("$rootScope"),n=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,o,s,u){function c(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function d(t){if(v.$$phase)throw e("inprog",v.$$phase);v.$$phase=t}function f(t,e){var n=s(t);return W(n,e),n}function p(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function m(){}c.prototype={constructor:c,$new:function(t){return t?(t=new c,t.$root=this.$root,t.$$asyncQueue=this.$$asyncQueue,t.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=l(),this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),t=new this.$$childScopeClass),t["this"]=t,t.$parent=this,t.$$prevSibling=this.$$childTail,this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=t:this.$$childHead=this.$$childTail=t,t},$watch:function(t,e,r){var i=f(t,"watch"),a=this.$$watchers,o={fn:e,last:m,get:i,exp:t,eq:!!r};if(n=null,!b(e)){var s=f(e||h,"listener");o.fn=function(t,e,n){s(n)}}if("string"==typeof t&&i.constant){var u=o.fn;o.fn=function(t,e,n){u.call(this,t,e,n),N(a,o)}}return a||(a=this.$$watchers=[]),a.unshift(o),function(){N(a,o),n=null}},$watchCollection:function(t,e){var n,r,a,o=this,u=1e;e++)a=r[e]!==r[e]&&n[e]!==n[e],a||r[e]===n[e]||(l++,r[e]=n[e]);else{r!==f&&(r=f={},h=0,l++),t=0;for(e in n)n.hasOwnProperty(e)&&(t++,r.hasOwnProperty(e)?(a=r[e]!==r[e]&&n[e]!==n[e],a||r[e]===n[e]||(l++,r[e]=n[e])):(h++,r[e]=n[e],l++));if(h>t)for(e in l++,r)r.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(h--,delete r[e])}else r!==n&&(r=n,l++);return l},function(){if(p?(p=!1,e(n,n,o)):e(n,a,o),u)if(E(n))if(i(n)){a=Array(n.length);for(var t=0;tT&&(p=4-T,S[p]||(S[p]=[]),h=b(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,h+="; newVal: "+P(i)+"; oldVal: "+P(a),S[p].push(h))}catch(y){v.$$phase=null,o(y)}if(!(s=f.$$childHead||f!==this&&f.$$nextSibling))for(;f!==this&&!(s=f.$$nextSibling);)f=f.$parent}while(f=s);if((c||$.length)&&!T--)throw v.$$phase=null,e("infdig",t,P(S))}while(c||$.length);for(v.$$phase=null;E.length;)try{E.shift()()}catch(R){o(R)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v&&(a(this.$$listenerCount,x(null,p,this)),t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=h,this.$on=this.$watch=function(){return h})}},$eval:function(t,e){return s(t)(this,e)},$evalAsync:function(t){v.$$phase||v.$$asyncQueue.length||u.defer(function(){v.$$asyncQueue.length&&v.$digest()}),this.$$asyncQueue.push({scope:this,expression:t})},$$postDigest:function(t){this.$$postDigestQueue.push(t)},$apply:function(t){try{return d("$apply"),this.$eval(t)}catch(e){o(e)}finally{v.$$phase=null;try{v.$digest()}catch(n){throw o(n),n}}},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=_(n,e);-1!==r&&(n[r]=null,p(i,1,t))}},$emit:function(t){var e,n,r,i=[],a=this,s=!1,u={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=[u].concat(tr.call(arguments,1));do{for(e=a.$$listeners[t]||i,u.currentScope=a,n=0,r=e.length;r>n;n++)if(e[n])try{e[n].apply(null,l)}catch(c){o(c)}else e.splice(n,1),n--,r--;if(s)break;a=a.$parent}while(a);return u},$broadcast:function(t){for(var e,n,r=this,i=this,a={name:t,targetScope:this,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1},s=[a].concat(tr.call(arguments,1));r=i;){for(a.currentScope=r,i=r.$$listeners[t]||[],e=0,n=i.length;n>e;e++)if(i[e])try{i[e].apply(null,s)}catch(u){o(u)}else i.splice(e,1),e--,n--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}return a}};var v=new c;return v}]}function vn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return $(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return $(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,a=r?e:t;return Bn&&!(Bn>=8)||(i=bn(n).href,""===i||i.match(a))?n:"unsafe:"+i}}}function gn(t){if("self"===t)return t;if(T(t)){if(-1u;u++)if("self"===t[u]?yn(o):t[u].exec(o.href)){c=!0;break}if(c)for(u=0,l=e.length;l>u;u++)if("self"===e[u]?yn(o):e[u].exec(o.href)){c=!1;break}if(c)return i;throw Jr("insecurl",i.toString())}if(r===Kr.HTML)return a(i);throw Jr("unsafe")},valueOf:function(t){return t instanceof o?t.$$unwrapTrustedValue():t}}}]}function Tn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sniffer","$sceDelegate",function(e,n,r){if(t&&n.msie&&8>n.msieDocumentMode)throw Jr("iequirks");var i=M(Kr);i.isEnabled=function(){return t},i.trustAs=r.trustAs,i.getTrusted=r.getTrusted,i.valueOf=r.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=m),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:function(e,n){return i.getTrusted(t,r(e,n))}};var o=i.parseAs,s=i.getTrusted,u=i.trustAs;return a(Kr,function(t,e){var n=Jn(e);i[te("parse_as_"+n)]=function(e){return o(t,e)},i[te("get_trusted_"+n)]=function(e){return s(t,e)},i[te("trust_as_"+n)]=function(e){return u(t,e)}}),i}]}function Sn(){this.$get=["$window","$document",function(t,e){var n,r={},i=f((/android (\d+)/.exec(Jn((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),o=e[0]||{},s=o.documentMode,u=/^(Moz|webkit|O|ms)(?=[A-Z])/,l=o.body&&o.body.style,c=!1,d=!1;if(l){for(var p in l)if(c=u.exec(p)){n=c[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),d=!!("animation"in l||n+"Animation"in l),!i||c&&d||(c=T(o.body.style.webkitTransition),d=T(o.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>i||a),hashchange:"onhashchange"in t&&(!s||s>7),hasEvent:function(t){if("input"==t&&9==Bn)return!1;if(g(r[t])){var e=o.createElement("div");r[t]="on"+t in e}return r[t]},csp:ur(),vendorPrefix:n,transitions:c,animations:d,android:i,msie:Bn,msieDocumentMode:s}}]}function An(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(t,e,n,r){function i(i,o,s){var u=n.defer(),l=u.promise,c=$(s)&&!s;return o=e.defer(function(){try{u.resolve(i())}catch(e){u.reject(e),r(e)}finally{delete a[l.$$timeoutId]}c||t.$apply()},o),l.$$timeoutId=o,a[o]=u,l}var a={};return i.cancel=function(t){return t&&t.$$timeoutId in a?(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},i}]}function bn(t){var e=t;return Bn&&(Qr.setAttribute("href",e),e=Qr.href),Qr.setAttribute("href",e),{href:Qr.href,protocol:Qr.protocol?Qr.protocol.replace(/:$/,""):"",host:Qr.host,search:Qr.search?Qr.search.replace(/^\?/,""):"",hash:Qr.hash?Qr.hash.replace(/^#/,""):"",hostname:Qr.hostname,port:Qr.port,pathname:"/"===Qr.pathname.charAt(0)?Qr.pathname:"/"+Qr.pathname}}function yn(t){return t=T(t)?bn(t):t,t.protocol===ti.protocol&&t.host===ti.host}function Rn(){this.$get=v(t)}function On(t){function e(r,i){if(E(r)){var o={};return a(r,function(t,n){o[n]=e(n,t)}),o}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",_n),e("date",Ln),e("filter",wn),e("json",Pn),e("limitTo",Un),e("lowercase",ai),e("number",Nn),e("orderBy",Dn),e("uppercase",oi)}function wn(){return function(t,e,n){if(!or(t))return t;var r=typeof n,i=[];i.check=function(t){for(var e=0;et;t=Math.abs(t);var o=t+"",s="",u=[],l=!1;if(-1!==o.indexOf("e")){var c=o.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?(o="0",t=0):(s=o,l=!0)}if(l)i>0&&t>-1&&1>t&&(s=t.toFixed(i));else{o=(o.split(ei)[1]||"").length,g(i)&&(i=Math.min(Math.max(e.minFrac,o),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+i)).toString()+"e"+-i),0===t&&(a=!1),t=(""+t).split(ei),o=t[0],t=t[1]||"";var c=0,d=e.lgSize,f=e.gSize;if(o.length>=d+f)for(c=o.length-d,l=0;c>l;l++)0===(c-l)%f&&0!==l&&(s+=n),s+=o.charAt(l);for(l=c;lt&&(r="-",t=-t),t=""+t;t.length0||i>-n)&&(i+=n),0===i&&-12==n&&(i=12),Mn(i,e,r)}}function xn(t,e){return function(n,r){var i=n["get"+t](),a=Qn(e?"SHORT"+t:t);return r[a][i]}}function Ln(t){function e(t){var e;if(e=t.match(n)){t=new Date(0);var r=0,i=0,a=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(r=f(e[9]+e[10]),i=f(e[9]+e[11])),a.call(t,f(e[1]),f(e[2])-1,f(e[3])),r=f(e[4]||0)-r,i=f(e[5]||0)-i,a=f(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),o.call(t,r,i,a,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,r){var i,o,s="",u=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,T(n)&&(n=ii.test(n)?f(n):e(n)),S(n)&&(n=new Date(n)),!A(n))return n;for(;r;)(o=ri.exec(r))?(u=u.concat(tr.call(o,1)),r=u.pop()):(u.push(r),r=null);return a(u,function(e){i=ni[e],s+=i?i(n,t.DATETIME_FORMATS):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Pn(){return function(t){return P(t,!0)}}function Un(){return function(t,e){if(!or(t)&&!T(t))return t;if(e=1/0===Math.abs(Number(e))?Number(e):f(e),T(t))return e?e>=0?t.slice(0,e):t.slice(e,t.length):"";
var n,r,i=[];for(e>t.length?e=t.length:e<-t.length&&(e=-t.length),e>0?(n=0,r=e):(n=t.length+e,r=t.length);r>n;n++)i.push(t[n]);return i}}function Dn(t){return function(e,n,r){function a(t,e){return D(e)?function(e,n){return t(n,e)}:t}function o(t,e){var n=typeof t,r=typeof e;return n==r?(A(t)&&A(e)&&(t=t.valueOf(),e=e.valueOf()),"string"==n&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e?0:e>t?-1:1):r>n?-1:1}return i(e)?(n=or(n)?n:[n],0===n.length&&(n=["+"]),n=w(n,function(e){var n=!1,r=e||m;if(T(e)){if(("+"==e.charAt(0)||"-"==e.charAt(0))&&(n="-"==e.charAt(0),e=e.substring(1)),""===e)return a(function(t,e){return o(t,e)},n);if(r=t(e),r.constant){var i=r();return a(function(t,e){return o(t[i],e[i])},n)}}return a(function(t,e){return o(r(t),r(e))},n)}),tr.call(e).sort(a(function(t,e){for(var r=0;r15&&19>t||t>=37&&40>=t||m()}),a.hasEvent("paste")&&e.on("paste cut",m)}e.on("change",p),i.$render=function(){e.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)};var v=n.ngPattern;if(v&&((a=v.match(/^\/(.*)\/([gim]*)$/))?(v=RegExp(a[1],a[2]),a=function(t){return Hn(i,"pattern",i.$isEmpty(t)||v.test(t),t)}):a=function(n){var a=t.$eval(v);if(!a||!a.test)throw r("ngPattern")("noregexp",v,a,k(e));return Hn(i,"pattern",i.$isEmpty(n)||a.test(n),n)},i.$formatters.push(a),i.$parsers.push(a)),n.ngMinlength){var g=f(n.ngMinlength);a=function(t){return Hn(i,"minlength",i.$isEmpty(t)||t.length>=g,t)},i.$parsers.push(a),i.$formatters.push(a)}if(n.ngMaxlength){var $=f(n.ngMaxlength);a=function(t){return Hn(i,"maxlength",i.$isEmpty(t)||t.length<=$,t)},i.$parsers.push(a),i.$formatters.push(a)}}function Yn(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[],r=0;t:for(;r0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),s.data("$classCounts",n),r.join(" ")}function c(t){if(!0===e||o.$index%2===e){var a=i(t||[]);if(d){if(!C(t,d)){var c=i(d),f=r(a,c),a=r(c,a),a=l(a,-1),f=l(f,1);0===f.length?n.removeClass(s,a):0===a.length?n.addClass(s,f):n.setClass(s,f,a)}}else{var f=l(a,1);u.$addClass(f)}}d=M(t)}var d;o.$watch(u[t],c,!0),u.$observe("class",function(){c(o.$eval(u[t]))}),"ngClass"!==t&&o.$watch("$index",function(n,r){var a=1&n;if(a!==(1&r)){var s=i(o.$eval(u[t]));a===e?(a=l(s,1),u.$addClass(a)):(a=l(s,-1),u.$removeClass(a))}})}}}]}var Bn,zn,qn,Wn,Xn,Zn="validity",Jn=function(t){return T(t)?t.toLowerCase():t},Kn=Object.prototype.hasOwnProperty,Qn=function(t){return T(t)?t.toUpperCase():t},tr=[].slice,er=[].push,nr=Object.prototype.toString,rr=r("ng"),ir=t.angular||(t.angular={}),ar=["0","0","0"];Bn=f((/msie (\d+)/.exec(Jn(navigator.userAgent))||[])[1]),isNaN(Bn)&&(Bn=f((/trident\/.*; rv:(\d+)/.exec(Jn(navigator.userAgent))||[])[1])),h.$inject=[],m.$inject=[];var or=function(){return b(Array.isArray)?Array.isArray:function(t){return"[object Array]"===nr.call(t)}}(),sr=function(){return String.prototype.trim?function(t){return T(t)?t.trim():t}:function(t){return T(t)?t.replace(/^\s\s*/,"").replace(/\s\s*$/,""):t}}();Xn=9>Bn?function(t){return t=t.nodeName?t:t[0],t.scopeName&&"HTML"!=t.scopeName?Qn(t.scopeName+":"+t.nodeName):t.nodeName}:function(t){return t.nodeName?t.nodeName:t[0].nodeName};var ur=function(){if($(ur.isActive_))return ur.isActive_;var t=!(!e.querySelector("[ng-csp]")&&!e.querySelector("[data-ng-csp]"));if(!t)try{new Function("")}catch(n){t=!0}return ur.isActive_=t},lr=/[A-Z]/g,cr={full:"1.2.27",major:1,minor:2,dot:27,codeName:"prime-factorization"};ne.expando="ng339";var dr=ne.cache={},fr=1,pr=t.document.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:function(t,e,n){t.attachEvent("on"+e,n)},hr=t.document.removeEventListener?function(t,e,n){t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent("on"+e,n)};ne._data=function(t){return this.cache[t[this.expando]]||{}};var mr=/([\:\-\_]+(.))/g,vr=/^moz([A-Z])/,gr=r("jqLite"),$r=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Er=/<|?\w+;/,Tr=/<([\w:]+)/,Sr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ar={option:[1,'"],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};Ar.optgroup=Ar.option,Ar.tbody=Ar.tfoot=Ar.colgroup=Ar.caption=Ar.thead,Ar.th=Ar.td;var br=ne.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),ne(t).on("load",r))},toString:function(){var t=[];return a(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return zn(t>=0?this[t]:this[this.length+t])},length:0,push:er,sort:[].sort,splice:[].splice},yr={};a("multiple selected checked disabled readOnly required open".split(" "),function(t){yr[Jn(t)]=t});var Rr={};a("input select option textarea button form details".split(" "),function(t){Rr[Qn(t)]=!0}),a({data:ue,removeData:oe},function(t,e){ne[e]=t}),a({data:ue,inheritedData:he,scope:function(t){return zn.data(t,"$scope")||he(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return zn.data(t,"$isolateScope")||zn.data(t,"$isolateScopeNoTemplate")},controller:pe,injector:function(t){return he(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:le,css:function(t,e,r){if(e=te(e),!$(r)){var i;return 8>=Bn&&(i=t.currentStyle&&t.currentStyle[e],""===i&&(i="auto")),i=i||t.style[e],8>=Bn&&(i=""===i?n:i),i}t.style[e]=r},attr:function(t,e,r){var i=Jn(e);if(yr[i]){if(!$(r))return t[e]||(t.attributes.getNamedItem(e)||h).specified?i:n;r?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if($(r))t.setAttribute(e,r);else if(t.getAttribute)return t=t.getAttribute(e,2),null===t?n:t},prop:function(t,e,n){return $(n)?void(t[e]=n):t[e]},text:function(){function t(t,n){var r=e[t.nodeType];return g(n)?r?t[r]:"":void(t[r]=n)}var e=[];return 9>Bn?(e[1]="innerText",e[3]="nodeValue"):e[1]=e[3]="textContent",t.$dv="",t}(),val:function(t,e){if(g(e)){if("SELECT"===Xn(t)&&t.multiple){var n=[];return a(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){if(g(e))return t.innerHTML;for(var n=0,r=t.childNodes;ni;i++)if(t===ue)t(this[i],e);else for(a in e)t(this[i],a,e[a]);return this}for(i=t.$dv,o=i===n?Math.min(o,1):o,a=0;o>a;a++){var s=t(this[a],e,r);i=i?i+s:s}return i}for(i=0;o>i;i++)t(this[i],e,r);return this}}),a({removeData:oe,dealoc:ie,on:function oa(t,n,r,i){if($(i))throw gr("onargs");var o=se(t,"events"),s=se(t,"handle");o||se(t,"events",o={}),s||se(t,"handle",s=ge(t,o)),a(n.split(" "),function(n){var i=o[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var a=e.body.contains||e.body.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1};o[n]=[],oa(t,{mouseleave:"mouseout",mouseenter:"mouseover"}[n],function(t){var e=t.relatedTarget;e&&(e===this||a(this,e))||s(t,n)})}else pr(t,n,s),o[n]=[];i=o[n]}i.push(r)})},off:ae,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,r=t.parentNode;ie(t),a(new ne(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return a(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){a(new ne(e),function(e){1!==t.nodeType&&11!==t.nodeType||t.appendChild(e)})},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;a(new ne(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=zn(e)[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:function(t){ie(t);var e=t.parentNode;e&&e.removeChild(t)},after:function(t,e){var n=t,r=t.parentNode;a(new ne(e),function(t){r.insertBefore(t,n.nextSibling),n=t})},addClass:de,removeClass:ce,toggleClass:function(t,e,n){e&&a(e.split(" "),function(e){var r=n;g(r)&&(r=!le(t,e)),(r?de:ce)(t,e)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){if(t.nextElementSibling)return t.nextElementSibling;for(t=t.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:re,triggerHandler:function(t,e,n){var r,i;r=e.type||e;var o=(se(t,"events")||{})[r];o&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:h,type:r,target:t},e.type&&(r=d(r,e)),e=M(o),i=n?[r].concat(n):[r],a(e,function(e){e.apply(t,i)}))}},function(t,e){ne.prototype[e]=function(e,n,r){for(var i,a=0;a":function(t,e,n,r){return n(t,e)>r(t,e)},"<=":function(t,e,n,r){return n(t,e)<=r(t,e)},">=":function(t,e,n,r){return n(t,e)>=r(t,e)},"&&":function(t,e,n,r){return n(t,e)&&r(t,e)},"||":function(t,e,n,r){return n(t,e)||r(t,e)},"&":function(t,e,n,r){return n(t,e)&r(t,e)},"|":function(t,e,n,r){return r(t,e)(t,e,n(t,e))},"!":function(t,e,n){return!n(t,e)}},zr={n:"\n",f:"\f",r:"\r",t:" ",v:"","'":"'",'"':'"'},qr=function(t){this.options=t};qr.prototype={constructor:qr,lex:function(t){for(this.text=t,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];this.index="0"&&"9">=t},isWhitespace:function(t){return" "===t||"\r"===t||" "===t||"\n"===t||""===t||" "===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=$(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,Hr("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index","<=",">="))&&(e=this.binaryFn(e,t.fn,this.relational())),e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.fn,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.fn,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(Wr.ZERO,t.fn,this.unary()):(t=this.expect("!"))?this.unaryFn(t.fn,this.unary()):this.primary()},fieldAccess:function(t){var e=this,n=this.expect().text,r=cn(n,this.options,this.text);return d(function(e,n,i){return r(i||t(e,n))},{assign:function(r,i,a){return(a=t(r,a))||t.assign(r,a={}),on(a,n,i,e.text,e.options)}})},objectIndex:function(t){var e=this,r=this.expression();return this.consume("]"),d(function(i,a){var o,s=t(i,a),u=r(i,a);return rn(u,e.text),s?((s=an(s[u],e.text))&&s.then&&e.options.unwrapPromises&&(o=s,"$$v"in s||(o.$$v=n,o.then(function(t){o.$$v=t})),s=s.$$v),s):n},{assign:function(n,i,a){var o=rn(r(n,a),e.text);return(a=an(t(n,a),e.text))||t.assign(n,a={}),a[o]=i}})},functionCall:function(t,e){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));this.consume(")");var r=this;return function(i,a){for(var o=[],s=e?e(i,a):i,u=0;ut.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t){return t=-1*t.getTimezoneOffset(),t=(t>=0?"+":"")+(Mn(Math[t>0?"floor":"ceil"](t/60),2)+Mn(Math.abs(t%60),2))}},ri=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,ii=/^\-?\d+$/;Ln.$inject=["$locale"];var ai=v(Jn),oi=v(Qn);Dn.$inject=["$parse"];var si=v({restrict:"E",compile:function(t,n){return 8>=Bn&&(n.href||n.name||n.$set("href",""),t.append(e.createComment("IE fix"))),n.href||n.xlinkHref||n.name?void 0:function(t,e){var n="[object SVGAnimatedString]"===nr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}),ui={};a(yr,function(t,e){if("multiple"!=t){var n=Ne("ng-"+e);ui[n]=function(){return{priority:100,link:function(t,r,i){t.$watch(i[n],function(t){i.$set(e,!!t)})}}}}}),a(["src","srcset","href"],function(t){var e=Ne("ng-"+t);ui[e]=function(){return{priority:99,link:function(n,r,i){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===nr.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(e,function(e){e?(i.$set(o,e),Bn&&a&&r.prop(a,i[o])):"href"===t&&i.$set(o,null)})}}}});var li={$addControl:h,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h};Fn.$inject=["$element","$attrs","$scope","$animate"];var ci=function(t){return["$timeout",function(e){return{name:"form",restrict:t?"EAC":"E",controller:Fn,compile:function(){return{pre:function(t,r,i,a){if(!i.action){var o=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1};pr(r[0],"submit",o),r.on("$destroy",function(){e(function(){hr(r[0],"submit",o)},0,!1)})}var s=r.parent().controller("form"),u=i.name||i.ngForm;u&&on(t,u,a,u),s&&r.on("$destroy",function(){s.$removeControl(a),u&&on(t,u,n,u),d(a,li)})}}}}}]},di=ci(),fi=ci(!0),pi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,hi=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,mi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,vi={text:Vn,number:function(t,e,r,i,a,o){Vn(t,e,r,i,a,o),i.$parsers.push(function(t){var e=i.$isEmpty(t);return e||mi.test(t)?(i.$setValidity("number",!0),""===t?null:e?t:parseFloat(t)):(i.$setValidity("number",!1),n)}),Gn(i,"number",gi,null,i.$$validityState),i.$formatters.push(function(t){return i.$isEmpty(t)?"":""+t}),r.min&&(t=function(t){var e=parseFloat(r.min);return Hn(i,"min",i.$isEmpty(t)||t>=e,t)},i.$parsers.push(t),i.$formatters.push(t)),r.max&&(t=function(t){var e=parseFloat(r.max);return Hn(i,"max",i.$isEmpty(t)||e>=t,t)},i.$parsers.push(t),i.$formatters.push(t)),i.$formatters.push(function(t){return Hn(i,"number",i.$isEmpty(t)||S(t),t)})},url:function(t,e,n,r,i,a){Vn(t,e,n,r,i,a),t=function(t){return Hn(r,"url",r.$isEmpty(t)||pi.test(t),t)},r.$formatters.push(t),r.$parsers.push(t)},email:function(t,e,n,r,i,a){Vn(t,e,n,r,i,a),t=function(t){return Hn(r,"email",r.$isEmpty(t)||hi.test(t),t)},r.$formatters.push(t),r.$parsers.push(t)},radio:function(t,e,n,r){g(n.name)&&e.attr("name",l()),e.on("click",function(){e[0].checked&&t.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){e[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r){var i=n.ngTrueValue,a=n.ngFalseValue;T(i)||(i=!0),T(a)||(a=!1),e.on("click",function(){t.$apply(function(){r.$setViewValue(e[0].checked)})}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t!==i},r.$formatters.push(function(t){return t===i}),r.$parsers.push(function(t){return t?i:a})},hidden:h,button:h,submit:h,reset:h,file:h},gi=["badInput"],$i=["$browser","$sniffer",function(t,e){return{restrict:"E",require:"?ngModel",link:function(n,r,i,a){a&&(vi[Jn(i.type)]||vi.text)(n,r,i,a,e,t)}}}],Ei="ng-valid",Ti="ng-invalid",Si="ng-pristine",Ai="ng-dirty",bi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(t,e,n,i,o,s){function u(t,e){e=e?"-"+z(e,"-"):"",s.removeClass(i,(t?Ti:Ei)+e),s.addClass(i,(t?Ei:Ti)+e)}this.$modelValue=this.$viewValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var l=o(n.ngModel),c=l.assign;if(!c)throw r("ngModel")("nonassign",n.ngModel,k(i));this.$render=h,this.$isEmpty=function(t){return g(t)||""===t||null===t||t!==t};var d=i.inheritedData("$formController")||li,f=0,p=this.$error={};i.addClass(Si),u(!0),this.$setValidity=function(t,e){p[t]!==!e&&(e?(p[t]&&f--,f||(u(!0),this.$valid=!0,this.$invalid=!1)):(u(!1),this.$invalid=!0,this.$valid=!1,f++),p[t]=!e,u(e,t),d.$setValidity(t,e,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,s.removeClass(i,Ai),s.addClass(i,Si)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,s.removeClass(i,Si),s.addClass(i,Ai),d.$setDirty()),a(this.$parsers,function(t){n=t(n)}),this.$modelValue!==n&&(this.$modelValue=n,c(t,n),a(this.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}}))};var m=this;t.$watch(function(){var e=l(t);if(m.$modelValue!==e){var n=m.$formatters,r=n.length;for(m.$modelValue=e;r--;)e=n[r](e);m.$viewValue!==e&&(m.$viewValue=e,m.$render())}return e})}],yi=function(){return{require:["ngModel","^?form"],controller:bi,link:function(t,e,n,r){var i=r[0],a=r[1]||li;a.$addControl(i),t.$on("$destroy",function(){a.$removeControl(i)})}}},Ri=v({require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Oi=function(){return{require:"?ngModel",link:function(t,e,n,r){if(r){n.required=!0;var i=function(t){return n.required&&r.$isEmpty(t)?void r.$setValidity("required",!1):(r.$setValidity("required",!0),t)};r.$formatters.push(i),r.$parsers.unshift(i),n.$observe("required",function(){i(r.$viewValue)})}}}},wi=function(){return{require:"ngModel",link:function(t,e,r,i){var o=(t=/\/(.*)\//.exec(r.ngList))&&RegExp(t[1])||r.ngList||",";i.$parsers.push(function(t){if(!g(t)){var e=[];return t&&a(t.split(o),function(t){t&&e.push(sr(t))}),e}}),i.$formatters.push(function(t){return or(t)?t.join(", "):n}),i.$isEmpty=function(t){return!t||!t.length}}}},_i=/^(true|false|\d+)$/,Ni=function(){return{priority:100,compile:function(t,e){return _i.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)})}}}},Ii=kn({compile:function(t){return t.addClass("ng-binding"),function(t,e,r){e.data("$binding",r.ngBind),t.$watch(r.ngBind,function(t){e.text(t==n?"":t)})}}}),Mi=["$interpolate",function(t){return function(e,n,r){e=t(n.attr(r.$attr.ngBindTemplate)),n.addClass("ng-binding").data("$binding",e),r.$observe("ngBindTemplate",function(t){n.text(t)})}}],Ci=["$sce","$parse",function(t,e){return{compile:function(n){return n.addClass("ng-binding"),function(n,r,i){r.data("$binding",i.ngBindHtml);var a=e(i.ngBindHtml);n.$watch(function(){return(a(n)||"").toString()},function(){r.html(t.getTrustedHtml(a(n))||"")})}}}}],xi=Yn("",!0),Li=Yn("Odd",0),Pi=Yn("Even",1),Ui=kn({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Di=[function(){return{scope:!0,controller:"@",priority:500}}],ki={},Fi={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Ne("ng-"+t);ki[e]=["$parse","$rootScope",function(n,r){return{compile:function(i,a){var o=n(a[e],!0);return function(e,n){n.on(t,function(n){var i=function(){o(e,{$event:n})
};Fi[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Hi=["$animate",function(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,u,l;n.$watch(i.ngIf,function(a){D(a)?u||(u=n.$new(),o(u,function(n){n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},t.enter(n,r.parent(),r)})):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=J(s.clone),t.leave(l,function(){l=null}),s=null))})}}}],ji=["$http","$templateCache","$anchorScroll","$animate","$sce",function(t,e,n,r,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ir.noop,compile:function(a,o){var s=o.ngInclude||o.src,u=o.onload||"",l=o.autoscroll;return function(a,o,c,d,f){var p,h,m,v=0,g=function(){h&&(h.remove(),h=null),p&&(p.$destroy(),p=null),m&&(r.leave(m,function(){h=null}),h=m,m=null)};a.$watch(i.parseAsResourceUrl(s),function(i){var s=function(){!$(l)||l&&!a.$eval(l)||n()},c=++v;i?(t.get(i,{cache:e}).success(function(t){if(c===v){var e=a.$new();d.template=t,t=f(e,function(t){g(),r.enter(t,null,o,s)}),p=e,m=t,p.$emit("$includeContentLoaded"),a.$eval(u)}}).error(function(){c===v&&g()}),a.$emit("$includeContentRequested")):(g(),d.template=null)})}}}}],Gi=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,n,r,i){n.html(i.template),t(n.contents())(e)}}}],Vi=kn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Yi=kn({terminal:!0,priority:1e3}),Bi=["$locale","$interpolate",function(t,e){var n=/{}/g;return{restrict:"EA",link:function(r,i,o){var s=o.count,u=o.$attr.when&&i.attr(o.$attr.when),l=o.offset||0,c=r.$eval(u)||{},d={},f=e.startSymbol(),p=e.endSymbol(),h=/^when(Minus)?(.+)$/;a(o,function(t,e){h.test(e)&&(c[Jn(e.replace("when","").replace("Minus","-"))]=i.attr(o.$attr[e]))}),a(c,function(t,r){d[r]=e(t.replace(n,f+s+"-"+l+p))}),r.$watch(function(){var e=parseFloat(r.$eval(s));return isNaN(e)?"":(e in c||(e=t.pluralCat(e-l)),d[e](r,i,!0))},function(t){i.text(t)})}}}],zi=["$parse","$animate",function(t,n){var o=r("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(r,s,u,l,c){var d,f,p,h,m,v,g=u.ngRepeat,$=g.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),E={$id:$e};if(!$)throw o("iexp",g);if(u=$[1],l=$[2],($=$[3])?(d=t($),f=function(t,e,n){return v&&(E[v]=t),E[m]=e,E.$index=n,d(r,E)}):(p=function(t,e){return $e(e)},h=function(t){return t}),$=u.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!$)throw o("iidexp",u);m=$[3]||$[1],v=$[2];var T={};r.$watchCollection(l,function(t){var u,l,d,$,E,S,A,b,y,R,O=s[0],w={},_=[];if(i(t))y=t,b=f||p;else{b=f||h,y=[];for(S in t)t.hasOwnProperty(S)&&"$"!=S.charAt(0)&&y.push(S);y.sort()}for($=y.length,l=_.length=y.length,u=0;l>u;u++)if(S=t===y?u:y[u],A=t[S],d=b(S,A,u),X(d,"`track by` id"),T.hasOwnProperty(d))R=T[d],delete T[d],w[d]=R,_[u]=R;else{if(w.hasOwnProperty(d))throw a(_,function(t){t&&t.scope&&(T[t.id]=t)}),o("dupes",g,d,P(A));_[u]={id:d},w[d]=!1}for(S in T)T.hasOwnProperty(S)&&(R=T[S],u=J(R.clone),n.leave(u),a(u,function(t){t.$$NG_REMOVED=!0}),R.scope.$destroy());for(u=0,l=y.length;l>u;u++){if(S=t===y?u:y[u],A=t[S],R=_[u],_[u-1]&&(O=_[u-1].clone[_[u-1].clone.length-1]),R.scope){E=R.scope,d=O;do d=d.nextSibling;while(d&&d.$$NG_REMOVED);R.clone[0]!=d&&n.move(J(R.clone),null,zn(O)),O=R.clone[R.clone.length-1]}else E=r.$new();E[m]=A,v&&(E[v]=S),E.$index=u,E.$first=0===u,E.$last=u===$-1,E.$middle=!(E.$first||E.$last),E.$odd=!(E.$even=0===(1&u)),R.scope||c(E,function(t){t[t.length++]=e.createComment(" end ngRepeat: "+g+" "),n.enter(t,null,zn(O)),O=t,R.scope=E,R.clone=t,w[R.id]=R})}T=w})}}}],qi=["$animate",function(t){return function(e,n,r){e.$watch(r.ngShow,function(e){t[D(e)?"removeClass":"addClass"](n,"ng-hide")})}}],Wi=["$animate",function(t){return function(e,n,r){e.$watch(r.ngHide,function(e){t[D(e)?"addClass":"removeClass"](n,"ng-hide")})}}],Xi=kn(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&a(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Zi=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,n,r,i){var o=[],s=[],u=[],l=[];e.$watch(r.ngSwitch||r.on,function(n){var c,d;for(c=0,d=u.length;d>c;++c)u[c].remove();for(c=u.length=0,d=l.length;d>c;++c){var f=s[c];l[c].$destroy(),u[c]=f,t.leave(f,function(){u.splice(c,1)})}s.length=0,l.length=0,(o=i.cases["!"+n]||i.cases["?"])&&(e.$eval(r.change),a(o,function(n){var r=e.$new();l.push(r),n.transclude(r,function(e){var r=n.element;s.push(e),t.enter(e,r.parent(),r)})}))})}}}],Ji=kn({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Ki=kn({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Qi=kn({link:function(t,e,n,i,a){if(!a)throw r("ngTransclude")("orphan",k(e));a(function(t){e.empty(),e.append(t)})}}),ta=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){"text/ng-template"==n.type&&t.put(n.id,e[0].text)}}}],ea=r("ngOptions"),na=v({terminal:!0}),ra=["$compile","$parse",function(t,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var r,i=this,a={},o=s;i.databound=n.ngModel,i.init=function(t,e,n){o=t,r=n},i.addOption=function(e){X(e,'"option value"'),a[e]=!0,o.$viewValue==e&&(t.val(e),r.parent()&&r.remove())},i.removeOption=function(t){this.hasOption(t)&&(delete a[t],o.$viewValue==t&&this.renderUnknownOption(t))},i.renderUnknownOption=function(e){e="? "+$e(e)+" ?",r.val(e),t.prepend(r),t.val(e),r.prop("selected",!0)},i.hasOption=function(t){return a.hasOwnProperty(t)},e.$on("$destroy",function(){i.renderUnknownOption=h})}],link:function(s,u,l,c){function d(t,e,n,r){n.$render=function(){var t=n.$viewValue;r.hasOption(t)?(b.parent()&&b.remove(),e.val(t),""===t&&m.prop("selected",!0)):g(t)&&m?e.val(""):r.renderUnknownOption(t)},e.on("change",function(){t.$apply(function(){b.parent()&&b.remove(),n.$setViewValue(e.val())})})}function f(t,e,n){var r;n.$render=function(){var t=new Ee(n.$viewValue);a(e.find("option"),function(e){e.selected=$(t.get(e.value))})},t.$watch(function(){C(r,n.$viewValue)||(r=M(n.$viewValue),n.$render())}),e.on("change",function(){t.$apply(function(){var t=[];a(e.find("option"),function(e){e.selected&&t.push(e.value)}),n.$setViewValue(t)})})}function p(e,a,s){function u(){var t,n,r,i,u,l={"":[]},E=[""];r=s.$modelValue,i=g(e)||[];var R,O,w,_=f?o(i):i;if(O={},w=!1,v)if(n=s.$modelValue,b&&or(n))for(w=new Ee([]),t={},u=0;uw;w++){if(n=w,f){if(n=_[w],"$"===n.charAt(0))continue;O[f]=n}O[d]=i[n],t=p(e,O)||"",(n=l[t])||(n=l[t]=[],E.push(t)),v?t=$(u.remove(b?b(e,O):m(e,O))):(b?(t={},t[d]=r,t=b(e,t)===b(e,O)):t=r===m(e,O),u=u||t),N=c(e,O),N=$(N)?N:"",n.push({id:b?b(e,O):f?_[w]:w,label:N,selected:t})}for(v||(T||null===r?l[""].unshift({id:"",label:"",selected:!u}):u||l[""].unshift({id:"?",label:"",selected:!0})),O=0,_=E.length;_>O;O++){for(t=E[O],n=l[t],y.length<=O?(r={element:A.clone().attr("label",t),label:n.label},i=[r],y.push(i),a.append(r.element)):(i=y[O],r=i[0],r.label!=t&&r.element.attr("label",r.label=t)),N=null,w=0,R=n.length;R>w;w++)t=n[w],(u=i[w+1])?(N=u.element,u.label!==t.label&&(N.text(u.label=t.label),N.prop("label",u.label)),u.id!==t.id&&N.val(u.id=t.id),N[0].selected!==t.selected&&(N.prop("selected",u.selected=t.selected),Bn&&N.prop("selected",u.selected))):(""===t.id&&T?I=T:(I=S.clone()).val(t.id).prop("selected",t.selected).attr("selected",t.selected).prop("label",t.label).text(t.label),i.push({element:I,label:t.label,id:t.id,selected:t.selected}),h.addOption(t.label,I),N?N.after(I):r.element.append(I),N=I);for(w++;i.length>w;)t=i.pop(),h.removeOption(t.label),t.element.remove()}for(;y.length>O;)y.pop()[0].element.remove()}var l;if(!(l=E.match(i)))throw ea("iexp",E,k(a));var c=r(l[2]||l[1]),d=l[4]||l[6],f=l[5],p=r(l[3]||""),m=r(l[2]?l[1]:d),g=r(l[7]),b=l[8]?r(l[8]):null,y=[[{element:a,label:""}]];T&&(t(T)(e),T.removeClass("ng-scope"),T.remove()),a.empty(),a.on("change",function(){e.$apply(function(){var t,r,i,o,l,c,p,h,$=g(e)||[],E={};if(v){for(i=[],l=0,p=y.length;p>l;l++)for(t=y[l],o=1,c=t.length;c>o;o++)if((r=t[o].element)[0].selected){if(r=r.val(),f&&(E[f]=r),b)for(h=0;h<$.length&&(E[d]=$[h],b(e,E)!=r);h++);else E[d]=$[r];i.push(m(e,E))}}else if(r=a.val(),"?"==r)i=n;else if(""===r)i=null;else if(b){for(h=0;h<$.length;h++)if(E[d]=$[h],b(e,E)==r){i=m(e,E);break}}else E[d]=$[r],f&&(E[f]=r),i=m(e,E);s.$setViewValue(i),u()})}),s.$render=u,e.$watchCollection(g,u),e.$watchCollection(function(){var t={},n=g(e);if(n){for(var r=Array(n.length),i=0,a=n.length;a>i;i++)t[d]=n[i],r[i]=c(e,t);return r}},u),v&&e.$watchCollection(function(){return s.$modelValue},u)}if(c[1]){var h=c[0];c=c[1];var m,v=l.multiple,E=l.ngOptions,T=!1,S=zn(e.createElement("option")),A=zn(e.createElement("optgroup")),b=S.clone();l=0;for(var y=u.children(),R=y.length;R>l;l++)if(""===y[l].value){m=T=y.eq(l);break}h.init(c,T,b),v&&(c.$isEmpty=function(t){return!t||0===t.length}),E?p(s,u,c):v?f(s,u,c):d(s,u,c,h)}}}}],ia=["$interpolate",function(t){var e={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(g(r.value)){var i=t(n.text(),!0);i||r.$set("value",n.text())}return function(t,n,r){var a=n.parent(),o=a.data("$selectController")||a.parent().data("$selectController");o&&o.databound?n.prop("selected",!1):o=e,i?t.$watch(i,function(t,e){r.$set("value",t),t!==e&&o.removeOption(e),o.addOption(t)}):o.addOption(r.value),n.on("$destroy",function(){o.removeOption(r.value)})}}}}],aa=v({restrict:"E",terminal:!0});t.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((qn=t.jQuery)&&qn.fn.on?(zn=qn,d(qn.fn,{scope:br.scope,isolateScope:br.isolateScope,controller:br.controller,injector:br.injector,inheritedData:br.inheritedData}),ee("remove",!0,!0,!1),ee("empty",!1,!1,!1),ee("html",!1,!1,!0)):zn=ne,ir.element=zn,Q(ir),zn(e).ready(function(){Y(e,B)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend(''),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(t,e,n){"use strict";function r(t,e){return P(new(P(function(){},{prototype:t})),e)}function i(t){return L(arguments,function(e){e!==t&&L(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function a(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function o(t){if(Object.keys)return Object.keys(t);var n=[];return e.forEach(t,function(t,e){n.push(e)}),n}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,r=Number(arguments[2])||0;for(r=0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n);n>r;r++)if(r in t&&t[r]===e)return r;return-1}function u(t,e,n,r){var i,u=a(n,r),l={},c=[];for(var d in u)if(u[d].params&&(i=o(u[d].params),i.length))for(var f in i)s(c,i[f])>=0||(c.push(i[f]),l[i[f]]=t[i[f]]);return P({},l,e)}function l(t,e,n){if(!n){n=[];for(var r in t)n.push(r)}for(var i=0;i "));if(h[n]=r,M(t))f.push(n,[function(){return e.get(t)}],s);else{var i=e.annotate(t);L(i,function(t){t!==n&&o.hasOwnProperty(t)&&c(o[t],t)}),f.push(n,t,i)}p.pop(),h[n]=a}}function d(t){return C(t)&&t.then&&t.$$promises}if(!C(o))throw new Error("'invocables' must be an object");var f=[],p=[],h={};return L(o,c),o=p=h=null,function(r,a,o){function s(){--$||(E||i(g,a.$$values),m.$$values=g,m.$$promises=!0,delete m.$$inheritedValues,h.resolve(g))}function c(t){m.$$failure=t,h.reject(t)}function p(n,i,a){function u(t){d.reject(t),c(t)}function l(){if(!N(m.$$failure))try{d.resolve(e.invoke(i,o,g)),d.promise.then(function(t){g[n]=t,s()},u)}catch(t){u(t)}}var d=t.defer(),f=0;L(a,function(t){v.hasOwnProperty(t)&&!r.hasOwnProperty(t)&&(f++,v[t].then(function(e){g[t]=e,--f||l()},u))}),f||l(),v[n]=d.promise}if(d(r)&&o===n&&(o=a,a=r,r=null),r){if(!C(r))throw new Error("'locals' must be an object")}else r=u;if(a){if(!d(a))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else a=l;var h=t.defer(),m=h.promise,v=m.$$promises={},g=P({},r),$=1+f.length/3,E=!1;if(N(a.$$failure))return c(a.$$failure),m;a.$$inheritedValues&&i(g,a.$$inheritedValues),a.$$values?(E=i(g,a.$$values),m.$$inheritedValues=a.$$values,s()):(a.$$inheritedValues&&(m.$$inheritedValues=a.$$inheritedValues),P(v,a.$$promises),a.then(s,c));for(var T=0,S=f.length;S>T;T+=3)r.hasOwnProperty(f[T])?s():p(f[T],f[T+1],f[T+2]);return m}},this.resolve=function(t,e,n,r){return this.study(t)(e,n,r)}}function f(t,e,n){this.fromConfig=function(t,e,n){return N(t.template)?this.fromString(t.template,e):N(t.templateUrl)?this.fromUrl(t.templateUrl,e):N(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return I(t)?t(e):t},this.fromUrl=function(n,r){return I(n)&&(n=n(r)),null==n?null:t.get(n,{cache:e}).then(function(t){return t.data})},this.fromProvider=function(t,e,r){return n.invoke(t,null,r||{params:e})}}function p(t,r){function i(t){return N(t)?this.type.decode(t):m.$$getDefaultValue(this)}function a(e,n,r){if(!/^\w+(-+\w+)*$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(p[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");p[e]=P({type:n||new h,$value:i},r)}function o(t,e,n){var r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return r;var i=n?"?":"";return r+i+"("+e+")"+i}function s(t){if(!r.params||!r.params[t])return{};var e=r.params[t];return C(e)?e:{value:e}}r=e.isObject(r)?r:{};var u,l=/([:*])(\w+)|\{(\w+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c="^",d=0,f=this.segments=[],p=this.params={};this.source=t;for(var v,g,$,E,T;(u=l.exec(t))&&(v=u[2]||u[3],g=u[4]||("*"==u[1]?".*":"[^/]*"),$=t.substring(d,u.index),E=this.$types[g]||new h({pattern:new RegExp(g)}),T=s(v),!($.indexOf("?")>=0));)c+=o($,E.$subPattern(),N(T.value)),a(v,E,T),f.push($),d=l.lastIndex;$=t.substring(d);var S=$.indexOf("?");if(S>=0){var A=this.sourceSearch=$.substring(S);$=$.substring(0,S),this.sourcePath=t.substring(0,d+S),L(A.substring(1).split(/[&?]/),function(t){a(t,null,s(t))})}else this.sourcePath=t,this.sourceSearch="";c+=o($)+(r.strict===!1?"/?":"")+"$",f.push($),this.regexp=new RegExp(c,r.caseInsensitive?"i":n),this.prefix=f[0]}function h(t){P(this,t)}function m(){function t(){return{strict:a,caseInsensitive:i}}function e(t){return I(t)||x(t)&&I(t[t.length-1])}function n(){L(s,function(t){if(p.prototype.$types[t.name])throw new Error("A type named '"+t.name+"' has already been defined.");var n=new h(e(t.def)?r.invoke(t.def):t.def);p.prototype.$types[t.name]=n})}var r,i=!1,a=!0,o=!0,s=[],u={"int":{decode:function(t){return parseInt(t,10)},is:function(t){return N(t)?this.decode(t.toString())===t:!1},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0===parseInt(t,10)?!1:!0},is:function(t){return t===!0||t===!1},pattern:/0|1/},string:{pattern:/[^\/]*/},date:{equals:function(t,e){return t.toISOString()===e.toISOString()},decode:function(t){return new Date(t)},encode:function(t){return[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-")},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/}};m.$$getDefaultValue=function(t){if(!e(t.value))return t.value;if(!r)throw new Error("Injectable functions cannot be called at configuration time");return r.invoke(t.value)},this.caseInsensitive=function(t){i=t},this.strictMode=function(t){a=t},this.compile=function(e,n){return new p(e,P(t(),n))},this.isMatcher=function(t){if(!C(t))return!1;var e=!0;return L(p.prototype,function(n,r){I(n)&&(e=e&&N(t[r])&&I(t[r]))}),e},this.type=function(t,e){return N(e)?(s.push({name:t,def:e}),o||n(),this):p.prototype.$types[t]},this.$get=["$injector",function(t){return r=t,o=!1,p.prototype.$types={},n(),L(u,function(t,e){p.prototype.$types[e]||(p.prototype.$types[e]=new h(t))}),this}]}function v(t,e){function r(t){var e=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(t.source);return null!=e?e[1].replace(/\\(.)/g,"$1"):""}function i(t,e){return t.replace(/\$(\$|\d{1,2})/,function(t,n){return e["$"===n?0:Number(n)]})}function a(t,e,n){if(!n)return!1;var r=t.invoke(e,e,{$match:n});return N(r)?r:!0}function o(e,n,r,i){function a(t,e,n){return"/"===f?t:e?f.slice(0,-1)+t:n?f.slice(1)+t:t}function o(t){function n(t){var n=t(r,e);return n?(M(n)&&e.replace().url(n),!0):!1}if(!t||!t.defaultPrevented){var i,a=u.length;for(i=0;a>i;i++)if(n(u[i]))return;l&&n(l)}}function d(){return s=s||n.$on("$locationChangeSuccess",o)}var f=i.baseHref(),p=e.url();return c||d(),{sync:function(){o()},listen:function(){return d()},update:function(t){return t?void(p=e.url()):void(e.url()!==p&&(e.url(p),e.replace()))},push:function(t,n,r){e.url(t.format(n||{})),r&&r.replace&&e.replace()},href:function(n,r,i){if(!n.validates(r))return null;var o=t.html5Mode(),s=n.format(r);if(i=i||{},o||null===s||(s="#"+t.hashPrefix()+s),s=a(s,o,i.absolute),!i.absolute||!s)return s;var u=!o&&s?"/":"",l=e.port();return l=80===l||443===l?"":":"+l,[e.protocol(),"://",e.host(),l,u,s].join("")}}}var s,u=[],l=null,c=!1;this.rule=function(t){if(!I(t))throw new Error("'rule' must be a function");return u.push(t),this},this.otherwise=function(t){if(M(t)){var e=t;t=function(){return e}}else if(!I(t))throw new Error("'rule' must be a function");return l=t,this},this.when=function(t,n){var o,s=M(n);if(M(t)&&(t=e.compile(t)),!s&&!I(n)&&!x(n))throw new Error("invalid 'handler' in when()");var u={matcher:function(t,n){return s&&(o=e.compile(n),n=["$match",function(t){return o.format(t)}]),P(function(e,r){return a(e,n,t.exec(r.path(),r.search()))},{prefix:M(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(o=e,e=["$match",function(t){return i(o,t)}]),P(function(n,r){return a(n,e,t.exec(r.path()))},{prefix:r(t)})}},l={matcher:e.isMatcher(t),regex:t instanceof RegExp};for(var c in l)if(l[c])return this.rule(u[c](t,n));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){t===n&&(t=!0),c=t},this.$get=o,o.$inject=["$location","$rootScope","$injector","$browser"]}function g(t,i){function a(t){return 0===t.indexOf(".")||0===t.indexOf("^")}function s(t,e){if(!t)return n;var r=M(t),i=r?t:t.name,o=a(i);if(o){if(!e)throw new Error("No reference point given for path '"+i+"'");for(var s=i.split("."),u=0,l=s.length,c=e;l>u;u++)if(""!==s[u]||0!==u){if("^"!==s[u])break;if(!c.parent)throw new Error("Path '"+i+"' not valid for state '"+e.name+"'");c=c.parent}else c=e;s=s.slice(u).join("."),i=c.name+(c.name&&s?".":"")+s}var d=S[i];return!d||!r&&(r||d!==t&&d.self!==t)?n:d}function d(t,e){A[t]||(A[t]=[]),A[t].push(e)}function f(e){e=r(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}});var n=e.name;if(!M(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(S.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var i=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):M(e.parent)?e.parent:"";if(i&&!S[i])return d(i,e.self);for(var a in y)I(y[a])&&(e[a]=y[a](e,y.$delegates[a]));if(S[n]=e,!e[b]&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){T.$current.navigable==e&&l(t,n)||T.transitionTo(e,t,{location:!1})}]),A[n])for(var o=0;o-1}function h(t){var e=t.split("."),n=T.$current.name.split(".");if("**"===e[0]&&(n=n.slice(n.indexOf(e[1])),n.unshift("**")),"**"===e[e.length-1]&&(n.splice(n.indexOf(e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length!=n.length)return!1;for(var r=0,i=e.length;i>r;r++)"*"===e[r]&&(n[r]="*");return n.join("")===e.join("")}function m(t,e){return M(t)&&!N(e)?y[t]:I(e)&&M(t)?(y[t]&&!y.$delegates[t]&&(y.$delegates[t]=y[t]),y[t]=e,this):this}function v(t,e){return C(t)?e=t:e.name=t,f(e),this}function g(t,i,a,d,f,m,v){function g(e,n,r,a){var o=t.$broadcast("$stateNotFound",e,n,r);if(o.defaultPrevented)return v.update(),O;if(!o.retry)return null;if(a.$retry)return v.update(),w;var s=T.transition=i.when(o.retry);return s.then(function(){return s!==T.transition?y:(e.options.$retry=!0,T.transitionTo(e.to,e.toParams,e.options))},function(){return O}),v.update(),s}function A(t,n,r,s,u){var l=r?n:c(o(t.params),n),p={$stateParams:l};u.resolve=f.resolve(t.resolve,p,u.resolve,t);var h=[u.resolve.then(function(t){u.globals=t})];return s&&h.push(s),L(t.views,function(n,r){var i=n.resolve&&n.resolve!==t.resolve?n.resolve:{};i.$template=[function(){return a.load(r,{view:n,locals:p,params:l})||""}],h.push(f.resolve(i,p,u.resolve,t).then(function(a){if(I(n.controllerProvider)||x(n.controllerProvider)){var o=e.extend({},i,p);a.$$controller=d.invoke(n.controllerProvider,null,o)}else a.$$controller=n.controller;a.$$state=t,a.$$controllerAs=n.controllerAs,u[r]=a}))}),i.all(h).then(function(){return u})}var y=i.reject(new Error("transition superseded")),R=i.reject(new Error("transition prevented")),O=i.reject(new Error("transition aborted")),w=i.reject(new Error("transition failed"));return E.locals={resolve:null,globals:{$stateParams:{}}},T={params:{},current:E.self,$current:E,transition:null},T.reload=function(){T.transitionTo(T.current,m,{reload:!0,inherit:!1,notify:!1})},T.go=function(t,e,n){return T.transitionTo(t,e,P({inherit:!0,relative:T.$current},n))},T.transitionTo=function(e,n,a){n=n||{},a=P({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},a||{});var f,p=T.$current,h=T.params,S=p.path,O=s(e,a.relative);if(!N(O)){var w={to:e,toParams:n,options:a},_=g(w,p.self,h,a);if(_)return _;if(e=w.to,n=w.toParams,a=w.options,O=s(e,a.relative),!N(O)){if(!a.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+a.relative+"'")}}if(O[b])throw new Error("Cannot transition to abstract state '"+e+"'");a.inherit&&(n=u(m,n||{},T.$current,O)),e=O;var I=e.path,M=0,C=I[M],x=E.locals,L=[];if(!a.reload)for(;C&&C===S[M]&&l(n,h,C.ownParams);)x=L[M]=C.locals,M++,C=I[M];if($(e,p,x,a))return e.self.reloadOnSearch!==!1&&v.update(),T.transition=null,i.when(T.current);if(n=c(o(e.params),n||{}),a.notify&&t.$broadcast("$stateChangeStart",e.self,n,p.self,h).defaultPrevented)return v.update(),R;for(var D=i.when(x),k=M;k=M;r--)o=S[r],o.self.onExit&&d.invoke(o.self.onExit,o.self,o.locals.globals),o.locals=null;for(r=M;r=0?n:n+"@"+(e?e.state.name:"")}function b(t,e){var n,r=t.match(/^\s*({[^}]*})\s*$/);if(r&&(t=e+"("+r[1]+")"),n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function y(t){var e=t.parent().inheritedData("$uiView");return e&&e.state&&e.state.name?e.state:void 0}function R(t,n){var r=["location","inherit","reload"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,a,o,s){var u=b(o.uiSref,t.current.name),l=null,c=y(a)||t.$current,d="FORM"===a[0].nodeName,f=d?"action":"href",p=!0,h={relative:c,inherit:!0},m=i.$eval(o.uiSrefOpts)||{};e.forEach(r,function(t){t in m&&(h[t]=m[t])});var v=function(e){if(e&&(l=e),p){var n=t.href(u.state,l,h),r=s[1]||s[0];return r&&r.$$setStateInfo(u.state,l),null===n?(p=!1,!1):void(a[0][f]=n)}};u.paramExpr&&(i.$watch(u.paramExpr,function(t){t!==l&&v(t)},!0),l=i.$eval(u.paramExpr)),v(),d||a.bind("click",function(e){var r=e.which||e.button;if(!(r>1||e.ctrlKey||e.metaKey||e.shiftKey||a.attr("target"))){var i=n(function(){t.go(u.state,l,h)});e.preventDefault(),e.preventDefault=function(){n.cancel(i)}}})}}}function O(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(r,i,a){function o(){s()?i.addClass(f):i.removeClass(f)}function s(){return"undefined"!=typeof a.uiSrefActiveEq?t.$current.self===c&&u():t.includes(c.name)&&u()}function u(){return!d||l(d,e)}var c,d,f;f=n(a.uiSrefActiveEq||a.uiSrefActive||"",!1)(r),this.$$setStateInfo=function(e,n){c=t.get(e,y(i)),d=n,o()},r.$on("$stateChangeSuccess",o)}]}}function w(t){return function(e){return t.is(e)}}function _(t){return function(e){return t.includes(e)}}var N=e.isDefined,I=e.isFunction,M=e.isString,C=e.isObject,x=e.isArray,L=e.forEach,P=e.extend,U=e.copy;e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),d.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",d),f.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",f),p.prototype.concat=function(t,e){return new p(this.sourcePath+t+this.sourceSearch,e)},p.prototype.toString=function(){return this.source},p.prototype.exec=function(t,e){var n=this.regexp.exec(t);if(!n)return null;e=e||{};var r,i,a,o=this.parameters(),s=o.length,u=this.segments.length-1,l={};if(u!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(r=0;u>r;r++)a=o[r],i=this.params[a],l[a]=i.$value(n[r+1]);for(;s>r;r++)a=o[r],i=this.params[a],l[a]=i.$value(e[a]);return l},p.prototype.parameters=function(t){return N(t)?this.params[t]||null:o(this.params)},p.prototype.validates=function(t){var e,n,r=!0,i=this;return L(t,function(t,a){i.params[a]&&(n=i.params[a],e=!t&&N(n.value),r=r&&(e||n.type.is(t)))}),r},p.prototype.format=function(t){var e=this.segments,n=this.parameters();if(!t)return e.join("").replace("//","/");var r,i,a,o,s,u,l=e.length-1,c=n.length,d=e[0];if(!this.validates(t))return null;for(r=0;l>r;r++)o=n[r],a=t[o],s=this.params[o],(N(a)||"/"!==e[r]&&"/"!==e[r+1])&&(null!=a&&(d+=encodeURIComponent(s.type.encode(a))),d+=e[r+1]);
for(;c>r;r++)o=n[r],a=t[o],null!=a&&(u=x(a),u&&(a=a.map(encodeURIComponent).join("&"+o+"=")),d+=(i?"&":"?")+o+"="+(u?a:encodeURIComponent(a)),i=!0);return d},p.prototype.$types={},h.prototype.is=function(){return!0},h.prototype.encode=function(t){return t},h.prototype.decode=function(t){return t},h.prototype.equals=function(t,e){return t==e},h.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},h.prototype.pattern=/.*/,e.module("ui.router.util").provider("$urlMatcherFactory",m),v.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",v),g.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").value("$stateParams",{}).provider("$state",g),$.$inject=[],e.module("ui.router.state").provider("$view",$),e.module("ui.router.state").provider("$uiViewScroll",E),T.$inject=["$state","$injector","$uiViewScroll"],S.$inject=["$compile","$controller","$state"],e.module("ui.router.state").directive("uiView",T),e.module("ui.router.state").directive("uiView",S),R.$inject=["$state","$timeout"],O.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",R).directive("uiSrefActive",O).directive("uiSrefActiveEq",O),w.$inject=["$state"],_.$inject=["$state"],e.module("ui.router.state").filter("isState",w).filter("includedByState",_)}(window,window.angular),!function(){function t(t){this.message=t}var e="undefined"!=typeof exports?exports:this,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var r,i,a=String(e),o=0,s=n,u="";a.charAt(0|o)||(s="=",o%1);u+=s.charAt(63&r>>8-o%1*8)){if(i=a.charCodeAt(o+=.75),i>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return u}),e.atob||(e.atob=function(e){var r=String(e).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,a,o=0,s=0,u="";a=r.charAt(s++);~a&&(i=o%4?64*i+a:a,o++%4)?u+=String.fromCharCode(255&i>>(-2*o&6)):0)a=n.indexOf(a);return u})}();var GateWay=function(){"use strict";function t(t){for(t.i=t.start;t.i0){var t=Object.keys(h)[0],e=h[t].mbf+(h[t].cmd?"("+h[t].cmd+")":"");l&&l.abort(),l=c&&new T({url:$.address+e+"?"+(new Date).getTime(),timeout:h[t].tmp||$.timeout,auth:h[t].ath,success:function(e){e&&(h[t].clb&&h[t].clb(e),h[t].mbf!==$.mbf?delete h[t]:parseInt(r(e)[0],10)===parseInt(h[t].cmd[4],10)?delete h[t]:delete h[t]),u=setTimeout(function(){return Object.keys(h).length>0?a():(d=!1,l=null,i(g))},$.pause)},error:function(){u=setTimeout(function(){return l=null,a()},$.pause)}})}}function o(t){return this instanceof o?($.machine=t.machine||$.machine,$.modbuss=t.modbuss||$.modbuss,$.address=t.address||$.address,$.timeout=t.timeout||$.timeout,$.pause=t.pause||$.pause,$.mbf=t.mbf||$.mbf,t.commands&&(t.commands[0][0]?e(t.commands,function(e){t.create&&t.create(e)}):f=[t.commands]),this):new o(t)}var s,u,l,c=!0,d=!1,f=[],p=!1,h={},m={},v=0,g=0,$={address:"http://"+location.host+"/",mbf:"FUNC",pause:500,timeout:500,machine:1,modbuss:4},E={callback:void 0,fallback:void 0,buffer:void 0,done:void 0},T=function(){function t(r){if(!(this instanceof t))return new t(r);e=new XMLHttpRequest,r.async=r.async||!0,r.method=r.method||"GET",e.open(r.method,r.url,r.async),r.auth&&e.setRequestHeader("Authorization",r.auth),r.async&&(e.timeout=r.timeout||e.timeout),e.onreadystatechange=function(){return 4===e.readyState&&200===e.status?r.success&&r.success(e.responseText,e):void(4===e.readyState&&200!==e.status&&(r.error&&r.error(n),n=!1))};try{return e.send()}catch(i){return r.error(e.responseText,e)}}var e,n=!1;return t.prototype.abort=function(){return n=!0,e.abort()},t}();return o.prototype.start=function(t){return c=!0,p=!1,i(0),t&&t(m,g),this},o.prototype.stop=function(t){return c=d||!1,s&&(clearTimeout(s),s=null),t&&t(m,g),this},o.prototype.resume=function(t){return s||(c=!0,i(g),t&&t(m,g)),this},o.prototype.on=function(t,e){return E.hasOwnProperty(t)&&(E[t]=e),this},o.prototype.buffer=function(t){return c=!0,l&&(l=null),s&&clearTimeout(s),t.mbf&&t.mbf!==$.mbf||3===t.cmd.length&&(t.cmd.unshift($.machine),t.cmd.unshift($.modbuss)),h[t.key]={cmd:t.cmd,mbf:t.mbf||$.mbf,clb:t.clb,ath:t.ath,tmp:t.tmp},d||a(),this},o.prototype.reset=function(t){return p=!1,g=0,t&&t(),this},o}(),mbgl=angular.module("mbgl",[]);mbgl.constant("LANGS",[{code:"en",label:"ENGLISH",active:!0},{code:"lt",label:"LIETUVIŲ",active:!1},{code:"de",label:"DEUTSCH",active:!1}]),mbgl.factory("localization",["DICTIONARY","LANGS",function(t,e){var n=e[0].code;return{setLanguage:function(r,i){return n=t[r]?r:n,e.forEach(function(t){t.active=t.code===n}),i?i():void 0},translate:function(e){return"string"==typeof e?(e=t[n][e]||e,e.charAt(0).toUpperCase()+e.slice(1)):e},locale:n}}]),mbgl.filter("trans",["localization",function(t){return t.translate}]),mbgl.constant("DICTIONARY",{en:{SETUP:"setup",RESET_ALARMS:"reset alarms",FILTER_RESET_TIMER_LIMIT:"filters timer time limit hours",SET_POINT:"set point",SUPPLY:"supply",ROOM:"room",OUTSIDE:"outdoor",HUMIDITY:"humidity",CO2:"CO2",SETTINGS:"settings",STATUS:"status",SCHEDULER:"schedule",GREEN_COLOR:"green colour",BLUE_COLOR:"blue colour",BLACK_COLOR:"black colour",BOOST_TIMER:'"BOOST" timer',CO2_LEVEL:"CO2 level set point",FAST_BUTTON:"fast button",NIGHT_COOLING:"night cooling",DATE_TIME:"date and time",FILTERS_TIMER:"filters timer",MIN:"minutes",PPM:"PPM",ON:"on",OFF:"off",BOOST:'"BOOST"',FIREPLACE:"fireplace",STANDBY:"standby",NIGHT_COOLING_DAY:"max outdoor t. (ºC)",NIGHT_COOLING_ROOM:"Room t. (ºC)",NIGHT_COOLING_NIGHT:"min outdoor t. (ºC)",NIGHT_COOLING_EXERCISE:"Exercise interval (h.)",LEFT_HOURS:"left hours",MENU:"menu",BYPASS:"bypass",PREHEATER:"PREHEATER",HEATER:"heater",MODE:"mode",FANS:"fans",FAN_SPEED:"fan speed",SUPPLY_FAN_SPEED:"supply fan speed",EXTRACT_FAN_SPEED:"extract fan speed",TEMPERATURE_INSIDE:"temperature inside",TEMPERATURE_OUTSIDE:"outdoor air t.",TEMPERATURE_SUPPLY:"supply air t.",TEMPERATURE_EXTRACT:"room air t.",TEMPERATURE_EXHAUST:"exhaust air t.",EVENT:"event",DISABLE_EVENT:"DISABLE event",DISABLE:"disable",HOURS:"hours",MINUTES:"minutes",TEMPERATURE_SET:"temperature set",MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday",SELECT_LANGUAGE:"select language",CONFIGURATION:"mb-gateway configuration",IP_ADDRESS:"ip address",SELECT_SPEED:"communication speed",SELECT_PARITY:"communication parity",SAVE:"save",MAC_ADDRESS:"mac address",TIME:"date and time",VENTILATION_CONTROL:"ventilation control",HELP:"help",SELECT_THEME:"select theme",LOADING_DATA:"loading data",RESETTING_SYSTEM:"resetting system",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"plate heat exchanger frost protection function",FIRE_ALARM:"fire alarm",DIRTY_FILTER_ALARM:"dirty filter alarm",FANS_ALARM:"fans overheat alarm",LOW_VOLTAGE:"low voltage",DJT_TEMPERATURE_SENSOR_ALARM:"djt(100) temperature sensor alarm",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"exhaust air temperature sensor alarm",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"supply air temperature sensor alarm",DJT_HUMIDITY_SENSOR_ALARM:"dtj(100) HUMIDITY sensor alarm (controller works, in determining the moisture content of 70%)",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"return water temperature sensor alarm",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"outdoor air temperature sensor alarm",OVERHEAT_ALARM:"overheat alarm",FILTERS_TIMER_TIME_LIMIT:"filters timer time limit",RESET_TIMER:"reset timer",CURRENT_TIMER_VALUE:"current timer value hours",NONE:"none",EVEN:"even",ODD:"odd",SYNCHRONIZE_TIME:"synchronize time",BOOST_TIMEOUT:'"BOOST" timeout',USERNAME:"username",PASSWORD:"password",RECENTLY_WAS_SET:"recently was set",MANUAL:"manual control",SCHEDULE:"by schedule",ALARMS:"alarms",ALARM_LIST:"alarm list",CLOSE:"close",OPEN:"open",ROTOR:"rotor",CONF_PASSWORD:"confirm password",MISMATCH:"passwords do not match",REBOOTING:"rebooting"},lt:{SETUP:"modulio parametrai",RESET_ALARMS:"anuliuoti gedimus",FILTER_RESET_TIMER_LIMIT:"laikmačio limitas",SET_POINT:"nustatytoji",SUPPLY:"tiekiama",ROOM:"patalpos",OUTSIDE:"lauko",HUMIDITY:"drėgmė",CO2:"CO2",SETTINGS:"nustatymai",STATUS:"būsenos",SCHEDULER:"tvarkaraštis",GREEN_COLOR:"žalia spalva",BLUE_COLOR:"mėlyna spalva",BLACK_COLOR:"juoda spalva",BOOST_TIMER:'"BOOST" laikmatis',CO2_LEVEL:"norimas CO2 lygis",FAST_BUTTON:"greitasis mygtukas",NIGHT_COOLING:"naktinis vėsinimas",DATE_TIME:"data ir laikas",FILTERS_TIMER:"filtrų laikmatis",MIN:"minutės",PPM:"PPM",ON:"įjungta",OFF:"išjungta",BOOST:'"BOOST" funkcija',FIREPLACE:"kaminkrėčio funkcija",STANDBY:"budėjimo režimas",NIGHT_COOLING_DAY:"Aukščiausia lauko t. (ºC)",NIGHT_COOLING_ROOM:"Patalpos t. (ºC)",NIGHT_COOLING_NIGHT:"Žemiausia lauko t. (ºC)",NIGHT_COOLING_EXERCISE:"Prapūtimo intervalas (val.)",LEFT_HOURS:"liko valandų",MENU:"meniu",BYPASS:"apėjimo sklendė (%)",PREHEATER:"pašildytuvas",HEATER:"šildytuvas",MODE:"režimas",FANS:"ventiliatoriai",FAN_SPEED:"ventiliatorių greitis",SUPPLY_FAN_SPEED:"tiek. oro ventiliat. (%)",EXTRACT_FAN_SPEED:"ištr. oro ventiliat. (%)",TEMPERATURE_INSIDE:"šalinamo oro t.",TEMPERATURE_OUTSIDE:"lauko oro t.",TEMPERATURE_SUPPLY:"tiekiamo oro t.",TEMPERATURE_EXTRACT:"patalpos oro t.",TEMPERATURE_EXHAUST:"šalinamo oro t.",EVENT:"įvykis",DISABLE_EVENT:"išjungti įvykį",DISABLE:"išjungti",HOURS:"valandos",MINUTES:"minutės",TEMPERATURE_SET:"norima temperatūra",MONDAY:"pirmadienis",TUESDAY:"antradienis",WEDNESDAY:"trečiadienis",THURSDAY:"ketvirtadienis",FRIDAY:"penktadienis",SATURDAY:"šeštadienis",SUNDAY:"sekmadienis",SELECT_LANGUAGE:"pasirinkite kalbą",CONFIGURATION:"mb-gateway nustatymai",IP_ADDRESS:"ip adresas",SELECT_SPEED:"ryšio linijos greitis",SELECT_PARITY:"ryšio linijos lygiškumas",SAVE:"išsaugoti",MAC_ADDRESS:"MAC adresas",TIME:"data ir laikas",VENTILATION_CONTROL:"vėdinimo valdymas",HELP:"pagalba",SELECT_THEME:"pasirinkite temą",LOADING_DATA:"kraunasi",RESETTING_SYSTEM:"perkraunama sistema",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"apsauga nuo šilumokaičio užšalimo",FIRE_ALARM:"priešgaisrinė apsauga",DIRTY_FILTER_ALARM:"pakeiskite filtrus",FANS_ALARM:"ventiliatoriaus perkaitimas",LOW_VOLTAGE:"žema įtampa",DJT_TEMPERATURE_SENSOR_ALARM:"djt(100) temperatūros jutiklio gedimas",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"šalinamo oro temperatūros jutiklio gedimas",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"tiekiamo oro temperatūros jutiklio gedimas",DJT_HUMIDITY_SENSOR_ALARM:"dtj(100) drėgmės jutiklio gedimas (valdiklis dirba lyg būtų 70% drėgmė)",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"grįžtamo vandens temperatūros jutiklio gedimas",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"lauko oro temperatūros jutiklio gedimas",OVERHEAT_ALARM:"šildytuvo perkaitimas",FILTERS_TIMER_TIME_LIMIT:"filtrų laikmačio limitas",RESET_TIMER:"nustatyti iš naujo laikmatį ",CURRENT_TIMER_VALUE:"laikmačio parodymai",NONE:"joks",EVEN:"lyginis",ODD:"nelyginis",SYNCHRONIZE_TIME:"sinchronizuoti laiką",BOOST_TIMEOUT:'"BOOST" laiko limitas',USERNAME:"vartotojo vardas",PASSWORD:"slaptažodis",RECENTLY_WAS_SET:"vėliausiai nustatyta",MANUAL:"rankinis valdymas",SCHEDULE:"pagal tvarkaraštį",ALARMS:"gedimai",ALARM_LIST:"gedimų sąrašas",CLOSE:"uždarytas",OPEN:"atidarytas",ROTOR:"rotorinis",CONF_PASSWORD:"patvirtinti slaptažodį",MISMATCH:"slaptažodžiai nesutampa",REBOOTING:"perkraunama sistema"},ru:{SETUP:"настройки модуля",RESET_ALARMS:"анилировать аварии",FILTER_RESET_TIMER_LIMIT:"лимит таймера",SET_POINT:"желаемый",SUPPLY:"приточный",ROOM:"помещение",OUTSIDE:"наружное",HUMIDITY:"влажность",CO2:"CO2",SETTINGS:"настройки",STATUS:"статус",SCHEDULER:"график",GREEN_COLOR:"зелёный цвет",BLUE_COLOR:"синий цвет",BLACK_COLOR:"чёрный цвет",BOOST_TIMER:'"BOOST" таймер',CO2_LEVEL:"желаемый уровень CO2",FAST_BUTTON:"быстроя кнопка",NIGHT_COOLING:"ночное охлаждение",DATE_TIME:"дата и время",FILTERS_TIMER:"таймер фильтров",MIN:"минуты",PPM:"PPM",ON:"включено",OFF:"выключено",BOOST:'"BOOST" функция',FIREPLACE:"функция контроля дымовой",STANDBY:"функция ожидания",NIGHT_COOLING_DAY:"максим. наружная температура (ºC)",NIGHT_COOLING_ROOM:"температура помещения (ºC)",NIGHT_COOLING_NIGHT:"минимальноя наружная температура (ºC)",NIGHT_COOLING_EXERCISE:"интервал отчистки (ч.)",LEFT_HOURS:"осталось часов",MENU:"меню",BYPASS:"обнодная заслонка (%)",PREHEATER:"подогреватель",HEATER:"нагреватель",MODE:"режим",FANS:"вентиляторы",FAN_SPEED:"корость вращ. вентиляторов ",SUPPLY_FAN_SPEED:"прит. Вент. (%)",EXTRACT_FAN_SPEED:"выт. Вент (%)",TEMPERATURE_INSIDE:"темп. Удаляем. воздуха",TEMPERATURE_OUTSIDE:"темп. Наруж. Воздуха",TEMPERATURE_SUPPLY:"темп. Приточ. Воздуха",TEMPERATURE_EXTRACT:"темп. Помещения",TEMPERATURE_EXHAUST:"т-ра удаляемого воздуха",EVENT:"событие",DISABLE_EVENT:"выкл. Событие",DISABLE:"выключить",HOURS:"часы",MINUTES:"минуты",TEMPERATURE_SET:"желаем. температура",MONDAY:"понедельник",TUESDAY:"вторник",WEDNESDAY:"среда",THURSDAY:"четверг",FRIDAY:"пятница",SATURDAY:"субота",SUNDAY:"воскресение",SELECT_LANGUAGE:"выбрать язык",CONFIGURATION:"mb-gateway настройки",IP_ADDRESS:"IP адрес",SELECT_SPEED:"скорость линии связи",SELECT_PARITY:"линии паритета связи",SAVE:"сохранить",MAC_ADDRESS:"физический адрес",TIME:"дата и время",VENTILATION_CONTROL:"управление вентиляции",HELP:"помощь",SELECT_THEME:"выбрать тему",LOADING_DATA:"загрузка",RESETTING_SYSTEM:"перегрузка системы",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"защита от замерз. Теплообменника",FIRE_ALARM:"противопожарная защита",DIRTY_FILTER_ALARM:"меняйте фильтры",FANS_ALARM:"перегрев вентилятора",LOW_VOLTAGE:"низкое напряжение",DJT_TEMPERATURE_SENSOR_ALARM:"dtj(100) поломка темп. Датчика",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"авария датчика удаля. Воздуха",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"авария датчика приточ. Воздуха",DJT_HUMIDITY_SENSOR_ALARM:"dtj(100) поломка темп. Датчика (контроллер работает как 70% мочности)",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"авария датчика обратной воды",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"авария датчика наружной температуры",OVERHEAT_ALARM:"перегрев нагревателя",FILTERS_TIMER_TIME_LIMIT:"лимит таймера фильтров",RESET_TIMER:"сброс таймера",CURRENT_TIMER_VALUE:"показ. Таймера",NONE:"никакой",EVEN:"четное",ODD:"нечетное",SYNCHRONIZE_TIME:"синхронизировать время",BOOST_TIMEOUT:'лимин времени "BOOST"',USERNAME:"псевдоним",PASSWORD:"пароль",RECENTLY_WAS_SET:"последнее установление",MANUAL:"ручное упровление",SCHEDULE:"по графику",ALARMS:"аварии",ALARM_LIST:"список аварии",CLOSE:"закрытый ",OPEN:"открытый",ROTOR:"роторный ",CONF_PASSWORD:"подтвердите пароль",MISMATCH:"Пароли не совпадают",REBOOTING:"перезагрузка"},de:{SETUP:"SETUP",RESET_ALARMS:"Alarme rücksetzen",FILTER_RESET_TIMER_LIMIT:"Zeitgeber Limit",SET_POINT:"Sollwert",SUPPLY:"Zuluft",ROOM:"Raum",OUTSIDE:"Außen",HUMIDITY:"Feuchtigkeit",CO2:"CO2",SETTINGS:"Einstellungen",STATUS:"Status",SCHEDULER:"Zeitplan",GREEN_COLOR:"grüne Farbe",BLUE_COLOR:"blaue Farbe",BLACK_COLOR:"schwarze farbe",BOOST_TIMER:'"BOOST" Zeitgeber',CO2_LEVEL:"CO2 Sollniveau",FAST_BUTTON:"Schnelltaste",NIGHT_COOLING:"Nachtkühlung ",DATE_TIME:"Datum und Uhrzeit",FILTERS_TIMER:"Filterwechselzähler",MIN:"Minuten",PPM:"PPM",ON:"EIN ",OFF:"AUS",BOOST:'"BOOST"-Funktion',FIREPLACE:"Kaminfunktion",STANDBY:"standby",NIGHT_COOLING_DAY:"Max. Außentemperatur (ºC)",NIGHT_COOLING_ROOM:"Raumtemperatur (ºC)",NIGHT_COOLING_NIGHT:"Min. Außentemperatur (ºC)",NIGHT_COOLING_EXERCISE:"Lüftungsinterval (h)",LEFT_HOURS:"Stunden übrig",MENU:"Menü",BYPASS:"By-Pass-Klappe",PREHEATER:"Vorheizregister",HEATER:"Nachheizregister",MODE:"Modus",FANS:"Ventilatoren",FAN_SPEED:"Ventilatordrehzahl",SUPPLY_FAN_SPEED:"Zuluftventilator-Drehzahl (%)",EXTRACT_FAN_SPEED:"Abluftventilator-Drehzahl (%)",TEMPERATURE_INSIDE:"Fortlufttemperatur",TEMPERATURE_OUTSIDE:"Außenlufttemperatur",TEMPERATURE_SUPPLY:"Zulufttemperatur",TEMPERATURE_EXTRACT:"Raum",TEMPERATURE_EXHAUST:"Fortlufttemperatur",EVENT:"Ereignis",DISABLE_EVENT:"Ereignis deaktivieren",DISABLE:"deaktivieren ",HOURS:"Stunden",MINUTES:"Minuten",TEMPERATURE_SET:"Solltemperatur",MONDAY:"Montag",TUESDAY:"Dienstag",WEDNESDAY:"Mittwoch",THURSDAY:"Donnerstag",FRIDAY:"Freitag",SATURDAY:"Samstag",SUNDAY:"Sonntag",SELECT_LANGUAGE:"Sprache wählen",CONFIGURATION:"mb-getaway Konfiguration",IP_ADDRESS:"IP Adresse",SELECT_SPEED:"Übertragungsgeschwindigkeit",SELECT_PARITY:"Übertragungsparität",SAVE:"speichern",MAC_ADDRESS:"MAC-Adresse",TIME:"Datum und Uhrzeit",VENTILATION_CONTROL:"Lüftung-Steuerung",HELP:"Hilfe",SELECT_THEME:"Thema wählen",LOADING_DATA:"Ladevorgang",RESETTING_SYSTEM:"Neustart ",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"Vereisungsschutz des Wärmetauschers",FIRE_ALARM:"Branschutzalarm",DIRTY_FILTER_ALARM:"Filterverschmutzung-Alarm",FANS_ALARM:"Ventilatorüberhitzung",LOW_VOLTAGE:"Niedrige Spannung",DJT_TEMPERATURE_SENSOR_ALARM:"djt (100) Fühler defekt",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"Fortluftfühler defekt",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"Zuluftfühler defekt",DJT_HUMIDITY_SENSOR_ALARM:"dtj (100) Feuchtefühler defekt",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"Anlegefühler (Wasseraustritt) defekt",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"Außentemperaturfühler defekt",OVERHEAT_ALARM:"Überhitzung des Elektroregisters",FILTERS_TIMER_TIME_LIMIT:"Filterwechselzähler-Limit",RESET_TIMER:"Zähler zurückstellen",CURRENT_TIMER_VALUE:"Aktuelle Zählersanzeige",NONE:"Kein",EVEN:"gerade",ODD:"ungerade",SYNCHRONIZE_TIME:"Zeit synchronisieren",BOOST_TIMEOUT:'"BOOST" Zeitlimit',USERNAME:"Benutzername",PASSWORD:"Passwort",RECENTLY_WAS_SET:"letzte Einstellung",MANUAL:"Handbetrieb",SCHEDULE:"nach dem Zeitplan",ALARMS:"Alarme ",ALARM_LIST:"Alarmliste",CLOSE:"AUF",OPEN:"ZU",ROTOR:"Rotor",CONF_PASSWORD:"Passwort bestätigen",MISMATCH:"Passwörten stimmen nicht überein",REBOOTING:"Neustart"},fr:{SETUP:"réglage",RESET_ALARMS:"réinitialisation alarmes",FILTER_RESET_TIMER_LIMIT:"limite compteur filtres dépassée",SET_POINT:"consigne",SUPPLY:"soufflage",ROOM:"ambiance",OUTSIDE:"extérieur",HUMIDITY:"humidité",CO2:"CO2",SETTINGS:"paramètres",STATUS:"status",SCHEDULER:"calendrier",GREEN_COLOR:"couleur verte",BLUE_COLOR:"couleur bleue",BLACK_COLOR:"couleur noire",BOOST_TIMER:'minuterie "BOOST"',CO2_LEVEL:"consigne niveau de CO2",FAST_BUTTON:"bouton rapide",NIGHT_COOLING:"night cooling",DATE_TIME:"date et heure",FILTERS_TIMER:"compteur filtres",MIN:"minutes",PPM:"PPM",ON:"on",OFF:"off",BOOST:'"BOOST"',FIREPLACE:"Fireplace",STANDBY:"veille",NIGHT_COOLING_DAY:"t. (°C) extérieure MAX",NIGHT_COOLING_ROOM:"température d'ambiance (°C)",NIGHT_COOLING_NIGHT:"t. (°C) extérieure MIN",NIGHT_COOLING_EXERCISE:"interval de mesure (h.)",LEFT_HOURS:"HEURES restant",MENU:"menu",BYPASS:"bypass",PREHEATER:"batterie préchauffage",HEATER:"batterie chauffage",MODE:"mode",FANS:"ventilateurs",FAN_SPEED:"vitesse ventilateur",SUPPLY_FAN_SPEED:"vitesse ventilateur soufflage",EXTRACT_FAN_SPEED:"vitesse ventilateur extraction",TEMPERATURE_INSIDE:"température d'air rejeté",TEMPERATURE_OUTSIDE:"température extérieure",TEMPERATURE_SUPPLY:"température soufflage",TEMPERATURE_EXTRACT:"ambiance",TEMPERATURE_EXHAUST:"température d'air rejeté",EVENT:"événement",DISABLE_EVENT:"DESACTIVER événement",DISABLE:"désactiver",HOURS:"heures",MINUTES:"minutes",TEMPERATURE_SET:"température réglée",MONDAY:"lundi",TUESDAY:"mardi",WEDNESDAY:"mercredi",THURSDAY:"jeudi",FRIDAY:"vendredi",SATURDAY:"samedi",SUNDAY:"dimanche",SELECT_LANGUAGE:"sélectionner langue",CONFIGURATION:"MB-passerelle communication",IP_ADDRESS:"adresse IP",SELECT_SPEED:"vitesse communication",SELECT_PARITY:"parité communication",SAVE:"sauvegarder",MAC_ADDRESS:"adresse MAC",TIME:"date et heure",VENTILATION_CONTROL:"contrôle ventilation",HELP:"aide",SELECT_THEME:"sélectionner thème",LOADING_DATA:"chargement des données",RESETTING_SYSTEM:"réinitialisation système",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"protection antigel échangeur à plaques",FIRE_ALARM:"alarme incendie",DIRTY_FILTER_ALARM:"alarme encrassement filtre",FANS_ALARM:"alarme ventilateurs",LOW_VOLTAGE:"tension trop basse",DJT_TEMPERATURE_SENSOR_ALARM:"alarme sonde température djt(100)",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"alarme sonde température rejet d'air",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"alarme sonde température soufflage",DJT_HUMIDITY_SENSOR_ALARM:"alarme sonde humidité djt(100) (régulateur fonctionne comme si l'humidité était à 70 %)",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"alarme sonde température de retour d'eau",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"alarme sonde température extérieure",OVERHEAT_ALARM:"alarme surchauffe",FILTERS_TIMER_TIME_LIMIT:"durée limite compteur filtres",RESET_TIMER:"réinitialiser compteur",CURRENT_TIMER_VALUE:"durée actuelle compteur filtre",NONE:"aucun",EVEN:"pair",ODD:"impair",SYNCHRONIZE_TIME:"synchroniser heure",BOOST_TIMEOUT:'arrêt "BOOST"',USERNAME:"nom d'utilisateur",PASSWORD:"mot de passe",RECENTLY_WAS_SET:"valeur la plus récente",MANUAL:"contrôle manuel",SCHEDULE:"selon calendrier",ALARMS:"alarmes",ALARM_LIST:"liste des alarmes ",CLOSE:"fermé ",OPEN:"ouvert",ROTOR:"rotor",CONF_PASSWORD:"confirmer le mot de passe",MISMATCH:"le mot de passe ne correspond pas",REBOOTING:"rechargement"},it:{SETUP:"configurazione",RESET_ALARMS:"azzerare allarmi",FILTER_RESET_TIMER_LIMIT:"limite timer filtri",SET_POINT:"set point",SUPPLY:"immessa",ROOM:"ambiente",OUTSIDE:"esterna",HUMIDITY:"umidità ",CO2:"CO2 ",SETTINGS:"impostazioni ",STATUS:"status",SCHEDULER:"orario ",GREEN_COLOR:"colore verde ",BLUE_COLOR:"colore blu ",BLACK_COLOR:"colore nero ",BOOST_TIMER:'timer del "BOOST" ',CO2_LEVEL:"set point livello di CO2 ",FAST_BUTTON:"tasto di scelta rapida ",NIGHT_COOLING:'funzione "night cooling"',DATE_TIME:"data e ora ",FILTERS_TIMER:"timer filtri",MIN:"minuti",PPM:"PPM ",ON:"acceso",OFF:"spento",BOOST:'funzione "BOOST"',FIREPLACE:"funzione spazzacamino",STANDBY:"stand-by",NIGHT_COOLING_DAY:"temperatura esterna max (ºC)",NIGHT_COOLING_ROOM:"temperatura ambiente (ºC) ",NIGHT_COOLING_NIGHT:"temperatura esterna min (ºC) ",NIGHT_COOLING_EXERCISE:"intervallo di esercizio (H) ",LEFT_HOURS:"orario rimasti",MENU:"menu",BYPASS:"valvola by-pass ",PREHEATER:"batteria di preriscaldamento ",HEATER:"batteria di riscaldamento",MODE:"regime",FANS:"ventilatori",FAN_SPEED:"velocità ventilatori",SUPPLY_FAN_SPEED:"velocità ventilatore di immissione",EXTRACT_FAN_SPEED:"velocità ventilatore di estrazione",TEMPERATURE_INSIDE:"temperatura ambiente",TEMPERATURE_OUTSIDE:"temperatura esterna",TEMPERATURE_SUPPLY:"temperatura immessa",TEMPERATURE_EXTRACT:"ambiente",TEMPERATURE_EXHAUST:"temperatura aria espulsa",EVENT:"evento ",DISABLE_EVENT:"disattivare evento",DISABLE:"disattivare",HOURS:"ore",MINUTES:"minuti ",TEMPERATURE_SET:"temperatura di set point",MONDAY:"lunedi ",TUESDAY:"martedì ",WEDNESDAY:"mercoledì ",THURSDAY:"giovedi ",FRIDAY:"venerdì ",SATURDAY:"sabato ",SUNDAY:"domenica ",SELECT_LANGUAGE:"seleziona lingua",CONFIGURATION:"configurazione mb-gateway ",IP_ADDRESS:"indirizzo ip",SELECT_SPEED:"velocità di comunicazione",SELECT_PARITY:"parità di comunicazione",SAVE:"salvare",MAC_ADDRESS:"indirizzo MAC",TIME:"data e ora ",VENTILATION_CONTROL:"controllo ventilazione",HELP:"assistenza",SELECT_THEME:"seleziona tema",LOADING_DATA:"caricamento dati in corso",RESETTING_SYSTEM:"riavvio sistema in corso",PLATE_HEAT_EXCHANGER_FROST_PROTECTION_FUNCTION:"protezione antigelo di scambiatore",FIRE_ALARM:"allarme antincendio",DIRTY_FILTER_ALARM:"allarme filtri sporco",FANS_ALARM:"allarme surriscaldamento ventilatore",LOW_VOLTAGE:"basso voltaggio",DJT_TEMPERATURE_SENSOR_ALARM:"allarme guasto sensore temperatura djt(100)",EXHAUST_AIR_TEMPERATURE_SENSOR_ALARM:"allarme guasto sensore temperatura dell'aria espulsa",SUPPLY_AIR_TEMPERATURE_SENSOR_ALARM:"allarme guasto sensore temperatura dell'aria immessa",DJT_HUMIDITY_SENSOR_ALARM:"allarme guasto sensore umidità djt(100) (funziona come fosse il 70% di umidità) ",RETURN_WATER_TEMPERATURE_SENSOR_ALARM:"allarme guasto sensore temperatura dell'acqua di ritorno",OUTSIDE_AIR_TEMPERATURE_SENSOR_ALARM:"allarme guasto sensore temperatura dell'aria esterna",OVERHEAT_ALARM:"allarme di surriscaldamento ",FILTERS_TIMER_TIME_LIMIT:"limite timer filtri",RESET_TIMER:"reimpostare il timer ",CURRENT_TIMER_VALUE:"ora attuale timer",NONE:"nessun",EVEN:"pari",ODD:"dispari",SYNCHRONIZE_TIME:"sincronizzare l'ora",BOOST_TIMEOUT:'scadenza "BOOST"',USERNAME:"nome utente",PASSWORD:"password",RECENTLY_WAS_SET:"recentemente impostato",MANUAL:"controllo manuale",SCHEDULE:"secondo il calendario",ALARMS:"allarmi guasti",ALARM_LIST:"elenco guasti",CLOSE:"chiuso",OPEN:"aperto",ROTOR:"rotativo",CONF_PASSWORD:"conferma password",MISMATCH:"password non corrisponde",REBOOTING:"riavvio sistema in corso"}}),angular.module("templates",[]).run(["$templateCache",function(t){t.put("prv/tpl/page/alert.htm",' {{\'RESET_ALARMS\'|trans}}
'),t.put("prv/tpl/page/boost.htm",' '),t.put("prv/tpl/page/calendar.htm",' {{$index + (!part || 5)}} {{\'EVENT\'|trans}} |
|
|
|
|
|
'),t.put("prv/tpl/page/co2lvl.htm",' '),t.put("prv/tpl/page/datetime.htm",' '),t.put("prv/tpl/page/fan.htm",' '),t.put("prv/tpl/page/fastbtn.htm",' {{\'BOOST\'|trans}}/{{\'FIREPLACE\'|trans}}
'),t.put("prv/tpl/page/fltreset.htm",' | | | |
{{\'RESET_TIMER\'|trans}} | {{\'LEFT_HOURS\'|trans}} | {{\'FILTER_RESET_TIMER_LIMIT\'|trans}} | {{\'CURRENT_TIMER_VALUE\'|trans}} |
'),t.put("prv/tpl/page/home.htm",' {{data[3][260]|leadingzero}}:{{data[3][261]|leadingzero}}
{{data[3][264]|leadingzero}}/{{data[3][263]|leadingzero}}/{{data[3][262]|leadingyear}}
'),t.put("prv/tpl/page/menu.htm",'
'),t.put("prv/tpl/page/nghtcool.htm",' '),t.put("prv/tpl/page/settings.htm",' '),t.put("prv/tpl/page/status.htm",' {{col.name|trans}} {{col.unit}} {{data[col.addr][col.ele]|applyFilter:col.filter|trans}} |
'),t.put("prv/tpl/page/temp.htm",' | {{\'RECENTLY_WAS_SET\'|trans}} °C |
| |
'),t.put("prv/tpl/widget/alert.htm",''),t.put("prv/tpl/widget/bmitem.htm",' | {{value|point:\'before\'}}{{value|point:\'after\'}} |
{{caption}} |
'),t.put("prv/tpl/widget/dropdown.htm",' {{items[value]|trans|uppercase}}
- {{items[key]|trans|uppercase}}
'),t.put("prv/tpl/widget/header.htm",' '),t.put("prv/tpl/widget/hmenu.htm",' '),t.put("prv/tpl/widget/loading.htm",' {{[\'LOADING_DATA\', \'REBOOTING\', \'RESETTING_SYSTEM\'][msg || 0]|trans}}...
'),t.put("prv/tpl/widget/meter.htm",' '),t.put("prv/tpl/widget/mitem.htm",' {{value|point:\'before\'}}{{value|point:\'after\'}}
{{caption}}
'),t.put("prv/tpl/widget/onoff.htm",''),t.put("prv/tpl/widget/range.htm",''),t.put("prv/tpl/widget/smenu.htm",' '),t.put("prv/tpl/widget/value.htm",'')
}]),function(t,e){"use strict";Array.prototype.chunk=function(t){var e=this;return[].concat.apply([],e.map(function(n,r){return r%t?[]:[e.slice(r,r+t)]}))},Array.prototype.queue=function(t,e){""!==e&&-1===this.indexOf(e)&&(this.length>t&&this.shift(),this.push(e))},String.prototype.lz=function(){return 1===this.length?"0"+this:this},String.prototype.ly=function(){return 1===this.length?"200"+this:2===this.length?"20"+this:3===this.length?"2"+this:this},String.prototype.clean=function(){var t=this;return t=t.replace(" No such parameter.
",""),t=t.replace(" ",""),t=t.replace(";",""),t=t.replace("Parameter value: ",""),t=t.replace(" ","")},String.prototype.getTimeToken=function(){var t=new Date(this);return[t.getYear()-100,t.getMonth(),t.getDate(),t.getDay(),t.getHours(),t.getMinutes(),t.getSeconds()]};var n=t.module("prv",["ui.router","mbgl","templates"]);n.config(["$stateProvider","$urlRouterProvider",function(t,e){e.otherwise("/home"),t.state("home",{url:"/home",templateUrl:"prv/tpl/page/home.htm"}).state("temperature",{url:"/temperature",templateUrl:"prv/tpl/page/temp.htm",controller:"TempCtrl",data:{path:[{label:"SET_POINT",href:"temperature"}],back:"home"}}).state("fan",{url:"/fan",templateUrl:"prv/tpl/page/fan.htm",data:{path:[{label:"FAN_SPEED",href:"fan"}],back:"home"}}).state("menu",{url:"/menu",templateUrl:"prv/tpl/page/menu.htm",data:{path:[{label:"MENU",href:"menu"}],back:"home"}}).state("settings",{url:"/settings",templateUrl:"prv/tpl/page/settings.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"}],back:"menu"}}).state("status",{url:"/status",templateUrl:"prv/tpl/page/status.htm",controller:"StatusCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"STATUS",href:"status"}],back:"menu"}}).state("scheduler",{url:"/scheduler",templateUrl:"prv/tpl/page/calendar.htm",controller:"CalendarCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SCHEDULER",href:"scheduler"}],back:"menu"}}).state("alert",{url:"/alert",templateUrl:"prv/tpl/page/alert.htm",controller:"AlertCtrl",data:{path:[{label:"ALARM_LIST",href:"alert"}],back:"home"}}).state("boost",{url:"/boost",templateUrl:"prv/tpl/page/boost.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"BOOST",href:"boost"}],back:"settings"}}).state("co2level",{url:"/co2level",templateUrl:"prv/tpl/page/co2lvl.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"CO2_LEVEL",href:"co2level"}],back:"settings"}}).state("fastbutton",{url:"/fastbutton",templateUrl:"prv/tpl/page/fastbtn.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"FAST_BUTTON",href:"fastbutton"}],back:"settings"}}).state("nightcooling",{url:"/nightcooling",templateUrl:"prv/tpl/page/nghtcool.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"NIGHT_COOLING",href:"nightcooling"}],back:"settings"}}).state("datetime",{url:"/datetime",templateUrl:"prv/tpl/page/datetime.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"DATE_TIME",href:"datetime"}],back:"settings"}}).state("filterreset",{url:"/filterreset",templateUrl:"prv/tpl/page/fltreset.htm",controller:"SettingsCtrl",data:{path:[{label:"MENU",href:"menu"},{label:"SETTINGS",href:"settings"},{label:"FILTERS_TIMER",href:"filterreset"}],back:"settings"}})}]),n.factory("gateway",function(){var t,n="Basic "+e,r=new GateWay({pause:200,timeout:2e3,commands:[[1,0,45],[4,0,18],[3,0,111],[3,111,110],[3,220,110],[3,330,15]],create:function(e){t=e}});return{api:r,data:function(){return t},update:function(t){return t.nv!==t.ov?r.buffer({key:[t.mb,t.addr,t.ele],cmd:[t.mb,t.ele,t.nv]}):r.resume()},calculate:function(t){return isNaN(t.nv)||t.ov===t.nv?t.ov:t.di?t.nv>t.max||t.nvt.max?t.min:t.nv,t.nv=t.nv1?(t.part=0,t.day=t.day+1>6?0:t.day+1):0>e?(t.part=1,t.day=t.day-1<0?6:t.day-1):t.part=e},t.copy=function(e,n){t.cp=t.current[n].map(function(n){return t.data[e][n]})},t.paste=function(e,n,r){t.cp&&t.current[r].forEach(function(r,i){return t.data[n][r]=t.cp[i],t.gateway.buffer({key:[e,n,r],cmd:[e,r,t.cp[i]]})})},t.copyDay=function(n,r){t.cpd=e[r].map(function(e){return t.data[n][e]})},t.pasteDay=function(n,r,i){e[i].forEach(function(e,i){return t.data[r][e]=t.cpd[i],t.gateway.buffer({key:[n,r,e],cmd:[n,e,t.cpd[i]]})})},t.cleanDay=function(n,r,i){e[i].chunk(4).forEach(function(e){return t.data[r][e[0]]=24,t.gateway.buffer({key:[n,r,e[0]],cmd:[n,e[0],24]})})}}]),n.filter("applyFilter",["$filter",function(t){return function(e,n){return n?t(n)(e):e}}]),n.filter("divide10",function(){return function(t){return t/10}}),n.filter("leadingzero",function(){return function(t){return String(t).lz()}}),n.filter("leadingyear",function(){return function(t){return String(t).ly()}}),n.filter("point",function(){return function(t,e){return"after"===e?0===Math.round(t%1*10)||isNaN(t%1*10)?".0":"."+Math.abs(Math.round(t%1*10)):"before"!==e||isNaN(t-t%1)?void 0:t-t%1}}),n.filter("offon",function(){return function(t){return["OFF","ON"][t]||t}}),n.filter("clpn",function(){return function(t){return["CLOSE","OPEN"][t]||t}}),n.filter("mode",function(){return function(t){return["OFF","MANUAL","SCHEDULER"][t]||"..."}}),n.filter("fanspeed",function(){return function(t){return t?t:"OFF"}}),n.directive("menuItem",function(){return{scope:{image:"@",caption:"@",value:"=",unit:"@",point:"="},restrict:"A",replace:!1,templateUrl:"prv/tpl/widget/mitem.htm"}}),n.directive("bigMenuItem",function(){return{scope:{image:"@",caption:"@",value:"=",unit:"@",point:"="},restrict:"A",replace:!1,templateUrl:"prv/tpl/widget/bmitem.htm"}}),n.directive("transformer",function(){return{require:"ngModel",link:function(t,e,n,r){e.on("change",function(){this.value=this.value.lz()}),r.$formatters.unshift(function(e){return t.lz?String(e).lz():e}),r.$parsers.push(function(t){return parseInt(t)})}}}),n.directive("coefficient",function(){return{require:"ngModel",link:function(t,e,n,r){r.$formatters.unshift(function(e){return t.coef?e*t.coef:e}),r.$parsers.push(function(e){parseInt(t.coef?e/t.coef:e,10)})}}}),n.directive("rangeWidget",["gateway",function(e){return{scope:{caption:"@",number:"=",units:"@",point:"@",style:"@",type:"@",id:"@",mb:"=",addr:"=",ele:"=",min:"=",max:"=",step:"=",coef:"=",hours:"=",lz:"="},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/range.htm",compile:function(n,r){return r.lz&&"true"===r.lz&&n[0][0].setAttribute("data-transformer",""),r.coef&&n[0][0].setAttribute("data-coefficient",""),{post:function(n,r){function i(t){clearTimeout(n.timer),n.timer=setTimeout(function(){return e.api.stop(function(){return t(),n.counting?i(t):n.mb&&n.addr&&n.ele?e.update({mb:n.mb,addr:n.addr,ele:n.ele,nv:n.number,ov:n.temp}):e.api.resume()})},120)}var a=t.element(r[0].getElementsByClassName("minus circle")),o=t.element(r[0].getElementsByClassName("plus circle"));n.$watch("max",function(t){n.maxlen=String(t).length||4}),r.find("input").on("focusin",function(){return e.api.stop(function(){n.temp=n.number})}).on("focusout",function(){return n.$apply(function(){n.number=e.calculate({nv:n.number,ov:n.temp,min:n.min,max:n.max,di:!0})}),n.mb&&n.addr&&n.ele?e.update({mb:n.mb,addr:n.addr,ele:n.ele,nv:n.number,ov:n.temp}):e.api.resume()}),a.on("mousedown touchstart",function(){return e.api.stop(function(){return n.counting=!0,i(function(){n.temp=n.number,n.$apply(function(){n.number=e.calculate({nv:n.number-n.step,ov:n.temp,min:n.min,max:n.max})})})})}).on("mouseup mouseleave touchend",function(){n.counting=!1}),o.on("mousedown touchstart",function(){return e.api.stop(function(){return n.counting=!0,i(function(){n.temp=n.number,n.$apply(function(){n.number=e.calculate({nv:n.number+n.step,ov:n.temp,min:n.min,max:n.max})})})})}).on("mouseup mouseleave touchend",function(){n.counting=!1})}}}}}]),n.directive("onoffWidget",function(){return{scope:{value:"=",image:"@",reverse:"=",text:"@",disabled:"=",type:"=",on:"=",off:"=",onimg:"@",offimg:"@"},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/onoff.htm"}}),n.directive("lzt",function(){return{require:"ngModel",link:function(t,e,n,r){e.on("change",function(){this.value=this.value.lz()}),r.$formatters.unshift(function(t){return String(t).lz()}),r.$parsers.push(function(t){return parseInt(t)})}}}),n.directive("lyt",function(){return{require:"ngModel",link:function(t,e,n,r){e.on("change",function(){this.value=this.value.ly()}),r.$formatters.unshift(function(t){return String(t).ly()}),r.$parsers.push(function(t){return parseInt(t.slice(-3),10)})}}}),n.directive("valueWidget",["gateway",function(e){return{scope:{number:"=",id:"@",mb:"=",addr:"=",ele:"=",min:"=",max:"=",step:"=",filter:"@"},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/value.htm",compile:function(n,r){return r.filter&&n.find("input").attr(r.filter,""),{post:function(n,r){function i(t){clearTimeout(n.timer),n.timer=setTimeout(function(){return e.api.stop(function(){return t(),n.counting?i(t):e.update({mb:n.mb,addr:n.addr,ele:n.ele,nv:n.number,ov:n.temp})})},120)}var a=t.element(r[0].getElementsByClassName("minus circle")),o=t.element(r[0].getElementsByClassName("plus circle"));n.$watch("max",function(t){n.maxlen=225===t?n.maxlen=4:String(t).length||4}),r.find("input").on("focusin",function(){return e.api.stop(function(){n.temp=n.number})}).on("focusout",function(){return n.$apply(function(){n.number=e.calculate({nv:n.number,ov:n.temp,min:n.min,max:n.max,coef:n.coef,di:!0})}),e.update({mb:n.mb,addr:n.addr,ele:n.ele,nv:n.number,ov:n.temp})}),a.on("mousedown touchstart",function(){return e.api.stop(function(){return n.counting=!0,i(function(){n.temp=n.number,n.$apply(function(){n.number=e.calculate({nv:n.number-n.step*(n.coef||1),ov:n.temp,min:n.min,max:n.max,coef:n.coef})})})})}).on("mouseup mouseleave touchend",function(){n.counting=!1}),o.on("mousedown touchstart",function(){return e.api.stop(function(){return n.counting=!0,i(function(){n.temp=n.number,n.$apply(function(){n.number=e.calculate({nv:n.number+n.step*(n.coef||1),ov:n.temp,min:n.min,max:n.max,coef:n.coef})})})})}).on("mouseup mouseleave touchend",function(){n.counting=!1})}}}}}]),n.directive("meterWidget",function(){return{scope:{theme:"@",value:"=",max:"="},replace:!0,restrict:"A",templateUrl:"prv/tpl/widget/meter.htm",link:function(t,e){var n=e[0],r=n.getContext("2d"),i=n.width/2,a=n.height/2,o=47,s=1.5*Math.PI,u=!1,l="rgba(0, 0, 0, 0.4)",c="rgba(134, 195, 39, 1)",d="rgba(255, 255, 255, 1)";"green"===t.theme&&(l="rgba(0, 30, 0, 0.4)",c="rgba(255, 255, 255, 1)",d="rgba(255, 255, 255, 1)"),"blue"===t.theme&&(l="rgba(0, 0, 51, 0.4)",c="rgba(255, 255, 255, 1)",d="rgba(255, 255, 255, 1)"),t.$watch("value",function(e){r.clearRect(0,0,n.width,n.height);var f=2*e*Math.PI/t.max+1.5*Math.PI;r.beginPath(),r.arc(i,a,o+2.5,0,2*Math.PI,!1),r.fillStyle=l,r.fill(),r.beginPath(),r.arc(i,a,o,s,f,u),r.lineWidth=5,r.strokeStyle=c,r.stroke(),r.font="30px Arial, Helvetica, sans-serif",r.textBaseline="middle",r.fillStyle=d,r.textAlign="center",r.fillText(String(Math.round(t.value)),i,a)})}}}),n.directive("smenuWidget",function(){return{scope:{smenu:"="},restrict:"A",templateUrl:"prv/tpl/widget/smenu.htm"}}),n.directive("smitem",function(){return{scope:{href:"@",image:"@",caption:"@",condition:"=",condclass:"@"},restrict:"A",templateUrl:"prv/tpl/widget/smenu.htm",link:function(t,e){t.condition&&e.addClass(t.condclass)}}}),n.directive("hmenuWidget",function(){return{restrict:"A",templateUrl:"prv/tpl/widget/hmenu.htm"}}),n.directive("headerWidget",["$state","gateway","localization","LANGS",function(t,e,n,r){return{scope:{},restrict:"A",replace:!1,templateUrl:"prv/tpl/widget/header.htm",compile:function(){return{pre:function(e){t.current.data&&(e.path=t.current.data.path,e.back=t.current.data.back)},post:function(t,i){t.languages=r,t.select=function(t){n.setLanguage(t,function(){e.api.buffer({key:["locale"],mbf:"SETPAR",cmd:["locale",t],auth:e.auth.get()})})},i.children().eq(1).on("click",function(){i.children().eq(1).toggleClass("inactive")})}}}}}]),n.directive("alertWidget",function(){return{scope:{message:"@",error:"="},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/alert.htm"}}),n.directive("loadingWidget",["$rootScope","$state",function(t,e){return{scope:{},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/loading.htm",link:function(n,r){var i=r.find("canvas")[0],a=i.getContext("2d"),o=new Date,s=16,u=a.canvas.width,l=a.canvas.height,c=function(){var t=parseInt((new Date-o)/1e3*s,10)/s,e=0;for(a.save(),a.clearRect(0,0,u,l),a.translate(u/2,l/2),a.rotate(2*Math.PI*t);s>e;)a.beginPath(),a.rotate(2*Math.PI/s),a.moveTo(u/10,0),a.lineTo(u/4,0),a.lineWidth=u/30,a.strokeStyle="rgba(255, 255, 255,"+e/s+")",a.stroke(),e+=1;a.restore()};setInterval(c,1e3/30),n.state=e,t.$on("show-loading",function(t,e){n.hide=!1,n.msg=e}),t.$on("hide-loading",function(t,e){n.hide=e&&0!==n.msg||!1,n.hide=!!e||!1})}}}]),n.directive("ddm",["$timeout",function(t){return{scope:{value:"=",items:"=",update:"&"},restrict:"A",replace:!0,templateUrl:"prv/tpl/widget/dropdown.htm",link:function(e){e.keys=Object.keys(e.items),e.change=function(n){e.value=parseInt(n,10),t(function(){e.update()}),e.toggler=!e.toggler}}}}])}(angular,LOGIN_HASH);