shell bypass 403
/*! 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(){$(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",$),r.$on("$locationChangeSuccess",m),d;function $(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<s;++o){var a=n[o-1],c=i[o];a&&c&&(r[a.name]=c)}return r}(o.path(),n))&&((a=t(n,{params:e.extend({},o.search(),s),pathParams:s})).$$route=n)})),f=a||n.null&&t(n.null,{params:{},pathParams:{}}),(h=f&&c&&f.$$route===c.$$route&&e.equals(f.pathParams,c.pathParams)&&!f.reloadOnSearch&&!p)||!c&&!f||r.$broadcast("$routeChangeStart",f,c).defaultPrevented&&i&&i.preventDefault()}function m(){var t=d.current,n=f;h?(t.params=n.params,e.copy(t.params,s),r.$broadcast("$routeUpdate",t)):(n||t)&&(p=!1,d.current=n,n&&n.redirectTo&&(e.isString(n.redirectTo)?o.path(v(n.redirectTo,n.params)).search(n.params).replace():o.url(n.redirectTo(n.pathParams,o.path(),o.search())).replace()),a.when(n).then((function(){if(n){var t,r,i=e.extend({},n.resolve);return e.forEach(i,(function(t,n){i[n]=e.isString(t)?c.get(t):c.invoke(t,null,null,n)})),e.isDefined(t=n.template)?e.isFunction(t)&&(t=t(n.params)):e.isDefined(r=n.templateUrl)&&(e.isFunction(r)&&(r=r(n.params)),e.isDefined(r)&&(n.loadedTemplateUrl=l.valueOf(r),t=u(r))),e.isDefined(t)&&(i.$template=t),a.all(i)}})).then((function(i){n==d.current&&(n&&(n.locals=i,e.copy(n.params,s)),r.$broadcast("$routeChangeSuccess",n,t))}),(function(e){n==d.current&&r.$broadcast("$routeChangeError",n,t,e)})))}function v(t,n){var r=[];return e.forEach((t||"").split(":"),(function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}})),r.join("")}}]})),i=e.$$minErr("ngRoute");function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,s,a,c){var u,l,f,h=s.autoscroll,p=s.onload||"";function d(){f&&(r.cancel(f),f=null),u&&(u.$destroy(),u=null),l&&((f=r.leave(l)).then((function(){f=null})),l=null)}function $(){var s=t.current&&t.current.locals,a=s&&s.$template;if(e.isDefined(a)){var f=i.$new(),$=t.current,m=c(f,(function(t){r.enter(t,null,l||o).then((function(){!e.isDefined(h)||h&&!i.$eval(h)||n()})),d()}));l=m,(u=$.scope=f).$emit("$viewContentLoaded"),u.$eval(p)}else d()}i.$on("$routeChangeSuccess",$),$()}}}function s(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,s=o.locals;i.html(s.$template);var a=t(i.contents());if(o.controller){s.$scope=r;var c=e(o.controller,s);o.controllerAs&&(r[o.controllerAs]=c),i.data("$ngControllerController",c),i.children().data("$ngControllerController",c)}a(r)}}}r.provider("$routeParams",(function(){this.$get=function(){return{}}})),r.directive("ngView",o),r.directive("ngView",s),o.$inject=["$route","$anchorScroll","$animate"],s.$inject=["$compile","$controller","$route"]}(window,window.angular)},2339:(t,e,n)=>{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=/^</,c=/^<\//,u=/<!--(.*?)-->/g,l=/<!DOCTYPE([^>]*?)>/i,f=/<!\[CDATA\[(.*?)]]>/g,h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~| |!])/g,d=A("area,br,col,hr,img,wbr"),$=A("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=A("rp,rt"),v=e.extend({},m,$),g=e.extend({},$,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,g,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"),E=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),S=e.extend({},C,E,k);function A(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}var O=document.createElement("pre");function T(t){return t?(O.innerHTML=t.replace(/</g,"<"),O.textContent):""}function M(t){return t.replace(/&/g,"&").replace(h,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(p,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function N(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!==S[s]||!0===C[s]&&!n(r,a)||(i(" "),i(o),i('="'),i(M(r)),i('"'))})),i(s?"/>":">"))},end:function(t){t=e.lowercase(t),r||!0!==x[t]||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(M(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,$,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)?($=t.match(l))&&(t=t.replace($[0],""),p=!1):c.test(t)?($=t.match(o))&&(t=t.substring($[0].length),$[0].replace(o,k),p=!1):a.test(t)&&(($=t.match(i))?($[4]&&(t=t.substring($[0].length),$[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),g[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,N(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,N(r=[],e.noop).chars(n),r.join("")))}function h(t,n){l.push("<a "),e.isDefined(o)&&l.push('target="',o,'" '),l.push('href="',t.replace(/"/g,"""),'">'),f(n),l.push("</a>")}}}])}(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;r<t.length;r+=2)if(i=t[r],o=t[r+1],s=e,a=n,Math.abs(i-s)<25&&Math.abs(o-a)<25)return t.splice(r,r+2),!0;var i,o,s,a;return!1}function u(t){if(!(Date.now()-i>2500)){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<o.length;t+=2)if(o[t]==r&&o[t+1]==i)return void o.splice(t,t+2)}),2500,!1)}return function(n,s,f){var h,p,d,$,m=t(f.ngClick),v=!1;function g(){v=!1,s.removeClass(a)}s.on("touchstart",(function(t){v=!0,3==(h=t.target?t.target:t.srcElement).nodeType&&(h=h.parentNode),s.addClass(a),p=Date.now();var e=t.originalEvent||t,n=(e.touches&&e.touches.length?e.touches:[e])[0];d=n.clientX,$=n.clientY})),s.on("touchcancel",(function(t){g()})),s.on("touchend",(function(t){var n=Date.now()-p,a=t.originalEvent||t,m=(a.changedTouches&&a.changedTouches.length?a.changedTouches:a.touches&&a.touches.length?a.touches:[a])[0],y=m.clientX,b=m.clientY,w=Math.sqrt(Math.pow(y-d,2)+Math.pow(b-$,2));v&&n<750&&w<12&&(function(t,e){o||(r[0].addEventListener("click",u,!0),r[0].addEventListener("touchstart",l,!0),o=[]),i=Date.now(),c(o,t,e)}(y,b),h&&h.blur(),e.isDefined(f.disabled)&&!1!==f.disabled||s.triggerHandler("click",[t])),g()})),s.onclick=function(t){},s.on("click",(function(t,e){n.$apply((function(){m(n,{$event:e||t})}))})),s.on("mousedown",(function(t){s.addClass(a)})),s.on("mousemove mouseup",(function(t){s.removeClass(a)}))}}]),i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},5746:(t,e,n)=>{n(6916),t.exports="ngTouch"},7808:()=>{!function(t){"use strict";var e={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(t){if(!V(t))return e;I(t.objectMaxDepth)&&(e.objectMaxDepth=r(t.objectMaxDepth)?t.objectMaxDepth:NaN),I(t.urlErrorParamsEnabled)&&G(t.urlErrorParamsEnabled)&&(e.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function r(t){return F(t)&&t>0}function i(t,n){n=n||Error;var r="https://errors.angularjs.org/1.8.2/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,s,a=arguments[0],c=arguments[1],u="["+(t?t+":":"")+a+"] ",l=ft(arguments,2).map((function(t){return Ft(t,e.objectMaxDepth)}));if(u+=c.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1);return e<l.length?l[e].replace(o,""):t})),u+="\n"+r+(t?t+"/":"")+a,e.urlErrorParamsEnabled)for(s=0,i="?";s<l.length;s++,i="&")u+=i+"p"+s+"="+encodeURIComponent(l[s]);return new n(u)}}var o,s,a,c,u=/^\/(.+)\/([a-z]*)$/,l=Object.prototype.hasOwnProperty,f=function(t){return L(t)?t.toLowerCase():t},h=function(t){return L(t)?t.toUpperCase():t},p=[].slice,d=[].splice,$=[].push,m=Object.prototype.toString,v=Object.getPrototypeOf,g=i("ng"),y=t.angular||(t.angular={}),b=0;function w(t){if(null==t||X(t))return!1;if(H(t)||L(t)||s&&t instanceof s)return!0;var e="length"in Object(t)&&t.length;return F(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function x(t,e,n){var r,i;if(t)if(W(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(H(t)||w(t)){var o="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(o||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==x)t.forEach(e,n,t);else if(U(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)l.call(t,r)&&e.call(n,t[r],r,t);return t}function C(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function k(t){return function(e,n){t(n,e)}}function E(){return++b}function S(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function A(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(V(s)||W(s))for(var a=Object.keys(s),c=0,u=a.length;c<u;c++){var l=a[c],f=s[l];n&&V(f)?q(f)?t[l]=new Date(f.valueOf()):J(f)?t[l]=new RegExp(f):f.nodeName?t[l]=f.cloneNode(!0):et(f)?t[l]=f.clone():"__proto__"!==l&&(V(t[l])||(t[l]=H(f)?[]:{}),A(t[l],[f],!0)):t[l]=f}}return S(t,r),t}function O(t){return A(t,p.call(arguments,1),!1)}function T(t){return A(t,p.call(arguments,1),!0)}function M(t){return parseInt(t,10)}o=t.document.documentMode;var N=Number.isNaN||function(t){return t!=t};function R(t,e){return O(Object.create(t),e)}function P(){}function j(t){return t}function D(t){return function(){return t}}function _(t){return W(t.toString)&&t.toString!==m}function B(t){return void 0===t}function I(t){return void 0!==t}function V(t){return null!==t&&"object"==typeof t}function U(t){return null!==t&&"object"==typeof t&&!v(t)}function L(t){return"string"==typeof t}function F(t){return"number"==typeof t}function q(t){return"[object Date]"===m.call(t)}function H(t){return Array.isArray(t)||t instanceof Array}function z(t){switch(m.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function W(t){return"function"==typeof t}function J(t){return"[object RegExp]"===m.call(t)}function X(t){return t&&t.window===t}function Y(t){return t&&t.$evalAsync&&t.$watch}function G(t){return"boolean"==typeof t}function K(t){return t&&W(t.then)}P.$inject=[],j.$inject=[];var Z=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Q=function(t){return L(t)?t.trim():t},tt=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function et(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function nt(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function rt(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function it(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function ot(t,e,n){var i,o,s=[],a=[];if(n=r(n)?n:NaN,e){if((o=e)&&F(o.length)&&Z.test(m.call(o))||(i=e,"[object ArrayBuffer]"===m.call(i)))throw g("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw g("cpi","Can't copy! Source and destination are identical.");return H(e)?e.length=0:x(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),s.push(t),a.push(e),c(t,e,n)}return u(t,n);function c(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(H(t))for(var o=0,s=t.length;o<s;o++)e.push(u(t[o],n));else if(U(t))for(r in t)e[r]=u(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=u(t[r],n));else for(r in t)l.call(t,r)&&(e[r]=u(t[r],n));return S(e,i),e}function u(t,e){if(!V(t))return t;var n=s.indexOf(t);if(-1!==n)return a[n];if(X(t)||Y(t))throw g("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(t){switch(m.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(u(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(W(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===i&&(i=H(t)?[]:Object.create(v(t)),r=!0),s.push(t),a.push(i),r?c(t,i,e):i}}function st(t,e){return t===e||t!=t&&e!=e}function at(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r,i,o=typeof t;if(o===typeof e&&"object"===o){if(!H(t)){if(q(t))return!!q(e)&&st(t.getTime(),e.getTime());if(J(t))return!!J(e)&&t.toString()===e.toString();if(Y(t)||Y(e)||X(t)||X(e)||H(e)||q(e)||J(e))return!1;for(r in i=It(),t)if("$"!==r.charAt(0)&&!W(t[r])){if(!at(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&I(e[r])&&!W(e[r]))return!1;return!0}if(!H(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!at(t[r],e[r]))return!1;return!0}}return!1}var ct=function(){if(!I(ct.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");ct.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ct.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return ct.rules},ut=function(){if(I(ut.name_))return ut.name_;var e,n,r,i,o=Et.length;for(n=0;n<o;++n)if(r=Et[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ut.name_=i};function lt(t,e,n){return t.concat(p.call(e,n))}function ft(t,e){return p.call(t,e||0)}function ht(t,e){var n=arguments.length>2?ft(arguments,2):[];return!W(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,lt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function pt(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:X(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":Y(n)&&(r="$SCOPE"),r}function dt(t,e){if(!B(t))return F(e)||(e=e?2:null),JSON.stringify(t,pt,e)}function $t(t){return L(t)?JSON.parse(t):t}var mt=/:/g;function vt(t,e){t=t.replace(mt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return N(n)?e:n}function gt(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function yt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return gt(t,n*(vt(e,r)-r))}function bt(t){t=s(t).clone().empty();var e=s("<div></div>").append(t).html();try{return t[0].nodeType===Ut?f(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(e)}}function wt(t){try{return decodeURIComponent(t)}catch(t){}}function xt(t){var e={};return x((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)),I(r=wt(r))&&(i=!I(i)||wt(i),l.call(e,r)?H(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function Ct(t){return kt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function kt(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 Et=["ng-","data-ng-","ng:","x-ng-"],St=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement("a");if(n.href=t.value,e.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(t.document);function At(e,n,r){V(r)||(r={}),r=O({strictDi:!1},r);var i=function(){if((e=s(e)).injector()){var i=e[0]===t.document?"document":bt(e);throw g("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"<").replace(/>/,">"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Ge(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((function(){e.data("$injector",r),n(e)(t)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(t&&o.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(o,"")),t&&!a.test(t.name))return i();t.name=t.name.replace(a,""),y.resumeBootstrap=function(t){return x(t,(function(t){n.push(t)})),i()},W(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function Ot(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function Tt(t){var e=y.element(t).injector();if(!e)throw g("test","no injector found for element argument to getTestability");return e.get("$$testability")}var Mt=/[A-Z]/g;function Nt(t,e){return e=e||"_",t.replace(Mt,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Rt=!1;function Pt(){fe.legacyXHTMLReplacement=!0}function jt(t,e,n){if(!t)throw g("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function Dt(t,e,n){return n&&H(t)&&(t=t[t.length-1]),jt(W(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function _t(t,e){if("hasOwnProperty"===t)throw g("badname","hasOwnProperty is not a valid {0} name",e)}function Bt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=s(p.call(t,0,i))),e.push(n));return e||t}function It(){return Object.create(null)}function Vt(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!_(t)||H(t)||q(t)?dt(t):t.toString()}return t}var Ut=3;function Lt(t,e){if(H(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(V(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function Ft(t,e){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):B(t)?"undefined":"string"!=typeof t?function(t,e){var n=[];return r(e)&&(t=y.copy(t,null,e)),JSON.stringify(t,(function(t,e){if(V(e=pt(t,e))){if(n.indexOf(e)>=0)return"...";n.push(e)}return e}))}(t,e):t}var qt={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};fe.expando="ng339";var Ht=fe.cache={},zt=1;fe._data=function(t){return this.cache[t[this.expando]]||{}};var Wt=/-([a-z])/g,Jt=/^-ms-/,Xt={mouseleave:"mouseout",mouseenter:"mouseover"},Yt=i("jqLite");function Gt(t,e){return e.toUpperCase()}function Kt(t){return t.replace(Wt,Gt)}var Zt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qt=/<|&#?\w+;/,te=/<([\w:-]+)/,ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ne={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ne.tbody=ne.tfoot=ne.colgroup=ne.caption=ne.thead,ne.th=ne.td;var re={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ie in ne){var oe=ne[ie],se=oe.slice().reverse();re[ie]=[se.length,"<"+se.join("><")+">","</"+oe.join("></")+">"]}function ae(t){return!Qt.test(t)}function ce(t){var e=t.nodeType;return 1===e||!e||9===e}function ue(e,n){var r,i,s,a,c,u=n.createDocumentFragment(),l=[];if(ae(e))l.push(n.createTextNode(e));else{if(r=u.appendChild(n.createElement("div")),i=(te.exec(e)||["",""])[1].toLowerCase(),a=fe.legacyXHTMLReplacement?e.replace(ee,"<$1></$2>"):e,o<10)for(s=re[i]||re._default,r.innerHTML=s[1]+a+s[2],c=s[0];c--;)r=r.firstChild;else{for(c=(s=ne[i]||[]).length;--c>-1;)r.appendChild(t.document.createElement(s[c])),r=r.firstChild;r.innerHTML=a}l=lt(l,r.childNodes),(r=u.firstChild).textContent=""}return u.textContent="",u.innerHTML="",x(l,(function(t){u.appendChild(t)})),u}re.optgroup=re.option;var le=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function fe(e){if(e instanceof fe)return e;var n,r,i,o;if(L(e)&&(e=Q(e),n=!0),!(this instanceof fe)){if(n&&"<"!==e.charAt(0))throw Yt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new fe(e)}n?Ce(this,(r=e,i=i||t.document,(o=Zt.exec(r))?[i.createElement(o[1])]:(o=ue(r,i))?o.childNodes:[])):W(e)?Oe(e):Ce(this,e)}function he(t){return t.cloneNode(!0)}function pe(t,e){!e&&ce(t)&&s.cleanData([t]),t.querySelectorAll&&s.cleanData(t.querySelectorAll("*"))}function de(t){var e;for(e in t)return!1;return!0}function $e(t){var e=t.ng339,n=e&&Ht[e],r=n&&n.events,i=n&&n.data;i&&!de(i)||r&&!de(r)||(delete Ht[e],t.ng339=void 0)}function me(t,e,n,r){if(I(r))throw Yt("offargs","jqLite#off() does not support the `selector` argument");var i=ge(t),o=i&&i.events,s=i&&i.handle;if(s){if(e){var a=function(e){var r=o[e];I(n)&&it(r||[],n),I(n)&&r&&r.length>0||(t.removeEventListener(e,s),delete o[e])};x(e.split(" "),(function(t){a(t),Xt[t]&&a(Xt[t])}))}else for(e in o)"$destroy"!==e&&t.removeEventListener(e,s),delete o[e];$e(t)}}function ve(t,e){var n=t.ng339,r=n&&Ht[n];r&&(e?delete r.data[e]:r.data={},$e(t))}function ge(t,e){var n=t.ng339,r=n&&Ht[n];return e&&!r&&(t.ng339=n=++zt,r=Ht[n]={events:{},data:{},handle:void 0}),r}function ye(t,e,n){if(ce(t)){var r,i=I(n),o=!i&&e&&!V(e),s=!e,a=ge(t,!o),c=a&&a.data;if(i)c[Kt(e)]=n;else{if(s)return c;if(o)return c&&c[Kt(e)];for(r in e)c[Kt(r)]=e[r]}}}function be(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function we(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(e.split(" "),(function(t){t=Q(t),r=r.replace(" "+t+" "," ")})),r!==n&&t.setAttribute("class",Q(r))}}function xe(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(e.split(" "),(function(t){t=Q(t),-1===r.indexOf(" "+t+" ")&&(r+=t+" ")})),r!==n&&t.setAttribute("class",Q(r))}}function Ce(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<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function ke(t,e){return Ee(t,"$"+(e||"ngController")+"Controller")}function Ee(t,e,n){9===t.nodeType&&(t=t.documentElement);for(var r=H(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(I(n=s.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function Se(t){for(pe(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ae(t,e){e||pe(t);var n=t.parentNode;n&&n.removeChild(t)}function Oe(e){function n(){t.document.removeEventListener("DOMContentLoaded",n),t.removeEventListener("load",n),e()}"complete"===t.document.readyState?t.setTimeout(e):(t.document.addEventListener("DOMContentLoaded",n),t.addEventListener("load",n))}var Te=fe.prototype={ready:Oe,toString:function(){var t=[];return x(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return s(t>=0?this[t]:this[this.length+t])},length:0,push:$,sort:[].sort,splice:[].splice},Me={};x("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){Me[f(t)]=t}));var Ne={};x("input,select,option,textarea,button,form,details".split(","),(function(t){Ne[t]=!0}));var Re={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Pe(t,e){var n=Me[e.toLowerCase()];return n&&Ne[nt(t)]&&n}function je(t,e,n){n.call(t,e)}function De(t,e,n){var r=e.relatedTarget;r&&(r===t||le.call(t,r))||n.call(t,e)}function _e(){this.$get=function(){return O(fe,{hasClass:function(t,e){return t.attr&&(t=t[0]),be(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),xe(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),we(t,e)}})}}function Be(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||E)():r+":"+t}x({data:ye,removeData:ve,hasData:function(t){for(var e in Ht[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)ve(t[e]),me(t[e])}},(function(t,e){fe[e]=t})),x({data:ye,inheritedData:Ee,scope:function(t){return s.data(t,"$scope")||Ee(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return s.data(t,"$isolateScope")||s.data(t,"$isolateScopeNoTemplate")},controller:ke,injector:function(t){return Ee(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:be,css:function(t,e,n){if(e=function(t){return Kt(t.replace(Jt,"ms-"))}(e),!I(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==Ut&&2!==i&&8!==i&&t.getAttribute){var o=f(e),s=Me[o];if(!I(n))return r=t.getAttribute(e),s&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&s?t.removeAttribute(e):t.setAttribute(e,s?o:n)}},prop:function(t,e,n){if(!I(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(B(e)){var n=t.nodeType;return 1===n||n===Ut?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(B(e)){if(t.multiple&&"select"===nt(t)){var n=[];return x(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),n}return t.value}t.value=e},html:function(t,e){if(B(e))return t.innerHTML;pe(t,!0),t.innerHTML=e},empty:Se},(function(t,e){fe.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Se&&B(2===t.length&&t!==be&&t!==ke?e:n)){if(V(e)){for(r=0;r<o;r++)if(t===ye)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var s=t.$dv,a=B(s)?Math.min(o,1):o,c=0;c<a;c++){var u=t(this[c],e,n);s=s?s+u:u}return s}for(r=0;r<o;r++)t(this[r],e,n);return this}})),x({removeData:ve,on:function(t,e,n,r){if(I(r))throw Yt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ce(t)){var i=ge(t,!0),o=i.events,s=i.handle;s||(s=i.handle=function(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(B(n.immediatePropagationStopped)){var s=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),s&&s.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var a=i.specialHandlerWrapper||je;o>1&&(i=Lt(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||a(t,n,i[c])}};return n.elem=t,n}(t,o));for(var a=e.indexOf(" ")>=0?e.split(" "):[e],c=a.length,u=function(e,r,i){var a=o[e];a||((a=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,s)),a.push(n)};c--;)e=a[c],Xt[e]?(u(Xt[e],De),u(e,void 0,!0)):u(e)}},off:me,one:function(t,e,n){(t=s(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;pe(t),x(new fe(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return x(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 fe(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;x(new fe(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){var n,r,i;n=t,r=s(e).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Ae,detach:function(t){Ae(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r)for(var i=0,o=(e=new fe(e)).length;i<o;i++){var s=e[i];r.insertBefore(s,n.nextSibling),n=s}},addClass:xe,removeClass:we,toggleClass:function(t,e,n){e&&x(e.split(" "),(function(e){var r=n;B(r)&&(r=!be(t,e)),(r?xe:we)(t,e)}))},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:he,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,a=ge(t),c=a&&a.events,u=c&&c[s];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:P,type:s,target:t},e.type&&(r=O(r,e)),i=Lt(u),o=n?[r].concat(n):[r],x(i,(function(e){r.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){fe.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)B(i)?I(i=t(this[o],e,n,r))&&(i=s(i)):Ce(i,t(this[o],e,n,r));return I(i)?i:this}})),fe.prototype.bind=fe.prototype.on,fe.prototype.unbind=fe.prototype.off;var Ie=Object.create(null);function Ve(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ve.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return N(t)?Ie:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},has:function(t){return t=this._transformKey(t),-1!==this._idx(t)},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ue=Ve,Le=[function(){this.$get=[function(){return Ue}]}],Fe=/^([^(]+?)=>/,qe=/^[^(]*\(\s*([^)]*)\)/m,He=/,/,ze=/^\s*(_?)(\S+?)\1\s*$/,We=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Je=i("$injector");function Xe(t){return Function.prototype.toString.call(t)}function Ye(t){var e=Xe(t).replace(We,"");return e.match(Fe)||e.match(qe)}function Ge(t,e){e=!0===e;var n={},r="Provider",i=[],s=new Ue,a={$provide:{provider:d($),factory:d(v),service:d((function(t,e){return v(t,["$injector",function(t){return t.instantiate(e)}])})),value:d((function(t,e){return v(t,D(e),!1)})),constant:d((function(t,e){_t(t,"constant"),a[t]=e,l[t]=e})),decorator:function(t,e){var n=u.get(t+r),i=n.$get;n.$get=function(){var t=h.invoke(i,n);return h.invoke(e,null,{$delegate:t})}}}},u=a.$injector=b(a,(function(t,e){throw y.isString(e)&&i.push(e),Je("unpr","Unknown provider: {0}",i.join(" <- "))})),l={},f=b(l,(function(t,e){var n=u.get(t+r,e);return h.invoke(n.$get,n,void 0,t)})),h=f;a.$injectorProvider={$get:D(f)},h.modules=u.modules=It();var p=g(t);return(h=f.get("$injector")).strictDi=e,x(p,(function(t){t&&h.invoke(t)})),h.loadNewModules=function(t){x(g(t),(function(t){t&&h.invoke(t)}))},h;function d(t){return function(e,n){if(!V(e))return t(e,n);x(e,k(t))}}function $(t,e){if(_t(t,"service"),(W(e)||H(e))&&(e=u.instantiate(e)),!e.$get)throw Je("pget","Provider '{0}' must define $get factory method.",t);return a[t+r]=e}function m(t,e){return function(){var n=h.invoke(e,this);if(B(n))throw Je("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function v(t,e,n){return $(t,{$get:!1!==n?m(t,e):e})}function g(t){jt(B(t)||H(t),"modulesToLoad","not an array");var e,n=[];return x(t,(function(t){if(!s.get(t)){s.set(t,!0);try{L(t)?(e=c(t),h.modules[t]=e,n=n.concat(g(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):W(t)||H(t)?n.push(u.invoke(t)):Dt(t,"module")}catch(e){throw H(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Je("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=u.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function b(t,s){function c(e,r){if(t.hasOwnProperty(e)){if(t[e]===n)throw Je("cdep","Circular dependency found: {0}",e+" <- "+i.join(" <- "));return t[e]}try{return i.unshift(e),t[e]=n,t[e]=s(e,r),t[e]}catch(r){throw t[e]===n&&delete t[e],r}finally{i.shift()}}function u(t,n,r){for(var i=[],o=Ge.$$annotate(t,e,r),s=0,a=o.length;s<a;s++){var u=o[s];if("string"!=typeof u)throw Je("itkn","Incorrect injection token! Expected service name as string, got {0}",u);i.push(n&&n.hasOwnProperty(u)?n[u]:c(u,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);var i=u(t,n,r);return H(t)&&(t=t[t.length-1]),function(t){if(o||"function"!=typeof t)return!1;var e=t.$$ngIsClass;return G(e)||(e=t.$$ngIsClass=/^class\b/.test(Xe(t))),e}(t)?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)},instantiate:function(t,e,n){var r=H(t)?t[t.length-1]:t,i=u(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:c,annotate:Ge.$$annotate,has:function(e){return a.hasOwnProperty(e+r)||t.hasOwnProperty(e)}}}}function Ke(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(t){if(t){t.scrollIntoView();var e=function(){var t=c.yOffset;if(W(t))t=t();else if(et(t)){var e=t[0];t="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else F(t)||(t=0);return t}();if(e){var r=t.getBoundingClientRect().top;n.scrollBy(0,r-e)}}else n.scrollTo(0,0)}function c(t){var e,n,i;(t=L(t)?t:F(t)?t.toString():r.hash())?(e=o.getElementById(t))?a(e):(n=o.getElementsByName(t),i=null,Array.prototype.some.call(n,(function(t){if("a"===nt(t))return i=t,!0})),(e=i)?a(e):"top"===t&&a(null)):a(null)}return e&&i.$watch((function(){return r.hash()}),(function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(c)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):s(o).on("load",r))})),c}]}Ge.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw L(n)&&n||(n=t.name||function(t){var e=Ye(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Je("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);x(Ye(t)[1].split(He),(function(t){t.replace(ze,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else H(t)?(Dt(t[i=t.length-1],"fn"),r=t.slice(0,i)):Dt(t,"fn",!0);return r};var Ze=i("$animate"),Qe="ng-animate";function tn(t,e){return t||e?t?e?(H(t)&&(t=t.join(" ")),H(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function en(t){return V(t)?t:{}}var nn=function(){this.$get=P},rn=function(){var t=new Ue,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:P,on:P,off:P,pin:P,push:function(s,a,c,u){u&&u(),(c=c||{}).from&&s.css(c.from),c.to&&s.css(c.to),(c.addClass||c.removeClass)&&function(n,s,a){var c=t.get(n)||{},u=i(c,s,!0),l=i(c,a,!1);(u||l)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(o))}(s,c.addClass,c.removeClass);var l=new n;return l.complete(),l}};function i(t,e,n){var r=!1;return e&&x(e=L(e)?e.split(" "):H(e)?e:[],(function(e){e&&(r=!0,t[e]=n)})),r}function o(){x(e,(function(e){var n=t.get(e);if(n){var r=function(t){L(t)&&(t=t.split(" "));var e=It();return x(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",o="";x(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)})),x(e,(function(t){i&&xe(t,i),o&&we(t,o)})),t.delete(e)}})),e.length=0}}]},on=["$provide",function(t){var e=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ze("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=W(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)){var e=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(e.test(n.toString()))throw n=null,Ze("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Qe)}return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.cancel&&t.cancel()},enter:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"enter",en(o))},move:function(n,r,i,o){return r=r&&s(r),i=i&&s(i),e(n,r=r||i.parent(),i),t.push(n,"move",en(o))},leave:function(e,n){return t.push(e,"leave",en(n),(function(){e.remove()}))},addClass:function(e,n,r){return(r=en(r)).addClass=tn(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=en(r)).removeClass=tn(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=en(i)).addClass=tn(i.addClass,n),i.removeClass=tn(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=en(o)).from=o.from?O(o.from,n):n,o.to=o.to?O(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=tn(o.tempClasses,i),t.push(e,"animate",o)}}}]}],sn=function(){this.$get=["$$rAF",function(t){var e=[];function n(n){e.push(n),e.length>1||t((function(){for(var t=0;t<e.length;t++)e[t]();e=[]}))}return function(){var t=!1;return n((function(){t=!0})),function(e){t?e():n(e)}}}]},an=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){r()?function(t){i(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function r(){n!==t.length?t[n]((function(t){!1!==t?(n++,r()):e(!1)})):e(!0)}()},o.all=function(t,e){var n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}x(t,(function(t){t.done(i)}))},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:P,getPromise:function(){if(!this.promise){var e=this;this.promise=t((function(t,n){e.done((function(e){!1===e?n():t()}))}))}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick((function(){e._resolve(t)})))},_resolve:function(t){2!==this._state&&(x(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},cn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){var i=r||{};i.$$prepared||(i=ot(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var o,s=new n;return{start:a,end:a};function a(){return t((function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null),i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null),i.to&&(e.css(i.to),i.to=null),o||s.complete(),o=!0})),s}}}]};function un(t,e,n,r,i){var o=this,a=t.location,c=t.history,u=t.setTimeout,l=t.clearTimeout,f={},h=i(n);o.isMock=!1,o.$$completeOutstandingRequest=h.completeTask,o.$$incOutstandingRequestCount=h.incTaskCount,o.notifyWhenNoOutstandingRequests=h.notifyWhenNoPendingTasks;var p,d,$=a.href,m=e.find("base"),v=null,g=r.history?function(){try{return c.state}catch(t){}}:P;k(),o.url=function(e,n,i){if(B(i)&&(i=null),a!==t.location&&(a=t.location),c!==t.history&&(c=t.history),e){var s=d===i;if(e=ai(e).href,$===e&&(!r.history||s))return o;var u=$&&sr($)===sr(e);return $=e,d=i,!r.history||u&&s?(u||(v=e),n?a.replace(e):u?a.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(e):a.href=e,a.href!==e&&(v=e)):(c[n?"replaceState":"pushState"](i,"",e),k()),v&&(v=e),o}return function(t){return t.replace(/#$/,"")}(v||a.href)},o.state=function(){return p};var y=[],b=!1;function w(){v=null,E()}var C=null;function k(){at(p=B(p=g())?null:p,C)&&(p=C),C=p,d=p}function E(){var t=d;k(),$===o.url()&&t===p||($=o.url(),d=p,x(y,(function(t){t(o.url(),p)})))}o.onUrlChange=function(e){return b||(r.history&&s(t).on("popstate",w),s(t).on("hashchange",w),b=!0),y.push(e),e},o.$$applicationDestroyed=function(){s(t).off("hashchange popstate",w)},o.$$checkUrlChange=E,o.baseHref=function(){var t=m.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(t,e,n){var r;return e=e||0,n=n||h.DEFAULT_TASK_TYPE,h.incTaskCount(n),r=u((function(){delete f[r],h.completeTask(t,n)}),e),f[r]=n,r},o.defer.cancel=function(t){if(f.hasOwnProperty(t)){var e=f[t];return delete f[t],l(t),h.completeTask(P,e),!0}return!1}}function ln(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,r,i){return new un(t,r,e,n,i)}]}function fn(){this.$get=function(){var t={};function e(e,n){if(e in t)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var r=0,o=O({},n,{id:e}),s=It(),a=n&&n.capacity||Number.MAX_VALUE,c=It(),u=null,l=null;return t[e]={put:function(t,e){if(!B(e))return a<Number.MAX_VALUE&&f(c[t]||(c[t]={key:t})),t in s||r++,s[t]=e,r>a&&this.remove(l.key),e},get:function(t){if(a<Number.MAX_VALUE){var e=c[t];if(!e)return;f(e)}return s[t]},remove:function(t){if(a<Number.MAX_VALUE){var e=c[t];if(!e)return;e===u&&(u=e.p),e===l&&(l=e.n),h(e.n,e.p),delete c[t]}t in s&&(delete s[t],r--)},removeAll:function(){s=It(),r=0,c=It(),u=l=null},destroy:function(){s=null,o=null,c=null,delete t[e]},info:function(){return O({},o,{size:r})}};function f(t){t!==u&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,u),(u=t).n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){var e={};return x(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function hn(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var pn=i("$compile"),dn=new function(){};function $n(e,n){var r={},i="Directive",a=/^\s*directive:\s*([\w-]+)\s+(.*)$/,c=/(([\w-]+)(?::([^;]+))?;?)/,u=function(t){var e,n={},r="ngSrc,ngSrcset,src,srcset".split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}(),h=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,p=/^(on[a-z]+|formaction)$/,d=It();function $(t,e,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=It();return x(t,(function(t,o){if((t=t.trim())in d)i[o]=d[t];else{var s=t.match(r);if(!s)throw pn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:s[1][0],collection:"*"===s[2],optional:"?"===s[3],attrName:s[4]||o},s[4]&&(d[t]=i[o])}})),i}function v(t,e){var n={isolateScope:null,bindToController:null};if(V(t.scope)&&(!0===t.bindToController?(n.bindToController=$(t.scope,e,!0),n.isolateScope={}):n.isolateScope=$(t.scope,e,!1)),V(t.bindToController)&&(n.bindToController=$(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw pn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function t(n,o){return jt(n,"name"),_t(n,"directive"),L(n)?(function(t){var e=t.charAt(0);if(!e||e!==f(e))throw pn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw pn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(n),jt(o,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],e.factory(n+i,["$injector","$exceptionHandler",function(t,e){var i=[];return x(r[n],(function(r,o){try{var s=t.invoke(r);W(s)?s={compile:D(s)}:!s.compile&&s.link&&(s.compile=D(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||n,s.require=function(t){var e=t.require||t.controller&&t.name;return!H(e)&&V(e)&&x(e,(function(t,n){var r=t.match(h);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(s),s.restrict=function(t,e){if(t&&(!L(t)||!/[EACM]/.test(t)))throw pn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(s.restrict,n),s.$$moduleName=r.$$moduleName,i.push(s)}catch(t){e(t)}})),i}])),r[n].push(o)):x(n,k(t)),this},this.component=function t(e,n){if(!L(e))return x(e,k(ht(this,t))),this;var r=n.controller||function(){};function i(t){function e(e){return W(e)||H(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:kn(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return x(n,(function(t,e){"$"===e.charAt(0)&&(o[e]=t)})),o}return x(n,(function(t,e){"$"===e.charAt(0)&&(i[e]=t,W(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationTrustedUrlList=function(t){return I(t)?(n.aHrefSanitizationTrustedUrlList(t),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(t){this.aHrefSanitizationTrustedUrlList=t}}),this.imgSrcSanitizationTrustedUrlList=function(t){return I(t)?(n.imgSrcSanitizationTrustedUrlList(t),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(t){this.imgSrcSanitizationTrustedUrlList=t}});var g=!0;this.debugInfoEnabled=function(t){return I(t)?(g=t,this):g};var y=!1;this.strictComponentBindingsEnabled=function(t){return I(t)?(y=t,this):y};var b=10;this.onChangesTtl=function(t){return arguments.length?(b=t,this):b};var w=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(w=t,this):w};var C=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(C=t,this):C};var E=It();this.addPropertySecurityContext=function(t,e,n){var r=t.toLowerCase()+"|"+e.toLowerCase();if(r in E&&E[r]!==n)throw pn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,E[r],n);return E[r]=n,this},function(){function t(t,e){x(e,(function(e){E[e.toLowerCase()]=t}))}t(qr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(qr.CSS,["*|style"]),t(qr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(qr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(qr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(e,n,d,$,k,S,A,T,M){var N,D=/^\w/,_=t.document.createElement("div"),I=w,U=C,F=b;function q(){try{if(!--F)throw N=void 0,pn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);A.$apply((function(){for(var t=0,e=N.length;t<e;++t)try{N[t]()}catch(t){d(t)}N=void 0}))}finally{F++}}function J(t,e){if(!t)return t;if(!L(t))throw pn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=Q(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),s=Math.floor(o.length/2),a=0;a<s;a++){var c=2*a;n+=T.getTrustedMediaUrl(Q(o[c])),n+=" "+Q(o[c+1])}var u=Q(o[2*a]).split(/\s/);return n+=T.getTrustedMediaUrl(Q(u[0])),2===u.length&&(n+=" "+Q(u[1])),n}function X(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function K(t,e){try{t.addClass(e)}catch(t){}}X.prototype={$normalize:yn,$addClass:function(t){t&&t.length>0&&M.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&M.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=bn(t,e);n&&n.length&&M.addClass(this.$$element,n);var r=bn(e,t);r&&r.length&&M.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i=Pe(this.$$element[0],t),o=Re[t],s=t;i?(this.$$element.prop(t,e),r=i):o&&(this[o]=e,s=o),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Nt(t,"-")),"img"===nt(this.$$element)&&"srcset"===t&&(this[t]=e=J(e,"$set('srcset', value)")),!1!==n&&(null===e||B(e)?this.$$element.removeAttr(r):D.test(r)?i&&!1===e?this.$$element.removeAttr(r):this.$$element.attr(r,e):function(t,e,n){_.innerHTML="<span "+e+">";var r=_.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));var a=this.$$observers;a&&x(a[s],(function(t){try{t(e)}catch(t){d(t)}}))},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=It()),i=r[t]||(r[t]=[]);return i.push(e),A.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(t)||B(n[t])||e(n[t])})),function(){it(i,e)}}};var Z=n.startSymbol(),tt=n.endSymbol(),et="{{"===Z&&"}}"===tt?j:function(t){return t.replace(/\{\{/g,Z).replace(/}}/g,tt)},rt=/^ng(Attr|Prop|On)([A-Z].*)$/,ot=/^(.+)Start$/;return ct.$$addBindingInfo=g?function(t,e){var n=t.data("$binding")||[];H(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:P,ct.$$addBindingClass=g?function(t){K(t,"ng-binding")}:P,ct.$$addScopeInfo=g?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:P,ct.$$addScopeClass=g?function(t,e){K(t,e?"ng-isolate-scope":"ng-scope")}:P,ct.$$createComment=function(e,n){var r="";return g&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},ct;function ct(t,e,n,r,i){t instanceof s||(t=s(t));var o=ut(t,e,t,n,r,i);ct.$$addScopeClass(t);var a=null;return function(e,n,r){if(!t)throw pn("multilink","This element has already been linked.");jt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new());var c,u,l,f=(r=r||{}).parentBoundTranscludeFn,h=r.transcludeControllers,p=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),a||(u=(c=p)&&c[0],a=u&&"foreignobject"!==nt(u)&&m.call(u).match(/SVG/)?"svg":"html"),l="html"!==a?s(Ot(a,s("<div></div>").append(t).html())):n?Te.clone.call(t):t,h)for(var d in h)l.data("$"+d+"Controller",h[d].instance);return ct.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,f),n||(t=o=null),l}}function ut(t,e,n,r,i,a){for(var c,u,l,f,h,p,d,$=[],m=H(t)||t instanceof s,v=0;v<t.length;v++)c=new X,11===o&<(t,v,m),(l=(u=dt(t[v],[],c,0===v?r:void 0,i)).length?gt(u,t[v],c,e,n,null,[],[],a):null)&&l.scope&&ct.$$addScopeClass(c.$$element),h=l&&l.terminal||!(f=t[v].childNodes)||!f.length?null:ut(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&($.push(v,l,h),p=!0,d=d||l),a=null;return p?function(t,n,r,i){var o,a,c,u,l,f,h,p;if(d){var m=n.length;for(p=new Array(m),l=0;l<$.length;l+=3)p[h=$[l]]=n[h]}else p=n;for(l=0,f=$.length;l<f;)c=p[$[l++]],o=$[l++],a=$[l++],o?(o.scope?(u=t.$new(),ct.$$addScopeInfo(s(c),u)):u=t,o(a,u,c,r,o.transcludeOnThisElement?pt(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?pt(t,e):null)):a&&a(t,c.childNodes,void 0,i)}:null}function lt(t,e,n){var r,i=t[e],o=i.parentNode;if(i.nodeType===Ut)for(;(r=o?i.nextSibling:t[e+1])&&r.nodeType===Ut;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===t[e+1]&&t.splice(e+1,1)}function pt(t,e,n){function r(r,i,o,s,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})}var i=r.$$slots=It();for(var o in e.$$slots)e.$$slots[o]?i[o]=pt(t,e.$$slots[o],n):i[o]=null;return r}function dt(t,e,r,i,o){var s,u,l,f=t.nodeType,h=r.$attr;switch(f){case 1:xt(e,yn(u=nt(t)),"E",i,o);for(var p,d,$,m,v,g=t.attributes,y=0,b=g&&g.length;y<b;y++){var w,x=!1,C=!1,k=!1,E=!1,S=!1;d=(p=g[y]).name,m=p.value,(v=($=yn(d.toLowerCase())).match(rt))?(k="Attr"===v[1],E="Prop"===v[1],S="On"===v[1],d=d.replace(vn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(t,e){return e.toUpperCase()}))):(w=$.match(ot))&&Ct(w[1])&&(x=d,C=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),E||S?(r[$]=m,h[$]=p.name,E?Mt(t,e,$,d):Rt(e,$,d)):(h[$=yn(d.toLowerCase())]=d,!k&&r.hasOwnProperty($)||(r[$]=m,Pe(t,$)&&(r[$]=!0)),Pt(t,e,m,$,k),xt(e,$,"A",i,o,x,C))}if("input"===u&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!U)break;if(V(l=t.className)&&(l=l.animVal),L(l)&&""!==l)for(;s=c.exec(l);)xt(e,$=yn(s[2]),"C",i,o)&&(r[$]=Q(s[3])),l=l.substr(s.index+s[0].length);break;case Ut:!function(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&ct.$$addBindingClass(e),function(t,e){var i=e.parent();n||ct.$$addBindingClass(i),ct.$$addBindingInfo(i,r.expressions),t.$watch(r,(function(t){e[0].nodeValue=t}))}}})}(e,t.nodeValue);break;case 8:if(!I)break;!function(t,e,n,r,i){try{var o=a.exec(t.nodeValue);if(o){var s=yn(o[1]);xt(e,s,"M",r,i)&&(n[s]=Q(o[2]))}}catch(t){}}(t,e,r,i,o)}return e.sort(St),e}function $t(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw pn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1===t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return s(r)}function mt(t,e,n){return function(r,i,o,s,a){return i=$t(i[0],e,n),t(r,i,o,s,a)}}function vt(t,e,n,r,i,o){var s;return t?ct(e,n,r,i,o):function(){return s||(s=ct(e,n,r,i,o),e=n=o=null),s.apply(this,arguments)}}function gt(e,n,r,i,o,a,c,u,l){l=l||{};for(var f,h,p,$,m,v=-Number.MAX_VALUE,g=l.newScopeDirective,y=l.controllerDirectives,b=l.newIsolateScopeDirective,w=l.templateDirective,C=l.nonTlbTranscludeDirective,k=!1,E=!1,A=l.hasElementTranscludeDirective,T=r.$$element=s(n),M=a,N=i,R=!1,P=!1,j=0,D=e.length;j<D;j++){var _=(f=e[j]).$$start,I=f.$$end;if(_&&(T=$t(n,_,I)),p=void 0,v>f.priority)break;if((m=f.scope)&&(f.templateUrl||(V(m)?(At("new/isolated scope",b||g,f,T),b=f):At("new/isolated scope",b,f,T)),g=g||f),h=f.name,!R&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var U,L=j+1;U=e[L++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){P=!0;break}R=!0}if(!f.templateUrl&&f.controller&&(y=y||It(),At("'"+h+"' controller",y[h],f,T),y[h]=f),m=f.transclude)if(k=!0,f.$$tlb||(At("transclusion",C,f,T),C=f),"element"===m)A=!0,v=f.priority,p=T,T=r.$$element=s(ct.$$createComment(h,r[h])),n=T[0],Dt(o,ft(p),n),N=vt(P,p,i,v,M&&M.name,{nonTlbTranscludeDirective:C});else{var F=It();if(V(m)){p=t.document.createDocumentFragment();var q=It(),z=It();for(var J in x(m,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,q[t]=e,F[e]=null,z[e]=n})),x(T.contents(),(function(e){var n=q[yn(nt(e))];n?(z[n]=!0,F[n]=F[n]||t.document.createDocumentFragment(),F[n].appendChild(e)):p.appendChild(e)})),x(z,(function(t,e){if(!t)throw pn("reqslot","Required transclusion slot `{0}` was not filled.",e)})),F)if(F[J]){var G=s(F[J].childNodes);F[J]=vt(P,G,i)}p=s(p.childNodes)}else p=s(he(n)).contents();T.empty(),(N=vt(P,p,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=F}if(f.template)if(E=!0,At("template",w,f,T),w=f,m=W(f.template)?f.template(T,r):f.template,m=et(m),f.replace){if(M=f,p=ae(m)?[]:wn(Ot(f.templateNamespace,Q(m))),n=p[0],1!==p.length||1!==n.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Dt(o,T,n);var K={$attr:{}},Z=dt(n,[],K),tt=e.splice(j+1,e.length-(j+1));(b||g)&&wt(Z,b,g),e=e.concat(Z).concat(tt),kt(r,K),D=e.length}else T.html(m);if(f.templateUrl)E=!0,At("template",w,f,T),w=f,f.replace&&(M=f),ot=Et(e.splice(j,e.length-j),T,r,o,k&&N,c,u,{controllerDirectives:y,newScopeDirective:g!==f&&g,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:C}),D=e.length;else if(f.compile)try{$=f.compile(T,r,N);var rt=f.$$originalDirective||f;W($)?it(null,ht(rt,$),_,I):$&&it(ht(rt,$.pre),ht(rt,$.post),_,I)}catch(t){d(t,bt(T))}f.terminal&&(ot.terminal=!0,v=Math.max(v,f.priority))}return ot.scope=g&&!0===g.scope,ot.transcludeOnThisElement=k,ot.templateOnThisElement=E,ot.transclude=N,l.hasElementTranscludeDirective=A,ot;function it(t,e,n,r){t&&(n&&(t=mt(t,n,r)),t.require=f.require,t.directiveName=h,(b===f||f.$$isolateScope)&&(t=_t(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=mt(e,n,r)),e.require=f.require,e.directiveName=h,(b===f||f.$$isolateScope)&&(e=_t(e,{isolateScope:!0})),u.push(e))}function ot(t,e,i,o,a){var l,f,h,p,$,m,v,C,k,E;for(var T in n===i?(k=r,C=r.$$element):k=new X(C=s(i),r),$=e,b?p=e.$new(!0):g&&($=e.$parent),a&&((v=function(t,e,n,r){var i;if(Y(t)||(r=n,n=e,e=t,t=void 0),A&&(i=m),n||(n=A?C.parent():C),!r)return a(t,e,i,n,P);var o=a.$$slots[r];if(o)return o(t,e,i,n,P);if(B(o))throw pn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,bt(C))}).$$boundTransclude=a,v.isSlotFilled=function(t){return!!a.$$slots[t]}),y&&(m=function(t,e,n,r,i,o,s){var a=It();for(var c in r){var u=r[c],l={$scope:u===s||u.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=u.controller;"@"===f&&(f=e[u.name]);var h=S(f,l,!0,u.controllerAs);a[u.name]=h,t.data("$"+u.name+"Controller",h.instance)}return a}(C,k,v,y,p,e,b)),b&&(ct.$$addScopeInfo(C,p,!0,!(w&&(w===b||w===b.$$originalDirective))),ct.$$addScopeClass(C,!0),p.$$isolateBindings=b.$$isolateBindings,(E=Lt(e,k,p,p.$$isolateBindings,b)).removeWatches&&p.$on("$destroy",E.removeWatches)),m){var M=y[T],N=m[T],R=M.$$bindings.bindToController;N.instance=N(),C.data("$"+M.name+"Controller",N.instance),N.bindingInfo=Lt($,k,N.instance,R,M)}for(x(y,(function(t,e){var n=t.require;t.bindToController&&!H(n)&&V(n)&&O(m[e].instance,yt(e,n,C,m))})),x(m,(function(t){var e=t.instance;if(W(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){d(t)}if(W(e.$onInit))try{e.$onInit()}catch(t){d(t)}W(e.$doCheck)&&($.$watch((function(){e.$doCheck()})),e.$doCheck()),W(e.$onDestroy)&&$.$on("$destroy",(function(){e.$onDestroy()}))})),l=0,f=c.length;l<f;l++)Bt(h=c[l],h.isolateScope?p:e,C,k,h.require&&yt(h.directiveName,h.require,C,m),v);var P=e;for(b&&(b.template||null===b.templateUrl)&&(P=p),t&&t(P,i.childNodes,void 0,a),l=u.length-1;l>=0;l--)Bt(h=u[l],h.isolateScope?p:e,C,k,h.require&&yt(h.directiveName,h.require,C,m),v);x(m,(function(t){var e=t.instance;W(e.$postLink)&&e.$postLink()}))}}function yt(t,e,n,r){var i;if(L(e)){var o=e.match(h),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[0]&&9===n[0].nodeType?null:a?n.inheritedData(u):n.data(u)}if(!i&&!c)throw pn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(H(e)){i=[];for(var l=0,f=e.length;l<f;l++)i[l]=yt(t,e[l],n,r)}else V(e)&&(i={},x(e,(function(e,o){i[o]=yt(t,e,n,r)})));return i||null}function wt(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function xt(t,n,o,s,a,c,u){if(n===a)return null;var l=null;if(r.hasOwnProperty(n))for(var f,h=e.get(n+i),p=0,d=h.length;p<d;p++)if(f=h[p],(B(s)||s>f.priority)&&-1!==f.restrict.indexOf(o)){if(c&&(f=R(f,{$$start:c,$$end:u})),!f.$$bindings){var $=f.$$bindings=v(f,f.name);V($.isolateScope)&&(f.$$isolateBindings=$.isolateScope)}t.push(f),l=f}return l}function Ct(t){if(r.hasOwnProperty(t))for(var n=e.get(t+i),o=0,s=n.length;o<s;o++)if(n[o].multiElement)return!0;return!1}function kt(t,e){var n=e.$attr,r=t.$attr;x(t,(function(r,i){"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),x(e,(function(e,i){t.hasOwnProperty(i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Et(t,e,n,r,i,o,a,c){var u,l,f=[],h=e[0],p=t.shift(),m=R(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),v=W(p.templateUrl)?p.templateUrl(e,n):p.templateUrl,g=p.templateNamespace;return e.empty(),$(v).then((function(d){var $,y,b,w;if(d=et(d),p.replace){if(b=ae(d)?[]:wn(Ot(g,Q(d))),$=b[0],1!==b.length||1!==$.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,v);y={$attr:{}},Dt(r,e,$);var C=dt($,[],y);V(p.scope)&&wt(C,!0),t=C.concat(t),kt(n,y)}else $=h,e.html(d);for(t.unshift(m),u=gt(t,$,n,i,e,p,o,a,c),x(r,(function(t,n){t===$&&(r[n]=e[0])})),l=ut(e[0].childNodes,i);f.length;){var k=f.shift(),E=f.shift(),S=f.shift(),A=f.shift(),O=e[0];if(!k.$$destroyed){if(E!==h){var T=E.className;c.hasElementTranscludeDirective&&p.replace||(O=he($)),Dt(S,s(E),O),K(s(O),T)}w=u.transcludeOnThisElement?pt(k,u.transclude,A):A,u(l,k,O,r,w)}}f=null})).catch((function(t){z(t)&&d(t)})),function(t,e,n,r,i){var o=i;e.$$destroyed||(f?f.push(e,n,r,o):(u.transcludeOnThisElement&&(o=pt(e,u.transclude,i)),u(l,e,n,r,o)))}}function St(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function At(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw pn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,bt(r))}function Ot(e,n){switch(e=f(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function Tt(t){return J(T.valueOf(t),"ng-prop-srcset")}function Mt(t,e,n,r){if(p.test(r))throw pn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=nt(t),o=function(t,e){var n=e.toLowerCase();return E[t+"|"+n]||E["*|"+n]}(i,r),s=j;"srcset"!==r||"img"!==i&&"source"!==i?o&&(s=T.getTrusted.bind(T,o)):s=Tt,e.push({priority:100,compile:function(t,e){var i=k(e[n]),o=k(e[n],(function(t){return T.valueOf(t)}));return{pre:function(t,e){function n(){var n=i(t);e[0][r]=s(n)}n(),t.$watch(o,n)}}}})}function Rt(t,e,n){t.push(Po(k,A,d,e,n,!1))}function Pt(t,e,r,i,o){var s=nt(t),a=function(t,e){return"srcdoc"===e?T.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?T.RESOURCE_URL:T.MEDIA_URL:"xlinkHref"===e?"image"===t?T.MEDIA_URL:"a"===t?T.URL:T.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?T.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:T.URL}(s,i),c=!o,l=u[i]||o,f=n(r,c,a,l);if(f){if("multiple"===i&&"select"===s)throw pn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",bt(t));if(p.test(i))throw pn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:function(){return{pre:function(t,e,o){var s=o.$$observers||(o.$$observers=It()),c=o[i];c!==r&&(f=c&&n(c,!0,a,l),r=c),f&&(o[i]=f(t),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||t).$watch(f,(function(t,e){"class"===i&&t!==e?o.$updateClass(t,e):o.$set(i,t)})))}}}})}}function Dt(e,n,r){var i,o,a=n[0],c=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===a){e[i++]=r;for(var l=i,f=l+c-1,h=e.length;l<h;l++,f++)f<h?e[l]=e[f]:delete e[l];e.length-=c-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var p=t.document.createDocumentFragment();for(i=0;i<c;i++)p.appendChild(n[i]);for(s.hasData(a)&&(s.data(r,s.data(a)),s(a).off("$destroy")),s.cleanData(p.querySelectorAll("*")),i=1;i<c;i++)delete n[i];n[0]=r,n.length=1}function _t(t,e){return O((function(){return t.apply(null,arguments)}),t,e)}function Bt(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){d(t,bt(n))}}function Vt(t,e){if(y)throw pn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function Lt(t,e,r,i,o){var s,a=[],c={};function u(e,n,i){W(r.$onChanges)&&!st(n,i)&&(N||(t.$$postDigest(q),N=[]),s||(s={},N.push(f)),s[e]&&(i=s[e].previousValue),s[e]=new mn(i,n))}function f(){r.$onChanges(s),s=void 0}return x(i,(function(i,s){var f,h,p,d,$,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||l.call(e,m)||(Vt(m,o.name),r[s]=e[m]=void 0),$=e.$observe(m,(function(t){if(L(t)||G(t)){var e=r[s];u(s,t,e),r[s]=t}})),e.$$observers[m].$$scope=t,L(f=e[m])?r[s]=n(f)(t):G(f)&&(r[s]=f),c[s]=new mn(dn,r[s]),a.push($);break;case"=":if(!l.call(e,m)){if(v)break;Vt(m,o.name),e[m]=void 0}if(v&&!e[m])break;h=k(e[m]),d=h.literal?at:st,p=h.assign||function(){throw f=r[s]=h(t),pn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[m],m,o.name)},f=r[s]=h(t);var g=function(e){return d(e,r[s])||(d(e,f)?p(t,e=r[s]):r[s]=e),f=e};g.$stateful=!0,$=i.collection?t.$watchCollection(e[m],g):t.$watch(k(e[m],g),null,h.literal),a.push($);break;case"<":if(!l.call(e,m)){if(v)break;Vt(m,o.name),e[m]=void 0}if(v&&!e[m])break;var y=(h=k(e[m])).literal,b=r[s]=h(t);c[s]=new mn(dn,r[s]),$=t[i.collection?"$watchCollection":"$watch"](h,(function(t,e){if(e===t){if(e===b||y&&at(e,b))return;e=b}u(s,t,e),r[s]=t})),a.push($);break;case"&":if(v||l.call(e,m)||Vt(m,o.name),(h=e.hasOwnProperty(m)?k(e[m]):P)===P&&v)break;r[s]=function(e){return h(t,e)}}})),{initialChanges:c,removeWatches:a.length&&function(){for(var t=0,e=a.length;t<e;++t)a[t]()}}}}]}function mn(t,e){this.previousValue=t,this.currentValue=e}$n.$inject=["$provide","$$sanitizeUriProvider"],mn.prototype.isFirstChange=function(){return this.previousValue===dn};var vn=/^((?:x|data)[:\-_])/i,gn=/[:\-_]+(.)/g;function yn(t){return t.replace(vn,"").replace(gn,(function(t,e,n){return n?e.toUpperCase():e}))}function bn(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var s=r[o],a=0;a<i.length;a++)if(s===i[a])continue t;n+=(n.length>0?" ":"")+s}return n}function wn(t){var e=(t=s(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Ut&&""===n.nodeValue.trim())&&d.call(t,e,1)}return t}var xn=i("$controller"),Cn=/^(\S+)(\s+as\s+([\w$]+))?$/;function kn(t,e){if(e&&L(e))return e;if(L(t)){var n=Cn.exec(t);if(n)return n[3]}}function En(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){_t(e,"controller"),V(e)?O(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,o,s){var a,c,u,l;if(o=!0===o,s&&L(s)&&(l=s),L(r)){if(!(c=r.match(Cn)))throw xn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(u=c[1],l=l||c[3],!(r=t.hasOwnProperty(u)?t[u]:function(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=i.length,s=0;s<o;s++)r=i[s],t&&(t=t[r]);return t}(i.$scope,u)))throw xn("ctrlreg","The controller with the name '{0}' is not registered.",u);Dt(r,u,!0)}if(o){var f=(H(r)?r[r.length-1]:r).prototype;return a=Object.create(f||null),l&&n(i,l,a,u||r.name),O((function(){var t=e.invoke(r,a,i,u);return t!==a&&(V(t)||W(t))&&(a=t,l&&n(i,l,a,u||r.name)),a}),{instance:a,identifier:l})}return a=e.instantiate(r,i,u),l&&n(i,l,a,u||r.name),a};function n(t,e,n,r){if(!t||!V(t.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}function Sn(){this.$get=["$window",function(t){return s(t.document)}]}function An(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",(function(){t.off("visibilitychange",i)})),function(){return r}}]}function On(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var Tn=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof s&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Mn={"Content-Type":"application/json;charset=utf-8"},Nn=/^\[|^\{(?!\{)/,Rn={"[":/]$/,"{":/}$/},Pn=/^\)]\}',?\n/,jn=i("$http");function Dn(t){return V(t)?q(t)?t.toISOString():dt(t):t}function _n(){this.$get=function(){return function(t){if(!t)return"";var e=[];return C(t,(function(t,n){null===t||B(t)||W(t)||(H(t)?x(t,(function(t){e.push(kt(n)+"="+kt(Dn(t)))})):e.push(kt(n)+"="+kt(Dn(t))))})),e.join("&")}}}function Bn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){H(n)?x(n,(function(e,n){t(e,r+"["+(V(e)?n:"")+"]")})):V(n)&&!q(n)?C(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):(W(n)&&(n=n()),e.push(kt(r)+"="+(null==n?"":kt(Dn(n)))))}(t,"",!0),e.join("&")}}}function In(t,e){if(L(t)){var n=t.replace(Pn,"").trim();if(n){var r=e("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(s=(o=n).match(Nn))&&Rn[s[0]].test(o))try{t=$t(n)}catch(e){if(!i)return t;throw jn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,s;return t}function Vn(t){var e,n=It();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return L(t)?x(t.split("\n"),(function(t){e=t.indexOf(":"),r(f(Q(t.substr(0,e))),Q(t.substr(e+1)))})):V(t)&&x(t,(function(t,e){r(f(e),Q(t))})),n}function Un(t){var e;return function(n){if(e||(e=Vn(t)),n){var r=e[f(n)];return void 0===r&&(r=null),r}return e}}function Ln(t,e,n,r){return W(r)?r(t,e,n):(x(r,(function(r){t=r(t,e,n)})),t)}function Fn(t){return 200<=t&&t<300}function qn(){var t=this.defaults={transformResponse:[In],transformRequest:[function(t){return!V(t)||(e=t,"[object File]"===m.call(e))||function(t){return"[object Blob]"===m.call(t)}(t)||function(t){return"[object FormData]"===m.call(t)}(t)?t:dt(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Lt(Mn),put:Lt(Mn),patch:Lt(Mn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},e=!1;this.useApplyAsync=function(t){return I(t)?(e=!!t,this):e};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,s,a,c,u,l,p,d){var $=c("$http");t.paramSerializer=L(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var m=[];x(n,(function(t){m.unshift(L(t)?p.get(t):p.invoke(t))}));var v,g=(v=[oi].concat(r.map(ai)),function(t){var e=ai(t);return v.some(ci.bind(null,e))});function y(n){if(!V(n))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!L(d.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var r=O({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);r.headers=function(e){var n,r,i,o=t.headers,s=O({},e.headers);o=O({},o.common,o[f(e.method)]);t:for(n in o){for(i in r=f(n),s)if(f(i)===r)continue t;s[n]=o[n]}return function(t,e){var n,r={};return x(t,(function(t,i){W(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(s,Lt(e))}(n),r.method=h(r.method),r.paramSerializer=L(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var c=[],v=[],b=l.resolve(r);return x(m,(function(t){(t.request||t.requestError)&&c.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)})),b=w(b,c),(b=w(b=b.then((function(n){var r=n.headers,i=Ln(n.data,Un(r),void 0,n.transformRequest);return B(i)&&x(r,(function(t,e){"content-type"===f(e)&&delete r[e]})),B(n.withCredentials)&&!B(t.withCredentials)&&(n.withCredentials=t.withCredentials),function(n,r){var i,o,c=l.defer(),h=c.promise,p=n.headers,m="jsonp"===f(n.method),v=n.url;if(m?v=d.getTrustedResourceUrl(v):L(v)||(v=d.valueOf(v)),v=function(t,e){return e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t}(v,n.paramSerializer(n.params)),m&&(v=function(t,e){var n=t.split("?");if(n.length>2)throw jn("badjsonp",'Illegal use more than one "?", in url, "{1}"',t);return x(xt(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw jn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(r===e)throw jn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam)),y.pendingRequests.push(n),h.then(E,E),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=V(n.cache)?n.cache:V(t.cache)?t.cache:$),i&&(I(o=i.get(v))?K(o)?o.then(k,k):H(o)?C(o[1],o[0],Lt(o[2]),o[3],o[4]):C(o,200,{},"OK","complete"):i.put(v,h)),B(o)){var b=g(n.url)?a()[n.xsrfCookieName||t.xsrfCookieName]:void 0;b&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=b),s(n.method,v,r,(function(t,n,r,o,s){function a(){C(n,t,r,o,s)}i&&(Fn(t)?i.put(v,[t,n,Vn(r),o,s]):i.remove(v)),e?u.$applyAsync(a):(a(),u.$$phase||u.$apply())}),p,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return h;function w(t){if(t){var n={};return x(t,(function(t,r){n[r]=function(n){function r(){t(n)}e?u.$applyAsync(r):u.$$phase?r():u.$apply(r)}})),n}}function C(t,e,r,i,o){(Fn(e=e>=-1?e:0)?c.resolve:c.reject)({data:t,status:e,headers:Un(r),config:n,statusText:i,xhrStatus:o})}function k(t){C(t.data,t.status,Lt(t.headers()),t.statusText,t.xhrStatus)}function E(){var t=y.pendingRequests.indexOf(n);-1!==t&&y.pendingRequests.splice(t,1)}}(n,i).then(C,C)})),v)).finally((function(){o.$$completeOutstandingRequest(P,"$http")}));function w(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function C(t){var e=O({},t);return e.data=Ln(t.data,t.headers,t.status,r.transformResponse),Fn(t.status)?e:l.reject(e)}}return y.pendingRequests=[],function(t){x(arguments,(function(t){y[t]=function(e,n){return y(O({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){x(arguments,(function(t){y[t]=function(e,n,r){return y(O({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),y.defaults=t,y}]}function Hn(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,i){return function(o,s,a,c,u,l,h,p,d,$){if(s=s||t.url(),"jsonp"===f(o))var m=r.createCallback(s),v=function(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=i.createElement("script"),s=null;return o.type="text/javascript",o.src=t,o.async=!0,s=function(t){o.removeEventListener("load",s),o.removeEventListener("error",s),i.body.removeChild(o),o=null;var a=-1,c="unknown";t&&("load"!==t.type||r.wasCalled(e)||(t={type:"error"}),c=t.type,a="error"===t.type?404:200),n&&n(a,c)},o.addEventListener("load",s),o.addEventListener("error",s),i.body.appendChild(o),s}(s,m,(function(t,e){var n=200===t&&r.getResponse(m);C(c,t,n,"",e,"complete"),r.removeCallback(m)}));else{var g=e(o,s),y=!1;g.open(o,s,!0),x(u,(function(t,e){I(t)&&g.setRequestHeader(e,t)})),g.onload=function(){var t=g.statusText||"",e="response"in g?g.response:g.responseText,n=1223===g.status?204:g.status;0===n&&(n=e?200:"file"===ai(s).protocol?404:0),C(c,n,e,g.getAllResponseHeaders(),t,"complete")};if(g.onerror=function(){C(c,-1,null,null,"","error")},g.ontimeout=function(){C(c,-1,null,null,"","timeout")},g.onabort=function(){C(c,-1,null,null,"",y?"timeout":"abort")},x(d,(function(t,e){g.addEventListener(e,t)})),x($,(function(t,e){g.upload.addEventListener(e,t)})),h&&(g.withCredentials=!0),p)try{g.responseType=p}catch(t){if("json"!==p)throw t}g.send(B(a)?null:a)}if(l>0)var b=n((function(){w("timeout")}),l);else K(l)&&l.then((function(){w(I(l.$$timeoutId)?"timeout":"abort")}));function w(t){y="timeout"===t,v&&v(),g&&g.abort()}function C(t,e,r,i,o,s){I(b)&&n.cancel(b),v=g=null,t(e,r,i,o,s)}}}(t,r,t.defer,e,n[0])}]}var Wn=y.$interpolateMinErr=i("$interpolate");function Jn(){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(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(a,c,u,h){var p=u===i.URL||u===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(c)return;var d=l(a);p&&(d=i.getTrusted(u,d));var $=D(d);return $.exp=a,$.expressions=[],$.$$watchDelegate=f,$}h=!!h;for(var m,v,g,y,b,w=0,x=[],C=a.length,k=[],E=[];w<C;){if(-1===(m=a.indexOf(t,w))||-1===(v=a.indexOf(e,m+o))){w!==C&&k.push(l(a.substring(w)));break}w!==m&&k.push(l(a.substring(w,m))),y=a.substring(m+o,v),x.push(y),w=v+s,E.push(k.length),k.push("")}b=1===k.length&&1===E.length;var S=p&&b?void 0:function(t){try{return t=u&&!p?i.getTrusted(u,t):i.valueOf(t),h&&!I(t)?t:Vt(t)}catch(t){r(Wn.interr(a,t))}};if(g=x.map((function(t){return n(t,S)})),!c||x.length){var A=function(t){for(var e=0,n=x.length;e<n;e++){if(h&&B(t[e]))return;k[E[e]]=t[e]}return p?i.getTrusted(u,b?k[0]:k.join("")):(u&&k.length>1&&Wn.throwNoconcat(a),k.join(""))};return O((function(t){var e=0,n=x.length,i=new Array(n);try{for(;e<n;e++)i[e]=g[e](t);return A(i)}catch(t){r(Wn.interr(a,t))}}),{exp:a,expressions:x,$$watchDelegate:function(t,e){var n;return t.$watchGroup(g,(function(r,i){var o=A(r);e.call(this,o,r!==i?n:o,t),n=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}Wn.throwNoconcat=function(t){throw Wn("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)},Wn.interr=function(t,e){return Wn("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Xn=i("$interval");function Yn(){this.$get=["$$intervalFactory","$window",function(t,e){var n={},r=function(t){e.clearInterval(t),delete n[t]},i=t((function(t,r,i){var o=e.setInterval(t,r);return n[o]=i,o}),r);return i.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$intervalId"))throw Xn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(t.$$intervalId))return!1;var e=t.$$intervalId,i=n[e];return Ir(i.promise),i.reject("canceled"),r(e),!0},i}]}function Gn(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,o){return function(s,a,c,u){var l=arguments.length>4,f=l?ft(arguments,4):[],h=0,p=I(u)&&!u,d=(p?n:e).defer(),$=d.promise;function m(){l?s.apply(null,f):s(h)}function v(){p?t.defer(m):r.$evalAsync(m),d.notify(h++),c>0&&h>=c&&(d.resolve(h),o($.$$intervalId)),p||r.$apply()}return c=I(c)?c:0,$.$$intervalId=i(v,a,d,p),$}}}]}var Kn=function(){this.$get=function(){var t=y.callbacks,e={};return{createCallback:function(n){var r="_"+(t.$$counter++).toString(36),i="angular.callbacks."+r,o=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(r);return e[i]=t[r]=o,i},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){var r=e[n];delete t[r.id],delete e[n]}}}},Zn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Qn={http:80,https:443,ftp:21},tr=i("$location");function er(t,e){var n=ai(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=M(n.port)||Qn[n.protocol]||null}var nr=/^\s*[\\/]{2,}/;function rr(t,e,n){if(nr.test(t))throw tr("badpath",'Invalid url "{0}".',t);var r="/"!==t.charAt(0);r&&(t="/"+t);var i=ai(t),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){for(var n=t.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),e.$$search=xt(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ir(t,e){return t.slice(0,e.length)===e}function or(t,e){if(ir(e,t))return e.substr(t.length)}function sr(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function ar(t,e,n){this.$$html5=!0,n=n||"",er(t,this),this.$$parse=function(t){var n=or(e,t);if(!L(n))throw tr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);rr(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(I(o=or(t,r))?(s=o,a=n&&I(o=or(n,o))?e+(or("/",o)||o):t+s):I(o=or(e,r))?a=e+o:e===r+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,s,a}}function cr(t,e,n){er(t,this),this.$$parse=function(r){var i,o=or(t,r)||or(e,r);B(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",B(o)&&(t=r,this.replace())):B(i=or(n,o))&&(i=o),rr(i,this,!1),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return ir(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return sr(t)===sr(e)&&(this.$$parse(e),!0)}}function ur(t,e,n){this.$$html5=!0,cr.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t===sr(r)?o=r:(s=or(e,r))?o=t+n+s:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,s},this.$$normalizeUrl=function(e){return t+n+e}}var lr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){var t,e,n,r,i,o;this.$$url=(t=this.$$path,e=this.$$search,n=this.$$hash,r=[],x(e,(function(t,e){H(t)?x(t,(function(t){r.push(kt(e,!0)+(!0===t?"":"="+kt(t,!0)))})):r.push(kt(e,!0)+(!0===t?"":"="+kt(t,!0)))})),i=r.length?r.join("&"):"",o=n?"#"+Ct(n):"",function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=Ct(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(i?"?"+i:"")+o),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:fr("$$absUrl"),url:function(t){if(B(t))return this.$$url;var e=Zn.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:fr("$$protocol"),host:fr("$$host"),port:fr("$$port"),path:hr("$$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(L(t)||F(t))t=t.toString(),this.$$search=xt(t);else{if(!V(t))throw tr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");x(t=ot(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:B(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:hr("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function fr(t){return function(){return this[t]}}function hr(t,e){return function(n){return B(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function pr(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return I(e)?(t=e,this):t},this.html5Mode=function(t){return G(t)?(e.enabled=t,this):V(t)?(G(t.enabled)&&(e.enabled=t.enabled),G(t.requireBase)&&(e.requireBase=t.requireBase),(G(t.rewriteLinks)||L(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var c,u,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw tr("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(h||"/"),u=i.history?ar:ur}else l=sr(p),u=cr;var d=function(t){return t.substr(0,sr(t).lastIndexOf("/")+1)}(l);(c=new u(l,d,"#"+t)).$$parseLinkUrl(p,p),c.$$state=r.state();var $=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=c.url(),o=c.$$state;try{r.url(t,e,n),c.$$state=r.state()}catch(t){throw c.url(i),c.$$state=o,t}}o.on("click",(function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var a=s(t.target);"a"!==nt(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;if(!L(i)||!B(a.attr(i))){var u=a.prop("href"),l=a.attr("href")||a.attr("xlink:href");V(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=ai(u.animVal).href),$.test(u)||!u||a.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(u,l)&&(t.preventDefault(),c.absUrl()!==r.url()&&n.$apply())}}})),c.absUrl()!==p&&r.url(c.absUrl(),!0);var v=!0;return r.onUrlChange((function(t,e){ir(t,d)?(n.$evalAsync((function(){var r,i=c.absUrl(),o=c.$$state;c.$$parse(t),c.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,c.absUrl()===t&&(r?(c.$$parse(i),c.$$state=o,m(i,!1,o)):(v=!1,g(i,o)))})),n.$$phase||n.$digest()):a.location.href=t})),n.$watch((function(){if(v||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var t=r.url(),e=c.absUrl(),o=r.state(),s=c.$$replace,a=!((u=t)===(l=e)||ai(u).href===ai(l).href)||c.$$html5&&i.history&&o!==c.$$state;(v||a)&&(v=!1,n.$evalAsync((function(){var e=c.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(r?(c.$$parse(t),c.$$state=o):(a&&m(e,s,o===c.$$state?null:c.$$state),g(t,o)))})))}var u,l;c.$$replace=!1})),c;function g(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}}]}function dr(){var t=!0,e=this;this.debugEnabled=function(e){return I(e)?(t=e,this):t},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:(r=a("debug"),function(){t&&r.apply(e,arguments)})};function s(t){return z(t)&&(t.stack&&i?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 a(t){var e=n.console||{},r=e[t]||e.log||P;return function(){var t=[];return x(arguments,(function(e){t.push(s(e))})),Function.prototype.apply.call(r,e,t)}}}]}x([ur,cr,ar],(function(t){t.prototype=Object.create(lr),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ar||!this.$$html5)throw tr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=B(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var $r=i("$parse"),mr={}.constructor.prototype.valueOf;function vr(t){return t+""}var gr=It();x("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){gr[t]=!0}));var yr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},br=function(t){this.options=t};br.prototype={constructor:br,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=gr[e],o=gr[n],s=gr[r];if(i||o||s){var a=s?r:o?n:e;this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=I(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw $r("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=f(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var s=this.text.substring(this.index+1,this.index+5);s.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+s+"]"),this.index+=4,n+=String.fromCharCode(parseInt(s,16))}else n+=yr[o]||o;i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var wr=function(t,e){this.lexer=t,this.options=e};function xr(t,e){return void 0!==t?t:e}function Cr(t,e){return void 0===t?e:void 0===e?t:t+e}function kr(t,e,n){var r,i,o,s=t.isPure=function(t,e){switch(t.type){case wr.MemberExpression:if(t.computed)return!1;break;case wr.UnaryExpression:return 1;case wr.BinaryExpression:return"+"!==t.operator&&1;case wr.CallExpression:return!1}return void 0===e?2:e}(t,n);switch(t.type){case wr.Program:r=!0,x(t.body,(function(t){kr(t.expression,e,s),r=r&&t.expression.constant})),t.constant=r;break;case wr.Literal:t.constant=!0,t.toWatch=[];break;case wr.UnaryExpression:kr(t.argument,e,s),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case wr.BinaryExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case wr.LogicalExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case wr.ConditionalExpression:kr(t.test,e,s),kr(t.alternate,e,s),kr(t.consequent,e,s),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case wr.Identifier:t.constant=!1,t.toWatch=[t];break;case wr.MemberExpression:kr(t.object,e,s),t.computed&&kr(t.property,e,s),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case wr.CallExpression:o=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),r=o,i=[],x(t.arguments,(function(t){kr(t,e,s),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=o?i:[t];break;case wr.AssignmentExpression:kr(t.left,e,s),kr(t.right,e,s),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case wr.ArrayExpression:r=!0,i=[],x(t.elements,(function(t){kr(t,e,s),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=i;break;case wr.ObjectExpression:r=!0,i=[],x(t.properties,(function(t){kr(t.value,e,s),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(kr(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))})),t.constant=r,t.toWatch=i;break;case wr.ThisExpression:case wr.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Er(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}}function Sr(t){return t.type===wr.Identifier||t.type===wr.MemberExpression}function Ar(t){if(1===t.body.length&&Sr(t.body[0].expression))return{type:wr.AssignmentExpression,left:t.body[0].expression,right:{type:wr.NGValueParameter},operator:"="}}function Or(t){this.$filter=t}function Tr(t){this.$filter=t}function Mr(t,e,n){this.ast=new wr(t,n),this.astCompiler=n.csp?new Tr(e):new Or(e)}function Nr(t){return W(t.valueOf)?t.valueOf():mr.call(t)}function Rr(){var t,e,n=It(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(i){var o={csp:ct().noUnsafeEval,literals:ot(r),isIdentifierStart:W(t)&&t,isIdentifierContinue:W(e)&&e};return s.$$getAst=function(t){return new Mr(new br(o),i,o).getAst(t).ast},s;function s(t,e){var r,s;switch(typeof t){case"string":return t=t.trim(),(r=n[s=t])||(r=new Mr(new br(o),i,o).parse(t),n[s]=h(r)),p(r,e);case"function":return p(t,e);default:return p(P,e)}}function a(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Nr(t))&&!n)&&(t===e||t!=t&&e!=e)}function c(t,e,n,r,i){var o,s=r.inputs;if(1===s.length){var c=a;return s=s[0],t.$watch((function(t){var e=s(t);return a(e,c,s.isPure)||(o=r(t,void 0,void 0,[e]),c=e&&Nr(e)),o}),e,n,i)}for(var u=[],l=[],f=0,h=s.length;f<h;f++)u[f]=a,l[f]=null;return t.$watch((function(t){for(var e=!1,n=0,i=s.length;n<i;n++){var c=s[n](t);(e||(e=!a(c,u[n],s[n].isPure)))&&(l[n]=c,u[n]=c&&Nr(c))}return e&&(o=r(t,void 0,void 0,l)),o}),e,n,i)}function u(t,e,n,r,i){var o,s,a=r.literal?l:I,c=r.$$intercepted||r,u=r.$$interceptor||j,f=r.inputs&&!c.inputs;return d.literal=r.literal,d.constant=r.constant,d.inputs=r.inputs,h(d),o=t.$watch(d,e,n,i);function p(){a(s)&&o()}function d(t,e,n,r){return s=f&&r?r[0]:c(t,e,n,r),a(s)&&t.$$postDigest(p),u(s)}}function l(t){var e=!0;return x(t,(function(t){I(t)||(e=!1)})),e}function f(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(t){return t.constant?t.$$watchDelegate=f:t.oneTime?t.$$watchDelegate=u:t.inputs&&(t.$$watchDelegate=c),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,o,s){var a=n&&s?s[0]:t(r,i,o,s);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return 2===t.isPure?function(e){return t(e)}:t})))),h(r)}}]}function Pr(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return Dr((function(t){e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return I(e)?(t=e,this):t}}function jr(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return Dr((function(t){e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return I(e)?(t=e,this):t}}function Dr(t,e,n){var r=i("$q",TypeError),o=0,s=[];function a(){return new c}function c(){var t=this.promise=new u;this.resolve=function(e){h(t,e)},this.reject=function(e){d(t,e)},this.notify=function(e){m(t,e)}}function u(){this.$$state={status:0}}function l(){for(;!o&&s.length;){var t=s.shift();if(!_r(t)){Br(t);var n="Possibly unhandled rejection: "+Ft(t.value);z(t.value)?e(t.value,n):e(n)}}}function f(r){!n||r.pending||2!==r.status||_r(r)||(0===o&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,t((function(){!function(r){var i,s,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var c=0,u=a.length;c<u;++c){Br(r),s=a[c][0],i=a[c][r.status];try{W(i)?h(s,i(r.value)):1===r.status?h(s,r.value):d(s,r.value)}catch(t){d(s,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--o,n&&0===o&&t(l)}}(r)})))}function h(t,e){t.$$state.status||(e===t?$(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):p(t,e))}function p(t,e){var n,r=!1;try{(V(e)||W(e))&&(n=e.then),W(n)?(t.$$state.status=-1,n.call(e,(function(e){r||(r=!0,p(t,e))}),i,(function(e){m(t,e)}))):(t.$$state.value=e,t.$$state.status=1,f(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,$(t,e))}}function d(t,e){t.$$state.status||$(t,e)}function $(t,e){t.$$state.value=e,t.$$state.status=2,f(t.$$state)}function m(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((function(){for(var t,n,o=0,s=i.length;o<s;o++){n=i[o][0],t=i[o][3];try{m(n,W(t)?t(r):r)}catch(t){e(t)}}}))}function v(t){var e=new u;return d(e,t),e}function g(t,e,n){var r=null;try{W(n)&&(r=n())}catch(t){return v(t)}return K(r)?r.then((function(){return e(t)}),v):e(t)}function y(t,e,n,r){var i=new u;return h(i,t),i.then(e,n,r)}O(u.prototype,{then:function(t,e,n){if(B(t)&&B(e)&&B(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&f(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return g(e,b,t)}),(function(e){return g(e,v,t)}),e)}});var b=y;function w(t){if(!W(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);var e=new u;return t((function(t){h(e,t)}),(function(t){d(e,t)})),e}return w.prototype=u.prototype,w.defer=a,w.reject=v,w.when=y,w.resolve=b,w.all=function(t){var e=new u,n=0,r=H(t)?[]:{};return x(t,(function(t,i){n++,y(t).then((function(t){r[i]=t,--n||h(e,r)}),(function(t){d(e,t)}))})),0===n&&h(e,r),e},w.race=function(t){var e=a();return x(t,(function(t){y(t).then(e.resolve,e.reject)})),e.promise},w}function _r(t){return!!t.pur}function Br(t){t.pur=!0}function Ir(t){t.$$state&&Br(t.$$state)}function Vr(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Ur(){var t=10,e=i("$rootScope"),n=null,r=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,s,a){function c(t){t.currentScope.$$destroyed=!0}function u(t){9===o&&(t.$$childHead&&u(t.$$childHead),t.$$nextSibling&&u(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function f(){this.$id=E(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}f.prototype={constructor:f,$new:function(t,e){var n;return e=e||this,t?(n=new f).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=E(),this.$$ChildScope=null,this.$$suspended=!1}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!==this)&&n.$on("$destroy",c),n},$watch:function(t,e,r,i){var o=s(t),a=W(e)?e:P;if(o.$$watchDelegate)return o.$$watchDelegate(this,a,r,o,t);var c=this,u=c.$$watchers,l={fn:a,last:C,get:o,exp:i||t,eq:!!r};return n=null,u||((u=c.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(l),u.$$digestWatchIndex++,y(this,1),function(){var t=it(u,l);t>=0&&(y(c,-1),t<u.$$digestWatchIndex&&u.$$digestWatchIndex--),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;try{a?(a=!1,e(r,r,o)):e(r,n,o)}finally{for(var i=0;i<t.length;i++)n[i]=r[i]}}return x(t,(function(t,e){var n=o.$watch(t,(function(t){r[e]=t,s||(s=!0,o.$evalAsync(u))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){$.$$pure=s(t).literal,$.$stateful=!$.$$pure;var n,r,i,o=this,a=e.length>1,c=0,u=s(t,$),f=[],h={},p=!0,d=0;function $(t){var e,i,o,s;if(!B(n=t)){if(V(n))if(w(n)){r!==f&&(d=(r=f).length=0,c++),e=n.length,d!==e&&(c++,r.length=d=e);for(var a=0;a<e;a++)s=r[a],o=n[a],s!=s&&o!=o||s===o||(c++,r[a]=o)}else{for(i in r!==h&&(r=h={},d=0,c++),e=0,n)l.call(n,i)&&(e++,o=n[i],s=r[i],i in r?s!=s&&o!=o||s===o||(c++,r[i]=o):(d++,r[i]=o,c++));if(d>e)for(i in c++,r)l.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,c++);return c}}return this.$watch(u,(function(){if(p?(p=!1,e(n,n,o)):e(n,i,o),a)if(V(n))if(w(n)){i=new Array(n.length);for(var t=0;t<n.length;t++)i[t]=n[t]}else for(var r in i={},n)l.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,s,c,u,l,f,$,y,b,w=t,x=p.length?h:this,E=[];v("$digest"),a.$$checkUrlChange(),this===h&&null!==r&&(a.defer.cancel(r),k()),n=null;do{l=!1,$=x;for(var S=0;S<p.length;S++){try{(0,(b=p[S]).fn)(b.scope,b.locals)}catch(t){i(t)}n=null}p.length=0;t:do{if(u=!$.$$suspended&&$.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(o=u[u.$$digestWatchIndex])if((s=(0,o.get)($))===(c=o.last)||(o.eq?at(s,c):N(s)&&N(c))){if(o===n){l=!1;break t}}else l=!0,n=o,o.last=o.eq?ot(s,null):s,(0,o.fn)(s,c===C?s:c,$),w<5&&(E[y=4-w]||(E[y]=[]),E[y].push({msg:W(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:s,oldVal:c}))}catch(t){i(t)}if(!(f=!$.$$suspended&&$.$$watchersCount&&$.$$childHead||$!==x&&$.$$nextSibling))for(;$!==x&&!(f=$.$$nextSibling);)$=$.$parent}while($=f);if((l||p.length)&&!w--)throw g(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,E)}while(l||p.length);for(g();m<d.length;)try{d[m++]()}catch(t){i(t)}d.length=m=0,a.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===h&&a.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=P,this.$on=this.$watch=this.$watchGroup=function(){return P},this.$$listeners={},this.$$nextSibling=null,u(this)}},$eval:function(t,e){return s(t)(this,e)},$evalAsync:function(t,e){h.$$phase||p.length||a.defer((function(){p.length&&h.$digest()}),null,"$evalAsync"),p.push({scope:this,fn:s(t),locals:e})},$$postDigest:function(t){d.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{g()}}catch(t){i(t)}finally{try{h.$digest()}catch(t){throw i(t),t}}},$applyAsync:function(t){var e=this;t&&$.push((function(){e.$eval(t)})),t=s(t),null===r&&(r=a.defer((function(){h.$apply(k)}),null,"$applyAsync"))},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(delete n[r],b(i,1,t))}},$emit:function(t,e){var n,r,o,s=[],a=this,c=!1,u={name:t,targetScope:a,stopPropagation:function(){c=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=lt([u],arguments,1);do{for(n=a.$$listeners[t]||s,u.currentScope=a,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,l)}catch(t){i(t)}else n.splice(r,1),r--,o--;if(c)break;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=n,o=n,s={name:t,targetScope:n,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;for(var a,c,u,l=lt([s],arguments,1);r=o;){for(s.currentScope=r,c=0,u=(a=r.$$listeners[t]||[]).length;c<u;c++)if(a[c])try{a[c].apply(null,l)}catch(t){i(t)}else a.splice(c,1),c--,u--;if(!(o=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}};var h=new f,p=h.$$asyncQueue=[],d=h.$$postDigestQueue=[],$=h.$$applyAsyncQueue=[],m=0;return h;function v(t){if(h.$$phase)throw e("inprog","{0} already in progress",h.$$phase);h.$$phase=t}function g(){h.$$phase=null}function y(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function b(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function C(){}function k(){for(;$.length;)try{$.shift()()}catch(t){i(t)}r=null}}]}function Lr(){var t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return I(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return I(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i=r?e:t,o=ai(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}wr.Program="Program",wr.ExpressionStatement="ExpressionStatement",wr.AssignmentExpression="AssignmentExpression",wr.ConditionalExpression="ConditionalExpression",wr.LogicalExpression="LogicalExpression",wr.BinaryExpression="BinaryExpression",wr.UnaryExpression="UnaryExpression",wr.CallExpression="CallExpression",wr.MemberExpression="MemberExpression",wr.Identifier="Identifier",wr.Literal="Literal",wr.ArrayExpression="ArrayExpression",wr.Property="Property",wr.ObjectExpression="ObjectExpression",wr.ThisExpression="ThisExpression",wr.LocalsExpression="LocalsExpression",wr.NGValueParameter="NGValueParameter",wr.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:wr.Program,body:t}},expressionStatement:function(){return{type:wr.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();if(this.expect("=")){if(!Sr(t))throw $r("lval","Trying to assign a value to a non l-value");t={type:wr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:wr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:wr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:wr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:wr.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.selfReferential.hasOwnProperty(this.peek().text)?t=ot(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:wr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:wr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:wr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:wr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:wr.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.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:wr.Identifier,name:t.text}},constant:function(){return{type:wr.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:wr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:wr.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:wr.ObjectExpression,properties:e}},throwError:function(t,e){throw $r("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 $r("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 $r("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)},selfReferential:{this:{type:wr.ThisExpression},$locals:{type:wr.LocalsExpression}}},Or.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},kr(t,e.$filter);var n,r="";if(this.stage="assign",n=Ar(t)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Er(t.body);e.stage="inputs",x(o,(function(t,n){var r="fn"+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push({name:r,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",a=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,vr,xr,Cr);return this.state=this.stage=void 0,a},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return x(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return x(this.state.filters,(function(n,r){t.push(n+"=$filter("+e.escape(r)+")")})),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,r,i,o){var s,a,c,u,l,f=this;if(r=r||P,!o&&I(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case wr.Program:x(t.body,(function(e,n){f.recurse(e.expression,void 0,void 0,(function(t){a=t})),n!==t.body.length-1?f.current().body.push(a,";"):f.return_(a)}));break;case wr.Literal:u=this.escape(t.value),this.assign(e,u),r(e||u);break;case wr.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){a=t})),u=t.operator+"("+this.ifDefined(a,0)+")",this.assign(e,u),r(u);break;case wr.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){s=t})),this.recurse(t.right,void 0,void 0,(function(t){a=t})),u="+"===t.operator?this.plus(s,a):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(a,0):"("+s+")"+t.operator+"("+a+")",this.assign(e,u),r(u);break;case wr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),r(e);break;case wr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),r(e);break;case wr.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(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))),r(e);break;case wr.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,s,void 0,(function(){f.if_(f.notNull(s),(function(){t.computed?(a=f.nextId(),f.recurse(t.property,a),f.getStringValue(a),i&&1!==i&&f.if_(f.not(f.computedMember(s,a)),f.lazyAssign(f.computedMember(s,a),"{}")),u=f.computedMember(s,a),f.assign(e,u),n&&(n.computed=!0,n.name=a)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(s,t.property.name)),f.lazyAssign(f.nonComputedMember(s,t.property.name),"{}")),u=f.nonComputedMember(s,t.property.name),f.assign(e,u),n&&(n.computed=!1,n.name=t.property.name))}),(function(){f.assign(e,"undefined")})),r(e)}),!!i);break;case wr.CallExpression:e=e||this.nextId(),t.filter?(a=f.filter(t.callee.name),c=[],x(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),c.push(e)})),u=a+"("+c.join(",")+")",f.assign(e,u),r(e)):(a=f.nextId(),s={},c=[],f.recurse(t.callee,a,s,(function(){f.if_(f.notNull(a),(function(){x(t.arguments,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){c.push(t)}))})),u=s.name?f.member(s.context,s.name,s.computed)+"("+c.join(",")+")":a+"("+c.join(",")+")",f.assign(e,u)}),(function(){f.assign(e,"undefined")})),r(e)})));break;case wr.AssignmentExpression:a=this.nextId(),s={},this.recurse(t.left,void 0,s,(function(){f.if_(f.notNull(s.context),(function(){f.recurse(t.right,a),u=f.member(s.context,s.name,s.computed)+t.operator+a,f.assign(e,u),r(e||u)}))}),1);break;case wr.ArrayExpression:c=[],x(t.elements,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){c.push(t)}))})),u="["+c.join(",")+"]",this.assign(e,u),r(e||u);break;case wr.ObjectExpression:c=[],l=!1,x(t.properties,(function(t){t.computed&&(l=!0)})),l?(e=e||this.nextId(),this.assign(e,"{}"),x(t.properties,(function(t){t.computed?(s=f.nextId(),f.recurse(t.key,s)):s=t.key.type===wr.Identifier?t.key.name:""+t.key.value,a=f.nextId(),f.recurse(t.value,a),f.assign(f.member(e,s,t.computed),a)}))):(x(t.properties,(function(e){f.recurse(e.value,t.constant?void 0:f.nextId(),void 0,(function(t){c.push(f.escape(e.key.type===wr.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),u="{"+c.join(",")+"}",this.assign(e,u)),r(e||u);break;case wr.ThisExpression:this.assign(e,"s"),r(e||"s");break;case wr.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case wr.NGValueParameter:this.assign(e,"v"),r(e||"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+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},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(L(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(F(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 $r("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]}},Tr.prototype={compile:function(t){var e,n,r=this;kr(t,r.$filter),(e=Ar(t))&&(n=this.recurse(e));var i,o=Er(t.body);o&&(i=[],x(o,(function(t,e){var n=r.recurse(t);n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e})));var s=[];x(t.body,(function(t){s.push(r.recurse(t.expression))}));var a=0===t.body.length?P:1===t.body.length?s[0]:function(t,e){var n;return x(s,(function(r){n=r(t,e)})),n};return n&&(a.assign=function(t,e,r){return n(t,r,e)}),i&&(a.inputs=i),a},recurse:function(t,e,n){var r,i,o,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case wr.Literal:return this.value(t.value,e);case wr.UnaryExpression:return i=this.recurse(t.argument),this["unary"+t.operator](i,e);case wr.BinaryExpression:case wr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this["binary"+t.operator](r,i,e);case wr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case wr.Identifier:return s.identifier(t.name,e,n);case wr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case wr.CallExpression:return o=[],x(t.arguments,(function(t){o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,s){for(var a=[],c=0;c<o.length;++c)a.push(o[c](t,n,r,s));var u=i.apply(void 0,a,s);return e?{context:void 0,name:void 0,value:u}:u}:function(t,n,r,s){var a,c=i(t,n,r,s);if(null!=c.value){for(var u=[],l=0;l<o.length;++l)u.push(o[l](t,n,r,s));a=c.value.apply(c.context,u)}return e?{value:a}:a};case wr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,s){var a=r(t,n,o,s),c=i(t,n,o,s);return a.context[a.name]=c,e?{value:c}:c};case wr.ArrayExpression:return o=[],x(t.elements,(function(t){o.push(s.recurse(t))})),function(t,n,r,i){for(var s=[],a=0;a<o.length;++a)s.push(o[a](t,n,r,i));return e?{value:s}:s};case wr.ObjectExpression:return o=[],x(t.properties,(function(t){t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===wr.Identifier?t.key.name:""+t.key.value,computed:!1,value:s.recurse(t.value)})})),function(t,n,r,i){for(var s={},a=0;a<o.length;++a)o[a].computed?s[o[a].key(t,n,r,i)]=o[a].value(t,n,r,i):s[o[a].key]=o[a].value(t,n,r,i);return e?{value:s}:s};case wr.ThisExpression:return function(t){return e?{value:t}:t};case wr.LocalsExpression:return function(t,n){return e?{value:n}:n};case wr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=I(s)?+s:0,e?{value:s}:s}},"unary-":function(t,e){return function(n,r,i,o){var s=t(n,r,i,o);return s=I(s)?-s:-0,e?{value:s}:s}},"unary!":function(t,e){return function(n,r,i,o){var s=!t(n,r,i,o);return e?{value:s}:s}},"binary+":function(t,e,n){return function(r,i,o,s){var a=Cr(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),c=e(r,i,o,s),u=(I(a)?a:0)-(I(c)?c:0);return n?{value:u}:u}},"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}},"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}},"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}},"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:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,o,s){var a=i&&t in i?i:r;n&&1!==n&&a&&null==a[t]&&(a[t]={});var c=a?a[t]:void 0;return e?{context:a,name:t,value:c}:c}},computedMember:function(t,e,n,r){return function(i,o,s,a){var c,u,l=t(i,o,s,a);return null!=l&&(c=vr(c=e(i,o,s,a)),r&&1!==r&&l&&!l[c]&&(l[c]={}),u=l[c]),n?{context:l,name:c,value:u}:u}},nonComputedMember:function(t,e,n,r){return function(i,o,s,a){var c=t(i,o,s,a);r&&1!==r&&c&&null==c[e]&&(c[e]={});var u=null!=c?c[e]:void 0;return n?{context:c,name:e,value:u}:u}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}},Mr.prototype={constructor:Mr,parse:function(t){var e=this.getAst(t),n=this.astCompiler.compile(e.ast);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===wr.Literal||t.body[0].expression.type===wr.ArrayExpression||t.body[0].expression.type===wr.ObjectExpression)}(e.ast),n.constant=function(t){return t.constant}(e.ast),n.oneTime=e.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var Fr=i("$sce"),qr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Hr=/_([a-z])/g;function zr(t){return t.replace(Hr,Gt)}function Wr(t){var e=[];return I(t)&&x(t,(function(t){e.push(function(t){if("self"===t)return t;if(L(t)){if(t.indexOf("***")>-1)throw Fr("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=tt(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(J(t))return new RegExp("^"+t.source+"$");throw Fr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Jr(){this.SCE_CONTEXTS=qr;var e=["self"],n=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=Wr(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return arguments.length&&(n=Wr(t)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(t){throw Fr("unsafe","Attempting to use an unsafe value in a safe context.")};function s(e,n){return"self"===e?ci(n,oi)||ci(n,t.document.baseURI?t.document.baseURI:(ri||((ri=t.document.createElement("a")).href=".",ri=ri.cloneNode(!1)),ri.href)):!!e.exec(n.href)}function a(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}r.has("$sanitize")&&(o=r.get("$sanitize"));var c=a(),u={};return u[qr.HTML]=a(c),u[qr.CSS]=a(c),u[qr.MEDIA_URL]=a(c),u[qr.URL]=a(u[qr.MEDIA_URL]),u[qr.JS]=a(c),u[qr.RESOURCE_URL]=a(u[qr.URL]),{trustAs:function(t,e){var n=u.hasOwnProperty(t)?u[t]:null;if(!n)throw Fr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||B(e)||""===e)return e;if("string"!=typeof e)throw Fr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,r){if(null===r||B(r)||""===r)return r;var a=u.hasOwnProperty(t)?u[t]:null;if(a&&r instanceof a)return r.$$unwrapTrustedValue();if(W(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),t===qr.MEDIA_URL||t===qr.URL)return i(r.toString(),t===qr.MEDIA_URL);if(t===qr.RESOURCE_URL){if(function(t){var r,i,o=ai(t.toString()),a=!1;for(r=0,i=e.length;r<i;r++)if(s(e[r],o)){a=!0;break}if(a)for(r=0,i=n.length;r<i;r++)if(s(n[r],o)){a=!1;break}return a}(r))return r;throw Fr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",r.toString())}if(t===qr.HTML)return o(r);throw Fr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof c?t.$$unwrapTrustedValue():t}}}]}function Xr(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&o<8)throw Fr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Lt(qr);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 x(qr,(function(t,e){var n=f(e);r[zr("parse_as_"+n)]=function(e){return i(t,e)},r[zr("get_trusted_"+n)]=function(e){return s(t,e)},r[zr("trust_as_"+n)]=function(e){return a(t,e)}})),r}]}function Yr(){this.$get=["$window","$document",function(t,e){var n={},r=!((!t.nw||!t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,i=M((/android (\d+)/.exec(f((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},c=a.body&&a.body.style,u=!1,l=!1;return c&&(u=!(!("transition"in c)&&!("webkitTransition"in c)),l=!(!("animation"in c)&&!("webkitAnimation"in c))),{history:!(!r||i<4||s),hasEvent:function(t){if("input"===t&&o)return!1;if(B(n[t])){var e=a.createElement("div");n[t]="on"+t in e}return n[t]},csp:ct(),transitions:u,animations:l,android:i}}]}function Gr(){this.$get=D((function(t){return new Kr(t)}))}function Kr(t){var e=this,n={},r=[],i=e.ALL_TASKS_TYPE="$$all$$",o=e.DEFAULT_TASK_TYPE="$$default$$";function s(){var t=r.pop();return t&&t.cb}function a(t){for(var e=r.length-1;e>=0;--e){var n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}e.completeTask=function(e,r){r=r||o;try{e()}finally{!function(t){n[t=t||o]&&(n[t]--,n[i]--)}(r);var c=n[r],u=n[i];if(!u||!c)for(var l,f=u?a:s;l=f(r);)try{l()}catch(e){t.error(e)}}},e.incTaskCount=function(t){n[t=t||o]=(n[t]||0)+1,n[i]=(n[i]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||i]?r.push({type:e,cb:t}):t()}}var Zr=i("$templateRequest");function Qr(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,o){function s(a,c){s.totalPendingRequests++,L(a)&&!B(n.get(a))||(a=o.getTrustedResourceUrl(a));var u=r.defaults&&r.defaults.transformResponse;return H(u)?u=u.filter((function(t){return t!==In})):u===In&&(u=null),r.get(a,O({cache:n,transformResponse:u},t)).finally((function(){s.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){return c||(t=Zr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t)),i.reject(t)}))}return s.totalPendingRequests=0,s}]}function ti(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return x(r,(function(t){var r=y.element(t).data("$binding");r&&x(r,(function(r){n?new RegExp("(^|\\s)"+tt(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;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]',s=t.querySelectorAll(o);if(s.length)return s}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}var ei=i("$timeout");function ni(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){var o={};function s(s,a,c){W(s)||(c=a,a=s,s=P);var u,l=ft(arguments,3),f=I(c)&&!c,h=(f?r:n).defer(),p=h.promise;return u=e.defer((function(){try{h.resolve(s.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete o[p.$$timeoutId]}f||t.$apply()}),a,"$timeout"),p.$$timeoutId=u,o[u]=h,p}return s.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$timeoutId"))throw ei("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(t.$$timeoutId))return!1;var n=t.$$timeoutId,r=o[n];return Ir(r.promise),r.reject("canceled"),delete o[n],e.defer.cancel(n)},s}]}var ri,ii=t.document.createElement("a"),oi=ai(t.location.href);ii.href="http://[::1]";var si="[::1]"===ii.hostname;function ai(t){if(!L(t))return t;var e=t;o&&(ii.setAttribute("href",e),e=ii.href),ii.setAttribute("href",e);var n=ii.hostname;return!si&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:ii.href,protocol:ii.protocol?ii.protocol.replace(/:$/,""):"",host:ii.host,search:ii.search?ii.search.replace(/^\?/,""):"",hash:ii.hash?ii.hash.replace(/^#/,""):"",hostname:n,port:ii.port,pathname:"/"===ii.pathname.charAt(0)?ii.pathname:"/"+ii.pathname}}function ci(t,e){return t=ai(t),e=ai(e),t.protocol===e.protocol&&t.host===e.host}function ui(){this.$get=D(t)}function li(t){var e=t[0]||{},n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,o,s,a,c,u=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(u!==r)for(t=(r=u).split("; "),n={},s=0;s<t.length;s++)(a=(o=t[s]).indexOf("="))>0&&(c=i(o.substring(0,a)),B(n[c])&&(n[c]=i(o.substring(a+1))));return n}}function fi(){this.$get=li}function hi(t){var e="Filter";function n(r,i){if(V(r)){var o={};return x(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",mi),n("date",Oi),n("filter",pi),n("json",Ti),n("limitTo",Ri),n("lowercase",Mi),n("number",vi),n("orderBy",ji),n("uppercase",Ni)}function pi(){return function(t,e,n,r){if(!w(t)){if(null==t)return t;throw i("filter")("notarray","Expected array but received: {0}",t)}var o,s;switch(r=r||"$",$i(e)){case"function":o=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=function(t,e,n,r){var i=V(t)&&n in t;return!0===e?e=at:W(e)||(e=function(t,e){return!(B(t)||(null===t||null===e?t!==e:V(e)||V(t)&&!_(t)||(t=f(""+t),e=f(""+e),-1===t.indexOf(e))))}),function(o){return i&&!V(o)?di(o,t[n],e,n,!1):di(o,t,e,n,r)}}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,o)}}function di(t,e,n,r,i,o){var s=$i(t),a=$i(e);if("string"===a&&"!"===e.charAt(0))return!di(t,e.substring(1),n,r,i);if(H(t))return t.some((function(t){return di(t,e,n,r,i)}));switch(s){case"object":var c;if(i){for(c in t)if(c.charAt&&"$"!==c.charAt(0)&&di(t[c],e,n,r,!0))return!0;return!o&&di(t,e,n,r,!1)}if("object"===a){for(c in e){var u=e[c];if(!W(u)&&!B(u)){var l=c===r;if(!di(l?t:t[c],u,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function $i(t){return null===t?"null":typeof t}function mi(t){var e=t.NUMBER_FORMATS;return function(t,n,r){B(n)&&(n=e.CURRENCY_SYM),B(r)&&(r=e.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:gi(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(i,n)}}function vi(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:gi(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function gi(t,e,n,r,i){if(!L(t)&&!F(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=B(e)?Math.min(Math.max(n,o),r):+e)+t.i,a=i[s];if(s>0){i.splice(Math.max(t.i,s));for(var c=s;c<i.length;c++)i[c]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,s=e+1),i[0]=0;for(var u=1;u<s;u++)i[u]=0}if(a>=5)if(s-1<0){for(var l=0;l>s;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[s-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight((function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)}),0);f&&(i.unshift(f),t.i++)}(o=function(t){var e,n,r,i,o,s=0;for((n=t.indexOf("."))>-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 yi(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function bi(t,e,n,r,i){return n=n||0,function(o){var s=o["get"+t]();return(n>0||s>-n)&&(s+=n),0===s&&-12===n&&(s=12),yi(s,e,r,i)}}function wi(t,e,n){return function(r,i){var o=r["get"+t]();return i[h((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function xi(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Ci(t){return function(e){var n,r=xi(e.getFullYear()),i=(n=e,+new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))-+r);return yi(1+Math.round(i/6048e5),t)}}function ki(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}li.$inject=["$document"],hi.$inject=["$provide"],mi.$inject=["$locale"],vi.$inject=["$locale"];var Ei={yyyy:bi("FullYear",4,0,!1,!0),yy:bi("FullYear",2,0,!0,!0),y:bi("FullYear",1,0,!1,!0),MMMM:wi("Month"),MMM:wi("Month",!0),MM:bi("Month",2,1),M:bi("Month",1,1),LLLL:wi("Month",!1,!0),dd:bi("Date",2),d:bi("Date",1),HH:bi("Hours",2),H:bi("Hours",1),hh:bi("Hours",2,-12),h:bi("Hours",1,-12),mm:bi("Minutes",2),m:bi("Minutes",1),ss:bi("Seconds",2),s:bi("Seconds",1),sss:bi("Milliseconds",3),EEEE:wi("Day"),EEE:wi("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?"+":"")+(yi(Math[r>0?"floor":"ceil"](r/60),2)+yi(Math.abs(r%60),2))},ww:Ci(2),w:Ci(1),G:ki,GG:ki,GGG:ki,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},Si=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Ai=/^-?\d+$/;function Oi(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,L(n)&&(n=Ai.test(n)?M(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=M(n[9]+n[10]),o=M(n[9]+n[11])),s.call(r,M(n[1]),M(n[2])-1,M(n[3]));var c=M(n[4]||0)-i,u=M(n[5]||0)-o,l=M(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return a.call(r,c,u,l,f),r}return t}(n)),F(n)&&(n=new Date(n)),!q(n)||!isFinite(n.getTime()))return n;for(;r;)(s=Si.exec(r))?r=(c=lt(c,s,1)).pop():(c.push(r),r=null);var u=n.getTimezoneOffset();return i&&(u=vt(i,u),n=yt(n,i,!0)),x(c,(function(e){a+=(o=Ei[e])?o(n,t.DATETIME_FORMATS,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),a}}function Ti(){return function(t,e){return B(e)&&(e=2),dt(t,e)}}Oi.$inject=["$locale"];var Mi=D(f),Ni=D(h);function Ri(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):M(e),N(e)?t:(F(t)&&(t=t.toString()),w(t)?(n=(n=!n||isNaN(n)?0:M(n))<0?Math.max(0,t.length+n):n,e>=0?Pi(t,n,n+e):0===n?Pi(t,e,t.length):Pi(t,Math.max(0,n+e),n)):t)}}function Pi(t,e,n){return L(t)?t.slice(e,n):p.call(t,e,n)}function ji(t){return function(r,o,s,a){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);H(o)||(o=[o]),0===o.length&&(o=["+"]);var c=o.map((function(e){var n=1,r=j;if(W(e))r=e;else if(L(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})),u=s?-1:1,l=W(a)?a:n,f=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:c.map((function(r){return function(t,n){var r=typeof t;return null===t?r="null":"object"===r&&(t=function(t){return W(t.valueOf)&&e(t=t.valueOf())||_(t)&&e(t=t.toString()),t}(t)),{value:t,type:r,index:n}}(r.get(t),n)}))}}));return f.sort((function(t,e){for(var r=0,i=c.length;r<i;r++){var o=l(t.predicateValues[r],e.predicateValues[r]);if(o)return o*c[r].descending*u}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*u})),f.map((function(t){return t.value}))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,s=e.value;"string"===r?(o=o.toLowerCase(),s=s.toLowerCase()):"object"===r&&(V(o)&&(o=t.index),V(s)&&(s=e.index)),o!==s&&(n=o<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function Di(t){return W(t)&&(t={link:t}),t.restrict=t.restrict||"AC",D(t)}ji.$inject=["$parse"];var _i=D({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===m.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),Bi={};x(Me,(function(t,e){if("multiple"!==t){var n=yn("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),Bi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(t,r,i){t.$watch(i[n],(function(t){i.$set(e,!!t)}))}})),x(Re,(function(t,e){Bi[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(u);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],(function(t){r.$set(e,t)}))}}}})),x(["src","srcset","href"],(function(t){var e=yn("ng-"+t);Bi[e]=["$sce",function(n){return{priority:99,link:function(r,i,s){var a=t,c=t;"href"===t&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(c="xlinkHref",s.$attr[c]="xlink:href",a=null),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(function(e){e?(s.$set(c,e),o&&a&&i.prop(a,s[c])):"href"===t&&s.$set(c,null)}))}}}]}));var Ii={$addControl:P,$getControls:D([]),$$renameControl:function(t,e){t.$name=e},$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P,$$setSubmitted:P},Vi="ng-pending",Ui="ng-submitted";function Li(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ii,this.$$element=t,this.$$animate=r,zi(this)}Li.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Li.prototype={$rollbackViewValue:function(){x(this.$$controls,(function(t){t.$rollbackViewValue()}))},$commitViewValue:function(){x(this.$$controls,(function(t){t.$commitViewValue()}))},$addControl:function(t){_t(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return Lt(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],x(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),x(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),x(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),it(this.$$controls,t),t.$$parentForm=Ii},$setDirty:function(){this.$$animate.removeClass(this.$$element,Lo),this.$$animate.addClass(this.$$element,Fo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Lo,Fo+" "+Ui),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,x(this.$$controls,(function(t){t.$setPristine()}))},$setUntouched:function(){x(this.$$controls,(function(t){t.$setUntouched()}))},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==Ii;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Ui),this.$submitted=!0,x(this.$$controls,(function(t){t.$$setSubmitted&&t.$$setSubmitted()}))}},Wi({clazz:Li,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(it(r,n),0===r.length&&delete t[e])}});var Fi=function(t){return["$timeout","$parse",function(e,n){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:Li,compile:function(n,i){n.addClass(Lo).addClass(Vo);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,s){var a=s[0];if(!("action"in i)){var c=function(e){t.$apply((function(){a.$commitViewValue(),a.$setSubmitted()})),e.preventDefault()};n[0].addEventListener("submit",c),n.on("$destroy",(function(){e((function(){n[0].removeEventListener("submit",c)}),0,!1)}))}(s[1]||a.$$parentForm).$addControl(a);var u=o?r(a.$name):P;o&&(u(t,a),i.$observe(o,(function(e){a.$name!==e&&(u(t,void 0),a.$$parentForm.$$renameControl(a,e),(u=r(a.$name))(t,a))}))),n.on("$destroy",(function(){a.$$parentForm.$removeControl(a),u(t,void 0),O(a,Ii)}))}}}};function r(t){return""===t?n('this[""]').assign:n(t).assign||P}}]},qi=Fi(),Hi=Fi(!0);function zi(t){t.$$classCache={},t.$$classCache[Uo]=!(t.$$classCache[Vo]=t.$$element.hasClass(Vo))}function Wi(t){var e=t.clazz,n=t.set,r=t.unset;function i(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,e,n){e=e?"-"+Nt(e,"-"):"",i(t,Vo+e,!0===n),i(t,Uo+e,!1===n)}e.prototype.$setValidity=function(t,e,s){var a;B(e)?function(t,e,r,i){t[e]||(t[e]={}),n(t[e],r,i)}(this,"$pending",t,s):function(t,e,n,i){t[e]&&r(t[e],n,i),Ji(t[e])&&(t[e]=void 0)}(this,"$pending",t,s),G(e)?e?(r(this.$error,t,s),n(this.$$success,t,s)):(n(this.$error,t,s),r(this.$$success,t,s)):(r(this.$error,t,s),r(this.$$success,t,s)),this.$pending?(i(this,Vi,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,Vi,!1),this.$valid=Ji(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,t,a=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,a,this)}}function Ji(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Xi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Yi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Gi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Ki=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Zi=/^(\d{4,})-(\d{2})-(\d{2})$/,Qi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,to=/^(\d{4,})-W(\d\d)$/,eo=/^(\d{4,})-(\d\d)$/,no=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ro=It();x("date,datetime-local,month,time,week".split(","),(function(t){ro[t]=!0}));var io={text:function(t,e,n,r,i,o){so(0,e,n,r,i,o),oo(r)},date:co("date",Zi,ao(Zi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":co("datetimelocal",Qi,ao(Qi,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:co("time",no,ao(no,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:co("week",to,(function(t,e){if(q(t))return t;if(L(t)){to.lastIndex=0;var n=to.exec(t);if(n){var r=+n[1],i=+n[2],o=0,s=0,a=0,c=0,u=xi(r),l=7*(i-1);return e&&(o=e.getHours(),s=e.getMinutes(),a=e.getSeconds(),c=e.getMilliseconds()),new Date(r,0,u.getDate()+l,o,s,a,c)}}return NaN}),"yyyy-Www"),month:co("month",eo,ao(eo,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o,s,a){var c;if(uo(0,e,0,r,"number"),lo(r),so(0,e,n,r,i,o),I(n.min)||n.ngMin){var u=n.min||a(n.ngMin)(t);c=fo(u),r.$validators.min=function(t,e){return r.$isEmpty(e)||B(c)||e>=c},n.$observe("min",(function(t){t!==u&&(c=fo(t),u=t,r.$validate())}))}if(I(n.max)||n.ngMax){var l=n.max||a(n.ngMax)(t),f=fo(l);r.$validators.max=function(t,e){return r.$isEmpty(e)||B(f)||e<=f},n.$observe("max",(function(t){t!==l&&(f=fo(t),l=t,r.$validate())}))}if(I(n.step)||n.ngStep){var h=n.step||a(n.ngStep)(t),p=fo(h);r.$validators.step=function(t,e){return r.$isEmpty(e)||B(p)||$o(e,c||0,p)},n.$observe("step",(function(t){t!==h&&(p=fo(t),h=t,r.$validate())}))}},url:function(t,e,n,r,i,o){so(0,e,n,r,i,o),oo(r),r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Yi.test(n)}},email:function(t,e,n,r,i,o){so(0,e,n,r,i,o),oo(r),r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Gi.test(n)}},radio:function(t,e,n,r){var i=!n.ngTrim||"false"!==Q(n.ngTrim);B(n.name)&&e.attr("name",E()),e.on("change",(function(t){var o;e[0].checked&&(o=n.value,i&&(o=Q(o)),r.$setViewValue(o,t&&t.type))})),r.$render=function(){var t=n.value;i&&(t=Q(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i,o){uo(0,e,0,r,"range"),lo(r),so(0,e,n,r,i,o);var s=r.$$hasNativeValidators&&"range"===e[0].type,a=s?0:void 0,c=s?100:void 0,u=s?1:void 0,l=e[0].validity,f=I(n.min),h=I(n.max),p=I(n.step),d=r.$render;function $(t,r){e.attr(t,n[t]);var i=n[t];n.$observe(t,(function(t){t!==i&&(i=t,r(t))}))}r.$render=s&&I(l.rangeUnderflow)&&I(l.rangeOverflow)?function(){d(),r.$setViewValue(e.val())}:d,f&&(a=fo(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||B(a)||e>=a},$("min",(function(t){if(a=fo(t),!N(r.$modelValue))if(s){var n=e.val();a>n&&(n=a,e.val(n)),r.$setViewValue(n)}else r.$validate()}))),h&&(c=fo(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||B(c)||e<=c},$("max",(function(t){if(c=fo(t),!N(r.$modelValue))if(s){var n=e.val();c<n&&(e.val(c),n=c<a?a:c),r.$setViewValue(n)}else r.$validate()}))),p&&(u=fo(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||B(u)||$o(e,a||0,u)},$("step",(function(t){u=fo(t),N(r.$modelValue)||(s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate())})))},checkbox:function(t,e,n,r,i,o,s,a){var c=mo(a,t,"ngTrueValue",n.ngTrueValue,!0),u=mo(a,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(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 at(t,c)})),r.$parsers.push((function(t){return t?c:u}))},hidden:P,button:P,submit:P,reset:P,file:P};function oo(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function so(t,e,n,r,i,o){var s,a=f(e[0].type);if(!i.android){var c=!1;e.on("compositionstart",(function(){c=!0})),e.on("compositionupdate",(function(t){(B(t.data)||""===t.data)&&(c=!1)})),e.on("compositionend",(function(){c=!1,u()}))}var u=function(t){if(s&&(o.defer.cancel(s),s=null),!c){var i=e.val(),u=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Q(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))e.on("input",u);else{var l=function(t,e,n){s||(s=o.defer((function(){s=null,e&&e.value===n||u(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)})),i.hasEvent("paste")&&e.on("paste cut drop",l)}e.on("change",u),ro[a]&&r.$$hasNativeValidators&&a===n.type&&e.on("keydown wheel mousedown",(function(t){if(!s){var e=this.validity,n=e.badInput,r=e.typeMismatch;s=o.defer((function(){s=null,e.badInput===n&&e.typeMismatch===r||u(t)}))}})),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function ao(t,e){return function(n,r){var i,o;if(q(n))return n;if(L(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Xi.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n)){i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},x(i,(function(t,n){n<e.length&&(o[e[n]]=+t)}));var s=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&s.setFullYear(o.yyyy),s}}return NaN}}function co(t,e,n,r){return function(i,o,s,a,c,u,l,f){uo(0,o,0,a,t),so(0,o,s,a,c,u);var h,p,d="time"===t||"datetimelocal"===t;if(a.$parsers.push((function(n){return a.$isEmpty(n)?null:e.test(n)?w(n,h):void(a.$$parserName=t)})),a.$formatters.push((function(t){if(t&&!q(t))throw Jo("datefmt","Expected `{0}` to be a date",t);if(y(t)){h=t;var e=a.$options.getOption("timezone");return e&&(p=e,h=yt(h,e,!0)),function(t,e){var n=r;d&&L(a.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",a.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(t,n,e);return d&&a.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}(t,e)}return h=null,p=null,""})),I(s.min)||s.ngMin){var $=s.min||f(s.ngMin)(i),m=b($);a.$validators.min=function(t){return!y(t)||B(m)||n(t)>=m},s.$observe("min",(function(t){t!==$&&(m=b(t),$=t,a.$validate())}))}if(I(s.max)||s.ngMax){var v=s.max||f(s.ngMax)(i),g=b(v);a.$validators.max=function(t){return!y(t)||B(g)||n(t)<=g},s.$observe("max",(function(t){t!==v&&(g=b(t),v=t,a.$validate())}))}function y(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function b(t){return I(t)&&!q(t)?w(t)||void 0:t}function w(t,e){var r=a.$options.getOption("timezone");p&&p!==r&&(e=gt(e,vt(p)));var i=n(t,e);return!isNaN(i)&&r&&(i=yt(i,r)),i}}}function uo(t,e,n,r,i){var o=e[0];(r.$$hasNativeValidators=V(o.validity))&&r.$parsers.push((function(t){var n=e.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function lo(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:Ki.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!F(e))throw Jo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function fo(t){return I(t)&&!F(t)&&(t=parseFloat(t)),N(t)?void 0:t}function ho(t){return(0|t)===t}function po(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-1<t&&t<1){var r=/e-(\d+)$/.exec(e);if(r)return Number(r[1])}return 0}return e.length-n-1}function $o(t,e,n){var r=Number(t),i=!ho(r),o=!ho(e),s=!ho(n);if(i||o||s){var a=i?po(r):0,c=o?po(e):0,u=s?po(n):0,l=Math.max(a,c,u),f=Math.pow(10,l);r*=f,e*=f,n*=f,i&&(r=Math.round(r)),o&&(e=Math.round(e)),s&&(n=Math.round(n))}return(r-e)%n==0}function mo(t,e,n,r,i){var o;if(I(r)){if(!(o=t(r)).constant)throw Jo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,s,a){a[0]&&(io[f(s.type)]||io.text)(i,o,s,a[0],e,t,n,r)}}}}],go=function(){var t={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(e,n){if("hidden"===f(n.type))return{pre:function(e,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",t)}}}}},yo=/^(true|false|\d+)$/,bo=function(){function t(t,e,n){var r=I(n)?n:9===o?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return yo.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(function(e){t(n,r,e)}))}}}},wo=["$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=Vt(t)}))}}}}],xo=["$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=B(t)?"":t}))}}}}],Co=["$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)||"")}))}}}}],ko=D({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Eo(t,e){var n;return t="ngClass"+t,["$parse",function(s){return{restrict:"AC",link:function(a,c,u){var l,f=c.data("$classCounts"),h=!0;function p(t,e){var n=[];return x(t,(function(t){(e>0||f[t])&&(f[t]=(f[t]||0)+e,f[t]===+(e>0)&&n.push(t))})),n.join(" ")}f||(f=It(),c.data("$classCounts",f)),"ngClass"!==t&&(n||(n=s("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){var n;t===e?(n=p(i(n=l),1),u.$addClass(n)):function(t){t=p(i(t),-1),u.$removeClass(t)}(l),h=t}))),a.$watch(s(u[t],o),(function(t){h===e&&function(t,e){var n=i(t),o=i(e),s=r(n,o),a=r(o,n),c=p(s,-1),l=p(a,1);u.$addClass(l),u.$removeClass(c)}(l,t),l=t}))}}}];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i===e[o])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function o(t){if(!t)return t;var e=t;return H(t)?e=t.map(o).join(" "):V(t)?e=Object.keys(t).filter((function(e){return t[e]})).join(" "):L(t)||(e=t+""),e}}var So=Eo("",!0),Ao=Eo("Odd",0),Oo=Eo("Even",1),To=Di({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),Mo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],No={},Ro={blur:!0,focus:!0};function Po(t,e,n,r,i,o){return{restrict:"A",compile:function(s,a){var c=t(a[r]);return function(t,r){r.on(i,(function(r){var i=function(){c(t,{$event:r})};if(e.$$phase)if(o)t.$evalAsync(i);else try{i()}catch(t){n(t)}else t.$apply(i)}))}}}}x("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=yn("ng-"+t);No[e]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Po(n,r,i,e,t,Ro[t])}]}));var jo=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,s){var a,c,u;n.$watch(i.ngIf,(function(n){n?c||s((function(n,o){c=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),a={clone:n},t.enter(n,r.parent(),r)})):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),a&&(u=Bt(a.clone),t.leave(u).done((function(t){!1!==t&&(u=null)})),a=null))}))}}}],Do=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:y.noop,compile:function(r,i){var o=i.ngInclude||i.src,s=i.onload||"",a=i.autoscroll;return function(r,i,c,u,l){var f,h,p,d=0,$=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(t){!1!==t&&(h=null)})),h=p,p=null)};r.$watch(o,(function(o){var c=function(t){!1===t||!I(a)||a&&!r.$eval(a)||e()},h=++d;o?(t(o,!0).then((function(t){if(!r.$$destroyed&&h===d){var e=r.$new();u.template=t;var a=l(e,(function(t){$(),n.enter(t,null,i).done(c)}));p=a,(f=e).$emit("$includeContentLoaded",o),r.$eval(s)}}),(function(){r.$$destroyed||h===d&&($(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):($(),u.template=null)}))}}}}],_o=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void e(ue(o.template,t.document).childNodes)(n,(function(t){r.append(t)}),{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],Bo=Di({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Io=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,s=o?Q(i):i;r.$parsers.push((function(t){if(!B(t)){var e=[];return t&&x(t.split(s),(function(t){t&&e.push(o?Q(t):t)})),e}})),r.$formatters.push((function(t){if(H(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}},Vo="ng-valid",Uo="ng-invalid",Lo="ng-pristine",Fo="ng-dirty",qo="ng-untouched",Ho="ng-touched",zo="ng-empty",Wo="ng-not-empty",Jo=i("ngModel");function Xo(t,e,n,r,i,o,s,a,c){var u;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=Ii,this.$options=Yo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=s,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=e,zi(this),(u=this).$$scope.$watch((function(t){var e=u.$$ngModelGet(t);return e===u.$modelValue||u.$modelValue!=u.$modelValue&&e!=e||u.$$setModelValue(e),e}))}Xo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Xo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return W(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){W(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Jo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,bt(this.$$element))},$render:P,$isEmpty:function(t){return B(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,Wo),this.$$animate.addClass(this.$$element,zo)):(this.$$animate.removeClass(this.$$element,zo),this.$$animate.addClass(this.$$element,Wo))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Fo),this.$$animate.addClass(this.$$element,Lo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Lo),this.$$animate.addClass(this.$$element,Fo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,qo,Ho)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Ho,qo)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!N(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,(function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(t,e,n){this.$$currentValidationRunId++;var r,i,o,s,a=this.$$currentValidationRunId,c=this;function u(t,e){a===c.$$currentValidationRunId&&c.$setValidity(t,e)}function l(t){a===c.$$currentValidationRunId&&n(t)}s=c.$$parserName,(B(c.$$parserValid)?(u(s,null),1):(c.$$parserValid||(x(c.$validators,(function(t,e){u(e,null)})),x(c.$asyncValidators,(function(t,e){u(e,null)}))),u(s,c.$$parserValid),c.$$parserValid))?(o=!0,x(c.$validators,(function(n,r){var i=Boolean(n(t,e));o=o&&i,u(r,i)})),!o&&(x(c.$asyncValidators,(function(t,e){u(e,null)})),1)?l(!1):(r=[],i=!0,x(c.$asyncValidators,(function(n,o){var s=n(t,e);if(!K(s))throw Jo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(o,void 0),r.push(s.then((function(){u(o,!0)}),(function(){i=!1,u(o,!1)})))})),r.length?c.$$q.all(r).then((function(){l(i)}),P):l(!0))):l(!1)},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,e=this;if(this.$$parserValid=!B(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(B(t=this.$parsers[n](t))){this.$$parserValid=!1;break}N(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){e.$modelValue!==r&&e.$$writeModelToScope()}this.$$rawModelValue=t,i&&(this.$modelValue=t,o()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(n){i||(e.$modelValue=n?t:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),x(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce");F(e[t])?e=e[t]:F(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:F(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,P))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},Wi({clazz:Xo,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Yo,Go=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Xo,priority:1,compile:function(e){return e.addClass(Lo).addClass(qo).addClass(Vo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm,s=r[2];s&&(i.$options=s.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(e,n,r,i){var o=i[0];function s(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(t.$$phase?e.$evalAsync(s):e.$apply(s))}))}}}}}],Ko=/(\s+|^)default(\s+|$)/;function Zo(t){this.$$options=t}Zo.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return x(t=O({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=Q(n.replace(Ko,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],ts(t,this.$$options)),ts(t,Yo.$$options),new Zo(t)}},Yo=new Zo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Qo=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Yo,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function ts(t,e){x(e,(function(e,n){I(t[n])||(t[n]=e)}))}var es=Di({terminal:!0,priority:1e3}),ns=i("ngOptions"),rs=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,is=["$compile","$document","$parse",function(e,n,r){var i=t.document.createElement("option"),o=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=P},post:function(t,a,c,u){for(var l=u[0],f=u[1],h=c.multiple,p=0,d=a.children(),$=d.length;p<$;p++)if(""===d[p].value){l.hasEmptyOption=!0,l.emptyOption=d.eq(p);break}a.empty();var m,v=!!l.emptyOption;s(i.cloneNode(!1)).val("?");var g=function(t,e,n){var i=t.match(rs);if(!i)throw ns("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,bt(e));var o=i[5]||i[7],s=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],u=r(i[2]?i[1]:o),l=a&&r(a)||u,f=c&&r(c),h=c?function(t,e){return f(n,e)}:function(t){return Be(t)},p=function(t,e){return h(t,y(t,e))},d=r(i[2]||i[1]),$=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),g={},y=s?function(t,e){return g[s]=e,g[o]=t,g}:function(t){return g[o]=t,g};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function x(t){var e;if(!s&&w(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:c,getTrackByValue:p,getWatchables:r(v,(function(t){for(var e=[],r=x(t=t||[]),o=r.length,s=0;s<o;s++){var a=t===r?s:r[s],c=t[a],u=y(c,a),l=h(c,u);if(e.push(l),i[2]||i[1]){var f=d(n,u);e.push(f)}if(i[4]){var p=m(n,u);e.push(p)}}return e})),getOptions:function(){for(var t=[],e={},r=v(n)||[],i=x(r),o=i.length,s=0;s<o;s++){var a=r===i?s:i[s],u=r[a],f=y(u,a),g=l(n,f),w=h(g,f),C=new b(w,g,d(n,f),$(n,f),m(n,f));t.push(C),e[w]=C}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return c?ot(t.viewValue):t.viewValue}}}}}(c.ngOptions,a,t),y=n[0].createDocumentFragment();function b(t,e){var n=i.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),e.value=t.selectValue}(t,n)}function C(t){var e=m.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}l.generateUnknownOptionValue=function(t){return"?"},h?(l.writeValue=function(t){if(m){var e=t&&t.map(C)||[];m.items.forEach((function(t){t.element.selected&&!rt(e,t)&&(t.element.selected=!1)}))}},l.readValue=function(){var t=a.val()||[],e=[];return x(t,(function(t){var n=m.selectValueMap[t];n&&!n.disabled&&e.push(m.getViewValueFromOption(n))})),e},g.trackBy&&t.$watchCollection((function(){if(H(f.$viewValue))return f.$viewValue.map((function(t){return g.getTrackByValue(t)}))}),(function(){f.$render()}))):(l.writeValue=function(t){if(m){var e=a[0].options[a[0].selectedIndex],n=m.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(l.removeUnknownOption(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(t)}},l.readValue=function(){var t=m.selectValueMap[a.val()];return t&&!t.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),m.getViewValueFromOption(t)):null},g.trackBy&&t.$watch((function(){return g.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),v&&(e(l.emptyOption)(t),a.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(t,e){""===e.val()&&(l.hasEmptyOption=!0,l.emptyOption=e,l.emptyOption.removeClass("ng-scope"),f.$render(),e.on("$destroy",(function(){var t=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,t&&f.$render()})))}):l.emptyOption.removeClass("ng-scope")),t.$watchCollection(g.getWatchables,(function(){var t=m&&l.readValue();if(m)for(var e=m.items.length-1;e>=0;e--){var n=m.items[e];I(n.group)?Ae(n.element.parentNode):Ae(n.element)}m=g.getOptions();var r={};if(m.items.forEach((function(t){var e;I(t.group)?((e=r[t.group])||(e=o.cloneNode(!1),y.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),b(t,e)):b(t,y)})),a[0].appendChild(y),f.$render(),!f.$isEmpty(t)){var i=l.readValue();(g.trackBy||h?at(t,i):t===i)||(f.$setViewValue(i),f.$render())}}))}}}}],os=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,s,a){var c,u=a.count,l=a.$attr.when&&s.attr(a.$attr.when),h=a.offset||0,p=o.$eval(l)||{},d={},$=e.startSymbol(),m=e.endSymbol(),v=$+u+"-"+h+m,g=y.noop;function b(t){s.text(t||"")}x(a,(function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+f(n[2]);p[r]=s.attr(a.$attr[e])}})),x(p,(function(t,n){d[n]=e(t.replace(r,v))})),o.$watch(u,(function(e){var r=parseFloat(e),i=N(r);if(i||r in p||(r=t.pluralCat(r-h)),!(r===c||i&&N(c))){g();var s=d[r];B(s)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+l),g=P,b()):g=o.$watch(s,b),c=r}}))}}}],ss=i("ngRef"),as=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var r=yn(nt(e)),i=t(n.ngRef),o=i.assign||function(){throw ss("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,s){var a;if(s.hasOwnProperty("ngRefRead")){if("$element"===s.ngRefRead)a=e;else if(!(a=e.data("$"+s.ngRefRead+"Controller")))throw ss("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',s.ngRefRead,n.ngRef)}else a=e.data("$"+r+"Controller");o(t,a=a||e),e.on("$destroy",(function(){i(t)===a&&o(t,null)}))}}}}],cs=["$parse","$animate","$compile",function(t,e,n){var r="$$NG_REMOVED",o=i("ngRepeat"),s=function(t,e,n,r,i,o,s){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===s-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},a=function(t){return t.clone[0]},c=function(t){return t.clone[t.clone.length-1]},u=function(t,e,n){return Be(n)},f=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,h){var p=h.ngRepeat,d=n.$$createComment("end ngRepeat",p),$=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!$)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=$[1],v=$[2],g=$[3],y=$[4];if(!($=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b,C=$[3]||$[1],k=$[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);if(y){var E={$id:Be},S=t(y);b=function(t,e,n,r){return k&&(E[k]=e),E[C]=n,E.$index=r,S(t,E)}}return function(t,n,i,h,$){var m=It();t.$watchCollection(v,(function(i){var h,v,y,S,A,O,T,M,N,R,P,j,D=n[0],_=It();if(g&&(t[g]=i),w(i))N=i,M=b||u;else for(var B in M=b||f,N=[],i)l.call(i,B)&&"$"!==B.charAt(0)&&N.push(B);for(S=N.length,P=new Array(S),h=0;h<S;h++)if(A=i===N?h:N[h],O=i[A],T=M(t,A,O,h),m[T])R=m[T],delete m[T],_[T]=R,P[h]=R;else{if(_[T])throw x(P,(function(t){t&&t.scope&&(m[t.id]=t)})),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,T,O);P[h]={id:T,scope:void 0,clone:void 0},_[T]=!0}for(var I in E&&(E[C]=void 0),m){if(j=Bt((R=m[I]).clone),e.leave(j),j[0].parentNode)for(h=0,v=j.length;h<v;h++)j[h][r]=!0;R.scope.$destroy()}for(h=0;h<S;h++)if(A=i===N?h:N[h],O=i[A],(R=P[h]).scope){y=D;do{y=y.nextSibling}while(y&&y[r]);a(R)!==y&&e.move(Bt(R.clone),null,D),D=c(R),s(R.scope,h,C,O,k,A,S)}else $((function(t,n){R.scope=n;var r=d.cloneNode(!1);t[t.length++]=r,e.enter(t,null,D),D=r,R.clone=t,_[R.id]=R,s(R.scope,h,C,O,k,A,S)}));m=_}))}}}}],us="ng-hide",ls="ng-hide-animate",fs=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,(function(e){t[e?"removeClass":"addClass"](n,us,{tempClasses:ls})}))}}}],hs=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,(function(e){t[e?"addClass":"removeClass"](n,us,{tempClasses:ls})}))}}}],ps=Di((function(t,e,n){t.$watchCollection(n.ngStyle,(function(t,n){n&&t!==n&&x(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}))})),ds=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,a=[],c=[],u=[],l=[],f=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(s,(function(n){for(var r,i;u.length;)t.cancel(u.pop());for(r=0,i=l.length;r<i;++r){var s=Bt(c[r].clone);l[r].$destroy(),(u[r]=t.leave(s)).done(f(u,r))}c.length=0,l.length=0,(a=o.cases["!"+n]||o.cases["?"])&&x(a,(function(n){n.transclude((function(r,i){l.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var s={clone:r};c.push(s),t.enter(r,o.parent(),o)}))}))}))}}}],$s=Di({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){x(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(t,e,n){return n[e-1]!==t})),(function(t){r.cases["!"+t]=r.cases["!"+t]||[],r.cases["!"+t].push({transclude:i,element:e})}))}}),ms=Di({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),vs=i("ngTransclude"),gs=["$compile",function(t){return{restrict:"EAC",compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){if(!o)throw vs("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",bt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var s=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(function(t){e.append(t)}))}o((function(t,n){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==Ut||r.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,s),s&&!o.isSlotFilled(s)&&a()}}}}],ys=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"===n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],bs={$setViewValue:P,$render:P};function ws(t,e){t.prop("selected",e),t.attr("selected",e)}var xs=["$element","$scope",function(e,n){var r=this,i=new Ue;r.selectValueMap={},r.ngModelCtrl=bs,r.multiple=!1,r.unknownOption=s(t.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),e.prepend(r.unknownOption),ws(r.unknownOption,!0),e.val(n)},r.updateUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),ws(r.unknownOption,!0),e.val(n)},r.generateUnknownOptionValue=function(t){return"? "+Be(t)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(e.val(""),ws(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&ws(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=P})),r.readValue=function(){var t=e.val(),n=t in r.selectValueMap?r.selectValueMap[t]:t;return r.hasOption(n)?n:null},r.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];if(n&&ws(s(n),!1),r.hasOption(t)){r.removeUnknownOption();var i=Be(t);e.val(i in r.selectValueMap?i:t);var o=e[0].options[e[0].selectedIndex];ws(s(o),!0)}else r.selectUnknownOrEmptyOption(t)},r.addOption=function(t,e){if(8!==e[0].nodeType){_t(t,'"option value"'),""===t&&(r.hasEmptyOption=!0,r.emptyOption=e);var n=i.get(t)||0;i.set(t,n+1),a()}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.delete(t),""===t&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return e[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&e[0].options[e[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(t){null==t&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(t):r.renderUnknownOption(t)};var o=!1;function a(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var c=!1;function u(t){c||(c=!0,n.$$postDigest((function(){n.$$destroyed||(c=!1,r.ngModelCtrl.$setViewValue(r.readValue()),t&&r.ngModelCtrl.$render())})))}r.registerOption=function(t,e,n,i,o){var s,c;n.$attr.ngValue?n.$observe("value",(function(t){var n,i=e.prop("selected");I(c)&&(r.removeOption(s),delete r.selectValueMap[c],n=!0),c=Be(t),s=t,r.selectValueMap[c]=t,r.addOption(t,e),e.attr("value",c),n&&i&&u()})):i?n.$observe("value",(function(t){var n;r.readValue();var i=e.prop("selected");I(s)&&(r.removeOption(s),n=!0),s=t,r.addOption(t,e),n&&i&&u()})):o?t.$watch(o,(function(t,i){n.$set("value",t);var o=e.prop("selected");i!==t&&r.removeOption(i),r.addOption(t,e),i&&o&&u()})):r.addOption(n.value,e),n.$observe("disabled",(function(t){("true"===t||t&&e.prop("selected"))&&(r.multiple?u(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),e.on("$destroy",(function(){var t=r.readValue(),e=n.value;r.removeOption(e),a(),(r.multiple&&t&&-1!==t.indexOf(e)||t===e)&&u(!0)}))}}],Cs=function(){return{restrict:"E",require:["select","?ngModel"],controller:xs,priority:1,link:{pre:function(t,e,n,r){var i=r[0],o=r[1];if(o){if(i.ngModelCtrl=o,e.on("change",(function(){i.removeUnknownOption(),t.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var t=[];return x(e.find("option"),(function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){x(e.find("option"),(function(e){var n=!!t&&(rt(t,e.value)||rt(t,i.selectValueMap[e.value]));n!==e.selected&&ws(s(e),n)}))};var a,c=NaN;t.$watch((function(){c!==o.$viewValue||at(a,o.$viewValue)||(a=Lt(o.$viewValue),o.$render()),c=o.$viewValue})),o.$isEmpty=function(t){return!t||0===t.length}}}else i.registerOption=P},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},ks=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var r,i;return I(n.ngValue)||(I(n.value)?r=t(n.value,!0):(i=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o="$selectController",s=e.parent(),a=s.data(o)||s.parent().data(o);a&&a.registerOption(t,e,n,r,i)}}}}],Es=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.hasOwnProperty("required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!o||!i.$isEmpty(e)},r.$observe("required",(function(t){o!==t&&(o=t,i.$validate())}))}}}}],Ss=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&u.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,o){if(o){var s=n.pattern;n.ngPattern?s=i(t):r=n.pattern;var a=Ts(s,r,e);n.$observe("pattern",(function(t){var n=a;a=Ts(t,r,e),(n&&n.toString())!==(a&&a.toString())&&o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||B(a)||a.test(e)}}}}}}],As=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.maxlength||t(r.ngMaxlength)(e),s=Ms(o);r.$observe("maxlength",(function(t){o!==t&&(s=Ms(t),o=t,i.$validate())})),i.$validators.maxlength=function(t,e){return s<0||i.$isEmpty(e)||e.length<=s}}}}}],Os=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.minlength||t(r.ngMinlength)(e),s=Ms(o)||-1;r.$observe("minlength",(function(t){o!==t&&(s=Ms(t)||-1,o=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=s}}}}}];function Ts(t,e,n){if(t){if(L(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,bt(n));return t}}function Ms(t){var e=M(t);return N(e)?-1:e}t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load AngularJS more than once."):(function(){var e;if(!Rt){var n=ut();(a=B(n)?t.jQuery:n?t[n]:void 0)&&a.fn.on?(s=a,O(a.fn,{scope:Te.scope,isolateScope:Te.isolateScope,controller:Te.controller,injector:Te.injector,inheritedData:Te.inheritedData})):s=fe,e=s.cleanData,s.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=(s._data(r)||{}).events)&&n.$destroy&&s(r).triggerHandler("$destroy");e(t)},y.element=s,Rt=!0}}(),function(e){O(e,{errorHandlingConfig:n,bootstrap:At,copy:ot,extend:O,merge:T,equals:at,element:s,forEach:x,injector:Ge,noop:P,bind:ht,toJson:dt,fromJson:$t,identity:j,isUndefined:B,isDefined:I,isString:L,isFunction:W,isObject:V,isNumber:F,isElement:et,isArray:H,version:qt,isDate:q,callbacks:{$$counter:0},getTestability:Tt,reloadWithDebugInfo:Ot,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Pt,$$minErr:i,$$csp:ct,$$encodeUriSegment:Ct,$$encodeUriQuery:kt,$$lowercase:f,$$stringify:Vt,$$uppercase:h}),(c=function(t){var e=i("$injector"),n=i("ng");function r(t,e,n){return t[e]||(t[e]=n())}var o=r(t,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var t={};return function(i,o,s){var a={};return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(i),o&&t.hasOwnProperty(i)&&(t[i]=null),r(t,i,(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.",i);var t=[],r=[],c=[],u=f("$injector","invoke","push",r),l={_invokeQueue:t,_configBlocks:r,_runBlocks:c,info:function(t){if(I(t)){if(!V(t))throw n("aobj","Argument '{0}' must be an object","value");return a=t,this}return a},requires:o,name:i,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:h("$provide","decorator",r),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:u,run:function(t){return c.push(t),this}};return s&&u(s),l;function f(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),l}}function h(e,n,r){return r||(r=t),function(t,o){return o&&W(o)&&(o.$$moduleName=i),r.push([e,n,arguments]),l}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Lr}),t.provider("$compile",$n).directive({a:_i,input:vo,textarea:vo,form:qi,script:ys,select:Cs,option:ks,ngBind:wo,ngBindHtml:Co,ngBindTemplate:xo,ngClass:So,ngClassEven:Oo,ngClassOdd:Ao,ngCloak:To,ngController:Mo,ngForm:Hi,ngHide:hs,ngIf:jo,ngInclude:Do,ngInit:Bo,ngNonBindable:es,ngPluralize:os,ngRef:as,ngRepeat:cs,ngShow:fs,ngStyle:ps,ngSwitch:ds,ngSwitchWhen:$s,ngSwitchDefault:ms,ngOptions:is,ngTransclude:gs,ngModel:Go,ngList:Io,ngChange:ko,pattern:Ss,ngPattern:Ss,required:Es,ngRequired:Es,minlength:Os,ngMinlength:Os,maxlength:As,ngMaxlength:As,ngValue:bo,ngModelOptions:Qo}).directive({ngInclude:_o,input:go}).directive(Bi).directive(No),t.provider({$anchorScroll:Ke,$animate:on,$animateCss:cn,$$animateJs:nn,$$animateQueue:rn,$$AnimateRunner:an,$$animateAsyncRun:sn,$browser:ln,$cacheFactory:fn,$controller:En,$document:Sn,$$isDocumentHidden:An,$exceptionHandler:On,$filter:hi,$$forceReflow:Tn,$interpolate:Jn,$interval:Yn,$$intervalFactory:Gn,$http:qn,$httpParamSerializer:_n,$httpParamSerializerJQLike:Bn,$httpBackend:zn,$xhrFactory:Hn,$jsonpCallbacks:Kn,$location:pr,$log:dr,$parse:Rr,$rootScope:Ur,$q:Pr,$$q:jr,$sce:Xr,$sceDelegate:Jr,$sniffer:Yr,$$taskTrackerFactory:Gr,$templateCache:hn,$templateRequest:Qr,$$testability:ti,$timeout:ni,$window:ui,$$rAF:Vr,$$jqLite:_e,$$Map:Le,$$cookieReader:fi})}]).info({angularVersion:"1.8.2"})}(y),y.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 n=0|t,r=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var r=Math.pow(10,n);return{v:n,f:(t*r|0)%r}}(t,e);return 1==n&&0==r.v?"one":"other"}})}]),s((function(){!function(e,n){var r,i,o={};if(x(Et,(function(t){var n=t+"app";!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))})),x(Et,(function(t){var n,o=t+"app";!r&&(n=e.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!St)return void t.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(t,e){var n,r,i=Et.length;for(r=0;r<i;++r)if(n=Et[r]+"strict-di",L(n=t.getAttribute(n)))return n;return null}(r),n(r,i?[i]:[],o)}}(t.document,At)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@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<n;s++,a++)o[a]=i[s];return o.buffer}},7911:t=>{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<i;n+=3)o+=t[r[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<c;n+=4)r=t.indexOf(e[n]),i=t.indexOf(e[n+1]),o=t.indexOf(e[n+2]),s=t.indexOf(e[n+3]),f[u++]=r<<2|i>>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<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},9238:t=>{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<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(t,o),s.splice(c,1),c--}return n})),e.formatArgs.call(t,s);var u=r.log||e.log||console.log.bind(console);u.apply(t,s)}}return r.namespace=t,r.enabled=e.enabled(t),r.useColors=e.useColors(),r.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),r.destroy=i,"function"==typeof e.init&&e.init(r),e.instances.push(r),r}function i(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(1378),e.instances=[],e.names=[],e.skips=[],e.formatters={}},1438:t=>{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||void 0,this.key=e.key||void 0,this.passphrase=e.passphrase||void 0,this.cert=e.cert||void 0,this.ca=e.ca||void 0,this.ciphers=e.ciphers||void 0,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<e;t++)this.probe(this.upgrades[t])}},l.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else o('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout((function(){"closed"!==e.readyState&&e.onClose("ping timeout")}),t||e.pingInterval+e.pingTimeout)},l.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},l.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},l.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():e()})):this.upgrading?r():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function r(){t.once("upgrade",n),t.once("upgradeError",n)}return this},l.prototype.onError=function(t){o("socket error %j",t),l.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},l.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}},5344:(t,e,n)=>{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='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(t)}catch(t){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),t=t.replace(c,"\\\n"),this.area.value=t.replace(a,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&u()}:this.iframe.onload=u}},1962:(t,e,n)=>{var r=n(6891),i=n(5869),o=n(7582),s=n(9238),a=n(5130)("engine.io-client:polling-xhr"),c=n(1438);function u(){}function l(t){if(i.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function f(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,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.extraHeaders=t.extraHeaders,this.create()}function h(){for(var t in f.requests)f.requests.hasOwnProperty(t)&&f.requests[t].abort()}t.exports=l,t.exports.Request=f,s(l,i),l.prototype.supportsBinary=!0,l.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new f(t)},l.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",(function(t){i.onError("xhr post error",t)})),this.sendXhr=r},l.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(f.prototype),f.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new r(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof e.status?e.status:0)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout((function(){n.onError(t)}),0)}"undefined"!=typeof document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},f.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},f.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},f.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},f.requestsCount=0,f.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",h):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",h,!1))},5869:(t,e,n)=>{var r=n(5344),i=n(4355),o=n(820),s=n(9238),a=n(4973),c=n(5130)("engine.io-client:polling");t.exports=l;var u=null!=new(n(6891))({xdomain:!1}).responseType;function l(t){var e=t&&t.forceBase64;u&&!e||(this.supportsBinary=!1),r.call(this,t)}s(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,r){if("opening"===e.readyState&&"open"===t.type&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},l.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},l.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},8479:(t,e,n)=>{var r,i,o=n(5344),s=n(820),a=n(4355),c=n(9238),u=n(4973),l=n(5130)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(418)}catch(t){}var f=r||i;function h(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=r&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(f=i),o.call(this,t)}t.exports=h,c(h,o),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new f(t,e):new f(t):new f(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},h.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},h.prototype.write=function(t){var e=this;this.writable=!1;for(var n=t.length,r=0,i=n;r<i;r++)!function(t){s.encodePacket(t,e.supportsBinary,(function(r){if(!e.usingBrowserWebSocket){var i={};t.options&&(i.compress=t.options.compress),e.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<e.perMessageDeflate.threshold&&(i.compress=!1)}try{e.usingBrowserWebSocket?e.ws.send(r):e.ws.send(r,i)}catch(t){l("websocket closed before onclose event")}--n||(e.emit("flush"),setTimeout((function(){e.writable=!0,e.emit("drain")}),0))}))}(t[r])},h.prototype.onClose=function(){o.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||(t.b64=1),(t=a.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},h.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===h.prototype.name)}},6891:(t,e,n)=>{var r=n(9166),i=n(1438);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(t){}if(!e)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},820:(t,e,n)=>{var r,i=n(2298),o=n(4632),s=n(696),a=n(540),c=n(8544);"undefined"!=typeof ArrayBuffer&&(r=n(8328));var u="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=u||l;e.protocol=3;var h=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=i(h),d={type:"error",data:"parser error"},$=n(3055);function m(t,e,n){for(var r=new Array(t.length),i=a(t.length,n),o=function(t,n,i){e(n,(function(e,n){r[t]=n,i(e,r)}))},s=0;s<t.length;s++)o(s,t[s],i)}e.encodePacket=function(t,n,r,i){"function"==typeof n&&(i=n,n=!1),"function"==typeof r&&(i=r,r=null);var o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),s=new Uint8Array(1+i.byteLength);s[0]=h[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return r(s.buffer)}(t,n,i);if(void 0!==$&&o instanceof $)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(f)return function(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){e.encodePacket({type:t.type,data:i.result},n,!0,r)},i.readAsArrayBuffer(t.data)}(t,n,r);var i=new Uint8Array(1);return i[0]=h[t.type],r(new $([i.buffer,t.data]))}(t,n,i);if(o&&o.base64)return function(t,n){return n("b"+e.packets[t.type]+t.data.data)}(t,i);var s=h[t.type];return void 0!==t.data&&(s+=r?c.encode(String(t.data),{strict:!1}):String(t.data)),i(""+s)},e.encodeBase64Packet=function(t,n){var r,i="b"+e.packets[t.type];if(void 0!==$&&t.data instanceof $){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(i+t)},o.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var s=new Uint8Array(t.data),a=new Array(s.length),c=0;c<s.length;c++)a[c]=s[c];r=String.fromCharCode.apply(null,a)}return i+=btoa(r),n(i)},e.decodePacket=function(t,n,r){if(void 0===t)return d;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return d;var i=t.charAt(0);return Number(i)==i&&p[i]?t.length>1?{type:p[i],data:t.substring(1)}:{type:p[i]}:d}i=new Uint8Array(t)[0];var o=s(t,1);return $&&"blob"===n&&(o=new $([o])),{type:p[i],data:o}},e.decodeBase64Packet=function(t,e){var n=p[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var i=r.decode(t.substr(1));return"blob"===e&&$&&(i=new $([i])),{type:n,data:i}},e.encodePayload=function(t,n,r){"function"==typeof n&&(r=n,n=null);var i=o(t);return n&&i?$&&!f?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void m(t,(function(t,r){e.encodePacket(t,!!i&&n,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return r(e.join(""))})):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===t)return r(d,0,1);for(var o,s,a="",c=0,u=t.length;c<u;c++){var l=t.charAt(c);if(":"===l){if(""===a||a!=(o=Number(a)))return r(d,0,1);if(a!=(s=t.substr(c+1,o)).length)return r(d,0,1);if(s.length){if(i=e.decodePacket(s,n,!1),d.type===i.type&&d.data===i.data)return r(d,0,1);if(!1===r(i,c+o,u))return}c+=o,a=""}else a+=l}return""!==a?r(d,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));m(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var r=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2}),0),i=new Uint8Array(r),o=0;return e.forEach((function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}i[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)i[o++]=parseInt(a[s]);for(i[o++]=255,r=new Uint8Array(n),s=0;s<r.length;s++)i[o++]=r[s]})),n(i.buffer)}))},e.encodePayloadAsBlob=function(t,n){m(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)s[i]=parseInt(o[i]);if(s[o.length]=255,$){var a=new $([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new $(e))}))},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[];i.byteLength>0;){for(var a=new Uint8Array(i),c=0===a[0],u="",l=1;255!==a[l];l++){if(u.length>310)return r(d,0,1);u+=a[l]}i=s(i,2+u.length),u=parseInt(u);var f=s(i,0,u);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var h=new Uint8Array(f);for(f="",l=0;l<h.length;l++)f+=String.fromCharCode(h[l])}o.push(f),i=s(i,u)}var p=o.length;o.forEach((function(t,i){r(e.decodePacket(t,n,!0),i,p)}))}},2298:t=>{t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},8544:t=>{var e,n,r,i=String.fromCharCode;function o(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function s(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(t,e){return i(t>>e&63|128)}function c(t,e){if(0==(4294967168&t))return i(t);var n="";return 0==(4294965248&t)?n=i(t>>6&31|192):0==(4294901760&t)?(s(t,e)||(t=65533),n=i(t>>12&15|224),n+=a(t,6)):0==(4292870144&t)&&(n=i(t>>18&7|240),n+=a(t,12),n+=a(t,6)),n+i(63&t|128)}function u(){if(r>=n)throw Error("Invalid byte index");var t=255&e[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function l(t){var i,o;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(i=255&e[r],r++,0==(128&i))return i;if(192==(224&i)){if((o=(31&i)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&i)){if((o=(15&i)<<12|u()<<6|u())>=2048)return s(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(o=(7&i)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=o(t),i=r.length,s=-1,a="";++s<i;)a+=c(r[s],n);return a},decode:function(t,s){var a=!1!==(s=s||{}).strict;e=o(t),n=e.length,r=0;for(var c,u=[];!1!==(c=l(a));)u.push(c);return function(t){for(var e,n=t.length,r=-1,o="";++r<n;)(e=t[r])>65535&&(o+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),o+=i(e);return o}(u)}}},4632:(t,e,n)=>{var r=n(7906),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=function t(e){if(!e||"object"!=typeof e)return!1;if(r(e)){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(e)||"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||o&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return!0;return!1}},9166:t=>{try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},2543:t=>{var e=[].indexOf;t.exports=function(t,n){if(e)return t.indexOf(n);for(var r=0;r<t.length;++r)if(t[r]===n)return r;return-1}},7906:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1378:t=>{var e=1e3,n=60*e,r=60*n,i=24*r;function o(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,s){s=s||{};var a,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&!1===isNaN(t))return s.long?o(a=t,i,"day")||o(a,r,"hour")||o(a,n,"minute")||o(a,e,"second")||a+" ms":function(t){return t>=i?Math.round(t/i)+"d":t>=r?Math.round(t/r)+"h":t>=n?Math.round(t/n)+"m":t>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},7655:function(t,e){var n,r,i;!function(o,s){"use strict";"object"==typeof t.exports?t.exports=s():(r=[],void 0===(i="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=i))}(0,(function(){"use strict";var t=Object.prototype.toString;function e(t,e){return null!=t&&Object.prototype.hasOwnProperty.call(t,e)}function n(t){if(!t)return!0;if(i(t)&&0===t.length)return!0;if("string"!=typeof t){for(var n in t)if(e(t,n))return!1;return!0}return!1}function r(e){return t.call(e)}var i=Array.isArray||function(e){return"[object Array]"===t.call(e)};function o(t){var e=parseInt(t);return e.toString()===t?e:t}function s(t){var s,a=function(t){return Object.keys(a).reduce((function(e,n){return"create"===n||"function"==typeof a[n]&&(e[n]=a[n].bind(a,t)),e}),{})};function c(t,e){if(s(t,e))return t[e]}function u(e,n,r,i){if("number"==typeof n&&(n=[n]),!n||0===n.length)return e;if("string"==typeof n)return u(e,n.split(".").map(o),r,i);var s=n[0],a=c(e,s);if(t.includeInheritedProps&&("__proto__"===s||"constructor"===s&&"function"==typeof a))throw new Error("For security reasons, object's magic properties cannot be set");return 1===n.length?(void 0!==a&&i||(e[s]=r),a):(void 0===a&&("number"==typeof n[1]?e[s]=[]:e[s]={}),u(e[s],n.slice(1),r,i))}return s=(t=t||{}).includeInheritedProps?function(){return!0}:function(t,n){return"number"==typeof n&&Array.isArray(t)||e(t,n)},a.has=function(n,r){if("number"==typeof r?r=[r]:"string"==typeof r&&(r=r.split(".")),!r||0===r.length)return!!n;for(var s=0;s<r.length;s++){var a=o(r[s]);if(!("number"==typeof a&&i(n)&&a<n.length||(t.includeInheritedProps?a in Object(n):e(n,a))))return!1;n=n[a]}return!0},a.ensureExists=function(t,e,n){return u(t,e,n,!0)},a.set=function(t,e,n,r){return u(t,e,n,r)},a.insert=function(t,e,n,r){var o=a.get(t,e);r=~~r,i(o)||(o=[],a.set(t,e,o)),o.splice(r,0,n)},a.empty=function(t,e){var o,c;if(!n(e)&&null!=t&&(o=a.get(t,e))){if("string"==typeof o)return a.set(t,e,"");if(function(t){return"boolean"==typeof t||"[object Boolean]"===r(t)}(o))return a.set(t,e,!1);if("number"==typeof o)return a.set(t,e,0);if(i(o))o.length=0;else{if(!function(t){return"object"==typeof t&&"[object Object]"===r(t)}(o))return a.set(t,e,null);for(c in o)s(o,c)&&delete o[c]}}},a.push=function(t,e){var n=a.get(t,e);i(n)||(n=[],a.set(t,e,n)),n.push.apply(n,Array.prototype.slice.call(arguments,2))},a.coalesce=function(t,e,n){for(var r,i=0,o=e.length;i<o;i++)if(void 0!==(r=a.get(t,e[i])))return r;return n},a.get=function(t,e,n){if("number"==typeof e&&(e=[e]),!e||0===e.length)return t;if(null==t)return n;if("string"==typeof e)return a.get(t,e.split("."),n);var r=o(e[0]),i=c(t,r);return void 0===i?n:1===e.length?i:a.get(t[r],e.slice(1),n)},a.del=function(t,e){if("number"==typeof e&&(e=[e]),null==t)return t;if(n(e))return t;if("string"==typeof e)return a.del(t,e.split("."));var r=o(e[0]);return s(t,r)?1!==e.length?a.del(t[r],e.slice(1)):(i(t)?t.splice(r,1):delete t[r],t):t},a}var a=s();return a.create=s,a.withInheritedProps=s({includeInheritedProps:!0}),a}))},4355:(t,e)=>{e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},4243:t=>{var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var r,i,o=t,s=t.indexOf("["),a=t.indexOf("]");-1!=s&&-1!=a&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));for(var c,u,l=e.exec(t||""),f={},h=14;h--;)f[n[h]]=l[h]||"";return-1!=s&&-1!=a&&(f.source=o,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(r=f.path,i=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||i.splice(0,1),"/"==r.substr(r.length-1,1)&&i.splice(i.length-1,1),i),f.queryKey=(c=f.query,u={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(u[e]=n)})),u),f}},7768:(t,e,n)=>{var r=n(8749),i=n(7170),o=n(9431),s=n(5130)("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),c=i.source,u=i.id,l=i.path,f=a[u]&&l in a[u].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||f?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[u]||(s("new io instance for %s",c),a[u]=o(c,e)),n=a[u]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=c,e.Manager=n(9431),e.Socket=n(2243)},9431:(t,e,n)=>{var r=n(4065),i=n(2243),o=n(7582),s=n(7170),a=n(3073),c=n(2150),u=n(5130)("socket.io-client:manager"),l=n(2543),f=n(7911),h=Object.prototype.hasOwnProperty;function p(t,e){if(!(this instanceof p))return new p(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=p,p.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},p.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},p.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},o(p.prototype),p.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},p.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},p.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(t,e){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){i.onopen(),t&&t()})),s=a(n,"error",(function(e){if(u("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;u("connect attempt will timeout after %d",c),0===c&&o.destroy();var l=setTimeout((function(){u("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(s),this},p.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(t){this.decoder.add(t)},p.prototype.ondecoded=function(t){this.emit("packet",t)},p.prototype.onerror=function(t){u("error",t),this.emitAll("error",t)},p.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new i(this,t,e),this.nsps[t]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(t)})),this.autoConnect&&o()}function o(){~l(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(t){var e=l(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},p.prototype.packet=function(t){u("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},p.prototype.cleanup=function(){u("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(t){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();u("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(u("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(u("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(u("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},3073:t=>{t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},2243:(t,e,n)=>{var r=n(7170),i=n(7582),o=n(1396),s=n(3073),a=n(2150),c=n(5130)("socket.io-client:socket"),u=n(4355),l=n(4632);t.exports=p;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=i.prototype.emit;function p(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},p.prototype.emit=function(t){if(f.hasOwnProperty(t))return h.apply(this,arguments),this;var e=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(e))?r.BINARY_EVENT:r.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},p.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?u.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:r.CONNECT,query:t})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},p.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===r.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",t.data)}},p.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},p.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);c("sending ack %j",i),e.packet({type:l(i)?r.BINARY_ACK:r.ACK,id:t,data:i})}}},p.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(t){return this.flags.compress=t,this},p.prototype.binary=function(t){return this.flags.binary=t,this}},8749:(t,e,n)=>{var r=n(4243),i=n(5130)("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=r(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},4146:(t,e,n)=>{var r=n(7906),i=n(4787),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function c(t,e){if(!t)return t;if(i(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(r(t)){for(var o=new Array(t.length),s=0;s<t.length;s++)o[s]=c(t[s],e);return o}if("object"==typeof t&&!(t instanceof Date)){for(var a in o={},t)o[a]=c(t[a],e);return o}return t}function u(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(r(t))for(var n=0;n<t.length;n++)t[n]=u(t[n],e);else if("object"==typeof t)for(var i in t)t[i]=u(t[i],e);return t}e.deconstructPacket=function(t){var e=[],n=t.data,r=t;return r.data=c(n,e),r.attachments=e.length,{packet:r,buffers:e}},e.reconstructPacket=function(t,e){return t.data=u(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(c,u,l){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[u]=this.result:o=this.result,--n||e(o)},f.readAsArrayBuffer(c)}else if(r(c))for(var h=0;h<c.length;h++)t(c[h],h,c);else if("object"==typeof c&&!i(c))for(var p in c)t(c[p],p,c)}(o),n||e(o)}},7170:(t,e,n)=>{var r=n(5130)("socket.io-parser"),i=n(7582),o=n(4146),s=n(7906),a=n(4787);function c(){}e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=f;var u=e.ERROR+'"encode error"';function l(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var i=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===i)return u;n+=i}return r("encoded %j as %s",t,n),n}function f(){this.reconstructor=null}function h(t){this.reconPack=t,this.buffers=[]}function p(t){return{type:e.ERROR,data:"parser error: "+t}}c.prototype.encode=function(t,n){r("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?function(t,e){o.removeBlobs(t,(function(t){var n=o.deconstructPacket(t),r=l(n.packet),i=n.buffers;i.unshift(r),e(i)}))}(t,n):n([l(t)])},i(f.prototype),f.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return p("unknown packet type "+i.type);if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var o=n+1;"-"!==t.charAt(++n)&&n!=t.length;);var a=t.substring(o,n);if(a!=Number(a)||"-"!==t.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(a)}if("/"===t.charAt(n+1)){for(o=n+1;++n&&","!==(u=t.charAt(n))&&n!==t.length;);i.nsp=t.substring(o,n)}else i.nsp="/";var c=t.charAt(n+1);if(""!==c&&Number(c)==c){for(o=n+1;++n;){var u;if(null==(u=t.charAt(n))||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){var l=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(n));if(!1===l||i.type!==e.ERROR&&!s(l))return p("invalid payload");i.data=l}return r("decoded %s as %j",t,i),i}(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},4787:t=>{t.exports=function(t){return e&&Buffer.isBuffer(t)||n&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))};var e="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer},778:function(t,e,n){"use strict";var r,i;void 0===(i="function"==typeof(r=function(){var t,e={},r="undefined"!=typeof window?window:n.g,i=r.document,o="localStorage";if(e.disabled=!1,e.version="1.3.20",e.set=function(t,e){},e.get=function(t,e){},e.has=function(t){return void 0!==e.get(t)},e.remove=function(t){},e.clear=function(){},e.transact=function(t,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){},e.forEach=function(){},e.serialize=function(t){return JSON.stringify(t)},e.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},function(){try{return o in r&&r.localStorage}catch(t){return!1}}())t=r.localStorage,e.set=function(n,r){return void 0===r?e.remove(n):(t.setItem(n,e.serialize(r)),r)},e.get=function(n,r){var i=e.deserialize(t.getItem(n));return void 0===i?r:i},e.remove=function(e){t.removeItem(e)},e.clear=function(){t.clear()},e.getAll=function(){var t={};return e.forEach((function(e,n){t[e]=n})),t},e.forEach=function(n){for(var r=0;r<t.length;r++){var i=t.key(r);n(i,e.get(i))}};else if(i&&i.documentElement.addBehavior){var s,a;try{(a=new ActiveXObject("htmlfile")).open(),a.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),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<t.length;r++)n[r-e]=t[r];return n}},4973:t=>{"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.length;o++)e=64*e+r[t.charAt(o)];return e},t.exports=a},8680:t=>{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:'<svg bs-svg-icon><use xlink:href="{{iconName}}"></use></svg>',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:"<a href='#' ng-click='navi(path)' ng-transclude=''>as</a>",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:'<a href="{{url}}" bs-button="subtle-alt icon" target="_blank" title="Open a new tab" ng-show="mode !== \'snippet\'"><icon icon="newtab"></icon> New Tab </a>'}}},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:'<section bs-overlay ng-class="{\'active\': ui.visible}">\n <p><icon icon="block"></icon></p>\n <h1>{{ui.heading}} {{ui.message}}</h1>\n <p>Possible reasons are:</p>\n <ul bs-list>\n <li>1. Your process was exited by another tool</li>\n </ul>\n <p>You should check your terminal window to see what happened. <br/>(Or simply try reloading this page.)</p>\n</section>',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:'<div bs-notify ng-class="{\'active\': ui.visible}">\n <p class="notification__text">{{ui.heading}} <span class="color--lime">{{ui.message}}</span></p>\n</div>',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