a",n=u.getElementsByTagName("a")[0],n.style.cssText="float:left;opacity:.5",rt.opacity=/^0.5/.test(n.style.opacity),rt.cssFloat=!!n.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===u.style.backgroundClip,n=u=null,ot.extend(rt,{reliableHiddenOffsets:function(){if(null!=r)return r;
var e,t,n,i=mt.createElement("div"),o=mt.getElementsByTagName("body")[0];if(o)return i.setAttribute("className","t"),i.innerHTML="
").append(e).html();try{return e[0].nodeType===n?dr(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+dr(t)})}catch(t){return dr(r)}}function X(e){try{return decodeURIComponent(e)}catch(t){}}function Z(e){var t,n,r={};return o((e||"").split("&"),function(e){if(e&&(t=e.split("="),n=X(t[0]),y(n))){var i=y(t[1])?X(t[1]):!0;r[n]?C(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function Q(e){var t=[];return o(e,function(e,n){C(e)?o(e,function(e){t.push(Y(n,!0)+(e===!0?"":"="+Y(e,!0)))}):t.push(Y(n,!0)+(e===!0?"":"="+Y(e,!0)))}),t.length?t.join("&"):""}function J(e){return Y(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Y(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function G(e,n){function r(e){e&&s.push(e)}var i,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],l=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;o(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(o(e.querySelectorAll("."+n),r),o(e.querySelectorAll("."+n+"\\:"),r),o(e.querySelectorAll("["+n+"]"),r))}),o(s,function(e){if(!i){var t=" "+e.className+" ",n=l.exec(t);n?(i=e,a=(n[2]||"").replace(/\s+/g,",")):o(e.attributes,function(t){!i&&u[t.name]&&(i=e,a=t.value)})}}),i&&n(i,a?[a]:[])}function K(n,r){var i=function(){if(n=$r(n),n.injector()){var e=n[0]===t?"document":W(n);throw Er("btstrpd","App Already Bootstrapped with this Element '{0}'",e)}r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",n)}]),r.unshift("ng");var i=Lt(r);return i.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),i},a=/^NG_DEFER_BOOTSTRAP!/;return e&&!a.test(e.name)?i():(e.name=e.name.replace(a,""),void(kr.resumeBootstrap=function(e){o(e,function(e){r.push(e)}),i()}))}function et(e,t){return t=t||"_",e.replace(jr,function(e,n){return(n?t:"")+e.toLowerCase()})}function tt(){br=e.jQuery,br?($r=br,f(br.fn,{scope:Ur.scope,isolateScope:Ur.isolateScope,controller:Ur.controller,injector:Ur.injector,inheritedData:Ur.inheritedData}),ft("remove",!0,!0,!1),ft("empty",!1,!1,!1),ft("html",!1,!1,!0)):$r=mt,kr.element=$r}function nt(e,t,n){if(!e)throw Er("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function rt(e,t,n){return n&&C(e)&&(e=e[e.length-1]),nt(S(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function it(e,t){if("hasOwnProperty"===e)throw Er("badname","hasOwnProperty is not a valid {0} name",t)}function ot(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&S(e)?F(o,e):e}function at(e){var t=e[0],n=e[e.length-1];if(t===n)return $r(t);var r=t,i=[r];do{if(r=r.nextSibling,!r)break;i.push(r)}while(r!==n);return $r(i)}function st(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s=function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)};return s(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),u}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var t=[],i=[],s=e("$injector","invoke"),u={_invokeQueue:t,_runBlocks:i,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:s,run:function(e){return i.push(e),this}};return a&&s(a),u})}})}function ut(t){f(t,{bootstrap:K,copy:P,extend:f,equals:H,element:$r,forEach:o,injector:Lt,noop:h,bind:F,toJson:B,fromJson:z,identity:m,isUndefined:g,isDefined:y,isString:b,isFunction:S,isObject:$,isNumber:x,isElement:j,isArray:C,version:Or,isDate:w,lowercase:dr,uppercase:mr,callbacks:{counter:0},$$minErr:r,$$csp:R}),xr=st(e);try{xr("ngLocale")}catch(n){xr("ngLocale",[]).provider("$locale",rn)}xr("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:On}),e.provider("$compile",Ft).directive({a:Ti,input:Pi,textarea:Pi,form:Ni,script:go,select:bo,style:wo,option:xo,ngBind:Xi,ngBindHtml:Qi,ngBindTemplate:Zi,ngClass:Ji,ngClassEven:Gi,ngClassOdd:Yi,ngCloak:Ki,ngController:eo,ngForm:ji,ngHide:co,ngIf:no,ngInclude:ro,ngInit:oo,ngNonBindable:ao,ngPluralize:so,ngRepeat:uo,ngShow:lo,ngStyle:fo,ngSwitch:po,ngSwitchWhen:ho,ngSwitchDefault:mo,ngOptions:$o,ngTransclude:vo,ngModel:Fi,ngList:zi,ngChange:Vi,required:Bi,ngRequired:Bi,ngValue:Wi}).directive({ngInclude:io}).directive(Ei).directive(to),e.provider({$anchorScroll:Pt,$animate:ei,$browser:Rt,$cacheFactory:It,$controller:zt,$document:Ut,$exceptionHandler:Wt,$filter:Vn,$interpolate:tn,$interval:nn,$http:Yt,$httpBackend:Kt,$location:gn,$log:yn,$parse:En,$rootScope:jn,$q:kn,$sce:qn,$sceDelegate:Pn,$sniffer:Hn,$templateCache:_t,$timeout:Rn,$window:Fn,$$rAF:Nn,$$asyncCallback:qt})}])}function lt(){return++Lr}function ct(e){return e.replace(Hr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(Rr,"Moz$1")}function ft(e,t,n,r){function i(e){var i,a,s,u,l,c,f,p=n&&e?[this.filter(e)]:[this],d=t;if(!r||null!=e)for(;p.length;)for(i=p.shift(),a=0,s=i.length;s>a;a++)for(u=$r(i[a]),d?u.triggerHandler("$destroy"):d=!d,l=0,c=(f=u.children()).length;c>l;l++)p.push(br(f[l]));return o.apply(this,arguments)}var o=br.fn[e];o=o.$original||o,i.$original=o,br.fn[e]=i}function pt(e){return!Fr.test(e)}function dt(e,t){var n,r,i,o,a,s,u=t.createDocumentFragment(),l=[];if(pt(e))l.push(t.createTextNode(e));else{for(n=u.appendChild(t.createElement("div")),r=(Vr.exec(e)||["",""])[1].toLowerCase(),i=zr[r]||zr._default,n.innerHTML="
"+i[1]+e.replace(Br,"<$1>$2>")+i[2],n.removeChild(n.firstChild),o=i[0];o--;)n=n.lastChild;for(a=0,s=n.childNodes.length;s>a;++a)l.push(n.childNodes[a]);n=u.firstChild,n.textContent=""}return u.textContent="",u.innerHTML="",l}function ht(e,n){n=n||t;var r;return(r=_r.exec(e))?[n.createElement(r[1])]:dt(e,n)}function mt(e){if(e instanceof mt)return e;if(b(e)&&(e=Nr(e)),!(this instanceof mt)){if(b(e)&&"<"!=e.charAt(0))throw Ir("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new mt(e)}if(b(e)){Tt(this,ht(e));var n=$r(t.createDocumentFragment());n.append(this)}else Tt(this,e)}function vt(e){return e.cloneNode(!0)}function gt(e){$t(e);for(var t=0,n=e.childNodes||[];t-1:!1}function Ct(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",Nr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Nr(t)+" "," ")))})}function St(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=Nr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",Nr(n))}}function Tt(e,t){if(t){t=t.nodeName||!y(t.length)||E(t)?[t]:t;for(var n=0;na;a++)if((r=e.data(i[a]))!==n)return r;e=$r(o.parentNode||11===o.nodeType&&o.host)}}function At(e){for(var t=0,n=e.childNodes;t=yr?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function Ot(e){var t,r=typeof e;return"object"==r&&null!==e?"function"==typeof(t=e.$$hashKey)?t=e.$$hashKey():t===n&&(t=e.$$hashKey=l()):t=e,r+":"+t}function Dt(e){o(e,this.put,this)}function Mt(e){var t,n,r,i;return"function"==typeof e?(t=e.$inject)||(t=[],e.length&&(n=e.toString().replace(Yr,""),r=n.match(Zr),o(r[1].split(Qr),function(e){e.replace(Jr,function(e,n,r){t.push(r)})})),e.$inject=t):C(e)?(i=e.length-1,rt(e[i],"fn"),t=e.slice(0,i)):rt(e,"fn",!0),t}function Lt(e){function t(e){return function(t,n){return $(t)?void o(t,u(e)):e(t,n)}}function n(e,t){if(it(e,"service"),(S(t)||C(t))&&(t=x.instantiate(t)),!t.$get)throw Gr("pget","Provider '{0}' must define $get factory method.",e);return y[e+d]=t}function r(e,t){return n(e,{$get:t})}function i(e,t){return r(e,["$injector",function(e){return e.instantiate(t)}])}function a(e,t){return r(e,v(t))}function s(e,t){it(e,"constant"),y[e]=t,w[e]=t}function l(e,t){var n=x.get(e+d),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function c(e){var t,n,r,i,a=[];return o(e,function(e){if(!g.get(e)){g.put(e,!0);try{if(b(e))for(t=xr(e),a=a.concat(c(t.requires)).concat(t._runBlocks),n=t._invokeQueue,r=0,i=n.length;i>r;r++){var o=n[r],s=x.get(o[0]);s[o[1]].apply(s,o[2])}else S(e)?a.push(x.invoke(e)):C(e)?a.push(x.invoke(e)):rt(e,"module")}catch(u){throw C(e)&&(e=e[e.length-1]),u.message&&u.stack&&-1==u.stack.indexOf(u.message)&&(u=u.message+"\n"+u.stack),Gr("modulerr","Failed to instantiate module {0} due to:\n{1}",e,u.stack||u.message||u)}}}),a}function f(e,t){function n(n){if(e.hasOwnProperty(n)){if(e[n]===p)throw Gr("cdep","Circular dependency found: {0}",m.join(" <- "));return e[n]}try{return m.unshift(n),e[n]=p,e[n]=t(n)}catch(r){throw e[n]===p&&delete e[n],r}finally{m.shift()}}function r(e,t,r){var i,o,a,s=[],u=Mt(e);for(o=0,i=u.length;i>o;o++){if(a=u[o],"string"!=typeof a)throw Gr("itkn","Incorrect injection token! Expected service name as string, got {0}",a);s.push(r&&r.hasOwnProperty(a)?r[a]:n(a))}return e.$inject||(e=e[i]),e.apply(t,s)}function i(e,t){var n,i,o=function(){};return o.prototype=(C(e)?e[e.length-1]:e).prototype,n=new o,i=r(e,n,t),$(i)||S(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:Mt,has:function(t){return y.hasOwnProperty(t+d)||e.hasOwnProperty(t)}}}var p={},d="Provider",m=[],g=new Dt,y={$provide:{provider:t(n),factory:t(r),service:t(i),value:t(a),constant:t(s),decorator:l}},x=y.$injector=f(y,function(){throw Gr("unpr","Unknown provider: {0}",m.join(" <- "))}),w={},T=w.$injector=f(w,function(e){var t=x.get(e+d);return T.invoke(t.$get,t)});return o(c(e),function(e){T.invoke(e||h)}),T}function Pt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return o(e,function(e){t||"a"!==dr(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=i(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function qt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function Ht(e,t,r,i){function a(e){try{e.apply(null,_(arguments,1))}finally{if(y--,0===y)for(;$.length;)try{$.pop()()}catch(t){r.error(t)}}}function s(e,t){!function n(){o(w,function(e){e()}),x=t(n,e)}()}function u(){T=null,C!=l.url()&&(C=l.url(),o(E,function(e){e(l.url())}))}var l=this,c=t[0],f=e.location,p=e.history,d=e.setTimeout,m=e.clearTimeout,v={};l.isMock=!1;var y=0,$=[];l.$$completeOutstandingRequest=a,l.$$incOutstandingRequestCount=function(){y++},l.notifyWhenNoOutstandingRequests=function(e){o(w,function(e){e()}),0===y?e():$.push(e)};var x,w=[];l.addPollFn=function(e){return g(x)&&s(100,d),w.push(e),e};var C=f.href,S=t.find("base"),T=null;l.url=function(t,n){if(f!==e.location&&(f=e.location),p!==e.history&&(p=e.history),t){if(C==t)return;return C=t,i.history?n?p.replaceState(null,"",t):(p.pushState(null,"",t),S.attr("href",S.attr("href"))):(T=t,n?f.replace(t):f.href=t),l}return T||f.href.replace(/%27/g,"'")};var E=[],k=!1;l.onUrlChange=function(t){return k||(i.history&&$r(e).on("popstate",u),i.hashchange?$r(e).on("hashchange",u):l.addPollFn(u),k=!0),E.push(t),t},l.baseHref=function(){var e=S.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var A={},N="",j=l.baseHref();l.cookies=function(e,t){var i,o,a,s,u;if(!e){if(c.cookie!==N)for(N=c.cookie,o=N.split("; "),A={},s=0;s0&&(e=unescape(a.substring(0,u)),A[e]===n&&(A[e]=unescape(a.substring(u+1))));return A}t===n?c.cookie=escape(e)+"=;path="+j+";expires=Thu, 01 Jan 1970 00:00:00 GMT":b(t)&&(i=(c.cookie=escape(e)+"="+escape(t)+";path="+j).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},l.defer=function(e,t){var n;return y++,n=d(function(){delete v[n],a(e)},t||0),v[n]=!0,n},l.defer.cancel=function(e){return v[e]?(delete v[e],m(e),a(h),!0):!1}}function Rt(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Ht(e,r,t,n)}]}function It(){this.$get=function(){function e(e,n){function i(e){e!=p&&(d?d==e&&(d=e.n):d=e,o(e.n,e.p),o(e,p),p=e,p.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},p=null,d=null;return t[e]={put:function(e,t){if(ll&&this.remove(d.key),t},get:function(e){if(l").parent()[0])});var a=j(e,t,e,n,r,i);return N(e,"ng-scope"),function(t,n,r){nt(t,"scope");var i=n?Ur.clone.call(e):e;o(r,function(e,t){i.data("$"+t+"Controller",e)});for(var s=0,u=i.length;u>s;s++){var l=i[s],c=l.nodeType;(1===c||9===c)&&i.eq(s).data("$scope",t)}return n&&n(i,t),a&&a(t,i,i),i}}function N(e,t){try{e.addClass(t)}catch(n){}}function j(e,t,r,i,o,a){function s(e,r,i,o){var a,s,u,l,c,f,p,d,m,v=r.length,g=new Array(v);for(p=0;v>p;p++)g[p]=r[p];for(p=0,m=0,d=h.length;d>p;m++)u=g[m],a=h[p++],s=h[p++],l=$r(u),a?(a.scope?(c=e.$new(),l.data("$scope",c)):c=e,f=a.transclude,f||!o&&t?a(s,c,u,i,O(e,f||t)):a(s,c,u,i,o)):s&&s(e,u.childNodes,n,o)}for(var u,l,c,f,p,d,h=[],m=0;mg;g++){var $=!1,x=!1;if(f=v[g],!yr||yr>=8||f.specified){p=f.name,h=Vt(p),it.test(h)&&(p=et(h.substr(6),"-"));var w=h.replace(/(Start|End)$/,"");h===w+"Start"&&($=p,x=p.substr(0,p.length-5)+"end",p=p.substr(0,p.length-6)),d=Vt(p.toLowerCase()),c[d]=p,n[d]=m=Nr(f.value),Nt(e,d)&&(n[d]=!0),Q(e,t,m,d),I(t,d,"A",r,i,$,x)}}if(a=e.className,b(a)&&""!==a)for(;o=l.exec(a);)d=Vt(o[2]),I(t,d,"C",r,i)&&(n[d]=Nr(o[3])),a=a.substr(o.index+o[0].length);break;case 3:X(t,e.nodeValue);break;case 8:try{o=s.exec(e.nodeValue),o&&(d=Vt(o[1]),I(t,d,"M",r,i)&&(n[d]=Nr(o[2])))}catch(C){}}return t.sort(z),t}function M(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw ti("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1==e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e);return $r(r)}function L(e,t,n){return function(r,i,o,a,s){return i=M(i[0],t,n),e(r,i,o,a,s)}}function P(e,i,a,s,l,c,f,p,d){function h(e,t,n,r){e&&(n&&(e=L(e,n,r)),e.require=w.require,(I===w||w.$$isolateScope)&&(e=Y(e,{isolateScope:!0})),f.push(e)),t&&(n&&(t=L(t,n,r)),t.require=w.require,(I===w||w.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),p.push(t))}function m(e,t,n){var r,i="data",a=!1;if(b(e)){for(;"^"==(r=e.charAt(0))||"?"==r;)e=e.substr(1),"^"==r&&(i="inheritedData"),a=a||"?"==r;if(r=null,n&&"data"===i&&(r=n[e]),r=r||t[i]("$"+e+"Controller"),!r&&!a)throw ti("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,T);return r}return C(e)&&(r=[],o(e,function(e){r.push(m(e,t,n))})),r}function v(e,t,s,l,c){function d(e,t){var r;return arguments.length<2&&(t=e,e=n),Z&&(r=T),c(e,t,r)}var h,v,$,b,x,w,C,S,T={};if(h=i===s?a:q(a,new G($r(s),a.$attr)),v=h.$$element,I){var E=/^\s*([@=&])(\??)\s*(\w*)\s*$/,k=$r(s);C=t.$new(!0),F&&F===I.$$originalDirective?k.data("$isolateScope",C):k.data("$isolateScopeNoTemplate",C),N(k,"ng-isolate-scope"),o(I.scope,function(e,n){var i,o,a,s,u=e.match(E)||[],l=u[3]||n,c="?"==u[2],f=u[1];switch(C.$$isolateBindings[n]=f+l,f){case"@":h.$observe(l,function(e){C[n]=e}),h.$$observers[l].$$scope=t,h[l]&&(C[n]=r(h[l])(t));break;case"=":if(c&&!h[l])return;o=g(h[l]),s=o.literal?H:function(e,t){return e===t},a=o.assign||function(){throw i=C[n]=o(t),ti("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",h[l],I.name)},i=C[n]=o(t),C.$watch(function(){var e=o(t);return s(e,C[n])||(s(e,i)?a(t,e=C[n]):C[n]=e),i=e},null,o.literal);break;case"&":o=g(h[l]),C[n]=function(e){return o(t,e)};break;default:throw ti("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",I.name,n,e)}})}for(S=c&&d,P&&o(P,function(e){var n,r={$scope:e===I||e.$$isolateScope?C:t,$element:v,$attrs:h,$transclude:S};w=e.controller,"@"==w&&(w=h[e.name]),n=y(w,r),T[e.name]=n,Z||v.data("$"+e.name+"Controller",n),e.controllerAs&&(r.$scope[e.controllerAs]=n)}),$=0,b=f.length;b>$;$++)try{x=f[$],x(x.isolateScope?C:t,v,h,x.require&&m(x.require,v,T),S)}catch(A){u(A,W(v))}var j=t;for(I&&(I.template||null===I.templateUrl)&&(j=C),e&&e(j,s.childNodes,n,c),$=p.length-1;$>=0;$--)try{x=p[$],x(x.isolateScope?C:t,v,h,x.require&&m(x.require,v,T),S)}catch(A){u(A,W(v))}}d=d||{};for(var x,w,T,E,k,j,O=-Number.MAX_VALUE,P=d.controllerDirectives,I=d.newIsolateScopeDirective,F=d.templateDirective,z=d.nonTlbTranscludeDirective,X=!1,Z=d.hasElementTranscludeDirective,Q=a.$$element=$r(i),K=c,et=s,tt=0,nt=e.length;nt>tt;tt++){w=e[tt];var it=w.$$start,ot=w.$$end;if(it&&(Q=M(i,it,ot)),E=n,O>w.priority)break;if((j=w.scope)&&(x=x||w,w.templateUrl||(U("new/isolated scope",I,w,Q),$(j)&&(I=w))),T=w.name,!w.templateUrl&&w.controller&&(j=w.controller,P=P||{},U("'"+T+"' controller",P[T],w,Q),P[T]=w),(j=w.transclude)&&(X=!0,w.$$tlb||(U("transclusion",z,w,Q),z=w),"element"==j?(Z=!0,O=w.priority,E=M(i,it,ot),Q=a.$$element=$r(t.createComment(" "+T+": "+a[T]+" ")),i=Q[0],J(l,$r(_(E)),i),et=A(E,s,O,K&&K.name,{nonTlbTranscludeDirective:z})):(E=$r(vt(i)).contents(),Q.empty(),et=A(E,s))),w.template)if(U("template",F,w,Q),F=w,j=S(w.template)?w.template(Q,a):w.template,j=rt(j),w.replace){if(K=w,E=pt(j)?[]:$r(j),i=E[0],1!=E.length||1!==i.nodeType)throw ti("tplrt","Template for directive '{0}' must have exactly one root element. {1}",T,"");J(l,Q,i);var at={$attr:{}},st=D(i,[],at),ut=e.splice(tt+1,e.length-(tt+1));I&&R(st),e=e.concat(st).concat(ut),V(a,at),nt=e.length}else Q.html(j);if(w.templateUrl)U("template",F,w,Q),F=w,w.replace&&(K=w),v=B(e.splice(tt,e.length-tt),Q,a,l,et,f,p,{controllerDirectives:P,newIsolateScopeDirective:I,templateDirective:F,nonTlbTranscludeDirective:z}),nt=e.length;else if(w.compile)try{k=w.compile(Q,a,et),S(k)?h(null,k,it,ot):k&&h(k.pre,k.post,it,ot)}catch(lt){u(lt,W(Q))}w.terminal&&(v.terminal=!0,O=Math.max(O,w.priority))}return v.scope=x&&x.scope===!0,v.transclude=X&&et,d.hasElementTranscludeDirective=Z,v}function R(e){for(var t=0,n=e.length;n>t;t++)e[t]=d(e[t],{$$isolateScope:!0})}function I(t,r,o,s,l,c,f){if(r===l)return null;
var p=null;if(i.hasOwnProperty(r))for(var h,m=e.get(r+a),v=0,g=m.length;g>v;v++)try{h=m[v],(s===n||s>h.priority)&&-1!=h.restrict.indexOf(o)&&(c&&(h=d(h,{$$start:c,$$end:f})),t.push(h),p=h)}catch(y){u(y)}return p}function V(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;o(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,o){"class"==o?(N(i,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])})}function B(e,t,n,r,i,a,s,u){var l,c,d=[],m=t[0],v=e.shift(),g=f({},v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),y=S(v.templateUrl)?v.templateUrl(t,n):v.templateUrl;return t.empty(),p.get(T.getTrustedResourceUrl(y),{cache:h}).success(function(f){var p,h,b,x;if(f=rt(f),v.replace){if(b=pt(f)?[]:$r(f),p=b[0],1!=b.length||1!==p.nodeType)throw ti("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,y);h={$attr:{}},J(r,t,p);var w=D(p,[],h);$(v.scope)&&R(w),e=w.concat(e),V(n,h)}else p=m,t.html(f);for(e.unshift(g),l=P(e,p,n,i,t,v,a,s,u),o(r,function(e,n){e==p&&(r[n]=t[0])}),c=j(t[0].childNodes,i);d.length;){var C=d.shift(),S=d.shift(),T=d.shift(),E=d.shift(),k=t[0];if(S!==m){var A=S.className;u.hasElementTranscludeDirective&&v.replace||(k=vt(p)),J(T,$r(S),k),N($r(k),A)}x=l.transclude?O(C,l.transclude):E,l(c,C,k,r,x)}d=null}).error(function(e,t,n,r){throw ti("tpload","Failed to load template: {0}",r.url)}),function(e,t,n,r,i){d?(d.push(t),d.push(n),d.push(r),d.push(i)):l(c,t,n,r,i)}}function z(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.namei;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+s-1,f=e.length;f>l;l++,c++)f>c?e[l]=e[c]:delete e[l];e.length-=s-1;break}u&&u.replaceChild(r,a);var p=t.createDocumentFragment();p.appendChild(a),r[$r.expando]=a[$r.expando];for(var d=1,h=n.length;h>d;d++){var m=n[d];$r(m).remove(),p.appendChild(m),delete n[d]}n[0]=r,n.length=1}function Y(e,t){return f(function(){return e.apply(null,arguments)},e,t)}var G=function(e,t){this.$$element=e,this.$attr=t||{}};G.prototype={$normalize:Vt,$addClass:function(e){e&&e.length>0&&E.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&E.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Bt(e,t),r=Bt(t,e);0===n.length?E.removeClass(this.$$element,r):0===r.length?E.addClass(this.$$element,n):E.setClass(this.$$element,n,r)},$set:function(e,t,r,i){var a,s=Nt(this.$$element[0],e);s&&(this.$$element.prop(e,t),i=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e],i||(this.$attr[e]=i=et(e,"-"))),a=wr(this.$$element),("A"===a&&"href"===e||"IMG"===a&&"src"===e)&&(this[e]=t=k(t,"src"===e)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(i):this.$$element.attr(i,t));var l=this.$$observers;l&&o(l[e],function(e){try{e(t)}catch(n){u(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);return i.push(t),x.$evalAsync(function(){i.$$inter||t(n[e])}),t}};var K=r.startSymbol(),tt=r.endSymbol(),rt="{{"==K||"}}"==tt?m:function(e){return e.replace(/\{\{/g,K).replace(/}}/g,tt)},it=/^ngAttr[A-Z]/;return A}]}function Vt(e){return ct(e.replace(ni,""))}function Bt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o0?" ":"")+a}return n}function zt(){var e={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){it(t,"controller"),$(t)?f(e,t):e[t]=n},this.$get=["$injector","$window",function(n,i){return function(o,a){var s,u,l,c;if(b(o)&&(u=o.match(t),l=u[1],c=u[3],o=e.hasOwnProperty(l)?e[l]:ot(a.$scope,l,!0)||ot(i,l,!0),rt(o,l,!0)),s=n.instantiate(o,a),c){if(!a||"object"!=typeof a.$scope)throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",l||o.name,c);a.$scope[c]=s}return s}}]}function Ut(){this.$get=["$window",function(e){return $r(e.document)}]}function Wt(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function Xt(e){var t,n,r,i={};return e?(o(e.split("\n"),function(e){r=e.indexOf(":"),t=dr(Nr(e.substr(0,r))),n=Nr(e.substr(r+1)),t&&(i[t]?i[t]+=", "+n:i[t]=n)}),i):i}function Zt(e){var t=$(e)?e:n;return function(n){return t||(t=Xt(e)),n?t[dr(n)]||null:t}}function Qt(e,t,n){return S(n)?n(e,t):(o(n,function(n){e=n(e,t)}),e)}function Jt(e){return e>=200&&300>e}function Yt(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,i={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return b(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=z(n))),n}],transformRequest:[function(e){return!$(e)||A(e)||N(e)?e:B(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:P(i),put:P(i),patch:P(i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},u=this.interceptors=[],l=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,i,c,p){function d(e){function r(e){var t=f({},e,{data:Qt(e.data,e.headers,s.transformResponse)});return Jt(e.status)?t:c.reject(t)}function i(e){function t(e){var t;o(e,function(n,r){S(n)&&(t=n(),null!=t?e[r]=t:delete e[r])})}var n,r,i,s=a.headers,u=f({},e.headers);s=f({},s.common,s[dr(e.method)]),t(s),t(u);e:for(n in s){r=dr(n);for(i in u)if(dr(i)===r)continue e;u[n]=s[n]}return u}var s={method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse},u=i(e);f(s,e),s.headers=u,s.method=mr(s.method);var l=_n(s.url)?t.cookies()[s.xsrfCookieName||a.xsrfCookieName]:n;l&&(u[s.xsrfHeaderName||a.xsrfHeaderName]=l);var p=function(e){u=e.headers;var t=Qt(e.data,Zt(u),e.transformRequest);return g(e.data)&&o(u,function(e,t){"content-type"===dr(t)&&delete u[t]}),g(e.withCredentials)&&!g(a.withCredentials)&&(e.withCredentials=a.withCredentials),v(e,t,u).then(r,r)},d=[p,n],h=c.when(s);for(o(T,function(e){(e.request||e.requestError)&&d.unshift(e.request,e.requestError),(e.response||e.responseError)&&d.push(e.response,e.responseError)});d.length;){var m=d.shift(),y=d.shift();h=h.then(m,y)}return h.success=function(e){return h.then(function(t){e(t.data,t.status,t.headers,s)}),h},h.error=function(e){return h.then(null,function(t){e(t.data,t.status,t.headers,s)}),h},h}function h(){o(arguments,function(e){d[e]=function(t,n){return d(f(n||{},{method:e,url:t}))}})}function m(){o(arguments,function(e){d[e]=function(t,n,r){return d(f(r||{},{method:e,url:t,data:n}))}})}function v(t,n,r){function o(e,t,n,r){l&&(Jt(e)?l.put(m,[e,t,Xt(n),r]):l.remove(m)),s(t,e,n,r),i.$$phase||i.$apply()}function s(e,n,r,i){n=Math.max(n,0),(Jt(n)?p.resolve:p.reject)({data:e,status:n,headers:Zt(r),config:t,statusText:i})}function u(){var e=M(d.pendingRequests,t);-1!==e&&d.pendingRequests.splice(e,1)}var l,f,p=c.defer(),h=p.promise,m=x(t.url,t.params);if(d.pendingRequests.push(t),h.then(u,u),(t.cache||a.cache)&&t.cache!==!1&&"GET"==t.method&&(l=$(t.cache)?t.cache:$(a.cache)?a.cache:w),l)if(f=l.get(m),y(f)){if(f.then)return f.then(u,u),f;C(f)?s(f[1],f[0],P(f[2]),f[3]):s(f,200,{},"OK")}else l.put(m,h);return g(f)&&e(t.method,m,n,o,r,t.timeout,t.withCredentials,t.responseType),h}function x(e,t){if(!t)return e;var n=[];return s(t,function(e,t){null===e||g(e)||(C(e)||(e=[e]),o(e,function(e){$(e)&&(e=B(e)),n.push(Y(t)+"="+Y(e))}))}),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&")),e}var w=r("$http"),T=[];return o(u,function(e){T.unshift(b(e)?p.get(e):p.invoke(e))}),o(l,function(e,t){var n=b(e)?p.get(e):p.invoke(e);T.splice(t,0,{response:function(e){return n(c.when(e))},responseError:function(e){return n(c.reject(e))}})}),d.pendingRequests=[],h("get","delete","head","jsonp"),m("post","put"),d.defaults=a,d}]}function Gt(t){if(8>=yr&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!e.XMLHttpRequest))return new e.ActiveXObject("Microsoft.XMLHTTP");if(e.XMLHttpRequest)return new e.XMLHttpRequest;throw r("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Kt(){this.$get=["$browser","$window","$document",function(e,t,n){return en(e,Gt,e.defer,t.angular.callbacks,n[0])}]}function en(e,t,n,r,i){function a(e,t){var n=i.createElement("script"),r=function(){n.onreadystatechange=n.onload=n.onerror=null,i.body.removeChild(n),t&&t()};return n.type="text/javascript",n.src=e,yr&&8>=yr?n.onreadystatechange=function(){/loaded|complete/.test(n.readyState)&&r()}:n.onload=n.onerror=function(){r()},i.body.appendChild(n),r}var s=-1;return function(i,u,l,c,f,p,d,m){function v(){$=s,x&&x(),w&&w.abort()}function g(t,r,i,o,a){S&&n.cancel(S),x=w=null,0===r&&(r=i?200:"file"==In(u).protocol?404:0),r=1223===r?204:r,a=a||"",t(r,i,o,a),e.$$completeOutstandingRequest(h)}var $;if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==dr(i)){var b="_"+(r.counter++).toString(36);r[b]=function(e){r[b].data=e};var x=a(u.replace("JSON_CALLBACK","angular.callbacks."+b),function(){r[b].data?g(c,200,r[b].data):g(c,$||-2),r[b]=kr.noop})}else{var w=t(i);if(w.open(i,u,!0),o(f,function(e,t){y(e)&&w.setRequestHeader(t,e)}),w.onreadystatechange=function(){if(w&&4==w.readyState){var e=null,t=null;$!==s&&(e=w.getAllResponseHeaders(),t="response"in w?w.response:w.responseText),g(c,$||w.status,t,e,w.statusText||"")}},d&&(w.withCredentials=!0),m)try{w.responseType=m}catch(C){if("json"!==m)throw C}w.send(l||null)}if(p>0)var S=n(v,p);else p&&p.then&&p.then(v)}}function tn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(o,u,l){for(var c,f,p,d,h=0,m=[],v=o.length,y=!1,$=[];v>h;)-1!=(c=o.indexOf(e,h))&&-1!=(f=o.indexOf(t,c+a))?(h!=c&&m.push(o.substring(h,c)),m.push(p=n(d=o.substring(c+a,f))),p.exp=d,h=f+s,y=!0):(h!=v&&m.push(o.substring(h)),h=v);if((v=m.length)||(m.push(""),v=1),l&&m.length>1)throw ri("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",o);return!u||y?($.length=v,p=function(e){try{for(var t,n=0,a=v;a>n;n++)"function"==typeof(t=m[n])&&(t=t(e),t=l?i.getTrusted(l,t):i.valueOf(t),null===t||g(t)?t="":"string"!=typeof t&&(t=B(t))),$[n]=t;return $.join("")}catch(s){var u=ri("interr","Can't interpolate: {0}\n{1}",o,s.toString());r(u)}},p.exp=o,p.parts=m,p):void 0}var a=e.length,s=t.length;return o.startSymbol=function(){return e},o.endSymbol=function(){return t},o}]}function nn(){this.$get=["$rootScope","$window","$q",function(e,t,n){function r(r,o,a,s){var u=t.setInterval,l=t.clearInterval,c=n.defer(),f=c.promise,p=0,d=y(s)&&!s;return a=y(a)?a:0,f.then(null,null,r),f.$$intervalId=u(function(){c.notify(p++),a>0&&p>=a&&(c.resolve(p),l(f.$$intervalId),delete i[f.$$intervalId]),d||e.$apply()},o),i[f.$$intervalId]=c,f}var i={};return r.cancel=function(e){return e&&e.$$intervalId in i?(i[e.$$intervalId].reject("canceled"),clearInterval(e.$$intervalId),delete i[e.$$intervalId],!0):!1},r}]}function rn(){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:"\xa4",posSuf:"",negPre:"(\xa4",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(e){return 1===e?"one":"other"}}}}function on(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=J(t[n]);return t.join("/")}function an(e,t,n){var r=In(e,n);t.$$protocol=r.protocol,t.$$host=r.hostname,t.$$port=p(r.port)||oi[r.protocol]||null}function sn(e,t,n){var r="/"!==e.charAt(0);r&&(e="/"+e);var i=In(e,n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),t.$$search=Z(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function un(e,t){return 0===t.indexOf(e)?t.substr(e.length):void 0}function ln(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function cn(e){return e.substr(0,ln(e).lastIndexOf("/")+1)}function fn(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function pn(e,t){this.$$html5=!0,t=t||"";var r=cn(e);an(e,this,e),this.$$parse=function(t){var n=un(r,t);if(!b(n))throw ai("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);sn(n,this,e),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=Q(this.$$search),t=this.$$hash?"#"+J(this.$$hash):"";this.$$url=on(this.$$path)+(e?"?"+e:"")+t,this.$$absUrl=r+this.$$url.substr(1)},this.$$rewrite=function(i){var o,a;return(o=un(e,i))!==n?(a=o,(o=un(t,o))!==n?r+(un("/",o)||o):e+a):(o=un(r,i))!==n?r+o:r==i+"/"?r:void 0}}function dn(e,t){var n=cn(e);an(e,this,e),this.$$parse=function(r){function i(e,t,n){var r,i=/^\/?.*?:(\/.*)/;return 0===t.indexOf(n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}var o=un(e,r)||un(n,r),a="#"==o.charAt(0)?un(t,o):this.$$html5?o:"";if(!b(a))throw ai("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',r,t);sn(a,this,e),this.$$path=i(this.$$path,a,e),this.$$compose()},this.$$compose=function(){var n=Q(this.$$search),r=this.$$hash?"#"+J(this.$$hash):"";this.$$url=on(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=e+(this.$$url?t+this.$$url:"")},this.$$rewrite=function(t){return ln(e)==ln(t)?t:void 0}}function hn(e,t){this.$$html5=!0,dn.apply(this,arguments);var n=cn(e);this.$$rewrite=function(r){var i;return e==ln(r)?r:(i=un(n,r))?e+t+i:n===r+"/"?n:void 0}}function mn(e){return function(){return this[e]}}function vn(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function gn(){var t="",n=!1;this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(e){return y(e)?(n=e,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,i,o,a){function s(e){r.$broadcast("$locationChangeSuccess",u.absUrl(),e)}var u,l,c,f=i.baseHref(),p=i.url();n?(c=fn(p)+(f||"/"),l=o.history?pn:hn):(c=ln(p),l=dn),u=new l(c,"#"+t),u.$$parse(u.$$rewrite(p)),a.on("click",function(t){if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(var n=$r(t.target);"a"!==dr(n[0].nodeName);)if(n[0]===a[0]||!(n=n.parent())[0])return;var o=n.prop("href");$(o)&&"[object SVGAnimatedString]"===o.toString()&&(o=In(o.animVal).href);var s=u.$$rewrite(o);o&&!n.attr("target")&&s&&!t.isDefaultPrevented()&&(t.preventDefault(),s!=i.url()&&(u.$$parse(s),r.$apply(),e.angular["ff-684208-preventDefault"]=!0))}}),u.absUrl()!=p&&i.url(u.absUrl(),!0),i.onUrlChange(function(e){u.absUrl()!=e&&(r.$evalAsync(function(){var t=u.absUrl();u.$$parse(e),r.$broadcast("$locationChangeStart",e,t).defaultPrevented?(u.$$parse(t),i.url(t)):s(t)}),r.$$phase||r.$digest())});var d=0;return r.$watch(function(){var e=i.url(),t=u.$$replace;return d&&e==u.absUrl()||(d++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",u.absUrl(),e).defaultPrevented?u.$$parse(e):(i.url(u.absUrl(),t),s(e))})),u.$$replace=!1,d}),u}]}function yn(){var e=!0,t=this;this.debugEnabled=function(t){return y(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||h,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function $n(e,t){if("constructor"===e)throw ui("isecfld",'Referencing "constructor" field in Angular expressions is disallowed! Expression: {0}',t);return e}function bn(e,t){if(e){if(e.constructor===e)throw ui("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.document&&e.location&&e.alert&&e.setInterval)throw ui("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ui("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t)}return e}function xn(e,t,r,i,o){o=o||{};for(var a,s=t.split("."),u=0;s.length>1;u++){a=$n(s.shift(),i);var l=e[a];l||(l={},e[a]=l),e=l,e.then&&o.unwrapPromises&&(si(i),"$$v"in e||!function(e){e.then(function(t){e.$$v=t})}(e),e.$$v===n&&(e.$$v={}),e=e.$$v)}return a=$n(s.shift(),i),e[a]=r,r}function wn(e,t,r,i,o,a,s){return $n(e,a),$n(t,a),$n(r,a),$n(i,a),$n(o,a),s.unwrapPromises?function(s,u){var l,c=u&&u.hasOwnProperty(e)?u:s;return null==c?c:(c=c[e],c&&c.then&&(si(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),t?null==c?n:(c=c[t],c&&c.then&&(si(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),r?null==c?n:(c=c[r],c&&c.then&&(si(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),i?null==c?n:(c=c[i],c&&c.then&&(si(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),o?null==c?n:(c=c[o],c&&c.then&&(si(a),"$$v"in c||(l=c,l.$$v=n,l.then(function(e){l.$$v=e})),c=c.$$v),c):c):c):c):c)}:function(a,s){var u=s&&s.hasOwnProperty(e)?s:a;return null==u?u:(u=u[e],t?null==u?n:(u=u[t],r?null==u?n:(u=u[r],i?null==u?n:(u=u[i],o?null==u?n:u=u[o]:u):u):u):u)}}function Cn(e,t){return $n(e,t),function(t,r){return null==t?n:(r&&r.hasOwnProperty(e)?r:t)[e]}}function Sn(e,t,r){return $n(e,r),$n(t,r),function(r,i){return null==r?n:(r=(i&&i.hasOwnProperty(e)?i:r)[e],null==r?n:r[t])}}function Tn(e,t,r){if(hi.hasOwnProperty(e))return hi[e];var i,a=e.split("."),s=a.length;if(t.unwrapPromises||1!==s)if(t.unwrapPromises||2!==s)if(t.csp)i=6>s?wn(a[0],a[1],a[2],a[3],a[4],r,t):function(e,i){var o,u=0;do o=wn(a[u++],a[u++],a[u++],a[u++],a[u++],r,t)(e,i),i=n,e=o;while(s>u);return o};else{var u="var p;\n";o(a,function(e,n){$n(e,r),u+="if(s == null) return undefined;\ns="+(n?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"];\n'+(t.unwrapPromises?'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=v;});\n}\n s=s.$$v\n}\n':"")}),u+="return s;";var l=new Function("s","k","pw",u);l.toString=v(u),i=t.unwrapPromises?function(e,t){return l(e,t,si)}:l}else i=Sn(a[0],a[1],r);else i=Cn(a[0],r);return"hasOwnProperty"!==e&&(hi[e]=i),i}function En(){var e={},t={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(e){return y(e)?(t.unwrapPromises=!!e,this):t.unwrapPromises},this.logPromiseWarnings=function(e){return y(e)?(t.logPromiseWarnings=e,this):t.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(n,r,i){return t.csp=r.csp,si=function(e){t.logPromiseWarnings&&!li.hasOwnProperty(e)&&(li[e]=!0,i.warn("[$parse] Promise found in the expression `"+e+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var i;switch(typeof r){case"string":if(e.hasOwnProperty(r))return e[r];var o=new pi(t),a=new di(o,n,t);return i=a.parse(r,!1),"hasOwnProperty"!==r&&(e[r]=i),i;case"function":return r;default:return h}}}]}function kn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return An(function(t){e.$evalAsync(t)},t)}]}function An(e,t){function r(e){return e}function i(e){return l(e)}function a(e){var t=s(),n=0,r=C(e)?[]:{};return o(e,function(e,i){n++,u(e).then(function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))},function(e){r.hasOwnProperty(i)||t.reject(e)})}),0===n&&t.resolve(r),t.promise}var s=function(){var o,a,l=[];return a={resolve:function(t){if(l){var r=l;l=n,o=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],o.then(e[0],e[1],e[2])})}},reject:function(e){a.resolve(c(e))},notify:function(t){if(l){var n=l;l.length&&e(function(){for(var e,r=0,i=n.length;i>r;r++)e=n[r],e[2](t)})}},promise:{then:function(e,n,a){var u=s(),c=function(n){try{u.resolve((S(e)?e:r)(n))}catch(i){u.reject(i),t(i)}},f=function(e){try{u.resolve((S(n)?n:i)(e))}catch(r){u.reject(r),t(r)}},p=function(e){try{u.notify((S(a)?a:r)(e))}catch(n){t(n)}};return l?l.push([c,f,p]):o.then(c,f,p),u.promise},"catch":function(e){return this.then(null,e)},"finally":function(e){function t(e,t){var n=s();return t?n.resolve(e):n.reject(e),n.promise}function n(n,i){var o=null;try{o=(e||r)()}catch(a){return t(a,!1)}return o&&S(o.then)?o.then(function(){return t(n,i)},function(e){return t(e,!1)}):t(n,i)}return this.then(function(e){return n(e,!0)},function(e){return n(e,!1)})}}}},u=function(t){return t&&S(t.then)?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},l=function(e){var t=s();return t.reject(e),t.promise},c=function(n){return{then:function(r,o){var a=s();return e(function(){try{a.resolve((S(o)?o:i)(n))}catch(e){a.reject(e),t(e)}}),a.promise}}},f=function(n,o,a,c){var f,p=s(),d=function(e){try{return(S(o)?o:r)(e)}catch(n){return t(n),l(n)}},h=function(e){try{return(S(a)?a:i)(e)}catch(n){return t(n),l(n)}},m=function(e){try{return(S(c)?c:r)(e)}catch(n){t(n)}};return e(function(){u(n).then(function(e){f||(f=!0,p.resolve(u(e).then(d,h,m)))},function(e){f||(f=!0,p.resolve(h(e)))},function(e){f||p.notify(m(e))})}),p.promise};return{defer:s,reject:l,when:f,all:a}}function Nn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function jn(){var e=10,t=r("$rootScope"),n=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,a,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 f(e){if(g.$$phase)throw t("inprog","{0} already in progress",g.$$phase);g.$$phase=e}function p(){g.$$phase=null}function d(e,t){var n=s(e);return rt(n,t),n}function m(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n];while(e=e.$parent)}function v(){}c.prototype={constructor:c,$new:function(e){var t,n;return e?(n=new c,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(t=function(){},t.prototype=this,n=new t,n.$id=l()),n["this"]=n,n.$$listeners={},n.$$listenerCount={},n.$parent=this,n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=n,this.$$childTail=n):this.$$childHead=this.$$childTail=n,n},$watch:function(e,t,r){var i=this,o=d(e,"watch"),a=i.$$watchers,s={fn:t,last:v,get:o,exp:e,eq:!!r};if(n=null,!S(t)){var u=d(t||h,"listener");s.fn=function(e,t,n){u(n)}}if("string"==typeof e&&o.constant){var l=s.fn;s.fn=function(e,t,n){l.call(this,e,t,n),L(a,s)}}return a||(a=i.$$watchers=[]),a.unshift(s),function(){L(a,s),n=null}},$watchCollection:function(e,t){function n(){o=p(l);var e,t;if($(o))if(i(o)){a!==d&&(a=d,v=a.length=0,f++),e=o.length,v!==e&&(f++,a.length=v=e);for(var n=0;e>n;n++){var r=a[n]!==a[n]&&o[n]!==o[n];r||a[n]===o[n]||(f++,a[n]=o[n])}}else{a!==h&&(a=h={},v=0,f++),e=0;for(t in o)o.hasOwnProperty(t)&&(e++,a.hasOwnProperty(t)?a[t]!==o[t]&&(f++,a[t]=o[t]):(v++,a[t]=o[t],f++));if(v>e){f++;for(t in a)a.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&(v--,delete a[t])}}else a!==o&&(a=o,f++);return f}function r(){if(m?(m=!1,t(o,o,l)):t(o,u,l),c)if($(o))if(i(o)){u=new Array(o.length);for(var e=0;e1,f=0,p=s(e),d=[],h={},m=!0,v=0;return this.$watch(n,r)},$digest:function(){var r,i,o,s,u,l,c,d,h,m,g,y=this.$$asyncQueue,$=this.$$postDigestQueue,b=e,x=this,w=[];f("$digest"),n=null;do{for(l=!1,d=x;y.length;){try{g=y.shift(),g.scope.$eval(g.expression)}catch(C){p(),a(C)}n=null}e:do{if(s=d.$$watchers)for(u=s.length;u--;)try{if(r=s[u])if((i=r.get(d))===(o=r.last)||(r.eq?H(i,o):"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))){if(r===n){l=!1;break e}}else l=!0,n=r,r.last=r.eq?P(i):i,r.fn(i,o===v?i:o,d),5>b&&(h=4-b,w[h]||(w[h]=[]),m=S(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,m+="; newVal: "+B(i)+"; oldVal: "+B(o),w[h].push(m))}catch(C){p(),a(C)}if(!(c=d.$$childHead||d!==x&&d.$$nextSibling))for(;d!==x&&!(c=d.$$nextSibling);)d=d.$parent}while(d=c);if((l||y.length)&&!b--)throw p(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,B(w))}while(l||y.length);for(p();$.length;)try{$.shift()()}catch(C){a(C)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==g&&(o(this.$$listenerCount,F(null,m,this)),e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$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(e,t){return s(e)(this,t)},$evalAsync:function(e){g.$$phase||g.$$asyncQueue.length||u.defer(function(){g.$$asyncQueue.length&&g.$digest()}),this.$$asyncQueue.push({scope:this,expression:e})},$$postDigest:function(e){this.$$postDigestQueue.push(e)},$apply:function(e){try{return f("$apply"),this.$eval(e)}catch(t){a(t)}finally{p();try{g.$digest()}catch(t){throw a(t),t}}},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++;while(r=r.$parent);var i=this;return function(){n[M(n,t)]=null,m(i,1,e)}},$emit:function(e){var t,n,r,i=[],o=this,s=!1,u={name:e,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=I([u],arguments,1);do{for(t=o.$$listeners[e]||i,u.currentScope=o,n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,l)}catch(c){a(c)}else t.splice(n,1),n--,r--;if(s)return u;o=o.$parent}while(o);return u},$broadcast:function(e){for(var t,n,r,i=this,o=i,s=i,u={name:e,targetScope:i,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=I([u],arguments,1);o=s;){for(u.currentScope=o,t=o.$$listeners[e]||[],n=0,r=t.length;r>n;n++)if(t[n])try{t[n].apply(null,l)}catch(c){a(c)}else t.splice(n,1),n--,r--;if(!(s=o.$$listenerCount[e]&&o.$$childHead||o!==i&&o.$$nextSibling))for(;o!==i&&!(s=o.$$nextSibling);)o=o.$parent}return u}};var g=new c;return g}]}function On(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return yr&&!(yr>=8)||(i=In(n).href,""===i||i.match(o))?n:"unsafe:"+i}}}function Dn(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#-1)throw mi("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Dn(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(T(e))return new RegExp("^"+e.source+"$");throw mi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Ln(e){var t=[];return y(e)&&o(e,function(e){t.push(Mn(e))}),t}function Pn(){this.SCE_CONTEXTS=vi;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Ln(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Ln(e)),t},this.$get=["$injector",function(r){function i(e,t){return"self"===e?_n(t):!!e.exec(t.href)}function o(n){var r,o,a=In(n.toString()),s=!1;for(r=0,o=e.length;o>r;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;o>r;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var r=p.hasOwnProperty(e)?p[e]:null;if(!r)throw mi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw mi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||t===n||""===t)return t;var r=p.hasOwnProperty(e)?p[e]:null;if(r&&t instanceof r)return t.$$unwrapTrustedValue();if(e===vi.RESOURCE_URL){if(o(t))return t;throw mi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===vi.HTML)return c(t);throw mi("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(){throw mi("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var f=a(),p={};return p[vi.HTML]=a(f),p[vi.CSS]=a(f),p[vi.URL]=a(f),p[vi.JS]=a(f),p[vi.RESOURCE_URL]=a(p[vi.URL]),{trustAs:s,getTrusted:l,valueOf:u}}]}function qn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sniffer","$sceDelegate",function(t,n,r){if(e&&n.msie&&n.msieDocumentMode<8)throw mi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=P(vi);i.isEnabled=function(){return e},i.trustAs=r.trustAs,i.getTrusted=r.getTrusted,i.valueOf=r.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=m),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:function(t,n){return i.getTrusted(e,r(t,n))}};var a=i.parseAs,s=i.getTrusted,u=i.trustAs;return o(vi,function(e,t){var n=dr(t);i[ct("parse_as_"+n)]=function(t){return a(e,t)},i[ct("get_trusted_"+n)]=function(t){return s(e,t)},i[ct("trust_as_"+n)]=function(t){return u(e,t)}}),i}]}function Hn(){this.$get=["$window","$document",function(e,t){var n,r,i={},o=p((/android (\d+)/.exec(dr((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.documentMode,l=/^(Moz|webkit|O|ms)(?=[A-Z])/,c=s.body&&s.body.style,f=!1,d=!1;
if(c){for(var h in c)if(r=l.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in c&&"webkit"),f=!!("transition"in c||n+"Transition"in c),d=!!("animation"in c||n+"Animation"in c),!o||f&&d||(f=b(s.body.style.webkitTransition),d=b(s.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||4>o||a),hashchange:"onhashchange"in e&&(!u||u>7),hasEvent:function(e){if("input"==e&&9==yr)return!1;if(g(i[e])){var t=s.createElement("div");i[e]="on"+e in t}return i[e]},csp:R(),vendorPrefix:n,transitions:f,animations:d,android:o,msie:yr,msieDocumentMode:u}}]}function Rn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function i(i,a,s){var u,l=n.defer(),c=l.promise,f=y(s)&&!s;return u=t.defer(function(){try{l.resolve(i())}catch(t){l.reject(t),r(t)}finally{delete o[c.$$timeoutId]}f||e.$apply()},a),c.$$timeoutId=u,o[u]=l,c}var o={};return i.cancel=function(e){return e&&e.$$timeoutId in o?(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},i}]}function In(e){var t=e;return yr&&(gi.setAttribute("href",t),t=gi.href),gi.setAttribute("href",t),{href:gi.href,protocol:gi.protocol?gi.protocol.replace(/:$/,""):"",host:gi.host,search:gi.search?gi.search.replace(/^\?/,""):"",hash:gi.hash?gi.hash.replace(/^#/,""):"",hostname:gi.hostname,port:gi.port,pathname:"/"===gi.pathname.charAt(0)?gi.pathname:"/"+gi.pathname}}function _n(e){var t=b(e)?In(e):e;return t.protocol===yi.protocol&&t.host===yi.host}function Fn(){this.$get=v(e)}function Vn(e){function t(r,i){if($(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",zn),t("date",Gn),t("filter",Bn),t("json",Kn),t("limitTo",er),t("lowercase",Ci),t("number",Un),t("orderBy",tr),t("uppercase",Si)}function Bn(){return function(e,t,n){if(!C(e))return e;var r=typeof n,i=[];i.check=function(e){for(var t=0;t-1});var o=function(e,t){if("string"==typeof t&&"!"===t.charAt(0))return!o(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return n(e,t);case"object":switch(typeof t){case"object":return n(e,t);default:for(var r in e)if("$"!==r.charAt(0)&&o(e[r],t))return!0}return!1;case"array":for(var i=0;ie;e=Math.abs(e);var a=e+"",s="",u=[],l=!1;if(-1!==a.indexOf("e")){var c=a.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?a="0":(s=a,l=!0)}if(l)i>0&&e>-1&&1>e&&(s=e.toFixed(i));else{var f=(a.split($i)[1]||"").length;g(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac));var p=Math.pow(10,i);e=Math.round(e*p)/p;var d=(""+e).split($i),h=d[0];d=d[1]||"";var m,v=0,y=t.lgSize,b=t.gSize;if(h.length>=y+b)for(v=h.length-y,m=0;v>m;m++)(v-m)%b===0&&0!==m&&(s+=n),s+=h.charAt(m);for(m=v;me&&(r="-",e=-e),e=""+e;e.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Xn(o,t,r)}}function Qn(e,t){return function(n,r){var i=n["get"+e](),o=mr(t?"SHORT"+e:e);return r[o][i]}}function Jn(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Xn(Math[t>0?"floor":"ceil"](t/60),2)+Xn(Math.abs(t%60),2)}function Yn(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function Gn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-i,l=p(t[5]||0)-o,c=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,f),r}return e}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,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,b(n)&&(n=wi.test(n)?p(n):t(n)),x(n)&&(n=new Date(n)),!w(n))return n;for(;r;)a=xi.exec(r),a?(u=I(u,a,1),r=u.pop()):(u.push(r),r=null);return o(u,function(t){i=bi[t],s+=i?i(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Kn(){return function(e){return B(e,!0)}}function er(){return function(e,t){if(!C(e)&&!b(e))return e;if(t=p(t),b(e))return t?t>=0?e.slice(0,t):e.slice(t,e.length):"";var n,r,i=[];for(t>e.length?t=e.length:t<-e.length&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)i.push(e[n]);return i}}function tr(e){return function(t,n,r){function i(e,t){for(var r=0;re?-1:1):r>n?-1:1}if(!C(t))return t;if(!n)return t;n=C(n)?n:[n],n=O(n,function(t){var n=!1,r=t||m;if(b(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t),r.constant)){var i=r();return o(function(e,t){return a(e[i],t[i])},n)}return o(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;u15&&19>t||t>=37&&40>=t||f()}),o.hasEvent("paste")&&t.on("paste cut",f)}t.on("change",l),i.$render=function(){t.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)};var d,h,m=n.ngPattern;if(m){var v=function(e,t){return ir(i,"pattern",i.$isEmpty(t)||e.test(t),t)};h=m.match(/^\/(.*)\/([gim]*)$/),h?(m=new RegExp(h[1],h[2]),d=function(e){return v(m,e)}):d=function(n){var i=e.$eval(m);if(!i||!i.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",m,i,W(t));return v(i,n)},i.$formatters.push(d),i.$parsers.push(d)}if(n.ngMinlength){var g=p(n.ngMinlength),y=function(e){return ir(i,"minlength",i.$isEmpty(e)||e.length>=g,e)};i.$parsers.push(y),i.$formatters.push(y)}if(n.ngMaxlength){var $=p(n.ngMaxlength),b=function(e){return ir(i,"maxlength",i.$isEmpty(e)||e.length<=$,e)};i.$parsers.push(b),i.$formatters.push(b)}}function sr(e,t,r,i,o,a){if(ar(e,t,r,i,o,a),i.$parsers.push(function(e){var t=i.$isEmpty(e);return t||Mi.test(e)?(i.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(i.$setValidity("number",!1),n)}),or(i,"number",t),i.$formatters.push(function(e){return i.$isEmpty(e)?"":""+e}),r.min){var s=function(e){var t=parseFloat(r.min);return ir(i,"min",i.$isEmpty(e)||e>=t,e)};i.$parsers.push(s),i.$formatters.push(s)}if(r.max){var u=function(e){var t=parseFloat(r.max);return ir(i,"max",i.$isEmpty(e)||t>=e,e)};i.$parsers.push(u),i.$formatters.push(u)}i.$formatters.push(function(e){return ir(i,"number",i.$isEmpty(e)||x(e),e)})}function ur(e,t,n,r,i,o){ar(e,t,n,r,i,o);var a=function(e){return ir(r,"url",r.$isEmpty(e)||Oi.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function lr(e,t,n,r,i,o){ar(e,t,n,r,i,o);var a=function(e){return ir(r,"email",r.$isEmpty(e)||Di.test(e),e)};r.$formatters.push(a),r.$parsers.push(a)}function cr(e,t,n,r){g(n.name)&&t.attr("name",l()),t.on("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function fr(e,t,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;b(i)||(i=!0),b(o)||(o=!1),t.on("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e!==i},r.$formatters.push(function(e){return e===i}),r.$parsers.push(function(e){return e?i:o})}function pr(e,t){return e="ngClass"+e,["$animate",function(n){function r(e,t){var n=[];e:for(var r=0;r0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))}),s.data("$classCounts",n),r.join(" ")}function p(e,t){var i=r(t,e),o=r(e,t);o=f(o,-1),i=f(i,1),0===i.length?n.removeClass(s,o):0===o.length?n.addClass(s,i):n.setClass(s,i,o)}function d(e){if(t===!0||a.$index%2===t){var n=i(e||[]);if(h){if(!H(e,h)){var r=i(h);p(r,n)}}else l(n)}h=P(e)}var h;a.$watch(u[e],d,!0),u.$observe("class",function(){d(a.$eval(u[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var o=1&n;if(o!==r&1){var s=i(a.$eval(u[e]));o===t?l(s):c(s)}})}}}]}var dr=function(e){return b(e)?e.toLowerCase():e},hr=Object.prototype.hasOwnProperty,mr=function(e){return b(e)?e.toUpperCase():e},vr=function(e){return b(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},gr=function(e){return b(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(dr=vr,mr=gr);var yr,$r,br,xr,wr,Cr=[].slice,Sr=[].push,Tr=Object.prototype.toString,Er=r("ng"),kr=(e.angular,e.angular||(e.angular={})),Ar=["0","0","0"];yr=p((/msie (\d+)/.exec(dr(navigator.userAgent))||[])[1]),isNaN(yr)&&(yr=p((/trident\/.*; rv:(\d+)/.exec(dr(navigator.userAgent))||[])[1])),h.$inject=[],m.$inject=[];var Nr=function(){return String.prototype.trim?function(e){return b(e)?e.trim():e}:function(e){return b(e)?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e}}();wr=9>yr?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?mr(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var jr=/[A-Z]/g,Or={full:"1.2.16",major:1,minor:2,dot:16,codeName:"badger-enumeration"},Dr=mt.cache={},Mr=mt.expando="ng-"+(new Date).getTime(),Lr=1,Pr=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},qr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)},Hr=(mt._data=function(e){return this.cache[e[this.expando]]||{}},/([\:\-\_]+(.))/g),Rr=/^moz([A-Z])/,Ir=r("jqLite"),_r=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Fr=/<|?\w+;/,Vr=/<([\w:]+)/,Br=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zr={option:[1,'"],thead:[1,"