/*! For license information please see app.js.LICENSE.txt */ (()=>{var t={540:t=>{function e(){}t.exports=function(t,n,r){var i=!1;return r=r||e,o.count=t,0===t?n():o;function o(t,e){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,n(t),n=r):0!==o.count||i||n(null,e)}}},8537:()=>{!function(t,e,n){"use strict";var r=e.module("ngRoute",["ng"]).provider("$route",(function(){function t(t,n){return e.extend(Object.create(t),n)}var n={};function r(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,(function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,s="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",(o?"":e)+"(?:"+(o?e:"")+(s?"(.+?)":"([^/]+)")+(o||"")+")"+(o||"")})).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),n[t]=e.extend(o,t&&r(t,o)),t){var s="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";n[s]=e.extend({redirectTo:t},r(s,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,o,s,a,c,u,l){var f,h,p=!1,d={routes:n,reload:function(){p=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,p=!1}};r.$evalAsync((function(){g(t),t.defaultPrevented||m()}))},updateParams:function(t){if(!this.current||!this.current.$$route)throw i("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),o.path(v(this.current.$$route.originalPath,t)),o.search(t)}};return r.$on("$locationChangeStart",g),r.$on("$locationChangeSuccess",m),d;function g(i){var s,a,c=d.current;e.forEach(n,(function(n,r){!a&&(s=function(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,s=i.length;o{n(8537),t.exports="ngRoute"},8952:()=>{!function(t,e,n){"use strict";var r=e.$$minErr("$sanitize"),i=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,o=/^<\/\s*([\w:-]+)[^>]*>/,s=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,a=/^/g,l=/]*?)>/i,f=//g,h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~| |!])/g,d=A("area,br,col,hr,img,wbr"),g=A("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=A("rp,rt"),v=e.extend({},m,g),$=e.extend({},g,A("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),y=e.extend({},m,A("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),b=A("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),w=A("script,style"),x=e.extend({},d,$,y,v,b),C=A("background,cite,href,longdesc,src,usemap,xlink:href"),k=A("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),S=A("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),E=e.extend({},C,S,k);function A(t,n){var r,i={},o=t.split(",");for(r=0;r/g,">")}function M(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,s){t=e.lowercase(t),!r&&w[t]&&(r=t),r||!0!==x[t]||(i("<"),i(t),e.forEach(o,(function(r,o){var s=e.lowercase(o),a="img"===t&&"src"===s||"background"===s;!0!==E[s]||!0===C[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(N(r)),i('"'))})),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==x[t]||(i("")),t==r&&(r=!1)},chars:function(t){r||i(N(t))}}}e.module("ngSanitize",[]).provider("$sanitize",(function(){this.$get=["$$sanitizeUri",function(t){return function(n){var h=[];return function(t,n){"string"!=typeof t&&(t=null==t?"":""+t);var h,p,g,m,b=[],x=t;for(b.last=function(){return b[b.length-1]};t;){if(m="",p=!0,b.last()&&w[b.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+b.last()+"[^>]*>","i"),(function(t,e){return e=e.replace(u,"$1").replace(f,"$1"),n.chars&&n.chars(T(e)),""})),k(0,b.last())):(0===t.indexOf("\x3c!--")?(h=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",h)===h&&(n.comment&&n.comment(t.substring(4,h)),t=t.substring(h+3),p=!1):l.test(t)?(g=t.match(l))&&(t=t.replace(g[0],""),p=!1):c.test(t)?(g=t.match(o))&&(t=t.substring(g[0].length),g[0].replace(o,k),p=!1):a.test(t)&&((g=t.match(i))?(g[4]&&(t=t.substring(g[0].length),g[0].replace(i,C)),p=!1):(m+="<",t=t.substring(1))),p&&(m+=(h=t.indexOf("<"))<0?t:t.substring(0,h),t=h<0?"":t.substring(h),n.chars&&n.chars(T(m)))),t==x)throw r("badparse","The sanitizer was unable to parse the following block of html: {0}",t);x=t}function C(t,r,i,o){if(r=e.lowercase(r),$[r])for(;b.last()&&y[b.last()];)k(0,b.last());v[r]&&b.last()==r&&k(0,r),(o=d[r]||!!o)||b.push(r);var a={};i.replace(s,(function(t,e,n,r,i){var o=n||r||i||"";a[e]=T(o)})),n.start&&n.start(r,a,o)}function k(t,r){var i,o=0;if(r=e.lowercase(r))for(o=b.length-1;o>=0&&b[o]!=r;o--);if(o>=0){for(i=b.length-1;i>=o;i--)n.end&&n.end(b[i]);b.length=o}}k()}(n,M(h,(function(e,n){return!/^unsafe/.test(t(e,n))}))),h.join("")}}]})),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(i,o){if(!i)return i;for(var s,a,c,u=i,l=[];s=u.match(n);)a=s[0],s[2]||s[4]||(a=(s[3]?"http://":"mailto:")+a),c=s.index,f(u.substr(0,c)),h(a,s[0].replace(r,"")),u=u.substring(c+s[0].length);return f(u),t(l.join(""));function f(t){var n,r;t&&l.push((n=t,M(r=[],e.noop).chars(n),r.join("")))}function h(t,n){l.push("'),f(n),l.push("")}}}])}(window,window.angular)},9326:(t,e,n)=>{n(8952),t.exports="ngSanitize"},6916:()=>{!function(t,e,n){"use strict";var r=e.module("ngTouch",[]);function i(t,n,i){r.directive(t,["$parse","$swipe",function(r,o){return function(s,a,c){var u,l,f=r(c[t]),h=["touch"];e.isDefined(c.ngSwipeDisableMouse)||h.push("mouse"),o.bind(a,{start:function(t,e){u=t,l=!0},cancel:function(t){l=!1},end:function(t,e){(function(t){if(!u)return!1;var e=Math.abs(t.y-u.y),r=(t.x-u.x)*n;return l&&e<75&&r>0&&r>30&&e/r<.3})(t)&&s.$apply((function(){a.triggerHandler(i),f(s,{$event:e})}))}},h)}}])}r.factory("$swipe",[function(){var t={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};function n(t){var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],r=e.changedTouches&&e.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function r(n,r){var i=[];return e.forEach(n,(function(e){var n=t[e][r];n&&i.push(n)})),i.join(" ")}return{bind:function(t,e,i){var o,s,a,c,u=!1;i=i||["mouse","touch"],t.on(r(i,"start"),(function(t){a=n(t),u=!0,o=0,s=0,c=a,e.start&&e.start(a,t)}));var l=r(i,"cancel");l&&t.on(l,(function(t){u=!1,e.cancel&&e.cancel(t)})),t.on(r(i,"move"),(function(t){if(u&&a){var r=n(t);if(o+=Math.abs(r.x-c.x),s+=Math.abs(r.y-c.y),c=r,!(o<10&&s<10))return s>o?(u=!1,void(e.cancel&&e.cancel(t))):(t.preventDefault(),void(e.move&&e.move(r,t)))}})),t.on(r(i,"end"),(function(t){u&&(u=!1,e.end&&e.end(n(t),t))}))}}}]),r.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),r.directive("ngClick",["$parse","$timeout","$rootElement",function(t,n,r){var i,o,s,a="ng-click-active";function c(t,e,n){for(var r=0;r2500)){var n,r=t.touches&&t.touches.length?t.touches:[t],a=r[0].clientX,u=r[0].clientY;a<1&&u<1||s&&s[0]===a&&s[1]===u||(s&&(s=null),"label"===(n=t.target,e.lowercase(n.nodeName||n[0]&&n[0].nodeName))&&(s=[a,u]),c(o,a,u)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function l(t){var e=t.touches&&t.touches.length?t.touches:[t],r=e[0].clientX,i=e[0].clientY;o.push(r,i),n((function(){for(var t=0;t{n(6916),t.exports="ngTouch"},7808:()=>{!function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,s=o[0],a="["+(t?t+":":"")+s+"] ",c=o[1];for(a+=c.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1)+i;return e=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function w(t,e,n){var r,i;if(t)if(L(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(U(t)||b(t)){var o="object"!=typeof t;for(r=0,i=t.length;r=0&&t.splice(n,1),n}function rt(t,e){var n=[],r=[];if(e){if(K(e))throw v("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw v("cpi","Can't copy! Source and destination are identical.");return U(e)?e.length=0:w(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),n.push(t),r.push(e),i(t,e)}return o(t);function i(t,e){var n,r=e.$$hashKey;if(U(t))for(var i=0,a=t.length;i2?ut(arguments,2):[];return!L(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,ct(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function ft(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:z(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":W(r)&&(i="$SCOPE"),i}function ht(t,e){return R(t)?n:(q(e)||(e=e?2:null),JSON.stringify(t,ft,e))}function pt(t){return I(t)?JSON.parse(t):t}var dt=/:/g;function gt(t,e){t=t.replace(dt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function mt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,n*(gt(e,r)-r))}function vt(t){t=u(t).clone();try{t.empty()}catch(t){}var e=u("
").append(t).html();try{return t[0].nodeType===_t?o(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,(function(t,e){return"<"+o(e)}))}catch(t){return o(e)}}function $t(t){try{return decodeURIComponent(t)}catch(t){}}function yt(t){var e={};return w((t||"").split("&"),(function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),D(r=$t(r))&&(i=!D(i)||$t(i),s.call(e,r)?U(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function bt(t){var e=[];return w(t,(function(t,n){U(t)?w(t,(function(t){e.push(xt(n,!0)+(!0===t?"":"="+xt(t,!0)))})):e.push(xt(n,!0)+(!0===t?"":"="+xt(t,!0)))})),e.length?e.join("&"):""}function wt(t){return xt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function xt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var Ct=["ng-","data-ng-","ng:","x-ng-"];function kt(n,r,i){_(i)||(i={}),i=A({strictDi:!1},i);var o=function(){if((n=u(n)).injector()){var t=n[0]===e?"document":vt(n);throw v("btstrpd","App already bootstrapped with this element '{0}'",t.replace(//,">"))}(r=r||[]).unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=De(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((function(){e.data("$injector",r),n(e)(t)}))}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!a.test(t.name))return o();t.name=t.name.replace(a,""),$.resumeBootstrap=function(t){return w(t,(function(t){r.push(t)})),o()},L($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function St(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function Et(t){var e=$.element(t).injector();if(!e)throw v("test","no injector found for element argument to getTestability");return e.get("$$testability")}var At=/[A-Z]/g;function Ot(t,e){return e=e||"_",t.replace(At,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Tt,Nt=!1;function Mt(t,e,n){if(!t)throw v("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function jt(t,e,n){return n&&U(t)&&(t=t[t.length-1]),Mt(L(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function Bt(t,e){if("hasOwnProperty"===t)throw v("badname","hasOwnProperty is not a valid {0} name",e)}function Pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,s=i.length,a=0;a=0)return"...";e.push(n)}return n}))}(t):t}var It={full:"1.4.14",major:1,minor:4,dot:14,codeName:"material-distinction"};oe.expando="ng339";var qt=oe.cache={},Vt=1,Ut=function(t,e,n){t.addEventListener(e,n,!1)},Lt=function(t,e,n){t.removeEventListener(e,n,!1)};oe._data=function(t){return this.cache[t[this.expando]]||{}};var Ht=/([\:\-\_]+(.))/g,zt=/^moz([A-Z])/,Wt={mouseleave:"mouseout",mouseenter:"mouseover"},Xt=r("jqLite");function Jt(t){return t.replace(Ht,(function(t,e,n,r){return r?n.toUpperCase():n})).replace(zt,"Moz$1")}var Yt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Gt=/<|&#?\w+;/,Kt=/<([\w:-]+)/,Zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Qt={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function te(t){return!Gt.test(t)}function ee(t){var e=t.nodeType;return 1===e||!e||9===e}function ne(t,e){var n,r,i,o,s=e.createDocumentFragment(),a=[];if(te(t))a.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(Kt.exec(t)||["",""])[1].toLowerCase(),i=Qt[r]||Qt._default,n.innerHTML=i[1]+t.replace(Zt,"<$1>")+i[2],o=i[0];o--;)n=n.lastChild;a=ct(a,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",w(a,(function(t){s.appendChild(t)})),s}function re(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}Qt.optgroup=Qt.option,Qt.tbody=Qt.tfoot=Qt.colgroup=Qt.caption=Qt.thead,Qt.th=Qt.td;var ie=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function oe(t){if(t instanceof oe)return t;var n,r,i,o;if(I(t)&&(t=Z(t),n=!0),!(this instanceof oe)){if(n&&"<"!=t.charAt(0))throw Xt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new oe(t)}ge(this,n?(r=t,i=i||e,(o=Yt.exec(r))?[i.createElement(o[1])]:(o=ne(r,i))?o.childNodes:[]):t)}function se(t){return t.cloneNode(!0)}function ae(t,e){if(e||ue(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r0||(Lt(t,e,s),delete o[e])};w(e.split(" "),(function(t){a(t),Wt[t]&&a(Wt[t])}))}else for(e in o)"$destroy"!==e&&Lt(t,e,s),delete o[e]}function ue(t,e){var r=t.ng339,i=r&&qt[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),ce(t)),delete qt[r],t.ng339=n}}function le(t,e){var r=t.ng339,i=r&&qt[r];return e&&!i&&(t.ng339=r=++Vt,i=qt[r]={events:{},data:{},handle:n}),i}function fe(t,e,n){if(ee(t)){var r=D(n),i=!r&&e&&!_(e),o=!e,s=le(t,!i),a=s&&s.data;if(r)a[e]=n;else{if(o)return a;if(i)return a&&a[e];A(a,e)}}}function he(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function pe(t,e){e&&t.setAttribute&&w(e.split(" "),(function(e){t.setAttribute("class",Z((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Z(e)+" "," ")))}))}function de(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");w(e.split(" "),(function(t){t=Z(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")})),t.setAttribute("class",Z(n))}}function ge(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r=0?this[t]:this[this.length+t])},length:0,push:d,sort:[].sort,splice:[].splice},we={};w("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){we[o(t)]=t}));var xe={};w("input,select,option,textarea,button,form,details".split(","),(function(t){xe[t]=!0}));var Ce={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function ke(t,e){var n=we[e.toLowerCase()];return n&&xe[et(t)]&&n}function Se(t,e,n){n.call(t,e)}function Ee(t,e,n){var r=e.relatedTarget;r&&(r===t||ie.call(t,r))||n.call(t,e)}function Ae(){this.$get=function(){return A(oe,{hasClass:function(t,e){return t.attr&&(t=t[0]),he(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),de(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),pe(t,e)}})}}function Oe(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return"function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||k)():r+":"+t}function Te(t,e){if(e){var n=0;this.nextUid=function(){return++n}}w(t,this.put,this)}w({data:fe,removeData:ue,hasData:function(t){for(var e in qt[t.ng339])return!0;return!1}},(function(t,e){oe[e]=t})),w({data:fe,inheritedData:ve,scope:function(t){return u.data(t,"$scope")||ve(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return u.data(t,"$isolateScope")||u.data(t,"$isolateScopeNoTemplate")},controller:me,injector:function(t){return ve(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:he,css:function(t,e,n){if(e=Jt(e),!D(n))return t.style[e];t.style[e]=n},attr:function(t,e,r){var i=t.nodeType;if(i!==_t&&2!==i&&8!==i){var s=o(e);if(we[s]){if(!D(r))return t[e]||(t.attributes.getNamedItem(e)||M).specified?s:n;r?(t[e]=!0,t.setAttribute(e,s)):(t[e]=!1,t.removeAttribute(s))}else if(D(r))t.setAttribute(e,r);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?n:a}}},prop:function(t,e,n){if(!D(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(R(e)){var n=t.nodeType;return 1===n||n===_t?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(R(e)){if(t.multiple&&"select"===et(t)){var n=[];return w(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(R(e))return t.innerHTML;ae(t,!0),t.innerHTML=e},empty:$e},(function(t,e){oe.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==$e&&R(2==t.length&&t!==he&&t!==me?e:n)){if(_(e)){for(r=0;r1&&(i=it(i));for(var c=0;c=0?e.split(" "):[e],u=c.length,l=function(e,n,i){var o=s[e];o||((o=s[e]=[]).specialHandlerWrapper=n,"$destroy"===e||i||Ut(t,e,a)),o.push(r)};u--;)e=c[u],Wt[e]?(l(Wt[e],Ee),l(e,n,!0)):l(e)}},off:ce,one:function(t,e,n){(t=u(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;ae(t),w(new oe(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return w(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var r=0,i=(e=new oe(e)).length;r1||t((function(){for(var t=0;ta&&this.remove(l.key),e},get:function(t){if(a0&&S.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&S.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=nn(t,e);n&&n.length&&S.addClass(this.$$element,n);var r=nn(e,t);r&&r.length&&S.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i,o=ke(this.$$element[0],t),s=Ce[t],a=t;if(o?(this.$$element.prop(t,e),r=o):s&&(this[s]=e,a=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Ot(t,"-")),"a"===(i=et(this.$$element))&&"href"===t||"img"===i&&"src"===t)this[t]=e=E(e,"src"===t);else if("img"===i&&"srcset"===t&&D(e)){for(var c="",u=Z(e),l=/\s/.test(u)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,f=u.split(l),h=Math.floor(f.length/2),p=0;p").append(t).html())):n?be.clone.call(t):t,l)for(var d in l)a.data("$"+d+"Controller",l[d].instance);return H.$$addScopeInfo(a,e),n&&n(a,e),f&&f(e,a,a,c),a}}function z(t,e,r,i,o,s){for(var a,c,l,f,h,p,d,g=[],m=0;m0);else r.push(t);return u(r)}function K(t,e,n){return function(r,i,o,s,a){return i=G(i[0],e,n),t(r,i,o,s,a)}}function Q(t,r,i,o,s,a,c,l,f){f=f||{};for(var h,p,g,v,$,y=-Number.MAX_VALUE,b=f.newScopeDirective,w=f.controllerDirectives,C=f.newIsolateScopeDirective,k=f.templateDirective,S=f.nonTlbTranscludeDirective,E=!1,A=!1,T=f.hasElementTranscludeDirective,N=i.$$element=u(r),M=a,j=o,B=0,P=t.length;Bh.priority)break;if(($=h.scope)&&(h.templateUrl||(_($)?(lt("new/isolated scope",C||b,h,N),C=h):lt("new/isolated scope",C,h,N)),b=b||h),p=h.name,!h.templateUrl&&h.controller&&($=h.controller,w=w||Dt(),lt("'"+p+"' controller",w[p],h,N),w[p]=h),($=h.transclude)&&(E=!0,h.$$tlb||(lt("transclusion",S,h,N),S=h),"element"==$?(T=!0,y=h.priority,g=N,N=i.$$element=u(e.createComment(" "+p+": "+i[p]+" ")),r=N[0],pt(s,ut(g),r),j=H(g,o,y,M&&M.name,{nonTlbTranscludeDirective:S})):(g=u(se(r)).contents(),N.empty(),j=H(g,o,n,n,{needsNewScope:h.$$isolateScope||h.$$newScope}))),h.template)if(A=!0,lt("template",k,h,N),k=h,$=L(h.template)?h.template(N,i):h.template,$=F($),h.replace){if(M=h,g=te($)?[]:rn(ft(h.templateNamespace,Z($))),r=g[0],1!=g.length||1!==r.nodeType)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p,"");pt(s,N,r);var q={$attr:{}},V=Y(r,[],q),z=t.splice(B+1,t.length-(B+1));(C||b)&&tt(V,C,b),t=t.concat(V).concat(z),st(i,q),P=t.length}else N.html($);if(h.templateUrl)A=!0,lt("template",k,h,N),k=h,h.replace&&(M=h),Q=at(t.splice(B,t.length-B),N,i,s,E&&j,c,l,{controllerDirectives:w,newScopeDirective:b!==h&&b,newIsolateScopeDirective:C,templateDirective:k,nonTlbTranscludeDirective:S}),P=t.length;else if(h.compile)try{L(v=h.compile(N,i,j))?X(null,v,R,D):v&&X(v.pre,v.post,R,D)}catch(t){m(t,vt(N))}h.terminal&&(Q.terminal=!0,y=Math.max(y,h.priority))}return Q.scope=b&&!0===b.scope,Q.transcludeOnThisElement=E,Q.templateOnThisElement=A,Q.transclude=j,f.hasElementTranscludeDirective=T,Q;function X(t,e,n,r){t&&(n&&(t=K(t,n,r)),t.require=h.require,t.directiveName=p,(C===h||h.$$isolateScope)&&(t=dt(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=K(e,n,r)),e.require=h.require,e.directiveName=p,(C===h||h.$$isolateScope)&&(e=dt(e,{isolateScope:!0})),l.push(e))}function J(t,e,n,r){var i;if(I(e)){var o=e.match(d),s=e.substring(o[0].length),a=o[1]||o[3],c="?"===o[2];if("^^"===a?n=n.parent():i=(i=r&&r[s])&&i.instance,!i){var u="$"+s+"Controller";i=a?n.inheritedData(u):n.data(u)}if(!i&&!c)throw Ze("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(U(e)){i=[];for(var l=0,f=e.length;l=0;B--)gt(f=l[B],f.isolateScope?h:e,m,v,f.require&&J(f.directiveName,f.require,m,d),g)}}function tt(t,e,n){for(var r=0,i=t.length;rf.priority)&&-1!=f.restrict.indexOf(r)){if(c&&(f=N(f,{$$start:c,$$end:u})),!f.$$bindings){var g=f.$$bindings=$(f,f.name);_(g.isolateScope)&&(f.$$isolateBindings=g.isolateScope)}e.push(f),l=f}}catch(t){m(t)}return l}function it(e){if(i.hasOwnProperty(e))for(var n=t.get(e+a),r=0,o=n.length;r"+n+"",r.childNodes[0].childNodes;default:return n}}function ht(t,e,n,i,o){var s=function(t,e){if("srcdoc"==e)return k.HTML;var n=et(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?k.RESOURCE_URL:void 0}(t,i);o=p[i]||o;var a=r(n,!0,s,o);if(a){if("multiple"===i&&"select"===et(t))throw Ze("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",vt(t));e.push({priority:100,compile:function(){return{pre:function(t,e,c){var u=c.$$observers||(c.$$observers=Dt());if(g.test(i))throw Ze("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=c[i];l!==n&&(a=l&&r(l,!0,s,o),n=l),a&&(c[i]=a(t),(u[i]||(u[i]=[])).$$inter=!0,(c.$$observers&&c.$$observers[i].$$scope||t).$watch(a,(function(t,e){"class"===i&&t!=e?c.$updateClass(t,e):c.$set(i,t)})))}}}})}}function pt(t,n,r){var i,o,s=n[0],a=n.length,c=s.parentNode;if(t)for(i=0,o=t.length;i0?" ":"")+s}return n}function rn(t){var e=(t=u(t)).length;if(e<=1)return t;for(;e--;)8===t[e].nodeType&&p.call(t,e,1);return t}var on=r("$controller"),sn=/^(\S+)(\s+as\s+([\w$]+))?$/;function an(){var t={},e=!1;this.register=function(e,n){Bt(e,"controller"),_(e)?A(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){return function(r,a,c,u){var l,f,h,p;if(c=!0===c,u&&I(u)&&(p=u),I(r)){if(!(f=r.match(sn)))throw on("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=f[1],p=p||f[3],jt(r=t.hasOwnProperty(h)?t[h]:Pt(a.$scope,h,!0)||(e?Pt(o,h,!0):n),h,!0)}if(c){var d=(U(r)?r[r.length-1]:r).prototype;return l=Object.create(d||null),p&&s(a,p,l,h||r.name),A((function(){var t=i.invoke(r,l,a,h);return t!==l&&(_(t)||L(t))&&(l=t,p&&s(a,p,l,h||r.name)),l}),{instance:l,identifier:p})}return l=i.instantiate(r,a,h),p&&s(a,p,l,h||r.name),l};function s(t,e,n,i){if(!t||!_(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}}]}function cn(){this.$get=["$window",function(t){return u(t.document)}]}function un(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var ln=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof u&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},fn={"Content-Type":"application/json;charset=utf-8"},hn=/^\[|^\{(?!\{)/,pn={"[":/]$/,"{":/}$/},dn=/^\)\]\}',?\n/,gn=r("$http"),mn=function(t){return function(){throw gn("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}};function vn(t){return _(t)?V(t)?t.toISOString():ht(t):t}function $n(){this.$get=function(){return function(t){if(!t)return"";var e=[];return x(t,(function(t,n){null===t||R(t)||(U(t)?w(t,(function(t,r){e.push(xt(n)+"="+xt(vn(t)))})):e.push(xt(n)+"="+xt(vn(t))))})),e.join("&")}}}function yn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){null===n||R(n)||(U(n)?w(n,(function(e,n){t(e,r+"["+(_(e)?n:"")+"]")})):_(n)&&!V(n)?x(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):e.push(xt(r)+"="+xt(vn(n))))}(t,"",!0),e.join("&")}}}function bn(t,e){if(I(t)){var n=t.replace(dn,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf("application/json")||(o=(i=n).match(hn))&&pn[o[0]].test(i))&&(t=pt(n))}}var i,o;return t}function wn(t){var e,n=Dt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return I(t)?w(t.split("\n"),(function(t){e=t.indexOf(":"),r(o(Z(t.substr(0,e))),Z(t.substr(e+1)))})):_(t)&&w(t,(function(t,e){r(o(e),Z(t))})),n}function xn(t){var e;return function(n){if(e||(e=wn(t)),n){var r=e[o(n)];return void 0===r&&(r=null),r}return e}}function Cn(t,e,n,r){return L(r)?r(t,e,n):(w(r,(function(r){t=r(t,e,n)})),t)}function kn(t){return 200<=t&&t<300}function Sn(){var t=this.defaults={transformResponse:[bn],transformRequest:[function(t){return!_(t)||(e=t,"[object File]"===g.call(e))||X(t)||function(t){return"[object FormData]"===g.call(t)}(t)?t:ht(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:it(fn),put:it(fn),patch:it(fn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return D(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return D(t)?(i=!!t,this):i};var s=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(c,u,l,f,h,p){var d=l("$http");t.paramSerializer=I(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var g=[];function m(s){if(!$.isObject(s))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",s);if(!I(s.url))throw r("$http")("badreq","Http request configuration url must be a string. Received: {0}",s.url);var l=A({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},s);l.headers=function(e){var n,r,i,s=t.headers,a=A({},e.headers);s=A({},s.common,s[o(e.method)]);t:for(n in s){for(i in r=o(n),a)if(o(i)===r)continue t;a[n]=s[n]}return function(t,e){var n,r={};return w(t,(function(t,i){L(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(a,it(e))}(s),l.method=a(l.method),l.paramSerializer=I(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var v=[function(r){var i=r.headers,s=Cn(r.data,xn(i),n,r.transformRequest);return R(s)&&w(i,(function(t,e){"content-type"===o(e)&&delete i[e]})),R(r.withCredentials)&&!R(t.withCredentials)&&(r.withCredentials=t.withCredentials),function(r,i){var o,s,a=h.defer(),l=a.promise,p=r.headers,g=function(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}(r.url,r.paramSerializer(r.params));if(m.pendingRequests.push(r),l.then(b,b),!r.cache&&!t.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(o=_(r.cache)?r.cache:_(t.cache)?t.cache:d),o&&(D(s=o.get(g))?Y(s)?s.then(y,y):U(s)?$(s[1],s[0],it(s[2]),s[3]):$(s,200,{},"OK"):o.put(g,l)),R(s)){var v=Vr(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;v&&(p[r.xsrfHeaderName||t.xsrfHeaderName]=v),c(r.method,g,i,(function(t,n,r,i){function s(){$(n,t,r,i)}o&&(kn(t)?o.put(g,[t,n,wn(r),i]):o.remove(g)),e?f.$applyAsync(s):(s(),f.$$phase||f.$apply())}),p,r.timeout,r.withCredentials,r.responseType)}return l;function $(t,e,n,i){(kn(e=e>=-1?e:0)?a.resolve:a.reject)({data:t,status:e,headers:xn(n),config:r,statusText:i})}function y(t){$(t.data,t.status,it(t.headers()),t.statusText)}function b(){var t=m.pendingRequests.indexOf(r);-1!==t&&m.pendingRequests.splice(t,1)}}(r,s).then(C,C)},n],y=h.when(l);for(w(g,(function(t){(t.request||t.requestError)&&v.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)}));v.length;){var b=v.shift(),x=v.shift();y=y.then(b,x)}return i?(y.success=function(t){return jt(t,"fn"),y.then((function(e){t(e.data,e.status,e.headers,l)})),y},y.error=function(t){return jt(t,"fn"),y.then(null,(function(e){t(e.data,e.status,e.headers,l)})),y}):(y.success=mn("success"),y.error=mn("error")),y;function C(t){var e=A({},t);return e.data=Cn(t.data,t.headers,t.status,l.transformResponse),kn(t.status)?e:h.reject(e)}}return w(s,(function(t){g.unshift(I(t)?p.get(t):p.invoke(t))})),m.pendingRequests=[],function(t){w(arguments,(function(t){m[t]=function(e,n){return m(A({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){w(arguments,(function(t){m[t]=function(e,n,r){return m(A({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),m.defaults=t,m}]}function En(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function An(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,i){return function(s,a,c,u,l,f,h,p){if(t.$$incOutstandingRequestCount(),a=a||t.url(),"jsonp"==o(s)){var d="_"+(r.counter++).toString(36);r[d]=function(t){r[d].data=t,r[d].called=!0};var g=function(t,e,n){var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){Lt(o,"load",s),Lt(o,"error",s),i.body.removeChild(o),o=null;var a=-1,c="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),c=t.type,a="error"===t.type?404:200),n&&n(a,c)},Ut(o,"load",s),Ut(o,"error",s),i.body.appendChild(o),s}(a.replace("JSON_CALLBACK","angular.callbacks."+d),d,(function(t,e){b(u,t,r[d].data,"",e),r[d]=M}))}else{var m=e(s,a);m.open(s,a,!0),w(l,(function(t,e){D(t)&&m.setRequestHeader(e,t)})),m.onload=function(){var t=m.statusText||"",e="response"in m?m.response:m.responseText,n=1223===m.status?204:m.status;0===n&&(n=e?200:"file"==qr(a).protocol?404:0),b(u,n,e,m.getAllResponseHeaders(),t)};var v=function(){b(u,-1,null,null,"")};if(m.onerror=v,m.onabort=v,h&&(m.withCredentials=!0),p)try{m.responseType=p}catch(t){if("json"!==p)throw t}m.send(R(c)?null:c)}if(f>0)var $=n(y,f);else Y(f)&&f.then(y);function y(){g&&g(),m&&m.abort()}function b(e,r,i,o,s){D($)&&n.cancel($),g=m=null,e(r,i,o,s),t.$$completeOutstandingRequest(M)}}}(t,r,t.defer,e.angular.callbacks,n[0])}]}var On=$.$interpolateMinErr=r("$interpolate");function Tn(){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){var o=t.length,s=e.length,a=new RegExp(t.replace(/./g,u),"g"),c=new RegExp(e.replace(/./g,u),"g");function u(t){return"\\\\\\"+t}function l(n){return n.replace(a,t).replace(c,e)}function f(a,c,u,f){f=!!f;for(var h,p,d,g=0,m=[],v=[],$=a.length,y=[],b=[];g<$;){if(-1==(h=a.indexOf(t,g))||-1==(p=a.indexOf(e,h+o))){g!==$&&y.push(l(a.substring(g)));break}g!==h&&y.push(l(a.substring(g,h))),d=a.substring(h+o,p),m.push(d),v.push(n(d,C)),g=p+s,b.push(y.length),y.push("")}if(u&&y.length>1&&On.throwNoconcat(a),!c||m.length){var w=function(t){for(var e=0,n=m.length;e4,l=u?ut(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=D(c)&&!c,g=(d?r:n).defer(),m=g.promise;return a=D(a)?a:0,m.then(null,null,u?function(){o.apply(null,l)}:o),m.$$intervalId=f((function(){g.notify(p++),a>0&&p>=a&&(g.resolve(p),h(m.$$intervalId),delete i[m.$$intervalId]),d||t.$apply()}),s),i[m.$$intervalId]=g,m}return o.cancel=function(t){return!(!t||!(t.$$intervalId in i)||(i[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete i[t.$$intervalId],0))},o}]}On.throwNoconcat=function(t){throw On("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",t)},On.interr=function(t,e){return On("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Mn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,jn={http:80,https:443,ftp:21},Bn=r("$location");function Pn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=wt(e[n]);return e.join("/")}function Rn(t,e){var n=qr(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=T(n.port)||jn[n.protocol]||null}function Dn(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=qr(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=yt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function _n(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function Fn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function In(t){return t.replace(/(#.+)|#$/,"$1")}function qn(t,e,n){this.$$html5=!0,n=n||"",Rn(t,this),this.$$parse=function(t){var n=_n(e,t);if(!I(n))throw Bn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Dn(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=bt(this.$$search),n=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(D(o=_n(t,r))?(s=o,a=D(o=_n(n,o))?e+(_n("/",o)||o):t+s):D(o=_n(e,r))?a=e+o:e==r+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,s,a}}function Vn(t,e,n){Rn(t,this),this.$$parse=function(r){var i,o=_n(t,r)||_n(e,r);R(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",R(o)&&(t=r,this.replace())):R(i=_n(n,o))&&(i=o),Dn(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=bt(this.$$search),r=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Fn(t)==Fn(e)&&(this.$$parse(e),!0)}}function Un(t,e,n){this.$$html5=!0,Vn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t==Fn(r)?o=r:(s=_n(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$compose=function(){var e=bt(this.$$search),r=this.$$hash?"#"+wt(this.$$hash):"";this.$$url=Pn(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}var Ln={$$html5:!1,$$replace:!1,absUrl:Hn("$$absUrl"),url:function(t){if(R(t))return this.$$url;var e=Mn.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Hn("$$protocol"),host:Hn("$$host"),port:Hn("$$port"),path:zn("$$path",(function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(I(t)||q(t))t=t.toString(),this.$$search=yt(t);else{if(!_(t))throw Bn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");w(t=rt(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:R(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:zn("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function Hn(t){return function(){return this[t]}}function zn(t,e){return function(n){return R(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Wn(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return D(e)?(t=e,this):t},this.html5Mode=function(t){return J(t)?(e.enabled=t,this):_(t)?(J(t.enabled)&&(e.enabled=t.enabled),J(t.requireBase)&&(e.requireBase=t.requireBase),J(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var a,c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Bn("nobase","$location in HTML5 mode requires a tag to be present!");l=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(h||"/"),c=i.history?qn:Un}else l=Fn(p),c=Vn;var d=function(t){return t.substr(0,Fn(t).lastIndexOf("/")+1)}(l);(a=new c(l,d,"#"+t)).$$parseLinkUrl(p,p),a.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=a.url(),o=a.$$state;try{r.url(t,e,n),a.$$state=r.state()}catch(t){throw a.url(i),a.$$state=o,t}}o.on("click",(function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=u(t.target);"a"!==et(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var c=i.prop("href"),l=i.attr("href")||i.attr("xlink:href");_(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=qr(c.animVal).href),g.test(c)||!c||i.attr("target")||t.isDefaultPrevented()||a.$$parseLinkUrl(c,l)&&(t.preventDefault(),a.absUrl()!=r.url()&&(n.$apply(),s.angular["ff-684208-preventDefault"]=!0))}})),In(a.absUrl())!=In(p)&&r.url(a.absUrl(),!0);var v=!0;return r.onUrlChange((function(t,e){R(_n(d,t))?s.location.href=t:(n.$evalAsync((function(){var r,i=a.absUrl(),o=a.$$state;t=In(t),a.$$parse(t),a.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,a.absUrl()===t&&(r?(a.$$parse(i),a.$$state=o,m(i,!1,o)):(v=!1,$(i,o)))})),n.$$phase||n.$digest())})),n.$watch((function(){var t=In(r.url()),e=In(a.absUrl()),o=r.state(),s=a.$$replace,c=t!==e||a.$$html5&&i.history&&o!==a.$$state;(v||c)&&(v=!1,n.$evalAsync((function(){var e=a.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,a.$$state,o).defaultPrevented;a.absUrl()===e&&(r?(a.$$parse(t),a.$$state=o):(c&&m(e,s,o===a.$$state?null:a.$$state),$(t,o)))}))),a.$$replace=!1})),a;function $(t,e){n.$broadcast("$locationChangeSuccess",a.absUrl(),t,a.$$state,e)}}]}function Xn(){var t=!0,e=this;this.debugEnabled=function(e){return D(e)?(t=e,this):t},this.$get=["$window",function(n){return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:(r=o("debug"),function(){t&&r.apply(e,arguments)})};var r;function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},r=e[t]||e.log||M,o=!1;try{o=!!r.apply}catch(t){}return o?function(){var t=[];return w(arguments,(function(e){t.push(i(e))})),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}}]}w([Un,Vn,qn],(function(t){t.prototype=Object.create(Ln),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==qn||!this.$$html5)throw Bn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=R(e)?null:e,this}}));var Jn=r("$parse");function Yn(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Jn("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Gn(t,e){if(!I(t+=""))throw Jn("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Kn(t,e){if(t){if(t.constructor===t)throw Jn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Jn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Jn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Jn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}var Zn=Function.prototype.call,Qn=Function.prototype.apply,tr=Function.prototype.bind;function er(t,e){if(t){if(t.constructor===t)throw Jn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===Zn||t===Qn||t===tr)throw Jn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function nr(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Jn("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}var rr=Dt();w("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){rr[t]=!0}));var ir={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},or=function(t){this.options=t};or.prototype={constructor:or,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:sr.Program,body:t}},expressionStatement:function(){return{type:sr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:sr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:sr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:sr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:sr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:sr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:sr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=rt(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:sr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:sr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:sr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:sr.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.expression())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:sr.Identifier,name:t.text}},constant:function(){return{type:sr.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:sr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:sr.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:sr.ObjectExpression,properties:e}},throwError:function(t,e){throw Jn("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Jn("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Jn("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],s=o.text;if(s===e||s===n||s===r||s===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},constants:{true:{type:sr.Literal,value:!0},false:{type:sr.Literal,value:!1},null:{type:sr.Literal,value:null},undefined:{type:sr.Literal,value:n},this:{type:sr.ThisExpression}}},mr.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},lr(i,r.$filter);var o,s="";if(this.stage="assign",o=pr(i)){this.state.computing="assign";var a=this.nextId();this.recurse(o,a),this.return_(a),s="fn.assign="+this.generateFunction("assign","s,v,l")}var c=fr(i.body);r.stage="inputs",w(c,(function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e})),this.state.computing="fn",this.stage="main",this.recurse(i);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",l=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",u)(this.$filter,Yn,Kn,er,Gn,nr,ar,cr,t);return this.state=this.stage=n,l.literal=dr(i),l.constant=gr(i),l},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return w(e,(function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))})),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return w(this.state.filters,(function(n,r){t.push(n+"=$filter("+e.escape(r)+")")})),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,o,s){var a,c,u,l,f=this;if(i=i||M,!s&&D(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,o,!0));switch(t.type){case sr.Program:w(t.body,(function(e,r){f.recurse(e.expression,n,n,(function(t){c=t})),r!==t.body.length-1?f.current().body.push(c,";"):f.return_(c)}));break;case sr.Literal:l=this.escape(t.value),this.assign(e,l),i(l);break;case sr.UnaryExpression:this.recurse(t.argument,n,n,(function(t){c=t})),l=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,l),i(l);break;case sr.BinaryExpression:this.recurse(t.left,n,n,(function(t){a=t})),this.recurse(t.right,n,n,(function(t){c=t})),l="+"===t.operator?this.plus(a,c):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(c,0):"("+a+")"+t.operator+"("+c+")",this.assign(e,l),i(l);break;case sr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),i(e);break;case sr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),i(e);break;case sr.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Yn(t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){o&&1!==o&&f.if_(f.not(f.nonComputedMember("s",t.name)),f.lazyAssign(f.nonComputedMember("s",t.name),"{}")),f.assign(e,f.nonComputedMember("s",t.name))}))}),e&&f.lazyAssign(e,f.nonComputedMember("l",t.name))),(f.state.expensiveChecks||yr(t.name))&&f.addEnsureSafeObject(e),i(e);break;case sr.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,a,n,(function(){f.if_(f.notNull(a),(function(){o&&1!==o&&f.addEnsureSafeAssignContext(a),t.computed?(c=f.nextId(),f.recurse(t.property,c),f.getStringValue(c),f.addEnsureSafeMemberName(c),o&&1!==o&&f.if_(f.not(f.computedMember(a,c)),f.lazyAssign(f.computedMember(a,c),"{}")),l=f.ensureSafeObject(f.computedMember(a,c)),f.assign(e,l),r&&(r.computed=!0,r.name=c)):(Yn(t.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(a,t.property.name)),f.lazyAssign(f.nonComputedMember(a,t.property.name),"{}")),l=f.nonComputedMember(a,t.property.name),(f.state.expensiveChecks||yr(t.property.name))&&(l=f.ensureSafeObject(l)),f.assign(e,l),r&&(r.computed=!1,r.name=t.property.name))}),(function(){f.assign(e,"undefined")})),i(e)}),!!o);break;case sr.CallExpression:e=e||this.nextId(),t.filter?(c=f.filter(t.callee.name),u=[],w(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),u.push(e)})),l=c+"("+u.join(",")+")",f.assign(e,l),i(e)):(c=f.nextId(),a={},u=[],f.recurse(t.callee,c,a,(function(){f.if_(f.notNull(c),(function(){f.addEnsureSafeFunction(c),w(t.arguments,(function(t){f.recurse(t,f.nextId(),n,(function(t){u.push(f.ensureSafeObject(t))}))})),a.name?(f.state.expensiveChecks||f.addEnsureSafeObject(a.context),l=f.member(a.context,a.name,a.computed)+"("+u.join(",")+")"):l=c+"("+u.join(",")+")",l=f.ensureSafeObject(l),f.assign(e,l)}),(function(){f.assign(e,"undefined")})),i(e)})));break;case sr.AssignmentExpression:if(c=this.nextId(),a={},!hr(t.left))throw Jn("lval","Trying to assign a value to a non l-value");this.recurse(t.left,n,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(t.right,c),f.addEnsureSafeObject(f.member(a.context,a.name,a.computed)),f.addEnsureSafeAssignContext(a.context),l=f.member(a.context,a.name,a.computed)+t.operator+c,f.assign(e,l),i(e||l)}))}),1);break;case sr.ArrayExpression:u=[],w(t.elements,(function(t){f.recurse(t,f.nextId(),n,(function(t){u.push(t)}))})),l="["+u.join(",")+"]",this.assign(e,l),i(l);break;case sr.ObjectExpression:u=[],w(t.properties,(function(t){f.recurse(t.value,f.nextId(),n,(function(e){u.push(f.escape(t.key.type===sr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),l="{"+u.join(",")+"}",this.assign(e,l),i(l);break;case sr.ThisExpression:this.assign(e,"s"),i("s");break;case sr.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var s=this;return function(){s.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(I(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(q(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Jn("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},vr.prototype={compile:function(t,e){var n,r,i=this,o=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,lr(o,i.$filter),(n=pr(o))&&(r=this.recurse(n));var s,a=fr(o.body);a&&(s=[],w(a,(function(t,e){var n=i.recurse(t);t.input=n,s.push(n),t.watchId=e})));var c=[];w(o.body,(function(t){c.push(i.recurse(t.expression))}));var u=0===o.body.length?function(){}:1===o.body.length?c[0]:function(t,e){var n;return w(c,(function(r){n=r(t,e)})),n};return r&&(u.assign=function(t,e,n){return r(t,n,e)}),s&&(u.inputs=s),u.literal=dr(o),u.constant=gr(o),u},recurse:function(t,e,r){var i,o,s,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case sr.Literal:return this.value(t.value,e);case sr.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case sr.BinaryExpression:case sr.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case sr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case sr.Identifier:return Yn(t.name,a.expression),a.identifier(t.name,a.expensiveChecks||yr(t.name),e,r,a.expression);case sr.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Yn(t.property.name,a.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,r,a.expression):this.nonComputedMember(i,o,a.expensiveChecks,e,r,a.expression);case sr.CallExpression:return s=[],w(t.arguments,(function(t){s.push(a.recurse(t))})),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,r,i,a){for(var c=[],u=0;u":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>e(r,i,o,s);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)<=e(r,i,o,s);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)>=e(r,i,o,s);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)&&e(r,i,o,s);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,o,s){var a=t(r,i,o,s)||e(r,i,o,s);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,o,s,a){var c=t(i,o,s,a)?e(i,o,s,a):n(i,o,s,a);return r?{value:c}:c}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(s,a,c,u){var l=a&&t in a?a:s;i&&1!==i&&l&&!l[t]&&(l[t]={});var f=l?l[t]:n;return e&&Kn(f,o),r?{context:l,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,s,a,c){var u,l,f=t(o,s,a,c);return null!=f&&(Yn(u=Gn(u=e(o,s,a,c)),i),r&&1!==r&&(nr(f),f&&!f[u]&&(f[u]={})),Kn(l=f[u],i)),n?{context:f,name:u,value:l}:l}},nonComputedMember:function(t,e,r,i,o,s){return function(a,c,u,l){var f=t(a,c,u,l);o&&1!==o&&(nr(f),f&&!f[e]&&(f[e]={}));var h=null!=f?f[e]:n;return(r||yr(e))&&Kn(h,s),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var $r=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new sr(this.lexer),this.astCompiler=n.csp?new vr(this.ast,e):new mr(this.ast,e)};function yr(t){return"constructor"==t}$r.prototype={constructor:$r,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var br=Object.prototype.valueOf;function wr(t){return L(t.valueOf)?t.valueOf():br.call(t)}function xr(){var t=Dt(),e=Dt();this.$get=["$filter",function(r){var i=st().noUnsafeEval,o={csp:i,expensiveChecks:!1},s={csp:i,expensiveChecks:!0},a=!1;return c.$$runningExpensiveChecks=function(){return a},c;function c(n,i,c){var l,m,v;switch(c=c||a,typeof n){case"string":n=n.trim();var $=c?e:t;if(!(l=$[v=n])){":"===n.charAt(0)&&":"===n.charAt(1)&&(m=!0,n=n.substring(2));var y=c?s:o,b=new or(y);(l=new $r(b,r,y).parse(n)).constant?l.$$watchDelegate=d:m?l.$$watchDelegate=l.literal?p:h:l.inputs&&(l.$$watchDelegate=f),c&&(l=u(l)),$[v]=l}return g(l,i);case"function":return g(n,i);default:return g(M,i)}}function u(t){if(!t)return t;n.$$watchDelegate=t.$$watchDelegate,n.assign=u(t.assign),n.constant=t.constant,n.literal=t.literal;for(var e=0;t.inputs&&e0&&a(this.$$state),r.promise},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return l(e,!0,t)}),(function(e){return l(e,!1,t)}),e)}}),A(c.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(i("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=function(t,e,n){var r=!1;function i(e){return function(n){r||(r=!0,e.call(t,n))}}return[i(e),i(n)]}(this,this.$$resolve,this.$$reject);try{(_(t)||L(t))&&(n=t&&t.then),L(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,a(this.promise.$$state))}catch(t){r[1](t),e(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t((function(){for(var t,i,o=0,s=r.length;o=0&&y(s,-1),n=null}},$watchGroup:function(t,e){var n=new Array(t.length),r=new Array(t.length),i=[],o=this,s=!1,a=!0;if(!t.length){var c=!0;return o.$evalAsync((function(){c&&e(r,r,o)})),function(){c=!1}}if(1===t.length)return this.$watch(t[0],(function(t,i,o){r[0]=t,n[0]=i,e(r,t===i?r:n,o)}));function u(){s=!1,a?(a=!1,e(r,r,o)):e(r,n,o)}return w(t,(function(t,e){var a=o.$watch(t,(function(t,i){r[e]=t,n[e]=i,s||(s=!0,o.$evalAsync(u))}));i.push(a)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){g.$stateful=!0;var n,r,i,o=this,c=e.length>1,u=0,l=a(t,g),f=[],h={},p=!0,d=0;function g(t){var e,i,o,a;if(!R(n=t)){if(_(n))if(b(n)){r!==f&&(d=(r=f).length=0,u++),e=n.length,d!==e&&(u++,r.length=d=e);for(var c=0;ce)for(i in u++,r)s.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(l,(function(){if(p?(p=!1,e(n,n,o)):e(n,i,o),c)if(_(n))if(b(n)){i=new Array(n.length);for(var t=0;t-1)throw Tr("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Q(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(H(t))return new RegExp("^"+t.source+"$");throw Tr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function jr(){this.SCE_CONTEXTS=Nr;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Mr(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Mr(t)),e},this.$get=["$injector",function(n){var r=function(t){throw Tr("unsafe","Attempting to use an unsafe value in a safe context.")};function i(t,e){return"self"===t?Vr(e):!!t.exec(e.href)}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(r=n.get("$sanitize"));var s=o(),a={};return a[Nr.HTML]=o(s),a[Nr.CSS]=o(s),a[Nr.URL]=o(s),a[Nr.JS]=o(s),a[Nr.RESOURCE_URL]=o(a[Nr.URL]),{trustAs:function(t,e){var n=a.hasOwnProperty(t)?a[t]:null;if(!n)throw Tr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||R(e)||""===e)return e;if("string"!=typeof e)throw Tr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||R(o)||""===o)return o;var s=a.hasOwnProperty(n)?a[n]:null;if(s&&o instanceof s)return o.$$unwrapTrustedValue();if(n===Nr.RESOURCE_URL){if(function(n){var r,o,s=qr(n.toString()),a=!1;for(r=0,o=t.length;r to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=it(Nr);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=j),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,(function(e){return r.getTrusted(t,e)}))};var i=r.parseAs,s=r.getTrusted,a=r.trustAs;return w(Nr,(function(t,e){var n=o(e);r[Jt("parse_as_"+n)]=function(e){return i(t,e)},r[Jt("get_trusted_"+n)]=function(e){return s(t,e)},r[Jt("trust_as_"+n)]=function(e){return a(t,e)}})),r}]}function Pr(){this.$get=["$window","$document",function(t,e){var n,r,i={},s=T((/android (\d+)/.exec(o((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),u=e[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,f=u.body&&u.body.style,h=!1,p=!1;if(f){for(var d in f)if(r=l.exec(d)){n=(n=r[0]).substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in f&&"webkit"),h=!(!("transition"in f)&&!(n+"Transition"in f)),p=!(!("animation"in f)&&!(n+"Animation"in f)),!s||h&&p||(h=I(f.webkitTransition),p=I(f.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||s<4||a),hasEvent:function(t){if("input"===t&&c<=11)return!1;if(R(i[t])){var e=u.createElement("div");i[t]="on"+t in e}return i[t]},csp:st(),vendorPrefix:n,transitions:h,animations:p,android:s}}]}function Rr(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,s){i.totalPendingRequests++,I(o)&&!R(t.get(o))||(o=r.getTrustedResourceUrl(o));var a=e.defaults&&e.defaults.transformResponse;U(a)?a=a.filter((function(t){return t!==bn})):a===bn&&(a=null);var c={cache:t,transformResponse:a};return e.get(o,c).finally((function(){i.totalPendingRequests--})).then((function(e){return t.put(o,e.data),e.data}),(function(t){if(!s)throw Ze("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}))}return i.totalPendingRequests=0,i}]}function Dr(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return w(r,(function(t){var r=$.element(t).data("$binding");r&&w(r,(function(r){n?new RegExp("(^|\\s)"+Q(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!=r.indexOf(e)&&i.push(t)}))})),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(c=i(o.substring(0,a)),R(n[c])&&(n[c]=i(o.substring(a+1))));return n}}function Hr(){this.$get=Lr}function zr(t){var e="Filter";function n(r,i){if(_(r)){var o={};return w(r,(function(t,e){o[e]=n(e,t)})),o}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("currency",Yr),n("date",ai),n("filter",Wr),n("json",ci),n("limitTo",fi),n("lowercase",ui),n("number",Gr),n("orderBy",hi),n("uppercase",li)}function Wr(){return function(t,e,n){if(!b(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var i,s;switch(Jr(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n){var r=_(t)&&"$"in t;return!0===e?e=ot:L(e)||(e=function(t,e){return!(R(t)||(null===t||null===e?t!==e:_(e)||_(t)&&!P(t)||(t=o(""+t),e=o(""+e),-1===t.indexOf(e))))}),function(i){return r&&!_(i)?Xr(i,t.$,e,!1):Xr(i,t,e,n)}}(e,n,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function Xr(t,e,n,r,i){var o=Jr(t),s=Jr(e);if("string"===s&&"!"===e.charAt(0))return!Xr(t,e.substring(1),n,r);if(U(t))return t.some((function(t){return Xr(t,e,n,r)}));switch(o){case"object":var a;if(r){for(a in t)if("$"!==a.charAt(0)&&Xr(t[a],e,n,!0))return!0;return!i&&Xr(t,e,n,!1)}if("object"===s){for(a in e){var c=e[a];if(!L(c)&&!R(c)){var u="$"===a;if(!Xr(u?t:t[a],c,n,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Jr(t){return null===t?"null":typeof t}function Yr(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return R(n)&&(n=e.CURRENCY_SYM),R(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Kr(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Gr(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Kr(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Kr(t,e,n,r,i){if(!I(t)&&!q(t)||isNaN(t))return"";var o,s=!isFinite(t),a=!1,c=Math.abs(t)+"",u="";if(s)u="∞";else{!function(t,e,n,r){var i=t.d,o=i.length-t.i,s=(e=R(e)?Math.min(Math.max(n,o),r):+e)+t.i,a=i[s];if(s>0)i.splice(s);else{t.i=1,i.length=s=e+1;for(var c=0;c=5&&i[s-1]++;o-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;"0"==t.charAt(r);r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;"0"==t.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{d:e,e:s,i:n}}(c),i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,h=o.e,p=[];for(a=l.reduce((function(t,e){return t&&!e}),!0);f<0;)l.unshift(0),f++;f>0?p=l.splice(f,l.length):(p=l,l=[0]);var d=[];for(l.length>=e.lgSize&&d.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)d.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&d.unshift(l.join("")),u=d.join(n),p.length&&(u+=r+p.join("")),h&&(u+="e+"+h)}return t<0&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function Zr(t,e,n){var r="";for(t<0&&(r="-",t=-t),t=""+t;t.length0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Zr(o,e,r)}}function ti(t,e){return function(n,r){var i=n["get"+t]();return r[a(e?"SHORT"+t:t)][i]}}function ei(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function ni(t){return function(e){var n,r=ei(e.getFullYear()),i=(n=e,+new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))-+r);return Zr(1+Math.round(i/6048e5),t)}}function ri(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}Lr.$inject=["$document"],zr.$inject=["$provide"],Yr.$inject=["$locale"],Gr.$inject=["$locale"];var ii={yyyy:Qr("FullYear",4),yy:Qr("FullYear",2,0,!0),y:Qr("FullYear",1),MMMM:ti("Month"),MMM:ti("Month",!0),MM:Qr("Month",2,1),M:Qr("Month",1,1),dd:Qr("Date",2),d:Qr("Date",1),HH:Qr("Hours",2),H:Qr("Hours",1),hh:Qr("Hours",2,-12),h:Qr("Hours",1,-12),mm:Qr("Minutes",2),m:Qr("Minutes",1),ss:Qr("Seconds",2),s:Qr("Seconds",1),sss:Qr("Milliseconds",3),EEEE:ti("Day"),EEE:ti("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=-1*n;return(r>=0?"+":"")+(Zr(Math[r>0?"floor":"ceil"](r/60),2)+Zr(Math.abs(r%60),2))},ww:ni(2),w:ni(1),G:ri,GG:ri,GGG:ri,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},oi=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,si=/^\-?\d+$/;function ai(t){var e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,s,a="",c=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,I(n)&&(n=si.test(n)?T(n):function(t){var n;if(n=t.match(e)){var r=new Date(0),i=0,o=0,s=n[8]?r.setUTCFullYear:r.setFullYear,a=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=T(n[9]+n[10]),o=T(n[9]+n[11])),s.call(r,T(n[1]),T(n[2])-1,T(n[3]));var c=T(n[4]||0)-i,u=T(n[5]||0)-o,l=T(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,c,u,l,f),r}return t}(n)),q(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;r;)(s=oi.exec(r))?r=(c=ct(c,s,1)).pop():(c.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=gt(i,u),n=mt(n,i,!0)),w(c,(function(e){a+=(o=ii[e])?o(n,t.DATETIME_FORMATS,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}}function ci(){return function(t,e){return R(e)&&(e=2),ht(t,e)}}ai.$inject=["$locale"];var ui=B(o),li=B(a);function fi(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):T(e),isNaN(e)?t:(q(t)&&(t=t.toString()),U(t)||I(t)?(n=(n=!n||isNaN(n)?0:T(n))<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function hi(t){return function(r,i,o){if(!b(r))return r;U(i)||(i=[i]),0===i.length&&(i=["+"]);var s=function(e,n){return n=n?-1:1,e.map((function(e){var r=1,i=j;if(L(e))i=e;else if(I(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e)).constant)){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}}))}(i,o);s.push({get:function(){return{}},descending:o?-1:1});var a=Array.prototype.map.call(r,(function(t,n){return{value:t,predicateValues:s.map((function(r){return function(t,n){var r=typeof t;return null===t?(r="string",t="null"):"string"===r?t=t.toLowerCase():"object"===r&&(t=function(t,n){return"function"==typeof t.valueOf&&e(t=t.valueOf())||P(t)&&e(t=t.toString())?t:n}(t,n)),{value:t,type:r}}(r.get(t),n)}))}}));return a.sort((function(t,e){for(var r=0,i=0,o=s.length;i=a},r.$observe("min",(function(t){D(t)&&!q(t)&&(t=parseFloat(t,10)),a=q(t)&&!isNaN(t)?t:n,i.$validate()})));(D(r.max)||r.ngMax)&&(i.$validators.max=function(t){return i.$isEmpty(t)||R(c)||t<=c},r.$observe("max",(function(t){D(t)&&!q(t)&&(t=parseFloat(t,10)),c=q(t)&&!isNaN(t)?t:n,i.$validate()})))},url:function(t,e,n,r,i,o){Pi(0,e,n,r,i,o),Bi(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ci.test(n)}},email:function(t,e,n,r,i,o){Pi(0,e,n,r,i,o),Bi(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||ki.test(n)}},radio:function(t,e,n,r){R(n.name)&&e.attr("name",k()),e.on("click",(function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)})),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(t,e,n,r,i,o,s,a){var c=Fi(a,t,"ngTrueValue",n.ngTrueValue,!0),u=Fi(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((function(t){return ot(t,c)})),r.$parsers.push((function(t){return t?c:u}))},hidden:M,button:M,submit:M,reset:M,file:M};function Bi(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function Pi(t,e,n,r,i,s){var a,c=o(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",(function(t){u=!0})),e.on("compositionend",(function(){u=!1,l()}))}var l=function(t){if(a&&(s.defer.cancel(a),a=null),!u){var i=e.val(),o=t&&t.type;"password"===c||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(i.hasEvent("input"))e.on("input",l);else{var f=function(t,e,n){a||(a=s.defer((function(){a=null,e&&e.value===n||l(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15=p},a.$observe("min",(function(t){p=v(t),c.$validate()}))),(D(a.max)||a.ngMax)&&(c.$validators.max=function(t){return!m(t)||R(d)||r(t)<=d},a.$observe("max",(function(t){d=v(t),c.$validate()})))}}function _i(t,e,r,i){var o=e[0];(i.$$hasNativeValidators=_(o.validity))&&i.$parsers.push((function(t){var r=e.prop("validity")||{};return r.badInput&&!r.typeMismatch?n:t}))}function Fi(t,e,n,r,i){var o;if(D(r)){if(!(o=t(r)).constant)throw fo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var Ii=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,s,a,c){c[0]&&(ji[o(a.type)]||ji.text)(i,s,a,c[0],e,t,n,r)}}}}],qi=/^(true|false|\d+)$/,Vi=function(){return{restrict:"A",priority:100,compile:function(t,e){return qi.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,(function(t){n.$set("value",t)}))}}}},Ui=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,(function(t){n.textContent=R(t)?"":t}))}}}}],Li=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(t){r.textContent=R(t)?"":t}))}}}}],Hi=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),s=e(i.ngBindHtml,(function(e){return t.valueOf(e)}));return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(s,(function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")}))}}}}],zi=B({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Wi(t,e){return t="ngClass"+t,["$animate",function(n){return{restrict:"AC",link:function(o,s,a){var c;function u(t){var e=l(t,1);a.$addClass(e)}function l(t,e){var n=s.data("$classCounts")||Dt(),r=[];return w(t,(function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))})),s.data("$classCounts",n),r.join(" ")}function f(t){if(!0===e||o.$index%2===e){var a=i(t||[]);c?ot(t,c)||function(t,e){var i=r(e,t),o=r(t,e);i=l(i,1),o=l(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}(i(c),a):u(a)}c=U(t)?t.map((function(t){return it(t)})):it(t)}o.$watch(a[t],f,!0),a.$observe("class",(function(e){f(o.$eval(a[t]))})),"ngClass"!==t&&o.$watch("$index",(function(n,r){var s=1&n;if(s!==(1&r)){var c=i(o.$eval(a[t]));s===e?u(c):function(t){var e=l(t,-1);a.$removeClass(e)}(c)}}))}};function r(t,e){var n=[];t:for(var r=0;r0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,vt(e));s=t||n,o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||R(s)||s.test(e)}}}}},Uo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",(function(t){var e=T(t);i=isNaN(e)?-1:e,r.$validate()})),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},Lo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",(function(t){i=T(t)||0,r.$validate()})),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load angular more than once."):(function(){var e;if(!Nt){var r=at();(l=R(r)?t.jQuery:r?t[r]:n)&&l.fn.on?(u=l,A(l.fn,{scope:be.scope,isolateScope:be.isolateScope,controller:be.controller,injector:be.injector,inheritedData:be.inheritedData}),e=l.cleanData,l.cleanData=function(t){var n;if(Tt)Tt=!1;else for(var r,i=0;null!=(r=t[i]);i++)(n=l._data(r,"events"))&&n.$destroy&&l(r).triggerHandler("$destroy");e(t)}):u=oe,$.element=u,Nt=!0}}(),function(e){A(e,{bootstrap:kt,copy:rt,extend:A,merge:O,equals:ot,element:u,forEach:w,injector:De,noop:M,bind:lt,toJson:ht,fromJson:pt,identity:j,isUndefined:R,isDefined:D,isString:I,isFunction:L,isObject:_,isNumber:q,isElement:tt,isArray:U,version:It,isDate:V,lowercase:o,uppercase:a,callbacks:{counter:0},getTestability:Et,$$minErr:r,$$csp:st,reloadWithDebugInfo:St}),(f=function(t){var e=r("$injector"),n=r("ng");function i(t,e,n){return t[e]||(t[e]=n())}var o=i(t,"angular",Object);return o.$$minErr=o.$$minErr||r,i(o,"module",(function(){var t={};return function(r,o,s){return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(r),o&&t.hasOwnProperty(r)&&(t[r]=null),i(t,r,(function(){if(!o)throw e("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=[],n=[],i=[],a=u("$injector","invoke","push",n),c={_invokeQueue:t,_configBlocks:n,_runBlocks:i,requires:o,name:r,provider:l("$provide","provider"),factory:l("$provide","factory"),service:l("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:l("$provide","decorator"),animation:l("$animateProvider","register"),filter:l("$filterProvider","register"),controller:l("$controllerProvider","register"),directive:l("$compileProvider","directive"),config:a,run:function(t){return i.push(t),this}};return s&&a(s),c;function u(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),c}}function l(e,n){return function(i,o){return o&&L(o)&&(o.$$moduleName=r),t.push([e,n,arguments]),c}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Or}),t.provider("$compile",Qe).directive({a:di,input:Ii,textarea:Ii,form:bi,script:Po,select:_o,style:Io,option:Fo,ngBind:Ui,ngBindHtml:Hi,ngBindTemplate:Li,ngClass:Xi,ngClassEven:Yi,ngClassOdd:Ji,ngCloak:Gi,ngController:Ki,ngForm:wi,ngHide:Oo,ngIf:to,ngInclude:eo,ngInit:ro,ngNonBindable:yo,ngPluralize:Co,ngRepeat:ko,ngShow:Ao,ngStyle:To,ngSwitch:No,ngSwitchWhen:Mo,ngSwitchDefault:jo,ngOptions:xo,ngTransclude:Bo,ngModel:po,ngList:io,ngChange:zi,pattern:Vo,ngPattern:Vo,required:qo,ngRequired:qo,minlength:Lo,ngMinlength:Lo,maxlength:Uo,ngMaxlength:Uo,ngValue:Vi,ngModelOptions:mo}).directive({ngInclude:no}).directive(gi).directive(Zi),t.provider({$anchorScroll:_e,$animate:He,$animateCss:Xe,$$animateJs:Ue,$$animateQueue:Le,$$AnimateRunner:We,$$animateAsyncRun:ze,$browser:Ye,$cacheFactory:Ge,$controller:an,$document:cn,$exceptionHandler:un,$filter:zr,$$forceReflow:ln,$interpolate:Tn,$interval:Nn,$http:Sn,$httpParamSerializer:$n,$httpParamSerializerJQLike:yn,$httpBackend:An,$xhrFactory:En,$location:Wn,$log:Xn,$parse:xr,$rootScope:Ar,$q:Cr,$$q:kr,$sce:Br,$sceDelegate:jr,$sniffer:Pr,$templateCache:Ke,$templateRequest:Rr,$$testability:Dr,$timeout:_r,$window:Ur,$$rAF:Er,$$jqLite:Ae,$$HashMap:Ne,$$cookieReader:Hr})}])}($),$.module("ngLocale",[],["$provide",function(t){t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var r=0|t,i=function(t,e){var r=e;n===r&&(r=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var i=Math.pow(10,r);return{v:r,f:(t*i|0)%i}}(t,e);return 1==r&&0==i.v?"one":"other"}})}]),u(e).ready((function(){!function(t,e){var n,r,i={};w(Ct,(function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))})),w(Ct,(function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))})),n&&(i.strictDi=null!==function(t,e){var n,r,i=Ct.length;for(r=0;r@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}')},4027:(t,e,n)=>{n(7808),t.exports=angular},696:t=>{t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s{function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},8328:(t,e)=>{!function(t){"use strict";e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;n>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(e){var n,r,i,o,s,a=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(n=0;n>4,f[u++]=(15&i)<<4|o>>2,f[u++]=(3&o)<<6|63&s;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},3055:t=>{var e=void 0!==e?e:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),i=e&&e.prototype.append&&e.prototype.getBlob;function o(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function s(t,n){n=n||{};var r=new e;return o(t).forEach((function(t){r.append(t)})),n.type?r.getBlob(n.type):r.getBlob()}function a(t,e){return new Blob(o(t),e||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,a.prototype=Blob.prototype),t.exports=n?r?Blob:a:i?s:void 0},2150:t=>{var e=[].slice;t.exports=function(t,n){if("string"==typeof n&&(n=t[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=e.call(arguments,2);return function(){return n.apply(t,r.concat(e.call(arguments)))}}},7582:t=>{function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i{t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},5130:(t,e,n)=>{function r(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=n(4161)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())},4161:(t,e,n)=>{function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a{t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},4065:(t,e,n)=>{t.exports=n(4980),t.exports.parser=n(820)},4980:(t,e,n)=>{var r=n(8113),i=n(7582),o=n(5130)("engine.io-client:socket"),s=n(2543),a=n(820),c=n(4243),u=n(4355);function l(t,e){if(!(this instanceof l))return new l(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=l,l.priorWebsocketSuccess=!1,i(l.prototype),l.protocol=a.protocol,l.Socket=l,l.Transport=n(5344),l.transports=n(8113),l.parser=n(820),l.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var t;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},l.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},l.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;l.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),h(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,h(),e.close(),e=null)}function a(n){var i=new Error("probe error: "+n);i.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function c(){a("transport closed")}function u(){a("socket closed")}function f(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function h(){e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",c),r.removeListener("close",u),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",c),this.once("close",u),this.once("upgrading",f),e.open()},l.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t{var r=n(820),i=n(7582);function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,i(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=r.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},8113:(t,e,n)=>{var r=n(6891),i=n(1962),o=n(8320),s=n(8479);e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},e.websocket=s},8320:(t,e,n)=>{var r=n(5869),i=n(9238),o=n(1438);t.exports=l;var s,a=/\n/g,c=/\\n/g;function u(){}function l(t){r.call(this,t),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;var e=this;s.push((function(t){e.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){e.script&&(e.script.onerror=u)}),!1)}i(l,r),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},l.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},l.prototype.doWrite=function(t,e){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=s,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function u(){l(),e()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t=''),a.close(),s=a.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var c=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return s.removeChild(t),i}},u=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(u,"___")};e.set=c((function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)})),e.get=c((function(t,n,r){n=l(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i})),e.remove=c((function(t,e){e=l(e),t.removeAttribute(e),t.save(o)})),e.clear=c((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)})),e.getAll=function(t){var n={};return e.forEach((function(t,e){n[t]=e})),n},e.forEach=c((function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))}))}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e})?r.apply(e,[]):r)||(t.exports=i)},1396:t=>{t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r{"use strict";var e,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},i=0,o=0;function s(t){var e="";do{e=n[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function a(){var t=s(+new Date);return t!==e?(i=0,e=t):t+"."+s(i++)}for(;o<64;o++)r[n[o]]=o;a.encode=s,a.decode=function(t){var e=0;for(o=0;o{t.exports=window.angular},7122:(t,e,n)=>{var r=n(9662);r.directive("icon",n(6566)),r.directive("linkTo",n(7120)),r.directive("switch",n(5411)),r.directive("newTab",n(7233))},6566:t=>{t.exports=function(){return{scope:{icon:"@"},restrict:"E",replace:!0,template:'',link:function(t,e,n){return t.iconName="#svg-"+t.icon,t}}}},7120:t=>{t.exports=function(){return{restrict:"E",replace:!1,transclude:!0,scope:{path:"@"},template:"as",controller:["$scope","$location","$injector",function(t,e,n){var r=n.get("pagesConfig"),i=n.get("Pages");t.navi=function(t){var n=r[t];i.enable(n),e.path(t)}}]}}},7233:t=>{t.exports=function(){return{scope:{url:"@",mode:"@"},restrict:"E",replace:!0,template:' New Tab '}}},5411:t=>{t.exports=function(){return{scope:{toggle:"&",item:"=",switchid:"@",title:"@",tagline:"@",active:"=",prop:"@"},restrict:"E",replace:!0,transclude:!0,templateUrl:"bs-switch.html",controllerAs:"ctrl",controller:["$scope",function(t){this.item=t.item}]}}},6709:(t,e,n)=>{var r=n(9662),i=n(4288);r.filter("ucfirst",(function(){return i.ucfirst})).filter("localRootUrl",(function(){return i.localRootUrl})).filter("localUrl",(function(){return i.localRootUrl})).filter("orderObjectBy",(function(){return i.orderObjectBy}))},9051:(t,e,n)=>{n(9662).controller("MainController",["$scope","$rootScope","$location","$injector",function(t,e,n,r){var i=this;i.options=!1,i.browsers=[],i.socketId="";var o=r.get("pagesConfig"),s=r.get("Pages"),a=r.get("Socket"),c=r.get("Clients");i.ui={menu:o,sectionMenu:!1,disconnected:!1},i.setActiveSection=function(t){s.enable(t),n.path(t.path),i.ui.sectionMenu=!1},i.reloadAll=function(){c.reloadAll(),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reload All Browsers ✔"})},i.scrollAllTo=function(){c.scrollAllTo(0),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Scroll all browsers to Y=0 ✔"})},i.sendAllTo=function(t){c.sendAllTo(t),e.$emit("notify:flash",{heading:"Instruction sent:",message:"Reset all Browsers to /"})},i.toggleMenu=function(){i.ui.sectionMenu=!i.ui.sectionMenu},i.socketEvents={connection:function(t){i.update(t)},disconnect:function(){i.ui.disconnected=!0}},i.update=function(t){i.options=function(t){return t.displayUrl=!!(e=t.urls)&&(e.external||e.local),t;var e}(t),i.ui.disconnected=!1,s.transform(o.overview,(function(t){return t}))},i.setActiveSection(s.current()),a.options().then(i.socketEvents.connection),e.$on("ui:disconnect",i.socketEvents.disconnect),e.$on("ui:connection",(function(e,n){i.socketEvents.connection(n),t.$digest()}))}])},9662:t=>{t.exports=window.angular.module("BrowserSync")},6987:(t,e,n)=>{n(8680).module("bsClients",["bsSocket"]).service("Clients",["Socket",function(t){return{reloadAll:function(){t.clientEvent("browser:reload")},sendAllTo:function(e){t.emit("ui",{namespace:"history",event:"sendAllTo",data:{path:e}})},scrollAllTo:function(){t.clientEvent("scroll",{position:{raw:0,proportional:0},override:!0})},highlight:function(e){t.emit("ui:highlight",e)}}}])},1252:(t,e,n)=>{function r(t,e,n){t._disconnected=!1,t.ui={visible:!1,heading:"Browsersync",message:"Disconnected"},t.socketEvents={connection:function(){t._disconnected&&n.location.reload(!0),t.ui.visible=!1,t.$digest()},disconnect:function(){t._disconnected=!0,t.ui.visible=!0,t.$digest()}},e.$on("ui:connection",t.socketEvents.connection),e.$on("ui:disconnect",t.socketEvents.disconnect)}n(8680).module("bsDisconnect",[]).directive("disconnectElem",(function(){return{restrict:"E",scope:{},template:'
\n

\n

{{ui.heading}} {{ui.message}}

\n

Possible reasons are:

\n
    \n
  • 1. Your process was exited by another tool
  • \n
\n

You should check your terminal window to see what happened.
(Or simply try reloading this page.)

\n
',controller:["$scope","$rootScope","$window",r]}}))},7488:(t,e,n)=>{n(8680).module("bsHistory",["bsSocket"]).service("History",["Socket",function(t){var e=[],n=[];return t.on("ui:history:update",(function(t){n.forEach((function(e){e(t)}))})),{visited:e,updateHistory:function(t){e=t},get:function(){return t.getData("visited")},remove:function(e){t.emit("ui",{namespace:"history",event:"remove",data:e})},clear:function(){t.emit("ui",{namespace:"history",event:"clear"})},on:function(t,e){n.push(e)},off:function(t){var e=n.indexOf(t);e>-1&&(n=n.splice(e,1))}}}])},8704:(t,e,n)=>{function r(t,e){var n="info",r="Browsersync:";t.ui={status:n,heading:r,message:"Welcome to Browsersync"},t.show=function(e,i){i=i||{},t._timer&&clearTimeout(t._timer),t._timer=window.setTimeout(t.reset,i.timeout||2e3),t.ui.visible=!0,t.ui.status=i.status||n,t.ui.heading=i.heading||r,t.ui.message=i.message||r},t.reset=function(){t.ui.visible=!1,t.$digest()},e.$on("notify:flash",t.show)}n(8680).module("bsNotify",[]).directive("notifyElem",(function(){return{restrict:"E",scope:{},template:'
\n

{{ui.heading}} {{ui.message}}

\n
',controller:["$scope","$rootScope",r]}}))},1891:(t,e,n)=>{var r=n(8680),i=n(7768),o=window.___browserSync___.socketConfig,s=window.___browserSync___.socketUrl,a=i(s,o);r.module("bsSocket",[]).service("Socket",["$q","$rootScope",function(t,e){var n,r=t.defer();a.on("connection",(function(t){n=t.session,e.$emit("ui:connection",t),r.resolve(t,this),""===window.name?window.name=JSON.stringify({id:i.id}):(JSON.parse(window.name).id,i.id)})),a.on("disconnect",(function(){e.$emit("ui:disconnect")}));var o={on:function(t,e){a.on(t,e)},off:function(t,e){a.off(t,e)},removeEvent:function(t,e){a.removeListener(t,e)},emit:function(t,e){a.emit(t,e||{})},clientEvent:function(t,e){a.emit("ui:client:proxy",{event:t,data:e})},options:function(){return r.promise},getData:function(e){var n=t.defer();return a.on("ui:receive:"+e,(function(t){n.resolve(t)})),a.emit("ui:get:"+e),n.promise},uiEvent:function(t){a.emit("ui",t)},newSession:function(){}};return Object.defineProperty(o,"sessionId",{get:function(){return n}}),o}])},5949:(t,e,n)=>{var r=n(8680),i=n(778),o=n(7655);function s(t){var e=i.get("bs",{});Object.keys(e).length||i.set("bs",{}),this.ns=t,this.get=function(e){var n=i.get("bs",{});return Object.keys(n).length||i.set("bs",{}),o.get(n,[t].concat(e).join("."))},this.set=function(e,n){var r=i.get("bs",{});Object.keys(r).length||i.set("bs",{}),r[t]||(r[t]={}),r[t][e]=n,i.set("bs",r)},this.remove=function(e){var n=i.get("bs",{});Object.keys(n).length||i.set("bs",{}),n[t]||(n[t]={}),n[t][e]&&delete n[t][e],i.set("bs",n)}}r.module("bsStore",[]).service("Store",["$q","$rootScope",function(){return{create:function(t){return new s(t)}}}])},7607:(t,e,n)=>{n(9662).factory("Options",["Socket",function(t){return{all:function(){return t.getData("options")}}}])},2323:(t,e,n)=>{n(9662).service("Pages",["pagesConfig","$location",function(t,e){return{enable:function(e){return angular.forEach(t,(function(t){t.active=!1})),e.active=!0,t},transform:function(t,e){if("function"==typeof e)return e(t);throw new TypeError("Noooo")},current:function(){return"/"===e.path()?t.overview:(angular.forEach(t,(function(t){t.path===e.path()&&(n=t)})),n);var n}}}])},4288:t=>{t.exports={ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},localRootUrl:function(t,e){return[e,"://",window.location.hostname,":",t].join("")},localUrl:function(t,e,n){return"snippet"===n?t:["//",window.location.hostname,":",e,t].join("")},orderObjectBy:function(t,e,n){var r=[];return Object.keys(t).forEach((function(e){r.push(t[e])})),r.sort((function(t,n){return t[e]>n[e]?1:-1})),n&&r.reverse(),r}}},418:()=>{}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n(4027),n(2339),n(9326),n(5746),window.angular.module("BrowserSync",["bsHistory","bsClients","bsDisconnect","bsNotify","bsSocket","bsStore","ngRoute","ngTouch","ngSanitize"]).config(["$locationProvider",function(t){t.html5Mode({enabled:!0,requireBase:!1})}]),n(1252),n(8704),n(7488),n(6987),n(1891),n(2323),n(7607),n(5949),n(9051),n(6709),n(7122)})(); //# sourceMappingURL=app.js.map