@angular-wave/angular.ts 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/angular.d.ts +4 -0
- package/@types/animations/animate-css-driver.d.ts +10 -2
- package/@types/animations/animate-css.d.ts +8 -14
- package/@types/animations/animation.d.ts +1 -3
- package/@types/animations/cache/animate-cache.d.ts +99 -0
- package/@types/animations/cache/interface.d.ts +17 -0
- package/@types/animations/interface.d.ts +15 -18
- package/@types/animations/raf/raf-scheduler.d.ts +37 -0
- package/@types/core/compile/interface.d.ts +36 -5
- package/@types/core/interpolate/interface.d.ts +7 -1
- package/@types/core/parse/ast/ast-node.d.ts +75 -38
- package/@types/core/parse/ast/ast.d.ts +0 -3
- package/@types/core/parse/interface.d.ts +2 -2
- package/@types/core/parse/interpreter.d.ts +22 -10
- package/@types/core/scope/interface.d.ts +14 -4
- package/@types/core/scope/scope.d.ts +65 -22
- package/@types/directive/form/form.d.ts +16 -4
- package/@types/directive/model/model.d.ts +6 -4
- package/@types/filters/order-by.d.ts +13 -0
- package/@types/interface.d.ts +3 -3
- package/@types/router/path/path-node.d.ts +1 -1
- package/@types/router/resolve/resolve-context.d.ts +1 -1
- package/@types/router/transition/hook-registry.d.ts +1 -1
- package/@types/router/url/url-matcher.d.ts +1 -1
- package/@types/services/sce/interface.d.ts +1 -4
- package/@types/services/sce/sce.d.ts +7 -2
- package/@types/shared/common.d.ts +100 -39
- package/@types/shared/node.d.ts +5 -5
- package/@types/shared/strings.d.ts +2 -2
- package/dist/angular-ts.esm.js +1620 -1037
- package/dist/angular-ts.umd.js +1620 -1037
- package/dist/angular-ts.umd.min.js +1 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/@types/animations/animate-cache.d.ts +0 -94
- package/@types/animations/raf-scheduler.d.ts +0 -35
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const n="ng-valid",e="ng-invalid",i="ng-pristine",r="ng-dirty",s="ng-untouched",o="ng-touched",c="ng-empty",u="ng-not-empty",h=/^((?:x|data)[-])/i,a=/[-]+(.)/g,l={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},f=Node.ELEMENT_NODE,d=Node.DOCUMENT_NODE,m=Node.TEXT_NODE,p=Node.COMMENT_NODE,$=Node.DOCUMENT_FRAGMENT_NODE,g=Symbol("isProxy");function w(t){return!(!t||!t[g])}function v(t){return w(t)?t.$target:t}const b=bt("ng");let y=0;function k(){return y+=1,y}function E(t){return A(t)?t.toLowerCase():t}function S(t){if(R(t)||V(t))return!1;if(_(t)||t instanceof Array||A(t))return!0;const n=t.length;return P(n)&&(n>=0&&n-1 in t||"function"==typeof t.item)}function x(t){return void 0===t}function O(t){return void 0!==t}function _(t){return Array.isArray(t)}function C(t,n){return t instanceof n}function j(t){return null!==t&&"object"==typeof t}function A(t){return"string"==typeof t}function T(t){return null===t}function R(t){return null==t}function M(t){return!R(t)}function P(t){return"number"==typeof t}function I(t){return"[object Date]"===toString.call(t)}function D(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function N(t){return"function"==typeof t}function q(t){return"[object RegExp]"===toString.call(t)}function V(t){return C(t,Window)}function U(t){return t&&t.$watch}function F(t){return"boolean"==typeof t}function L(t){return t&&N(t.then)}function H(t){return A(t)?t.trim():t}function B(t,n){const e=n;return t.replace(/[A-Z]/g,(t,n)=>(n?e:"")+t.toLowerCase())}function z(t,n,e=!1){const i=t.i;for(let i=0,r=n.length;i<r;++i){const r=n[i];if(!j(r)&&!N(r))continue;const s=Ct(r);for(let n=0,i=s.length;n<i;n++){const i=s[n],o=r[i];e&&j(o)?I(o)?t[i]=new Date(o.valueOf()):q(o)?t[i]=new RegExp(o):o.nodeName?t[i]=o.cloneNode(!0):"__proto__"!==i&&(j(t[i])||(t[i]=_(o)?[]:{}),z(t[i],[o],!0)):t[i]=o}}var r,s;return r=t,(s=i)?r.i=s:delete r.i,t}function W(t,...n){return z(t,n,!1)}function J(t){return Number.isNaN(t)}function Z(t,n){return W(Object.create(t),n)}function G(t){return N(t.toString)&&t.toString!==toString}function K(t){return E(t.nodeName)}function X(t,n){return-1!==Array.prototype.indexOf.call(t,n)}function Y(t,n){const e=t.indexOf(n);return e>=0&&t.splice(e,1),e}function Q(t,n){return t===n||Number.isNaN(t)&&Number.isNaN(n)}function tt(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;if(_(t)){if(!_(n))return!1;const{length:e}=t;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(!tt(t[i],n[i]))return!1;return!0}if(I(t))return!!I(n)&&Q(t.getTime(),n.getTime());if(q(t))return!!q(n)&&t.toString()===n.toString();if(U(t)||U(n)||V(t)||V(n)||_(n)||I(n)||q(n))return!1;const i=Object.create(null);for(const e in t)if("$"!==e.charAt(0)&&!N(t[e])){if(!tt(t[e],n[e]))return!1;i[e]=!0}for(const t in n)if(!(t in i)&&"$"!==t.charAt(0)&&O(n[t])&&!N(n[t]))return!1;return!0}function nt(t,n){if("hasOwnProperty"===t)throw b("badname","hasOwnProperty is not a valid {0} name",n)}function et(t){if(T(t)||x(t))return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!G(t)||_(t)||I(t)?ct(t):t.toString()}return t}function it(t,n,e){return t.concat(Array.prototype.slice.call(n,e))}function rt(t,n){return Array.prototype.slice.call(t,n)}function st(t,n){const e=arguments.length>2?rt(arguments,2):[];return!N(n)||n instanceof RegExp?n:e.length?function(){return arguments.length?n.apply(t,it(e,arguments,0)):n.apply(t,e)}:function(){return arguments.length?n.apply(t,arguments):n.call(t)}}function ot(t,n){let e=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?e=void 0:V(n)?e="$WINDOW":n&&window.document===n?e="$DOCUMENT":U(n)&&(e="$SCOPE"),e}function ct(t,n){if(!x(t))return P(n)||(n=n?2:void 0),JSON.stringify(t,ot,n)}function ut(t){const n={};return(t||"").split("&").forEach(e=>{let i,r,s;e&&(r=t=e.replace(/\+/g,"%20"),i=e.indexOf("="),-1!==i&&(r=e.substring(0,i),s=e.substring(i+1)),r=at(r),O(r)&&(s=!O(s)||at(s),_t(n,r)?_(n[r])?n[r].push(s):n[r]=[n[r],s]:n[r]=s))}),n}function ht(t){const n=[];return t&&jt(t).forEach(([t,e])=>{_(e)?e.forEach(e=>{n.push(ft(t,!0)+(!0===e?"":`=${ft(e,!0)}`))}):n.push(ft(t,!0)+(!0===e?"":`=${ft(e,!0)}`))}),n.length?n.join("&"):""}function at(t){try{return decodeURIComponent(t)}catch{return}}function lt(t){return ft(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ft(t,n){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,n?"%20":"+")}const dt=["ng-","data-ng-"];function mt(t,n){if(_(t)){const e=n||[];return e.push(...t),e}if(j(t)){const e=n||{};for(const n in t)n.startsWith("$$")||(e[n]=t[n]);return e}return t}function pt(t,n="Assertion failed"){if(!t)throw new Error(n)}function $t(t,n,e){if(!t)throw b("areq","Argument '{0}' is {1}",n||"?",e||"required");return t}function gt(t,n,e){return e&&_(t)&&(t=t[t.length-1]),$t(N(t),n,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const wt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function vt(t){var n;return j(t)&&(O(t.objectMaxDepth)&&(wt.objectMaxDepth=P(n=t.objectMaxDepth)&&n>0?t.objectMaxDepth:NaN),O(t.urlErrorParamsEnabled)&&F(t.urlErrorParamsEnabled)&&(wt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),wt}function bt(t){return function(...n){const e=n[0],i=n[1];let r=`[${t?`${t}:`:""}${e}] `;const s=rt(n,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(x(t))return"undefined";if("string"!=typeof t){const n=[],e=structuredClone(w(t)?t.$target:t);return JSON.stringify(e,(t,e)=>{const i=ot(t,e);if(j(i)){if(n.indexOf(i)>=0)return"...";n.push(i)}return i})}return t}(t));return r+=i.replace(/\{\d+\}/g,t=>{const n=+t.slice(1,-1);return n<s.length?s[n]:t}),new Error(r)}}function yt(t){const n=t&&t.i;if(n)return"function"==typeof n?t.i():n;const e=typeof t;return"function"===e||"object"===e&&null!==t?(t.i=`${e}:${k()}`,t.i):"undefined"===e?`${e}:${k()}`:`${e}:${t}`}function kt(t,n){return t||n?t?n?(_(t)&&(t=Et(t)),_(n)&&(n=Et(n)),`${t.trim()} ${n.trim()}`.trim()):_(t)?t.join(" ").trim():t:_(n)?n.join(" ").trim():n:""}function Et(t){const n=[];for(const e of t)if(e){const t=e.trim();t&&n.push(t)}return n.join(" ")}function St(t){return t.replace(h,"").replace(a,(t,n,e)=>e?n.toUpperCase():n)}function xt(t){return function(t,n){if(t.nodeType!==f)return!1;const e=t;return"true"===e.dataset[n]||"true"===e.getAttribute(n)}(t,"animate")}function Ot(t){return!t||!Ct(t).length}function _t(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Ct(t){return Object.keys(t)}function jt(t){return Object.entries(t)}function At(t){let n=!1;return(...e)=>{if(n)return t(...e);n=!0}}function Tt(t=0){return new Promise(n=>setTimeout(n,t))}function Rt(t,n){return t.slice(0,n.length)===n}async function Mt(t,n={}){const e=await fetch(t);if(!e.ok)throw new Error("fetch failed");try{const{instance:t,module:i}=await WebAssembly.instantiateStreaming(e.clone(),n);return{instance:t,exports:t.exports,module:i}}catch{}const i=await e.arrayBuffer(),{instance:r,module:s}=await WebAssembly.instantiate(i,n);return{instance:r,exports:r.exports,module:s}}const Pt={o:"$angular",u:"$attrs",h:"$scope",l:"$element",m:"_animateCache",p:"_animateCssDriver",$:"_animateJs",k:"_animateJsDriver",S:"_animateQueue",O:"$$animation",_:"$$rAFScheduler",C:"$$taskTrackerFactory",j:"$anchorScroll",A:"$animate",T:"$animateCss",R:"$aria",M:"$compile",P:"$cookie",I:"$controller",D:"$document",N:"$eventBus",q:"$exceptionHandler",V:"$filter",U:"$http",F:"$httpParamSerializer",L:"$interpolate",H:"$location",B:"$log",W:"$viewScroll",J:"$parse",Z:"$rest",G:"$rootScope",K:"$rootElement",X:"$router",Y:"$sce",tt:"$sceDelegate",nt:"$state",et:"$stateRegistry",it:"$sse",rt:"$$sanitizeUri",st:"$$sanitizeUriProvider",ot:"$templateCache",ct:"$templateFactory",ut:"$templateRequest",ht:"$transitions",lt:"$urlConfig",ft:"$url",dt:"$view",gt:"$window",wt:"$websocket",vt:"$provide",bt:"$injector",yt:"$compileProvider",kt:"$animateProvider",Et:"$filterProvider",St:"$controllerProvider"};function It(t){return t.map(t=>`${t}Provider`)}let Dt=1;const Nt="ng",qt=new Map,Vt=Pt.h,Ut=/-([a-z])/g,Ft=/_([a-z])/g,Lt=["multiple","selected","checked","disabled","readonly","required","open"],Ht=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function Bt(t,n){return n.toUpperCase()}function zt(t){return t.replace(Ut,Bt)}function Wt(t){return t.replace(Ft,Bt)}function Jt(t,n){const e=t[Nt],i=e&&qt.get(e);i&&(n?delete i.data[n]:i.data={},function(t){const n=t[Nt],e=n?qt.get(n)?.data:void 0;e&&Ct(e).length||(qt.delete(n),t[Nt]=void 0)}(t))}function Zt(t,n=!1){let e=t[Nt],i=e&&qt.get(e);return n&&!i&&(t[Nt]=e=++Dt,i={data:{}},qt.set(e,i)),i}function Gt(t){return!/<|&#?\w+;/.test(t)}function Kt(t){switch(t.nodeType){case f:case d:case p:case void 0:return!0;default:return!1}}function Xt(t,n){!t||t instanceof Comment||(_(t)?t.forEach(t=>Xt(t,n)):(!n&&Kt(t)&&ln([t]),Kt(t)&&ln(t.querySelectorAll("*"))),delete t[Nt],t.innerHTML="")}function Yt(t,n,e){if(!Kt(t))return;const i=O(e),r=!i&&n&&!j(n),s=!n,o=Zt(t,!r),c=o&&o.data;if(c)if(i&&"string"==typeof n)c[zt(n)]=e;else{if(s)return c;if(r&&"string"==typeof n)return c[zt(n)];if(n&&"object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(c[zt(t)]=n[t])}}function Qt(t,n,e){if(Kt(t)){const i=Zt(t,!0);(i&&i.data)[zt(n)]=e}else t.parentElement&&Qt(t.parentElement,n,e)}function tn(t,n){if(Kt(t)){const e=Zt(t,!1),i=e&&e.data;if(!n)return;return i&&i[zt(n)]}}function nn(t){return tn(t,Vt)}function en(t,n){return Qt(t,Vt,n)}function rn(t,n){return Qt(t,"$isolateScope",n)}function sn(t,n){return on(t,`$${n||"ngController"}Controller`)}function on(t,n){let e;for(t.nodeType===d&&(t=t.documentElement);t;){if(e=tn(t,n),O(e))return e;let i=t.parentNode;if(i||t.nodeType!==$||(i=t.host),!i)break;t=i}}function cn(t,n=!1){n||Xt(t);const e=t.parentNode;e&&e.removeChild(t)}function un(t){let n;if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),{firstChild:i}=e.body;if(!i)return"";n=i.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");n=t.cloneNode(!0)}for(;n.firstChild;)n.removeChild(n.firstChild);const e=document.createElement("div");e.appendChild(n);const i=e.innerHTML;try{if(n.nodeType===m)return i.toLowerCase();if(n.nodeType===p)return`\x3c!--${n.data.trim()}--\x3e`;{const t=i.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,n)=>`<${n.toLowerCase()}`)}}catch{return i.toLowerCase()}return i.toLowerCase()}function hn(t){let n=t[0];const e=t[t.length-1];let i;for(let r=1;n!==e;r++){const e=n.nextSibling;if(!e)break;n=e,(i||t[r]!==n)&&(i||(i=Array.prototype.slice.call(t,0,r)),i.push(n))}return i||t}function an(t,n){const e=n.toLowerCase();return!(!Lt.includes(e)||!Ht.includes(t.nodeName))&&e}function ln(t){for(let n=0,e=t.length;n<e;n++)Jt(t[n])}function fn(t){return on(t,Pt.bt)}function dn(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.firstChild}function mn(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.childNodes}function pn(t){switch(Xt(t,!0),t.nodeType){case f:case d:case $:t.replaceChildren()}}function $n(t,n,e){if(e){const t=vn(e);!t||t.parentNode||t.previousSibling||(e=null)}e?e.after(t):n.prepend(t)}function gn(t,n,e){const i=t.style.visibility,r=t.style.position,s=t.style.pointerEvents;Object.assign(t.style,{visibility:"hidden",position:"absolute",pointerEvents:"none"}),$n(t,n,e),requestAnimationFrame(()=>{t.style.visibility=i,t.style.position=r,t.style.pointerEvents=s})}function wn(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}function vn(t){if(!t||!_(t))return t;for(let n=0;n<t.length;n++){const e=t[n];if(e.nodeType===f)return e}}const bn=bt(Pt.bt),yn=/^([^(]+?)=>/,kn=/^[^(]*\(\s*([^)]*)\)/m,En=/^\s*(_?)(\S+?)\1\s*$/,Sn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function xn(t){return Function.prototype.toString.call(t)}function On(t,n,e){let i,r,s=[];if(N(t)){if(s=t.$inject,!s){if(s=[],t.length){if(n)throw bn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",e);i=function(t){const n=xn(t).replace(Sn,"");return n.match(yn)||n.match(kn)}(t),i&&i[1].split(/,/).forEach(t=>{t.replace(En,(t,n,e)=>(s.push(e),e))})}t.$inject=s}}else _(t)?(r=t.length-1,gt(t[r],"fn"),s=t.slice(0,r)):gt(t,"fn",!0);return s}const _n=bt(Pt.bt),Cn="Provider",jn=!0;class An{constructor(t){this.xt={},this.strictDi=t,this.Ot=[],this._t={}}get(t){if(_t(this.xt,t)){if(this.xt[t]===jn)throw _n("cdep","Circular dependency found: {0}",`${t} <- ${this.Ot.join(" <- ")}`);return this.xt[t]}this.Ot.unshift(t),this.xt[t]=jn;try{this.xt[t]=this.factory(t)}catch(n){throw delete this.xt[t],n}return this.xt[t]}Ct(t,n,e){const i=[],r=On(t,this.strictDi,e);for(let t=0,{length:e}=r;t<e;t++){const e=r[t];if("string"!=typeof e)throw _n("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&_t(n,e)?n[e]:this.get(e))}return i}invoke(t,n,e,i){"string"==typeof e&&(i=e,e=void 0);const r=this.Ct(t,e,i);return _(t)&&(t=t[t.length-1]),/^class\b/.test(xn(t))?(r.unshift(null),new(Function.prototype.bind.apply(t,r))):t.apply(n,r)}instantiate(t,n,e){const i=_(t)?t[t.length-1]:t,r=this.Ct(t,n,e);r.unshift(null);try{return new(Function.prototype.bind.apply(i,r))}catch(t){if("function"!=typeof(s=i)||s.prototype)throw t;return i(r)}var s}factory(t){}}class Tn extends An{constructor(t,n){super(n),this.xt=t}factory(t){throw this.Ot.push(t),_n("unpr","Unknown provider: {0}",this.Ot.join(" <- "))}}class Rn extends An{loadNewModules=()=>{};constructor(t,n){super(n),this.jt=t,this._t=t._t}factory(t){const n=this.jt.get(t+Cn);return this.invoke(n.$get,n,void 0,t)}has(t){const n=_t(this.jt.xt,t+Cn),e=_t(this.xt,t);return n||e}}function Mn(t,n,e,i={}){const r=i.serialize||JSON.stringify,s=i.deserialize||JSON.parse,o=e.getItem(n);return o&&Object.assign(t,s(o)),new Proxy(t,{set:(t,i,s)=>(t[i]=s,e.setItem(n,r(t)),!0),deleteProperty(t,i){const s=delete t[i];return e.setItem(n,r(t)),s}})}function Pn(t){if(_(t)&&t.length){const n=t.slice(0,-1),e=t.slice(-1);return!(n.filter(t=>!A(t)).length||e.filter(t=>!N(t)).length)}return N(t)}function In(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}const Dn="badarg",Nn=new Map([[M,"required"],[_,"notarray"],[Pn,"notinjectable"],[O,"required"],[A,"notstring"]]);function qn(t,n,e){if(t(n))return n;let i;try{i=JSON.stringify(n)}catch{i=String(n)}throw new TypeError(`badarg:${function(t){return Nn.get(t)??"fail"}(t)} ${e}=${i}`)}function Vn(t,n){return qn(M,t,n)}function Un(t,n){return qn(A,t,n)}const Fn=bt(Pt.bt),Ln="Provider";function Hn(t,n=!1){pt(_(t),"modules required");const e=new Map,i={$provide:{provider:Bn(u),factory:Bn(h),service:Bn(function(t,n){return h(t,[Pt.bt,t=>t.instantiate(n)])}),value:Bn(function(t,n){return i[t+Ln]={$get:()=>n}}),constant:Bn(function(t,n){nt(t,"constant"),r.xt[t]=n,s.xt[t]=n}),store:function(t,n,e,i){return u(t,{$get:r=>{switch(e){case"session":return Mn(r.instantiate(n),t,sessionStorage);case"local":return Mn(r.instantiate(n),t,localStorage);case"cookie":{const e=r.instantiate(n),s=r.get(Pt.P),o=i?.serialize??JSON.stringify,c=i?.deserialize??JSON.parse,u=i?.cookie??{};return Mn(e,t,{getItem(t){const n=s.get(t);return R(n)?null:n},setItem(t,n){s.put(t,n,u)},removeItem(t){s.remove(t,u)},serialize:o,deserialize:c})}case"custom":{const e=r.instantiate(n);let s,o=JSON.stringify,c=JSON.parse;return i?"function"==typeof i.getItem?s=i:j(i)&&(s=i.backend||localStorage,i.serialize&&(o=i.serialize),i.deserialize&&(c=i.deserialize)):s=localStorage,Mn(e,t,s,{serialize:o,deserialize:c})}}}})},decorator:function(t,n){const e=r.get(t+Ln),i=e.$get;e.$get=function(){const t=o.invoke(i,e);return o.invoke(n,null,{$delegate:t})}}}},r=i.$injector=new Tn(i,n),s=new Rn(r,n);i.$injectorProvider={$get:()=>s};let o=s;const c=a(t);return o=s.get(Pt.bt),c.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>a(t).forEach(t=>t&&o.invoke(t)),o;function u(t,n){let e;if(nt(t,"service"),e=N(n)||_(n)?r.instantiate(n):n,!e.$get)throw Fn("pget","Provider '{0}' must define $get factory method.",t);return i[t+Ln]=e,e}function h(t,n){return u(t,{$get(){const e=o.invoke(n,this);if(x(e))throw Fn("undef","Provider '{0}' must return a value from $get factory method.",t);return e}})}function a(t){qn(_,t,"modules");let n=[];return t.forEach(t=>{const i=Array.isArray(t)?t[t.length-1]:t;if(!e.get(i)){e.set(i,!0);try{if(A(t)){const e=window.angular.module(t);o._t[t]=e,n=n.concat(a(e.At)).concat(e.Tt),e.Rt.concat(e.Mt).forEach(t=>{const n=r.get(t[0]);n[t[1]].apply(n,t[2])})}else N(t)||_(t)?n.push(r.invoke(t)):gt(t,"module")}catch(n){const e=_(t)?t[t.length-1]:t;throw Fn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,C(n,Error)?n.stack||n.message:String(n))}}}),n}}function Bn(t){return function(n,e){return j(n)?void jt(n).forEach(([n,e])=>{t(n,e)}):t(n,e)}}const zn=Wn(window.location.href);function Wn(t){if(!A(t))return t;const n=new URL(t,window.location.href),e=n.hostname.includes(":")?`[${n.hostname}]`:n.hostname;return{href:n.href,protocol:n.protocol,host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:e,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:`/${n.pathname}`}}function Jn(t,n){return t=Wn(t),n=Wn(n),t.protocol===n.protocol&&t.host===n.host}function Zn(t){return t.replace(/#$/,"")}const Gn="application/json",Kn=200,Xn={"Content-Type":`${Gn};charset=utf-8`},Yn=/^\[|^\{(?!\{)/,Qn={"[":/]$/,"{":/}$/},te=/^\)]\}',?\n/,ne=bt("$http");function ee(t){return j(t)?I(t)?t.toISOString():ct(t):t}function ie(){this.$get=()=>t=>{if(!t)return"";const n=[];return Ct(t).sort().forEach(e=>{const i=t[e];null===i||x(i)||N(i)||(_(i)?i.forEach(t=>{n.push(`${ft(e)}=${ft(ee(t))}`)}):n.push(`${ft(e)}=${ft(ee(i))}`))}),n.join("&")}}function re(t,n){if(A(t)){const i=t.replace(te,"").trim();if(i){const r=n("Content-Type"),s=r&&0===r.indexOf(Gn);if(s||function(t){const n=t.match(Yn);return n&&Qn[n[0]].test(t)}(i))try{t=A(e=i)?JSON.parse(e):e}catch(n){if(!s)return t;throw ne("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,n)}}}var e;return t}function se(t){const n=Object.create(null);let e;function i(t,e){t&&(n[t]=n[t]?`${n[t]}, ${e}`:e)}return A(t)?t.split("\n").forEach(t=>{e=t.indexOf(":"),i(t.substring(0,e).trim().toLowerCase(),H(t.substring(e+1)))}):j(t)&&jt(t).forEach(([t,n])=>{i(t.toLowerCase(),H(n))}),n}function oe(t){let n;return function(e){if(n||(n=se(t)),e){let t=n[e.toLowerCase()];return void 0===t&&(t=null),t}return n}}function ce(t,n,e,i){return N(i)?i(t,n,e):(_(i)&&i.forEach(i=>{t=i(t,n,e)}),t)}function ue(t){return t>=Kn&&t<300}function he(){const t=this.defaults={transformResponse:[re],transformRequest:[function(t){return!j(t)||(n=t,"[object File]"===toString.call(n))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:ct(t);var n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:mt(Xn),put:mt(Xn),patch:mt(Xn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let n=!1;this.useApplyAsync=function(t){return O(t)?(n=!!t,this):n},this.interceptors=[],this.xsrfTrustedOrigins=[];const e=this;this.$get=[Pt.bt,Pt.Y,Pt.P,function(i,r,s){const o=new Map;t.paramSerializer=A(t.paramSerializer)?i.get(t.paramSerializer):t.paramSerializer;const c=[];e.interceptors.forEach(t=>{c.unshift(A(t)?i.get(t):i.invoke(t))});const u=function(t){const n=[zn].concat(t.map(Wn));return function(t){const e=Wn(t);return n.some(Jn.bind(null,e))}}(e.xsrfTrustedOrigins);function h(e){if(!j(e))throw bt("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!A(r.valueOf(e.url)))throw bt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",e.url);const a=W({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);var l;a.headers=function(n){let e=t.headers;const i=W({},n.headers);return e=W({},e.common,e[E(n.method)]),Ct(e).forEach(t=>{const n=E(t);Ct(i).some(t=>E(t)===n)||(i[t]=e[t])}),function(t,n){let e;const i={};return jt(t).forEach(([t,r])=>{N(r)?(e=r(n),R(e)||(i[t]=e)):i[t]=r}),i}(i,mt(n))}(e),a.method=A(l=a.method)?l.toUpperCase():l,a.paramSerializer=A(a.paramSerializer)?i.get(a.paramSerializer):a.paramSerializer;const f=[],d=[];let m=Promise.resolve(a);return c.forEach(t=>{(t.request||t.requestError)&&f.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),m=p(m,f),m=m.then(function(e){const{headers:i}=e,c=ce(e.data,oe(i),void 0,e.transformRequest);return x(c)&&Ct(i).forEach(t=>{"content-type"===E(t)&&delete i[t]}),x(e.withCredentials)&&!x(t.withCredentials)&&(e.withCredentials=t.withCredentials),function(e,i){const{promise:c,resolve:a,reject:l}=Promise.withResolvers();let f,d;const m=e.headers;let{url:p}=e;if(A(p)||(p=r.valueOf(p)),p=function(t,n){return n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n),t}(p,e.paramSerializer(e.params)),h.pendingRequests.push(e),c.then(v,v),(e.cache||t.cache)&&!1!==e.cache&&"GET"===e.method&&(f=j(e.cache)?e.cache:j(t.cache)?t.cache:o),f&&(d=f.get(p),O(d)?L(d)?d.then(w,w):_(d)?g(d[1],d[0],mt(d[2]),d[3],d[4]):g(d,Kn,{},"OK","complete"):f.set(p,c)),x(d)){const r=u(e.url)?s.getAll()[e.xsrfCookieName||t.xsrfCookieName]:void 0;r&&(m[e.xsrfHeaderName||t.xsrfHeaderName]=r),function(t,n,e,i,r,s,o,c,u,h){n=n||Zn(window.location.href);const a=new XMLHttpRequest;let l,f=!1;if(a.open(t,n,!0),r)for(const[t,n]of jt(r))O(n)&&a.setRequestHeader(t,n);if(a.onload=()=>{let t=a.status||0;const e=a.statusText||"";0===t&&(t=a.response?Kn:"file:"===new URL(n).protocol?404:0),m(t,a.response,a.getAllResponseHeaders(),e,"complete")},a.onerror=()=>m(-1,null,null,"","error"),a.ontimeout=()=>m(-1,null,null,"","timeout"),a.onabort=()=>{m(-1,null,null,"",f?"timeout":"abort")},u)for(const[t,n]of jt(u))a.addEventListener(t,n);if(h)for(const[t,n]of jt(h))a.upload.addEventListener(t,n);if(o&&(a.withCredentials=!0),c)try{a.responseType=c}catch(t){if("json"!==c)throw t}function d(t){f="timeout"===t,a&&a.abort()}function m(t,n,e,r,s){O(l)&&clearTimeout(l),i(t,n,e,r,s)}a.send(x(e)?null:e),"number"==typeof s&&s>0?l=setTimeout(()=>d("timeout"),s):L(s)&&s.then(()=>{d("abort")})}(e.method,p,i,function(t,e,i,r,s){function o(){g(e,t,i,r,s)}f&&(ue(t)?f.set(p,[t,e,se(i),r,s]):f.delete(p)),n?setTimeout(o):o()},m,e.timeout,e.withCredentials,e.responseType,$(e.eventHandlers),$(e.uploadEventHandlers))}return c;function $(t){if(t){const e={};return jt(t).forEach(([t,i])=>{e[t]=function(t){function e(){i(t)}n?setTimeout(()=>e()):e()}}),e}return{}}function g(t,n,i,r,s){(ue(n=n>=-1?n:0)?a:l)({data:t,status:n,headers:oe(i),config:e,statusText:r,xhrStatus:s})}function w(t){g(t.data,t.status,mt(t.headers()),t.statusText,t.xhrStatus)}function v(){const t=h.pendingRequests.indexOf(e);-1!==t&&h.pendingRequests.splice(t,1)}}(e,c).then($,$)}),m=p(m,d),m;function p(t,n){for(let e=0,i=n.length;e<i;){const i=n[e++],r=n[e++];t=t.then(i,r)}return n.length=0,t}function $(t){const n=W({},t);return n.data=ce(t.data,t.headers,t.status,a.transformResponse),ue(t.status)?n:Promise.reject(n)}}return h.pendingRequests=[],["get","delete","head"].forEach(t=>{h[t]=function(n,e){return h(W({},e||{},{method:t,url:n}))}}),["post","put","patch"].forEach(t=>{h[t]=function(n,e,i){return h(W({},i||{},{method:t,url:n,data:e}))}}),h.defaults=t,h}]}function ae(t,n){const e=n||`ng${t.charAt(0).toUpperCase()}${t.slice(1)}`,i=function(t,n){return function(e,i,r,s,o,c,u){function h(t){let n=null;if("form"===t.tagName.toLowerCase())n=t;else if("form"in t&&t.form)n=t.form;else if(t.hasAttribute("form")){const e=t.getAttribute("form");if(e){const t=document.getElementById(e);t&&"form"===t.tagName.toLowerCase()&&(n=t)}}if(!n){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const n=t.name,{value:e}=t;return{[n]:e}}return{}}const e=new FormData(n),i={};return e.forEach((t,n)=>{i[n]=t}),i}return{restrict:"A",link(a,l,d){const p=d.trigger||$e(l),$=l.tagName.toLowerCase();let g;O(d.latch)&&d.$observe("latch",At(()=>l.dispatchEvent(new Event(p))));let w,v=!1;O(d.interval)&&(l.dispatchEvent(new Event(p)),w=setInterval(()=>l.dispatchEvent(new Event(p)),parseInt(d.interval)||1e3)),l.addEventListener(p,async p=>{if(l.disabled)return;"form"===$&&p.preventDefault();const w=d.swap||"innerHTML",b=d[n];if(!b)return void r.warn(`${n}: no URL specified`);const y=t=>{O(d.loading)&&d.$set("loading",!1),O(d.loadingClass)&&d.$removeClass(d.loadingClass);const e=t.data;Kn<=t.status&&t.status<=299?(O(d.success)&&s(d.success)(a,{$res:e}),O(d.stateSuccess)&&o.go(d.stateSuccess)):400<=t.status&&t.status<=599&&(O(d.error)&&s(d.error)(a,{$res:e}),O(d.stateError)&&o.go(d.stateError)),j(e)?d.target?a.$eval(`${d.target} = ${JSON.stringify(e)}`):a.$merge(e):A(e)&&function(t,e,s,o,c){let h=!1;o.animate&&(h=!0);let a=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;const n=i(t)(s);a=n instanceof DocumentFragment?Array.from(n.childNodes):[n]}const l=o.target,d=l?document.querySelector(l):c;if(d)switch(e){case"outerHTML":{const t=d.parentNode;if(!t)return;const n=document.createDocumentFragment();if(a.forEach(t=>n.appendChild(t)),!h){t.replaceChild(n,d);break}const e=document.createElement("span");e.style.display="none",t.insertBefore(e,d.nextSibling),u.leave(d).done(()=>{const i=Array.from(n.childNodes);for(const n of i)n.nodeType===f?u.enter(n,t,e):t.insertBefore(n,e);g=i,s.$flushQueue()}),s.$flushQueue();break}case"textContent":h?(u.leave(d).done(()=>{d.textContent=t,u.enter(d,d.parentNode),s.$flushQueue()}),s.$flushQueue()):d.textContent=t;break;case"beforebegin":{const t=d.parentNode;if(!t)break;a.forEach(n=>{h&&n.nodeType===f?u.enter(n,t,d):t.insertBefore(n,d)}),h&&s.$flushQueue();break}case"afterbegin":{const{firstChild:t}=d;[...a].reverse().forEach(n=>{h&&n.nodeType===f?u.enter(n,d,t):d.insertBefore(n,t)}),h&&s.$flushQueue();break}case"beforeend":a.forEach(t=>{h&&t.nodeType===f?u.enter(t,d,null):d.appendChild(t)}),h&&s.$flushQueue();break;case"afterend":{const t=d.parentNode;if(!t)break;const{nextSibling:n}=d;[...a].reverse().forEach(e=>{h&&e.nodeType===f?u.enter(e,t,n):t.insertBefore(e,n)}),h&&s.$flushQueue();break}case"delete":h?(u.leave(d).done(()=>{d.remove(),s.$flushQueue()}),s.$flushQueue()):d.remove();break;case"none":break;default:h?g&&g.nodeType!==m?(u.leave(g).done(()=>{g=a[0],u.enter(a[0],d),s.$flushQueue()}),s.$flushQueue()):(g=a[0],g.nodeType===m?d.replaceChildren(...a):(u.enter(a[0],d),s.$flushQueue())):d.replaceChildren(...a)}else r.warn(`${n}: target "${l}" not found`)}(e,w,a,d,l)};if(O(d.delay)&&await Tt(0|parseInt(d.delay)),!v)if(O(d.throttle)&&(v=!0,d.$set("throttled",!0),setTimeout(()=>{d.$set("throttled",!1),v=!1},parseInt(d.throttle))),O(d.loading)&&d.$set("loading",!0),O(d.loadingClass)&&d.$addClass(d.loadingClass),"post"===t||"put"===t){let n;const i={};d.enctype?(i.headers={"Content-Type":d.enctype},n=ht(h(l))):n=h(l),e[t](b,n,i).then(y).catch(y)}else if("get"===t&&d.ngSse){const t=b,e={withCredentials:"true"===d.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{r.info(`${n}: SSE connection opened to ${t}`),O(d.loading)&&d.$set("loading",!1),O(d.loadingClass)&&d.$removeClass(d.loadingClass)},onMessage:t=>{y({status:200,data:t})},onError:t=>{r.error(`${n}: SSE error`,t),y({status:500,data:t})},onReconnect:t=>{r.info(`ngSse: reconnected ${t} time(s)`),d.onReconnect&&s(d.onReconnect)(a,{$count:t})}},i=c(t,e);a.$on("$destroy",()=>{r.info(`${n}: closing SSE connection`),i.close()})}else e[t](b).then(y).catch(y)}),w&&a.$on("$destroy",()=>clearInterval(w)),"load"===p&&l.dispatchEvent(new Event("load"))}}}}(t,e);return i.$inject=[Pt.U,Pt.M,Pt.B,Pt.J,Pt.nt,Pt.it,Pt.A],i}const le=ae("get"),fe=ae("delete"),de=ae("post"),me=ae("put"),pe=ae("get","ngSse");function $e(t){const n=t.tagName.toLowerCase();return["input","textarea","select"].includes(n)?"change":"form"===n?"submit":"click"}function ge(t,n,e){return{restrict:"A",link(i,r,s){const o=s.ngWorker;if(!o)return void n.warn("ngWorker: missing worker name");const c=s.trigger||$e(r);let u,h=!1;O(s.latch)&&s.$observe("latch",At(()=>r.dispatchEvent(new Event(c)))),O(s.interval)&&(r.dispatchEvent(new Event(c)),u=setInterval(()=>r.dispatchEvent(new Event(c)),parseInt(s.interval)||1e3));const a=we(o,{logger:n,err:e,onMessage:n=>{O(s.dataOnResult)?t(s.dataOnResult)(i,{$result:n}):function(t,n,e){switch(n){case"outerHTML":{const n=e.parentNode;if(!n)return;const i=document.createElement("div");i.innerHTML=t,n.replaceChild(i.firstChild,e);break}case"textContent":e.textContent=t;break;case"beforebegin":e.insertAdjacentHTML("beforebegin",t);break;case"afterbegin":e.insertAdjacentHTML("afterbegin",t);break;case"beforeend":e.insertAdjacentHTML("beforeend",t);break;case"afterend":e.insertAdjacentHTML("afterend",t);break;default:e.innerHTML=t}}(n,s.swap||"innerHTML",r)},onError:e=>{n.error(`[ng-worker:${o}]`,e),O(s.dataOnError)?t(s.dataOnError)(i,{$error:e}):r.textContent="Error"}});r.addEventListener(c,async()=>{if(r.hasAttribute("disabled"))return;if(O(s.delay)&&await Tt(parseInt(s.delay)||0),h)return;let t;O(s.throttle)&&(h=!0,s.$set("throttled",!0),setTimeout(()=>{s.$set("throttled",!1),h=!1},parseInt(s.throttle)));try{t=s.params?i.$eval(s.params):void 0}catch(e){n.error("ngWorker: failed to evaluate data-params",e),t=void 0}a.post(t)}),u&&i.$on("$destroy",()=>clearInterval(u)),"load"===c&&r.dispatchEvent(new Event("load"))}}}function we(t,n){if(!t)throw new Error("Worker script path required");const e={autoRestart:!1,autoTerminate:!1,onMessage(){},onError(){},transformMessage(t){try{return JSON.parse(t)}catch{return t}}},i=Object.assign({},e,n);let r=new Worker(t,{type:"module"}),s=!1;const o=function(){s||(i.logger.info("Worker: restarting..."),r.terminate(),r=new Worker(t,{type:"module"}),c(r))},c=t=>{t.onmessage=function(t){let{data:n}=t;try{n=i.transformMessage(n)}catch{}i.onMessage(n,t)},t.onerror=function(t){i.onError(t),i.autoRestart&&o()}};return c(r),{post(t){s&&i.logger.warn("Worker already terminated");try{r.postMessage(t)}catch(t){i.logger.log("Worker post failed",t)}},terminate(){s=!0,r.terminate()},restart(){s&&i.logger.warn("Worker cannot restart after terminate"),o()},config:i}}ge.$inject=[Pt.J,Pt.B,Pt.q];class ve{constructor(t,n,e){qn(A,t,"name"),qn(_,n,"requires"),this.name=t,this.At=n,this.Rt=[],this.Mt=[],this.Tt=[],e&&this.config(e),this.Pt=[],this.It=[]}value(t,n){return qn(A,t,"name"),this.Rt.push([Pt.vt,"value",[t,n]]),this}constant(t,n){return qn(A,t,"name"),qn(O,n,"object"),this.Rt.unshift([Pt.vt,"constant",[t,n]]),this}config(t){return qn(Pn,t,"configFn"),this.Mt.push([Pt.bt,"invoke",[t]]),this}run(t){return qn(Pn,t,"block"),this.Tt.push(t),this}component(t,n){return qn(A,t,"name"),qn(O,n,"object"),this.Rt.push([Pt.yt,"component",[t,n]]),this}factory(t,n){return qn(A,t,"name"),Vn(n,"providerFunction"),this.Rt.push([Pt.vt,"factory",[t,n]]),this}service(t,n){return qn(A,t,"name"),Vn(n,"serviceFunction"),this.Pt.push(t),this.Rt.push([Pt.vt,"service",[t,n]]),this}provider(t,n){return qn(A,t,"name"),Vn(n,"providerType"),this.Rt.push([Pt.vt,"provider",[t,n]]),this}decorator(t,n){return qn(A,t,"name"),Vn(n,"decorFn"),this.Mt.push([Pt.vt,"decorator",[t,n]]),this}directive(t,n){return qn(A,t,"name"),Vn(n,"directiveFactory"),this.Rt.push([Pt.yt,"directive",[t,n]]),this}animation(t,n){return qn(A,t,"name"),Vn(n,"animationFactory"),this.Rt.push([Pt.kt,"register",[t,n]]),this}filter(t,n){return qn(A,t,"name"),qn(N,n,"filterFn"),this.Rt.push([Pt.Et,"register",[t,n]]),this}controller(t,n){return qn(A,t,"name"),Vn(n,"fictlFnlterFn"),this.Rt.push([Pt.St,"register",[t,n]]),this}wasm(t,n,e={},i={}){qn(A,t,"name"),qn(A,n,"src");const r=!!i.raw;return this.Rt.push([Pt.vt,"provider",[t,class{$get(){return Mt(n,e).then(t=>r?t:t.exports)}}]]),this}worker(t,n,e){return qn(A,t,"name"),qn(A,n,"scriptPath"),this.Rt.push([Pt.vt,"provider",[t,class{$get=()=>we(n,e)}]]),this}store(t,n,e,i){return qn(A,t,"name"),Vn(n,"ctor"),this.Rt.push([Pt.vt,"store",[t,j(n)?()=>n:n,e,i]]),this}rest(t,n,e,i={}){qn(A,t,"name"),qn(A,n,"url"),qn(N,e,"entityClass");const r={name:t,url:n,entityClass:e,options:i};return this.It.push(r),this.Rt.push([Pt.vt,"factory",[t,[Pt.Z,t=>t(n,e,i)]]]),this}sse(t,n,e={}){return qn(A,t,"name"),qn(A,n,"url"),this.Rt.push([Pt.vt,"factory",[t,[Pt.it,t=>t(n,e)]]]),this}websocket(t,n,e=[],i={}){return qn(A,t,"name"),qn(A,n,"url"),this.Rt.push([Pt.vt,"factory",[t,[Pt.wt,t=>t(n,e,i)]]]),this}}class be{static $nonscope=!0;constructor(t){if(this.Dt=void 0,this.l=void 0,this.Nt=[],this.qt=!1,A(t)){const n=dn(t);switch(!0){case n instanceof Element:this.element=n;break;case n instanceof Node:this.node=n}}else if(t instanceof NodeList)1===t.length?this.node=t[0]:(this.Nt=Array.from(t),this.qt=!0);else if(t instanceof Element)this.element=t;else if(t instanceof Node)this.Dt=t;else{if(!_(t))throw new Error("Invalid element passed to NodeRef");1===t.length?this.node=t[0]:this.nodes=t}}get element(){return this.l}set element(t){this.l=t,this.qt=!1}get node(){return this.Dt||this.l}set node(t){this.Dt=t,t.nodeType===f?this.l=t:this.l=void 0}set nodes(t){this.Nt=t,this.qt=!0}get nodes(){return this.Nt}get nodelist(){if(0===this.Nt.length)return[];if(this.Nt[0].parentElement)return this.Nt[0].parentElement.childNodes;const t=document.createDocumentFragment();return this.Nt.forEach(n=>t.appendChild(n)),t.childNodes}get dom(){return this.qt?this.nodelist:this.node}get size(){return this.qt?this.Nt.length:1}Vt(){return this.qt?this.Nt[0]:this.l||this.Dt}Ut(){return this.qt?this.Nt:this.l||this.Dt}Ft(){return this.qt?Array.from(this.Nt):[this.l||this.Dt]}Lt(t){return this.qt?this.Nt[t]:this.node}Ht(t,n){this.qt?this.Nt[t]=n:this.node=n}Bt(){const t=this.qt?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new be(t)}zt(){return void 0!==this.l}}const ye=bt("$controller"),ke=/^(\S+)(\s+as\s+([\w$]+))?$/;function Ee(t,n){if(A(t)){const n=ke.exec(t);if(n)return n[3]}}class Se{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,n){nt(t,"controller"),j(t)?jt(t).forEach(([t,n])=>{this.controllers.set(t,n)}):this.controllers.set(t,n)}$get=[Pt.bt,t=>(n,e,i,r)=>{let s,o,c,u=r&&A(r)?r:null;if(i=!0===i,A(n)){if(o=n.match(ke),!o)throw ye("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",n);if(c=o[1],u=u||o[3],!(n=this.controllers.get(c)))throw ye("ctrlreg","The controller with the name '{0}' is not registered.",c);gt(n,c,!0)}if(i){const i=(_(n)?n[n.length-1]:n).prototype;return s=Object.create(i||null),u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name)),s?.constructor?.$scopename&&(e.$scope.$scopename=s.constructor.$scopename),function(){const i=t.invoke(n,s,e,c);return i!==s&&(j(i)||N(i))&&(s=i,u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name))),s}.bind(this,{instance:s,identifier:u})}return s=t.instantiate(n,e,c),u&&this.addIdentifier(e,u,s,c||n.name),s}];addIdentifier(t,n,e,i){if(!t||!j(t.$scope))throw bt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=e,t.$scope.$controllerIdentifier=n}}const xe=bt("$sce"),Oe={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function _e(t){if("self"===t)return t;if(A(t)){if(t.indexOf("***")>-1)throw xe("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(n=t,n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var n;if(q(t))return new RegExp(`^${t.source}$`);throw xe("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ce{constructor(){let t=["self"],n=[];this.trustedResourceUrlList=function(n){return arguments.length&&(t=n.map(_e)),t},this.bannedResourceUrlList=function(t){return arguments.length&&(n=t.map(_e)),n},this.$get=[Pt.bt,Pt.rt,Pt.q,function(e,i,r){let s=function(){r(xe("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,n){return"self"===t?Jn(n,zn)||Jn(n,document.baseURI):!!t.exec(n.href)}function c(t){const n=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(n.prototype=new t),n.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},n.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},n}e.has("$sanitize")&&(s=e.get("$sanitize"));const u=c(),h={};return h[Oe.HTML]=c(u),h[Oe.CSS]=c(u),h[Oe.MEDIA_URL]=c(u),h[Oe.URL]=c(h[Oe.MEDIA_URL]),h[Oe.JS]=c(u),h[Oe.RESOURCE_URL]=c(h[Oe.URL]),{trustAs:function(t,n){const e=_t(h,t)?h[t]:null;return e?null===n||x(n)||""===n?n:"string"!=typeof n?void r(xe("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t)):new e(n):void r(xe("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,n))},getTrusted:function(e,c){if(null===c||x(c)||""===c)return c;const u=_t(h,e)?h[e]:null;return u&&c instanceof u?c.$$unwrapTrustedValue():(N(c.$$unwrapTrustedValue)&&(c=c.$$unwrapTrustedValue()),e===Oe.MEDIA_URL||e===Oe.URL?i(c.toString(),e===Oe.MEDIA_URL):e===Oe.RESOURCE_URL?function(e){const i=Wn(e.toString());let r,s,c=!1;for(r=0,s=t.length;r<s;r++)if(o(t[r],i)){c=!0;break}if(c)for(r=0,s=n.length;r<s;r++)if(o(n[r],i)){c=!1;break}return c}(c)?c:void r(xe("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",c.toString())):e===Oe.HTML?s():r(xe("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof u?t.$$unwrapTrustedValue():t}}}]}}function je(){let t=!0;this.enabled=function(n){return arguments.length&&(t=!!n),t},this.$get=[Pt.J,Pt.tt,(n,e)=>{const i=mt(Oe);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(t,n){return n},i.valueOf=t=>t),i.parseAs=(t,e)=>{const r=n(e);return r.Wt&&r.constant?r:n(e,n=>i.getTrusted(t,n))};const r=i.parseAs,{getTrusted:s}=i,{trustAs:o}=i;return jt(Oe).forEach(([t,n])=>{const e=t.toLowerCase();i[Wt(`parse_as_${e}`)]=function(t){return r(n,t)},i[Wt(`get_trusted_${e}`)]=function(t){return s(n,t)},i[Wt(`trust_as_${e}`)]=function(t){return o(n,t)}}),i}]}const Ae={};function Te(t,n,e,i){return{restrict:"A",compile(r,s){const o=t(s[e]);return(t,e)=>{const r=e=>{try{o(t,{$event:e})}catch(t){n(t)}};e.addEventListener(i,r),t.$on("$destroy",()=>e.removeEventListener(i,r))}}}}function Re(t,n,e,i,r){return{restrict:"A",compile(s,o){const c=t(o[i]);return t=>{const i=e=>{try{c(t,{$event:e})}catch(t){n(t)}};e.addEventListener(r,i),t.$on("$destroy",()=>e.removeEventListener(r,i))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove".split(" ").forEach(t=>{const n=St(`ng-${t}`);Ae[n]=[Pt.J,Pt.q,(e,i)=>Te(e,i,n,t)]});const Me=bt("$compile"),Pe=/^\w/,Ie=document.createElement("div");class De{static $nonscope=!0;constructor(t,n,e,i,r){if(this.A=t,this.q=n,this.Y=e,this.$attr={},r){const t=Object.keys(r),n=this;for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=r[i]}}this.Jt=i}l(){return this.Jt?.Vt()}$normalize=St;$addClass(t){t&&t.length>0&&(xt(this.l())?this.A.addClass(this.l(),t):this.Jt?.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(xt(this.l())?this.A.removeClass(this.l(),t):this.Jt?.element.classList.remove(t))}$updateClass(t,n){const e=Ne(t,n);e&&e.length&&(xt(this.l())?this.A.addClass(this.l(),e):this.Jt?.element.classList.add(...e.trim().split(/\s+/)));const i=Ne(n,t);i&&i.length&&(xt(this.l())?this.A.removeClass(this.l(),i):this.Jt?.element.classList.remove(...i.trim().split(/\s+/)))}$set(t,n,e,i){const r=an(this.l(),t),s=l[t];let o=t;r?(this.l()[t]=n,i=r):s&&(this[s]=n,o=s),this[t]=n,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=B(t,"-"));const c=this.Jt?.node.nodeName.toLowerCase();let u;if("img"===c&&"srcset"===t?this[t]=u=this.sanitizeSrcset(n,"$set('srcset', value)"):u=n,!1!==e){const t=this.l();R(u)?t.removeAttribute(i):Pe.test(i)?r&&!1===u?t.removeAttribute(i):r?t.toggleAttribute(i,u):t.setAttribute(i,u):this.setSpecialAttr(this.l(),i,u)}const{Zt:h}=this;h&&h[o]&&h[o].forEach(t=>{try{t(u)}catch(t){this.q(t)}})}$observe(t,n){const e=this.Zt||(this.Zt=Object.create(null)),i=e[t]||(e[t]=[]);return i.push(n),i.$$inter||!_t(this,t)||x(this[t])||n(this[t]),function(){Y(i,n)}}setSpecialAttr(t,n,e){Ie.innerHTML=`<span ${n}>`;const{attributes:i}=Ie.firstChild,r=i[0];i.removeNamedItem(r.name),r.value=e??"",t.attributes.setNamedItem(r)}sanitizeSrcset(t,n){let e;if(!t)return t;if(!A(t))throw Me("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',n,t.toString());let i="";const r=H(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(s),c=Math.floor(o.length/2);for(e=0;e<c;e++){const t=2*e;i+=this.Y.getTrustedMediaUrl(H(o[t])),i+=` ${H(o[t+1])}`}const u=H(o[2*e]).split(/\s/);return i+=this.Y.getTrustedMediaUrl(H(u[0])),2===u.length&&(i+=` ${H(u[1])}`),i.replace(/unsafe:unsafe/g,"unsafe")}}function Ne(t,n){const e=new Set(t.split(/\s+/)),i=new Set(n.split(/\s+/));return Array.from(e).filter(t=>!i.has(t)).join(" ")}function qe(t,n){return{restrict:"A",compile:()=>(e,i)=>{""===n&&(n=t);const r=zt(n);e[r]||(e[r]=i.getAttribute(t));const s=new MutationObserver(n=>{const i=n[0].target.getAttribute(t);e[r]!==i&&(e[r]=i)});s.observe(i,{attributes:!0,attributeFilter:[t]}),e.$on("$destroy",()=>{s.disconnect()})}}}const Ve=bt("$compile"),Ue=["ngIf","ngRepeat"],Fe=["ngSrc","ngSrcset","src","srcset"],Le=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,He=/^(on[a-z]+|formaction)$/,Be=t=>()=>t,ze="Directive";class We{static $inject=[Pt.vt,Pt.st];constructor(t,n){const e={},i=Object.create(null);function r(t,n,e){const r=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,s=Object.create(null);return jt(t).forEach(([t,o])=>{if((o=o.trim())in i)return void(s[t]=i[o]);const c=o.match(r);if(!c)throw Ve("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",n,t,o,e?"controller bindings definition":"isolate scope definition");s[t]={mode:c[1][0],collection:"*"===c[2],optional:"?"===c[3],attrName:c[4]||t},c[4]&&(i[o]=s[t])}),s}function s(t,n){const e={isolateScope:null,bindToController:null};if(j(t.scope)&&(!0===t.bindToController?(e.bindToController=r(t.scope,n,!0),e.isolateScope={}):e.isolateScope=r(t.scope,n,!1)),j(t.bindToController)&&(e.bindToController=r(t.bindToController,n,!0)),e.bindToController&&!t.controller)throw Ve("noctrl","Cannot bind to controller without directive '{0}'s controller.",n);return e}function o(t){const n=t.require||t.controller&&t.name;if(!_(n)&&j(n)){const t=jt(n);for(let e=0,i=t.length;e<i;e++){const[i,r]=t[e],s=r.match(Le);s&&(r.substring(s[0].length)||(n[i]=s[0]+i))}}return n}function c(t,n){if(t&&(!A(t)||!/[EA]/.test(t)))throw Ve("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,n);return t||"EA"}this.directive=function n(i,r){return $t(i,"name"),nt(i,"directive"),A(i)?(function(t){const n=t.charAt(0);if(!n||n!==n.toLowerCase())throw Ve("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ve("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),$t(r,"directiveFactory"),_t(e,i)||(e[i]=[],t.factory(i+ze,[Pt.bt,Pt.q,function(t,n){const r=[];for(let s=0,u=e[i].length;s<u;s++){const u=e[i][s];try{let n=t.invoke(u);N(n)?n={compile:Be(n)}:!n.compile&&n.link&&(n.compile=Be(n.link)),n.priority=n.priority||0,n.index=s,n.name=n.name||i,n.require=o(n),n.restrict=c(n.restrict,i),r.push(n)}catch(t){n(t)}}return r}])),e[i].push(r)):jt(i).forEach(([t,e])=>n(t,e)),this},this.component=function(t,n){if(!A(t))return jt(t).forEach(([t,n])=>this.component(t,n)),this;const e=n.controller||function(){};function i(t){function i(n){return N(n)||_(n)?function(e,i){return t.invoke(n,this,{$element:e,$attrs:i})}:n}const r=n.template||n.templateUrl?n.template:"",s={controller:e,controllerAs:Ee(n.controller)||n.controllerAs||"$ctrl",template:i(r),templateUrl:i(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return jt(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(s[t]=n)}),s}return jt(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(i[t]=n,N(e)&&(e[t]=n))}),i.$inject=[Pt.bt],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(t){if(!O(t))return n.aHrefSanitizationTrustedUrlList();n.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!O(t))return n.imgSrcSanitizationTrustedUrlList();n.imgSrcSanitizationTrustedUrlList(t)};let u=!1;this.strictComponentBindingsEnabled=function(t){return O(t)?(u=t,this):u};const a=Object.create(null);this.addPropertySecurityContext=function(t,n,e){const i=`${t.toLowerCase()}|${n.toLowerCase()}`;if(i in a&&a[i]!==e)throw Ve("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,n,a[i],e);return a[i]=e,this},function(){function t(t,n){n.forEach(n=>{a[n.toLowerCase()]=t})}t(Oe.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Oe.CSS,["*|style"]),t(Oe.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Oe.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Oe.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=[Pt.bt,Pt.L,Pt.q,Pt.ut,Pt.J,Pt.I,Pt.Y,Pt.A,function(t,n,i,r,o,c,l,$){let g;function w(){for(let t=0,n=g.length;t<n;++t)try{g[t]()}catch(t){i(t)}g=void 0}const b=n.startSymbol(),y=n.endSymbol(),k="{{"===b&&"}}"===y?t=>t:t=>t.replace(/\{\{/g,b).replace(/}}/g,y),E=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return S;function S(t,n,e,i,r){let s=new be(t),o=C(s,n,e,i,r),c=null;return function(t,n,e){if(!s)throw Ve("multilink","This element has already been linked.");$t(t,"scope"),s.l&&en(s.l,t),r&&r.needsNewScope&&(t=t.$parent.$new()),e=e||{};let{parentBoundTranscludeFn:i}=e;const{transcludeControllers:u,futureParentElement:h}=e;let a;if(i&&i.$$boundTransclude&&(i=i.$$boundTransclude),c||(c=function(t){const n=t;return n&&"foreignobject"!==K(n)&&toString.call(n).match(/SVG/)?"svg":"html"}(h)),"html"!==c){const t=dn("<div></div>");t.append(s.node);const n=G(c,t.innerHTML);a=new be(n[0])}else a=n?s.Bt():s;if(u)for(const t in u)$t(a.element,"element"),Qt(a.element,`$${t}Controller`,u[t].instance);return n&&n(a.dom,t),o&&o(t,a,i),n||(s=o=null),a.Ut()}}function C(t,n,e,r,s){const o=[];let c,u=!1;for(let h=0;h<t.size;h++){const a=new De($,i,l),f=R(t.Lt(h),a,0===h?e:void 0,r);let d,m;f.length&&(d=P(f,t.Lt(h),a,n,null,[],[],Object.assign({},s,{index:h,parentNodeRef:t,ctxNodeRef:t})));const p=d?.nodeLinkFn,{childNodes:g}=t.Lt(h);if(p&&d.terminal||!g||!g.length)m=null;else{const t=p?(d.transcludeOnThisElement||!d.templateOnThisElement)&&d.transclude:n;m=C(new be(g),t)}(p||m)&&(o.push({index:h,nodeLinkFnCtx:d,childLinkFn:m}),u=!0,c=c||p),s=null}return u?function(e,i,r){$t(i,"nodeRef");let s=[];if(c){const n=i.qt?i.nodes.length:1;s=new Array(n),o.forEach(n=>{const e=n.index;0===e?s[e]=i.qt?i.nodes[e]:i.node:t.Lt(e)&&(s[e]=i.nodes[e])})}else i.qt?i.nodes.forEach(t=>s.push(t)):s.push(i.node);o.forEach(({index:t,nodeLinkFnCtx:i,childLinkFn:o})=>{const c=s[t];let u,h;c.stable=!0,i?.nodeLinkFn?(u=i.newScope?e.$new():e,h=i.transcludeOnThisElement?T(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&n?T(e,n):null,i?.newScope&&en(c,u),i.nodeLinkFn(o,u,c,h)):o&&o(e,new be(c.childNodes),r)})}:null}function T(t,n,e){function i(i,r,s,o,c){return i||((i=t.$transcluded(c)).$$transcluded=!0),n(i,r,{parentBoundTranscludeFn:e,transcludeControllers:s,futureParentElement:o})}const r=i.$$slots=Object.create(null);for(const i in n.$$slots)n.$$slots[i]?r[i]=T(t,n.$$slots[i],e):r[i]=null;return i}function R(t,e,r,s){const c=[],{nodeType:u}=t,a=e.$attr;let l;switch(u){case f:l=t.nodeName.toLowerCase(),s!==St(l)&&V(c,St(l),"E",r);for(let n=0;n<t.attributes?.length;n++){let u=!1,l=!1,f=!1,d=!1,m=!1;const p=t.attributes[n];let{name:$}=p;const{value:g}=p;let w=St($.toLowerCase());const v=w.match(E);v&&(u="Attr"===v[1],l="Prop"===v[1],f="On"===v[1],d="Observe"===v[1],m="Window"===v[1],$=$.replace(h,"").toLowerCase().substring(4+v[1].length).replace(/_(.)/g,(t,n)=>n.toUpperCase())),l||f||m?(e[w]=g,a[w]=p.name,l?X(t,c,w,$):f?c.push(Te(o,i,w,$)):c.push(Re(o,i,window,w,$))):d?c.push(qe($,g)):(w=St($.toLowerCase()),a[w]=$,!u&&_t(e,w)||(e[w]=g,an(t,w)&&(e[w]=!0)),Y(t,c,g,w,u),w!==s&&V(c,w,"A",r))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case m:!function(t,e){const i=n(e,!0);i&&t.push({priority:0,compile:()=>(t,n)=>{i.expressions.forEach(e=>{t.$watch(e,()=>{const e=i(v(t));1===n.nodeType?n.innerHTML=e:n.nodeValue=e})})}})}(c,t.nodeValue)}return c.sort(z),c}function M(t,n,e,i,r,s){let o;return t?S(n,e,i,r,s):function(){return o||(o=S(n,e,i,r,s),n=e=s=null),o.apply(this,arguments)}}function P(t,n,e,r,s,o,u,h){h=h||{};let a=-Number.MAX_VALUE,d=!1,{newScopeDirective:m,controllerDirectives:p,newIsolateScopeDirective:g,templateDirective:w,nonTlbTranscludeDirective:v,hasElementTranscludeDirective:b}=h;const{ctxNodeRef:y,parentNodeRef:E}=h;let S=!1,O=!1,C=new be(n);const{index:T}=h;let P,D,V;e.Jt=C;let F,z=s,Z=r,X=!1,Y=!1,Q=function(t,s,h,a){let f,d,w,v,y,k,E,S,O=s;if(n===h?(E=e,k=e.Jt):(k=new be(h),E=new De($,i,l,k,e)),v=s,g?w=s.$newIsolate():m&&(v=s.$parent),a){const t=function(t,n,e,i){let r;if(U(t)||(i=e,e=n,n=t,t=void 0),b&&(r=y),e||(e=b?k.node.parentElement:k.node),i){const s=a.$$slots[i];if(s)return s(t,n,r,e,O);if(x(s))throw Ve("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,un(k.element));return}return a(t,n,r,e,O)};t.$$boundTransclude=a,t.isSlotFilled=function(t){return!!a.$$slots[t]},r=t}p&&(y=function(t,n,e,i,r,s,o){const u=Object.create(null);for(const h in i){const a=i[h],l={$scope:a===o||a.$$isolateScope?r:s,$element:t.node,$attrs:n,$transclude:e};let{controller:f}=a;"@"===f&&(f=n[a.name]);const d=c(f,l,!0,a.controllerAs);u[a.name]=d,t.zt()&&Qt(t.element,`$${a.name}Controller`,d.instance)}return u}(k,E,r,p,w,s,g)),g&&(w.$target.$$isolateBindings=g.$$isolateBindings,S=rt(s,E,w,w.$$isolateBindings,g),S.removeWatches&&w.$on("$destroy",S.removeWatches));for(const t in y){const n=p[t],e=y[t],i=n.$$bindings.bindToController,r=e();e.instance=v.$new(r),Qt(k.node,`$${n.name}Controller`,e.instance),e.bindingInfo=rt(v,E,e.instance,i,n)}for(p&&jt(p).forEach(([t,n])=>{const{require:e}=n;n.bindToController&&!_(e)&&j(e)&&W(y[t].instance,I(t,e,k.element,y))}),y&&Object.values(y).forEach(t=>{const n=t.instance;if(N(n.$onChanges))try{n.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if(N(n.$onInit))try{n.$target.$onInit()}catch(t){i(t)}N(n.$onDestroy)&&v.$on("$destroy",()=>{n.$onDestroy()})}),f=0,d=o.length;f<d;f++){const t=o[f],n=t.require&&I(t.directiveName,t.require,k.element,y);try{t(t.isolateScope?w:s,k.node,E,n,r)}catch(t){i(t)}}for(g&&(g.template||null===g.templateUrl)&&(O=w),t&&h&&h.childNodes&&h.childNodes.length&&t(O,new be(h.childNodes),a),f=u.length-1;f>=0;f--){const t=u[f],n=t.require&&I(t.directiveName,t.require,k.node,y);try{t.isolateScope&&rn(k.element,w),t(t.isolateScope?w:s,k.node,E,n,r)}catch(t){i(t)}}y&&Object.values(y).forEach(t=>{const n=t.instance;N(n.$postLink)&&n.$postLink()})};for(let s=0,c=t.length;s<c&&(P=t[s],!(a>P.priority));s++){F=P.scope,F&&(P.templateUrl||(j(F)?(J("new/isolated scope",g||m,P,C),g=P):J("new/isolated scope",g,P,C)),m=m||P),D=P.name;const l=P.replace&&(P.templateUrl||P.template),$=P.transclude&&!Ue.includes(P.name);if(!X&&(l||$)){let n;for(let e=s+1;n=t[e++];)if(n.transclude&&!Ue.includes(n.name)||n.replace&&(n.templateUrl||n.template)){Y=!0;break}X=!0}if(!P.templateUrl&&P.controller&&(p=p||Object.create(null),J(`'${D}' controller`,p[D],P,C),p[D]=P),F=P.transclude,F)if(S=!0,Ue.includes(P.name)||(J("transclusion",v,P,C),v=P),"element"===F)b=!0,a=P.priority,V=C,C=new be(document.createComment("")),e.Jt=C,n=C.node,y.node=n,nt(new be(V.l),n,T),Z=M(Y,V.l,r,a,z&&z.name,{nonTlbTranscludeDirective:v});else{const t=Object.create(null);let e;if(j(F)){e=document.createDocumentFragment();const n=Object.create(null),i=Object.create(null);jt(F).forEach(([e,r])=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,n[r]=e,t[e]=null,i[e]=s}),C.element.childNodes.forEach(r=>{const s=n[St(K(r))];s?(i[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):e.appendChild(r)}),jt(i).forEach(([t,n])=>{if(!n)throw Ve("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const n in t)if(t[n]){const e=t[n].childNodes;t[n]=M(Y,e,r)}e=e.childNodes}else e=n.cloneNode(!0).childNodes;pn(n),Z=M(Y,e,r,void 0,void 0,{needsNewScope:P.$$isolateScope||P.$$newScope}),Z.$$slots=t}if(P.template)if(O=!0,J("template",w,P,C),w=P,F=N(P.template)?P.template(C.node,e):P.template,F=k(F),P.replace){if(z=P,V=Gt(F)?[]:Je(G(P.templateNamespace,H(F))),A(V)&&(V=Array.from(mn(V)).filter(t=>t.nodeType===f)),n=V[0],1!==V.length||n.nodeType!==f)throw Ve("tplrt","Template for directive '{0}' must have exactly one root element. {1}",D,"");nt(C,n),E&&E.Ht(T,n);const i={$attr:{}},r=R(n,i),o=t.splice(s+1,t.length-(s+1));(g||m)&&q(r,g,m),t=t.concat(r).concat(o),L(e,i),c=t.length}else C.zt()&&(C.element.innerHTML=F);if(P.templateUrl)O=!0,J("template",w,P,C),w=P,P.replace&&(z=P),Q=B(t.splice(s,t.length-s),C,e,n,S&&Z,o,u,{index:T,controllerDirectives:p,newScopeDirective:m!==P&&m,newIsolateScopeDirective:g,templateDirective:w,nonTlbTranscludeDirective:v,futureParentElement:h.futureParentElement}),c=t.length;else if(P.compile)try{const t=P.compile(C.Vt(),e,Z),n=P.$$originalDirective||P;N(t)?tt(null,st(n,t)):t&&tt(st(n,t.pre),st(n,t.post))}catch(t){i(t)}P.terminal&&(d=!0,a=Math.max(a,P.priority))}return h.hasElementTranscludeDirective=b,{nodeLinkFn:Q,terminal:d,transclude:Z,transcludeOnThisElement:S,templateOnThisElement:O,newScope:m&&!0===m.scope};function tt(t,n){t&&(t.require=P.require,t.directiveName=D,(g===P||P.$$isolateScope)&&(t=et(t,{isolateScope:!0})),o.push(t)),n&&(n.require=P.require,n.directiveName=D,(g===P||P.$$isolateScope)&&(n=et(n,{isolateScope:!0})),u.push(n))}}function I(t,n,e,i){let r;if(A(n)){const s=n.match(Le),o=n.substring(s[0].length),c=s[1]||s[3],u="?"===s[2];if("^^"===c?e=e.parentElement?e.parentElement:void 0:(r=i&&i[o],r=r&&r.instance),!r){const t=`$${o}Controller`;r="^^"===c&&e&&e.nodeType===d?null:e?c?on(e,t):tn(e,t):void 0}if(!r&&!u)throw Ve("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(_(n)){r=[];for(let s=0,o=n.length;s<o;s++)r[s]=I(t,n[s],e,i)}else j(n)&&(r={},jt(n).forEach(([n,s])=>{r[n]=I(t,s,e,i)}));return r||null}function q(t,n,e){for(let i=0,r=t.length;i<r;i++)t[i]=Z(t[i],{$$isolateScope:n,$$newScope:e})}function V(n,i,r,o){let c=!1;if(_t(e,i))for(let e,u=t.get(i+ze),h=0,a=u.length;h<a;h++)if(e=u[h],(x(o)||o>e.priority)&&-1!==e.restrict.indexOf(r)){if(!e.$$bindings){const t=e.$$bindings=s(e,e.name);j(t.isolateScope)&&(e.$$isolateBindings=t.isolateScope)}n.push(e),c=e}return c}function L(t,n){const e=n.$attr,i=t.$attr;jt(t).forEach(([i,r])=>{"$"!==i[0]&&"_"!==i[0]&&(n[i]&&n[i]!==r&&(r.length?r+=("style"===i?";":" ")+n[i]:r=n[i]),t.$set(i,r,!0,e[i]))}),jt(n).forEach(([n,r])=>{_t(t,n)||"$"===n.charAt(0)||(t[n]=r,"class"!==n&&"style"!==n&&(i[n]=e[n]))})}function B(t,n,e,s,o,c,u,h){let a,l,d,$=[];const g=n.Vt(),w=t.shift(),v=Z(w,{templateUrl:null,transclude:null,replace:null,$$originalDirective:w});let b;b=N(w.templateUrl)?w.templateUrl(n.element,e):w.templateUrl;const{templateNamespace:y}=w;return pn(n.element),r(b).then(i=>{let r,E,S,x;if(i=k(i),w.replace){if(S=Gt(i)?[]:A(i)?Array.from(mn(i)).filter(t=>t.nodeType!==p&&t.nodeType!==m):Je(G(y,H(i))),r=S[0],1!==S.length||r.nodeType!==f)throw Ve("tplrt","Template for directive '{0}' must have exactly one root element. {1}",w.name,b);E={$attr:{}},nt(n,r,h.index);const s=R(r,E);j(w.scope)&&q(s,!0),t=s.concat(t),L(e,E)}else r=g,n.element.innerHTML=i;for(t.unshift(v),d=P(t,r,e,o,w,c,u,{...h,ctxNodeRef:n}),a=d?.nodeLinkFn,s&&jt(s).forEach(([t,e])=>{e===r&&(s[t]=n)}),l=C(new be(n.Vt().childNodes),o);$.length;){const t=$.shift(),e=$.shift(),i=$.shift();let s=n.Vt();if(!t.Gt){if(e!==g){const t=e.className;h.hasElementTranscludeDirective&&w.replace||(s=r.cloneNode(!0),e.appendChild(s));try{""!==t&&n.element.classList.forEach(t=>e.classList.add(t))}catch{}}x=d.transcludeOnThisElement?T(t,d.transclude,i):i,a(l,t,s,x)}}$=null}).catch(t=>{D(t)?i(t):i(new Error(t))}),function(t,n,e,i,r){let s=r;n.Gt||($?$.push(n,e,i):(a.transcludeOnThisElement&&(s=T(n,a.transclude,r)),a(l,n,e,i,s)))}}function z(t,n){const e=n.priority-t.priority;return 0!==e?e:t.name!==n.name?t.name<n.name?-1:1:t.index-n.index}function J(t,n,e,i){if(n)throw Ve("multidir","Multiple directives [{0}, {1}] asking for {3} on: {4}",n.name,e.name,t,un(i.Vt()))}function G(t,n){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const e=document.createElement("div");return e.innerHTML=`<${t}>${n}</${t}>`,e.childNodes[0].childNodes}default:return n}}function X(t,n,e,i){if(He.test(i))throw Ve("nodomevents","Property bindings for HTML DOM event properties are disallowed");const r=K(t),s=function(t,n){const e=n.toLowerCase();return a[`${t}|${e}`]||a[`*|${e}`]}(r,i);let c=t=>t;"srcset"!==i||"img"!==r&&"source"!==r?s&&(c=l.getTrusted.bind(l,s)):c=t=>function(t){if(!t)return t;if(!A(t))throw Ve("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',"ng-prop-srcset",t.toString());let n="";const e=H(t),i=/\s/.test(e)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=e.split(i),s=Math.floor(r.length/2);let o;for(o=0;o<s;o++){const t=2*o;n+=l.getTrustedMediaUrl(H(r[t])),n+=` ${H(r[t+1])}`}const c=H(r[2*o]).split(/\s/);return n+=l.getTrustedMediaUrl(H(c[0])),2===c.length&&(n+=` ${H(c[1])}`),n}(l.valueOf(t)),n.push({priority:100,compile:function(t,n){const r=o(n[e]);return{pre:function(t,s){function o(){const n=r(t);s[i]=c(n)}o(),t.$watch(i,o),t.$watch(n[e],t=>{l.valueOf(t),o()})}}}})}function Y(t,e,i,r,s){const o=K(t),c=function(t,n){return"srcdoc"===n?l.HTML:"src"===n||"ngSrc"===n?-1===["img","video","audio","source","track"].indexOf(t)?l.RESOURCE_URL:l.MEDIA_URL:"xlinkHref"===n?"image"===t?l.MEDIA_URL:"a"===t?l.URL:l.RESOURCE_URL:"form"===t&&"action"===n||"base"===t&&"href"===n||"link"===t&&"href"===n?l.RESOURCE_URL:"a"!==t||"href"!==n&&"ngHref"!==n?void 0:l.URL}(o,r),u=!s,h=Fe.includes(r)||s;let a=n(i,u,c,h);if(a){if("multiple"===r&&"select"===o)throw Ve("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",un(t.outerHTML));if(He.test(r))throw Ve("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:()=>({pre:function(t,e,s){const o=s.Zt||(s.Zt=Object.create(null)),u=s[r];u!==i&&(a=u&&n(u,!0,c,h),i=u),a&&(s[r]=a(t),(o[r]||(o[r]=[])).$$inter=!0,a.expressions.forEach(n=>{(s.Zt&&s.Zt[r].h||t).$watch(n,()=>{const n=a(t);"class"===r?s.$updateClass(n,s.l().classList.value):s.$set(r,"srcset"===r?l.getTrustedMediaUrl(n):n)})}),0===a.expressions.length&&s.$set(r,"srcset"===r?l.getTrustedMediaUrl(u):u))}})})}}function nt(t,n,e){const i=t.Vt().parentNode;if(i)if(O(e)){const t=i.childNodes[e];t&&i.replaceChild(n,t)}else i.insertBefore(n,i.firstChild);const r=document.createDocumentFragment();t.Ft().forEach(t=>{r.appendChild(t)}),t.node=n}function et(t,n){return W(function(){return t.apply(null,arguments)},t,n)}function it(t,n){if(u)throw Ve("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,n)}function rt(t,e,i,r,s){const c=[],u={};let h;function a(n,e,r){N(i.$onChanges)&&(g||(t.$postUpdate(w),g=[]),h||(h={},g.push(l)),h[n]={currentValue:e,firstChange:r})}function l(){i.$onChanges&&h&&i.$onChanges(h),h=void 0}return r&&jt(r).forEach(([r,h])=>{const{attrName:f,optional:d,mode:m}=h;let p,$,g,w,v,b=!0,y=!0;switch(m){case"@":d||_t(e,f)||(it(f,s.name),i[r]=e[f]=void 0),v=e.$observe(f,t=>{(A(t)||F(t))&&(a(r,t,y),i[r]=t,b?b=!1:(l(),y=!1))}),e.Zt[f].h=t,p=e[f],A(p)?i[r]=n(p)(t):F(p)&&(i[r]=p),u[r]={currentValue:i[r],firstChange:!0},c.push(v);break;case"=":{if(!_t(e,f)){if(d)break;it(f,s.name),e[f]=void 0}if(d&&!e[f])break;const n=e[f];$=n&&o(n),w=$&&$.Wt?tt:Q,g=$&&$.Kt||function(){throw Ve("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name)},p=i.$target[r]=$&&$(t.$target);const u=function(n){return w(n,i[r])||(w(n,p)?g(t,n=i[r]):i[r]=n),p=n,p};if(e[f]){const n=e[f];t.$watch(n,n=>{const i=o(e[f],u);n?($.Wt?t.$target[f]=n:t[f]=n,i(t)):t[f]=t[e[f]]},!0)}v=i.$watch(f,n=>{if(n!==p||x(e[f])){if($&&$.Xt&&!$.Wt||x(e[f])&&O(n))throw i.$target[f]=p,Ve("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name);j(n)?jt(n).forEach(([n,e])=>{t.$target[n]=e}):(g(t.$target,p=n),t.$handler.watchers.get(e[f])?.forEach(e=>{e.listenerFn(n,t.$target)}))}},!0),c.push(v);break}case"<":if(!_t(e,f)){if(d)break;it(f,s.name),e[f]=void 0}if(d&&!e[f])break;$=e[f]&&o(e[f]),i.$target[r]=$&&$(t.$target),u[r]={currentValue:i.$target[r],firstChange:y},t.$target.attrs=e,e[f]&&(v=t.$watch(e[f],t=>{i.$target[r]=t,a(r,t,y),y&&(y=!1)},!0),c.push(v));break;case"&":if(d||_t(e,f)||it(f,s.name),$=_t(e,f)?o(e[f]):void 0,!$&&d)break;i.$target[r]=function(n){return $(t.$target,n)}}}),{initialChanges:u,removeWatches:c.length&&function(){for(let t=0,n=c.length;t<n;++t)c[t]()}}}}]}}function Je(t){let n=t.length;if(n<=1)return t;for(;n--;){const e=t[n];(e.nodeType===p||e.nodeType===m&&""===e.nodeValue.trim())&&[].splice.call(t,n,1)}return t}const Ze={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],Yt:(t,n)=>{t.$name=n},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},Qt:()=>{}},Ge="ng-pending",Ke="ng-submitted";class Xe{static $nonscope=!0;static $inject=[Pt.l,Pt.u,Pt.h,Pt.A,Pt.L];constructor(t,i,r,s,o){this.tn=[],this.$name=o(i.name||i.ngForm||"")(r),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.nn=Ze,this.l=t,this.A=s,this.$error={},this.en={},this.$pending=void 0,this.rn={};const c=this.l.classList.contains(n);this.rn[n]=c,this.rn[e]=!c,this.$target={}}$rollbackViewValue(){this.tn.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.tn.forEach(t=>{t.$commitViewValue()})}$addControl(t){nt(t.$name,"input"),this.tn.push(t),t.$name&&(this[t.$name]=t),t.$target.nn=this}$getControls(){return mt(this.tn)}Yt(t,n){const e=t.$name;this[e]===t&&delete this[e],this[n]=t,t.$name=n}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(n=>{this.$setValidity(n,null,t)}),this.$error&&Object.keys(this.$error).forEach(n=>{this.$setValidity(n,null,t)}),this.en&&Object.keys(this.en).forEach(n=>{this.$setValidity(n,null,t)}),Y(this.tn,t),t.$target.nn=Ze}$setDirty(){xt(this.l)?(this.A.removeClass(this.l,i),this.A.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$dirty=!0,this.$pristine=!1,this.nn.$setDirty()}$setPristine(){xt(this.l)?this.A.setClass(this.l,i,`${r} ${Ke}`):(this.l.classList.remove(r,Ke),this.l.classList.add(i)),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.tn.forEach(t=>{t.$setPristine()})}$setUntouched(){this.tn.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.nn&&t.nn!==Ze;)t=t.nn;t.Qt()}Qt(){xt(this.l)?this.A.addClass(this.l,Ke):this.l.classList.add(Ke),this.$submitted=!0,this.tn.forEach(t=>{t.Qt&&t.Qt()})}set(t,n,e){const i=t[n];i?-1===i.indexOf(e)&&i.push(e):(t=v(t))[n]=[e]}unset(t,n,e){const i=t[n];i&&(-1===Y(i,e)&&Y(i,e.$target),0===i.length&&delete t[n])}$setValidity(t,i,r){const s=this;let o;function c(t,n,e){e&&!t.rn[n]?(t.A.addClass(t.l,n),t.rn[n]=!0):!e&&t.rn[n]&&(t.A.removeClass(t.l,n),t.rn[n]=!1)}function u(t,i,r){i=i?`-${B(i,"-")}`:"",c(t,n+i,!0===r),c(t,e+i,!1===r)}x(i)?function(t,n,e,i){t[n]||(t[n]={}),s.set(t[n],e,i)}(this,"$pending",t,r):function(t,n,e,i){t[n]&&s.unset(t[n],e,i),Ot(t[n])&&(t[n]=void 0)}(this,"$pending",t,r),F(i)?i?(this.unset(this.$error,t,r),this.set(this.en,t,r)):(this.set(this.$error,t,r),this.unset(this.en,t,r)):(this.unset(this.$error,t,r),this.unset(this.en,t,r)),this.$pending?(c(this,Ge,!0),this.$valid=this.$invalid=void 0,u(this,"",null)):(c(this,Ge,!1),this.$valid=Ot(this.$error),this.$invalid=!this.$valid,u(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.en[t]||null),u(this,t,o),this.nn.$setValidity(t,o,this)}}const Ye=function(t){return[Pt.J,function(e){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:Xe,compile:function(r,s){r.classList.add(i,n);const o=s.name?"name":!(!t||!s.ngForm)&&"ngForm";return{pre:function(t,n,i,r){const s=r[0];if(!("action"in i)){const t=function(t){s.$commitViewValue(),s.$setSubmitted(),t.preventDefault()};n.addEventListener("submit",t),n.addEventListener("$destroy",()=>{setTimeout(()=>{n.removeEventListener("submit",t)},0,!1)})}(r[1]||s.nn).$addControl(s);const c=o?""===(u=s.$name)?e('this[""]').Kt:e(u).Kt:()=>{};var u;o&&(c(t,s),i.$observe(o,n=>{s.$name!==n&&(t.$target[s.$name]=void 0,s.nn.Yt(s,n),t.$target!==s.nn&&s.nn!==Ze||(t.$target[n]=s))})),n.addEventListener("$destroy",()=>{s.$target.nn.$removeControl(s),c(t,void 0),W(s,Ze)})}}}}}]},Qe=Ye(),ti=Ye("ngForm"),ni=/(\s+|^)default(\s+|$)/;class ei{static $nonscope=!0;static $inject=[Pt.u,Pt.h];constructor(t,n){this.u=t,this.h=n,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:ri,n=this.h.$eval(this.u.ngModelOptions);this.$options=t.createChild(n)}}class ii{static $nonscope=!0;constructor(t){this.sn=t}getOption(t){return this.sn[t]}createChild(t){let n=!1;return jt(t=Object.assign({},t)).forEach(([e,i])=>{"$inherit"===i?"*"===e?n=!0:(t[e]=this.sn[e],"updateOn"===e&&(t.updateOnDefault=this.sn.updateOnDefault)):"updateOn"===e&&(t.updateOnDefault=!1,t[e]=H(i.replace(ni,()=>(t.updateOnDefault=!0," "))))},this),n&&(delete t["*"],oi(t,this.sn)),oi(t,ri.sn),new ii(t)}}const ri=new ii({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1});function si(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:ei}}function oi(t,n){Ct(n).forEach(e=>{O(t[e])||(t[e]=n[e])})}const ci=bt("ngModel");class ui{static $nonscope=!0;static $inject=[Pt.h,Pt.q,Pt.u,Pt.l,Pt.J,Pt.A,Pt.L];constructor(t,i,r,s,o,c,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.cn=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.en={},this.$pending=void 0,this.$name=u(r.name||"",!1)(t),this.nn=Ze,this.$options=ri,this.un="",this.hn=this.hn.bind(this),this.an=o(r.ngModel),this.ln=this.an.Kt,this.dn=this.an,this.mn=this.ln,this.pn=null,this.$n=void 0,this.gn="parse",this.wn=0,this.h=t,this.vn=r,this.l=s,this.A=c,this.J=o,this.q=i,this.bn=!1,this.rn={};const h=this.l.classList.contains(n);var a;this.rn[n]=h,this.rn[e]=!h,this.yn=new Set,(a=this).h.$watch("value",()=>{const t=a.dn(a.h);t===a.$modelValue||Number.isNaN(a.$modelValue)&&Number.isNaN(t)||a.kn(t)})}set(t,n){t[n]=!0}unset(t,n){delete t[n]}$setValidity(t,i){const r=this;function s(t,n,e){e&&!t.rn[n]?(xt(t.l)?t.A.addClass(t.l,n):t.l.classList.add(n),t.rn[n]=!0):!e&&t.rn[n]&&(xt(t.l)?t.A.removeClass(t.l,n):t.l.classList.remove(n),t.rn[n]=!1)}function o(t,i,r){i=i?`-${B(i,"-")}`:"",s(t,n+i,!0===r),s(t,e+i,!1===r)}let c;x(i)?function(t,n,e){t[n]||(t[n]={}),r.set(t[n],e)}(this,"$pending",t):function(t,n,e){t[n]&&r.unset(t[n],e),Ot(t[n])&&(t[n]=void 0)}(this,"$pending",t),F(i)?i?(delete this.$error[t],this.set(this.en,t)):(this.set(this.$error,t),delete this.en[t]):(delete this.$error[t],delete this.en[t]),this.$pending?(s(this,Ge,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(s(this,Ge,!1),this.$valid=Ot(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),c=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.en[t]||null),o(this,t,c),this.nn.$setValidity(t,c,this)}En(){if(this.$options.getOption("getterSetter")){const t=this.J(`${this.vn.ngModel}()`),n=this.J(`${this.vn.ngModel}(_$p)`);this.dn=n=>{let e=this.an(n);return N(e)&&(e=t(n)),e},this.mn=(t,e)=>{N(this.an(t))?n(t,{Sn:e}):this.ln(t,e)}}else if(!this.an.Kt)throw ci("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.vn.ngModel,un(this.l))}$render(){}$isEmpty(t){return x(t)||""===t||null===t||Number.isNaN(t)}xn(t){this.$isEmpty(t)?xt(this.l)?(this.A.removeClass(this.l,u),this.A.addClass(this.l,c)):(this.l.classList.remove(u),this.l.classList.add(c)):xt(this.l)?(this.A.removeClass(this.l,c),this.A.addClass(this.l,u)):(this.l.classList.remove(c),this.l.classList.add(u))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.l&&(xt(this.l)?(this.A.removeClass(this.l,c),this.A.addClass(this.l,i)):(this.l.classList.remove(c),this.l.classList.add(i)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,xt(this.l)?(this.A.removeClass(this.l,i),this.A.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.nn.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,xt(this.l)?this.A.setClass(this.l,s,o):(this.l.classList.remove(o),this.l.classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,xt(this.l)?this.A.setClass(this.l,o,s):(this.l.classList.remove(s),this.l.classList.add(o))}$rollbackViewValue(){clearTimeout(this.pn),this.$viewValue=this.On,this.$render()}$validate(){if(J(this.$modelValue))return;const t=this.On,n=this.cn,e=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),s=this;this._n(n,t,t=>{r||e===t||(s.$modelValue=t?n:void 0,s.$modelValue!==i&&s.Cn())})}_n(t,n,e){this.wn++;const i=this.wn,r=this;function s(t,n){i===r.wn&&r.$setValidity(t,n)}function o(t){i===r.wn&&e(t)}!function(){const t=r.gn;return x(r.$n)?(s(t,null),!0):(r.$n||(Ct(r.$validators).forEach(t=>{s(t,null)}),Ct(r.$asyncValidators).forEach(t=>{s(t,null)})),s(t,r.$n),r.$n)}()?o(!1):function(){let e=!0;return jt(r.$validators).forEach(([i,r])=>{const o=Boolean(r(t,n));e=e&&o,s(i,o)}),!!e||(Ct(r.$asyncValidators).forEach(t=>{s(t,null)}),!1)}()?function(){const e=[];let i=!0;jt(r.$asyncValidators).forEach(([r,o])=>{const c=o(t,n);if(!L(c))throw ci("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",c);s(r,void 0),e.push(c.then(()=>{s(r,!0)},()=>{i=!1,s(r,!1)}))}),e.length?Promise.all(e).then(()=>{o(i)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.pn),(this.On!==this.$viewValue||""===this.$viewValue&&this.bn)&&(void 0===this.On&&Number.isNaN(this.$viewValue)||(this.xn(this.$viewValue),this.On=this.$viewValue,this.$pristine&&this.$setDirty(),this.jn()))}jn(){let t=this.On;const n=this;if(this.$n=!x(t)||void 0,this.$setValidity(this.gn,null),this.gn="parse",this.$n)for(let n=0;n<this.$parsers.length;n++)if(t=this.$parsers[n](t),x(t)){this.$n=!1;break}J(this.$modelValue)&&(this.$modelValue=this.dn(this.h));const e=this.$modelValue,i=this.$options.getOption("allowInvalid");function r(){if(n.$modelValue!=e){if(T(n.$modelValue)&&""===e)return;n.Cn()}}this.cn=t,i&&(this.$modelValue=t,r()),this._n(t,this.On,e=>{i||(n.$modelValue=e?t:void 0,r())})}Cn(){this.mn(this.h,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.q(t)}},this)}$setViewValue(t,n){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.An(n)}An(t){let n=this.$options.getOption("debounce");P(n[t])?n=n[t]:P(n.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?n=n.default:P(n["*"])&&(n=n["*"]),clearTimeout(this.pn);const e=this;n>0?this.pn=setTimeout(()=>{e.$commitViewValue()},n):this.$commitViewValue()}$overrideModelOptions(t){this.Tn(),this.$options=this.$options.createChild(t),this.un=this.$options.sn.updateOn,this.Rn()}$processModelValue(){const t=this.Mn();this.$viewValue!==t&&(this.xn(t),this.$viewValue=this.On=t,this.$render(),this._n(this.$modelValue,this.$viewValue,()=>{}))}Mn(){const t=this.$formatters;let n=t.length,e=this.$modelValue;for(;n--;)e=t[n](e);return e}kn(t){this.$modelValue=this.cn=t,this.$n=void 0,this.$processModelValue()}Tn(){this.yn.forEach(t=>t()),this.yn.clear()}Rn(){this.un&&this.un.split(" ").forEach(t=>{this.l.addEventListener(t,this.hn),this.yn.add(()=>this.l.removeEventListener(t,this.hn))}),this.un=this.$options.getOption("updateOn"),this.un&&this.un.split(" ").forEach(t=>{this.l.addEventListener(t,this.hn),this.yn.add(()=>this.l.removeEventListener(t,this.hn))})}hn(t){this.An(t&&t.type)}}function hi(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ui,priority:1,compile:t=>(t.classList.add(i,s,n),{pre:(t,n,e,i)=>{const r=i[0],s=i[1]||r.nn,o=i[2];o&&(r.$options=o.$options),r.En(),s.$addControl(r),e.$observe("name",t=>{r.$name!==t&&r.nn.Yt(r,t)});const c=t.$watch(e.ngModel,t=>{r.kn(v(t))});t.$on("$destroy",()=>{r.nn.$removeControl(r),c()})},post:(t,n,e,i)=>{const r=i[0];r.Rn(),n.addEventListener("blur",()=>{r.$touched||r.$setTouched()}),r.$viewChangeListeners.push(()=>{const{change:e}=n.dataset;e&&t.$eval(e)})}})}}const ai=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,li=/^(?=.{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])?)*$/,fi=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,di="validity",mi=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{mi.set(t,!0)});const pi={text:function(t,n,e,i){gi(0,n,e,i),$i(i)},date:wi("date",/^(\d{4,})-(\d{2})-(\d{2})$/),"datetime-local":wi("datetimelocal",/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),time:wi("time",/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),week:wi("week",/^(\d{4,})-W(\d\d)$/),month:wi("month",/^(\d{4,})-(\d\d)$/),number:function(t,n,e,i,r){let s;if(vi(0,n,0,i,"number"),bi(i),gi(0,n,e,i),O(e.min)||e.ngMin){let n=e.min||r(e.ngMin)(t);s=yi(n),i.$validators.min=function(t,n){return i.$isEmpty(n)||x(s)||n>=s},e.$observe("min",t=>{t!==n&&(s=yi(t),n=t,i.$validate())})}if(O(e.max)||e.ngMax){let n=e.max||r(e.ngMax)(t),s=yi(n);i.$validators.max=function(t,n){return i.$isEmpty(n)||x(s)||n<=s},e.$observe("max",t=>{t!==n&&(s=yi(t),n=t,i.$validate())})}if(O(e.step)||e.ngStep){let n=e.step||r(e.ngStep)(t),o=yi(n);i.$validators.step=function(t,n){return i.$isEmpty(n)||x(o)||Si(n,s||0,o)},e.$observe("step",t=>{t!==n&&(o=yi(t),n=t,i.$validate())})}},url:function(t,n,e,i){gi(0,n,e,i),$i(i),i.$validators.url=function(t,n){const e=t||n;return i.$isEmpty(e)||ai.test(e)}},email:function(t,n,e,i){gi(0,n,e,i),$i(i),i.$validators.email=function(t,n){const e=t||n;return i.$isEmpty(e)||li.test(e)}},radio:function(t,n,e,i){const r=!e.ngTrim||"false"!==H(e.ngTrim);x(e.name)&&n.setAttribute("name",k()),n.addEventListener("change",function(t){if(n.checked){let{value:n}=e;r&&(n=H(n)),i.$setViewValue(n,t&&t.type)}}),i.$render=function(){let{value:t}=e;r&&(t=H(t));const s=w(i.$viewValue)?i.$viewValue.$target:i.$viewValue;n.checked=v(t)===v(s)},e.$observe("value",i.$render)},range:function(t,n,e,i){vi(0,n,0,i,"range"),bi(i),gi(0,n,e,i);const r=i.$$hasNativeValidators&&"range"===n.type;let s=r?0:void 0,o=r?100:void 0,c=r?1:void 0;const{validity:u}=n,h=O(e.min),a=O(e.max),l=O(e.step),f=i.$render;function d(t,i){n.setAttribute(t,e[t]);let r=e[t];e.$observe(t,t=>{t!==r&&(r=t,i(t))})}i.$render=r&&O(u.rangeUnderflow)&&O(u.rangeOverflow)?function(){f(),i.$setViewValue(n.value)}:f,h&&(s=yi(e.min),i.$validators.min=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||x(s)||n>=s},d("min",function(t){if(s=yi(t),!J(i.$modelValue))if(r){let t=n.value;s>t&&(t=s,n.value=t),i.$setViewValue(t)}else i.$validate()})),a&&(o=yi(e.max),i.$validators.max=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||x(o)||n<=o},d("max",function(t){if(o=yi(t),!J(i.$modelValue))if(r){let t=n.value;o<t&&(n.value=o,t=o<s?s:o),i.$setViewValue(t)}else i.$validate()})),l&&(c=yi(e.step),i.$validators.step=r?function(){return!u.stepMismatch}:function(t,n){return i.$isEmpty(n)||x(c)||Si(n,s||0,c)},d("step",function(t){c=yi(t),J(i.$modelValue)||(r?i.$viewValue!==n.value&&i.$setViewValue(n.value):i.$validate())}))},checkbox:function(t,n,e,i,r){const s=xi(r,t,"ngTrueValue",e.ngTrueValue,!0),o=xi(r,t,"ngFalseValue",e.ngFalseValue,!1);n.addEventListener("change",function(t){i.$setViewValue(n.checked,t&&t.type)}),i.$render=function(){n.checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(t=>tt(t,s)),i.$parsers.push(t=>t?s:o)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function $i(t){t.$formatters.push(n=>t.$isEmpty(n)?n:n.toString())}function gi(t,n,e,i){const r=n.type.toLowerCase();let s,o=!1;n.addEventListener("compositionstart",()=>{o=!0}),n.addEventListener("compositionend",()=>{o=!1,c()});const c=function(t){if(s&&(clearTimeout(s),s=null),o)return;let{value:c}=n;const u=t&&t.type;"password"===r||e.ngTrim&&"false"===e.ngTrim||(c=H(c)),(i.$viewValue!==c||""===c&&i.$$hasNativeValidators)&&i.$target.$setViewValue(c,u)};["input","change","paste","drop","cut"].forEach(t=>{n.addEventListener(t,c)}),mi[r]&&i.$$hasNativeValidators&&r===e.type&&n.addEventListener("keydown wheel mousedown",t=>{if(!s){const n=this[di],e=n.badInput,i=n.typeMismatch;s=setTimeout(()=>{s=null,n.badInput===e&&n.typeMismatch===i||c(t)})}}),i.$render=function(){const t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.value!==t&&(n.value=t)}}function wi(t,n){return function(e,i,r,s,o){if(gi(0,i,r,s),s.$parsers.push(e=>s.$isEmpty(e)?null:n.test(e)?e:void(s.gn=t)),s.$formatters.push(t=>{if(s.$isEmpty(t))return"";if(!A(t))throw ci("datefmt","Expected `{0}` to be a string",t);return t}),O(r.min)||r.ngMin){let t=r.min||o?.(r.ngMin)(e);s.$validators.min=(n,e)=>s.$isEmpty(e)||e>=t,r.$observe("min",n=>{t=n,s.$validate()})}if(O(r.max)||r.ngMax){let t=r.max||o?.(r.ngMax)(e);s.$validators.max=(n,e)=>s.$isEmpty(e)||e<=t,r.$observe("max",n=>{t=n,s.$validate()})}}}function vi(t,n,e,i,r){(i.$$hasNativeValidators=j(n.validity))&&i.$parsers.push(t=>{const e=n[di]||{};if(!e.badInput&&!e.typeMismatch)return t;i.gn=r})}function bi(t){t.$parsers.push(n=>t.$isEmpty(n)?null:fi.test(n)?parseFloat(n):void(t.gn="number")),t.$formatters.push(n=>{if(!t.$isEmpty(n)){if(!P(n))throw ci("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n})}function yi(t){return O(t)&&!P(t)&&(t=parseFloat(t)),J(t)?void 0:t}function ki(t){return(0|t)===t}function Ei(t){const n=t.toString(),e=n.indexOf(".");if(-1===e){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(n);if(t)return Number(t[1])}return 0}return n.length-e-1}function Si(t,n,e){let i=Number(t);const r=!ki(i),s=!ki(n),o=!ki(e);if(r||s||o){const t=r?Ei(i):0,c=s?Ei(n):0,u=o?Ei(e):0,h=10**Math.max(t,c,u);i*=h,n*=h,e*=h,r&&(i=Math.round(i)),s&&(n=Math.round(n)),o&&(e=Math.round(e))}return(i-n)%e===0}function xi(t,n,e,i,r){let s;if(O(i)){if(s=t(i),!s.constant)throw ci("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",e,i);return s(n)}return r}function Oi(t){return{restrict:"E",require:["?ngModel"],link:{pre(n,e,i,r){r[0]&&(pi[i.type?.toLowerCase()]||pi.text)(n,e,i,r[0],t)}}}}function _i(){return{restrict:"E",compile(t,n){if("hidden"===n.type?.toLowerCase())return{pre(t,n){n.value=n.getAttribute("value")??""}}}}}Oi.$inject=[Pt.J];const Ci=/^(true|false|\d+)$/;function ji(){function t(t,n,e){t.value=v(e??""),n.$set("value",e)}return{restrict:"A",priority:100,compile:(n,e)=>Ci.test(e.ngValue)?function(n,e,i){t(e,i,n.$eval(i.ngValue))}:function(n,e,i){n.$watch(i.ngValue,n=>{t(e,i,n)})}}}function Ai(t){return{restrict:"E",terminal:!0,compile(n,e){"text/ng-template"===e.type&&t.set(e.id,n.innerText)}}}Ai.$inject=[Pt.ot];class Ti{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap"];static $inject=[Pt.l,Pt.h];constructor(t,n){this.$element=t,this.$scope=n,this.selectValueMap={},this.ngModelCtrl={},this.multiple=!1,this.Pn=document.createElement("option"),this.hasEmptyOption=!1,this.emptyOption=void 0,this.optionsMap=new Map,this.renderScheduled=!1,this.updateScheduled=!1,n.$on("$destroy",()=>{this.renderUnknownOption=()=>{}})}renderUnknownOption(t){const n=this.generateUnknownOptionValue(t);this.Pn.value=n,this.$element.prepend(this.Pn),this.Pn.selected=!0,this.Pn.setAttribute("selected","selected"),this.$element.value=n}updateUnknownOption(t){const n=this.generateUnknownOptionValue(t);this.Pn.value=n,this.Pn.selected=!0,this.Pn.setAttribute("selected","selected"),this.$element.value=n}generateUnknownOptionValue(t){return x(t)?"? undefined:undefined ?":`? ${yt(t)} ?`}removeUnknownOption(){this.Pn.parentElement&&this.Pn.remove()}selectEmptyOption(){this.emptyOption&&(this.$element.value="",this.emptyOption.selected=!0,this.emptyOption.setAttribute("selected","selected"))}unselectEmptyOption(){this.hasEmptyOption&&(this.emptyOption.selected=!1)}readValue(){const t=this.$element.value,n=t in this.selectValueMap?this.selectValueMap[t]:t;return this.hasOption(n)?n:null}writeValue(t){const n=this.$element.options[this.$element.selectedIndex];if(n&&(n.selected=!1),this.hasOption(t)){this.removeUnknownOption();const n=yt(t);this.$element.value=n in this.selectValueMap?n:t;const e=this.$element.options[this.$element.selectedIndex];e?e.selected=!0:this.selectUnknownOrEmptyOption(t)}else this.selectUnknownOrEmptyOption(t)}addOption(t,n){if(n.nodeType===p)return;nt(t,'"option value"'),""===t&&(this.hasEmptyOption=!0,this.emptyOption=n);const e=this.optionsMap.get(t)||0;this.optionsMap.set(t,e+1),this.scheduleRender()}removeOption(t){const n=this.optionsMap.get(t);n&&(1===n?(this.optionsMap.delete(t),""===t&&(this.hasEmptyOption=!1,this.emptyOption=void 0)):this.optionsMap.set(t,n-1))}hasOption(t){return!!this.optionsMap.get(t)}$hasEmptyOption(){return this.hasEmptyOption}$isUnknownOptionSelected(){return this.$element.options[0]===this.Pn}$isEmptyOptionSelected(){return this.hasEmptyOption&&this.$element.options[this.$element.selectedIndex]===this.emptyOption}selectUnknownOrEmptyOption(t){R(t)&&this.emptyOption?(this.removeUnknownOption(),this.selectEmptyOption()):this.Pn.parentElement?this.updateUnknownOption(t):this.renderUnknownOption(t)}scheduleRender(){this.renderScheduled||(this.renderScheduled=!0,this.$scope.$postUpdate(()=>{this.renderScheduled=!1,this.ngModelCtrl.$render()}))}scheduleViewValueUpdate(t=!1){this.updateScheduled||(this.updateScheduled=!0,this.$scope.$postUpdate(()=>{this.$scope.$$destroyed||(this.updateScheduled=!1,this.ngModelCtrl.$setViewValue(this.readValue()),t&&this.ngModelCtrl.$render())}))}registerOption(t,n,e,i,r){let s,o;e.$attr.ngValue?e.$observe("value",t=>{let e;const i=n.selected;O(o)&&(this.removeOption(s),delete this.selectValueMap[o],e=!0),o=yt(t),s=t,this.selectValueMap[o]=t,this.addOption(t,n),n.setAttribute("value",o),e&&i&&this.scheduleViewValueUpdate()}):i?e.$observe("value",t=>{let e;this.readValue();const i=n.selected;O(s)&&(this.removeOption(s),e=!0),s=t,this.addOption(t,n),e&&i&&this.scheduleViewValueUpdate()}):r?(t.value=r(t),e.value||(e.$set("value",t.value),this.addOption(t.value,n)),t.$watch("value",()=>{const i=r(t);e.value||e.$set("value",i);const o=n.selected;s!==i&&(this.removeOption(s),s=i),this.addOption(i,n),s&&o&&this.scheduleViewValueUpdate()})):this.addOption(e.value,n),e.$observe("disabled",t=>{("true"===t||t&&n.selected)&&(this.multiple?this.scheduleViewValueUpdate(!0):(this.ngModelCtrl.$setViewValue(null),this.ngModelCtrl.$render()))}),n.addEventListener("$destroy",()=>{const t=this.readValue(),n=e.value;this.removeOption(n),this.scheduleRender(),(this.multiple&&t&&-1!==t.indexOf(n)||t===n)&&this.scheduleViewValueUpdate(!0)})}}function Ri(){return{restrict:"E",require:["select","?ngModel"],controller:Ti,priority:1,link:{pre:function(t,n,e,i){const r=i[0],s=i[1];if(s){if(r.ngModelCtrl=s,n.addEventListener("change",()=>{r.removeUnknownOption();const t=r.readValue();s.$setViewValue(t)}),e.multiple){let t;r.multiple=!0,r.readValue=function(){const t=[],e=n.getElementsByTagName("option");return Array.from(e).forEach(n=>{if(n.selected&&!n.disabled){const e=n.value;t.push(e in r.selectValueMap?r.selectValueMap[e]:e)}}),t},r.writeValue=function(t){const e=n.getElementsByTagName("option");Array.from(e).forEach(n=>{const e=!!t&&(X(t,n.value)||X(t,r.selectValueMap[n.value]));e!==n.selected&&(n.selected=e)})};let e=NaN;e!==s.$viewValue||tt(t,s.$viewValue)||(t=mt(s.$viewValue),s.$render()),e=s.$viewValue,s.$isEmpty=function(t){return!t||0===t.length}}}else r.registerOption=()=>{}},post:function(t,n,e,i){const r=i[1];if(!r)return;const s=i[0];r.$render=function(){s.writeValue(r.$viewValue)}}}}}function Mi(t){return{restrict:"E",priority:100,compile(n,e){let i,r;return O(e.ngValue)||(O(e.value)?i=t(e.value,!0):(r=t(n.textContent,!0),r||e.$set("value",n.textContent))),function(t,n,e){const s="$selectController",o=n.parentElement,c=tn(o,s)||tn(o.parentElement,s);c&&c.registerOption(t,n,e,i,r)}}}}function Pi(){return{link(t,n,e){t.$watch(e.ngBind,t=>{n.textContent=et(v(t))},O(e.lazy))}}}function Ii(){return{link(t,n,e){e.$observe("ngBindTemplate",t=>{n.textContent=R(t)?"":t})}}}function Di(t){return{restrict:"A",compile:(n,e)=>(t(e.ngBindHtml),(t,n)=>{t.$watch(e.ngBindHtml,t=>{(x(t)||T(t))&&(t=""),n.innerHTML=t})})}}function Ni(t,n){return t=`ngClass${t}`,function(){return{link(e,i,r){let s,o=tn(i,"$classCounts"),c=!0;function u(t,n){const e=[];return t&&t.forEach(t=>{(n>0||o[t])&&(o[t]=(o[t]||0)+n,o[t]===+(n>0)&&e.push(t))}),e.join(" ")}o||(o=Object.create(null),Qt(i,"$classCounts",o)),"ngClass"!==t&&e.$watch("$index",()=>{var t,o;(t=1&e.$index)===n?(o=u(Vi(o=s),1),xt(i)?r.$addClass(o):e.$postUpdate(()=>{""!==o&&i.classList.add(...o.trim().split(" "))})):function(t){t=u(Vi(t),-1),xt(i)?r.$removeClass(t):e.$postUpdate(()=>{""!==t&&i.classList.remove(...t.trim().split(" "))})}(s),c=t}),e.$watch(r[t],t=>{var e;e=Ui(t),c===n&&function(t,n){const e=Vi(t),s=Vi(n),o=qi(e,s),c=qi(s,e),h=u(o,-1),a=u(c,1);xt(i)?(r.$addClass(a),r.$removeClass(h)):(""!==a&&i.classList.add(...a.trim().split(" ")),""!==h&&i.classList.remove(...h.trim().split(" ")))}(s,e),s=e})}}}}function qi(t,n){if(!t||!t.length)return[];if(!n||!n.length)return t;const e=[];t:for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<n.length;t++)if(r===n[t])continue t;e.push(r)}return e}function Vi(t){return t&&t.split(" ")}function Ui(t){if(!t)return t;let n=t;return _(t)?n=t.map(Ui).join(" "):j(t)?n=Ct(t).filter(n=>t[n]).join(" "):A(t)||(n=`${t}`),n}Mi.$inject=[Pt.L],Di.$inject=[Pt.J];const Fi=Ni("",!0),Li=Ni("Odd",0),Hi=Ni("Even",1);function Bi(){return{compile(t,n){n.$set("ngCloak",null)}}}function zi(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const Wi="ng-hide",Ji="ng-hide-animate";function Zi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngShow,n=>{xt(e)?t[n?"removeClass":"addClass"](e,Wi,{tempClasses:Ji}):n?e.classList.remove(Wi):e.classList.add(Wi)})}}}function Gi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngHide,n=>{xt(e)?t[n?"addClass":"removeClass"](e,Wi,{tempClasses:Ji}):n?e.classList.add(Wi):e.classList.remove(Wi)})}}}function Ki(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(n,e,i,r,s){let o,c,u;n.$watch(i.ngIf,n=>{n?c||s((n,i)=>{c=i,o=n,xt(n)?t.enter(n,e.parentElement,e):e.after(n)}):(u&&(cn(u),u=null),c&&(c.$destroy(),c=null),o&&(u=o,xt(u)?t.leave(u).done(t=>{!1!==t&&(u=null)}):e.nextElementSibling?.remove(),o=null))})}}}function Xi(t,n,e,i){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,s){const o=s.ngInclude||s.src,c=s.onload||"",u=s.autoscroll;return(r,s,h,a,l)=>{function f(){!O(u)||u&&!r.$eval(u)||n()}let d,m,p,$=0;const g=()=>{m&&(m.remove(),m=null),d&&(d.$destroy(),d=null),p&&(xt(p)?e.leave(p).done(t=>{!1!==t&&(m=null)}):p.remove(),m=p,p=null)};r.$watch(o,async n=>{const o=function(t){!1!==t&&f()},u=++$;n?(r.$emit("$includeContentRequested",n),t(n).then(t=>{if(r.Gt)return;if(u!==$)return;const i=r.$new();a.template=t;const h=l(i,t=>{g(),xt(t)?e.enter(t,null,s).done(o):(s.after(t),f())});d=i,p=h,d.$emit("$includeContentLoaded",n),r.$eval(c)}).catch(t=>{r.Gt||(u===$&&(g(),r.$emit("$includeContentError",n)),i(new Error(t)))})):(g(),a.template=null)})}}}}function Yi(t){return{priority:-400,require:"ngInclude",link(n,e,i,r){e.innerHTML=r.template,t(e.childNodes)(n)}}}function Qi(){return{priority:450,compile:()=>({pre(t,n,e){const i=sn(n);i?i.$eval(e.ngInit):t.$eval(e.ngInit)}})}}function tr(){return{terminal:!0,priority:1e3}}Zi.$inject=[Pt.A],Gi.$inject=[Pt.A],Ki.$inject=[Pt.A],Xi.$inject=[Pt.ut,Pt.j,Pt.A,Pt.q],Yi.$inject=[Pt.M];const nr=bt("ngRef");function er(t){return{priority:-1,restrict:"A",compile(n,e){const i=St(K(n)),r=t(e.ngRef),s=r.Kt||function(){throw nr("nonassign",'Expression in ngRef="{0}" is non-assignable!',e.ngRef)};return(t,n,o)=>{let c;if(_t(o,"ngRefRead")){if("$element"===o.ngRefRead)c=n;else if(c=tn(n,`$${o.ngRefRead}Controller`),!c)throw nr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,e.ngRef)}else c=tn(n,`$${i}Controller`);c=c||n,s(t,c),n.addEventListener("$destroy",()=>{r(t)===c&&s(t,null)})}}}}er.$inject=[Pt.J];const ir="$$NG_REMOVED",rr=bt("ngRepeat"),sr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function or(t){function n(t,n,e,i,r,s,o){t[e]!==i&&(t[e]=i),r&&(t[r]=s),i&&(t.$target.i=i.i),t.$index=n,t.$first=0===n,t.$last=n===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&n))}function e(t){return t.clone}function i(t){return t.clone}function r(t,n,e){return yt(e)}function s(t,n){return n}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,c)=>{const u=c.ngRepeat,h=!!c.animate;let a=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!a)throw rr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",u);const l=a[1],f=a[2],d=a[3];if(a=l.match(sr),!a)throw rr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",l);const m=a[3]||a[1],p=a[2];if(d&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw rr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",d);const $=function(){let t=!1;return(...n)=>{if(!t)return t=!0,(()=>{O(c.lazy)&&O(c.swap)&&document.querySelectorAll(c.swap).forEach(t=>cn(t))})(...n)}}();return function(o,c,a,l,g){let w=Object.create(null);o.$watch(f,a=>{$();let l,f,v=c;const b=Object.create(null);let y,k,E,x,O,_,C;if(d&&(o[d]=a),S(a))O=a,x=r;else{x=s,O=[];for(const t in a)_t(a,t)&&"$"!==t.charAt(0)&&O.push(t)}const j=O.length,A=new Array(j);for(l=0;l<j;l++)if(y=a===O?l:O[l],k=a[y],E=x(o,y,k),w[E])_=w[E],delete w[E],b[E]=_,A[l]=_;else{if(b[E])throw Object.values(A).forEach(t=>{t&&t.scope&&(w[t.id]=_)}),rr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",u,E,k);A[l]={id:E,scope:void 0,clone:void 0},b[E]=!0}for(const n in w){if(_=w[n],C=_.clone,h?t.leave(C):C.remove(),C.parentNode)for(let t=0,n=C.length;t<n;t++)C[t][ir]=!0;_.scope.$destroy()}for(l=0;l<j;l++)if(y=a===O?l:O[l],k=a[y],_=A[l],_.scope){f=v;do{f=f.nextSibling}while(f&&f[ir]);e(_)!==f&&t.move(hn(_.clone),null,v),v=i(_),n(_.scope,l,m,k,p,y,j)}else g((e,i)=>{_.scope=i;const r=e;h?t.enter(e,null,v):v.after(e),v=r,_.clone=e,b[_.id]=_,n(_.scope,l,m,k,p,y,j)});w=b},O(a.lazy))}}}}function cr(){return{restrict:"A",link(t,n,e){let i=null;t.$watch(e.ngStyle,t=>{const e=t?.$target||t;if(i)for(const t in i)n.style.removeProperty(t);if(e){i={};for(const t in e){const r=e[t];n.style.setProperty(t,r),i[t]=r}}else i=null})}}}function ur(t){return{require:"ngSwitch",controller:[Pt.h,class{constructor(){this.cases={}}}],link(n,e,i,r){const s=i.ngSwitch||i.on;let o=[];const c=[],u=[],h=[],a=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};n.$watch(s,n=>{let e,i,s;for(;u.length;)t.cancel(u.pop());for(e=0,i=h.length;e<i;++e){const n=c[e].clone;h[e].$destroy(),xt(n)?(s=u[e]=t.leave(n),s.done(a(u,e))):n.remove()}c.length=0,h.length=0,(o=r.cases[`!${n}`]||r.cases["?"])&&Object.values(o).forEach(n=>{n.transclude((e,i)=>{h.push(i);const r=n.element,o={clone:e,comment:document.createComment("")};c.push(o),xt(e)?s?requestAnimationFrame(()=>{t.enter(e,r.parentElement,r)}):t.enter(e,r.parentElement,r):$n(e,r.parentElement,r)})})})}}}function hr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){e.ngSwitchWhen.split(e.ngSwitchWhenSeparator).sort().filter((t,n,e)=>e[n-1]!==t).forEach(t=>{i.cases[`!${t}`]=i.cases[`!${t}`]||[],i.cases[`!${t}`].push({transclude:r,element:n})})}}}function ar(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:n})}}}or.$inject=[Pt.A],ur.$inject=[Pt.A];const lr=bt("ngOptions"),fr=document.createElement("option"),dr=document.createElement("optgroup"),mr=/^\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]+?))?$/;function pr(t,n){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,n,e,i){i[0].registerOption=()=>{}},post:function(e,i,r,s){const o=s[0],c=s[1],{multiple:u}=r;for(let t=0,n=i.childNodes,e=n.length;t<e;t++)if(""===n[t].value){o.hasEmptyOption=!0,o.emptyOption=n[t];break}pn(i);const h=!!o.emptyOption;let a;fr.cloneNode(!1).nodeValue="?";const l=function(t,e,i){const r=t.match(mr);if(!r)throw lr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,un(e));const s=r[5]||r[7],o=r[6],c=/ as /.test(r[0])&&r[1],u=r[9],h=n(r[2]?r[1]:s),a=c&&n(c)||h,l=u&&n(u),f=u?function(t,n){return l(i,n)}:function(t){return yt(t)},d=function(t,n){return f(t,v(t,n))},m=n(r[2]||r[1]),p=n(r[3]||""),$=n(r[4]||""),g=n(r[8]),w={},v=o?function(t,n){return w[o]=n,w[s]=t,w}:function(t){return w[s]=t,w};class b{constructor(t,n,e,i,r){this.selectValue=t,this.viewValue=n,this.label=e,this.group=i,this.disabled=r}}return{trackBy:u,getTrackByValue:d,getWatchables:g,getOptions(){const t=[],n={},e=g(i)||[],r=function(t){let n;if(!o&&S(t))n=t;else{n=[];for(const e in t)_t(t,e)&&"$"!==e.charAt(0)&&n.push(e)}return n}(e),s=r.length;for(let o=0;o<s;o++){const s=e===r?o:r[o],c=e[s],u=v(c,s),h=a(i,u),l=f(h,u),d=m(i,u),g=p(i,u),w=$(i,u),y=new b(l,h,d,g,w);t.push(y),n[l]=y}return{items:t,selectValueMap:n,getOptionFromViewValue:t=>n[d(t)],getViewValueFromOption:t=>u?structuredClone(t.viewValue):t.viewValue}}}}(r.ngOptions,i,e),f=document.createDocumentFragment();if(o.generateUnknownOptionValue=()=>"?",u?(o.writeValue=function(t){if(!a)return;const n=t&&t.map(m)||[];a.items.forEach(t=>{t.element.selected&&!X(n,t)&&(t.element.selected=!1)})},o.readValue=function(){const t=i.value||[],n=[];return t.forEach(t=>{const e=a.selectValueMap[t];e&&!e.disabled&&n.push(a.getViewValueFromOption(e))}),n}):(o.writeValue=function(t){if(!a)return;const n=i.options[i.selectedIndex],e=a.getOptionFromViewValue(t);n&&n.removeAttribute("selected"),e?(i.value!==e.selectValue&&(o.removeUnknownOption(),i.value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(t)},o.readValue=function(){const t=a.selectValueMap[i.value];return t&&!t.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),a.getViewValueFromOption(t)):null},l.trackBy&&e.$watch(l.getTrackByValue(c.$viewValue),()=>{c.$render()})),h){const n=t(o.emptyOption);i.prepend(o.emptyOption),n(e),o.emptyOption.nodeType===p&&(o.hasEmptyOption=!1,o.registerOption=function(t,n){""===n.value&&(o.hasEmptyOption=!0,o.emptyOption=n,c.$render(),n.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&c.$render()}))})}function d(t,n){const e=fr.cloneNode(!1);n.appendChild(e),function(t,n){t.element=n,n.disabled=t.disabled,t.label!==n.label&&(n.label=t.label,n.textContent=t.label),n.value=t.selectValue}(t,e)}function m(t){const n=a.getOptionFromViewValue(t),e=n&&n.element;return e&&!e.selected&&(e.selected=!0),n}e.$watch(l.getWatchables.In.body[0].expression.name,function(){const t=a&&o.readValue();if(a)for(let t=a.items.length-1;t>=0;t--){const n=a.items[t];O(n.group)?cn(n.element.parentNode):cn(n.element)}a=l.getOptions();const n={};if(a.items.forEach(t=>{let e;O(t.group)?(e=n[t.group],e||(e=dr.cloneNode(!1),f.appendChild(e),e.label=null===t.group?"null":t.group,n[t.group]=e),d(t,e)):d(t,f)}),i.appendChild(f),c.$render(),!c.$isEmpty(t)){const n=o.readValue();(l.trackBy||u?tt(t,n):t===n)||(c.$setViewValue(n),c.$render())}})}}}}pr.$inject=[Pt.M,Pt.J];const $r=bt("ngTransclude");function gr(t){return{compile:function(n){const e=t(n.childNodes);return pn(n),function(t,n,i,r,s){if(!s)throw $r("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",un(n));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");const o=i.ngTransclude||i.ngTranscludeSlot;function c(){e(t,t=>{n.append(t)})}s(function(t,e){var i;(i=t)instanceof Array||i.nodeType===m&&!i.nodeValue.trim()?(c(),e.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{n.append(t)}):n.append(t)},null,o),o&&!s.isSlotFilled(o)&&c()}}}}gr.$inject=[Pt.M];const wr=/^\/(.+)\/([a-z]*)$/,vr={};Lt.forEach(t=>{if("multiple"===t)return;function n(n,i,r){n.$watch(r[e],n=>{r.$set(t,!!n)})}const e=St(`ng-${t}`);let i=n;"checked"===t&&(i=function(t,i,r){r.ngModel!==r[e]&&n(t,0,r)}),vr[e]=function(){return{restrict:"A",priority:100,link:i}}}),jt(l).forEach(([t])=>{vr[t]=function(){return{priority:100,link(n,e,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){const t=i.ngPattern.match(wr);if(t)return void i.$set("ngPattern",new RegExp(t[1],t[2]).toString())}n.$watch(i[t],n=>{i.$set(t,n)})}}}}),["src","srcset","href"].forEach(t=>{const n=St(`ng-${t}`);vr[n]=[Pt.Y,function(e){return{priority:99,link(i,r,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(r.href)&&(o="xlinkHref",s.$attr[o]="href"),s.$set(n,e.getTrustedMediaUrl(s[n])),s.$observe(n,n=>{n?s.$set(o,n):"href"===t&&s.$set(o,null)})}}}]});const br=[Pt.J,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=_t(i,"required")||i.ngRequired&&t(i.ngRequired)(n);i.ngRequired||(i.required="true"),r.$validators.required=(t,n)=>!s||!r.$isEmpty(n),i.$observe("required",t=>{s!==t&&(s=t,r.$validate())})}})],yr=[Pt.J,t=>({restrict:"A",require:"?ngModel",compile:(n,e)=>{let i,r;return e.ngPattern&&(i=e.ngPattern,r="/"===e.ngPattern.charAt(0)&&wr.test(e.ngPattern)?function(){return e.ngPattern}:e.ngPattern&&t(e.ngPattern)),function(t,n,e,s){if(!s)return;let o=e.pattern;e.ngPattern?o=r(t):i=e.pattern;let c=Sr(o,i,n);e.$observe("pattern",t=>{const e=c;c=Sr(t,i,n),(e&&e.toString())!==(c&&c.toString())&&s.$validate()}),s.$validators.pattern=(t,n)=>s.$isEmpty(n)||x(c)||c.test(n)}}})],kr=[Pt.J,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=i.maxlength||i.ngMaxlength&&t(i.ngMaxlength)(n),o=xr(s);i.$observe("maxlength",t=>{s!==t&&(o=xr(t),s=t,r.$validate())}),r.$validators.maxlength=function(t,n){return o<0||r.$isEmpty(n)||n.length<=o}}})],Er=[Pt.J,t=>({restrict:"A",require:"?ngModel",link(n,e,i,r){if(!r)return;let s=i.minlength||i.ngMinlength&&t(i.ngMinlength)(n),o=xr(s)||-1;i.$observe("minlength",t=>{s!==t&&(o=xr(t)||-1,s=t,r.$validate())}),r.$validators.minlength=function(t,n){return r.$isEmpty(n)||n.length>=o}}})];function Sr(t,n,e){if(t){if(w(t)&&(t=t.$target),A(t)){const n=t.match(/^\/(.*)\/([gimsuy]*)$/);t=n?new RegExp(n[1],n[2]):new RegExp(`^${t}$`)}if(!t.test)throw bt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",n,t,un(e));return t}}function xr(t){const n=parseInt(t,10);return J(n)?-1:n}class Or{constructor(){this.autoScrollingEnabled=!0}$get=[Pt.H,Pt.G,(t,n)=>{function e(t){if(t){t.scrollIntoView();const n=function(){let t=i.yOffset;if(N(t))t=t();else if(t instanceof Element){const n=t[0];t="fixed"!==window.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else P(t)||(t=0);return t}();if(n){const e=t.getBoundingClientRect().top;window.scrollBy(0,e-n)}}else window.scrollTo(0,0)}const i=function(n){let i;(n=A(n)?n:P(n)?n.toString():t.getHash())?(i=document.getElementById(n))||(i=function(t){let n=null;return Array.prototype.some.call(t,t=>"a"===K(t)&&(n=t,!0)),n}(document.getElementsByName(n)))?e(i):"top"===n&&e(null):e(null)};return this.autoScrollingEnabled&&(n.$location=t,n.$watch("$location.$$hash",(t,n)=>{if(t===n&&""===t)return;const e=()=>i(t);"complete"===document.readyState?queueMicrotask(()=>e()):window.addEventListener("load",()=>e())})),i}]}const _r="-add",Cr="-remove",jr="-active",Ar="ng-animate",Tr="$$ngAnimateChildren";function Rr(t,n,e){return(_(t)?t:t&&A(t)?t.trim().split(/\s+/):[]).filter(Boolean).map(t=>e?n+t:t+n).join(" ")}function Mr(t){const n=t||{};if(!n.$$prepared){let t=n.domOperation||(()=>{});n.domOperation=function(){n.$$domOperationFired=!0,t(),t=()=>{}},n.$$prepared=!0}return n}function Pr(t,n){Ir(t,n),Dr(t,n)}function Ir(t,n){n&&n.from&&(Object.assign(t.style,n.from),n.from=void 0)}function Dr(t,n){n&&n.to&&(Object.assign(t.style,n.to),n.to=void 0)}function Nr(t,n,e){const i=n.options||{},r=e.options||{};r.preparationClasses&&(i.preparationClasses=[r.preparationClasses,i.preparationClasses].filter(Boolean).join(" "),delete r.preparationClasses),Object.assign(i,r);const s=`${i.addClass||""} ${r.addClass||""}`.trim().split(/\s+/).filter(Boolean),o=`${i.removeClass||""} ${r.removeClass||""}`.trim().split(/\s+/).filter(Boolean),c=new Set((t.getAttribute("class")||"").split(/\s+/).filter(Boolean)),u=[],h=[];return s.forEach(function(t){c.has(t)||u.push(t)}),o.forEach(function(t){c.has(t)&&h.push(t)}),i.addClass=u.length?u.join(" "):void 0,i.removeClass=h.length?h.join(" "):void 0,n.addClass=i.addClass,n.removeClass=i.removeClass,i}function qr(t,n){const e=n?"paused":"",i="animationPlayState";return Vr(t,[i,e]),[i,e]}function Vr(t,n){const e=n[0];t.style[e]=n[1]}function Ur(t,n){return[t,n].filter(Boolean).join(" ")}const Fr=bt("$animate");function Lr(t){return j(t)?t:{}}function Hr(t){const n=this;let e=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,i){if(e&&"."!==e.charAt(0))throw Fr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);const r=`${e}-animation`;n.$$registeredAnimations[e.substring(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=N(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(e=t instanceof RegExp?t:null,e)&&new RegExp(`[(\\s|\\/)]${Ar}[(\\s|\\/)]`).test(e.toString()))throw e=null,Fr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Ar);return e},this.$get=[Pt.S,function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:(t,n)=>void 0!==n?xt(t):(t.setAttribute("animate",`${n}`),!0),cancel(t){t.cancel&&t.cancel()},enter:(n,e,i,r)=>(e=e||i.parentElement,C(n,HTMLElement)&&C(e,HTMLElement)?gn(n,e,i):$n(n,e,i),t.push(n,"enter",Lr(r))),move:(n,e,i,r)=>(e=e||i.parentElement,C(n,HTMLElement)&&C(e,HTMLElement)?gn(n,e,i):$n(n,e,i),t.push(n,"move",Lr(r))),leave:(n,e)=>t.push(n,"leave",Lr(e),()=>{cn(n)}),addClass:(n,e,i)=>((i=Lr(i)).addClass=kt(i.addClass,e),t.push(n,"addClass",i)),removeClass:(n,e,i)=>((i=Lr(i)).removeClass=kt(i.removeClass,e),t.push(n,"removeClass",i)),setClass:(n,e,i,r)=>((r=Lr(r)).addClass=kt(r.addClass,e),r.removeClass=kt(r.removeClass,i),t.push(n,"setClass",r)),animate:(n,e,i,r,s)=>((s=Lr(s)).from=s.from?W(s.from,e):e,s.to=s.to?W(s.to,i):i,r=r||"ng-inline-animate",s.tempClasses=kt(s.tempClasses,r),t.push(n,"animate",s))}}]}Hr.$inject=[Pt.vt];class Br{constructor(){this.cache=new Map}$get(){return this.cache}}class zr{constructor(){this.handler=t=>{throw t}}$get(){return t=>this.handler(t)}}function Wr(){return function(t,n,e,i){if(!S(t)){if(R(t))return t;throw bt("filter")("notarray","Expected array but received: {0}",t)}let r;i=i||"$";let s=!1;switch(Zr(n)){case"function":r=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":r=function(t,n,e,i){const r=j(t)&&e in t;return!0===n?n=tt:N(n)||(n=function(t,n){return!(x(t)||(null===t||null===n?t!==n:j(n)||j(t)&&!G(t)||(t=`${t}`.toLowerCase(),n=`${n}`.toLowerCase(),-1===t.indexOf(n))))}),function(s){return r&&!j(s)?Jr(s,t[e],n,e,!1):Jr(s,t,n,e,i)}}(n,e,i,s);break;default:return t}return Array.prototype.filter.call(t,r)}}function Jr(t,n,e,i,r,s){const o=Zr(t),c=Zr(n);if("string"===c&&"!"===n.charAt(0))return!Jr(t,n.substring(1),e,i,r);if(_(t))return t.some(t=>Jr(t,n,e,i,r));switch(o){case"object":if(r){for(const r in t)if(r.charAt&&"$"!==r.charAt(0)&&Jr(t[r],n,e,i,!0))return!0;return!s&&Jr(t,n,e,i,!1)}if("object"===c){for(const r in n){const s=n[r];if(N(s)||x(s))continue;const o=r===i;if(!Jr(o?t:t[r],s,e,i,o,o))return!1}return!0}return e(t,n);case"function":return!1;default:return e(t,n)}}function Zr(t){return null===t?"null":typeof t}function Gr(){return function(t,n){return x(n)&&(n=2),ct(t,n)}}function Kr(){return function(t,n,e){return N(t)&&(t=t()),J(n=Math.abs(Number(n))===1/0?Number(n):parseInt(n,10))?t:(P(t)&&(t=t.toString()),S(t)?(e=(e=!e||isNaN(e)?0:parseInt(e,10))<0?Math.max(0,t.length+e):e,n>=0?Xr(t,e,e+n):0===e?Xr(t,n,t.length):Xr(t,Math.max(0,e+n),e)):t)}}function Xr(t,n,e){return A(t)?t.slice(n,e):[].slice.call(t,n,e)}function Yr(t){return function(i,r,s,o){if(R(i))return i;if(N(i))return i();if(!S(i))throw bt("orderBy")("notarray","Expected array but received: {0}",i);_(r)||(r=[r]),0===r.length&&(r=["+"]);const c=r.map(n=>{let e=1,i=t=>t;if(N(n))i=n;else if(A(n)&&("+"!==n.charAt(0)&&"-"!==n.charAt(0)||(e="-"===n.charAt(0)?-1:1,n=n.substring(1)),""!==n)){const e=t(n);if(e.constant){const t=e();i=n=>n[t]}else i=e}return{get:i,descending:e}}),u=s?-1:1,h=N(o)?o:e,a=Array.prototype.map.call(i,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map(i=>function(t,e){let i=typeof t;return null===t?i="null":"object"===i&&(t=function(t){return N(t.valueOf)&&n(t=t.valueOf())||G(t)&&n(t=t.toString()),t}(t)),{value:t,type:i,index:e}}(i.get(t),e))}});return a.sort(function(t,n){for(let e=0,i=c.length;e<i;e++){const i=h(t.predicateValues[e],n.predicateValues[e]);if(i)return i*c[e].descending*u}return(h(t.tieBreaker,n.tieBreaker)||e(t.tieBreaker,n.tieBreaker))*u}),a.map(t=>t.value)};function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function e(t,n){let e=0;const i=t.type,r=n.type;if(i===r){let r=t.value,s=n.value;"string"===i?(r=r.toLowerCase(),s=s.toLowerCase()):"object"===i&&(j(r)&&(r=t.index),j(s)&&(s=n.index)),r!==s&&(e=r<s?-1:1)}else e="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return e}}Yr.$inject=[Pt.J];const Qr="Filter";class ts{static $inject=[Pt.vt];constructor(t){pt(O(t)),this.Dn=t,jt({filter:Wr,json:Gr,limitTo:Kr,orderBy:Yr}).forEach(([t,n])=>this.register(t,n))}register(t,n){return Un(t,"name"),qn(N,n,"factory"),this.Dn.factory(t+Qr,n),this}$get=[Pt.bt,t=>n=>(Un(n,"name"),t.get(n+Qr))]}const ns=bt("$interpolate");function es(t,n){throw ns("interr","Can't interpolate: {0}\n{1}",t,n.toString())}class is{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[Pt.J,Pt.Y,(t,n)=>{const e=this,i=e.startSymbol.length,r=e.endSymbol.length,s=new RegExp(e.startSymbol.replace(/./g,c),"g"),o=new RegExp(e.endSymbol.replace(/./g,c),"g");function c(t){return`\\\\\\${t}`}function u(t){return t.replace(s,e.startSymbol).replace(o,e.endSymbol)}function h(s,o,c,h){const a=c===n.URL||c===n.MEDIA_URL;if(!s.length||-1===s.indexOf(e.startSymbol)){if(o)return;let t=u(s);a&&(t=n.getTrusted(c,t));const e=()=>t;return e.exp=s,e.expressions=[],e}let l,f;h=!!h;let d=0;const m=[],p=s.length;let $;const g=[],w=[];for(;d<p;){if(-1===(l=s.indexOf(e.startSymbol,d))||-1===(f=s.indexOf(e.endSymbol,l+i))){d!==p&&g.push(u(s.substring(d)));break}d!==l&&g.push(u(s.substring(d,l))),$=s.substring(l+i,f),m.push($),d=f+r,w.push(g.length),g.push("")}const v=1===g.length&&1===w.length,b=a&&v?void 0:function(t){try{return t=c&&!a?n.getTrusted(c,t):n.valueOf(t),h&&!O(t)?t:et(t)}catch(t){return es(s,t)}},y=m.map(n=>t(n,b));if(!o||m.length){const t=function(t){for(let n=0,e=m.length;n<e;n++){if(h&&x(t[n]))return;g[w[n]]=t[n]}return a?n.getTrusted(c,v?g[0]:g.join("")):(c&&g.length>1&&function(t){throw ns("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)}(s),g.join(""))};return W((n,e)=>{let i=0;const r=m.length,o=new Array(r);try{for(;i<r;i++){if(e){const s=m[i].trim();n.$watch(s,()=>{const i=new Array(r);let s=0;for(;s<r;s++){const t=y[s];i[s]=t(n)}e(t(i))})}o[i]=y[i](n)}return t(o)}catch(t){return es(s,t)}},{exp:s,expressions:m,Nn(n,i){let r;return n.$watch(y,function(s,o){const c=t(s);i.call(e,c,s!==o?r:c,n),r=c})}})}}return h.startSymbol=function(){return e.startSymbol},h.endSymbol=function(){return e.endSymbol},h}]}const rs=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ss=bt("$location");let os,cs,us,hs=!1;class as{constructor(t,n,e=!0,i){this.appBase=t,this.appBaseNoFile=n,this.html5=e,this.basePrefix=e?i||"":void 0,this.hashPrefix=e?void 0:i,this.absUrl="",this.ft=void 0,this.qn=void 0}setUrl(t){const n=rs.exec(t);return void 0===n[1]&&""!==t||this.setPath(n[1]||""),void 0===n[2]&&void 0===n[1]&&""!==t||this.setSearch(n[3]||""),this.setHash(n[5]||""),this}getUrl(){return this.ft}setPath(t){const n=null!==t?t.toString():"";return os="/"===n.charAt(0)?n:`/${n}`,this.Vn(),this}getPath(){return os}setHash(t){return us=null!==t?t.toString():"",this.Vn(),this}getHash(){return us}setSearch(t,n){if(1===arguments.length)if(A(t)||P(t))t=t.toString(),cs=ut(t);else{if(!j(t))throw ss("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");jt(t=structuredClone(t,{})).forEach(([n,e])=>{T(e)&&delete t[n]}),cs=t}else x(n)||null===n?delete cs[t]:cs[t]=n;return this.Vn(),this}getSearch(){return cs}Vn(){this.ft=function(t,n,e){const i=ht(n),r=e?`#${lt(e)}`:"";return function(t){const n=t.split("/");let e=n.length;for(;e--;){const t=decodeURIComponent(n[e].replace(/%2F/gi,"/"));n[e]=lt(t)}return n.join("/")}(t)+(i?`?${i}`:"")+r}(os,cs,us),this.absUrl=this.html5?this.appBaseNoFile+this.ft.substring(1):this.appBase+(this.ft?this.hashPrefix+this.ft:""),hs=!0,setTimeout(()=>this.qn&&this.qn())}setState(t){if(!this.html5)throw ss("nostate","History API state support is available only in HTML5 mode");return this.$$state=x(t)?null:t,hs=!0,this}getState(){return this.$$state}parseLinkUrl(t,n){if(this.html5){if(n&&"#"===n[0])return this.setHash(n.slice(1)),!0;let e,i,r;return O(e=ds(this.appBase,t))?(i=e,r=this.basePrefix&&O(e=ds(this.basePrefix,e))?this.appBaseNoFile+(ds("/",e)||e):this.appBase+i):O(e=ds(this.appBaseNoFile,t))?r=this.appBaseNoFile+e:this.appBaseNoFile===`${t}/`&&(r=this.appBaseNoFile),r&&this.parse(r),!!r}return ms(this.appBase)===ms(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const n=ds(this.appBaseNoFile,t);if(!A(n))throw ss("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);fs(n,!0),os||(os="/"),this.Vn()}else{const e=ds(this.appBase,t)||ds(this.appBaseNoFile,t);let i;function r(t,n,e){const i=/^\/[A-Z]:(\/.*)/;if(Rt(n,e)&&(n=n.replace(e,"")),i.exec(n))return t;const r=i.exec(t);return r?r[1]:t}x(e)||"#"!==e.charAt(0)?this.html5?i=e:(i="",x(e)&&(this.appBase=t)):(i=ds(this.hashPrefix,e),x(i)&&(i=e)),fs(i,!1),os=r(os,i,this.appBase),this.Vn()}}}class ls{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.Un=[],this.Fn=!1,this.Ln=null,this.Hn=null,this.Bn=window.location.href,this.cacheState()}setUrl(t,n){if(void 0===n&&(n=null),t){if(t=new URL(t).href,this.Bn===t&&this.Hn===n)return this;this.Bn=t,this.Hn=n,history.pushState(n,"",t),this.cacheState()}return this}getBrowserUrl(){return Zn(window.location.href)}state(){return this.Ln}cacheState(){const t=history.state??null;tt(t,this.lastCachedState)||(this.Ln=t,this.lastCachedState=t,this.Hn=t)}#t(){const t=this.Hn;this.cacheState(),this.Bn===this.getBrowserUrl()&&t===this.Ln||(this.Bn=this.getBrowserUrl(),this.Hn=this.Ln,this.Un.forEach(t=>{t(Zn(window.location.href),this.Ln)}))}#n(t){this.Fn||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.Fn=!0),this.Un.push(t)}$get=[Pt.G,Pt.K,Pt.q,(t,n,e)=>{const i=wn(),r=Zn(window.location.href);let s;if(this.html5ModeConf.enabled){if(!i&&this.html5ModeConf.requireBase)throw ss("nobase","$location in HTML5 mode requires a <base> tag to be present!");s=function(t){const n=t.indexOf("//")+2,e=t.indexOf("/",n);return-1===e?t:t.substring(0,e)}(r)+(i||"/")}else s=ms(r);const o=(c=s).substring(0,ms(c).lastIndexOf("/")+1);var c;const u=new as(s,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`);u.parseLinkUrl(r,r),u.$$state=this.state();const h=/^\s*(javascript|mailto):/i,a=(t,n)=>{const i=u.getUrl(),r=u.$$state;try{this.setUrl(t,n),u.$$state=this.state()}catch(t){u.setUrl(i),u.$$state=r,e(t)}};n.addEventListener("click",t=>{const{rewriteLinks:e}=this.html5ModeConf;if(!e||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let i=t.target;for(;"a"!==i.nodeName.toLowerCase();)if(i===n||!(i=i.parentElement))return;if(A(e)&&x(i.getAttribute(e)))return;let r=i.href;const s=i.getAttribute("href")||i.getAttribute("xlink:href");j(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=new URL(r.animVal).href),h.test(r)||!r||i.getAttribute("target")||t.defaultPrevented||u.parseLinkUrl(r,s)&&t.preventDefault()}),u.absUrl!==r&&this.setUrl(u.absUrl,!0);let l=!0;this.#n((n,e)=>{Rt(n,o)?queueMicrotask(()=>{const i=u.absUrl,r=u.$$state;u.parse(n),u.$$state=e;const{defaultPrevented:s}=t.$broadcast("$locationChangeStart",n,i,e,r);u.absUrl===n&&(s?(u.parse(i),u.$$state=r,a(i,r)):(l=!1,d(i,r)))}):window.location.href=n});const f=()=>{if(l||hs){hs=!1;const e=this.getBrowserUrl();let i=u.absUrl;const r=this.state(),s=(n=i,!(ps(e)===ps(n))||u.html5&&r!==u.$$state);(l||s)&&(l=!1,setTimeout(()=>{i=u.absUrl;const{defaultPrevented:n}=t.$broadcast("$locationChangeStart",u.absUrl,e,u.$$state,r);u.absUrl===i&&(n?(u.parse(e),u.$$state=r):(s&&a(i,r===u.$$state?null:u.$$state),d(e,r)))}))}var n};return u.qn=f,f(),t.$on("$updateBrowser",f),u;function d(n,e){t.$broadcast("$locationChangeSuccess",u.absUrl,n,u.$$state,e)}}]}function fs(t,n){if(/^\s*[\\/]{2,}/.test(t))throw ss("badpath",'Invalid url "{0}".',t);const e="/"!==t.charAt(0);e&&(t=`/${t}`);const i=Wn(t),r=e&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;os=function(t,n){const e=t.split("/");let i=e.length;for(;i--;)e[i]=decodeURIComponent(e[i]),n&&(e[i]=e[i].replace(/\//g,"%2F"));return e.join("/")}(r,n),cs=ut(i.search),us=decodeURIComponent(i.hash),os&&"/"!==os.charAt(0)&&(os=`/${os}`)}function ds(t,n){if(Rt(n,t))return n.substring(t.length)}function ms(t){const n=t.indexOf("#");return-1===n?t:t.substring(0,n)}function ps(t){const n=document.createElement("a");n.href=t;let e=n.href;return e.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(e)&&(e=e.slice(0,-1)),e.endsWith("#")&&(e=e.slice(0,-1)),e}class $s{constructor(){this.debug=!1,this.zn=null}setLogger(t){this.zn=t}Wn(t){return D(t)&&t.stack&&(t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack),t}Jn(t){const n=window.console||{},e=n[t]||n.log||(()=>{});return(...t)=>{const i=t.map(t=>this.Wn(t));return e.apply(n,i)}}$get(){return this.zn?this.zn():{log:this.Jn("log"),info:this.Jn("info"),warn:this.Jn("warn"),error:this.Jn("error"),debug:(()=>{const t=this.Jn("debug");return(...n)=>{this.debug&&t.apply(this,n)}})()}}}const gs=bt("$parse"),ws={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},vs=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class bs{constructor(){this.Zn="",this.Gn=0}Kn(t){for(this.Zn=t,this.Gn=0,this.Xn=[];this.Gn<this.Zn.length;){const t=this.Zn.charAt(this.Gn);if('"'===t||"'"===t)this.Yn(t);else if(this.Qn(t)||"."===t&&this.Qn(this.te()))this.ne();else if(this.ee(this.ie()))this.re();else if(this.se(t,"(){}[].,;:?"))this.Xn.push({index:this.Gn,text:t}),this.Gn++;else if(this.oe(t))this.Gn++;else{const n=t+this.te(),e=n+this.te(2),i=vs.has(t),r=vs.has(n),s=vs.has(e);if(i||r||s){const i=s?e:r?n:t;this.Xn.push({index:this.Gn,text:i,operator:!0}),this.Gn+=i.length}else this.ce("Unexpected next character ",this.Gn,this.Gn+1)}}return this.Xn}se(t,n){return-1!==n.indexOf(t)}te(t){const n=t||1;return this.Gn+n<this.Zn.length&&this.Zn.charAt(this.Gn+n)}Qn(t){return t>="0"&&t<="9"&&"string"==typeof t}oe(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}ee(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}ue(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}ie(){const t=this.Zn.charAt(this.Gn),n=this.te();if(!n)return t;const e=t.charCodeAt(0),i=n.charCodeAt(0);return e>=55296&&e<=56319&&i>=56320&&i<=57343?t+n:t}he(t){return"-"===t||"+"===t||this.Qn(t)}ce(t,n,e){e=e||this.Gn;const i=O(n)?`s ${n}-${this.Gn} [${this.Zn.substring(n,e)}]`:` ${e}`;throw gs("lexerr",`Lexer Error: ${t} at column${i} in expression [${this.Zn}].`)}ne(){let t="";const n=this.Gn;for(;this.Gn<this.Zn.length;){const n=this.Zn.charAt(this.Gn).toLowerCase();if("."===n||this.Qn(n))t+=n;else{const e=this.te();if("e"===n&&this.he(e))t+=n;else if(this.he(n)&&e&&this.Qn(e)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.he(n)||e&&this.Qn(e)||"e"!==t.charAt(t.length-1))break;this.ce("Invalid exponent")}}this.Gn++}this.Xn.push({index:n,text:t,constant:!0,value:Number(t)})}re(){const t=this.Gn;for(this.Gn+=this.ie().length;this.Gn<this.Zn.length;){const t=this.ie();if(!this.ue(t))break;this.Gn+=t.length}this.Xn.push({index:t,text:this.Zn.slice(t,this.Gn),identifier:!0})}Yn(t){const n=this.Gn;let e="",i=!1;for(this.Gn++;this.Gn<this.Zn.length;){const r=this.Zn[this.Gn];if(i)e+="u"===r?this.ae():ws[r]||r,i=!1;else if("\\"===r)i=!0;else{if(r===t)return this.Xn.push({index:n,text:this.Zn.slice(n,this.Gn+1),constant:!0,value:e}),void this.Gn++;e+=r}this.Gn++}this.ce("Unterminated quote",n)}ae(){const t=this.Zn.substring(this.Gn+1,this.Gn+5);return t.match(/[\da-f]{4}/i)||this.ce(`Invalid unicode escape [\\u${t}]`),this.Gn+=4,String.fromCharCode(parseInt(t,16))}}const ys=10,ks=11;class Es{constructor(t){this.le=t}compile(t){const n=Ss(t,this.le),e=function(t){if(1===t.body.length&&xs(t.body[0].expression))return{type:3,left:t.body[0].expression,right:{type:17},operator:"="}}(n);let i;e&&(i=this.#e(e));const r=function(t){if(1!==t.length)return;const n=t[0].expression,e=n.toWatch;return 1!==e.length||e[0]!==n?e:void 0}(n.body);let s;if(r){s=[];for(const[t,n]of jt(r)){const e=this.#e(n);n.input=e,s.push(e),n.watchId=t}}const o=[];n.body.forEach(t=>{o.push(this.#e(t.expression))});const c=0===n.body.length?()=>{}:1===n.body.length?o[0]:function(t,n){let e;for(let i=0,r=o.length;i<r;i++)e=o[i](t,n);return e};return i&&(c.Kt=(t,n,e)=>i(t,e,n)),s&&(c.Xt=s),c.In=n,c}#e(t,n,e){let i,r;const s=this;let o;switch(t.type){case ks:return this.value(t.value,n);case 7:return r=this.#e(t.argument),this[`unary${t.operator}`](r,n);case 6:case 5:return i=this.#e(t.left),r=this.#e(t.right),this[`binary${t.operator}`](i,r,n);case 4:return this["ternary?:"](this.#e(t.test),this.#e(t.alternate),this.#e(t.consequent),n);case ys:return s.identifier(t.name,n,e);case 9:return i=this.#e(t.object,!1,!!e),t.computed||(r=t.property.name),t.computed&&(r=this.#e(t.property)),t.computed?this.#i(i,r,n,e):this.nonComputedMember(i,r,n,e);case 8:return o=[],t.arguments.forEach(t=>{o.push(s.#e(t))}),t.filter&&(r=this.le(t.callee.name)),t.filter||(r=this.#e(t.callee,!0)),t.filter?(t,e,i)=>{const s=[];for(let n=0;n<o.length;++n){const r=o[n](t&&v(t),e,i);s.push(r)}const c=()=>r.apply(void 0,s);return n?{context:void 0,name:void 0,value:c}:c()}:(t,e,i)=>{const s=r(t.$target?t.$target:t,e,i);let c;if(!R(s.value)&&N(s.value)){const n=[];for(let r=0;r<o.length;++r){const s=o[r](t,e,i);n.push(N(s)?s():s)}c=s.value.apply(s.context,n)}return n?{value:c}:c};case 3:return i=this.#e(t.left,!0,1),r=this.#e(t.right),(t,e,s)=>{const o=i(t,e,s),c=r(t,e,s);return(w(o.context)?o.context:o.context.$proxy??o.context)[o.name]=c,n?{value:c}:c};case 12:return o=[],t.elements.forEach(t=>{o.push(s.#e(t))}),(t,e,i)=>{const r=[];for(let n=0;n<o.length;++n)r.push(o[n](t,e,i));return n?{value:r}:r};case 14:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:s.#e(t.key),computed:!0,value:s.#e(t.value)}):o.push({key:t.key.type===ys?t.key.name:`${t.key.value}`,computed:!1,value:s.#e(t.value)})}),(t,e,i)=>{const r={};for(let n=0;n<o.length;++n)o[n].computed?r[o[n].key(t,e,i)]=o[n].value(t,e,i):r[o[n].key]=o[n].value(t,e,i);return n?{value:r}:r};case 15:return t=>n?{value:t}:t.$proxy;case 16:return(t,e)=>n?{value:e}:e;case 17:return(t,e,i)=>n?{value:i}:i}}"unary+"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=O(s)?+s:0,n?{value:s}:s}}"unary-"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=O(s)?-s:-0,n?{value:s}:s}}"unary!"(t,n){return(e,i,r)=>{const s=!t(e,i,r);return n?{value:s}:s}}"binary+"(t,n,e){return(i,r,s)=>{const o=function(t,n){return void 0===t||j(t)?n:void 0===n||j(n)?t:t+n}(t(i,r,s),n(i,r,s));return e?{value:o}:o}}"binary-"(t,n,e){return(i,r,s)=>{const o=t(i,r,s),c=n(i,r,s),u=(O(o)?o:0)-(O(c)?c:0);return e?{value:u}:u}}"binary*"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)*n(i,r,s);return e?{value:o}:o}}"binary/"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)/n(i,r,s);return e?{value:o}:o}}"binary%"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)%n(i,r,s);return e?{value:o}:o}}"binary==="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)===n(i,r,s);return e?{value:o}:o}}"binary!=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!==n(i,r,s);return e?{value:o}:o}}"binary=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)==n(i,r,s);return e?{value:o}:o}}"binary!="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!=n(i,r,s);return e?{value:o}:o}}"binary<"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<n(i,r,s);return e?{value:o}:o}}"binary>"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>n(i,r,s);return e?{value:o}:o}}"binary<="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<=n(i,r,s);return e?{value:o}:o}}"binary>="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>=n(i,r,s);return e?{value:o}:o}}"binary&&"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)&&n(i,r,s);return e?{value:o}:o}}"binary||"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)||n(i,r,s);return e?{value:o}:o}}"ternary?:"(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o)?n(r,s,o):e(r,s,o);return i?{value:c}:c}}value(t,n){return()=>n?{context:void 0,name:void 0,value:t}:t}identifier(t,n,e){return(i,r)=>{const s=r&&t in r?r:(i&&i.$proxy)??i;let o;return e&&1!==e&&s&&R(s[t])&&(s[t]={}),s&&(o=v(s)[t]),n?{context:s,name:t,value:o}:o}}#i(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);let u,h;return R(c)||(u=n(r,s,o),u=function(t){return`${t}`}(u),i&&1!==i&&c&&!c[u]&&(c[u]={}),h=c[u]),e?{context:c,name:u,value:h}:h}}nonComputedMember(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);i&&1!==i&&c&&R(c[n])&&(c[n]={});const u=R(c)?void 0:c[n];return e?{context:c,name:n,value:u}:u}}}function Ss(t,n,e){let i,r,s;const o=t;let c,u,h,a,l,f,d,m;const p=o.isPure=!!function(t,n){switch(t.type){case 9:if(t.computed)return!1;break;case 7:return 1;case 6:return"+"!==t.operator&&1;case 8:return!1}return void 0===n?2:n}(t,e);switch(t.type){case 1:return i=!0,o.body.forEach(t=>{const e=Ss(t.expression,n,p);i=i&&e.constant}),o.constant=i,o;case ks:return o.constant=!0,o.toWatch=[],o;case 7:var $=Ss(o.argument,n,p);return o.constant=$.constant,o.toWatch=$.toWatch,o;case 6:return c=Ss(o.left,n,p),u=Ss(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=c.toWatch.concat(u.toWatch),o;case 5:return c=Ss(o.left,n,p),u=Ss(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=o.constant?[]:[t],o;case 4:return h=Ss(t.test,n,p),a=Ss(t.alternate,n,p),l=Ss(t.consequent,n,p),o.constant=h.constant&&a.constant&&l.constant,o.toWatch=o.constant?[]:[t],o;case ys:return o.constant=!1,o.toWatch=[t],o;case 9:return f=Ss(t.object,n,p),t.computed&&(d=Ss(t.property,n,p)),o.constant=f.constant&&(!o.computed||d.constant),o.toWatch=o.constant?[]:[t],o;case 8:return s=t.filter,i=s,r=[],t.arguments.forEach(t=>{$=Ss(t,n,p),i=i&&$.constant,r.push.apply(r,$.toWatch)}),o.constant=i,o.toWatch=s?r:[o],o;case 3:return c=Ss(t.left,n,p),u=Ss(t.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=[o],o;case 12:return i=!0,r=[],t.elements.forEach(t=>{$=Ss(t,n,p),i=i&&$.constant,r.push.apply(r,$.toWatch)}),o.constant=i,o.toWatch=r,o;case 14:return i=!0,r=[],t.properties.forEach(t=>{$=Ss(t.value,n,p),i=i&&$.constant,r.push.apply(r,$.toWatch),t.computed&&(m=Ss(t.key,n,!1),i=i&&m.constant,r.push.apply(r,m.toWatch))}),o.constant=i,o.toWatch=r,o;case 15:case 16:return o.constant=!1,o.toWatch=[],o}}function xs(t){return t.type===ys||9===t.type}const Os=bt("$parse"),_s={true:!0,false:!1,null:null,undefined:void 0};class Cs{constructor(t){this.fe=t,this.de={this:{type:15},$locals:{type:16}},this.Gn=0}me(t){this.Zn=t,this.Xn=this.fe.Kn(t);const n=this.pe();return this.Xn.length>this.Gn&&this.ce("is an unexpected token",this.Xn[this.Gn]),n}pe(){const t=[];let n=!0;for(;n;)this.Xn&&this.Xn.length>this.Gn&&!this.te("}",")",";","]")&&t.push(this.$e()),this.ge(";")||(n=!1);return{type:1,body:t}}$e(){return{type:2,expression:this.we()}}we(){let t=this.ve();for(;this.ge("|");)t=this.V(t);return t}ve(){let t=this.be();if(this.ge("=")){if(!xs(t))throw Os("lval","Trying to assign a value to a non l-value");t={type:3,left:t,right:this.ve(),operator:"="}}return t}be(){const t=this.ye();if(this.ge("?")){const n=this.ve();if(this.ke(":"))return{type:4,test:t,alternate:n,consequent:this.ve()}}return t}ye(){let t=this.Ee();for(;this.ge("||");)t={type:5,operator:"||",left:t,right:this.Ee()};return t}Ee(){let t=this.Se();for(;this.ge("&&");)t={type:5,operator:"&&",left:t,right:this.Se()};return t}Se(){let t,n=this.xe();for(;t=this.ge("==","!=","===","!==");)n={type:6,operator:t.text,left:n,right:this.xe()};return n}xe(){let t,n=this.Oe();for(;t=this.ge("<",">","<=",">=");)n={type:6,operator:t.text,left:n,right:this.Oe()};return n}Oe(){let t,n=this._e();for(;t=this.ge("+","-");)n={type:6,operator:t.text,left:n,right:this._e()};return n}_e(){let t,n=this.Ce();for(;t=this.ge("*","/","%");)n={type:6,operator:t.text,left:n,right:this.Ce()};return n}Ce(){let t;return(t=this.ge("+","-","!"))?{type:7,operator:t.text,prefix:!0,argument:this.Ce()}:this.je()}je(){let t,n;for(this.ge("(")?(t=this.we(),this.ke(")")):this.ge("[")?t=this.Ae():this.ge("{")?t=this.Te():_t(this.de,this.te().text)?t=structuredClone(this.de[this.ke().text]):_t(_s,this.te().text)?t={type:ks,value:_s[this.ke().text]}:this.te().identifier?t=this.Re():this.te().constant?t=this.Me():this.ce("not a primary expression",this.te());n=this.ge("(","[",".");)if("("===n.text)t={type:8,callee:t,arguments:this.Pe()},this.ke(")");else if("["===n.text)t={type:9,object:t,property:this.ve(),computed:!0},this.ke("]");else{if("."!==n.text)throw new Error("IMPOSSIBLE");t={type:9,object:t,property:this.Re(),computed:!1}}return t}V(t){const n=[t],e={type:8,callee:this.Re(),arguments:n,filter:!0};for(;this.ge(":");)n.push(this.ve());return e}Pe(){const t=[];if(")"!==this.Ie().text)do{t.push(this.we())}while(this.ge(","));return t}Re(){const t=this.ke();return t.identifier||this.ce("is not a valid identifier",t),{type:ys,name:t.text}}Me(){return{type:ks,value:this.ke().value}}Ae(){const t=[];if("]"!==this.Ie().text)do{if(this.te("]"))break;t.push(this.ve())}while(this.ge(","));return this.ke("]"),{type:12,elements:t}}Te(){const t=[];let n;if("}"!==this.Ie().text)do{if(this.te("}"))break;n={type:13,kind:"init"},this.te().constant?(n.key=this.Me(),n.computed=!1,this.ke(":"),n.value=this.ve()):this.te().identifier?(n.key=this.Re(),n.computed=!1,this.te(":")?(this.ke(":"),n.value=this.ve()):n.value=n.key):this.te("[")?(this.ke("["),n.key=this.ve(),this.ke("]"),n.computed=!0,this.ke(":"),n.value=this.ve()):this.ce("invalid key",this.te()),t.push(n)}while(this.ge(","));return this.ke("}"),{type:14,properties:t}}ce(t,n){throw Os("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",n.text,t,n.index+1,this.Zn,this.Zn?.substring(n.index))}ke(t){if(this.Xn&&this.Xn.length===this.Gn)throw Os("ueoe","Unexpected end of expression: {0}",this.Zn);return(O(t)?this.ge(t):this.ge())||void this.ce(`is unexpected, expecting [${t}]`,this.te())}Ie(){if(this.Xn&&this.Xn.length!==this.Gn)return this.Xn[this.Gn];throw Os("ueoe","Unexpected end of expression: {0}",this.Zn)}te(...t){const n=this.Xn&&this.Xn[this.Gn];if(!n)return!1;const e=t.length;if(!e)return n;const i=n.text;if(1===t.length)return t[0]===i&&n;for(let r=0;r<e;r++)if(t[r]===i||!t[r])return n;return!1}ge(...t){const n=this.te(...t);return!!n&&(this.Gn++,n)}}class js{constructor(t,n){this.me=new Cs(t),this.De=new Es(n)}J(t){t=t.trim();const n=this.me.me(t),e=this.De.compile(n);return e.Wt=function(t){const{body:n}=t;if(!n||1!==n.length)return!0;if(!n||1!==n.length)return!0;switch(n[0].expression?.type){case ks:case 12:case 14:return!0;default:return!1}}(n),e.constant=!!n.constant,e}}class As{constructor(){const t=Object.create(null);this.$get=[Pt.V,function(n){return function(e,i){let r;if(Vn(e,"exp"),e=e.trim(),r=t[e],!r){const t=new bs;r=new js(t,n).J(e)}return function(t,n){if(!n)return t;const e=function(e,i,r){if(e?.getter)return;const s=t(e,i,r),o=N(s)?s():s;return n(v(o))};return e.Ne=n,e.Wt=t.Wt,e.constant=t.constant,e.In=t.In,e}(r,i)}}]}}let Ts,Rs,Ms=0;const Ps=[];class Is{constructor(){this.rootScope=Ds()}$get=[Pt.q,Pt.J,(t,n)=>(Rs=t,Ts=n,this.rootScope)]}function Ds(t={},n){if(!j(t)||function(t){if(null==t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t)return!0;if(!0===t.$nonscope||!0===t?.constructor?.$nonscope)return!0;if(t===Ns.window||t===Ns.document||t===Ns.self||t===Ns.frames)return!0;const n=[Window,Document,Element,Node,EventTarget,Promise,HTMLCollection,NodeList,Event,Date,RegExp,Map,Set,WeakMap,WeakSet,ArrayBuffer,DataView,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array,Function,Error,Blob,File,FormData,URL,URLSearchParams];for(const e of n)try{if(t instanceof e)return!0}catch{}try{return Object.prototype.toString.call(t)===qs}catch{return!1}}(t))return t;const e=new Proxy(t,n||new Vs),i=Ct(t),r=_(t.constructor?.$nonscope)?t.constructor.$nonscope:null,s=_(t.$nonscope)?t.$nonscope:null;for(let n=0,o=i.length;n<o;n++){const o=i[n];r?.includes(o)||s?.includes(o)||(t[o]=Ds(t[o],e.$handler))}return e}const Ns=globalThis,qs="[object Window]";class Vs{constructor(t,n){this.context=t?t.context?t.context:t:void 0,this.watchers=t?t.watchers:new Map,this.qe=new Map,this.Ve=t?t.Ve:new Map,this.Ue=t?t.Ue:new Set,this.Fe=t?t.Fe:new WeakMap,this.$proxy=null,this.$handler=this,this.$target=null,this.$value=null,this.$children=[],this.$id=(Ms+=1,Ms),this.$root=t?t.$root:this,this.$parent=n||(this.$root===this?null:t),this.Gt=!1,this.Le=[],this.$scopename=void 0,this.propertyMap={$apply:this.$apply.bind(this),$broadcast:this.$broadcast.bind(this),$children:this.$children,$destroy:this.$destroy.bind(this),$emit:this.$emit.bind(this),$eval:this.$eval.bind(this),$flushQueue:this.$flushQueue.bind(this),$getById:this.$getById.bind(this),$handler:this,$id:this.$id,$isRoot:this.#r.bind(this),$merge:this.$merge.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$on:this.$on.bind(this),$parent:this.$parent,$postUpdate:this.$postUpdate.bind(this),$proxy:this.$proxy,$root:this.$root,$scopename:this.$scopename,$searchByName:this.$searchByName.bind(this),$transcluded:this.$transcluded.bind(this),$watch:this.$watch.bind(this)}}set(t,n,e,i){if("undefined"===n)return!1;if("$scopename"===n)return this.$scopename=e,!0;if(t.constructor?.$nonscope&&_(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(n)||t.$nonscope&&_(t.$nonscope)&&t.$nonscope.includes(n))return t[n]=e,!0;this.$proxy=i,this.$target=t;const r=t[n];if(void 0!==r&&Number.isNaN(r)&&Number.isNaN(e))return!0;if(r&&r[g]){if(_(e)){if(r!==e){const t=this.watchers.get(n);t&&this.#s(t);const e=this.Ve.get(n);e&&this.#s(e)}return this.Fe.get(t[n])&&this.Fe.delete(t[n]),t[n]=Ds(e,this),this.Fe.set(t[n],[n]),!0}if(j(e)){if(_t(t,n)){const t=Ct(r);for(const n of t)e[n]||delete r[n]}if(r!==e){const t=this.watchers.get(n);t&&this.#s(t);const i=this.Ve.get(n);i&&this.#s(i),this.#o(e)}return t[n]=Ds(e,this),!0}if(x(e)){let e=!1;const i=Ct(r.$target),s=r.$target;let o=0;for(;o<i.length;o++){const t=i[o],n=s[t];n&&n[g]&&(e=!0),delete r[t]}if(t[n]=void 0,!e){const t=this.watchers.get(n);t&&this.#s(t)}return!0}if(O(e)){t[n]=e;const r=this.watchers.get(n);if(r&&this.#s(r),_(t)&&this.Fe.has(i)&&"length"!==n){const t=this.Fe.get(i);for(let n=0,e=t.length;n<e;n++){const e=this.watchers.get(t[n]);e&&this.#s(e)}}return!0}return!0}if(x(t[n])&&w(e)&&(this.Ue.add(e),t[n]=e,!this.watchers.has(n)))return!0;if(x(e)?t[n]=e:t[n]=Ds(e,this),r!==e){let i=this.$target;const s=[];if(x(r)&&j(t[n])){this.Fe.has(t[n])||this.Fe.set(t[n],[n]);const r=Ct(e);for(let t=0,n=r.length;t<n;t++){const n=r[t],e=this.watchers.get(n);if(e)for(let t=0,n=e.length;t<n;t++)s.push(e[t])}i=e}if(_(t)){const t=this.watchers.get("length");if(t)for(let n=0,e=t.length;n<e;n++)s.push(t[n])}const o=this.watchers.get(n);if(o)for(let t=0,n=o.length;t<n;t++)s.push(o[t]);s.length>0&&this.#s(s,t=>{const n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!r.watchProp){n.push(r);continue}const s=r.watchProp.split(".").slice(0,-1).join("."),o=Ts(s)(r.originalTarget)?.$handler;i===o?.$target&&n.push(r)}return n});let c=this.Ve.get(n);if(!c&&this.$parent?.Ve&&(c=this.$parent.Ve.get(n)),c){let t=c;const n=this.$target.i;if(n){t=[];for(let e=0,i=c.length;e<i;e++){const i=c[e];i.originalTarget.i===n&&t.push(i)}}t.length>0&&this.#s(t)}}if(this.Fe.has(i)&&"length"!==n){const t=this.Fe.get(i);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.watchers.get(e);i&&this.Le!==i&&this.#s(i)}}return!0}get(t,n,e){if("$scopename"===n&&this.$scopename)return this.$scopename;if("$$watchersCount"===n)return function(t){const n=function(t){const n=new Set,e=[t];for(;e.length;){const t=e.pop();if(!n.has(t.$id)&&(n.add(t.$id),t.$children))for(let n=0,i=t.$children.length;n<i;n++)e.push(t.$children[n])}return n}(t);let e=0;for(const i of t.watchers.values())for(let t=0,r=i.length;t<r;t++)n.has(i[t].scopeId)&&e++;return e}(this);if(n===g)return!0;if(t[n]&&w(t[n])?this.$proxy=t[n]:this.$proxy=e,this.propertyMap.$target=t,this.propertyMap.$proxy=e,_(t)&&["pop","shift","unshift"].includes(n)){if(this.Fe.has(e)){const t=this.Fe.get(e);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.watchers.get(e);i&&(this.Le=i)}}"unshift"===n&&this.#s(this.Le)}return _t(this.propertyMap,n)?(this.$target=t,this.propertyMap[n]):t[n]}deleteProperty(t,n){if(t[n]&&t[n][g]){t[n]=void 0;const e=this.watchers.get(n);if(e&&this.#s(e),this.Fe.has(this.$proxy)){const t=this.Fe.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.watchers.get(e);i&&this.#s(i)}}return this.Le&&(this.#s(this.Le),this.Le=[]),!0}if(delete t[n],this.Fe.has(this.$proxy)){const t=this.Fe.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.watchers.get(e);i&&this.#s(i)}}else{const e=this.watchers.get(n);e&&this.#s(e,t[n])}return!0}#o(t){x(t)||Ct(t).forEach(n=>{const e=this.watchers.get(n);e&&this.#s(e),j(t[n])&&this.#o(t[n])})}#s(t,n=t=>t){queueMicrotask(()=>{let e=0;const i=n(t);for(;e<i.length;){const t=i[e];t.foreignListener?t.foreignListener.#c(t,this.$target):this.#c(t,this.$target),e++}})}$watch(t,n,e=!1){pt(A(t),"Watched property required"),t=t.trim();const i=Ts(t);if(i.constant)return n&&queueMicrotask(()=>{let t=i();for(;N(t);)t=t();n(t,this.$target)}),()=>{};const r={originalTarget:this.$target,listenerFn:n,watchFn:i,scopeId:this.$id,id:k(),property:[]};let s=i.In.body[0].expression.name;const o=[],{type:c}=i.In.body[0].expression;switch(c){case 3:if(!n){let t=i(this.$target);for(;N(t);)t=t(this.$target);return}s=i.In.body[0].expression.left.name;break;case 4:s=i.In.body[0].expression.toWatch[0]?.test?.name,r.property.push(s);break;case 5:{const t=[i.In.body[0].expression.left.toWatch[0]?.name,i.In.body[0].expression.right.toWatch[0]?.name];for(let n=0,e=t.length;n<e;n++){const e=t[n];e&&this.#u(e,r)}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];this.#h(e,r.id)}}}case 6:if(i.In.body[0].expression.isPure){const t=i.In.body[0].expression.toWatch[0];if(s=t.property?t.property.name:t.name,!s)throw new Error("Unable to determine key");r.property.push(s);break}{const{toWatch:t}=i.In.body[0].expression;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;if(!i)throw new Error("Unable to determine key");this.#u(i,r),this.#s([r])}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;this.#h(i,r.id)}}}case 7:{const t=i.In.body[0].expression.toWatch[0];if(s=t.property?t.property.name:t.name,!s)throw new Error("Unable to determine key");r.property.push(s);break}case 8:{const{toWatch:t}=i.In.body[0].expression;for(let n=0,e=t.length;n<e;n++){const e=t[n];O(e)&&(this.#u(e.name,r),this.#s([r]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];O(e)&&this.#h(e.name,r.id)}}}case 9:if(s=i.In.body[0].expression.property.name,s||(s=i.In.body[0].expression.object.name),r.property.push(s),t!==s){r.watchProp=t;const n=Ts(t.split(".").slice(0,-1).join("."))(r.originalTarget);if(n&&this.Ue.has(n))return n.$handler.#a(s,r),n.$handler.#s([r]),()=>n.$handler.#h(s,r.id)}break;case ys:r.property.push(i.In.body[0].expression.name);break;case 12:{const{elements:t}=i.In.body[0].expression;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ks?e.value:e.toWatch[0]?.name;i&&(this.#u(i,r),this.#s([r]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ks?e.value:e.toWatch[0]?.name;i&&this.#h(i,r.id)}}}case 14:{const{properties:t}=i.In.body[0].expression;for(let n=0,e=t.length;n<e;n++){const e=t[n];let s;if(!1===e.key.isPure)s=e.key.name;else if(e.value?.name)s=e.value.name;else{const t=i.In.body[0].expression.toWatch[0];s=t.property?t.property.name:t.name}s&&(o.push(s),r.property.push(s))}break}default:throw new Error(`Unsupported type ${c}`)}const u=r.watchFn(this.$target);if(j(u)&&this.Fe.set(u,[s]),o.length>0)for(let t=0,n=o.length;t<n;t++)this.#u(o[t],r);else this.#u(s,r);return e||this.#s([r]),()=>{if(o.length>0){let t=!0;for(let n=0,e=o.length;n<e;n++)this.#h(o[n],r.id)||(t=!1);return t}return this.#h(s,r.id)}}$new(t){let n;t?(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(Object.getPrototypeOf(t)||t,this.$target),n=t):n=Object.create(this.$target);const e=new Proxy(n,new Vs(this));return this.$children.push(e),e}$newIsolate(t){const n=t?Object.create(t):Object.create(null),e=new Proxy(n,new Vs(this,this.$root));return this.$children.push(e),e}$transcluded(t){const n=Object.create(this.$target),e=new Proxy(n,new Vs(this,t));return this.$children.push(e),e}#u(t,n){this.watchers.has(t)?this.watchers.get(t).push(n):this.watchers.set(t,[n])}#a(t,n){this.Ve.has(t)?this.Ve.get(t).push(n):this.Ve.set(t,[n])}#h(t,n){const e=this.watchers.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.watchers.set(t,e):this.watchers.delete(t),!0)}$eval(t,n){const e=Ts(t)(this,n);return x(e)||null===e||e.name===Object.hasOwnProperty.name?e:N(e)?e():Number.isNaN(e)?0:e}$merge(t){const n=jt(t);for(let t=0,e=n.length;t<e;t++){const[e,i]=n[t];this.set(this.$target,e,i,this.$proxy)}}$apply(t){try{return Ts(t)(this.$proxy)}catch(t){return Rs(t)}}$on(t,n){let e=this.qe.get(t);return e||(e=[],this.qe.set(t,e)),e.push(n),()=>{const i=e.indexOf(n);-1!==i&&(e.splice(i,1),0===e.length&&this.qe.delete(t))}}$emit(t,...n){return this.#l({name:t,event:void 0,broadcast:!1},...n)}$broadcast(t,...n){return this.#l({name:t,event:void 0,broadcast:!0},...n)}#l({name:t,event:n,broadcast:e},...i){if(!e&&!this.qe.has(t))return this.$parent?this.$parent.$handler.#l({name:t,event:n,broadcast:e},...i):void 0;n?n.currentScope=this.$target:n=n||{name:t,targetScope:this.$target,currentScope:this.$target,stopped:!1,stopPropagation(){n.stopped=!0},preventDefault(){n.defaultPrevented=!0},defaultPrevented:!1};const r=it([n],[n].concat(i),1),s=this.qe.get(t);if(s){let{length:t}=s;for(let n=0;n<t;n++)try{s[n].apply(null,r);const e=s.length;e!==t&&(e<t&&n--,t=e)}catch(t){Rs(t)}}return n.currentScope=null,n.stopped?n:e?(this.$children.length>0&&this.$children.forEach(r=>{n=r.$handler.#l({name:t,event:n,broadcast:e},...i)}),n):this.$parent?this.$parent.#l({name:t,event:n,broadcast:e},...i):n}#r(){return this.$root===this}$postUpdate(t){Ps.push(t)}$destroy(){if(!this.Gt){this.$broadcast("$destroy");for(const[t,n]of this.watchers){for(let t=n.length-1;t>=0;t--)n[t].scopeId===this.$id&&n.splice(t,1);0===n.length?this.watchers.delete(t):this.watchers.set(t,n)}if(this.#r())this.watchers.clear();else{const t=this.$parent.$children;for(let n=0,e=t.length;n<e;n++)if(t[n].$id===this.$id){t.splice(n,1);break}}this.qe.clear(),this.Gt=!0}}#c(t,n){const{originalTarget:e,listenerFn:i,watchFn:r}=t;try{let t=r(e);if(x(t)&&(t=r(n)),N(t)&&(t=t(e)),_(t))for(let n=0,i=t.length;n<i;n++)N(t[n])&&(t[n]=t[n](e));for(i(t,e);Ps.length;)Ps.shift()()}catch(t){Rs(t)}}$flushQueue(){for(;Ps.length;)Ps.shift()()}$getById(t){if(A(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let n;for(const e of this.$children){const i=e.$getById(t);if(i){n=i;break}}return n}}$searchByName(t){const n=[this.$root];for(;n.length;){const e=n.pop();if(e.$scopename===t)return e;if(e.$children?.length)for(let t=e.$children.length-1;t>=0;t--)n.push(e.$children[t])}}}class Us{httpOptions;$get=[Pt.ot,Pt.U,(t,n)=>e=>{let i=n.defaults?.transformResponse??null;_(i)?i=i.filter(t=>t!==re):i===re&&(i=null);const r=W({cache:t,transformResponse:i},this.httpOptions||{});return n.get(e,r).then(n=>(t.set(e,n.data),n.data),t=>Promise.reject(t))}]}class Fs{constructor(){this.He=/^\s*(https?|s?ftp|mailto|tel|file):/,this.Be=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return O(t)?(this.He=t,this):this.He}imgSrcSanitizationTrustedUrlList(t){return O(t)?(this.Be=t,this):this.Be}$get=[Pt.gt,t=>(n,e)=>{if(!n)return n;const i=e?this.Be:this.He,r=new URL(n.trim(),t.location.href).href;return""===r||r.match(i)?n:`unsafe:${r}`}]}const Ls="ng-active",Hs="ng-inactive";class Bs{constructor(t,n,e,i){this.$element=t,this.$scope=n,this.$attrs=e,this.$animate=i,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watch(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const n=Ws(this.$scope,this.$attrs.ngMessagesMultiple)||Ws(this.$scope,this.$attrs.multiple),e=[],i={};let r=0,s=this.head,o=!1,c=0;for(;s;){c++;const u=s.message;let h=!1;o||jt(t).forEach(([t,n])=>{if(Js(n)&&!h&&(r++,u.test(t))){if(i[t])return;i[t]=!0,h=!0,u.attach()}}),h?o=!n:e.push(u),s=s.next}e.forEach(t=>{t.detach()});const u=e.length!==c,h=this.default&&!u&&r>0;h?this.default.attach():this.default&&this.default.detach(),u||h?this.$animate.setClass(this.$element,Ls,Hs):this.$animate.setClass(this.$element,Hs,Ls)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,n,e){if(e)this.default=n;else{const e=this.latestKey.toString();this.messages[e]={message:n},this.insertMessageNode(this.$element,t,e),t.$$ngMessageNode=e,this.latestKey++}this.reRender()}deregister(t,n){if(n)delete this.default;else{const n=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element,t,n),delete this.messages[n]}this.reRender()}findPreviousMessage(t,n){let e=n;const i=[];for(;e&&e!==t;){const t=e.$$ngMessageNode;if(t&&t.length)return this.messages[t];e.childNodes.length&&-1===i.indexOf(e)?(i.push(e),e=e.childNodes[e.childNodes.length-1]):e.previousSibling?e=e.previousSibling:(e=e.parentNode,i.push(e))}}insertMessageNode(t,n,e){const i=this.messages[e];if(this.head){const e=this.findPreviousMessage(t,n);e?(i.next=e.next,e.next=i):(i.next=this.head,this.head=i)}else this.head=i}removeMessageNode(t,n,e){const i=this.messages[e];if(!i)return;const r=this.findPreviousMessage(t,n);r?r.next=i.next:this.head=i.next}}function zs(t){return{require:"ngMessages",restrict:"AE",controller:(n,e,i)=>new Bs(n,e,i,t)}}function Ws(t,n){return A(n)&&0===n.length||Js(n&&t.$eval(n))}function Js(t){return A(t)?t.length:!!t}function Zs(t,n){return{restrict:"AE",require:"^^ngMessages",link(e,i,r){const s=r.ngMessagesInclude||r.src;t(s).then(t=>{e.Gt||A(t)&&!t.trim()||n(t)(e,t=>{C(t,Node)&&i.after(t)})})}}}zs.$inject=[Pt.A],Zs.$inject=[Pt.ut,Pt.M];const Gs=Ys(!1),Ks=Ys(!1),Xs=Ys(!0);function Ys(t){function n(n){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(e,i,r,s,o){let c,u,h,a,l,f;if(!t){c=i,h=r.ngMessage||r.when,a=r.ngMessageExp||r.whenExp;const t=function(t){u=t?_(t)?t:t.split(/[\s,]+/):null,s.reRender()};a?(t(e.$eval(a)),e.$watch(a,t)):t(h)}s.register(c,f={test:t=>function(t,n){if(t)return _(t)?t.indexOf(n)>=0:_t(t,n)}(u,t),attach(){l||o((e,r)=>{n.enter(e,null,i),l=e;const o=l.$$attachId=s.getAttachId();l.addEventListener("$destroy",()=>{l&&l.$$attachId===o&&(s.deregister(c,t),f.detach()),r.$destroy()})})},detach(){if(l){const t=l;l=null,n.leave(t)}}},t),e.$on("$destroy",()=>{s.deregister(c,t)})}}}return n.$inject=[Pt.A],n}const Qs="ngAriaDisable",to=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],no=function(t,n){return-1!==n.indexOf(t.nodeName)};function eo(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function n(n,e,i,r){return function(s,o,c){if(_t(c,Qs))return;const u=c.$normalize(e);!t[u]||no(o,i)||c[u]||s.$watch(c[n],t=>{t=r?!t:!!t,o.setAttribute(e,t)})}}this.config=function(n){t=W(t,n)},this.$get=function(){return{config:n=>t[n],$$watchExpr:n}}}function io(t){return t.$$watchExpr("ngDisabled","aria-disabled",to,!1)}function ro(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function so(){return{restrict:"A",require:"?ngMessages",link(t,n,e){_t(e,Qs)||n.hasAttribute("aria-live")||n.setAttribute("aria-live","assertive")}}}function oo(t,n){return{restrict:"A",compile(e,i){if(_t(i,Qs))return;const r=n(i.ngClick);return(n,e,i)=>{no(e,to)||(t.config("bindRoleForClick")&&!e.hasAttribute("role")&&e.setAttribute("role","button"),t.config("tabindex")&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","0"),!t.config("bindKeydown")||i.ngKeydown||i.ngKeypress||i.ngKeyup||e.addEventListener("keydown",t=>{const e=parseInt(t.key,10);13!==e&&32!==e||(-1!==to.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),r(n,{$event:t}))}))}}}}function co(t){return t.$$watchExpr("ngRequired","aria-required",to,!1)}function uo(t){return t.$$watchExpr("ngChecked","aria-checked",to,!1)}function ho(t){return t.$$watchExpr("ngValue","aria-checked",to,!1)}function ao(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function lo(t){return t.$$watchExpr("ngReadonly","aria-readonly",to,!1)}function fo(t){function n(n,e,i,r){return t.config(e)&&!i.getAttribute(n)&&(r||!no(i,to))&&("hidden"!==i.getAttribute("type")||"INPUT"!==i.nodeName)}function e(t,n){return!n.getAttribute("role")&&n.getAttribute("type")===t&&!no(n,to)}return{restrict:"A",require:"ngModel",priority:200,compile(i,r){if(_t(r,Qs))return;const s=function(t){const{type:n}=t,{role:e}=t;return"checkbox"===(n||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(n||e)||"menuitemradio"===e?"radio":"range"===n||"progressbar"===e||"slider"===e?"range":""}(r);return{post(i,r,o,c){const u=n("tabindex","tabindex",r,!1);switch(s){case"radio":case"checkbox":e(s,r)&&r.setAttribute("role",s),n("aria-checked","ariaChecked",r,!1)&&c.$watch("$modelValue","radio"===s?function(){r.setAttribute("aria-checked",(o.value==c.$viewValue).toString())}:function(){r.setAttribute("aria-checked",(!c.$isEmpty(c.$viewValue)).toString())}),u&&r.setAttribute("tabindex",0);break;case"range":if(e(s,r)&&r.setAttribute("role","slider"),t.config("ariaValue")){const t=!r.hasAttribute("aria-valuemin")&&(_t(o,"min")||_t(o,"ngMin")),n=!r.hasAttribute("aria-valuemax")&&(_t(o,"max")||_t(o,"ngMax")),e=!r.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{r.setAttribute("aria-valuemin",t)}),n&&o.$observe("max",t=>{r.setAttribute("aria-valuemax",t)}),e&&c.$watch("$modelValue",t=>{r.setAttribute("aria-valuenow",t)})}u&&r.setAttribute("tabindex",0)}!_t(o,"ngRequired")&&c.$validators.required&&n("aria-required","ariaRequired",r,!1)&&o.$observe("required",()=>{r.setAttribute("aria-required",(!!o.required).toString())}),n("aria-invalid","ariaInvalid",r,!0)&&c.$watch("$invalid",t=>{r.setAttribute("aria-invalid",(!!t).toString())})}}}}}function mo(t){return function(n,e,i){_t(i,Qs)||!t.config("tabindex")||e.hasAttribute("tabindex")||no(e,to)||e.setAttribute("tabindex",0)}}io.$inject=[Pt.R],ro.$inject=[Pt.R],oo.$inject=[Pt.R,Pt.J],co.$inject=[Pt.R],uo.$inject=[Pt.R],ho.$inject=[Pt.R],ao.$inject=[Pt.R],lo.$inject=[Pt.R],fo.$inject=[Pt.R],mo.$inject=[Pt.R];let po=[],$o=!1;function go(){const t=po;po=[],$o=!1;for(let n=0;n<t.length;n++)t[n]()}function wo(t){po.push(t),$o||($o=!0,requestAnimationFrame(go))}class vo{constructor(t={},n=!1){if(this.ze=t,this.We=[],this.nt=0,this.Je=null,n){const t=t=>{requestAnimationFrame(t)},n=t=>{setTimeout(t,0)};this.Ze=e=>{document.hidden?n(e):t(e)}}else this.Ze=wo}setHost(t){this.ze=t||{}}done(t){2===this.nt?t(!0):this.We.push(t)}progress(...t){this.ze.progress?.(...t)}pause(){this.ze.pause?.()}resume(){this.ze.resume?.()}end(){this.ze.end?.(),this.Ge(!0)}cancel(){this.ze.cancel?.(),this.Ge(!1)}complete(t=!0){0===this.nt&&(this.nt=1,this.Ze(()=>this.Ge(t)))}Ge(t){if(2===this.nt)return;this.nt=2;const n=this.We;this.We=[];for(let e=0;e<n.length;e++)n[e]&&n[e](t)}getPromise(){return this.Je||(this.Je=new Promise((t,n)=>{this.done(e=>!1===e?n():t())})),this.Je}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}static Ke(t,n){let e=0;const i=(r=!0)=>{!r||e>=t.length?n(r):t[e++].done(i)};i()}static Xe(t,n){let e=t.length,i=!0;for(const r of t)r.done(t=>{!1===t&&(i=!1),0===--e&&n(i)})}}const bo=Pt.T,yo=1e3,ko={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",transitionProperty:"transitionProperty",animationDuration:"animationDuration",animationDelay:"animationDelay",animationIterationCount:"animationIterationCount"},Eo={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",animationDuration:"animationDuration",animationDelay:"animationDelay"};function So(t,n){return[n?"animationDelay":"transitionDelay",`${t}s`]}function xo(t,n){const e=Object.create(null),i=window.getComputedStyle(t)||{};return jt(n).forEach(([t,n])=>{let r=i[n];if(r){const n=r.charAt(0);("-"===n||"+"===n||n>=0)&&(r=function(t){let n=0;return t.split(/\s*,\s*/).forEach(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t}),n}(r)),0===r&&(r=null),e[t]=r}}),e}function Oo(t){return 0===t||!R(t)}function _o(t,n){let e="transition",i=`${t}s`;return n?e+="Duration":i+=" linear all",[e,i]}function Co(t,n,e){e.forEach(e=>{t[e]=O(t[e])?t[e]:n.style.getPropertyValue(e)})}function jo(){let t;this.$get=[Pt.m,Pt._,function(n,e){const i=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)},r=[];function s(t){r.push(t),e.Ye(()=>{n.flush();const t=document.body.offsetWidth+1;for(let n=0;n<r.length;n++)r[n](t);r.length=0})}function o(t,e,i){const r=function(t,e,i,r){let s=n.get(e);s||(s=xo(t,r),"infinite"===s.animationIterationCount&&(s.animationIterationCount=1));const o=i||s.transitionDuration>0||s.animationDuration>0;return n.put(e,s,o),s}(t,e,i,ko),s=r.animationDelay,o=r.transitionDelay;return r.maxDelay=s&&o?Math.max(s,o):s||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}return function(e,r){let c,u=r||{$$skipPreparationClasses:!1};u.$$prepared||(u=Mr(structuredClone(u)));const h={},a=e;if(!a||!a.parentNode)return B();const l=[],f=function(t){return t?.to||t?.from?{to:t.to,from:t.from}:{}}(u);let d,m,p,$,g,w,v,b,y,k;const E=[];if(0===u.duration)return B();const S=u.event&&_(u.event)?u.event.join(" "):u.event,x=S&&u.structural;let O="",C="";x?O=Rr(S,"ng-",!0):S&&(O=S),u.addClass&&(C+=Rr(u.addClass,_r)),u.removeClass&&(C.length&&(C+=" "),C+=Rr(u.removeClass,Cr)),u.applyClassesEarly&&C.length&&i(e,u);let j=[O,C].join(" ").trim();const A=f.to&&Object.keys(f.to).length>0;if(!((u.keyframeStyle||"").length>0||A||j))return B();let T,M,P=n.cacheKey(a,S,u.addClass,u.removeClass);if(n.containsCachedAnimationWithoutDuration(P))return j=null,B();if(u.stagger>0){const t=parseFloat(u.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,e,i,r){let s;const o=`stagger-${i}`;if(n.count(i)>0&&(s=n.get(o),!s)){const i=Rr(e,"-stagger");t.className+=` ${i}`,s=xo(t,r),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(i),n.put(o,s,!0)}return s||{}}(a,j,P,Eo);if(u.$$skipPreparationClasses||e.classList.add(...j.split(" ").filter(t=>""!==t)),u.transitionStyle){const t=["transition",u.transitionStyle];Vr(a,t),l.push(t)}if(u.duration>=0){M=a.style.transition.length>0;const t=_o(u.duration,M);Vr(a,t),l.push(t)}if(u.keyframeStyle){const t=["animation",u.keyframeStyle];Vr(a,t),l.push(t)}const I=T?u.staggerIndex>=0?u.staggerIndex:n.count(P):0,D=0===I;D&&!u.skipBlocking&&Ao(a,9999);let N=o(a,P,!x),q=N.maxDelay;w=Math.max(q,0),b=N.maxDuration;const V={};return V.hasTransitions=N.transitionDuration>0,V.hasAnimations=N.animationDuration>0,V.hasTransitionAll=V.hasTransitions&&"all"===N.transitionProperty,V.applyTransitionDuration=A&&(V.hasTransitions&&!V.hasTransitionAll||V.hasAnimations&&!V.hasTransitions),V.applyAnimationDuration=u.duration&&V.hasAnimations,V.applyTransitionDelay=Oo(u.delay)&&(V.applyTransitionDuration||V.hasTransitions),V.applyAnimationDelay=Oo(u.delay)&&V.hasAnimations,V.recalculateTimingStyles=C.length>0,(V.applyTransitionDuration||V.applyAnimationDuration)&&(b=u.duration?parseFloat(u.duration):b,V.applyTransitionDuration&&(V.hasTransitions=!0,N.transitionDuration=b,M=a.style.transitionProperty.length>0,l.push(_o(b,M))),V.applyAnimationDuration&&(V.hasAnimations=!0,N.animationDuration=b,l.push(["animationDuration",`${b}s`]))),0!==b||V.recalculateTimingStyles?(t=Rr(j,jr),R(u.delay)||("boolean"!=typeof u.delay&&(c=parseFloat(u.delay),w=Math.max(c,0)),V.applyTransitionDelay&&l.push(So(c)),V.applyAnimationDelay&&l.push(So(c,!0))),R(u.duration)&&N.transitionDuration>0&&(V.recalculateTimingStyles=V.recalculateTimingStyles||D),v=w*yo,y=b*yo,u.skipBlocking||(V.blockTransition=N.transitionDuration>0,V.blockKeyframeAnimation=N.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration),u.from&&(u.cleanupStyles&&Co(h,a,Object.keys(u.from)),Ir(e,u)),V.blockTransition||V.blockKeyframeAnimation?H(b):u.skipBlocking||Ao(a,!1),{$$willAnimate:!0,end:U,start(){if(!d)return g={end:U,cancel:F,resume:null,pause:null},$=new vo(g),s(W),$}}):B();function U(){L()}function F(){L(!0)}function L(n){if(d||p&&m)return;d=!0,m=!1,j&&!u.$$skipPreparationClasses&&e.classList.remove(...j.split(" ")),t=Rr(j,jr),t&&e.classList.remove(...t.split(" ")),qr(a,!1),Ao(a,!1),l.forEach(t=>{a.style[t[0]]=""}),i(e,u),Pr(e,u),Ct(h).length&&jt(h).forEach(([t,n])=>{n?a.style.setProperty(t,n):a.style.removeProperty(t)}),u.onDone&&u.onDone(),E&&E.length&&E.forEach(t=>e.removeEventListener(t,z));const r=tn(e,bo);r&&(clearTimeout(r[0].timer),Jt(e,bo)),$&&$.complete(!n)}function H(t){V.blockTransition&&Ao(a,t),V.blockKeyframeAnimation&&qr(a,!!t)}function B(){return $=new vo({end:U,cancel:F}),s(()=>{}),L(),{$$willAnimate:!1,start:()=>$,end:U}}function z(t){t.stopPropagation();const n=t.originalEvent||t;if(n.target!==a)return;const e=n.$manualTimeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(e-k,0)>=v&&i>=b&&(p=!0,L())}function W(){if(d)return;if(!a.parentNode)return void L();const r=function(t){if(p)m&&t&&(m=!1,L());else if(m=!t,N.animationDuration){const t=qr(a,m);if(m)l.push(t);else{const n=l.indexOf(t);-1!==n&&l.splice(n,1)}}},s=I>0&&(N.transitionDuration&&0===T.transitionDuration||N.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function f(){if(d)return;if(H(!1),l.forEach(t=>{const n=t[0];a.style[n]=t[1]}),i(e,u),e.classList.add(...t.split(" ").filter(t=>""!==t)),V.recalculateTimingStyles){if(P=n.cacheKey(a,S,u.addClass,u.removeClass),N=o(a,P,!1),q=N.maxDelay,w=Math.max(q,0),b=N.maxDuration,0===b)return void L();V.hasTransitions=N.transitionDuration>0,V.hasAnimations=N.animationDuration>0}if(V.applyAnimationDelay&&(q="boolean"!=typeof u.delay&&Oo(u.delay)?parseFloat(u.delay):q,w=Math.max(q,0),N.animationDelay=q,c=So(q,!0),l.push(c),a.style[c[0]]=c[1]),v=w*yo,y=b*yo,u.easing){let t;const n=u.easing;V.hasTransitions&&(t="transitionTimingFunction",l.push([t,n]),a.style[t]=n),V.hasAnimations&&(t="animationTimingFunction",l.push([t,n]),a.style[t]=n)}N.transitionDuration&&E.push("transitionend"),N.animationDuration&&E.push("animationend"),k=Date.now();const r=v+1.5*y,s=k+r,f=tn(e,bo)||[];let m=!0;if(f.length){const t=f[0];m=s>t.expectedEndTime,m?clearTimeout(t.timer):f.push(L)}if(m){const t=setTimeout($,r,!1);f[0]={timer:t,expectedEndTime:s},f.push(L),Qt(e,bo,f)}E.length&&E.forEach(t=>{e.addEventListener(t,z)}),u.to&&(u.cleanupStyles&&Co(h,a,Object.keys(u.to)),Dr(e,u))}function $(){const t=tn(e,bo);if(t){for(let n=1;n<t.length;n++)t[n]();Jt(e,bo)}}s?setTimeout(f,Math.floor(s*I*yo),!1):f(),g.resume=function(){r(!0)},g.pause=function(){r(!1)}}}}]}function Ao(t,n){const e=n?`-${n}s`:"";return Vr(t,["transitionDelay",e]),["transitionDelay",e]}const To="data-ng-animate",Ro="$ngAnimatePin";function Mo(t){const n=this.rules={skip:[],cancel:[],join:[]};function e(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const e=function(t){if(!t)return null;const n=t.split(" "),e=Object.create(null);return n.forEach(t=>{e[t]=!0}),e}(n);return t.split(" ").some(t=>e[t])}}function r(t,e,i){return n[t].some(t=>t(e,i))}function s(t,n){const e=(t.addClass||"").length>0,i=(t.removeClass||"").length>0;return n?e&&i:e||i}n.join.push(t=>!t.structural&&s(t)),n.skip.push(t=>!t.structural&&!s(t)),n.skip.push((t,n)=>"leave"===n.event&&t.structural),n.skip.push((t,n)=>n.structural&&2===n.state&&!t.structural),n.cancel.push((t,n)=>n.structural&&t.structural),n.cancel.push((t,n)=>2===n.state&&t.structural),n.cancel.push((t,n)=>{if(n.structural)return!1;const e=t.addClass,r=t.removeClass,s=n.addClass,o=n.removeClass;return!(x(e)&&x(r)||x(s)&&x(o))&&(i(e,o)||i(r,s))}),this.$get=[Pt.G,Pt.bt,Pt.O,function(n,i,o){const c=new Map,u=new Map,h=Object.create(null),a=t.customFilter(),l=t.classNameFilter(),d=function(){return!0},m=a||d,p=l?function(t,n){const e=[t.getAttribute("class"),n.addClass,n.removeClass].join(" ");return l.test(e)}:d,$=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)};function g(t,n){return Nr(t,n,{})}function w(t,n,e){const i=vn(n);return t.filter(t=>!(t.node===i&&(!e||t.callback===e)))}function v(t,n){"close"!==t||n.parentNode||b.off(n)}const b={on(t,n,e){const i=vn(n);h[t]=h[t]||[],h[t].push({node:i,callback:e}),n.addEventListener("$destroy",()=>{c.get(i)||b.off(t,n,e)})},off(t,n,e){if(1===arguments.length&&!A(arguments[0])){n=arguments[0];for(const t in h)h[t]=w(h[t],n);return}const i=h[t];i&&(h[t]=1===arguments.length?null:w(i,n,e))},pin(t,n){Qt(t,Ro,n)},push:(t,a,l,d)=>((l=l||{}).domOperation=d,function(t,a,l){let d=l,w=_(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const b=w,E=b&&b.parentNode;d=Mr(d);const S=new vo,C=function(){let t=!1;return function(e){t?e():n.$postUpdate(()=>{t=!0,e()})}}();if(_(d.addClass)&&(d.addClass=d.addClass.join(" ")),d.addClass&&!A(d.addClass)&&(d.addClass=null),_(d.removeClass)&&(d.removeClass=d.removeClass.join(" ")),d.removeClass&&!A(d.removeClass)&&(d.removeClass=null),d.from&&!j(d.from)&&(d.from=null),d.to&&!j(d.to)&&(d.to=null),!b||!m(b,a,l)||!p(b,d))return V(),S;const T=["enter","move","leave"].indexOf(a)>=0;let R=document.hidden||u.get(b);const M=!R&&c.get(b)||{},P=!!M.state;if(R||P&&1===M.state||(R=!function(t,n){const e=document.body,r=i.get("$rootElement");let s,o=t===e||"HTML"===t.nodeName,h=t===r,a=!1,l=u.get(t),d=Yt(t,Ro);for(d&&(n=d);n&&(h||(h=n===r),n.nodeType===f);){const t=c.get(n)||{};if(!a){const e=u.get(n);if(!0===e&&!1!==l){l=!0;break}!1===e&&(l=!1),a=t.structural}if(x(s)||!0===s){const t=Yt(n,Tr);O(t)&&(s=t)}if(a&&!1===s)break;if(o||(o=n===e),o&&h)break;n=h||(d=Yt(n,Ro),!d)?n.parentNode:d}return(!a||s)&&!0!==l&&h&&o}(b,E)),R)return document.hidden&&q(S,a,"start",e(d)),V(),document.hidden&&q(S,a,"close",e(d)),S;T&&function(t){t.querySelectorAll(`[${To}]`).forEach(t=>{const n=parseInt(t.getAttribute(To),10),e=c.get(t);if(e)switch(n){case 2:e.runner.end();case 1:c.delete(t)}})}(b);const I={structural:T,element:w,event:a,addClass:d.addClass,removeClass:d.removeClass,close:V,options:d,runner:S};if(P){if(r("skip",I,M))return 2===M.state?(V(),S):(Nr(w,M,I),M.runner);if(r("cancel",I,M))if(2===M.state)M.runner.end();else{if(!M.structural)return Nr(w,M,I),M.runner;M.close()}else if(r("join",I,M)){if(2!==M.state)return function(t,n,e){let i="";n&&(i=Rr(n,"ng-",!0)),e.addClass&&(i=Ur(i,Rr(e.addClass,_r))),e.removeClass&&(i=Ur(i,Rr(e.removeClass,Cr))),i.length&&(e.preparationClasses=i,t.className+=` ${i}`)}(w,T?a:null,d),a=I.event=M.event,d=Nr(w,M,I),M.runner;g(w,I)}}else g(w,I);let D=I.structural;if(D||(D="animate"===I.event&&Object.keys(I.options.to||{}).length>0||s(I)),!D)return V(),y(b),S;const N=(M.counter||0)+1;return I.counter=N,k(b,1,I),n.$postUpdate(()=>{w=function(t){return t instanceof NodeList?Array.from(t).filter(t=>t.nodeType===f):t.nodeType===f?t:void 0}(t);let n=c.get(b);const i=!n;n=n||{};const r=(w.parentElement||[])&&("animate"===n.event||n.structural||s(n));if(i||n.counter!==N||!r)return i&&($(w,d),Pr(w,d)),(i||T&&n.event!==a)&&(d.domOperation(),S.end()),void(r||y(b));a=!n.structural&&s(n,!0)?"setClass":n.event,k(b,2);const u=o(w,a,n.options);S.setHost(u),q(S,a,"start",e(d)),u.done(t=>{V(!t),c.get(b)?.counter===N&&y(b),q(S,a,"close",e(d))})}),setTimeout(n.$flushQueue,0),S;function q(t,n,e,i){C(()=>{const t=function(t,n,e){const i=[],r=h[e];return r&&r.forEach(r=>{(r.node.contains(n)||"leave"===e&&r.node.contains(t))&&i.push(r.callback)}),i}(E,b,n);t.length?(t.forEach(t=>{t(w,e,i)}),v(e,b)):v(e,b)}),t.progress(n,e,i)}function V(t){!function(t,n){n.preparationClasses&&(n.preparationClasses.split(" ").forEach(n=>t.classList.remove(n)),n.preparationClasses=void 0),n.activeClasses&&(n.activeClasses.split(" ").forEach(n=>t.classList.remove(n)),n.activeClasses=void 0)}(w,d),$(w,d),Pr(w,d),d.domOperation(),S.complete(!t)}}(t,a,l))};return b;function y(t){t.removeAttribute(To),c.delete(t)}function k(t,n,e){(e=e||{}).state=n,t.setAttribute(To,n);const i=c.get(t),r=i?W(i,e):e;c.set(t,r)}}]}function Po(t){this.$get=[Pt.bt,function(n){return function(e,i,r,s){3===arguments.length&&j(r)&&(s=r,r=null),s=Mr(s),r||(r=e.getAttribute("class")||"",s.addClass&&(r+=` ${s.addClass}`),s.removeClass&&(r+=` ${s.removeClass}`));const o=s.addClass,c=s.removeClass,u=function(e){e=_(e)?e:e.split(" ");const i=[],r={};for(let s=0;s<e.length;s++){const o=e[s],c=t.$$registeredAnimations[o];c&&!r[o]&&(i.push(n.get(c)),r[o]=!0)}return i}(r);let h,a,l;if(u.length){let t,n;"leave"===i?(t="leave",n="afterLeave"):(t=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,n=i),"enter"!==i&&"move"!==i&&(h=m(e,s,u,t,{add:o,remove:c})),a=m(e,s,u,n,{add:o,remove:c})}if(h||a)return{$$willAnimate:!0,start(){if(l)return l;function t(t){d(),l.complete(t)}return l=new vo({end:()=>t(!0),cancel:()=>t(!1)}),h?h(l.done.bind(l)):f(),a&&a(l.done.bind(l)),l},end:()=>(l?l.end():(d(),l=new vo,l.complete(!0)),l)};function f(){s.domOperation(),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(e,s)}function d(){f(),Pr(e,s)}function m(t,n,e,i,r){const s=[];if(e.forEach(e=>{const o=e[i];o&&s.push(s=>{if(N(o)){let c;switch(i){case"addClass":c=[t,r.add,s];break;case"removeClass":c=[t,r.remove,s];break;case"setClass":c=[t,r.add,r.remove,s];break;case"animate":c=[t,n.from,n.to,s];break;default:c=[t,s]}const u=o.apply(e,c);u instanceof vo&&u.done(s)}else s()})}),s.length)return t=>{let n=0;const e=s.length;s.forEach(i=>{i(()=>{++n===e&&N(t)&&t()})})}}}}]}Mo.$inject=It([Pt.A]),Po.$inject=It([Pt.A]);const Io="$$animationRunner",Do="$$animatePrepareClasses";function No(){const t="ng-animate-ref",n=this.drivers=[];function e(t){return tn(t,Io)}this.$get=[Pt.G,Pt.bt,Pt._,Pt.m,function(i,r,s,o){const c=[];return function(u,h,a){a=Mr(a);const l=["enter","move","leave"].indexOf(h)>=0,f=new vo({end(){$()},cancel(){$(!0)}});if(!n.length)return $(),f;let d=kt(u.getAttribute("class"),kt(a.addClass,a.removeClass)),{tempClasses:m}=a;return m&&(d+=` ${m}`,a.tempClasses=null),l&&Qt(u,Do,`ng-${h}-prepare`),function(t,n){Qt(t,Io,n)}(u,f),c.push({element:u,classes:d,event:h,structural:l,options:a,beforeStart:function(){m=(m?`${m} `:"")+Ar,u.className+=` ${m}`;let t=tn(u,Do);t&&(u.classList.remove(t),t=null)},close:$}),u.addEventListener("$destroy",function(){("leave"!==h||!a.$$domOperationFired)&&e(u)?.end()}),c.length>1||i.$postUpdate(()=>{const i=[];c.forEach(t=>{e(t.element)?i.push(t):t.close()}),c.length=0;const u=function(n){const e=[],i={};n.forEach((n,r)=>{const{element:s,event:o}=n,c=s,u=["enter","move"].indexOf(o)>=0,h=n.structural?function(n){const e=`[${t}]`,i=n.hasAttribute(t)?[n]:n.querySelectorAll(e),r=[];return i.forEach(n=>{const e=n.getAttribute(t);e&&e.length&&r.push(n)}),r}(c):[];if(h.length){const n=u?"to":"from";h.forEach(e=>{const s=e.getAttribute(t);i[s]=i[s]||{},i[s][n]={animationID:r,element:e}})}else e.push(n)});const r={},s={};return Object.values(i).forEach(t=>{const{from:i}=t,{to:o}=t;if(!i||!o){const t=i?i.animationID:o.animationID,s=t.toString();return void(r[s]||(r[s]=!0,e.push(n[t])))}const c=n[i.animationID],u=n[o.animationID],h=i.animationID.toString();if(!s[h]){const t=s[h]={structural:!0,beforeStart(){c.beforeStart(),u.beforeStart()},close(){c.close(),u.close()},classes:p(c.classes,u.classes),from:c,to:u,anchors:[]};t.classes.length?e.push(t):(e.push(c),e.push(u))}s[h].anchors.push({out:i.element,in:o.element})}),e}(i),h=[];u.forEach(t=>{const i=t.from?t.from.element:t.element;let s=a.addClass;s=(s?`${s} `:"")+Ar;const c=o.cacheKey(i,t.event,s,a.removeClass);h.push({element:i,domNode:i,fn:function(){let i;const s=t.close;if(o.containsCachedAnimationWithoutDuration(c))s();else{if(t.beforeStart(),e(t.anchors?t.from.element||t.to.element:t.element)){const e=function(t){for(let e=n.length-1;e>=0;e--){const i=n[e],s=r.get(i)(t);if(s)return s}}(t);e&&(i=e.start)}if(i){const n=i();n.done(t=>{s(!t)}),function(t,n){function i(t){e(t).setHost(n)}t.from&&t.to?(i(t.from.element),i(t.to.element)):i(t.element)}(t,n)}else s()}}})});const l=function(t){const n={children:[]};let e;const i=new Map;for(e=0;e<t.length;e++){const n=t[e];i.set(n.domNode,t[e]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)r(t[e]);return function(t){const n=[],i=[];for(e=0;e<t.children.length;e++)i.push(t.children[e]);let r=i.length,s=0,o=[];for(let t=0;t<i.length;t++){const e=i[t];r<=0&&(r=s,s=0,n.push(o),o=[]),o.push(e),e.children.forEach(t=>{s++,i.push(t)}),r--}return o.length&&n.push(o),n}(n);function r(t){if(t.processed)return t;t.processed=!0;const e=t.domNode;let s,{parentNode:o}=e;for(i.set(e,t);o;){if(s=i.get(o),s){s.processed||(s=r(s));break}o=o.parentNode}return(s||n).children.push(t),t}}(h);for(let t=0;t<l.length;t++){const n=l[t];for(let e=0;e<n.length;e++){const i=n[e],{element:r}=i;if(l[t][e]=i.fn,0===t){Jt(r,Do);continue}const s=tn(r,Do);s&&r.classList.add(s)}}s(l)}),f;function p(t,n){t=t.split(" "),n=n.split(" ");const e=[];for(let i=0;i<t.length;i++){const r=t[i];if("ng-"!==r.substring(0,3))for(let t=0;t<n.length;t++)if(r===n[t]){e.push(r);break}}return e.join(" ")}function $(t){(function(t,n){if(Kt(t)){const e=Zt(t,!1),i=e?.data;i&&_t(i,zt(n))&&delete i[zt(n)]}})(u,Io),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(u,a),Pr(u,a),a.domOperation(),m&&m.split(" ").forEach(t=>u.classList.remove(t)),f.complete(!t)}}}]}class qo{constructor(){this.Qe=[],this.ti=null}ni(){this.Qe.length&&(this.Qe.shift().forEach(t=>t()),this.ti||(this.ti=window.requestAnimationFrame(()=>{this.ti=null,this.ni()})))}$get(){const t=t=>{this.Qe=this.Qe.concat(t),this.ni()};return t.Qe=this.Qe,t.Ye=t=>{null!==this.ti&&(window.cancelAnimationFrame(this.ti),this.ti=null),this.ti=window.requestAnimationFrame(()=>{this.ti=null,t(),this.ni()})},t}}const Vo="$animId";let Uo=0;const Fo=new Map;class Lo{$get(){return{cacheKey(t,n,e,i){const{parentNode:r}=t,s=[r[Vo]??(r[Vo]=++Uo),n,t.getAttribute("class")];return e&&s.push(e),i&&s.push(i),s.join(" ")},containsCachedAnimationWithoutDuration(t){const n=Fo.get(t);return!!n&&!n.isValid},flush(){Fo.clear()},count:t=>Fo.get(t)?.total??0,get:t=>Fo.get(t)?.value,put(t,n,e){const i=Fo.get(t);i?(i.total++,i.value=n):Fo.set(t,{total:1,value:n,isValid:e})}}}}const Ho="ng-animate-shim",Bo="ng-anchor-out";function zo(t){t.drivers.push(Pt.p),this.$get=[Pt.T,Pt.K,function(t,n){const e=document.body,i=n,r=(s=i).parentNode&&11===s.parentNode.nodeType||e.contains(i)?i:e;var s;return function(n){return n.from&&n.to?function(n,i,s){const c=o(n),u=o(i),h=[];return s.forEach(n=>{const i=function(n,i){const s=n.cloneNode(!0),o=Wo(l(s));let c;n[0].classList.add(Ho),i[0].classList.add(Ho),s.classList.add("ng-anchor"),r.append(s);const u=function(){const e=t(s,{addClass:Bo,delay:!0,from:a(n)});return e.$$willAnimate?e:null}();if(!u&&(c=f(),!c))return d();const h=u||c;return{start(){const t=new vo({end:e,cancel:e});let n=h.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,d(),t.complete()}),n;d(),t.complete()}),t;function e(){n&&n.end()}}};function a(t){const n={},i=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let r=i[t];switch(t){case"top":r+=e.scrollTop;break;case"left":r+=e.scrollLeft}n[t]=`${Math.floor(r)}px`}),n}function l(t){return t.getAttribute("class")||""}function f(){const n=Wo(l(i)),e=Jo(n,o),r=Jo(o,n),c=t(s,{to:a(i),addClass:`ng-anchor-in ${e}`,removeClass:`${Bo} ${r}`,delay:!0});return c.$$willAnimate?c:null}function d(){s.remove(),n[0].classList.remove(Ho),i[0].classList.remove(Ho)}}(n.out,n.in);i&&h.push(i)}),c||u||0!==h.length?{start(){const t=[];c&&t.push(c.start()),u&&t.push(u.start()),h.forEach(n=>{t.push(n.start())});const n=new vo({end:e,cancel:e});return vo.Xe(t,t=>{n.complete(t)}),n;function e(){t.forEach(t=>{t.end()})}}}:void 0}(n.from,n.to,n.anchors):o(n)};function o(n){const e=n.options||{};n.structural&&(e.event=n.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===n.event&&(e.onDone=e.domOperation)),e.preparationClasses&&(e.event=Ur(e.event,e.preparationClasses));const i=t(n.element,e);return i.$$willAnimate?i:null}}]}function Wo(t){return t.replace(/\bng-\S+\b/g,"")}function Jo(t,n){return A(t)&&(t=t.split(" ")),A(n)&&(n=n.split(" ")),t.filter(t=>-1===n.indexOf(t)).join(" ")}function Zo(t){t.drivers.push(Pt.k),this.$get=[Pt.$,function(t){return function(t){if(t.from&&t.to){const e=n(t.from),i=n(t.to);if(!e&&!i)return;return{start(){const t=[];e&&t.push(e.start()),i&&t.push(i.start()),vo.Xe(t,function(t){n.complete(t)});const n=new vo({end:r(),cancel:r()});return n;function r(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(n){const{element:e,event:i,options:r,classes:s}=n;return t(e,i,s,r)}}]}function Go(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(n,e,i,r,s){let o,c;n.$watch(i.ngAnimateSwap||i.for,n=>{o&&t.leave(o),c&&(c.$destroy(),c=null),n&&s((n,i)=>{o=n,c=i,t.enter(n,null,e)})})}}}function Ko(t){return{link(n,e,i){const r=i.ngAnimateChildren;function s(t){Qt(e,Tr,t="on"===t||"true"===t)}A(r)&&0===r.length?Qt(e,Tr,!0):(s(t(r)(n)),i.$observe("ngAnimateChildren",s))}}}function Xo(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;const i=[t,n];if(i.every(_))return function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!Xo(t[e],n[e]))return!1;return!0}(t,n);if(i.every(I))return t.getTime()===n.getTime();if(i.every(q))return t.toString()===n.toString();if(i.every(N))return!0;if([N,_,I,q].some(t=>!!t(i)))return!1;const r={};for(const e in t){if(!Xo(t[e],n[e]))return!1;r[e]=!0}for(const t in n)if(!r[t])return!1;return!0}function Yo(t,n){const e=Object.create(t);return n&&Object.assign(e,n),e}function Qo(t,n){const e=t.indexOf(n);return-1!==e&&t.splice(e,1),t}function tc(t,...n){const e=Object.assign({},...n.reverse());return Object.assign(e,nc(t||{},Object.keys(e)))}function nc(t,n){const e={};for(const i in t)-1!==n.indexOf(i)&&(e[i]=t[i]);return e}function ec(t,n){return Object.keys(t).filter(t=>!n.includes(t)).reduce((n,e)=>(n[e]=t[e],n),{})}function ic(t,n){const e=_(t),i=e?[]:{},r=e?t=>i.push(t):(t,n)=>i[n]=t;return jt(t).forEach(([t,e])=>{n(e,t)&&r(e,t)}),i}function rc(t,n){let e;return jt(t).forEach(([t,i])=>{e||n(i,t)&&(e=i)}),e}function sc(t,n,e){return e=e||(_(t)?[]:{}),jt(t).forEach(([t,i])=>e[t]=n(i,t)),e}zo.$inject=It([Pt.O]),Zo.$inject=It([Pt.O]),Go.$inject=[Pt.A],Ko.$inject=[Pt.L];const oc=(t,n)=>t&&n,cc=(t,n)=>t||n,uc=(t,n)=>t.concat(n);function hc(t,n){return t.push(n),t}const ac=(t,n)=>t.includes(n)?t:hc(t,n),lc=t=>t.reduce(uc,[]);function fc(...t){if(0===t.length)return[];const n=t.reduce((t,n)=>Math.min(n.length,t),Number.MAX_SAFE_INTEGER),e=[];for(let i=0;i<n;i++)switch(t.length){case 1:e.push([t[0][i]]);break;case 2:e.push([t[0][i],t[1][i]]);break;case 3:e.push([t[0][i],t[1][i],t[2][i]]);break;case 4:e.push([t[0][i],t[1][i],t[2][i],t[3][i]]);break;default:e.push(t.map(t=>t[i]))}return e}function dc(t,n){let e,i;if(_(n)&&([e,i]=n),!A(e))throw new Error("invalid parameters to applyPairs");return t[e]=i,t}function mc(t){return t.length>0?t[t.length-1]:void 0}function pc(t,n){return n&&Object.keys(n).forEach(t=>delete n[t]),n||(n={}),Object.assign(n,t)}function $c(t){const n=(...e)=>e.length>=t.length?t(...e):(...t)=>n(...e,...t);return n}const gc=$c((t,n,e)=>e&&e[t]===n),wc=t=>{const n=t.split(".");return t=>n.reduce((t,n)=>t&&t[n],t)};function vc(t){return function(n){return null!=n&&n.constructor===t||n instanceof t}}const bc=t=>()=>t;function yc(t){return function(n){for(let e=0;e<t.length;e++)if(t[e][0](n))return t[e][1](n)}}class kc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,n){return t===n}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,n){if(!t)return this;if("auto"===t&&!n)throw new Error("'auto' array mode is for query parameters only");return new Ec(this,t)}}function Ec(t,n){function e(t){return _(t)?t:O(t)?[t]:[]}function i(t,i){return function(r){if(_(r)&&0===r.length)return r;const s=sc(e(r),t);return!0===i?0===ic(s,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===n?t[0]:t;default:return t}}(s)}}function r(t){return function(n,i){const r=e(n),s=e(i);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],s[n]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(n=>{const e=t[n].bind(t),s="equals"===n?r:i;this[n]=s(e)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:i(t.is.bind(t),!0),$arrayMode:n})}class Sc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=nc(Sc.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=Yo(sc(this.defaultTypes,(t,n)=>new kc(Object.assign({name:n},t))),{})}type(t,n,e){if(!O(n))return this.types[t];if(_t(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new kc(Object.assign({name:t},n)),e&&(this.typeQueue.push({name:t,def:e}),this.enqueue||this.ei()),this}ei(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],window.angular.$injector.invoke(t.def))}}}!function(){const t=t=>{const n=t=>R(t)?t:t.toString(),e={encode:n,decode:n,is:vc(String),pattern:/.*/,equals:(t,n)=>t===n};return Object.assign({},e,t)};Object.assign(Sc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is(t){return!R(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:vc(Boolean),pattern:/[01]/}),date:t({encode(t){return this.is(t)?[t.getFullYear(),`0${t.getMonth()+1}`.slice(-2),`0${t.getDate()}`.slice(-2)].join("-"):void 0},decode(t){if(this.is(t))return t;const n=this.capture.exec(t);return n?new Date(n[1],n[2]-1,n[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,n)=>["getFullYear","getMonth","getDate"].reduce((e,i)=>e&&t[i]()===n[i](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:vc(Object),equals:Xo,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Xo})})}();class xc{constructor(){this.paramTypes=new Sc,this.ii=!1,this.ri=!0,this.si=!1;const t=this.type("path");t.encode=t=>R(t)?t:t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])),t.decode=t=>R(t)?t:t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])),this.paramTypes.enqueue=!1,this.paramTypes.ei()}$get=()=>this;caseInsensitive(t){return this.ii=O(t)?t:this.ii}defaultSquashPolicy(t){if(O(t)&&!0!==t&&!1!==t&&!A(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this.si=O(t)?t:this.si}strictMode(t){return this.ri=O(t)?t:this.ri}type(t,n,e){const i=this.paramTypes.type(t,n,e);return O(n)?this:i}}class Oc{constructor(t={}){Object.assign(this,t)}$inherit(t,n,e){const i=function(t,n){const e=[];for(const i in t.path){if(t.path[i]!==n.path[i])break;e.push(t.path[i])}return e}(n,e),r={},s=[];for(const t in i){if(!i[t]||!i[t].params)continue;const n=i[t].params,e=Ct(n);if(e.length)for(const t in e)!1===n[e[t]].inherit||s.indexOf(e[t])>=0||(s.push(e[t]),r[e[t]]=this[e[t]])}return Object.assign({},r,t)}}class _c{constructor(t=[],n=null){this.oi=_(t)?[...t]:[],this.ci=Number.isInteger(n)&&n>0?n:null,this.ui=[]}onEvict(t){this.ui.push(t)}enqueue(t){return this.oi.push(t),null!==this.ci&&this.oi.length>this.ci&&this.evict(),t}evict(){const t=this.oi.shift();return void 0!==t&&this.ui.forEach(n=>n(t)),t}dequeue(){return this.oi.length>0?this.oi.shift():void 0}clear(){const t=[...this.oi];return this.oi.length=0,t}size(){return this.oi.length}remove(t){const n=this.oi.indexOf(t);return-1!==n&&this.oi.splice(n,1)[0]}peekTail(){return this.oi[this.oi.length-1]}peekHead(){return this.oi[0]}}class Cc{constructor(){this.params=new Oc,this.hi=-1,this.ai=new _c([],1),this.li=new _c([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function jc(t,n){return n.length<=t?n:`${n.substring(0,t-3)}...`}function Ac(t){const n=Tc(t),e=n.match(/^(function [^ ]+\([^)]*\))/),i=e?e[1]:n,r=t.name||"";return r&&i.match(/function \(/)?`function ${r}${i.substring(9)}`:i}function Tc(t){const n=_(t)?t.slice(-1)[0]:t;return n&&n.toString()||"undefined"}function Rc(t){const n=[],e=yc([[x,bc("undefined")],[T,bc("null")],[In,bc("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"===t.constructor.name,t=>t.fi.toString()],[t=>j(t)&&!_(t)&&t.constructor!==Object&&N(t.toString),t=>t.toString()],[Pn,Ac],[bc(!0),t=>t]]);function i(t){if(j(t)){if(-1!==n.indexOf(t))return"[circular ref]";n.push(t)}return e(t)}return x(t)?i(t):JSON.stringify(t,(t,n)=>i(n)).replace(/\\"/g,'"')}function Mc(t,n){return A(mc(t))&&A(n)?t.slice(0,-1).concat(mc(t)+n):hc(t,n)}function Pc(t){if(!t)return"ng-view (defunct)";const n=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${n})]`}function Ic(t){return P(t)?Dc[t]:Dc[Dc[t]]}const Dc={di:0,mi:1,pi:2,$i:3,gi:4},Nc=wc("$id"),qc=wc("router.$id"),Vc=t=>`Transition #${Nc(t)}-${qc(t)}`,Uc=new class{constructor(){this.wi={},this.approximateDigests=0,this.$logger=window.angular?.$injector?.get(Pt.B)}bi(t,n){n.length||(n=Ct(Dc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>Dc[t])),n.map(Ic).forEach(n=>this.wi[n]=t)}enable(...t){this.bi(!0,t)}disable(...t){this.bi(!1,t)}enabled(t){return!!this.wi[Ic(t)]}traceTransitionStart(t){this.enabled(Dc.mi)&&this.$logger.log(`${Vc(t)}: Started -> ${Rc(t)}`)}traceTransitionIgnored(t){this.enabled(Dc.mi)&&this.$logger.log(`${Vc(t)}: Ignored <> ${Rc(t)}`)}traceHookInvocation(t,n,e){if(!this.enabled(Dc.pi))return;const i=wc("traceData.hookType")(e)||"internal",r=wc("traceData.context.state.name")(e)||wc("traceData.context")(e)||"unknown",s=Ac(t.registeredHook.callback);this.$logger.log(`${Vc(n)}: Hook -> ${i} context: ${r}, ${jc(200,s)}`)}traceHookResult(t,n){this.enabled(Dc.pi)&&this.$logger.log(`${Vc(n)}: <- Hook returned: ${jc(200,Rc(t))}`)}traceResolvePath(t,n,e){this.enabled(Dc.di)&&this.$logger.log(`${Vc(e)}: Resolving ${t} (${n})`)}traceResolvableResolved(t,n){this.enabled(Dc.di)&&this.$logger.log(`${Vc(n)}: <- Resolved ${t} to: ${jc(200,Rc(t.data))}`)}traceError(t,n){this.enabled(Dc.mi)&&this.$logger.log(`${Vc(n)}: <- Rejected ${Rc(n)}, reason: ${t}`)}traceSuccess(t,n){this.enabled(Dc.mi)&&this.$logger.log(`${Vc(n)}: <- Success ${Rc(n)}, final state: ${t.name}`)}traceUIViewEvent(t,n,e=""){this.enabled(Dc.$i)&&this.$logger.log(`ng-view: ${function(t,n){for(;n.length<30;)n+=" ";return n}(0,t)} ${Pc(n)}${e}`)}traceUIViewConfigUpdated(t,n){this.enabled(Dc.$i)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${n}'`)}traceUIViewFill(t,n){this.enabled(Dc.$i)&&this.traceUIViewEvent("Fill",t,` with: ${jc(200,n)}`)}traceViewSync(t){if(!this.enabled(Dc.gi))return;const n="uiview component fqn",e="view config state (view name)",i=t.map(({ngView:t,viewConfig:i})=>{const r=t&&t.fqn,s=i&&`${i.viewDecl.$context.name}: (${i.viewDecl.$name})`;return{[n]:r,[e]:s}}).sort((t,e)=>(t[n]||"").localeCompare(e[n]||""));this.$logger.table(i)}traceViewServiceEvent(t,n){this.enabled(Dc.gi)&&this.$logger.log(`VIEWCONFIG: ${t} ${(t=>{const n=t.viewDecl,e=n.$context.name||"(root)";return`[View#${t.$id} from '${e}' state]: target ng-view: '${n.$ngViewName}@${n.$ngViewContextAnchor}'`})(n)}`)}traceViewServiceUIViewEvent(t,n){this.enabled(Dc.gi)&&this.$logger.log(`VIEWCONFIG: ${t} ${Pc(n)}`)}};class Fc{constructor(t,n,e,i,r){this.resolved=!1,this.promise=void 0,t instanceof Fc?Object.assign(this,t):N(n)?(pt(!R(t),"token argument is required"),this.token=t,this.policy=i,this.resolveFn=n,this.deps=e||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?Promise.resolve(this.data):void 0):j(t)&&t.token&&(_t(t,"resolveFn")||_t(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const n=this.policy||{},e=t&&t.resolvePolicy||{};return{when:n.when||e.when||"LAZY",async:n.async||e.async||"WAIT"}}resolve(t,n){const e=t.findNode(this),i=e&&e.state,r=this.getPolicy(i).async,s=N(r)?r:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(e=>e.get(t,n)))).then(t=>this.resolveFn.apply(null,t)).then(s).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Uc.traceResolvableResolved(this,n),this.data)),this.promise}get(t,n){return this.promise||this.resolve(t,n)}toString(){return`Resolvable(token: ${Rc(this.token)}, requires: [${this.deps.map(Rc)}])`}clone(){return new Fc(this)}}Fc.fromData=(t,n)=>new Fc(t,()=>n,null,null,n);class Lc{constructor(t,n,e,i){this.et=t,this.Re=n,this.Re=n,this.yi=Object.assign({},e||{}),this.sn=Object.assign({},i||{}),this.ki=t.matcher.find(n,this.sn.relative)}name(){return this.ki&&this.ki.name||this.Re}identifier(){return this.Re}params(){return this.yi}$state(){return this.ki}state(){return this.ki&&this.ki.self}options(){return this.sn}exists(){return!(!this.ki||!this.ki.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this.ki&&t){const n=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${n}'`}return this.ki?this.ki.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Rc(this.params())}`}withState(t){return new Lc(this.et,t,this.yi,this.sn)}withParams(t,n=!1){const e=n?t:Object.assign({},this.yi,t);return new Lc(this.et,this.Re,e,this.sn)}withOptions(t,n=!1){const e=n?t:Object.assign({},this.sn,t);return new Lc(this.et,this.Re,this.yi,e)}}Lc.isDef=t=>t&&t.state&&(A(t.state)||j(t.state)&&A(t.state.name));class Hc{constructor(t,n,e,i,r){const s=function(t,n,e){const i=!1===e.reloadOnSearch&&1===n||void 0,r=rc([e.dynamic,i],O),s=O(r)?{dynamic:r}:{},o=function(t){function n(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,n.Ei=!0;const e=Pn(t.value)?t.value:n;return Object.assign(t,{$$fn:e})}(e&&e.params&&e.params[t]);return Object.assign(s,o)}(t,e,r);n=function(t,n,e,i,r){if(t.type&&n&&"string"!==n.name)throw new Error(`Param '${i}' has two type configurations.`);if(t.type&&n&&"string"===n.name&&r.type(t.type))return r.type(t.type);if(n)return n;if(!t.type){const t=2===e?"any":0===e?"path":1===e?"query":"string";return r.type(t)}return t.type instanceof kc?t.type:r.type(t.type)}(s,n,e,t,i.paramTypes);const o=function(){const n={array:1===e&&"auto"},i=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(n,i,s).array}();n=o?n.$asArray(o,1===e):n;const c=void 0!==s.value||1===e,u=O(s.dynamic)?!!s.dynamic:!!n.dynamic,h=O(s.raw)?!!s.raw:!!n.raw,a=function(t,n,e){const{squash:i}=t;if(!n||!1===i)return!1;if(!O(i)||R(i))return e;if(!0===i||A(i))return i;throw new Error(`Invalid squash policy: '${i}'. Valid policies: false, true, or arbitrary string`)}(s,c,i.defaultSquashPolicy()),l=function(t,n,e,i){const r=[{from:"",to:e||n?void 0:""},{from:null,to:e||n?void 0:""}],s=_(t.replace)?t.replace:[];A(i)&&s.push({from:i,to:void 0});const o=sc(s,t=>t.from);return ic(r,t=>-1===o.indexOf(t.from)).concat(s)}(s,o,c,a),f=O(s.inherit)?!!s.inherit:!!n.inherit;this.isOptional=c,this.type=n,this.location=e,this.id=t,this.dynamic=u,this.raw=h,this.squash=a,this.replace=l,this.inherit=f,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const n of this.replace)if(n.from===t)return n.to;return t})(t),x(t)?(()=>{if(this.Si)return this.Si.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=window.angular.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.Ei&&(this.Si={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return 1===this.location}validates(t){if((x(t)||null===t)&&this.isOptional)return!0;const n=this.type.$normalize(t);if(!this.type.is(n))return!1;const e=n;return!(A(e)&&!this.type.pattern.exec(e))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,n={}){const e={};for(const i of t)e[i.id]=i.value(n[i.id]);return e}static changed(t,n={},e={}){return t.filter(t=>!t.type.equals(n[t.id],e[t.id]))}static equals(t,n={},e={}){return 0===Hc.changed(t,n,e).length}static validates(t,n={}){return t.map(t=>t.validates(n[t.id])).reduce(oc,!0)}}class Bc{constructor(t){if(t instanceof Bc){const n=t;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=Object.assign({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{const n=t;this.state=n,this.paramSchema=n.parameters({inherit:!1}),this.paramValues={},this.resolvables=n.resolvables.map(t=>t.clone())}}clone(){return new Bc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((n,e)=>{return dc(n,[(i=e).id,i.value(t[i.id])]);var i},{}),this}parameter(t){return rc(this.paramSchema,gc("id",t))}equals(t,n){const e=this.diff(t,n);return e&&0===e.length}diff(t,n){if(this.state!==t.state)return!1;const e=n?n(this):this.paramSchema;return Hc.changed(e,this.paramValues,t.paramValues)}}class zc{static buildPath(t){const n=t.params();return t.$state().path.map(t=>new Bc(t).applyRawParams(n))}static buildToPath(t,n){const e=zc.buildPath(n);return n.options().inherit?zc.inheritParams(t,e,Object.keys(n.params())):e}static applyViewConfigs(t,n,e){n.filter(t=>e.includes(t.state)).forEach(e=>{const i=Object.values(e.state.views||{}),r=zc.subPath(n,t=>t===e),s=i.map(n=>t.xi(r,n));e.views=s.reduce(uc,[])})}static inheritParams(t,n,e=[]){const i=t.map(t=>t.paramSchema).reduce(uc,[]).filter(t=>!t.inherit).map(t=>t.id);return n.map(function(n){let r=Object.assign({},n&&n.paramValues);const s=nc(r,e);r=ec(r,e);const o=ec(function(t,n){const e=rc(t,gc("state",n));return Object.assign({},e&&e.paramValues)}(t,n.state)||{},i),c=Object.assign(r,o,s);return new Bc(n.state).applyRawParams(c)})}static treeChanges(t,n,e){const i=Math.min(t.length,n.length);let r=0;const s=(t,n)=>t.equals(n,zc.nonDynamicParams);for(;r<i&&t[r].state!==e&&s(t[r],n[r]);)r++;const o=t,c=o.slice(0,r),u=o.slice(r),h=c.map(function(t,e){const i=t.clone();return i.paramValues=n[e].paramValues,i}),a=n.slice(r);return{from:o,to:h.concat(a),retained:c,retainedWithToParams:h,exiting:u,entering:a}}static matching(t,n,e){let i=!1;return fc(t,n).reduce((t,[n,r])=>(i=i||!n.equals(r,e),i?t:t.concat(n)),[])}static equals(t,n,e){return t.length===n.length&&zc.matching(t,n,e).length===t.length}static subPath(t,n){const e=rc(t,n),i=t.indexOf(e);return-1===i?void 0:t.slice(0,i+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,n)=>Object.assign(t,n.paramValues),{})}}function Wc(t,n){return new Lc(t,n.at(-1).state,n.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}),{})}const Jc="EAGER",Zc=[Jc,"LAZY"],Gc=[Jc];class Kc{constructor(t){this.Ot=t}getTokens(){return this.Ot.reduce((t,n)=>t.concat(n.resolvables.map(t=>t.token)),[]).reduce(ac,[])}getResolvable(t){return mc(this.Ot.map(t=>t.resolvables).reduce(uc,[]).filter(n=>n.token===t))}getPolicy(t){const n=this.findNode(t);return t.getPolicy(n)}subContext(t){return new Kc(zc.subPath(this.Ot,n=>n.state===t))}addResolvables(t,n){const e=rc(this.Ot,gc("state",n)),i=t.map(t=>t.token);e.resolvables=e.resolvables.filter(t=>-1===i.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",n){const e=(Zc.includes(t)?t:"LAZY")===Jc?Gc:Zc;Uc.traceResolvePath(this.Ot,t,n);const i=(t,n)=>e=>t.includes(this.getPolicy(e)[n]),r=this.Ot.reduce((t,r)=>{const s=r.resolvables.filter(i(e,"when")),o=s.filter(i(["NOWAIT"],"async")),c=s.filter(t=>!i(["NOWAIT"],"async")(t)),u=this.subContext(r.state),h=t=>t.get(u,n).then(n=>({token:t.token,value:n}));return o.forEach(h),t.concat(c.map(h))},[]);return Promise.all(r)}findNode(t){return rc(this.Ot,n=>n.resolvables.includes(t))}getDependencies(t){const n=this.findNode(t),e=(zc.subPath(this.Ot,t=>t===n)||this.Ot).reduce((t,n)=>t.concat(n.resolvables),[]).filter(n=>n!==t);return t.deps.map(t=>{const n=e.filter(n=>n.token===t);if(n.length)return mc(n);const i=window.angular.$injector.get(t);if(x(i))throw new Error(`Could not find Dependency Injection token: ${Rc(t)}`);return new Fc(t,()=>i,[],i)})}}const Xc=(t,n)=>t.reduce((t,e)=>t||O(n[e]),!1);function Yc(t){if(!t.parent)return{};const n=["component","bindings","componentProvider"],e=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=n.concat(e);if(O(t.views)&&Xc(i,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${i.filter(n=>O(t[n])).join(", ")}`);const r={};return jt(t.views||{$default:nc(t,i)}).forEach(([i,s])=>{if(i=i||"$default",A(s)&&(s={component:s}),s=Object.assign({},s),Xc(n,s)&&Xc(e,s))throw new Error(`Cannot combine: ${n.join("|")} with: ${e.join("|")} in stateview: '${i}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$context=t,s.$name=i;const o=tu.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,r[i]=s}),r}let Qc=0;class tu{constructor(t,n,e){this.path=t,this.viewDecl=n,this.factory=e,this.component=void 0,this.template=void 0,this.$id=Qc++,this.loaded=!1,this.getTemplate=(t,n)=>this.component?this.factory.makeComponentTemplate(t,n,this.component,this.viewDecl.bindings):this.template}load(){const t=new Kc(this.path),n=this.path.reduce((t,n)=>Object.assign(t,n.paramValues),{}),e=[Promise.resolve(this.factory.fromConfig(this.viewDecl,n,t)),Promise.resolve(this.getController(t))];return Promise.all(e).then(t=>(Uc.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const n=this.viewDecl.controllerProvider;if(!Pn(n))return this.viewDecl.controller;const e=On(n),i=_(n)?mc(n):n;return new Fc("",i,e).get(t)}static normalizeUIViewTarget(t,n=""){const e=n.split("@");let i=e[0]||"$default",r=A(e[1])?e[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(i);if(s&&(r=s[1],i=s[2]),"!"===i.charAt(0)&&(i=i.substring(1),r=""),/^(\^(?:\.\^)*)$/.exec(r)){const n=r.split(".").reduce(t=>t.parent,t);r=n.name}else"."===r&&(r=t.name);return{ngViewName:i,ngViewContextAnchor:r}}}class nu{constructor(){this.Oi=[],this._i=[],this.qe=[],this.Ci(function(){let t=null;return(n,e)=>(t=t||window.angular.$injector.get("$templateFactory"),new tu(n,e,t))}())}$get=()=>this;rootViewContext(t){return this.ji=t||this.ji}Ci(t){this.Ci=t}xi(t,n){const e=this.Ci;if(!e)throw new Error(`ViewService: No view config factory registered for type ${n.$type}`);return e(t,n)}deactivateViewConfig(t){Uc.traceViewServiceEvent("<- Removing",t),Qo(this._i,t)}activateViewConfig(t){Uc.traceViewServiceEvent("-> Registering",t),this._i.push(t)}sync(){const t=this.Oi.map(t=>[t.fqn,t]).reduce(dc,{});function n(t){let n=t.viewDecl.$context,e=0;for(;++e&&n.parent;)n=n.parent;return e}const e=$c((t,n,e,i)=>n*(t(e)-t(i))),i=t=>{-1!==this.Oi.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},r=this.Oi.sort(e(function(t){const n=t=>t&&t.parent?n(t.parent)+1:1;return 1e4*t.fqn.split(".").length+n(t.creationContext)},1)).map(i=>{const r=this._i.filter(nu.matches(t,i));return r.length>1&&r.sort(e(n,-1)),{ngView:i,viewConfig:r[0]}}),s=r.map(t=>t.viewConfig),o=this._i.filter(t=>!s.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));r.forEach(t=>{i(t)});const c=r.concat(o);this.qe.forEach(t=>t(c)),Uc.traceViewSync(c)}registerUIView(t){Uc.traceViewServiceUIViewEvent("-> Registering",t);const n=this.Oi;return n.filter(n=>n.fqn===t.fqn).length&&Uc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),n.push(t),this.sync(),()=>{-1!==n.indexOf(t)?(Uc.traceViewServiceUIViewEvent("<- Deregistering",t),Qo(n,t)):Uc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this.Oi.map(t=>t.fqn)}active(){return this.Oi.filter(t=>t.$config).map(t=>t.name)}}nu.matches=(t,n)=>e=>{if(n.$type!==e.viewDecl.$type)return!1;const i=e.viewDecl,r=i.$ngViewName.split("."),s=n.fqn.split(".");if(!Xo(r,s.slice(0-r.length)))return!1;const o=1-r.length||void 0,c=s.slice(0,o).join("."),u=t[c].creationContext;return i.$ngViewContextAnchor===(u&&u.name)};let eu=0;class iu{constructor(t,n,e){this.$id=eu++,this.type=t,this.message=n,this.detail=e,this.redirected=!1}static superseded(t,n){const e=new iu(2,"The transition has been superseded by a different transition",t);return n&&n.redirected&&(e.redirected=!0),e}static redirected(t){return iu.superseded(t,{redirected:!0})}static invalid(t){return new iu(4,"This transition is invalid",t)}static ignored(t){return new iu(5,"The transition was ignored",t)}static aborted(t){return new iu(3,"The transition has been aborted",t)}static errored(t){return new iu(6,"The transition errored",t)}static normalize(t){return vc(iu)(t)?t:iu.errored(t)}toString(){const t=(n=this.detail)&&n.toString!==Object.prototype.toString?n.toString():Rc(n);var n;const{$id:e,type:i,message:r}=this;return`Transition Rejection($id: ${e} type: ${i}, message: ${r}, detail: ${t})`}toPromise(){return Object.assign(((t=Promise.reject(this)).catch(()=>0),t),{fi:this});var t}}const ru={current:()=>{},transition:null,traceData:{},bind:null},su={mi:0,Ai:1};class ou{static chain(t,n){return t.reduce((t,n)=>t.then(()=>n.invokeHook()),n||Promise.resolve())}static invokeHooks(t,n){for(let e=0;e<t.length;e++){const i=t[e].invokeHook();if(In(i)){const r=t.slice(e+1);return ou.chain(r,i).then(()=>{n()})}}return n()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,n,e,i,r){this.transition=t,this.stateContext=n,this.registeredHook=e,this.options=i,this.isSuperseded=()=>2===this.type.hookPhase&&!this.options.transition.isActive(),this.options=tc(i,ru),this.type=e.eventType,this.q=r}logError(t){this.q(t)}invokeHook(){const t=this.registeredHook;if(t.Ti)return;const n=this.getNotCurrentRejection();if(n)return n;const{options:e}=this;Uc.traceHookInvocation(this,this.transition,e);const i=()=>t.callback.call(e.bind,this.transition,this.stateContext),r=t=>iu.normalize(t).toPromise(),s=n=>t.eventType.getErrorHandler(this)(n),o=n=>t.eventType.getResultHandler(this)(n);try{const t=i();return!this.type.synchronous&&In(t)?t.catch(r).then(o,s):o(t)}catch(t){return s(iu.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){return this.getNotCurrentRejection()||(In(t)?t.then(t=>this.handleHookResult(t)):(Uc.traceHookResult(t,this.transition),!1===t?iu.aborted("Hook aborted transition").toPromise():t instanceof Lc?iu.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition.Ri?iu.aborted().toPromise():this.isSuperseded()?iu.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:n}=this;return`${wc("traceData.hookType")(t)||"internal"} context: ${wc("traceData.context.state.name")(t)||wc("traceData.context")(t)||"unknown"}, ${jc(200,Tc(n.callback))}`}}ou.HANDLE_RESULT=t=>n=>t.handleHookResult(n),ou.LOG_REJECTED_RESULT=t=>n=>{In(n)&&n.catch(n=>t.logError(iu.normalize(n)))},ou.LOG_ERROR=t=>n=>t.logError(n),ou.REJECT_ERROR=()=>t=>{return(n=Promise.reject(t)).catch(()=>0),n;var n},ou.THROW_ERROR=()=>t=>{throw t};class cu{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new cu(t):null}constructor(t){this.Zn=t;const n=this.Zn.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":`\\.${t}`).join("");this.Mi=new RegExp(`^${n}$`)}matches(t){return this.Mi.test(`.${t}`)}}function uu(t,n,e){const i=A(n)?[n]:n;return!!(N(i)?i:function(t){const n=i;for(let e=0;e<n.length;e++){const i=new cu(n[e]);if(i&&i.matches(t.name)||!i&&n[e]===t.name)return!0}return!1})(t,e)}class hu{constructor(t,n,e,i,r,s={}){this.tranSvc=t,this.eventType=n,this.callback=e,this.matchCriteria=i,this.removeHookFromRegistry=r,this.invokeCount=0,this.Ti=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}Pi(t,n,e){if(!0===n)return t;const i=t.filter(t=>uu(t.state,n,e));return i.length?i:null}Ii(){return sc(this.tranSvc.Di(),()=>!0)}Ni(t,n){const e=Object.assign(this.Ii(),this.matchCriteria);return Object.values(this.tranSvc.Di()).reduce((i,r)=>{const s=r.scope===su.Ai,o=t[r.name]||[],c=s?o:[mc(o)];return i[r.name]=this.Pi(c,e[r.name],n),i},{})}matches(t,n){const e=this.Ni(t,n);return Object.values(e).every(t=>t)?e:null}deregister(){this.removeHookFromRegistry(this),this.Ti=!0}}function au(t,n,e){const i=(t.qi=t.qi||{})[e.name]=[],r=t=>Qo(i,t);function s(t,s,o={}){const c=new hu(n,e,s,t,r,o);return i.push(c),c.deregister.bind(c)}return t[e.name]=s,s}class lu{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.Ui.Vi(t).map(t=>this.buildHooks(t)).reduce(uc,[]).filter(Boolean)}buildHooks(t){const{transition:n}=this,e=n.treeChanges(),i=this.getMatchingHooks(t,e,n);if(!i)return[];const r={transition:n,current:n.options().current};return i.map(i=>i.matches(e,n)[t.criteriaMatchPath.name].map(e=>{const s=Object.assign({bind:i.bind,traceData:{hookType:t.name,context:e}},r),o=t.criteriaMatchPath.scope===su.Ai?e.state.self:null,c=new ou(n,o,i,s,this.transition.Ui.q);return{hook:i,node:e,transitionHook:c}})).reduce(uc,[]).sort(function(t=!1){return function(n,e){const i=t?-1:1,r=(n.node.state.path.length-e.node.state.path.length)*i;return 0!==r?r:e.hook.priority-n.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,n,e){const i=0===t.hookPhase,r=this.transition.Ui;return(i?[r]:[this.transition,r]).map(n=>n.getHooks(t.name)).filter(function(t,n="assert failure"){return e=>{const i=t(e);if(!i)throw new Error(n);return i}}(_,`broken event named: ${t.name}`)).reduce(uc,[]).filter(t=>t.matches(n,e))}}class fu{constructor(t,n,e,i){if(this.Fi=i,this.Ui=e,this.Li=Promise.withResolvers(),this.promise=this.Li.promise,this.qi={},this.Hi=new lu(this),this.isActive=()=>this.Fi.transition===this,this.Bi=n,!n.valid())throw new Error(n.error());this.sn=Object.assign({current:bc(this)},n.options()),this.$id=e.zi++;const r=zc.buildToPath(t,n);this.Wi=zc.treeChanges(t,r,this.sn.reloadState),this.createTransitionHookRegFns();const s=this.Hi.buildHooksForPhase(0);ou.invokeHooks(s,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.Ui.Vi().filter(t=>0!==t.hookPhase).forEach(t=>au(this,this.Ui,t))}getHooks(t){return this.qi[t]}applyViewConfigs(){const t=this.Wi.entering.map(t=>t.state);zc.applyViewConfigs(this.Ui.$view,this.Wi.to,t)}$from(){return mc(this.Wi.from).state}$to(){return mc(this.Wi.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this.Bi}is(t){return t instanceof fu?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!uu(this.$to(),t.to,this)||t.from&&!uu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this.Wi[t].map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}))}getResolveTokens(t="to"){return new Kc(this.Wi[t]).getTokens()}addResolvable(t,n){void 0===n&&(n=""),t=vc(Fc)(t)?t:new Fc(t);const e="string"==typeof n?n:n.name,i=this.Wi.to,r=rc(i,t=>t.state.name===e);pt(!!r,`targetNode not found ${e}`),new Kc(i).addResolvables([t],r.state)}redirectedFrom(){return this.sn.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this.sn}entering(){return sc(this.Wi.entering,t=>t.state).map(t=>t.self)}exiting(){return sc(this.Wi.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return sc(this.Wi.retained,t=>t.state).map(t=>t.self)}views(t="entering",n){let e=this.Wi[t];return e=n?e.filter(gc("state",n)):e,e.map(t=>t.views).reduce(uc,[])}treeChanges(t){return t?this.Wi[t]:this.Wi}redirect(t){let n=1,e=this;for(;!R(e=e.redirectedFrom());)if(++n>20)throw new Error("Too many consecutive Transition redirects (20+)");const i={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(i.location="replace");const r=Object.assign({},this.options(),t.options(),i);t=t.withOptions(r,!0);const s=this.Ui.create(this.Wi.from,t),o=this.Wi.entering,c=s.Wi.entering;return zc.matching(c,o,zc.nonDynamicParams).filter(n=>{return!(e=t.options().reloadState,t=>e&&t.state.includes[e.name])(n);var e}).forEach((t,n)=>{t.resolvables=o[n].resolvables}),s}Ji(){const t=this.Wi;if(this.sn.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(fc(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(cc,!1))return;const n=t.to.map(t=>t.paramSchema),[e,i]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return fc(n,e,i).map(([t,n,e])=>Hc.changed(t,n,e)).reduce(uc,[])}dynamic(){const t=this.Ji();return!!t&&t.map(t=>t.dynamic).reduce(cc,!1)}ignored(){return!!this.Zi()}Zi(){const t=this.Fi.transition,{reloadState:n}=this.sn,e=(t,e)=>{if(t.length!==e.length)return!1;const i=zc.matching(t,e);return t.length===i.filter(t=>!n||!t.state.includes[n.name]).length},i=this.Wi,r=t&&t.Wi;return r&&e(r.to,i.to)&&e(r.exiting,i.exiting)?"SameAsPending":0===i.exiting.length&&0===i.entering.length&&e(i.from,i.to)?"SameAsCurrent":void 0}run(){const t=t=>this.Hi.buildHooksForPhase(t),n=t(1);return ou.invokeHooks(n,()=>{const{Fi:t}=this;return t.hi=this.$id,t.transition=this,t.ai.enqueue(this),Uc.traceTransitionStart(this),Promise.resolve()}).then(()=>{const n=t(2),e=Promise.resolve();return ou.invokeHooks(n,()=>e)}).then(()=>{Uc.traceSuccess(this.$to(),this),this.success=!0,this.Li.resolve(this.to()),this.Hi.buildHooksForPhase(3).forEach(t=>{t.invokeHook()})},n=>{Uc.traceError(n,this),this.success=!1,this.Li.reject(n),this.Gi=n,t(4).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){x(this.success)&&(this.Ri=!0)}error(){const t=this.$to();if(t.self.abstract)return iu.invalid(`Cannot transition to abstract state '${t.name}'`);const n=t.parameters(),e=this.params(),i=n.filter(t=>!t.validates(e[t.id]));if(i.length){const n=i.map(t=>`[${t.id}:${Rc(e[t.id])}]`).join(", "),r=`The following parameter values are not valid for state '${t.name}': ${n}`;return iu.invalid(r)}return!1===this.success?this.Gi:void 0}toString(){const t=this.from(),n=this.to(),e=t=>null!==t["#"]&&void 0!==t["#"]?t:ec(t,["#"]);return`Transition#${this.$id}( '${j(t)?t.name:t}'${Rc(e(this.Wi.from.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{})))} -> ${this.valid()?"":"(X) "}'${j(n)?n.name:n}'${Rc(e(this.params()))} )`}}fu.diToken=fu;const du=["$transition$",fu];function mu(t){const n=Object.values(t.treeChanges()).reduce(uc,[]).reduce(ac,[]),e=t=>du.includes(t.token)?Fc.fromData(t.token,null):t;n.forEach(t=>{t.resolvables=t.resolvables.map(e)})}function pu(t){return(n,e)=>(0,e.$$state()[t])(n,e)}const $u=pu("onExit"),gu=pu("onRetain"),wu=pu("onEnter"),vu=1e3,bu=t=>new Kc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),yu=(t,n)=>new Kc(t.treeChanges().to).subContext(n.$$state()).resolvePath("LAZY",t).then(()=>{}),ku=t=>new Kc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),Eu=t=>{const n=t.views("entering");if(n.length)return Promise.all(n.map(t=>Promise.resolve(t.load()))).then(()=>{})},Su=t=>{const n=t.Fi,e=()=>{n.transition===t&&(n.transition=null)};t.onSuccess({},()=>{n.li.enqueue(t),n.$current=t.$to(),n.current=n.$current.self,pc(t.params(),n.params)},{priority:1e4}),t.promise.then(e,e)};function xu(t,n,e,i){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const r=t.entering().filter(t=>!!t.$$state().lazyLoad).map(n=>Ou(t,n,i));return Promise.all(r).then(function(){if("url"!==t.originalTransition().options().source){const e=t.targetState();return n.target(e.identifier(),e.params(),e.options())}const i=e.match(e.parts()),r=i&&i.rule;if(r&&"STATE"===r.type){const{state:e}=r,s=i.match;return n.target(e,s,t.options())}e.sync()})})}function Ou(t,n,e){const i=n.$$state().lazyLoad;let r=i.Je;if(!r){const s=t=>(delete n.lazyLoad,delete n.$$state().lazyLoad,delete i.Je,t),o=t=>(delete i.Je,Promise.reject(t));r=i.Je=Promise.resolve(i(t,n)).then(function(t){return t&&_(t.states)&&t.states.forEach(t=>e.register(t)),t}).then(s,o)}return r}class _u{constructor(t,n,e,i,r=!1,s=ou.HANDLE_RESULT,o=ou.REJECT_ERROR,c=!1){this.name=t,this.hookPhase=n,this.hookOrder=e,this.criteriaMatchPath=i,this.reverseSort=r,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=c}}function Cu(t){const n=t.Zi();if(!n)return;Uc.traceTransitionIgnored(t);const e=t.Fi.transition;return"SameAsCurrent"===n&&e&&e.abort(),iu.ignored().toPromise()}function ju(t){if(!t.valid())throw new Error(t.error().toString())}const Au={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Tu{static $inject=It([Pt.X,Pt.dt,Pt.q]);constructor(t,n,e){this.zi=0,this.Ki=[],this.qi={},this.Xi={},this.globals=t,this.$view=n,this.Yi={},this.Qi(),this.tr(),this.nr(),this.q=e.handler,t.li.onEvict(mu)}$get=[Pt.nt,Pt.ft,Pt.et,Pt.dt,(t,n,e,i)=>(this.Yi.lazyLoad=xu(this,t,n,e),this.Yi.updateUrl=((t,n,e)=>{this.onSuccess({},t=>{const i=t.options(),r=n;if("url"!==i.source&&i.location&&r.$current.navigable){const t={replace:"replace"===i.location};e.push(r.$current.navigable.url,r.globals.params,t)}e.update(!0)},{priority:9999})})(0,t,n),this.Yi.redirectTo=((t,n)=>{this.onStart({to:t=>!!t.redirectTo},t=>{const e=t.to().redirectTo;if(!e)return;const i=n;function r(n){if(n)return n instanceof Lc?n:A(n)?i.target(n,t.params(),t.options()):n.state||n.params?i.target(n.state||t.to(),n.params||t.params(),t.options()):void 0}return N(e)?Promise.resolve(e(t)).then(r):r(e)})})(0,t),this.Yi.activateViews=((t,n)=>{this.onSuccess({},t=>{const e=t.views("entering"),i=t.views("exiting");(e.length||i.length)&&(i.forEach(t=>n.deactivateViewConfig(t)),e.forEach(t=>{n.activateViewConfig(t)}),n.sync())})})(0,i),this)];create(t,n){return new fu(t,n,this,this.globals)}tr(){const t=ou,n=this.Xi,e=!1,i=!0;this.er("onCreate",0,0,n.to,e,t.LOG_REJECTED_RESULT,t.THROW_ERROR,i),this.er("onBefore",1,0,n.to),this.er("onStart",2,0,n.to),this.er("onExit",2,100,n.exiting,!0),this.er("onRetain",2,200,n.retained),this.er("onEnter",2,300,n.entering),this.er("onFinish",2,400,n.to),this.er("onSuccess",3,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i),this.er("onError",4,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i)}Qi(){const{Ai:t,mi:n}=su;this.ir("to",n),this.ir("from",n),this.ir("exiting",t),this.ir("retained",t),this.ir("entering",t)}er(t,n,e,i,r=!1,s=ou.HANDLE_RESULT,o=ou.REJECT_ERROR,c=!1){const u=new _u(t,n,e,i,r,s,o,c);this.Ki.push(u),au(this,this,u)}Vi(t){return(O(t)?this.Ki.filter(n=>n.hookPhase===t):this.Ki.slice()).sort((t,n)=>{const e=t.hookPhase-n.hookPhase;return 0===e?t.hookOrder-n.hookOrder:e})}ir(t,n){this.Xi[t]={name:t,scope:n}}Di(){return this.Xi}getHooks(t){return this.qi[t]}nr(){const t=this.Yi;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(Fc.fromData(fu,t),""),t.addResolvable(Fc.fromData("$transition$",t),""),t.addResolvable(Fc.fromData("$stateParams",t.params()),""),t.entering().forEach(n=>{t.addResolvable(Fc.fromData("$state$",n),n)})}),t.ignored=(()=>this.onBefore({},Cu,{priority:-9999}))(),t.invalid=(()=>this.onBefore({},ju,{priority:-1e4}))(),t.onExit=(()=>this.onExit({exiting:t=>!!t.onExit},$u))(),t.onRetain=(()=>this.onRetain({retained:t=>!!t.onRetain},gu))(),t.onEnter=(()=>this.onEnter({entering:t=>!!t.onEnter},wu))(),t.eagerResolve=(()=>this.onStart({},bu,{priority:vu}))(),t.lazyResolve=(()=>this.onEnter({entering:bc(!0)},yu,{priority:vu}))(),t.resolveAll=(()=>this.onFinish({},ku,{priority:vu}))(),t.loadViews=(()=>this.onFinish({},Eu))(),t.updateGlobals=(()=>this.onCreate({},Su))(),t.lazyLoad=xu(this)}}const Ru=bt("$stateProvider"),Mu=t=>t.catch(()=>0)&&t;class Pu{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=It([Pt.X,Pt.ht,Pt.q]);constructor(t,n,e){this.globals=t,this.transitionService=n,this.stateRegistry=void 0,this.urlService=void 0,this.$injector=void 0,this.invalidCallbacks=[],this.rr=e.handler}$get=[Pt.bt,Pt.ft,(t,n)=>(this.urlService=n,this.$injector=t,this)];decorator(t,n){return this.stateRegistry.decorator(t,n)||this}state(t){if(!t.name)throw Ru("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Ru("stateinvalid",t.message)}return this}sr(t,n){const e=Wc(this.stateRegistry,t),{globals:i}=this,r=()=>i.ai.peekTail(),s=r(),o=new _c(this.invalidCallbacks.slice()),c=this.$injector,u=t=>{if(!(t instanceof Lc))return;let n=t;return n=this.target(n.identifier(),n.params(),n.options()),n.valid()?r()!==s?iu.superseded().toPromise():this.transitionTo(n.identifier(),n.params(),n.options()):iu.invalid(n.error()).toPromise()};return function t(){const i=o.dequeue();return void 0===i?iu.invalid(n.error()).toPromise():Promise.resolve(i(n,e,c)).then(u).then(n=>n||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Qo(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!O(t)||t,inherit:!1,notify:!1})}go(t,n,e){const i=tc(e,{relative:this.$current,inherit:!0},Au);return this.transitionTo(t,n,i)}target(t,n,e={}){if(j(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");const i=this.stateRegistry;if(e.reloadState=!0===e.reload?i.root():i.matcher.find(e.reload,e.relative),e.reload&&!e.reloadState)throw new Error(`No such reload state '${A(e.reload)?e.reload:e.reload.name}'`);return new Lc(this.stateRegistry,t,n,e)}getCurrentPath(){const{globals:t}=this,n=t.li.peekTail();return n?n.Wi.to:(()=>[new Bc(this.stateRegistry.root())])()}transitionTo(t,n={},e={}){e=tc(e,Au);const i=()=>this.globals.transition;e=Object.assign(e,{current:i});const r=this.target(t,n,e),s=this.getCurrentPath();if(!r.exists())return this.sr(s,r);if(!r.valid())return o=r.error(),Mu(Promise.reject(o));var o;if(!1===e.supercede&&i())return iu.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const c=t=>n=>{if(n instanceof iu){const e=this.globals.hi<=t.$id;if(5===n.type)return e&&this.urlService.update(),Promise.resolve(this.globals.current);const{detail:i}=n;if(2===n.type&&n.redirected&&i instanceof Lc){const n=t.redirect(i);return n.run().catch(c(n))}if(3===n.type)return e&&this.urlService.update(),Promise.reject(n)}return this.defaultErrorHandler()(n),Promise.reject(n)},u=this.transitionService.create(s,r),h=u.run().catch(c(u));return Mu(h),Object.assign(h,{transition:u})}is(t,n,e){e=tc(e,{relative:this.$current});const i=this.stateRegistry.matcher.find(t,e.relative);if(!O(i))return;if(this.$current!==i)return!1;if(!n)return!0;const r=i.parameters({inherit:!0,matchingKeys:n});return Hc.equals(r,Hc.values(r,n),this.globals.params)}includes(t,n,e){e=tc(e,{relative:this.$current});const i=A(t)&&cu.fromString(t);if(i){if(!i.matches(this.$current.name))return!1;t=this.$current.name}const r=this.stateRegistry.matcher.find(t,e.relative),s=this.$current.includes;if(!O(r))return;if(!O(s[r.name]))return!1;if(!n)return!0;const o=r.parameters({inherit:!0,matchingKeys:n});return Hc.equals(o,Hc.values(o,n),this.globals.params)}href(t,n,e){e=tc(e,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),n=n||{};const i=this.stateRegistry.matcher.find(t,e.relative);if(!O(i))return null;e.inherit&&(n=this.globals.params.$inherit(n,this.$current,i));const r=i&&e.lossy?i.navigable:i;return r&&void 0!==r.url&&null!==r.url?this.urlService.href(r.url,n,{absolute:e.absolute}):null}defaultErrorHandler(t){return this.rr=t||this.rr}get(t,n){const e=this.stateRegistry;return 0===arguments.length?e.get():e.get(t,n||this.$current)}lazyLoad(t,n){const e=this.get(t);if(!e||!e.lazyLoad)throw new Error(`Can not lazy load ${t}`);const i=this.getCurrentPath(),r=Wc(this.stateRegistry,i);return Ou(n=n||this.transitionService.create(i,r),e)}}class Iu{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[Pt.j,t=>this.enabled?t:t=>{var n;n=Element,qn(t=>t instanceof n,t,"$element"),setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class Du{constructor(){this.cr=!1}$get=[Pt.U,Pt.ot,Pt.ut,Pt.bt,(t,n,e,i)=>(this.$templateRequest=e,this.$http=t,this.$templateCache=n,this.$injector=i,this)];useHttpService(t){this.cr=t}fromConfig(t,n,e){const i=t=>Promise.resolve(t).then(t=>({template:t})),r=t=>Promise.resolve(t).then(t=>({component:t}));switch(O((s=t).template)?"template":O(s.templateUrl)?"templateUrl":O(s.templateProvider)?"templateProvider":O(s.component)?"component":O(s.componentProvider)?"componentProvider":"default"){case"template":return i(this.fromString(t.template,n));case"templateUrl":return i(this.fromUrl(t.templateUrl,n));case"templateProvider":return i(this.fromProvider(t.templateProvider,n,e));case"component":return r(t.component);case"componentProvider":return r(this.fromComponentProvider(t.componentProvider,e));default:return i("<ng-view></ng-view>")}var s}fromString(t,n){return N(t)?t(n):t}fromUrl(t,n){return N(t)&&(t=t(n)),R(t)?null:this.cr?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,n,e){const i=On(t),r=_(t)?mc(t):t;return new Fc("",r,i).get(e)}fromComponentProvider(t,n){const e=On(t),i=_(t)?mc(t):t;return new Fc("",i,e).get(n)}makeComponentTemplate(t,n,e,i){i=i||{};const r=t=>{const n=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}(t);return/^(x|data)-/.exec(n)?`x-${n}`:n},s=function(t,n){const e=t.get(n+ze);if(!e||!e.length)throw new Error(`Unable to find component named '${n}'`);return e.map(Nu).reduce(uc,[])}(this.$injector,e).map(e=>{const{name:s,type:o}=e,c=r(s);if(t.getAttribute(c)&&!i[s])return`${c}='${t.getAttribute(c)}'`;const u=i[s]||s;if("@"===o)return`${c}='{{s$resolve.${u}}}'`;if("&"===o){const t=n.getResolvable(u),e=t&&t.data,i=e&&On(e)||[];return`${c}='$resolve.${u}${_(e)?`[${e.length-1}]`:""}(${i.join(",")})'`}return`${c}='$resolve.${u}'`}).join(" "),o=r(e);return`<${o} ${s}></${o}>`}}const Nu=t=>j(t.bindToController)?qu(t.bindToController):qu(t.scope),qu=t=>Object.keys(t||{}).map(n=>[n,/^([=<@&])[?]?(.*)/.exec(t[n])]).filter(t=>O(t)&&_(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function Vu(t,n){let e=["",""],i=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!n)return i;switch(n.squash){case!1:e=["(",")"+(n.isOptional?"?":"")];break;case!0:i=i.replace(/\/$/,""),e=["(?:/(",")|/)?"];break;default:e=[`(${n.squash}|`,")?"]}return i+e[0]+n.type.pattern.source+e[1]}const Uu=function(){const t=new RegExp("(/)","g");return n=>n.split(t).filter(Boolean)}(),Fu={state:{params:{}},strict:!0,caseInsensitive:!0};class Lu{static pathSegmentsAndParams(t){return fc(t.ur,t.yi.filter(t=>0===t.location).concat(void 0)).reduce(uc,[]).filter(t=>""!==t&&O(t))}static queryParams(t){return t.yi.filter(t=>1===t.location)}static compare(t,n){const e=t=>t.xt.weights=t.xt.weights||(t=>t.xt.segments=t.xt.segments||t.xt.path.map(Lu.pathSegmentsAndParams).reduce(uc,[]).reduce(Mc,[]).map(t=>A(t)?Uu(t):t).reduce(uc,[]))(t).map(t=>"/"===t?1:A(t)?2:t instanceof Hc?3:void 0),i=e(t),r=e(n);((t,n)=>{const e=Math.max(t.length,n.length);for(;t.length<e;)t.push(0);for(;n.length<e;)n.push(0)})(i,r);const s=fc(i,r);let o;for(let t=0,n=s.length;t<n;t++)if(o=s[t][0]-s[t][1],0!==o)return o;return 0}constructor(t,n,e,i){this.xt={path:[this]},this.hr=[],this.yi=[],this.ur=[],this.ar=[],this.config=i=tc(i,Fu),this.pattern=t;const r=new RegExp("([:*])([\\w[\\]]+)|\\{([\\w[\\]]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),s=new RegExp("([:]?)([\\w[\\].-]+)|\\{([\\w[\\].-]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),o=[];let c,u=0;const h=n=>{if(!Lu.nameValidator.test(n))throw new Error(`Invalid parameter name '${n}' in pattern '${t}'`);if(rc(this.yi,gc("id",n)))throw new Error(`Duplicate parameter name '${n}' in pattern '${t}'`)},a=(e,i)=>{const r=e[2]||e[3],s=i?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:r,regexp:s,segment:t.substring(u,e.index),type:s?n.type(s)||(t=>Yo(n.type(i?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let l,f;for(;(c=r.exec(t))&&(l=a(c,!1),!(l.segment.indexOf("?")>=0));)h(l.id),this.yi.push(e.fromPath(l.id,l.type,i.state)),this.ur.push(l.segment),o.push([l.segment,mc(this.yi)]),u=r.lastIndex;f=t.substring(u);const d=f.indexOf("?");if(d>=0){const t=f.substring(d);if(f=f.substring(0,d),t.length>0)for(u=0;c=s.exec(t);)l=a(c,!0),h(l.id),this.yi.push(e.fromSearch(l.id,l.type,i.state)),u=r.lastIndex}this.ur.push(f),this.ar=o.map(t=>Vu.apply(null,t)).concat(Vu(f))}append(t){return this.hr.push(t),t.xt={path:this.xt.path.concat(t),parent:this,pattern:null},t}isRoot(){return this.xt.path[0]===this}toString(){return this.pattern}lr(t,n){return n.value(t)}exec(t,n={},e){const i=(r=this.xt,s="pattern",o=()=>new RegExp(["^",lc(this.xt.path.map(t=>t.ar)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),r[s]=r[s]||o()).exec(t);var r,s,o;if(!i)return null;const c=this.parameters(),u=c.filter(t=>!t.isSearch()),h=c.filter(t=>t.isSearch()),a=this.xt.path.map(t=>t.ur.length-1).reduce((t,n)=>t+n),l={};if(a!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function f(t){const n=t=>t.split("").reverse().join(""),e=sc(n(t).split(/-(?!\\)/),n);return sc(e,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<a;t++){const n=u[t];let e=i[t+1];for(let t=0;t<n.replace.length;t++)n.replace[t].from===e&&(e=n.replace[t].to);e&&!0===n.array&&(e=f(e)),l[n.id]=this.lr(e,n)}return h.forEach(t=>{let e=n[t.id];for(let n=0;n<t.replace.length;n++)t.replace[n].from===e&&(e=t.replace[n].to);l[t.id]=this.lr(e,t)}),e&&(l["#"]=e),l}parameters(t={}){return!1===t.inherit?this.yi:lc(this.xt.path.map(t=>t.yi))}parameter(t,n={}){const{parent:e}=this.xt;return(()=>{for(const n of this.yi)if(n.id===t)return n})()||!1!==n.inherit&&e&&e.parameter(t,n)||null}validates(t){return t=t||{},this.parameters().filter(n=>_t(t,n.id)).map(n=>((t,n)=>!t||t.validates(n))(n,t[n.id])).reduce(oc,!0)}format(t={}){const n=this.xt.path,e=n.map(Lu.pathSegmentsAndParams).reduce(uc,[]).map(t=>A(t)?t:r(t)),i=n.map(Lu.queryParams).reduce(uc,[]).map(r);if(e.concat(i).filter(t=>!1===t.isValid).length)return null;function r(n){const e=n.value(t[n.id]),i=n.validates(e),r=n.isDefaultValue(e),s=!!r&&n.squash,o=n.type.encode(e);return{param:n,value:e,isValid:i,isDefaultValue:r,squash:s,encoded:o}}const s=e.reduce((t,n)=>{if(A(n))return t+n;const{squash:e,encoded:i,param:r}=n;return!0===e?t.match(/\/$/)?t.slice(0,-1):t:A(e)?t+e:!1!==e||R(i)?t:_(i)?t+sc(i,Hu).join("-"):r.raw?t+i:t+encodeURIComponent(i)},""),o=i.map(t=>{const{param:n,squash:e,isDefaultValue:i}=t;let{encoded:r}=t;if(!(R(r)||i&&!1!==e)&&(_(r)||(r=[r]),0!==r.length))return n.raw||(r=sc(r,encodeURIComponent)),r.map(t=>`${n.id}=${t}`)}).reduce(uc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?`#${t["#"]}`:"")}}function Hu(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}Lu.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Bu{name;navigable;parent;params;url;includes;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const n=this.name?cu.fromString(this.name):null;this.dr={nameGlob:n}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?`${t}.${this.name}`:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=tc(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(n=>!t.matchingKeys||_t(t.matchingKeys,n.id))}parameter(t,n={}){return this.url&&this.url.parameter(t,n)||rc(Object.values(this.params),gc("id",t))||n.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Bu.isStateDeclaration=t=>N(t.$$state),Bu.isState=t=>j(t.dr);class zu{constructor(t,n,e){this.urlService=t,this.stateService=n,this.routerGlobals=e}create(t,n){const{isState:e,isStateDeclaration:i}=Bu,r=yc([[A,t=>r(this.urlService.compile(t))],[vc(Lu),t=>this.fromUrlMatcher(t,n)],[(...t)=>e(...t)||i(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[vc(RegExp),t=>this.fromRegExp(t,n)],[N,t=>new Wu(t,n)]]),s=r(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,n){let e=n;A(n)&&(n=this.urlService.compile(n)),vc(Lu)(n)&&(e=t=>n.format(t));const i={urlMatcher:t,matchPriority:function(n){const e=t.parameters().filter(t=>t.isOptional);return e.length?e.filter(t=>n[t.id]).length/e.length:1e-6},type:"URLMATCHER"};return Object.assign(new Wu(function(n){const e=t.exec(n.path,n.search,n.hash);return t.validates(e)&&e},e),i)}fromState(t,n,e){const i=Bu.isStateDeclaration(t)?t.$$state():t,r={state:i,type:"STATE"};return Object.assign(this.fromUrlMatcher(i.url,t=>{const r=n;r.href(i,t)!==r.href(e.current,e.params)&&r.transitionTo(i,t,{inherit:!0,source:"url"})}),r)}fromRegExp(t,n){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const e=A(n)?t=>n.replace(/\$(\$|\d{1,2})/,(n,e)=>t["$"===e?0:Number(e)]):n,i={regexp:t,type:"REGEXP"};return Object.assign(new Wu(n=>t.exec(n.path),e),i)}}zu.isUrlRule=t=>t&&["type","match","handler"].every(n=>O(t[n]));class Wu{constructor(t,n){this.match=t,this.type="RAW",this.$id=-1,this.mr=void 0,this.handler=n||(t=>t),this.priority=void 0}matchPriority(t){return pt(x(t)),0-this.$id}}function Ju(t,n){let e=function(t,n){return(n.priority||0)-(t.priority||0)}(t,n);return 0!==e?e:(e=((t,n)=>{const e={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(e[t.type]||0)-(e[n.type]||0)})(t,n),0!==e?e:(e=((t,n)=>t.urlMatcher&&n.urlMatcher?Lu.compare(t.urlMatcher,n.urlMatcher):0)(t,n),0!==e?e:((t,n)=>{const e={STATE:!0,URLMATCHER:!0};return e[t.type]&&e[n.type]?0:(t.$id||0)-(n.$id||0)})(t,n)))}class Zu{constructor(t){this.pr=Ju,this.$r=[],this.gr=0,this.wr=t}removeRule(t){Qo(this.$r,t)}rule(t){if(!zu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this.gr++,t.priority=t.priority||0,this.$r.push(t),this.vr=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this.$r}sort(t){const n=this.stableSort(this.$r,this.pr=t||this.pr);let e=0;for(let t=0;t<n.length;t++)n[t].mr=e,t<n.length-1&&0!==this.pr(n[t],n[t+1])&&e++;this.$r=n,this.vr=!0}ensureSorted(){this.vr||this.sort()}stableSort(t,n){const e=t.map((t,n)=>({elem:t,idx:n}));return e.sort((t,e)=>{const i=n(t.elem,e.elem);return 0===i?t.idx-e.idx:i}),e.map(t=>t.elem)}when(t,n,e){const i=this.wr.create(t,n);return O(e&&e.priority)&&(i.priority=e.priority),this.rule(i),i}}class Gu{constructor(t){this.urlServiceConfig=t}fromConfig(t,n,e){return new Hc(t,n,2,this.urlServiceConfig,e)}fromPath(t,n,e){return new Hc(t,n,0,this.urlServiceConfig,e)}fromSearch(t,n,e){return new Hc(t,n,1,this.urlServiceConfig,e)}}class Ku{static $inject=It([Pt.H,Pt.nt,Pt.X,Pt.lt]);$location;constructor(t,n,e,i){this.br=t,this.stateService=n,this.wr=new zu(this,this.stateService,e),this.$r=new Zu(this.wr),this.yr=i,this.kr=new Gu(this.yr),this.Er=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[Pt.H,Pt.G,(t,n)=>(this.$location=t,n.$on("$locationChangeSuccess",t=>{for(let n=0,e=this.Er.length;n<e;n++)this.Er[n](t)}),this.listen(!0),this)];baseHref(){return this.Sr||(this.Sr=wn()||window.location.pathname)}url(t,n){if(O(t)){const n=decodeURIComponent(t);this.$location.setUrl(n)}return n&&this.$location.setState(n),this.$location.getUrl()}onChange(t){return this.Er.push(t),()=>Qo(this.Er,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const{stateService:n}=this,e={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},i=this.match(e);yc([[A,t=>this.url(t)],[Lc.isDef,t=>n.go(t.state,t.params,t.options)],[vc(Lc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,e))}listen(t){return!1===t?(this.Or&&this.Or(),void delete this.Or):this.Or=this.Or||this.onChange(t=>this.sync(t))}match(t){t=Object.assign({path:"",search:{},hash:""},t);const n=this.$r.rules(),e=n=>{const e=n.match(t);return e&&{match:e,rule:n,weight:n.matchPriority(e)}};let i;for(let t=0;t<n.length&&(!i||i.rule.mr===n[t].mr);t++){const r=e(n[t]);i=!i||r&&r.weight>i.weight?r:i}return i}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,n,e){const i=e&&!!e.replace;this.url(t.format(n||{}),i)}href(t,n,e){let i=t.format(n);if(T(i))return null;e=e||{absolute:!1};const r=this.br.html5ModeConf.enabled;if(r||(i=`#${this.br.hashPrefixConf}${i}`),i=function(t,n,e,i){return"/"===i?t:n?i.replace(/\/[^/]*$/,"")+t:e?i.slice(1)+t:t}(i,r,e.absolute,this.baseHref()),!e.absolute||!i)return i;const s=!r&&i?"/":"";return[`${window.location.protocol}//`,window.location.host,s,i].join("")}compile(t,n){const e=this.yr,i=n&&!n.state&&n.params;n=i?Object.assign({state:{params:i}},n):n;const r={strict:e.ri,caseInsensitive:e.ii};return new Lu(t,e.paramTypes,this.kr,Object.assign(r,n))}isMatcher(t){if(!j(t))return!1;let n=!0;return jt(Lu.prototype).forEach(([e,i])=>{N(i)&&(n=n&&O(t[e])&&N(t[e]))}),n}}class Xu{constructor(t){this._r=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,n,e=!0){if(!t&&""!==t)return;const i=A(t);let r=i?t:t.name;this.isRelative(r)&&(r=this.resolvePath(r,n));const s=this._r[r];if(s&&(i||!(i||s!==t&&s.self!==t)))return s;if(i&&e){const t=Object.values(this._r).filter(t=>t.dr.nameGlob?.matches(r));if(t.length>1)throw new Error(`stateMatcher.find: Found multiple matches for ${r} using glob: ${t.map(t=>t.name)}`);return t[0]}}resolvePath(t,n){if(!n)throw new Error(`No reference point given for path '${t}'`);const e=this.find(n),i=t.split("."),r=i.length;let s=0,o=e;for(;s<r;s++)if(""!==i[s]||0!==s){if("^"!==i[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${e.name}'`);o=o.parent}else o=e;const c=i.slice(s).join(".");return o.name+(o.name&&c?".":"")+c}}function Yu(t){return t.self.$$state=()=>t,t.self}function Qu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Yo(t.parent.data,t.data)),t.data}function th(t,n){return function(e){let i=e.self;if(i&&i.url&&i.name&&i.name.match(/\.\*\*$/)){const t={};pc(i,t),t.url+="{remainder:any}",i=t}const{parent:r}=e,s=function(t){if(!A(t))return!1;const n="^"===t.charAt(0);return{val:n?t.substring(1):t,root:n}}(i.url),o=s?t.compile(s.val,{state:i}):i.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${e}'`);return s&&s.root?o:(r&&r.navigable||n()).url.append(o)}}function nh(t){return t.parent?t.parent.path.concat(t):[t]}function eh(t){const n=t.parent?Object.assign({},t.parent.includes):{};return n[t.name]=!0,n}function ih(t){const n=yc([[t=>t.resolveFn,t=>new Fc(oh(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Fc(oh(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Fc(oh(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new Fc(oh(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Fc(oh(t),t=>t,[t.useExisting],t.policy)]]),e=yc([[t=>A(t.val),t=>new Fc(t.token,t=>t,[t.val],t.policy)],[t=>_(t.val),t=>new Fc(t.token,mc(t.val),t.val.slice(0,-1),t.policy)],[t=>N(t.val),t=>new Fc(t.token,t.val,(t=>{const{$injector:n}=window.angular;return t.$inject||n&&On(t,n.strictDi)||"deferred"})(t.val),t.policy)]]),i=yc([[vc(Fc),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!!(t&&t.val&&(A(t.val)||_(t.val)||N(t.val))),e],[bc(!0),t=>{throw new Error(`Invalid resolve value: ${Rc(t)}`)}]]),r=t.resolve;var s,o;return(_(r)?r:(s=r,o=t.resolvePolicy||{},Object.keys(s||{}).map(t=>({token:t,val:s[t],deps:void 0,policy:o[t]})))).map(i)}class rh{constructor(t,n){this.Cr=t,this.jr=void 0;const e=this,i=()=>t.find("");var r,s;this.Ar={name:[t=>t.name],self:[Yu],parent:[function(n){return sh(n)?null:t.find(e.parentName(n))||i()}],data:[Qu],url:[th(n,i)],navigable:[(s=sh,function(t){return!s(t)&&t.url?t:t.parent?t.parent.navigable:null})],params:[(r=n.kr,function(t){const n=t.url&&t.url.parameters({inherit:!1})||[],e=Object.values(sc(ec(t.params||{},n.map(t=>t.id)),(n,e)=>r.fromConfig(e,null,t.self)));return n.concat(e).map(t=>[t.id,t]).reduce(dc,{})})],views:[],path:[nh],includes:[eh],resolvables:[ih]}}builder(t,n){const{Ar:e}=this,i=e[t]||[];return A(t)&&!O(n)?i.length>1?i:i[0]:A(t)&&N(n)?(e[t]=i,e[t].push(n),()=>e[t].splice(e[t].indexOf(n,1))&&null):void 0}build(t){const{Cr:n,Ar:e}=this,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(const n in e){if(!_t(e,n))continue;const i=e[n].reduce((t,n)=>e=>n(e,t),()=>{});t[n]=i(t)}return t}parentName(t){const n=t.name||"",e=n.split(".");if("**"===e.pop()&&e.pop(),e.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${n})`);return e.join(".")}return t.parent?A(t.parent)?t.parent:t.parent.name:""}name(t){const{name:n}=t;if(-1!==n.indexOf(".")||!t.parent)return n;const e=A(t.parent)?t.parent:t.parent.name;return e?`${e}.${n}`:n}}function sh(t){return""===t.name}function oh(t){return t.provide||t.token}class ch{constructor(t,n,e,i,r){this.stateRegistry=t,this.urlServiceRules=n,this.states=e,this.builder=i,this.listeners=r,this.queue=[]}register(t){const n=new Bu(t);if(!A(name))throw new Error("State must have a valid name");if(_t(this.states,n.name)||this.queue.map(t=>t.name).includes(n.name))throw new Error(`State '${n.name}' is already defined`);return this.queue.push(n),this.flush(),n}flush(){const{queue:t,states:n,builder:e}=this,i=[],r=[],s={},o=t=>_t(this.states,t)&&this.states[t],c=()=>{i.length&&this.listeners.forEach(t=>t("registered",i.map(t=>t.self)))};for(;t.length>0;){const u=t.shift(),{name:h}=u,a=e.build(u),l=r.indexOf(u);if(a){const t=o(h);if(t&&t.name===h)throw new Error(`State '${h}' is already defined`);const e=o(`${h}.**`);e&&this.stateRegistry.deregister(e),n[h]=u,this.attachRoute(u),l>=0&&r.splice(l,1),i.push(u);continue}const f=s[h];if(s[h]=t.length,l>=0&&f===t.length)return t.push(u),c(),n;l<0&&r.push(u),t.push(u)}return c(),n}attachRoute(t){if(t.abstract||!t.url)return;const n=this.urlServiceRules;n.rule(n.wr.create(t))}}class uh{static $inject=It([Pt.ft,Pt.nt,Pt.X,Pt.dt]);constructor(t,n,e,i){this.states={},n.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.$r,this.$injector=void 0,this.listeners=[],this.matcher=new Xu(this.states),this.builder=new rh(this.matcher,t),this.builder.builder("views",Yc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new ch(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),i.rootViewContext(this.root()),e.$current=this.root(),e.current=e.$current.self}$get=[Pt.bt,t=>(this.$injector=t,this.builder.jr=t,this)];getStateHookBuilder(t){const n=this;return function(e){const i=e[t],r="onExit"===t?"from":"to";return i?function(t,e){const s=new Kc(t.treeChanges(r)).subContext(e.$$state()),o=Object.assign(hh(s),{$state$:e,$transition$:t});return n.$injector.invoke(i,n,o)}:void 0}}registerRoot(){this.Tr=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this.Tr.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Qo(this.listeners,t)}.bind(this)}root(){return this.Tr}register(t){return this.stateQueue.register(t)}Rr(t){const n=this.getAll().map(t=>t.$$state()),e=t=>{const i=n.filter(n=>-1!==t.indexOf(n.parent));return 0===i.length?i:i.concat(e(i))},i=e([t]),r=[t].concat(i).reverse();return r.forEach(t=>{const n=this.urlServiceRules;n.rules().filter(gc("state",t)).forEach(t=>n.removeRule(t)),delete this.states[t.name]}),r}deregister(t){const n=this.get(t);if(!n)throw new Error(`Can't deregister state; not found: ${t}`);const e=this.Rr(n.$$state());return this.listeners.forEach(t=>t("deregistered",e.map(t=>t.self))),e}getAll(){return Ct(this.states).map(t=>this.states[t].self)}get(t,n){if(0===arguments.length)return Ct(this.states).map(t=>this.states[t].self);const e=this.matcher.find(t,n);return e&&e.self||null}decorator(t,n){return this.builder.builder(t,n)}}const hh=t=>t.getTokens().filter(A).map(n=>{const e=t.getResolvable(n);return[n,"NOWAIT"===t.getPolicy(e).async?e.promise:e.data]}).reduce(dc,{});function ah(t){const n=t.match(/^\s*({[^}]*})\s*$/);n&&(t=`(${n[1]})`);const e=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!e||4!==e.length)throw new Error(`Invalid state ref '${t}'`);return{state:e[1]||null,paramExpr:e[3]||null}}function lh(t){const n=on(t,"$ngView"),e=wc("$cfg.path")(n);return e?mc(e).state.name:void 0}function fh(t,n,e){const i=e.ngState||t.current.name,r=Object.assign(function(t,n){return{relative:lh(t)||n.$current,inherit:!0,source:"sref"}}(n,t),e.ngStateOpts||{}),s=t.href(i,e.ngStateParams,r);return{ngState:i,ngStateParams:e.ngStateParams,ngStateOpts:r,href:s}}function dh(t){const n="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),e="FORM"===t.nodeName;return{attr:e?"action":n?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!e}}function mh(t,n,e,i,r){return function(s){const o=s.which||s.button,c=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.getAttribute("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=setTimeout(function(){t.getAttribute("disabled")||n.go(c.ngState,c.ngStateParams,c.ngStateOpts).then(()=>{r.$emit("$updateBrowser")})});s.preventDefault();let o=e.isAnchor&&!c.href?1:0;s.preventDefault=function(){o--<=0&&clearTimeout(i)}}}}function ph(t,n,e,i){let r=i?i.events:void 0;_(r)||(r=["click"]);for(const n of r)t.addEventListener(n,e);n.$on("$destroy",function(){for(const n of r)t.removeEventListener(n,e)})}function $h(t,n,e){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,r,s,o)=>{const c=dh(r),u=o[1]||o[0];let h=null;const a={},l=()=>fh(i,r,a),f=ah(s.ngSref);function d(){a.ngStateParams=Object.assign({},f.paramExpr&&t.$eval(f.paramExpr));const n=l();h&&h(),u&&(h=u.Mr(n.ngState,n.ngStateParams)),R(n.href)||s.$set(c.attr,n.href)}a.ngState=f.state,a.ngStateOpts=s.ngSrefOpts?t.$eval(s.ngSrefOpts):{},f.paramExpr&&(t.$watch(f.paramExpr,function(t){a.ngStateParams=Object.assign({},t),d()},!0),a.ngStateParams=Object.assign({},t.$eval(f.paramExpr))),d(),t.$on("$destroy",n.onStatesChanged(d)),t.$on("$destroy",e.onSuccess({},d)),c.clickable&&ph(r,t,mh(r,i,c,l,t),a.ngStateOpts)}}}function gh(t,n,e){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link(i,r,s,o){const c=dh(r),u=o[1]||o[0];let h=null;const a={},l=()=>fh(t,r,a),f=["ngState","ngStateParams","ngStateOpts"],d=f.reduce((t,n)=>(t[n]=()=>{},t),{});function m(){const t=l();h&&h(),u&&(h=u.Mr(t.ngState,t.ngStateParams)),R(t.href)||s.$set(c.attr,t.href)}if(f.forEach(t=>{a[t]=s[t]?i.$eval(s[t]):null,s.$observe(t,n=>{d[t](),d[t]=i.$watch(n,n=>{a[t]=n,m()})})}),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",e.onSuccess({},m)),!c.clickable)return;const p=mh(r,t,c,l,i);ph(r,i,p,a.ngStateOpts)}}}function wh(t,n,e,i,r){return{restrict:"A",controller(s,o,c){let u,h=[];const a=e(c.ngSrefActiveEq||"",!1)(s);try{u=s.$eval(c.ngSrefActive)}catch{}function l(t){t.promise.then(p,()=>{})}function f(){d(u)}function d(t){j(t)&&(h=[],jt(t).forEach(([t,n])=>{const e=function(t,n){const e=ah(t);m(e.state,e.paramExpr&&s.$eval(e.paramExpr),n)};A(n)?e(n,t):_(n)&&n.forEach(n=>{e(n,t)})}))}function m(n,e,i){const r={state:t.get(n,lh(o))||{name:n},params:e,activeClass:i};return h.push(r),function(){Qo(h,r)}}function p(){const n=t=>t.split(/\s/).filter(Boolean),e=t=>t.map(t=>t.activeClass).map(n).reduce(uc,[]),i=e(h).concat(n(a)).reduce(ac,[]),r=e(h.filter(n=>t.includes(n.state.name,n.params))),s=h.filter(n=>t.is(n.state.name,n.params)).length?n(a):[],c=r.concat(s).reduce(ac,[]),u=i.filter(t=>!c.includes(t));c.forEach(t=>o.classList.add(t)),u.forEach(t=>o.classList.remove(t))}u=u||e(c.ngSrefActive||"",!1)(s),d(u),this.Mr=function(t,n){if(j(u)&&h.length>0)return;const e=m(t,n,u);return p(),e},s.$on("$destroy",function(){const t=i.onStatesChanged(f),n=r.onStart({},l),e=s.$on("$stateChangeSuccess",p);return function(){t(),n(),e()}}()),n.transition&&l(n.transition),p()}}}function vh(t,n,e,i){const r={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},s={count:0,terminal:!0,priority:400,transclude:"element",compile:(o,c,u)=>function(o,c,h){const a=h.onload||"",l=h.autoscroll,f={enter(t,e,i){xt(t)?n.enter(t,null,e).then(i):(e.after(t),i())},leave(t,e){xt(t)?n.leave(t).then(e):(t.parentElement.removeChild(t),e())}},d=on(c,"$ngView")||r,m=i(h.ngView||h.name||"")(o)||"$default";let p,$,g,w;const v={id:s.count++,name:m,fqn:d.$ngView.fqn?`${d.$ngView.fqn}.${m}`:m,config:null,configUpdated:function(t){(!t||t instanceof tu)&&w!==t&&(Uc.traceUIViewConfigUpdated(v,t&&t.viewDecl&&t.viewDecl.$context),w=t,y(t))},get creationContext(){const t=wc("$cfg.viewDecl.$context")(d),n=wc("$ngView.creationContext")(d);return t||n}};Uc.traceUIViewEvent("Linking",v),Qt(c,"$ngView",{$ngView:v}),y();const b=t.registerUIView(v);function y(t){const n=o.$new(),i=Promise.withResolvers(),r=Promise.withResolvers(),s={$cfg:t,$ngView:v},h={$animEnter:i.promise,$animLeave:r.promise,$$animLeave:r};n.$emit("$viewContentLoading",m),$=u(n,function(t){Qt(t,"$ngViewAnim",h),Qt(t,"$ngView",s),f.enter(t,c,function(){i.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(O(l)&&!l||l&&o.$eval(l))&&e(t)}),function(){if(p&&(Uc.traceUIViewEvent("Removing (previous) el",tn(p,"$ngView")),p.remove(),p=null),g&&(Uc.traceUIViewEvent("Destroying scope",v),g.$destroy(),g=null),$){const t=tn($,"$ngViewAnim");Uc.traceUIViewEvent("Animate out",t),f.leave($,function(){t.$$animLeave.resolve(),p=null}),p=$,$=null}}()}),g=n,g.$emit("$viewContentLoaded",t||w),g.$eval(a)}o.$on("$destroy",function(){Uc.traceUIViewEvent("Destroying/Unregistering",v),b()})}};return s}function bh(t,n,e){const i=wc("viewDecl.controllerAs"),r=wc("viewDecl.resolveAs");return{priority:-400,compile(s){const o=s.innerHTML;return Xt(s,!0),function(s,c){const u=tn(c,"$ngView");if(!u)return c.innerHTML=o,void t(c.contentDocument||c.childNodes)(s);const h=u.$cfg||{viewDecl:{},getTemplate:()=>{}},a=h.path&&new Kc(h.path);c.innerHTML=h.getTemplate(c,a)||o,Uc.traceUIViewFill(u.$ngView,c.innerHTML);const l=t(c.contentDocument||c.childNodes),{controller:f}=h,d=i(h),m=r(h),p=a&&hh(a);if(m&&(s.$target[m]=p),f){const t=n(f,Object.assign({},p,{$scope:s,$element:c}));d&&(s.$target[d]=t,s.$target[d][m]=p),Qt(c,"$ngControllerController",t),Array.from(c.children).forEach(n=>{Qt(n,"$ngControllerController",t)}),function(t,n,e,i){!N(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const r=mc(i.path).state.self,s={bind:n};if(N(n.uiOnParamsChanged)){const o=new Kc(i.path).getResolvable("$transition$").data,c=t=>{if(t===o||-1!==t.exiting().indexOf(r))return;const e=t.params("to"),i=t.params("from"),s=t=>t.paramSchema,c=t.treeChanges("to").map(s).reduce(uc,[]),u=t.treeChanges("from").map(s).reduce(uc,[]),h=c.filter(t=>{const n=u.indexOf(t);return-1===n||!u[n].type.equals(e[t.id],i[t.id])});if(h.length){const i=h.map(t=>t.id),r=ic(e,(t,n)=>-1!==i.indexOf(n));n.uiOnParamsChanged(r,t)}};e.$on("$destroy",t.onSuccess({},c,s))}if(N(n.uiCanExit)){const i=yh++,o="_uiCanExitIds",c=t=>!!t&&(t[o]&&!0===t[o][i]||c(t.redirectedFrom())),u=t=>{let e;const r=t[o]=t[o]||{};return c(t)||(e=Promise.resolve(n.uiCanExit(t)),e.then(t=>r[i]=!1!==t)),e},h={exiting:r.name};e.$on("$destroy",t.onBefore(h,u,s))}}(e,t,s,h)}l(s)}}}}$h.$inject=[Pt.nt,Pt.et,Pt.ht],gh.$inject=[Pt.nt,Pt.et,Pt.ht],wh.$inject=[Pt.nt,Pt.X,Pt.L,Pt.et,Pt.ht],vh.$inject=[Pt.dt,Pt.A,Pt.W,Pt.L],bh.$inject=[Pt.M,Pt.I,Pt.ht];let yh=0;function kh(t){return{scope:!1,link:(n,e,i)=>{const r=i.ngChannel,s=e.childNodes.length>0,o=t.subscribe(r,t=>{s?j(t)&&n.$merge(t):e.innerHTML=A(t)?t:t.toString()});n.$on("$destroy",()=>o())}}}function Eh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngSetter;if(!s)return void n.warn("ng-setter: expression null");const o=t(s).Kt;if(!o)return void n.warn("ng-setter: expression invalid");const c=t=>{o(e,t.trim())},u=new MutationObserver(t=>{let n=!1;for(const e of t)if("childList"===e.type||"characterData"===e.type){n=!0;break}n&&c(i.innerHTML)});u.observe(i,{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",()=>u.disconnect()),c(i.innerHTML)}}}kh.$inject=[Pt.N],Eh.$inject=[Pt.J,Pt.B];class Sh{static $inject=It([Pt.q,Pt.o]);constructor(t,n){this.eventBus=new xh(t.handler),n.$get().$eventBus=this.eventBus}$get=()=>this.eventBus}class xh{constructor(t){this.Pr=Object.create(null),this.Ir=!1,this.$exceptionHandler=t}reset(){this.Pr=Object.create(null),this.Ir=!1}isDisposed(){return this.Ir}dispose(){this.Ir||(this.Ir=!0,this.Pr=Object.create(null))}subscribe(t,n,e=void 0){if(this.Ir)return()=>!1;let i=this.Pr[t];i||(this.Pr[t]=i=[]);const r={fn:n,context:e};return i.push(r),()=>this.unsubscribe(t,n,e)}subscribeOnce(t,n,e=void 0){if(this.Ir)return()=>!1;let i=!1;const r=this.subscribe(t,(...t)=>{i||(i=!0,r(),n.apply(e,t))});return r}unsubscribe(t,n,e=void 0){if(this.Ir)return!1;const i=this.Pr[t];if(!i||0===i.length)return!1;for(let t=0;t<i.length;t++){const r=i[t];if(r.fn===n&&r.context===e)return i.splice(t,1),!0}return!1}getCount(t){const n=this.Pr[t];return n?n.length:0}publish(t,...n){if(this.Ir)return!1;const e=this.Pr[t];if(!e||0===e.length)return!1;const i=e.slice();return queueMicrotask(()=>{for(const{fn:t,context:e}of i)try{t.apply(e,n)}catch(t){this.$exceptionHandler(t)}}),!0}}function Oh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngInject;if(!s)return;const o=s.split(";").map(t=>t.trim()).filter(Boolean);for(const i of o)n.has(i)?e[i]=n.get(i):t.warn(`Injectable ${i} not found in $injector`)}}}function _h(){return{restrict:"A",link(t,n,e){const i=e.ngEl||n.id;t.$target[i]=n;const r=n.parentNode;if(!r)return;const s=new MutationObserver(e=>{for(const r of e)Array.from(r.removedNodes).forEach(e=>{e===n&&(delete t.$target[i],s.disconnect())})});s.observe(r,{childList:!0})}}}Oh.$inject=[Pt.B,Pt.bt];class Ch{constructor(t,n={},e=console){this.Dr=t,this.yr={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},...n},this.B=e,this.Nr=0,this.qr=!1,this.Vr=void 0,this.Ur=null,this.connect()}connect(){this.qr||(this.Ur&&"function"==typeof this.Ur.close&&this.Ur.close(),this.Ur=this.Dr(),this.Fr())}send(t){this.Ur instanceof WebSocket?this.Ur.send(JSON.stringify(t)):this.B.warn("Send is only supported on WebSocket connections")}close(){this.qr=!0,clearTimeout(this.Vr),this.Ur&&this.Ur.close&&this.Ur.close()}Fr(){const t=this.Ur;t instanceof EventSource?(t.addEventListener("open",t=>this.Lr(t)),t.addEventListener("message",t=>this.Hr(t.data,t)),t.addEventListener("error",t=>this.Br(t))):t instanceof WebSocket&&(t.onopen=t=>this.Lr(t),t.onmessage=t=>this.Hr(t.data,t),t.onerror=t=>this.Br(t),t.onclose=()=>this.zr())}Lr(t){this.Nr=0,this.yr.onOpen?.(t),this.Wr()}Hr(t,n){try{t=this.yr.transformMessage?.(t)??t}catch{}this.yr.onMessage?.(t,n),this.Wr()}Br(t){this.yr.onError?.(t),this.Jr()}zr(){this.Jr()}Jr(){this.qr||(this.Nr<this.yr.maxRetries?(this.Nr++,this.yr.onReconnect?.(this.Nr),setTimeout(()=>this.connect(),this.yr.retryDelay)):this.B.warn("StreamConnection: Max retries reached"))}Wr(){this.yr.heartbeatTimeout&&(clearTimeout(this.Vr),this.Vr=setTimeout(()=>{this.B.warn("StreamConnection: heartbeat timeout, reconnecting..."),this.Zr(),this.Nr++,this.yr.onReconnect?.(this.Nr),this.connect()},this.yr.heartbeatTimeout))}Zr(){clearTimeout(this.Vr),this.Ur?.close()}}class jh{constructor(){this.defaults={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[Pt.B,t=>(this.Gr=t,(t,n={})=>{const e={...this.defaults,...n},i=this.#f(t,e.params);return new Ch(()=>new EventSource(i,{withCredentials:!!e.withCredentials}),{...e,onMessage:(t,n)=>{e.onMessage?.(t,n)}},this.Gr)})];#f(t,n){if(!n)return t;const e=jt(n).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&");return t+(t.includes("?")?"&":"?")+e}}function Ah(){return{restrict:"A",link(t,n,e){const i=e.onEnter,r=e.onLeave,s=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting?i&&t.$eval(i):r&&t.$eval(r)})},{root:null,threshold:.1});s.observe(n);const o=n.parentNode;let c;o&&(c=new MutationObserver(t=>{for(const e of t)Array.from(e.removedNodes).forEach(t=>{t===n&&(s.disconnect(),c.disconnect())})}),c.observe(o,{childList:!0})),t.$on("$destroy",()=>{s.disconnect(),c&&c.disconnect()})}}}function Th(){return{async link(t,n,e){t.$target[e.as||"wasm"]=(await Mt(e.src)).exports}}}function Rh(){return{scope:!1,async link(t,n,e){t.$scopename=e.ngScope}}}class Mh{constructor(){this.defaults={}}$get=()=>new Ph(this.defaults)}class Ph{constructor(t){this.Kr=Object.freeze({...t})}get(t){return Un(t,"key"),Nh()[t]||null}getObject(t){Un(t,"key");const n=this.get(t);return n?JSON.parse(n):null}getAll(){return Nh()}put(t,n,e={}){Un(t,"key"),Un(n,"value");const i=encodeURIComponent(t),r=encodeURIComponent(n);document.cookie=`${i}=${r}${function(t={}){const n=[];if(O(t.path)){if(!A(t.path))throw new TypeError(`${Dn}:path ${t.path}`);n.push(`path=${t.path}`)}if(O(t.domain)){if(!A(t.domain))throw new TypeError(`${Dn}:domain ${t.domain}`);n.push(`domain=${t.domain}`)}if(!R(t.expires)){let e;if(t.expires instanceof Date)e=t.expires;else{if(!P(t.expires)&&!A(t.expires))throw new TypeError(`${Dn}:expires ${String(t.expires)}`);e=new Date(t.expires)}if(isNaN(e.getTime()))throw new TypeError(`${Dn}:expires ${String(t.expires)}`);n.push(`expires=${e.toUTCString()}`)}if(t.secure&&n.push("secure"),O(t.samesite)){if(!A(t.samesite))throw new TypeError(`${Dn}:samesite ${t.samesite}`);const e=t.samesite.toLowerCase();if(!["lax","strict","none"].includes(e))throw new TypeError(`${Dn}:samesite ${t.samesite}`);n.push(`samesite=${e}`)}return n.length?`;${n.join(";")}`:""}({...this.Kr,...e})}`}putObject(t,n,e){Un(t,"key"),Vn(n,"value");const i=JSON.stringify(n);this.put(t,i,e)}remove(t,n={}){Un(t,"key"),this.put(t,"",{...this.Kr,...n,expires:new Date(0)})}}let Ih="",Dh=Object.create(null);function Nh(){const t=document.cookie;if(t===Ih)return Dh;Ih=t;const n=Object.create(null);if(!t)return Dh=n,n;const e=t.split("; ");for(const t of e){const e=t.indexOf("=");if(-1===e)continue;const i=decodeURIComponent(t.substring(0,e)),r=decodeURIComponent(t.substring(e+1));n[i]=r}return Dh=n,n}function qh(t,n){const e=encodeURIComponent(String(t));return n?e.replace(/(%3A|%2F|%3F|%23|%5B|%5D|%40|%21|%24|%26|%27|%28|%29|%2A|%2B|%2C|%3B|%3D)/gi,t=>decodeURIComponent(t)):e}class Vh{static $nonscope=!0;constructor(t,n,e,i={}){pt(A(n)&&n.length>0,"baseUrl required"),this.Xr=t,this.Yr=n,this.Qr=e,this.sn=i}buildUrl(t,n){return function(t,n={}){if("string"!=typeof t)throw new TypeError("template must be a string");return t.replace(/\{([^}]+)\}/g,(t,e)=>function(t,n){const e=/^[+#./;?&]/.test(t)?t[0]:"",i=e?t.slice(1):t,r={"":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!1},"+":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!0},"#":{sep:",",prefix:"#",named:!1,ifEmpty:"",allowReserved:!0},".":{sep:".",prefix:".",named:!1,ifEmpty:"",allowReserved:!1},"/":{sep:"/",prefix:"/",named:!1,ifEmpty:"",allowReserved:!1},";":{sep:";",prefix:";",named:!0,ifEmpty:"",allowReserved:!1},"?":{sep:"&",prefix:"?",named:!0,ifEmpty:"=",allowReserved:!1},"&":{sep:"&",prefix:"&",named:!0,ifEmpty:"=",allowReserved:!1}}[e];if(!r)throw new Error(`Unsupported operator: ${e}`);const s=i.split(",").map(t=>t.trim()).filter(Boolean),o=[];for(const t of s){const e=/^([A-Za-z0-9_.]+)(\*|(?::(\d+)))?$/.exec(t);if(!e)throw new Error(`Invalid varspec: ${t}`);const i=e[1],s="*"===e[2],c=e[3]?parseInt(e[3],10):void 0,u=n[i];if(null==u)continue;if(_(u)){if(0===u.length){r.named&&("="===r.ifEmpty?o.push(`${qh(i,r.allowReserved)}${r.ifEmpty}`):o.push(qh(i,r.allowReserved)));continue}if(s)for(const t of u)null!=t&&(r.named?o.push(`${qh(i,r.allowReserved)}=${qh(t,r.allowReserved)}`):o.push(qh(t,r.allowReserved)));else{const t=u.filter(t=>null!=t).map(t=>qh(t,r.allowReserved)).join(",");r.named?""===t?o.push(qh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${qh(i,r.allowReserved)}=${t}`):o.push(t)}continue}if("object"==typeof u){const t=Object.keys(u);if(0===t.length){r.named&&o.push(qh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:""));continue}if(s)for(const n of t){const t=u[n];null!=t&&(r.named,o.push(`${qh(n,r.allowReserved)}=${qh(t,r.allowReserved)}`))}else{const n=t.map(t=>`${qh(t,r.allowReserved)},${qh(u[t],r.allowReserved)}`).join(",");r.named?""===n?o.push(qh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${qh(i,r.allowReserved)}=${n}`):o.push(n)}continue}let h=String(u);"number"==typeof c&&(h=h.substring(0,c)),""!==h?r.named?o.push(`${qh(i,r.allowReserved)}=${qh(h,r.allowReserved)}`):o.push(qh(h,r.allowReserved)):r.named?"="===r.ifEmpty?o.push(`${qh(i,r.allowReserved)}${r.ifEmpty}`):o.push(qh(i,r.allowReserved)):o.push(qh(h,r.allowReserved))}return 0===o.length?"":r.prefix+o.join(r.sep)}(e,n))}(t,n||{})}#d(t){return t&&this.Qr?new this.Qr(t):t}async list(t={}){const n=this.buildUrl(this.Yr,t),e=await this.#m("get",n,null,t);return _(e.data)?e.data.map(t=>this.#d(t)):[]}async read(t,n={}){pt(!R(t),`${Dn}:id ${t}`);const e=this.buildUrl(`${this.Yr}/${t}`,n),i=await this.#m("get",e,null,n);return this.#d(i.data)}async create(t){pt(!R(t),`${Dn}:item ${t}`);const n=await this.#m("post",this.Yr,t);return this.#d(n.data)}async update(t,n){pt(!R(t),`${Dn}:id ${t}`);const e=`${this.Yr}/${t}`;try{const t=await this.#m("put",e,n);return this.#d(t.data)}catch{return null}}async delete(t){pt(!R(t),`${Dn}:id ${t}`);const n=`${this.Yr}/${t}`;try{return await this.#m("delete",n),!0}catch{return!1}}async#m(t,n,e=null,i={}){return this.Xr({method:t,url:n,data:e,params:i,...this.sn})}}class Uh{constructor(){this.ts=[]}rest(t,n,e,i={}){this.ts.push({name:t,url:n,entityClass:e,options:i})}$get=[Pt.U,t=>{const n=new Map,e=(n,e,i={})=>new Vh(t,n,e,i);for(const t of this.ts){const i=e(t.url,t.entityClass,t.options);n.set(t.name,i)}return e}]}function Fh(){return{scope:!1,link:(t,n,e)=>{const i=e.ngListener||n.id,r=n.childNodes.length,s=e=>{const i=e.detail;r?j(i)&&t.$merge(i):A(i)&&(n.innerHTML=i)};n.addEventListener(i,s),t.$on("$destroy",()=>n.removeEventListener(i,s))}}}class Lh{constructor(){this.defaults={protocols:[],autoReconnect:!0,reconnectInterval:1e3,maxRetries:1/0,heartbeatInterval:0,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[Pt.B,t=>(this.Gr=t,(t,n=[],e={})=>{const i={...this.defaults,...e};return i.protocols=n.length?n:i.protocols,new Ch(()=>new WebSocket(t,i.protocols),{...i,onMessage:(t,n)=>{i.onMessage?.(t,n)},onOpen:t=>{i.onOpen?.(t)},onClose:t=>{i.onClose?.(t)},onError:t=>{i.onError?.(t)}},this.Gr)})]}const Hh=bt("ng"),Bh=bt("$injector"),zh="strict-di",Wh={};class Jh extends EventTarget{constructor(t=!1){super(),this.ns=t,this.es=[],this.$eventBus,this.$injector,this.version="0.16.0",this.getController=sn,this.getInjector=fn,this.getScope=nn,this.errorHandlingConfig=vt,this.$t={},Object.values(Pt).forEach(t=>{this.$t[t]=t}),t||(window.angular=this),function(t){t.module("ng",[],[Pt.vt,n=>{n.provider({$$sanitizeUri:Fs}),n.value(Pt.o,t),n.value(Pt.gt,window),n.value(Pt.D,document),n.provider(Pt.M,We).directive({input:Oi,textarea:Oi,form:Qe,script:Ai,select:Ri,option:Mi,ngBind:Pi,ngBindHtml:Di,ngBindTemplate:Ii,ngChannel:kh,ngClass:Fi,ngClassEven:Hi,ngClassOdd:Li,ngCloak:Bi,ngController:zi,ngDelete:fe,ngDisabled:io,ngEl:_h,ngForm:ti,ngGet:le,ngHide:Gi,ngIf:Ki,ngInclude:Xi,ngInject:Oh,ngInit:Qi,ngListener:Fh,ngMessages:zs,ngMessage:Gs,ngMessageExp:Ks,ngMessagesInclude:Zs,ngMessageDefault:Xs,ngNonBindable:tr,ngPost:de,ngPut:me,ngRef:er,ngRepeat:or,ngSetter:Eh,ngShow:Zi,ngStyle:cr,ngSse:pe,ngSwitch:ur,ngSwitchWhen:hr,ngSwitchDefault:ar,ngOptions:pr,ngTransclude:gr,ngModel:hi,pattern:yr,ngPattern:yr,required:br,ngRequired:br,ngMinlength:Er,minlength:Er,ngMaxlength:kr,maxlength:kr,ngValue:ji,ngModelOptions:si,ngViewport:Ah,ngWasm:Th,ngWorker:ge,ngScope:Rh}).directive({input:_i,ngAnimateSwap:Go,ngAnimateChildren:Ko,ngChecked:uo,ngClick:oo,ngDblclick:mo,ngInclude:Yi,ngHide:ao,ngShow:ro,ngMessages:so,ngModel:fo,ngReadonly:lo,ngRequired:co,ngValue:ho,ngSref:$h,ngSrefActive:wh,ngSrefActiveEq:wh,ngState:gh,ngView:vh}).directive({ngView:bh}).directive(vr).directive(Ae),n.provider({$aria:eo,$anchorScroll:Or,$animate:Hr,$$animation:No,$animateCss:jo,p:zo,$:Po,k:Zo,m:Lo,S:Mo,$controller:Se,$cookie:Mh,$exceptionHandler:zr,$filter:ts,$interpolate:is,$http:he,$httpParamSerializer:ie,$location:ls,$log:$s,$parse:As,$$rAFScheduler:qo,$rest:Uh,$rootScope:Is,$router:Cc,$sce:je,$sceDelegate:Ce,$sse:jh,$templateCache:Br,$templateRequest:Us,$urlConfig:xc,$view:nu,$transitions:Tu,$state:Pu,$viewScroll:Iu,$templateFactory:Du,$url:Ku,$stateRegistry:uh,$eventBus:Sh,$websocket:Lh})}]).factory("$stateParams",[Pt.X,t=>t.params]).value("$trace",Uc)}(this)}module(t,n,e){return nt(t,"module"),n&&_t(Wh,t)&&(Wh[t]=null),function(t,n,e){return t[n]||(t[n]=e())}(Wh,t,()=>{if(!n)throw Bh("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new ve(t,n,e)})}bootstrap(t,n,e){if(e=e||{strictDi:!1},(t instanceof Element||t instanceof Document)&&fn(t))throw Hh("btstrpd","App already bootstrapped");_(n)&&(this.es=n),this.es.unshift(["$provide",n=>{n.value("$rootElement",t)}]),this.es.unshift("ng");const i=Hn(this.es,e.strictDi);return i.invoke([Pt.G,Pt.K,Pt.M,Pt.bt,(t,n,e,i)=>{if(this.$rootScope=t,this.$injector=i,Qt(n,"$injector",i),e(n)(t),!_t(i,"strictDi"))try{i.invoke(()=>{})}catch(t){const n=t instanceof Error?t.toString():String(t);i.strictDi=!!/strict mode/.exec(n)}i.get(Pt.et).getAll().map(t=>t.$$state().resolvables).reduce(uc,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=On(t.resolveFn,i.strictDi))}]),i}injector(t,n){return this.$injector=Hn(t,n),this.$injector}init(t){let n,e;const i={};dt.forEach(i=>{const r=`${i}app`;let s;t.hasAttribute&&t.hasAttribute(r)&&(n=t,e=t.getAttribute(r)),!n&&(s=t.querySelector(`[${r.replace(":","\\:")}]`))&&(n=s,e=s.getAttribute(r))}),n&&(i.strictDi=n.hasAttribute(zh)||n.hasAttribute(`data-${zh}`),this.bootstrap(n,e?[e]:[],i))}getScopeByName(t){Un(t,"name");const n=this.$injector.get("$rootScope").$searchByName(t);if(n)return n.$proxy}}const Zh=new Jh;document.addEventListener("DOMContentLoaded",()=>Zh.init(document),{once:!0}),t.angular=Zh});
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const n="ng-valid",e="ng-invalid",i="ng-pristine",r="ng-dirty",s="ng-untouched",o="ng-touched",c="ng-empty",u="ng-not-empty",h=/^((?:x|data)[-])/i,a=/[-]+(.)/g,l={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},f=Symbol("isProxy");function d(t){return!(!t||!t[f])}function m(t){return d(t)?t.$target:t}const p=pt("ng");let $=0;function g(){return $+=1,$}function w(t){return _(t)?t.toLowerCase():t}function v(t){if(O(t)||P(t))return!1;if(k(t)||t instanceof Array||_(t))return!0;const n=t.length;return j(n)&&(n>=0&&n-1 in t||"function"==typeof t.item)}function b(t){return void 0===t}function y(t){return void 0!==t}function k(t){return Array.isArray(t)}function E(t,n){return t instanceof n}function S(t){return null!==t&&"object"==typeof t}function _(t){return"string"==typeof t}function x(t){return null===t}function O(t){return null==t}function C(t){return!O(t)}function j(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function T(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function R(t){return"function"==typeof t}function M(t){return"[object RegExp]"===toString.call(t)}function P(t){return E(t,Window)}function I(t){return t&&t.$watch}function D(t){return"boolean"==typeof t}function N(t){return t&&R(t.then)}function q(t){return _(t)?t.trim():t}function U(t,n){const e=n;return t.replace(/[A-Z]/g,(t,n)=>(n?e:"")+t.toLowerCase())}function V(t,n,e=!1){const i=t.i;for(let i=0,r=n.length;i<r;++i){const r=n[i];if(!S(r)&&!R(r))continue;const s=Et(r);for(let n=0,i=s.length;n<i;n++){const i=s[n],o=r[i];e&&S(o)?A(o)?t[i]=new Date(o.valueOf()):M(o)?t[i]=new RegExp(o):o.nodeName?t[i]=o.cloneNode(!0):"__proto__"!==i&&(S(t[i])||(t[i]=k(o)?[]:{}),V(t[i],[o],!0)):t[i]=o}}var r,s;return r=t,(s=i)?r.i=s:delete r.i,t}function F(t,...n){return V(t,n,!1)}function L(t){return Number.isNaN(t)}function H(t,n){return F(Object.create(t),n)}function B(t){return R(t.toString)&&t.toString!==toString}function z(t){return w(t.nodeName)}function W(t,n){return-1!==Array.prototype.indexOf.call(t,n)}function J(t,n){const e=t.indexOf(n);return e>=0&&t.splice(e,1),e}function Z(t,n){return t===n||Number.isNaN(t)&&Number.isNaN(n)}function G(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;if(k(t)){if(!k(n))return!1;const{length:e}=t;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(!G(t[i],n[i]))return!1;return!0}if(A(t))return!!A(n)&&Z(t.getTime(),n.getTime());if(M(t))return!!M(n)&&t.toString()===n.toString();if(I(t)||I(n)||P(t)||P(n)||k(n)||A(n)||M(n))return!1;const i=Object.create(null);for(const e in t)if("$"!==e.charAt(0)&&!R(t[e])){if(!G(t[e],n[e]))return!1;i[e]=!0}for(const t in n)if(!(t in i)&&"$"!==t.charAt(0)&&y(n[t])&&!R(n[t]))return!1;return!0}function K(t,n){if("hasOwnProperty"===t)throw p("badname","hasOwnProperty is not a valid {0} name",n)}function X(t){if(x(t)||b(t))return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!B(t)||k(t)||A(t)?et(t):t.toString()}return t}function Y(t,n,e){return t.concat(Array.prototype.slice.call(n,e))}function Q(t,n){return Array.prototype.slice.call(t,n)}function tt(t,n){const e=arguments.length>2?Q(arguments,2):[];return!R(n)||n instanceof RegExp?n:e.length?function(){return arguments.length?n.apply(t,Y(e,arguments,0)):n.apply(t,e)}:function(){return arguments.length?n.apply(t,arguments):n.call(t)}}function nt(t,n){let e=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?e=void 0:P(n)?e="$WINDOW":n&&window.document===n?e="$DOCUMENT":I(n)&&(e="$SCOPE"),e}function et(t,n){if(!b(t))return j(n)||(n=n?2:void 0),JSON.stringify(t,nt,n)}function it(t){const n={};return(t||"").split("&").forEach(e=>{let i,r,s;e&&(r=t=e.replace(/\+/g,"%20"),i=e.indexOf("="),-1!==i&&(r=e.substring(0,i),s=e.substring(i+1)),r=st(r),y(r)&&(s=!y(s)||st(s),kt(n,r)?k(n[r])?n[r].push(s):n[r]=[n[r],s]:n[r]=s))}),n}function rt(t){const n=[];return t&&St(t).forEach(([t,e])=>{k(e)?e.forEach(e=>{n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}):n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}),n.length?n.join("&"):""}function st(t){try{return decodeURIComponent(t)}catch{return}}function ot(t){return ct(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(t,n){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,n?"%20":"+")}const ut=["ng-","data-ng-"];function ht(t,n){if(k(t)){const e=n||[];return e.push(...t),e}if(S(t)){const e=n||{};for(const n in t)n.startsWith("$$")||(e[n]=t[n]);return e}return t}function at(t,n="Assertion failed"){if(!t)throw new Error(n)}function lt(t,n,e){if(!t)throw p("areq","Argument '{0}' is {1}",n||"?",e||"required");return t}function ft(t,n,e){return e&&k(t)&&(t=t[t.length-1]),lt(R(t),n,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const dt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function mt(t){var n;return S(t)&&(y(t.objectMaxDepth)&&(dt.objectMaxDepth=j(n=t.objectMaxDepth)&&n>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&D(t.urlErrorParamsEnabled)&&(dt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),dt}function pt(t){return function(...n){const e=n[0],i=n[1];let r=`[${t?`${t}:`:""}${e}] `;const s=Q(n,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(b(t))return"undefined";if("string"!=typeof t){const n=[],e=structuredClone(d(t)?t.$target:t);return JSON.stringify(e,(t,e)=>{const i=nt(t,e);if(S(i)){if(n.indexOf(i)>=0)return"...";n.push(i)}return i})}return t}(t));return r+=i.replace(/\{\d+\}/g,t=>{const n=+t.slice(1,-1);return n<s.length?s[n]:t}),new Error(r)}}function $t(t){const n=t&&t.i;if(n)return"function"==typeof n?t.i():n;const e=typeof t;return"function"===e||"object"===e&&null!==t?(t.i=`${e}:${g()}`,t.i):"undefined"===e?`${e}:${g()}`:`${e}:${t}`}function gt(t,n){return t||n?t?n?(k(t)&&(t=wt(t)),k(n)&&(n=wt(n)),`${t.trim()} ${n.trim()}`.trim()):k(t)?t.join(" ").trim():t:k(n)?n.join(" ").trim():n:""}function wt(t){const n=[];for(const e of t)if(e){const t=e.trim();t&&n.push(t)}return n.join(" ")}function vt(t){return t.replace(h,"").replace(a,(t,n,e)=>e?n.toUpperCase():n)}function bt(t){return function(t,n){if(1!==t.nodeType)return!1;const e=t;return"true"===e.dataset[n]||"true"===e.getAttribute(n)}(t,"animate")}function yt(t){return!t||!Et(t).length}function kt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Et(t){return Object.keys(t)}function St(t){return Object.entries(t)}function _t(t){let n=!1;return(...e)=>{if(n)return t(...e);n=!0}}function xt(t=0){return new Promise(n=>setTimeout(n,t))}function Ot(t,n){return t.slice(0,n.length)===n}async function Ct(t,n={}){const e=await fetch(t);if(!e.ok)throw new Error("fetch failed");try{const{instance:t,module:i}=await WebAssembly.instantiateStreaming(e.clone(),n);return{instance:t,exports:t.exports,module:i}}catch{}const i=await e.arrayBuffer(),{instance:r,module:s}=await WebAssembly.instantiate(i,n);return{instance:r,exports:r.exports,module:s}}const jt={o:"$angular",u:"$attrs",h:"$scope",l:"$element",m:"$$animateCssDriver",p:"$$animateJs",$:"$$animateJsDriver",k:"$$animateQueue",S:"$$animation",_:"$$taskTrackerFactory",O:"$anchorScroll",C:"$animate",j:"$animateCss",A:"$aria",T:"$compile",R:"$cookie",M:"$controller",P:"$document",I:"$eventBus",D:"$exceptionHandler",N:"$filter",q:"$http",U:"$httpParamSerializer",V:"$interpolate",F:"$location",L:"$log",H:"$viewScroll",B:"$parse",W:"$rest",J:"$rootScope",Z:"$rootElement",G:"$router",K:"$sce",X:"$sceDelegate",Y:"$state",tt:"$stateRegistry",nt:"$sse",et:"$$sanitizeUri",it:"$$sanitizeUriProvider",rt:"$templateCache",st:"$templateFactory",ot:"$templateRequest",ct:"$transitions",ut:"$urlConfig",ht:"$url",lt:"$view",ft:"$window",dt:"$websocket",gt:"$provide",wt:"$injector",vt:"$compileProvider",bt:"$animateProvider",yt:"$filterProvider",kt:"$controllerProvider"};function At(t){return t.map(t=>`${t}Provider`)}let Tt=1;const Rt="ng",Mt=new Map,Pt=jt.h,It=/-([a-z])/g,Dt=/_([a-z])/g,Nt=["multiple","selected","checked","disabled","readonly","required","open"],qt=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function Ut(t,n){return n.toUpperCase()}function Vt(t){return t.replace(It,Ut)}function Ft(t){return t.replace(Dt,Ut)}function Lt(t,n){const e=t[Rt],i=e&&Mt.get(e);i&&(n?delete i.data[n]:i.data={},function(t){const n=t[Rt],e=n?Mt.get(n)?.data:void 0;e&&Et(e).length||(Mt.delete(n),t[Rt]=void 0)}(t))}function Ht(t,n=!1){let e=t[Rt],i=e&&Mt.get(e);return n&&!i&&(t[Rt]=e=++Tt,i={data:{}},Mt.set(e,i)),i}function Bt(t){return!/<|&#?\w+;/.test(t)}function zt(t){switch(t.nodeType){case 1:case 9:case 8:case void 0:return!0;default:return!1}}function Wt(t,n){!t||t instanceof Comment||(k(t)?t.forEach(t=>Wt(t,n)):(!n&&zt(t)&&on([t]),zt(t)&&on(t.querySelectorAll("*"))),delete t[Rt],t.innerHTML="")}function Jt(t,n,e){if(!zt(t))return;const i=y(e),r=!i&&n&&!S(n),s=!n,o=Ht(t,!r),c=o&&o.data;if(c)if(i&&"string"==typeof n)c[Vt(n)]=e;else{if(s)return c;if(r&&"string"==typeof n)return c[Vt(n)];if(n&&"object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(c[Vt(t)]=n[t])}}function Zt(t,n,e){if(zt(t)){const i=Ht(t,!0);(i&&i.data)[Vt(n)]=e}else t.parentElement&&Zt(t.parentElement,n,e)}function Gt(t,n){if(zt(t)){const e=Ht(t,!1),i=e&&e.data;if(!n)return;return i&&i[Vt(n)]}}function Kt(t){return Gt(t,Pt)}function Xt(t,n){return Zt(t,Pt,n)}function Yt(t,n){return Zt(t,"$isolateScope",n)}function Qt(t,n){return tn(t,`$${n||"ngController"}Controller`)}function tn(t,n){let e;for(9===t.nodeType&&(t=t.documentElement);t;){if(e=Gt(t,n),y(e))return e;let i=t.parentNode;if(i||11!==t.nodeType||(i=t.host),!i)break;t=i}}function nn(t,n=!1){n||Wt(t);const e=t.parentNode;e&&e.removeChild(t)}function en(t){let n;if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),{firstChild:i}=e.body;if(!i)return"";n=i.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");n=t.cloneNode(!0)}for(;n.firstChild;)n.removeChild(n.firstChild);const e=document.createElement("div");e.appendChild(n);const i=e.innerHTML;try{if(3===n.nodeType)return i.toLowerCase();if(8===n.nodeType)return`\x3c!--${n.data.trim()}--\x3e`;{const t=i.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,n)=>`<${n.toLowerCase()}`)}}catch{return i.toLowerCase()}return i.toLowerCase()}function rn(t){let n=t[0];const e=t[t.length-1];let i;for(let r=1;n!==e;r++){const e=n.nextSibling;if(!e)break;n=e,(i||t[r]!==n)&&(i||(i=Array.prototype.slice.call(t,0,r)),i.push(n))}return i||t}function sn(t,n){const e=n.toLowerCase();return!(!Nt.includes(e)||!qt.includes(t.nodeName))&&e}function on(t){for(let n=0,e=t.length;n<e;n++)Lt(t[n])}function cn(t){return tn(t,jt.wt)}function un(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.firstChild}function hn(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.childNodes}function an(t){switch(Wt(t,!0),t.nodeType){case 1:case 9:case 11:t.replaceChildren()}}function ln(t,n,e){if(e){const t=mn(e);!t||t.parentNode||t.previousSibling||(e=null)}e?e.after(t):n.prepend(t)}function fn(t,n,e){const i=t.style.visibility,r=t.style.position,s=t.style.pointerEvents;Object.assign(t.style,{visibility:"hidden",position:"absolute",pointerEvents:"none"}),ln(t,n,e),requestAnimationFrame(()=>{t.style.visibility=i,t.style.position=r,t.style.pointerEvents=s})}function dn(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}function mn(t){if(!t||!k(t))return t;for(let n=0;n<t.length;n++){const e=t[n];if(1===e.nodeType)return e}}const pn=pt(jt.wt),$n=/^([^(]+?)=>/,gn=/^[^(]*\(\s*([^)]*)\)/m,wn=/^\s*(_?)(\S+?)\1\s*$/,vn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function bn(t){return Function.prototype.toString.call(t)}function yn(t,n,e){let i,r,s=[];if(R(t)){if(s=t.$inject,!s){if(s=[],t.length){if(n)throw pn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",e);i=function(t){const n=bn(t).replace(vn,"");return n.match($n)||n.match(gn)}(t),i&&i[1].split(/,/).forEach(t=>{t.replace(wn,(t,n,e)=>(s.push(e),e))})}t.$inject=s}}else k(t)?(r=t.length-1,ft(t[r],"fn"),s=t.slice(0,r)):ft(t,"fn",!0);return s}const kn=pt(jt.wt),En="Provider",Sn=!0;class _n{constructor(t){this.Et={},this.strictDi=t,this.St=[],this._t={}}get(t){if(kt(this.Et,t)){if(this.Et[t]===Sn)throw kn("cdep","Circular dependency found: {0}",`${t} <- ${this.St.join(" <- ")}`);return this.Et[t]}this.St.unshift(t),this.Et[t]=Sn;try{this.Et[t]=this.factory(t)}catch(n){throw delete this.Et[t],n}return this.Et[t]}xt(t,n,e){const i=[],r=yn(t,this.strictDi,e);for(let t=0,{length:e}=r;t<e;t++){const e=r[t];if("string"!=typeof e)throw kn("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&kt(n,e)?n[e]:this.get(e))}return i}invoke(t,n,e,i){"string"==typeof e&&(i=e,e=void 0);const r=this.xt(t,e,i);return k(t)&&(t=t[t.length-1]),/^class\b/.test(bn(t))?(r.unshift(null),new(Function.prototype.bind.apply(t,r))):t.apply(n,r)}instantiate(t,n,e){const i=k(t)?t[t.length-1]:t,r=this.xt(t,n,e);r.unshift(null);try{return new(Function.prototype.bind.apply(i,r))}catch(t){if("function"!=typeof(s=i)||s.prototype)throw t;return i(r)}var s}factory(t){}}class xn extends _n{constructor(t,n){super(n),this.Et=t}factory(t){throw this.St.push(t),kn("unpr","Unknown provider: {0}",this.St.join(" <- "))}}class On extends _n{loadNewModules=()=>{};constructor(t,n){super(n),this.Ot=t,this._t=t._t}factory(t){const n=this.Ot.get(t+En);return this.invoke(n.$get,n,void 0,t)}has(t){const n=kt(this.Ot.Et,t+En),e=kt(this.Et,t);return n||e}}function Cn(t,n,e,i={}){const r=i.serialize||JSON.stringify,s=i.deserialize||JSON.parse,o=e.getItem(n);return o&&Object.assign(t,s(o)),new Proxy(t,{set:(t,i,s)=>(t[i]=s,e.setItem(n,r(t)),!0),deleteProperty(t,i){const s=delete t[i];return e.setItem(n,r(t)),s}})}function jn(t){if(k(t)&&t.length){const n=t.slice(0,-1),e=t.slice(-1);return!(n.filter(t=>!_(t)).length||e.filter(t=>!R(t)).length)}return R(t)}function An(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}const Tn="badarg",Rn=new Map([[C,"required"],[k,"notarray"],[jn,"notinjectable"],[y,"required"],[_,"notstring"]]);function Mn(t,n,e){if(t(n))return n;let i;try{i=JSON.stringify(n)}catch{i=String(n)}throw new TypeError(`badarg:${function(t){return Rn.get(t)??"fail"}(t)} ${e}=${i}`)}function Pn(t,n){return Mn(C,t,n)}function In(t,n){return Mn(_,t,n)}const Dn=pt(jt.wt),Nn="Provider";function qn(t,n=!1){at(k(t),"modules required");const e=new Map,i={$provide:{provider:Un(u),factory:Un(h),service:Un(function(t,n){return h(t,[jt.wt,t=>t.instantiate(n)])}),value:Un(function(t,n){return i[t+Nn]={$get:()=>n}}),constant:Un(function(t,n){K(t,"constant"),r.Et[t]=n,s.Et[t]=n}),store:function(t,n,e,i){return u(t,{$get:r=>{switch(e){case"session":return Cn(r.instantiate(n),t,sessionStorage);case"local":return Cn(r.instantiate(n),t,localStorage);case"cookie":{const e=r.instantiate(n),s=r.get(jt.R),o=i?.serialize??JSON.stringify,c=i?.deserialize??JSON.parse,u=i?.cookie??{};return Cn(e,t,{getItem(t){const n=s.get(t);return O(n)?null:n},setItem(t,n){s.put(t,n,u)},removeItem(t){s.remove(t,u)},serialize:o,deserialize:c})}case"custom":{const e=r.instantiate(n);let s,o=JSON.stringify,c=JSON.parse;return i?"function"==typeof i.getItem?s=i:S(i)&&(s=i.backend||localStorage,i.serialize&&(o=i.serialize),i.deserialize&&(c=i.deserialize)):s=localStorage,Cn(e,t,s,{serialize:o,deserialize:c})}}}})},decorator:function(t,n){const e=r.get(t+Nn),i=e.$get;e.$get=function(){const t=o.invoke(i,e);return o.invoke(n,null,{$delegate:t})}}}},r=i.$injector=new xn(i,n),s=new On(r,n);i.$injectorProvider={$get:()=>s};let o=s;const c=a(t);return o=s.get(jt.wt),c.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>a(t).forEach(t=>t&&o.invoke(t)),o;function u(t,n){let e;if(K(t,"service"),e=R(n)||k(n)?r.instantiate(n):n,!e.$get)throw Dn("pget","Provider '{0}' must define $get factory method.",t);return i[t+Nn]=e,e}function h(t,n){return u(t,{$get(){const e=o.invoke(n,this);if(b(e))throw Dn("undef","Provider '{0}' must return a value from $get factory method.",t);return e}})}function a(t){Mn(k,t,"modules");let n=[];return t.forEach(t=>{const i=Array.isArray(t)?t[t.length-1]:t;if(!e.get(i)){e.set(i,!0);try{if(_(t)){const e=window.angular.module(t);o._t[t]=e,n=n.concat(a(e.Ct)).concat(e.jt),e.At.concat(e.Tt).forEach(t=>{const n=r.get(t[0]);n[t[1]].apply(n,t[2])})}else R(t)||k(t)?n.push(r.invoke(t)):ft(t,"module")}catch(n){const e=k(t)?t[t.length-1]:t;throw Dn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,E(n,Error)?n.stack||n.message:String(n))}}}),n}}function Un(t){return function(n,e){return S(n)?void St(n).forEach(([n,e])=>{t(n,e)}):t(n,e)}}const Vn=Fn(window.location.href);function Fn(t){if(!_(t))return t;const n=new URL(t,window.location.href),e=n.hostname.includes(":")?`[${n.hostname}]`:n.hostname;return{href:n.href,protocol:n.protocol,host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:e,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:`/${n.pathname}`}}function Ln(t,n){return t=Fn(t),n=Fn(n),t.protocol===n.protocol&&t.host===n.host}function Hn(t){return t.replace(/#$/,"")}const Bn="application/json",zn=200,Wn={"Content-Type":`${Bn};charset=utf-8`},Jn=/^\[|^\{(?!\{)/,Zn={"[":/]$/,"{":/}$/},Gn=/^\)]\}',?\n/,Kn=pt("$http");function Xn(t){return S(t)?A(t)?t.toISOString():et(t):t}function Yn(){this.$get=()=>t=>{if(!t)return"";const n=[];return Et(t).sort().forEach(e=>{const i=t[e];null===i||b(i)||R(i)||(k(i)?i.forEach(t=>{n.push(`${ct(e)}=${ct(Xn(t))}`)}):n.push(`${ct(e)}=${ct(Xn(i))}`))}),n.join("&")}}function Qn(t,n){if(_(t)){const i=t.replace(Gn,"").trim();if(i){const r=n("Content-Type"),s=r&&0===r.indexOf(Bn);if(s||function(t){const n=t.match(Jn);return n&&Zn[n[0]].test(t)}(i))try{t=_(e=i)?JSON.parse(e):e}catch(n){if(!s)return t;throw Kn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,n)}}}var e;return t}function te(t){const n=Object.create(null);let e;function i(t,e){t&&(n[t]=n[t]?`${n[t]}, ${e}`:e)}return _(t)?t.split("\n").forEach(t=>{e=t.indexOf(":"),i(t.substring(0,e).trim().toLowerCase(),q(t.substring(e+1)))}):S(t)&&St(t).forEach(([t,n])=>{i(t.toLowerCase(),q(n))}),n}function ne(t){let n;return function(e){if(n||(n=te(t)),e){let t=n[e.toLowerCase()];return void 0===t&&(t=null),t}return n}}function ee(t,n,e,i){return R(i)?i(t,n,e):(k(i)&&i.forEach(i=>{t=i(t,n,e)}),t)}function ie(t){return t>=zn&&t<300}function re(){const t=this.defaults={transformResponse:[Qn],transformRequest:[function(t){return!S(t)||(n=t,"[object File]"===toString.call(n))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:et(t);var n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ht(Wn),put:ht(Wn),patch:ht(Wn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n},this.interceptors=[],this.xsrfTrustedOrigins=[];const e=this;this.$get=[jt.wt,jt.K,jt.R,function(i,r,s){const o=new Map;t.paramSerializer=_(t.paramSerializer)?i.get(t.paramSerializer):t.paramSerializer;const c=[];e.interceptors.forEach(t=>{c.unshift(_(t)?i.get(t):i.invoke(t))});const u=function(t){const n=[Vn].concat(t.map(Fn));return function(t){const e=Fn(t);return n.some(Ln.bind(null,e))}}(e.xsrfTrustedOrigins);function h(e){if(!S(e))throw pt("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!_(r.valueOf(e.url)))throw pt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",e.url);const a=F({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);var l;a.headers=function(n){let e=t.headers;const i=F({},n.headers);return e=F({},e.common,e[w(n.method)]),Et(e).forEach(t=>{const n=w(t);Et(i).some(t=>w(t)===n)||(i[t]=e[t])}),function(t,n){let e;const i={};return St(t).forEach(([t,r])=>{R(r)?(e=r(n),O(e)||(i[t]=e)):i[t]=r}),i}(i,ht(n))}(e),a.method=_(l=a.method)?l.toUpperCase():l,a.paramSerializer=_(a.paramSerializer)?i.get(a.paramSerializer):a.paramSerializer;const f=[],d=[];let m=Promise.resolve(a);return c.forEach(t=>{(t.request||t.requestError)&&f.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),m=p(m,f),m=m.then(function(e){const{headers:i}=e,c=ee(e.data,ne(i),void 0,e.transformRequest);return b(c)&&Et(i).forEach(t=>{"content-type"===w(t)&&delete i[t]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),function(e,i){const{promise:c,resolve:a,reject:l}=Promise.withResolvers();let f,d;const m=e.headers;let{url:p}=e;if(_(p)||(p=r.valueOf(p)),p=function(t,n){return n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n),t}(p,e.paramSerializer(e.params)),h.pendingRequests.push(e),c.then(v,v),(e.cache||t.cache)&&!1!==e.cache&&"GET"===e.method&&(f=S(e.cache)?e.cache:S(t.cache)?t.cache:o),f&&(d=f.get(p),y(d)?N(d)?d.then(w,w):k(d)?g(d[1],d[0],ht(d[2]),d[3],d[4]):g(d,zn,{},"OK","complete"):f.set(p,c)),b(d)){const r=u(e.url)?s.getAll()[e.xsrfCookieName||t.xsrfCookieName]:void 0;r&&(m[e.xsrfHeaderName||t.xsrfHeaderName]=r),function(t,n,e,i,r,s,o,c,u,h){n=n||Hn(window.location.href);const a=new XMLHttpRequest;let l,f=!1;if(a.open(t,n,!0),r)for(const[t,n]of St(r))y(n)&&a.setRequestHeader(t,n);if(a.onload=()=>{let t=a.status||0;const e=a.statusText||"";0===t&&(t=a.response?zn:"file:"===new URL(n).protocol?404:0),m(t,a.response,a.getAllResponseHeaders(),e,"complete")},a.onerror=()=>m(-1,null,null,"","error"),a.ontimeout=()=>m(-1,null,null,"","timeout"),a.onabort=()=>{m(-1,null,null,"",f?"timeout":"abort")},u)for(const[t,n]of St(u))a.addEventListener(t,n);if(h)for(const[t,n]of St(h))a.upload.addEventListener(t,n);if(o&&(a.withCredentials=!0),c)try{a.responseType=c}catch(t){if("json"!==c)throw t}function d(t){f="timeout"===t,a&&a.abort()}function m(t,n,e,r,s){y(l)&&clearTimeout(l),i(t,n,e,r,s)}a.send(b(e)?null:e),"number"==typeof s&&s>0?l=setTimeout(()=>d("timeout"),s):N(s)&&s.then(()=>{d("abort")})}(e.method,p,i,function(t,e,i,r,s){function o(){g(e,t,i,r,s)}f&&(ie(t)?f.set(p,[t,e,te(i),r,s]):f.delete(p)),n?setTimeout(o):o()},m,e.timeout,e.withCredentials,e.responseType,$(e.eventHandlers),$(e.uploadEventHandlers))}return c;function $(t){if(t){const e={};return St(t).forEach(([t,i])=>{e[t]=function(t){function e(){i(t)}n?setTimeout(()=>e()):e()}}),e}return{}}function g(t,n,i,r,s){(ie(n=n>=-1?n:0)?a:l)({data:t,status:n,headers:ne(i),config:e,statusText:r,xhrStatus:s})}function w(t){g(t.data,t.status,ht(t.headers()),t.statusText,t.xhrStatus)}function v(){const t=h.pendingRequests.indexOf(e);-1!==t&&h.pendingRequests.splice(t,1)}}(e,c).then($,$)}),m=p(m,d),m;function p(t,n){for(let e=0,i=n.length;e<i;){const i=n[e++],r=n[e++];t=t.then(i,r)}return n.length=0,t}function $(t){const n=F({},t);return n.data=ee(t.data,t.headers,t.status,a.transformResponse),ie(t.status)?n:Promise.reject(n)}}return h.pendingRequests=[],["get","delete","head"].forEach(t=>{h[t]=function(n,e){return h(F({},e||{},{method:t,url:n}))}}),["post","put","patch"].forEach(t=>{h[t]=function(n,e,i){return h(F({},i||{},{method:t,url:n,data:e}))}}),h.defaults=t,h}]}function se(t,n){const e=n||`ng${t.charAt(0).toUpperCase()}${t.slice(1)}`,i=function(t,n){return function(e,i,r,s,o,c,u){function h(t){let n=null;if("form"===t.tagName.toLowerCase())n=t;else if("form"in t&&t.form)n=t.form;else if(t.hasAttribute("form")){const e=t.getAttribute("form");if(e){const t=document.getElementById(e);t&&"form"===t.tagName.toLowerCase()&&(n=t)}}if(!n){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(E(t,HTMLInputElement)||E(t,HTMLTextAreaElement)||E(t,HTMLSelectElement))){const n=t.name,{value:e}=t;return{[n]:e}}return{}}const e=new FormData(n),i={};return e.forEach((t,n)=>{i[n]=t}),i}return{restrict:"A",link(a,l,f){const d=f.trigger||le(l),m=l.tagName.toLowerCase();let p;y(f.latch)&&f.$observe("latch",_t(()=>l.dispatchEvent(new Event(d))));let $,g=!1;y(f.interval)&&(l.dispatchEvent(new Event(d)),$=setInterval(()=>l.dispatchEvent(new Event(d)),parseInt(f.interval)||1e3)),l.addEventListener(d,async d=>{if(l.disabled)return;"form"===m&&d.preventDefault();const $=f.swap||"innerHTML",w=f[n];if(!w)return void r.warn(`${n}: no URL specified`);const v=t=>{y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass);const e=t.data;zn<=t.status&&t.status<=299?(y(f.success)&&s(f.success)(a,{$res:e}),y(f.stateSuccess)&&o.go(f.stateSuccess)):400<=t.status&&t.status<=599&&(y(f.error)&&s(f.error)(a,{$res:e}),y(f.stateError)&&o.go(f.stateError)),S(e)?f.target?a.$eval(`${f.target} = ${JSON.stringify(e)}`):a.$merge(e):_(e)&&function(t,e,s,o,c){let h=!1;o.animate&&(h=!0);let a=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;const n=i(t)(s);a=n instanceof DocumentFragment?Array.from(n.childNodes):[n]}const l=o.target,f=l?document.querySelector(l):c;if(f)switch(e){case"outerHTML":{const t=f.parentNode;if(!t)return;const n=document.createDocumentFragment();if(a.forEach(t=>n.appendChild(t)),!h){t.replaceChild(n,f);break}const e=document.createElement("span");e.style.display="none",t.insertBefore(e,f.nextSibling),u.leave(f).done(()=>{const i=Array.from(n.childNodes);for(const n of i)1===n.nodeType?u.enter(n,t,e):t.insertBefore(n,e);p=i,s.$flushQueue()}),s.$flushQueue();break}case"textContent":h?(u.leave(f).done(()=>{f.textContent=t,u.enter(f,f.parentNode),s.$flushQueue()}),s.$flushQueue()):f.textContent=t;break;case"beforebegin":{const t=f.parentNode;if(!t)break;a.forEach(n=>{h&&1===n.nodeType?u.enter(n,t,f):t.insertBefore(n,f)}),h&&s.$flushQueue();break}case"afterbegin":{const{firstChild:t}=f;[...a].reverse().forEach(n=>{h&&1===n.nodeType?u.enter(n,f,t):f.insertBefore(n,t)}),h&&s.$flushQueue();break}case"beforeend":a.forEach(t=>{h&&1===t.nodeType?u.enter(t,f,null):f.appendChild(t)}),h&&s.$flushQueue();break;case"afterend":{const t=f.parentNode;if(!t)break;const{nextSibling:n}=f;[...a].reverse().forEach(e=>{h&&1===e.nodeType?u.enter(e,t,n):t.insertBefore(e,n)}),h&&s.$flushQueue();break}case"delete":h?(u.leave(f).done(()=>{f.remove(),s.$flushQueue()}),s.$flushQueue()):f.remove();break;case"none":break;default:h?p&&3!==p.nodeType?(u.leave(p).done(()=>{p=a[0],u.enter(a[0],f),s.$flushQueue()}),s.$flushQueue()):(p=a[0],3===p.nodeType?f.replaceChildren(...a):(u.enter(a[0],f),s.$flushQueue())):f.replaceChildren(...a)}else r.warn(`${n}: target "${l}" not found`)}(e,$,a,f,l)};if(y(f.delay)&&await xt(0|parseInt(f.delay)),!g)if(y(f.throttle)&&(g=!0,f.$set("throttled",!0),setTimeout(()=>{f.$set("throttled",!1),g=!1},parseInt(f.throttle))),y(f.loading)&&f.$set("loading",!0),y(f.loadingClass)&&f.$addClass(f.loadingClass),"post"===t||"put"===t){let n;const i={};f.enctype?(i.headers={"Content-Type":f.enctype},n=rt(h(l))):n=h(l),e[t](w,n,i).then(v).catch(v)}else if("get"===t&&f.ngSse){const t=w,e={withCredentials:"true"===f.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{r.info(`${n}: SSE connection opened to ${t}`),y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass)},onMessage:t=>{v({status:200,data:t})},onError:t=>{r.error(`${n}: SSE error`,t),v({status:500,data:t})},onReconnect:t=>{r.info(`ngSse: reconnected ${t} time(s)`),f.onReconnect&&s(f.onReconnect)(a,{$count:t})}},i=c(t,e);a.$on("$destroy",()=>{r.info(`${n}: closing SSE connection`),i.close()})}else e[t](w).then(v).catch(v)}),$&&a.$on("$destroy",()=>clearInterval($)),"load"===d&&l.dispatchEvent(new Event("load"))}}}}(t,e);return i.$inject=[jt.q,jt.T,jt.L,jt.B,jt.Y,jt.nt,jt.C],i}const oe=se("get"),ce=se("delete"),ue=se("post"),he=se("put"),ae=se("get","ngSse");function le(t){const n=t.tagName.toLowerCase();return["input","textarea","select"].includes(n)?"change":"form"===n?"submit":"click"}function fe(t,n,e){return{restrict:"A",link(i,r,s){const o=s.ngWorker;if(!o)return void n.warn("ngWorker: missing worker name");const c=s.trigger||le(r);let u,h=!1;y(s.latch)&&s.$observe("latch",_t(()=>r.dispatchEvent(new Event(c)))),y(s.interval)&&(r.dispatchEvent(new Event(c)),u=setInterval(()=>r.dispatchEvent(new Event(c)),parseInt(s.interval)||1e3));const a=de(o,{logger:n,err:e,onMessage:n=>{y(s.dataOnResult)?t(s.dataOnResult)(i,{$result:n}):function(t,n,e){switch(n){case"outerHTML":{const n=e.parentNode;if(!n)return;const i=document.createElement("div");i.innerHTML=t,n.replaceChild(i.firstChild,e);break}case"textContent":e.textContent=t;break;case"beforebegin":e.insertAdjacentHTML("beforebegin",t);break;case"afterbegin":e.insertAdjacentHTML("afterbegin",t);break;case"beforeend":e.insertAdjacentHTML("beforeend",t);break;case"afterend":e.insertAdjacentHTML("afterend",t);break;default:e.innerHTML=t}}(n,s.swap||"innerHTML",r)},onError:e=>{n.error(`[ng-worker:${o}]`,e),y(s.dataOnError)?t(s.dataOnError)(i,{$error:e}):r.textContent="Error"}});r.addEventListener(c,async()=>{if(r.hasAttribute("disabled"))return;if(y(s.delay)&&await xt(parseInt(s.delay)||0),h)return;let t;y(s.throttle)&&(h=!0,s.$set("throttled",!0),setTimeout(()=>{s.$set("throttled",!1),h=!1},parseInt(s.throttle)));try{t=s.params?i.$eval(s.params):void 0}catch(e){n.error("ngWorker: failed to evaluate data-params",e),t=void 0}a.post(t)}),u&&i.$on("$destroy",()=>clearInterval(u)),"load"===c&&r.dispatchEvent(new Event("load"))}}}function de(t,n){if(!t)throw new Error("Worker script path required");const e={autoRestart:!1,autoTerminate:!1,onMessage(){},onError(){},transformMessage(t){try{return JSON.parse(t)}catch{return t}}},i=Object.assign({},e,n);let r=new Worker(t,{type:"module"}),s=!1;const o=function(){s||(i.logger.info("Worker: restarting..."),r.terminate(),r=new Worker(t,{type:"module"}),c(r))},c=t=>{t.onmessage=function(t){let{data:n}=t;try{n=i.transformMessage(n)}catch{}i.onMessage(n,t)},t.onerror=function(t){i.onError(t),i.autoRestart&&o()}};return c(r),{post(t){s&&i.logger.warn("Worker already terminated");try{r.postMessage(t)}catch(t){i.logger.log("Worker post failed",t)}},terminate(){s=!0,r.terminate()},restart(){s&&i.logger.warn("Worker cannot restart after terminate"),o()},config:i}}fe.$inject=[jt.B,jt.L,jt.D];class me{constructor(t,n,e){Mn(_,t,"name"),Mn(k,n,"requires"),this.name=t,this.Ct=n,this.At=[],this.Tt=[],this.jt=[],e&&this.config(e),this.Rt=[],this.Mt=[]}value(t,n){return Mn(_,t,"name"),this.At.push([jt.gt,"value",[t,n]]),this}constant(t,n){return Mn(_,t,"name"),Mn(y,n,"object"),this.At.unshift([jt.gt,"constant",[t,n]]),this}config(t){return Mn(jn,t,"configFn"),this.Tt.push([jt.wt,"invoke",[t]]),this}run(t){return Mn(jn,t,"block"),this.jt.push(t),this}component(t,n){return Mn(_,t,"name"),Mn(y,n,"object"),this.At.push([jt.vt,"component",[t,n]]),this}factory(t,n){return Mn(_,t,"name"),Pn(n,"providerFunction"),this.At.push([jt.gt,"factory",[t,n]]),this}service(t,n){return Mn(_,t,"name"),Pn(n,"serviceFunction"),this.Rt.push(t),this.At.push([jt.gt,"service",[t,n]]),this}provider(t,n){return Mn(_,t,"name"),Pn(n,"providerType"),this.At.push([jt.gt,"provider",[t,n]]),this}decorator(t,n){return Mn(_,t,"name"),Pn(n,"decorFn"),this.Tt.push([jt.gt,"decorator",[t,n]]),this}directive(t,n){return Mn(_,t,"name"),Pn(n,"directiveFactory"),this.At.push([jt.vt,"directive",[t,n]]),this}animation(t,n){return Mn(_,t,"name"),Pn(n,"animationFactory"),this.At.push([jt.bt,"register",[t,n]]),this}filter(t,n){return Mn(_,t,"name"),Mn(R,n,"filterFn"),this.At.push([jt.yt,"register",[t,n]]),this}controller(t,n){return Mn(_,t,"name"),Pn(n,"fictlFnlterFn"),this.At.push([jt.kt,"register",[t,n]]),this}wasm(t,n,e={},i={}){Mn(_,t,"name"),Mn(_,n,"src");const r=!!i.raw;return this.At.push([jt.gt,"provider",[t,class{$get(){return Ct(n,e).then(t=>r?t:t.exports)}}]]),this}worker(t,n,e){return Mn(_,t,"name"),Mn(_,n,"scriptPath"),this.At.push([jt.gt,"provider",[t,class{$get=()=>de(n,e)}]]),this}store(t,n,e,i){return Mn(_,t,"name"),Pn(n,"ctor"),this.At.push([jt.gt,"store",[t,S(n)?()=>n:n,e,i]]),this}rest(t,n,e,i={}){Mn(_,t,"name"),Mn(_,n,"url"),Mn(R,e,"entityClass");const r={name:t,url:n,entityClass:e,options:i};return this.Mt.push(r),this.At.push([jt.gt,"factory",[t,[jt.W,t=>t(n,e,i)]]]),this}sse(t,n,e={}){return Mn(_,t,"name"),Mn(_,n,"url"),this.At.push([jt.gt,"factory",[t,[jt.nt,t=>t(n,e)]]]),this}websocket(t,n,e=[],i={}){return Mn(_,t,"name"),Mn(_,n,"url"),this.At.push([jt.gt,"factory",[t,[jt.dt,t=>t(n,e,i)]]]),this}}class pe{static $nonscope=!0;constructor(t){if(this.Pt=void 0,this.l=void 0,this.It=[],this.Dt=!1,_(t)){const n=un(t);switch(!0){case n instanceof Element:this.element=n;break;case n instanceof Node:this.node=n}}else if(t instanceof NodeList)1===t.length?this.node=t[0]:(this.It=Array.from(t),this.Dt=!0);else if(t instanceof Element)this.element=t;else if(t instanceof Node)this.Pt=t;else{if(!k(t))throw new Error("Invalid element passed to NodeRef");1===t.length?this.node=t[0]:this.nodes=t}}get element(){return this.l}set element(t){this.l=t,this.Dt=!1}get node(){return this.Pt||this.l}set node(t){this.Pt=t,1===t.nodeType?this.l=t:this.l=void 0}set nodes(t){this.It=t,this.Dt=!0}get nodes(){return this.It}get nodelist(){if(0===this.It.length)return[];if(this.It[0].parentElement)return this.It[0].parentElement.childNodes;const t=document.createDocumentFragment();return this.It.forEach(n=>t.appendChild(n)),t.childNodes}get dom(){return this.Dt?this.nodelist:this.node}get size(){return this.Dt?this.It.length:1}Nt(){return this.Dt?this.It[0]:this.l||this.Pt}qt(){return this.Dt?this.It:this.l||this.Pt}Ut(){return this.Dt?Array.from(this.It):[this.l||this.Pt]}Vt(t){return this.Dt?this.It[t]:this.node}Ft(t,n){this.Dt?this.It[t]=n:this.node=n}Lt(){const t=this.Dt?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new pe(t)}Ht(){return void 0!==this.l}}const $e=pt("$controller"),ge=/^(\S+)(\s+as\s+([\w$]+))?$/;function we(t,n){if(_(t)){const n=ge.exec(t);if(n)return n[3]}}class ve{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,n){K(t,"controller"),S(t)?St(t).forEach(([t,n])=>{this.controllers.set(t,n)}):this.controllers.set(t,n)}$get=[jt.wt,t=>(n,e,i,r)=>{let s,o,c,u=r&&_(r)?r:null;if(i=!0===i,_(n)){if(o=n.match(ge),!o)throw $e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",n);if(c=o[1],u=u||o[3],!(n=this.controllers.get(c)))throw $e("ctrlreg","The controller with the name '{0}' is not registered.",c);ft(n,c,!0)}if(i){const i=(k(n)?n[n.length-1]:n).prototype;return s=Object.create(i||null),u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name)),s?.constructor?.$scopename&&(e.$scope.$scopename=s.constructor.$scopename),function(){const i=t.invoke(n,s,e,c);return i!==s&&(S(i)||R(i))&&(s=i,u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name))),s}.bind(this,{instance:s,identifier:u})}return s=t.instantiate(n,e,c),u&&this.addIdentifier(e,u,s,c||n.name),s}];addIdentifier(t,n,e,i){if(!t||!S(t.$scope))throw pt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=e,t.$scope.$controllerIdentifier=n}}const be=pt("$sce"),ye={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl"};function ke(t){if("self"===t)return t;if(_(t)){if(t.indexOf("***")>-1)throw be("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(n=t,n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var n;if(M(t))return new RegExp(`^${t.source}$`);throw be("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ee{constructor(){let t=["self"],n=[];this.trustedResourceUrlList=function(n){return arguments.length&&(t=n.map(ke)),t},this.bannedResourceUrlList=function(t){return arguments.length&&(n=t.map(ke)),n},this.$get=[jt.wt,jt.et,jt.D,function(e,i,r){let s=function(){r(be("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,n){return"self"===t?Ln(n,Vn)||Ln(n,document.baseURI):!!t.exec(n.href)}function c(t){const n=function(t){this.Bt=function(){return t}};return t&&(n.prototype=new t),n.prototype.valueOf=function(){return this.Bt()},n.prototype.toString=function(){return this.Bt().toString()},n}e.has("$sanitize")&&(s=e.get("$sanitize"));const u=c(),h={};return h[ye.HTML]=c(u),h[ye.CSS]=c(u),h[ye.MEDIA_URL]=c(u),h[ye.URL]=c(h[ye.MEDIA_URL]),h[ye.JS]=c(u),h[ye.RESOURCE_URL]=c(h[ye.URL]),{trustAs:function(t,n){const e=y(t)&&kt(h,t)?h[t]:null;return e?null===n||b(n)||""===n?n:"string"!=typeof n?void r(be("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t)):new e(n):void r(be("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,n))},getTrusted:function(e,c){if(null===c||b(c)||""===c)return c;const u=kt(h,e)?h[e]:null;return u&&c instanceof u?c.Bt():(R(c.Bt)&&(c=c.Bt()),e===ye.MEDIA_URL||e===ye.URL?i(c.toString(),e===ye.MEDIA_URL):e===ye.RESOURCE_URL?function(e){const i=Fn(e.toString());let r,s,c=!1;for(r=0,s=t.length;r<s;r++)if(o(t[r],i)){c=!0;break}if(c)for(r=0,s=n.length;r<s;r++)if(o(n[r],i)){c=!1;break}return c}(c)?c:void r(be("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",c.toString())):e===ye.HTML?s():r(be("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof u?t.Bt():t}}}]}}function Se(){let t=!0;this.enabled=function(n){return arguments.length&&(t=!!n),t},this.$get=[jt.B,jt.X,(n,e)=>{const i=ht(ye);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(t,n){return n},i.valueOf=t=>t),i.parseAs=(t,e)=>{const r=n(e);return r.zt&&r.constant?r:n(e,n=>i.getTrusted(t,n))};const r=i.parseAs,{getTrusted:s}=i,{trustAs:o}=i;return St(ye).forEach(([t,n])=>{const e=t.toLowerCase();i[Ft(`parse_as_${e}`)]=function(t){return r(n,t)},i[Ft(`get_trusted_${e}`)]=function(t){return s(n,t)},i[Ft(`trust_as_${e}`)]=function(t){return o(n,t)}}),i}]}const _e={};function xe(t,n,e,i){return{restrict:"A",compile(r,s){const o=t(s[e]);return(t,e)=>{const r=e=>{try{o(t,{$event:e})}catch(t){n(t)}};e.addEventListener(i,r),t.$on("$destroy",()=>e.removeEventListener(i,r))}}}}function Oe(t,n,e,i,r){return{restrict:"A",compile(s,o){const c=t(o[i]);return t=>{const i=e=>{try{c(t,{$event:e})}catch(t){n(t)}};e.addEventListener(r,i),t.$on("$destroy",()=>e.removeEventListener(r,i))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove".split(" ").forEach(t=>{const n=vt(`ng-${t}`);_e[n]=[jt.B,jt.D,(e,i)=>xe(e,i,n,t)]});const Ce=pt("$compile"),je=/^\w/,Ae=document.createElement("div");class Te{static $nonscope=!0;constructor(t,n,e,i,r){if(this.C=t,this.D=n,this.K=e,this.$attr={},r){const t=Object.keys(r),n=this;for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=r[i]}}this.Wt=i}l(){return this.Wt?.Nt()}$normalize=vt;$addClass(t){t&&t.length>0&&(bt(this.l())?this.C.addClass(this.l(),t):this.Wt?.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(bt(this.l())?this.C.removeClass(this.l(),t):this.Wt?.element.classList.remove(t))}$updateClass(t,n){const e=Re(t,n);e&&e.length&&(bt(this.l())?this.C.addClass(this.l(),e):this.Wt?.element.classList.add(...e.trim().split(/\s+/)));const i=Re(n,t);i&&i.length&&(bt(this.l())?this.C.removeClass(this.l(),i):this.Wt?.element.classList.remove(...i.trim().split(/\s+/)))}$set(t,n,e,i){const r=sn(this.l(),t),s=l[t];let o=t;r?(this.l()[t]=n,i=r):s&&(this[s]=n,o=s),this[t]=n,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=U(t,"-"));const c=this.Wt?.node.nodeName.toLowerCase();let u;if("img"===c&&"srcset"===t?this[t]=u=this.sanitizeSrcset(n,"$set('srcset', value)"):u=n,!1!==e){const t=this.l();O(u)?t.removeAttribute(i):je.test(i)?r&&!1===u?t.removeAttribute(i):r?t.toggleAttribute(i,u):t.setAttribute(i,u):this.setSpecialAttr(this.l(),i,u)}const{Jt:h}=this;h&&h[o]&&h[o].forEach(t=>{try{t(u)}catch(t){this.D(t)}})}$observe(t,n){const e=this.Jt||(this.Jt=Object.create(null)),i=e[t]||(e[t]=[]);return i.push(n),i.$$inter||!kt(this,t)||b(this[t])||n(this[t]),function(){J(i,n)}}setSpecialAttr(t,n,e){Ae.innerHTML=`<span ${n}>`;const{attributes:i}=Ae.firstChild,r=i[0];i.removeNamedItem(r.name),r.value=e??"",t.attributes.setNamedItem(r)}sanitizeSrcset(t,n){let e;if(!t)return t;if(!_(t))throw Ce("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',n,t.toString());let i="";const r=q(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(s),c=Math.floor(o.length/2);for(e=0;e<c;e++){const t=2*e;i+=this.K.getTrustedMediaUrl(q(o[t])),i+=` ${q(o[t+1])}`}const u=q(o[2*e]).split(/\s/);return i+=this.K.getTrustedMediaUrl(q(u[0])),2===u.length&&(i+=` ${q(u[1])}`),i.replace(/unsafe:unsafe/g,"unsafe")}}function Re(t,n){const e=new Set(t.split(/\s+/)),i=new Set(n.split(/\s+/));return Array.from(e).filter(t=>!i.has(t)).join(" ")}function Me(t,n){return{restrict:"A",compile:()=>(e,i)=>{""===n&&(n=t);const r=Vt(n);e[r]||(e[r]=i.getAttribute(t));const s=new MutationObserver(n=>{const i=n[0].target.getAttribute(t);e[r]!==i&&(e[r]=i)});s.observe(i,{attributes:!0,attributeFilter:[t]}),e.$on("$destroy",()=>{s.disconnect()})}}}const Pe=pt("$compile"),Ie=["ngIf","ngRepeat"],De=["ngSrc","ngSrcset","src","srcset"],Ne=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,qe=/^(on[a-z]+|formaction)$/,Ue=t=>()=>t,Ve="Directive";class Fe{static $inject=[jt.gt,jt.it];constructor(t,n){const e={},i=Object.create(null);function r(t,n,e){const r=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,s=Object.create(null);return St(t).forEach(([t,o])=>{if((o=o.trim())in i)return void(s[t]=i[o]);const c=o.match(r);if(!c)throw Pe("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",n,t,o,e?"controller bindings definition":"isolate scope definition");s[t]={mode:c[1][0],collection:"*"===c[2],optional:"?"===c[3],attrName:c[4]||t},c[4]&&(i[o]=s[t])}),s}function s(t,n){const e={isolateScope:null,bindToController:null};if(S(t.scope)&&(!0===t.bindToController?(e.bindToController=r(t.scope,n,!0),e.isolateScope={}):e.isolateScope=r(t.scope,n,!1)),S(t.bindToController)&&(e.bindToController=r(t.bindToController,n,!0)),e.bindToController&&!t.controller)throw Pe("noctrl","Cannot bind to controller without directive '{0}'s controller.",n);return e}function o(t){const n=t.require||t.controller&&t.name;if(!k(n)&&S(n)){const t=St(n);for(let e=0,i=t.length;e<i;e++){const[i,r]=t[e],s=r.match(Ne);s&&(r.substring(s[0].length)||(n[i]=s[0]+i))}}return n}function c(t,n){if(t&&(!_(t)||!/[EA]/.test(t)))throw Pe("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,n);return t||"EA"}this.directive=function n(i,r){return lt(i,"name"),K(i,"directive"),_(i)?(function(t){const n=t.charAt(0);if(!n||n!==n.toLowerCase())throw Pe("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Pe("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),lt(r,"directiveFactory"),kt(e,i)||(e[i]=[],t.factory(i+Ve,[jt.wt,jt.D,function(t,n){const r=[];for(let s=0,u=e[i].length;s<u;s++){const u=e[i][s];try{let n=t.invoke(u);R(n)?n={compile:Ue(n)}:!n.compile&&n.link&&(n.compile=Ue(n.link)),n.priority=n.priority||0,n.index=s,n.name=n.name||i,n.require=o(n),n.restrict=c(n.restrict,i),r.push(n)}catch(t){n(t)}}return r}])),e[i].push(r)):St(i).forEach(([t,e])=>n(t,e)),this},this.component=function(t,n){if(!_(t))return St(t).forEach(([t,n])=>this.component(t,n)),this;const e=n.controller||function(){};function i(t){function i(n){return R(n)||k(n)?function(e,i){return t.invoke(n,this,{$element:e,$attrs:i})}:n}const r=n.template||n.templateUrl?n.template:"",s={controller:e,controllerAs:we(n.controller)||n.controllerAs||"$ctrl",template:i(r),templateUrl:i(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return St(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(s[t]=n)}),s}return St(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(i[t]=n,R(e)&&(e[t]=n))}),i.$inject=[jt.wt],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(t){if(!y(t))return n.aHrefSanitizationTrustedUrlList();n.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!y(t))return n.imgSrcSanitizationTrustedUrlList();n.imgSrcSanitizationTrustedUrlList(t)};let u=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(u=t,this):u};const a=Object.create(null);this.addPropertySecurityContext=function(t,n,e){const i=`${t.toLowerCase()}|${n.toLowerCase()}`;if(i in a&&a[i]!==e)throw Pe("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,n,a[i],e);return a[i]=e,this},function(){function t(t,n){n.forEach(n=>{a[n.toLowerCase()]=t})}t(ye.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(ye.CSS,["*|style"]),t(ye.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(ye.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(ye.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=[jt.wt,jt.V,jt.D,jt.ot,jt.B,jt.M,jt.K,jt.C,function(t,n,i,r,o,c,l,f){let d;function p(){for(let t=0,n=d.length;t<n;++t)try{d[t]()}catch(t){i(t)}d=void 0}const $=n.startSymbol(),g=n.endSymbol(),w="{{"===$&&"}}"===g?t=>t:t=>t.replace(/\{\{/g,$).replace(/}}/g,g),v=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return E;function E(t,n,e,i,r){let s=new pe(t),o=x(s,n,e,i,r),c=null;return function(t,n,e){if(!s)throw Pe("multilink","This element has already been linked.");lt(t,"scope"),s.l&&Xt(s.l,t),r&&r.needsNewScope&&(t=t.$parent.$new()),e=e||{};let{Zt:i}=e;const{transcludeControllers:u,Gt:h}=e;let a;if(i&&i.Kt&&(i=i.Kt),c||(c=function(t){const n=t;return n&&"foreignobject"!==z(n)&&toString.call(n).match(/SVG/)?"svg":"html"}(h)),"html"!==c){const t=un("<div></div>");t.append(s.node);const n=W(c,t.innerHTML);a=new pe(n[0])}else a=n?s.Lt():s;if(u)for(const t in u)lt(a.element,"element"),Zt(a.element,`$${t}Controller`,u[t].instance);return n&&n(a.dom,t),o&&o(t,a,i),n||(s=o=null),a.qt()}}function x(t,n,e,r,s){const o=[];let c,u=!1;for(let h=0;h<t.size;h++){const a=new Te(f,i,l),d=C(t.Vt(h),a,0===h?e:void 0,r);let m,p;d.length&&(m=A(d,t.Vt(h),a,n,null,[],[],Object.assign({},s,{index:h,parentNodeRef:t,ctxNodeRef:t})));const $=m?.nodeLinkFn,{childNodes:g}=t.Vt(h);if($&&m.terminal||!g||!g.length)p=null;else{const t=$?(m.transcludeOnThisElement||!m.templateOnThisElement)&&m.transclude:n;p=x(new pe(g),t)}($||p)&&(o.push({index:h,nodeLinkFnCtx:m,childLinkFn:p}),u=!0,c=c||$),s=null}return u?function(e,i,r){lt(i,"nodeRef");let s=[];if(c){const n=i.Dt?i.nodes.length:1;s=new Array(n),o.forEach(n=>{const e=n.index;0===e?s[e]=i.Dt?i.nodes[e]:i.node:t.Vt(e)&&(s[e]=i.nodes[e])})}else i.Dt?i.nodes.forEach(t=>s.push(t)):s.push(i.node);o.forEach(({index:t,nodeLinkFnCtx:i,childLinkFn:o})=>{const c=s[t];let u,h;c.stable=!0,i?.nodeLinkFn?(u=i.newScope?e.$new():e,h=i.transcludeOnThisElement?O(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&n?O(e,n):null,i?.newScope&&Xt(c,u),i.nodeLinkFn(o,u,c,h)):o&&o(e,new pe(c.childNodes),r)})}:null}function O(t,n,e){function i(i,r,s,o,c){return i||(i=t.$transcluded(c)),n(i,r,{Zt:e,transcludeControllers:s,Gt:o})}const r=i.Xt=Object.create(null);for(const i in n.Xt)n.Xt[i]?r[i]=O(t,n.Xt[i],e):r[i]=null;return i}function C(t,e,r,s){const c=[],{nodeType:u}=t,a=e.$attr;let l;switch(u){case 1:l=t.nodeName.toLowerCase(),s!==vt(l)&&N(c,vt(l),"E",r);for(let n=0;n<t.attributes?.length;n++){let u=!1,l=!1,f=!1,d=!1,m=!1;const p=t.attributes[n];let{name:$}=p;const{value:g}=p;let w=vt($.toLowerCase());const b=w.match(v);b&&(u="Attr"===b[1],l="Prop"===b[1],f="On"===b[1],d="Observe"===b[1],m="Window"===b[1],$=$.replace(h,"").toLowerCase().substring(4+b[1].length).replace(/_(.)/g,(t,n)=>n.toUpperCase())),l||f||m?(e[w]=g,a[w]=p.name,l?J(t,c,w,$):f?c.push(xe(o,i,w,$)):c.push(Oe(o,i,window,w,$))):d?c.push(Me($,g)):(w=vt($.toLowerCase()),a[w]=$,!u&&kt(e,w)||(e[w]=g,sn(t,w)&&(e[w]=!0)),K(t,c,g,w,u),w!==s&&N(c,w,"A",r))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case 3:!function(t,e){const i=n(e,!0);i&&t.push({priority:0,compile:()=>(t,n)=>{i.expressions.forEach(e=>{t.$watch(e,()=>{const e=i(m(t));1===n.nodeType?n.innerHTML=e:n.nodeValue=e})})}})}(c,t.nodeValue)}return c.sort(L),c}function j(t,n,e,i,r,s){let o;return t?E(n,e,i,r,s):function(){return o||(o=E(n,e,i,r,s),n=e=s=null),o.apply(this,arguments)}}function A(t,n,e,r,s,o,u,h){h=h||{};let a=-Number.MAX_VALUE,d=!1,{Yt:m,Qt:p,tn:$,nn:g,en:v,hasElementTranscludeDirective:y}=h;const{ctxNodeRef:E,parentNodeRef:x}=h;let O=!1,A=!1,T=new pe(n);const{index:D}=h;let N,L,H;e.Wt=T;let J,Z=s,G=r,K=!1,Q=!1,et=function(t,s,h,a){let d,g,w,v,E,_,x,O,C=s;if(n===h?(x=e,_=e.Wt):(_=new pe(h),x=new Te(f,i,l,_,e)),v=s,$?w=s.$newIsolate():m&&(v=s.$parent),a){const t=function(t,n,e,i){let r;if(I(t)||(i=e,e=n,n=t,t=void 0),y&&(r=E),e||(e=y?_.node.parentElement:_.node),i){const s=a.Xt[i];if(s)return s(t,n,r,e,C);if(b(s))throw Pe("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,en(_.element));return}return a(t,n,r,e,C)};t.Kt=a,t.isSlotFilled=function(t){return!!a.Xt[t]},r=t}p&&(E=function(t,n,e,i,r,s,o){const u=Object.create(null);for(const h in i){const a=i[h],l={$scope:a===o||a.$$isolateScope?r:s,$element:t.node,$attrs:n,$transclude:e};let{controller:f}=a;"@"===f&&(f=n[a.name]);const d=c(f,l,!0,a.controllerAs);u[a.name]=d,t.Ht()&&Zt(t.element,`$${a.name}Controller`,d.instance)}return u}(_,x,r,p,w,s,$)),$&&(w.$target.rn=$.rn,O=nt(s,x,w,w.rn,$),O.removeWatches&&w.$on("$destroy",O.removeWatches));for(const t in E){const n=p[t],e=E[t],i=n.sn.bindToController,r=e();e.instance=v.$new(r),Zt(_.node,`$${n.name}Controller`,e.instance),e.bindingInfo=nt(v,x,e.instance,i,n)}for(p&&St(p).forEach(([t,n])=>{const{require:e}=n;n.bindToController&&!k(e)&&S(e)&&F(E[t].instance,M(t,e,_.element,E))}),E&&Object.values(E).forEach(t=>{const n=t.instance;if(R(n.$onChanges))try{n.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if(R(n.$onInit))try{n.$target.$onInit()}catch(t){i(t)}R(n.$onDestroy)&&v.$on("$destroy",()=>{n.$onDestroy()})}),d=0,g=o.length;d<g;d++){const t=o[d],n=t.require&&M(t.directiveName,t.require,_.element,E);try{t(t.isolateScope?w:s,_.node,x,n,r)}catch(t){i(t)}}for($&&($.template||null===$.templateUrl)&&(C=w),t&&h&&h.childNodes&&h.childNodes.length&&t(C,new pe(h.childNodes),a),d=u.length-1;d>=0;d--){const t=u[d],n=t.require&&M(t.directiveName,t.require,_.node,E);try{t.isolateScope&&Yt(_.element,w),t(t.isolateScope?w:s,_.node,x,n,r)}catch(t){i(t)}}E&&Object.values(E).forEach(t=>{const n=t.instance;R(n.$postLink)&&n.$postLink()})};for(let s=0,c=t.length;s<c&&(N=t[s],!(a>N.priority));s++){J=N.scope,J&&(N.templateUrl||(S(J)?(B("new/isolated scope",$||m,N,T),$=N):B("new/isolated scope",$,N,T)),m=m||N),L=N.name;const l=N.replace&&(N.templateUrl||N.template),f=N.transclude&&!Ie.includes(N.name);if(!K&&(l||f)){let n;for(let e=s+1;n=t[e++];)if(n.transclude&&!Ie.includes(n.name)||n.replace&&(n.templateUrl||n.template)){Q=!0;break}K=!0}if(!N.templateUrl&&N.controller&&(p=p||Object.create(null),B(`'${L}' controller`,p[L],N,T),p[L]=N),J=N.transclude,J)if(O=!0,Ie.includes(N.name)||(B("transclusion",v,N,T),v=N),"element"===J)y=!0,a=N.priority,H=T,T=new pe(document.createComment("")),e.Wt=T,n=T.node,E.node=n,X(new pe(H.l),n,D),G=j(Q,H.l,r,a,Z&&Z.name,{en:v});else{const t=Object.create(null);let e;if(S(J)){e=document.createDocumentFragment();const n=Object.create(null),i=Object.create(null);St(J).forEach(([e,r])=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,n[r]=e,t[e]=null,i[e]=s}),T.element.childNodes.forEach(r=>{const s=n[vt(z(r))];s?(i[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):e.appendChild(r)}),St(i).forEach(([t,n])=>{if(!n)throw Pe("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const n in t)if(t[n]){const e=t[n].childNodes;t[n]=j(Q,e,r)}e=e.childNodes}else e=n.cloneNode(!0).childNodes;an(n),G=j(Q,e,r,void 0,void 0,{needsNewScope:N.$$isolateScope||N.$$newScope}),G.Xt=t}if(N.template)if(A=!0,B("template",g,N,T),g=N,J=R(N.template)?N.template(T.node,e):N.template,J=w(J),N.replace){if(Z=N,H=Bt(J)?[]:Le(W(N.templateNamespace,q(J))),_(H)&&(H=Array.from(hn(H)).filter(t=>1===t.nodeType)),n=H[0],1!==H.length||1!==n.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",L,"");X(T,n),x&&x.Ft(D,n);const i={$attr:{}},r=C(n,i),o=t.splice(s+1,t.length-(s+1));($||m)&&P(r,$,m),t=t.concat(r).concat(o),U(e,i),c=t.length}else T.Ht()&&(T.element.innerHTML=J);if(N.templateUrl)A=!0,B("template",g,N,T),g=N,N.replace&&(Z=N),et=V(t.splice(s,t.length-s),T,e,n,O&&G,o,u,{index:D,Qt:p,Yt:m!==N&&m,tn:$,nn:g,en:v,Gt:h.Gt}),c=t.length;else if(N.compile)try{const t=N.compile(T.Nt(),e,G),n=N.$$originalDirective||N;R(t)?it(null,tt(n,t)):t&&it(tt(n,t.pre),tt(n,t.post))}catch(t){i(t)}N.terminal&&(d=!0,a=Math.max(a,N.priority))}return h.hasElementTranscludeDirective=y,{nodeLinkFn:et,terminal:d,transclude:G,transcludeOnThisElement:O,templateOnThisElement:A,newScope:m&&!0===m.scope};function it(t,n){t&&(t.require=N.require,t.directiveName=L,($===N||N.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),o.push(t)),n&&(n.require=N.require,n.directiveName=L,($===N||N.$$isolateScope)&&(n=Y(n,{isolateScope:!0})),u.push(n))}}function M(t,n,e,i){let r;if(_(n)){const s=n.match(Ne),o=n.substring(s[0].length),c=s[1]||s[3],u="?"===s[2];if("^^"===c?e=e.parentElement?e.parentElement:void 0:(r=i&&i[o],r=r&&r.instance),!r){const t=`$${o}Controller`;r="^^"===c&&e&&9===e.nodeType?null:e?c?tn(e,t):Gt(e,t):void 0}if(!r&&!u)throw Pe("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(k(n)){r=[];for(let s=0,o=n.length;s<o;s++)r[s]=M(t,n[s],e,i)}else S(n)&&(r={},St(n).forEach(([n,s])=>{r[n]=M(t,s,e,i)}));return r||null}function P(t,n,e){for(let i=0,r=t.length;i<r;i++)t[i]=H(t[i],{$$isolateScope:n,$$newScope:e})}function N(n,i,r,o){let c=!1;if(kt(e,i))for(let e,u=t.get(i+Ve),h=0,a=u.length;h<a;h++)if(e=u[h],(b(o)||o>e.priority)&&-1!==e.restrict.indexOf(r)){if(!e.sn){const t=e.sn=s(e,e.name);S(t.isolateScope)&&(e.rn=t.isolateScope)}n.push(e),c=e}return c}function U(t,n){const e=n.$attr,i=t.$attr;St(t).forEach(([i,r])=>{"$"!==i[0]&&"_"!==i[0]&&(n[i]&&n[i]!==r&&(r.length?r+=("style"===i?";":" ")+n[i]:r=n[i]),t.$set(i,r,!0,e[i]))}),St(n).forEach(([n,r])=>{kt(t,n)||"$"===n.charAt(0)||(t[n]=r,"class"!==n&&"style"!==n&&(i[n]=e[n]))})}function V(t,n,e,s,o,c,u,h){let a,l,f,d=[];const m=n.Nt(),p=t.shift(),$=H(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p});let g;g=R(p.templateUrl)?p.templateUrl(n.element,e):p.templateUrl;const{templateNamespace:v}=p;return an(n.element),r(g).then(i=>{let r,b,y,k;if(i=w(i),p.replace){if(y=Bt(i)?[]:_(i)?Array.from(hn(i)).filter(t=>8!==t.nodeType&&3!==t.nodeType):Le(W(v,q(i))),r=y[0],1!==y.length||1!==r.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,g);b={$attr:{}},X(n,r,h.index);const s=C(r,b);S(p.scope)&&P(s,!0),t=s.concat(t),U(e,b)}else r=m,n.element.innerHTML=i;for(t.unshift($),f=A(t,r,e,o,p,c,u,{...h,ctxNodeRef:n}),a=f?.nodeLinkFn,s&&St(s).forEach(([t,e])=>{e===r&&(s[t]=n)}),l=x(new pe(n.Nt().childNodes),o);d.length;){const t=d.shift(),e=d.shift(),i=d.shift();let s=n.Nt();if(!t.cn){if(e!==m){const t=e.className;h.hasElementTranscludeDirective&&p.replace||(s=r.cloneNode(!0),e.appendChild(s));try{""!==t&&n.element.classList.forEach(t=>e.classList.add(t))}catch{}}k=f.transcludeOnThisElement?O(t,f.transclude,i):i,a(l,t,s,k)}}d=null}).catch(t=>{T(t)?i(t):i(new Error(t))}),function(t,n,e,i,r){let s=r;n.cn||(d?d.push(n,e,i):(a.transcludeOnThisElement&&(s=O(n,a.transclude,r)),a(l,n,e,i,s)))}}function L(t,n){const e=n.priority-t.priority;return 0!==e?e:t.name!==n.name?t.name<n.name?-1:1:t.index-n.index}function B(t,n,e,i){if(n)throw Pe("multidir","Multiple directives [{0}, {1}] asking for {3} on: {4}",n.name,e.name,t,en(i.Nt()))}function W(t,n){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const e=document.createElement("div");return e.innerHTML=`<${t}>${n}</${t}>`,e.childNodes[0].childNodes}default:return n}}function J(t,n,e,i){if(qe.test(i))throw Pe("nodomevents","Property bindings for HTML DOM event properties are disallowed");const r=z(t),s=function(t,n){const e=n.toLowerCase();return a[`${t}|${e}`]||a[`*|${e}`]}(r,i);let c=t=>t;"srcset"!==i||"img"!==r&&"source"!==r?s&&(c=l.getTrusted.bind(l,s)):c=t=>function(t){if(!t)return t;if(!_(t))throw Pe("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',"ng-prop-srcset",t.toString());let n="";const e=q(t),i=/\s/.test(e)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=e.split(i),s=Math.floor(r.length/2);let o;for(o=0;o<s;o++){const t=2*o;n+=l.getTrustedMediaUrl(q(r[t])),n+=` ${q(r[t+1])}`}const c=q(r[2*o]).split(/\s/);return n+=l.getTrustedMediaUrl(q(c[0])),2===c.length&&(n+=` ${q(c[1])}`),n}(l.valueOf(t)),n.push({priority:100,compile:function(t,n){const r=o(n[e]);return{pre:function(t,s){function o(){const n=r(t);s[i]=c(n)}o(),t.$watch(i,o),t.$watch(n[e],t=>{l.valueOf(t),o()})}}}})}function K(t,e,i,r,s){const o=z(t),c=function(t,n){return"srcdoc"===n?l.HTML:"src"===n||"ngSrc"===n?-1===["img","video","audio","source","track"].indexOf(t)?l.RESOURCE_URL:l.MEDIA_URL:"xlinkHref"===n?"image"===t?l.MEDIA_URL:"a"===t?l.URL:l.RESOURCE_URL:"form"===t&&"action"===n||"base"===t&&"href"===n||"link"===t&&"href"===n?l.RESOURCE_URL:"a"!==t||"href"!==n&&"ngHref"!==n?void 0:l.URL}(o,r),u=!s,h=De.includes(r)||s;let a=n(i,u,c,h);if(a){if("multiple"===r&&"select"===o)throw Pe("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",en(t.outerHTML));if(qe.test(r))throw Pe("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:()=>({pre:function(t,e,s){const o=s.Jt||(s.Jt=Object.create(null)),u=s[r];u!==i&&(a=u&&n(u,!0,c,h),i=u),a&&(s[r]=a(t),(o[r]||(o[r]=[])).$$inter=!0,a.expressions.forEach(n=>{(s.Jt&&s.Jt[r].h||t).$watch(n,()=>{const n=a(t);"class"===r?s.$updateClass(n,s.l().classList.value):s.$set(r,"srcset"===r?l.getTrustedMediaUrl(n):n)})}),0===a.expressions.length&&s.$set(r,"srcset"===r?l.getTrustedMediaUrl(u):u))}})})}}function X(t,n,e){const i=t.Nt().parentNode;if(i)if(y(e)){const t=i.childNodes[e];t&&i.replaceChild(n,t)}else i.insertBefore(n,i.firstChild);const r=document.createDocumentFragment();t.Ut().forEach(t=>{r.appendChild(t)}),t.node=n}function Y(t,n){return F(function(){return t.apply(null,arguments)},t,n)}function Q(t,n){if(u)throw Pe("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,n)}function nt(t,e,i,r,s){const c=[],u={};let h;function a(n,e,r){R(i.$onChanges)&&(d||(t.$postUpdate(p),d=[]),h||(h={},d.push(l)),h[n]={currentValue:e,firstChange:r})}function l(){i.$onChanges&&h&&i.$onChanges(h),h=void 0}return r&&St(r).forEach(([r,h])=>{const{attrName:f,optional:d,mode:m}=h;let p,$,g,w,v,k=!0,E=!0;switch(m){case"@":d||kt(e,f)||(Q(f,s.name),i[r]=e[f]=void 0),v=e.$observe(f,t=>{(_(t)||D(t))&&(a(r,t,E),i[r]=t,k?k=!1:(l(),E=!1))}),e.Jt[f].h=t,p=e[f],_(p)?i[r]=n(p)(t):D(p)&&(i[r]=p),u[r]={currentValue:i[r],firstChange:!0},c.push(v);break;case"=":{if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;const n=e[f];$=n&&o(n),w=$&&$.zt?G:Z,g=$&&$.un||function(){throw Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name)},p=i.$target[r]=$&&$(t.$target);const u=function(n){return w(n,i[r])||(w(n,p)?g(t,n=i[r]):i[r]=n),p=n,p};if(e[f]){const n=e[f];t.$watch(n,n=>{const i=o(e[f],u);n?($.zt?t.$target[f]=n:t[f]=n,i(t)):t[f]=t[e[f]]},!0)}v=i.$watch(f,n=>{if(n!==p||b(e[f])){if($&&$.hn&&!$.zt||b(e[f])&&y(n))throw i.$target[f]=p,Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name);S(n)?St(n).forEach(([n,e])=>{t.$target[n]=e}):(g(t.$target,p=n),t.$handler.an.get(e[f])?.forEach(e=>{e.listenerFn(n,t.$target)}))}},!0),c.push(v);break}case"<":if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;$=e[f]&&o(e[f]),i.$target[r]=$&&$(t.$target),u[r]={currentValue:i.$target[r],firstChange:E},t.$target.attrs=e,e[f]&&(v=t.$watch(e[f],t=>{i.$target[r]=t,a(r,t,E),E&&(E=!1)},!0),c.push(v));break;case"&":if(d||kt(e,f)||Q(f,s.name),$=kt(e,f)?o(e[f]):void 0,!$&&d)break;i.$target[r]=function(n){return $(t.$target,n)}}}),{initialChanges:u,removeWatches:c.length&&function(){for(let t=0,n=c.length;t<n;++t)c[t]()}}}}]}}function Le(t){let n=t.length;if(n<=1)return t;for(;n--;){const e=t[n];(8===e.nodeType||3===e.nodeType&&""===e.nodeValue.trim())&&[].splice.call(t,n,1)}return t}const He={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],ln:(t,n)=>{t.$name=n},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},dn:()=>{}},Be="ng-pending",ze="ng-submitted";class We{static $nonscope=!0;static $inject=[jt.l,jt.u,jt.h,jt.C,jt.V];constructor(t,i,r,s,o){this.mn=bt(t),this.pn=[],this.$name=o(i.name||i.ngForm||"")(r),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$n=He,this.l=t,this.C=s,this.$error={},this.gn={},this.$pending=void 0,this.wn={};const c=this.l.classList.contains(n);this.wn[n]=c,this.wn[e]=!c,this.$target={}}$rollbackViewValue(){this.pn.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.pn.forEach(t=>{t.$commitViewValue()})}$addControl(t){K(t.$name,"input"),this.pn.push(t),t.$name&&(this[t.$name]=t),t.$target.$n=this}$getControls(){return ht(this.pn)}ln(t,n){const e=t.$name;this[e]===t&&delete this[e],this[n]=t,t.$name=n}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(n=>{this.$setValidity(n,null,t)}),this.$error&&Object.keys(this.$error).forEach(n=>{this.$setValidity(n,null,t)}),this.gn&&Object.keys(this.gn).forEach(n=>{this.$setValidity(n,null,t)}),J(this.pn,t),t.$target.$n=He}$setDirty(){bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$dirty=!0,this.$pristine=!1,this.$n.$setDirty()}$setPristine(){bt(this.l)?this.C.setClass(this.l,i,`${r} ${ze}`):(this.l.classList.remove(r,ze),this.l.classList.add(i)),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.pn.forEach(t=>{t.$setPristine()})}$setUntouched(){this.pn.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.$n&&t.$n!==He;)t=t.$n;t.dn()}dn(){bt(this.l)?this.C.addClass(this.l,ze):this.l.classList.add(ze),this.$submitted=!0,this.pn.forEach(t=>{t.dn&&t.dn()})}set(t,n,e){const i=t[n];i?-1===i.indexOf(e)&&i.push(e):(t=m(t))[n]=[e]}unset(t,n,e){const i=t[n];i&&(-1===J(i,e)&&J(i,e.$target),0===i.length&&delete t[n])}$setValidity(t,i,r){const s=this;let o;function c(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}b(i)?function(t,n,e,i){t[n]||(t[n]={}),s.set(t[n],e,i)}(this,"$pending",t,r):function(t,n,e,i){t[n]&&s.unset(t[n],e,i),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t,r),D(i)?i?(this.unset(this.$error,t,r),this.set(this.gn,t,r)):(this.set(this.$error,t,r),this.unset(this.gn,t,r)):(this.unset(this.$error,t,r),this.unset(this.gn,t,r)),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.gn[t]||null),c(this,t,o),this.$n.$setValidity(t,o,this)}}const Je=function(t){return[jt.B,function(e){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:We,compile:function(r,s){r.classList.add(i,n);const o=s.name?"name":!(!t||!s.ngForm)&&"ngForm";return{pre:function(t,n,i,r){const s=r[0];if(!("action"in i)){const t=function(t){s.$commitViewValue(),s.$setSubmitted(),t.preventDefault()};n.addEventListener("submit",t),n.addEventListener("$destroy",()=>{setTimeout(()=>{n.removeEventListener("submit",t)},0,!1)})}(r[1]||s.$n).$addControl(s);const c=o?""===(u=s.$name)?e('this[""]').un:e(u).un:()=>{};var u;o&&(c(t,s),i.$observe(o,n=>{s.$name!==n&&(t.$target[s.$name]=void 0,s.$n.ln(s,n),t.$target!==s.$n&&s.$n!==He||(t.$target[n]=s))})),n.addEventListener("$destroy",()=>{s.$target.$n.$removeControl(s),c(t,void 0),F(s,He)})}}}}}]},Ze=Je(),Ge=Je("ngForm");function Ke(t,n,e){e&&!t.wn[n]?(t.mn?t.C.addClass(t.l,n):t.l.classList.add(n),t.wn[n]=!0):!e&&t.wn[n]&&(t.mn?t.C.removeClass(t.l,n):t.l.classList.remove(n),t.wn[n]=!1)}const Xe=/(\s+|^)default(\s+|$)/;class Ye{static $nonscope=!0;static $inject=[jt.u,jt.h];constructor(t,n){this.u=t,this.h=n,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:ti,n=this.h.$eval(this.u.ngModelOptions);this.$options=t.createChild(n)}}class Qe{static $nonscope=!0;constructor(t){this.vn=t}getOption(t){return this.vn[t]}createChild(t){let n=!1;return St(t=Object.assign({},t)).forEach(([e,i])=>{"$inherit"===i?"*"===e?n=!0:(t[e]=this.vn[e],"updateOn"===e&&(t.updateOnDefault=this.vn.updateOnDefault)):"updateOn"===e&&(t.updateOnDefault=!1,t[e]=q(i.replace(Xe,()=>(t.updateOnDefault=!0," "))))},this),n&&(delete t["*"],ei(t,this.vn)),ei(t,ti.vn),new Qe(t)}}const ti=new Qe({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1});function ni(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:Ye}}function ei(t,n){Et(n).forEach(e=>{y(t[e])||(t[e]=n[e])})}const ii=pt("ngModel");class ri{static $nonscope=!0;static $inject=[jt.h,jt.D,jt.u,jt.l,jt.B,jt.C,jt.V];constructor(t,i,r,s,o,c,u){this.mn=bt(s),this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.bn=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.gn={},this.$pending=void 0,this.$name=u(r.name||"",!1)(t),this.$n=He,this.$options=ti,this.yn="",this.kn=this.kn.bind(this),this.En=o(r.ngModel),this.Sn=this.En.un,this._n=this.En,this.xn=this.Sn,this.On=null,this.Cn=void 0,this.jn="parse",this.An=0,this.h=t,this.Tn=r,this.l=s,this.C=c,this.B=o,this.D=i,this.Rn=!1,this.wn={};const h=this.l.classList.contains(n);var a;this.wn[n]=h,this.wn[e]=!h,this.Mn=new Set,(a=this).h.$watch("value",()=>{const t=a._n(a.h);t===a.$modelValue||Number.isNaN(a.$modelValue)&&Number.isNaN(t)||a.Pn(t)})}set(t,n){t[n]=!0}unset(t,n){delete t[n]}$setValidity(t,i){const r=this;function s(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}let o;b(i)?function(t,n,e){t[n]||(t[n]={}),r.set(t[n],e)}(this,"$pending",t):function(t,n,e){t[n]&&r.unset(t[n],e),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t),D(i)?i?(delete this.$error[t],this.set(this.gn,t)):(this.set(this.$error,t),delete this.gn[t]):(delete this.$error[t],delete this.gn[t]),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,s(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,s(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.gn[t]||null),s(this,t,o),this.$n.$setValidity(t,o,this)}In(){if(this.$options.getOption("getterSetter")){const t=this.B(`${this.Tn.ngModel}()`),n=this.B(`${this.Tn.ngModel}(_$p)`);this._n=n=>{let e=this.En(n);return R(e)&&(e=t(n)),e},this.xn=(t,e)=>{R(this.En(t))?n(t,{Dn:e}):this.Sn(t,e)}}else if(!this.En.un)throw ii("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.Tn.ngModel,en(this.l))}$render(){}$isEmpty(t){return b(t)||""===t||null===t||Number.isNaN(t)}Nn(t){this.$isEmpty(t)?bt(this.l)?(this.C.removeClass(this.l,u),this.C.addClass(this.l,c)):(this.l.classList.remove(u),this.l.classList.add(c)):bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,u)):(this.l.classList.remove(c),this.l.classList.add(u))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.l&&(bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,i)):(this.l.classList.remove(c),this.l.classList.add(i)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$n.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,bt(this.l)?this.C.setClass(this.l,s,o):(this.l.classList.remove(o),this.l.classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,bt(this.l)?this.C.setClass(this.l,o,s):(this.l.classList.remove(s),this.l.classList.add(o))}$rollbackViewValue(){clearTimeout(this.On),this.$viewValue=this.qn,this.$render()}$validate(){if(L(this.$modelValue))return;const t=this.qn,n=this.bn,e=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),s=this;this.Un(n,t,t=>{r||e===t||(s.$modelValue=t?n:void 0,s.$modelValue!==i&&s.Vn())})}Un(t,n,e){this.An++;const i=this.An,r=this;function s(t,n){i===r.An&&r.$setValidity(t,n)}function o(t){i===r.An&&e(t)}!function(){const t=r.jn;return b(r.Cn)?(s(t,null),!0):(r.Cn||(Et(r.$validators).forEach(t=>{s(t,null)}),Et(r.$asyncValidators).forEach(t=>{s(t,null)})),s(t,r.Cn),r.Cn)}()?o(!1):function(){let e=!0;return St(r.$validators).forEach(([i,r])=>{const o=Boolean(r(t,n));e=e&&o,s(i,o)}),!!e||(Et(r.$asyncValidators).forEach(t=>{s(t,null)}),!1)}()?function(){const e=[];let i=!0;St(r.$asyncValidators).forEach(([r,o])=>{const c=o(t,n);if(!N(c))throw ii("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",c);s(r,void 0),e.push(c.then(()=>{s(r,!0)},()=>{i=!1,s(r,!1)}))}),e.length?Promise.all(e).then(()=>{o(i)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.On),(this.qn!==this.$viewValue||""===this.$viewValue&&this.Rn)&&(void 0===this.qn&&Number.isNaN(this.$viewValue)||(this.Nn(this.$viewValue),this.qn=this.$viewValue,this.$pristine&&this.$setDirty(),this.Fn()))}Fn(){let t=this.qn;const n=this;if(this.Cn=!b(t)||void 0,this.$setValidity(this.jn,null),this.jn="parse",this.Cn)for(let n=0;n<this.$parsers.length;n++)if(t=this.$parsers[n](t),b(t)){this.Cn=!1;break}L(this.$modelValue)&&(this.$modelValue=this._n(this.h));const e=this.$modelValue,i=this.$options.getOption("allowInvalid");function r(){if(n.$modelValue!=e){if(x(n.$modelValue)&&""===e)return;n.Vn()}}this.bn=t,i&&(this.$modelValue=t,r()),this.Un(t,this.qn,e=>{i||(n.$modelValue=e?t:void 0,r())})}Vn(){this.xn(this.h,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.D(t)}},this)}$setViewValue(t,n){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.Ln(n)}Ln(t){let n=this.$options.getOption("debounce");j(n[t])?n=n[t]:j(n.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?n=n.default:j(n["*"])&&(n=n["*"]),clearTimeout(this.On);const e=this;n>0?this.On=setTimeout(()=>{e.$commitViewValue()},n):this.$commitViewValue()}$overrideModelOptions(t){this.Hn(),this.$options=this.$options.createChild(t),this.yn=this.$options.vn.updateOn,this.Bn()}$processModelValue(){const t=this.zn();this.$viewValue!==t&&(this.Nn(t),this.$viewValue=this.qn=t,this.$render(),this.Un(this.$modelValue,this.$viewValue,()=>{}))}zn(){const t=this.$formatters;let n=t.length,e=this.$modelValue;for(;n--;)e=t[n](e);return e}Pn(t){this.$modelValue=this.bn=t,this.Cn=void 0,this.$processModelValue()}Hn(){this.Mn.forEach(t=>t()),this.Mn.clear()}Bn(){this.yn&&this.yn.split(" ").forEach(t=>{this.l.addEventListener(t,this.kn),this.Mn.add(()=>this.l.removeEventListener(t,this.kn))}),this.yn=this.$options.getOption("updateOn"),this.yn&&this.yn.split(" ").forEach(t=>{this.l.addEventListener(t,this.kn),this.Mn.add(()=>this.l.removeEventListener(t,this.kn))})}kn(t){this.Ln(t&&t.type)}}function si(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ri,priority:1,compile:t=>(t.classList.add(i,s,n),{pre:(t,n,e,i)=>{const r=i[0],s=i[1]||r.$n,o=i[2];o&&(r.$options=o.$options),r.In(),s.$addControl(r),e.$observe("name",t=>{r.$name!==t&&r.$n.ln(r,t)});const c=t.$watch(e.ngModel,t=>{r.Pn(m(t))});t.$on("$destroy",()=>{r.$n.$removeControl(r),c()})},post:(t,n,e,i)=>{const r=i[0];r.Bn(),n.addEventListener("blur",()=>{r.$touched||r.$setTouched()}),r.$viewChangeListeners.push(()=>{const{change:e}=n.dataset;e&&t.$eval(e)})}})}}const oi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ci=/^(?=.{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])?)*$/,ui=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,hi="validity",ai=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{ai.set(t,!0)});const li={text:function(t,n,e,i){di(0,n,e,i),fi(i)},date:mi("date",/^(\d{4,})-(\d{2})-(\d{2})$/),"datetime-local":mi("datetimelocal",/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),time:mi("time",/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),week:mi("week",/^(\d{4,})-W(\d\d)$/),month:mi("month",/^(\d{4,})-(\d\d)$/),number:function(t,n,e,i,r){let s;if(pi(0,n,0,i,"number"),$i(i),di(0,n,e,i),y(e.min)||e.ngMin){let n=e.min||r(e.ngMin)(t);s=gi(n),i.$validators.min=function(t,n){return i.$isEmpty(n)||b(s)||n>=s},e.$observe("min",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.max)||e.ngMax){let n=e.max||r(e.ngMax)(t),s=gi(n);i.$validators.max=function(t,n){return i.$isEmpty(n)||b(s)||n<=s},e.$observe("max",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.step)||e.ngStep){let n=e.step||r(e.ngStep)(t),o=gi(n);i.$validators.step=function(t,n){return i.$isEmpty(n)||b(o)||bi(n,s||0,o)},e.$observe("step",t=>{t!==n&&(o=gi(t),n=t,i.$validate())})}},url:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.url=function(t,n){const e=t||n;return i.$isEmpty(e)||oi.test(e)}},email:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.email=function(t,n){const e=t||n;return i.$isEmpty(e)||ci.test(e)}},radio:function(t,n,e,i){const r=!e.ngTrim||"false"!==q(e.ngTrim);b(e.name)&&n.setAttribute("name",g()),n.addEventListener("change",function(t){if(n.checked){let{value:n}=e;r&&(n=q(n)),i.$setViewValue(n,t&&t.type)}}),i.$render=function(){let{value:t}=e;r&&(t=q(t));const s=d(i.$viewValue)?i.$viewValue.$target:i.$viewValue;n.checked=m(t)===m(s)},e.$observe("value",i.$render)},range:function(t,n,e,i){pi(0,n,0,i,"range"),$i(i),di(0,n,e,i);const r=i.Rn&&"range"===n.type;let s=r?0:void 0,o=r?100:void 0,c=r?1:void 0;const{validity:u}=n,h=y(e.min),a=y(e.max),l=y(e.step),f=i.$render;function d(t,i){n.setAttribute(t,e[t]);let r=e[t];e.$observe(t,t=>{t!==r&&(r=t,i(t))})}i.$render=r&&y(u.rangeUnderflow)&&y(u.rangeOverflow)?function(){f(),i.$setViewValue(n.value)}:f,h&&(s=gi(e.min),i.$validators.min=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(s)||n>=s},d("min",function(t){if(s=gi(t),!L(i.$modelValue))if(r){let t=n.value;s>t&&(t=s,n.value=t),i.$setViewValue(t)}else i.$validate()})),a&&(o=gi(e.max),i.$validators.max=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(o)||n<=o},d("max",function(t){if(o=gi(t),!L(i.$modelValue))if(r){let t=n.value;o<t&&(n.value=o,t=o<s?s:o),i.$setViewValue(t)}else i.$validate()})),l&&(c=gi(e.step),i.$validators.step=r?function(){return!u.stepMismatch}:function(t,n){return i.$isEmpty(n)||b(c)||bi(n,s||0,c)},d("step",function(t){c=gi(t),L(i.$modelValue)||(r?i.$viewValue!==n.value&&i.$setViewValue(n.value):i.$validate())}))},checkbox:function(t,n,e,i,r){const s=yi(r,t,"ngTrueValue",e.ngTrueValue,!0),o=yi(r,t,"ngFalseValue",e.ngFalseValue,!1);n.addEventListener("change",function(t){i.$setViewValue(n.checked,t&&t.type)}),i.$render=function(){n.checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(t=>G(t,s)),i.$parsers.push(t=>t?s:o)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function fi(t){t.$formatters.push(n=>t.$isEmpty(n)?n:n.toString())}function di(t,n,e,i){const r=n.type.toLowerCase();let s,o=!1;n.addEventListener("compositionstart",()=>{o=!0}),n.addEventListener("compositionend",()=>{o=!1,c()});const c=function(t){if(s&&(clearTimeout(s),s=null),o)return;let{value:c}=n;const u=t&&t.type;"password"===r||e.ngTrim&&"false"===e.ngTrim||(c=q(c)),(i.$viewValue!==c||""===c&&i.Rn)&&i.$target.$setViewValue(c,u)};["input","change","paste","drop","cut"].forEach(t=>{n.addEventListener(t,c)}),ai[r]&&i.Rn&&r===e.type&&n.addEventListener("keydown wheel mousedown",t=>{if(!s){const n=this[hi],e=n.badInput,i=n.typeMismatch;s=setTimeout(()=>{s=null,n.badInput===e&&n.typeMismatch===i||c(t)})}}),i.$render=function(){const t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.value!==t&&(n.value=t)}}function mi(t,n){return function(e,i,r,s,o){if(di(0,i,r,s),s.$parsers.push(e=>s.$isEmpty(e)?null:n.test(e)?e:void(s.jn=t)),s.$formatters.push(t=>{if(s.$isEmpty(t))return"";if(!_(t))throw ii("datefmt","Expected `{0}` to be a string",t);return t}),y(r.min)||r.ngMin){let t=r.min||o?.(r.ngMin)(e);s.$validators.min=(n,e)=>s.$isEmpty(e)||e>=t,r.$observe("min",n=>{t=n,s.$validate()})}if(y(r.max)||r.ngMax){let t=r.max||o?.(r.ngMax)(e);s.$validators.max=(n,e)=>s.$isEmpty(e)||e<=t,r.$observe("max",n=>{t=n,s.$validate()})}}}function pi(t,n,e,i,r){(i.Rn=S(n.validity))&&i.$parsers.push(t=>{const e=n[hi]||{};if(!e.badInput&&!e.typeMismatch)return t;i.jn=r})}function $i(t){t.$parsers.push(n=>t.$isEmpty(n)?null:ui.test(n)?parseFloat(n):void(t.jn="number")),t.$formatters.push(n=>{if(!t.$isEmpty(n)){if(!j(n))throw ii("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n})}function gi(t){return y(t)&&!j(t)&&(t=parseFloat(t)),L(t)?void 0:t}function wi(t){return(0|t)===t}function vi(t){const n=t.toString(),e=n.indexOf(".");if(-1===e){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(n);if(t)return Number(t[1])}return 0}return n.length-e-1}function bi(t,n,e){let i=Number(t);const r=!wi(i),s=!wi(n),o=!wi(e);if(r||s||o){const t=r?vi(i):0,c=s?vi(n):0,u=o?vi(e):0,h=10**Math.max(t,c,u);i*=h,n*=h,e*=h,r&&(i=Math.round(i)),s&&(n=Math.round(n)),o&&(e=Math.round(e))}return(i-n)%e===0}function yi(t,n,e,i,r){let s;if(y(i)){if(s=t(i),!s.constant)throw ii("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",e,i);return s(n)}return r}function ki(t){return{restrict:"E",require:["?ngModel"],link:{pre(n,e,i,r){r[0]&&(li[i.type?.toLowerCase()]||li.text)(n,e,i,r[0],t)}}}}function Ei(){return{restrict:"E",compile(t,n){if("hidden"===n.type?.toLowerCase())return{pre(t,n){n.value=n.getAttribute("value")??""}}}}}ki.$inject=[jt.B];const Si=/^(true|false|\d+)$/;function _i(){function t(t,n,e){t.value=m(e??""),n.$set("value",e)}return{restrict:"A",priority:100,compile:(n,e)=>Si.test(e.ngValue)?function(n,e,i){t(e,i,n.$eval(i.ngValue))}:function(n,e,i){n.$watch(i.ngValue,n=>{t(e,i,n)})}}}function xi(t){return{restrict:"E",terminal:!0,compile(n,e){"text/ng-template"===e.type&&t.set(e.id,n.innerText)}}}xi.$inject=[jt.rt];class Oi{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap"];static $inject=[jt.l,jt.h];constructor(t,n){this.l=t,this.h=n,this.Wn={},this.Jn={},this.Zn=!1,this.Gn=document.createElement("option"),this.Kn=!1,this.Xn=void 0,this.Yn=new Map,this.Qn=!1,this.te=!1,n.$on("$destroy",()=>{this.ne=()=>{}})}ne(t){const n=this.ee(t);this.Gn.value=n,this.l.prepend(this.Gn),this.Gn.selected=!0,this.Gn.setAttribute("selected","selected"),this.l.value=n}ie(t){const n=this.ee(t);this.Gn.value=n,this.Gn.selected=!0,this.Gn.setAttribute("selected","selected"),this.l.value=n}ee(t){return b(t)?"? undefined:undefined ?":`? ${$t(t)} ?`}re(){this.Gn.parentElement&&this.Gn.remove()}se(){this.Xn&&(this.l.value="",this.Xn.selected=!0,this.Xn.setAttribute("selected","selected"))}oe(){this.Kn&&(this.Xn.selected=!1)}ce(){const t=this.l.value,n=t in this.Wn?this.Wn[t]:t;return this.ue(n)?n:null}he(t){const n=this.l.options[this.l.selectedIndex];if(n&&(n.selected=!1),this.ue(t)){this.re();const n=$t(t);this.l.value=n in this.Wn?n:t;const e=this.l.options[this.l.selectedIndex];e?e.selected=!0:this.ae(t)}else this.ae(t)}le(t,n){if(8===n.nodeType)return;K(t,'"option value"'),""===t&&(this.Kn=!0,this.Xn=n);const e=this.Yn.get(t)||0;this.Yn.set(t,e+1),this.fe()}de(t){const n=this.Yn.get(t);n&&(1===n?(this.Yn.delete(t),""===t&&(this.Kn=!1,this.Xn=void 0)):this.Yn.set(t,n-1))}ue(t){return!!this.Yn.get(t)}$hasEmptyOption(){return this.Kn}$isUnknownOptionSelected(){return this.l.options[0]===this.Gn}$isEmptyOptionSelected(){return this.Kn&&this.l.options[this.l.selectedIndex]===this.Xn}ae(t){O(t)&&this.Xn?(this.re(),this.se()):this.Gn.parentElement?this.ie(t):this.ne(t)}fe(){this.Qn||(this.Qn=!0,this.h.$postUpdate(()=>{this.Qn=!1,this.Jn.$render()}))}me(t=!1){this.te||(this.te=!0,this.h.$postUpdate(()=>{this.h.cn||(this.te=!1,this.Jn.$setViewValue(this.ce()),t&&this.Jn.$render())}))}registerOption(t,n,e,i,r){let s,o;e.$attr.ngValue?e.$observe("value",t=>{let e;const i=n.selected;y(o)&&(this.de(s),delete this.Wn[o],e=!0),o=$t(t),s=t,this.Wn[o]=t,this.le(t,n),n.setAttribute("value",o),e&&i&&this.me()}):i?e.$observe("value",t=>{let e;this.ce();const i=n.selected;y(s)&&(this.de(s),e=!0),s=t,this.le(t,n),e&&i&&this.me()}):r?(t.value=r(t),e.value||(e.$set("value",t.value),this.le(t.value,n)),t.$watch("value",()=>{const i=r(t);e.value||e.$set("value",i);const o=n.selected;s!==i&&(this.de(s),s=i),this.le(i,n),s&&o&&this.me()})):this.le(e.value,n),e.$observe("disabled",t=>{("true"===t||t&&n.selected)&&(this.Zn?this.me(!0):(this.Jn.$setViewValue(null),this.Jn.$render()))}),n.addEventListener("$destroy",()=>{const t=this.ce(),n=e.value;this.de(n),this.fe(),(this.Zn&&t&&-1!==t.indexOf(n)||t===n)&&this.me(!0)})}}function Ci(){return{restrict:"E",require:["select","?ngModel"],controller:Oi,priority:1,link:{pre:function(t,n,e,i){const r=i[0],s=i[1];if(s){if(r.Jn=s,n.addEventListener("change",()=>{r.re();const t=r.ce();s.$setViewValue(t)}),e.multiple){let t;r.Zn=!0,r.ce=function(){const t=[],e=n.getElementsByTagName("option");return Array.from(e).forEach(n=>{if(n.selected&&!n.disabled){const e=n.value;t.push(e in r.Wn?r.Wn[e]:e)}}),t},r.he=function(t){const e=n.getElementsByTagName("option");Array.from(e).forEach(n=>{const e=!!t&&(W(t,n.value)||W(t,r.Wn[n.value]));e!==n.selected&&(n.selected=e)})};let e=NaN;e!==s.$viewValue||G(t,s.$viewValue)||(t=ht(s.$viewValue),s.$render()),e=s.$viewValue,s.$isEmpty=function(t){return!t||0===t.length}}}else r.registerOption=()=>{}},post:function(t,n,e,i){const r=i[1];if(!r)return;const s=i[0];r.$render=function(){s.he(r.$viewValue)}}}}}function ji(t){return{restrict:"E",priority:100,compile(n,e){let i,r;return y(e.ngValue)||(y(e.value)?i=t(e.value,!0):(r=t(n.textContent,!0),r||e.$set("value",n.textContent))),function(t,n,e){const s="$selectController",o=n.parentElement,c=Gt(o,s)||Gt(o.parentElement,s);c&&c.registerOption(t,n,e,i,r)}}}}function Ai(){return{link(t,n,e){t.$watch(e.ngBind,t=>{n.textContent=X(m(t))},y(e.lazy))}}}function Ti(){return{link(t,n,e){e.$observe("ngBindTemplate",t=>{n.textContent=O(t)?"":t})}}}function Ri(t){return{restrict:"A",compile:(n,e)=>(t(e.ngBindHtml),(t,n)=>{t.$watch(e.ngBindHtml,t=>{(b(t)||x(t))&&(t=""),n.innerHTML=t})})}}function Mi(t,n){return t=`ngClass${t}`,function(){return{link(e,i,r){let s,o=Gt(i,"$classCounts"),c=!0;function u(t,n){const e=[];return t&&t.forEach(t=>{(n>0||o[t])&&(o[t]=(o[t]||0)+n,o[t]===+(n>0)&&e.push(t))}),e.join(" ")}o||(o=Object.create(null),Zt(i,"$classCounts",o)),"ngClass"!==t&&e.$watch("$index",()=>{var t,o;(t=1&e.$index)===n?(o=u(Ii(o=s),1),bt(i)?r.$addClass(o):e.$postUpdate(()=>{""!==o&&i.classList.add(...o.trim().split(" "))})):function(t){t=u(Ii(t),-1),bt(i)?r.$removeClass(t):e.$postUpdate(()=>{""!==t&&i.classList.remove(...t.trim().split(" "))})}(s),c=t}),e.$watch(r[t],t=>{var e;e=Di(t),c===n&&function(t,n){const e=Ii(t),s=Ii(n),o=Pi(e,s),c=Pi(s,e),h=u(o,-1),a=u(c,1);bt(i)?(r.$addClass(a),r.$removeClass(h)):(""!==a&&i.classList.add(...a.trim().split(" ")),""!==h&&i.classList.remove(...h.trim().split(" ")))}(s,e),s=e})}}}}function Pi(t,n){if(!t||!t.length)return[];if(!n||!n.length)return t;const e=[];t:for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<n.length;t++)if(r===n[t])continue t;e.push(r)}return e}function Ii(t){return t&&t.split(" ")}function Di(t){if(!t)return t;let n=t;return k(t)?n=t.map(Di).join(" "):S(t)?n=Et(t).filter(n=>t[n]).join(" "):_(t)||(n=`${t}`),n}ji.$inject=[jt.V],Ri.$inject=[jt.B];const Ni=Mi("",!0),qi=Mi("Odd",0),Ui=Mi("Even",1);function Vi(){return{compile(t,n){n.$set("ngCloak",null)}}}function Fi(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const Li="ng-hide",Hi="ng-hide-animate";function Bi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngShow,n=>{bt(e)?t[n?"removeClass":"addClass"](e,Li,{tempClasses:Hi}):n?e.classList.remove(Li):e.classList.add(Li)})}}}function zi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngHide,n=>{bt(e)?t[n?"addClass":"removeClass"](e,Li,{tempClasses:Hi}):n?e.classList.add(Li):e.classList.remove(Li)})}}}function Wi(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(n,e,i,r,s){let o,c,u;n.$watch(i.ngIf,n=>{n?c||s((n,i)=>{c=i,o=n,bt(n)?t.enter(n,e.parentElement,e):e.after(n)}):(u&&(nn(u),u=null),c&&(c.$destroy(),c=null),o&&(u=o,bt(u)?t.leave(u).done(t=>{!1!==t&&(u=null)}):e.nextElementSibling?.remove(),o=null))})}}}function Ji(t,n,e,i){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,s){const o=s.ngInclude||s.src,c=s.onload||"",u=s.autoscroll;return(r,s,h,a,l)=>{function f(){!y(u)||u&&!r.$eval(u)||n()}let d,m,p,$=0;const g=()=>{m&&(m.remove(),m=null),d&&(d.$destroy(),d=null),p&&(bt(p)?e.leave(p).done(t=>{!1!==t&&(m=null)}):p.remove(),m=p,p=null)};r.$watch(o,async n=>{const o=function(t){!1!==t&&f()},u=++$;n?(r.$emit("$includeContentRequested",n),t(n).then(t=>{if(r.cn)return;if(u!==$)return;const i=r.$new();a.template=t;const h=l(i,t=>{g(),bt(t)?e.enter(t,null,s).done(o):(s.after(t),f())});d=i,p=h,d.$emit("$includeContentLoaded",n),r.$eval(c)}).catch(t=>{r.cn||(u===$&&(g(),r.$emit("$includeContentError",n)),i(new Error(t)))})):(g(),a.template=null)})}}}}function Zi(t){return{priority:-400,require:"ngInclude",link(n,e,i,r){e.innerHTML=r.template,t(e.childNodes)(n)}}}function Gi(){return{priority:450,compile:()=>({pre(t,n,e){const i=Qt(n);i?i.$eval(e.ngInit):t.$eval(e.ngInit)}})}}function Ki(){return{terminal:!0,priority:1e3}}Bi.$inject=[jt.C],zi.$inject=[jt.C],Wi.$inject=[jt.C],Ji.$inject=[jt.ot,jt.O,jt.C,jt.D],Zi.$inject=[jt.T];const Xi=pt("ngRef");function Yi(t){return{priority:-1,restrict:"A",compile(n,e){const i=vt(z(n)),r=t(e.ngRef),s=r.un||function(){throw Xi("nonassign",'Expression in ngRef="{0}" is non-assignable!',e.ngRef)};return(t,n,o)=>{let c;if(kt(o,"ngRefRead")){if("$element"===o.ngRefRead)c=n;else if(c=Gt(n,`$${o.ngRefRead}Controller`),!c)throw Xi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,e.ngRef)}else c=Gt(n,`$${i}Controller`);c=c||n,s(t,c),n.addEventListener("$destroy",()=>{r(t)===c&&s(t,null)})}}}}Yi.$inject=[jt.B];const Qi="$$NG_REMOVED",tr=pt("ngRepeat"),nr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function er(t){function n(t,n,e,i,r,s,o){t[e]!==i&&(t[e]=i),r&&(t[r]=s),i&&(t.$target.i=i.i),t.$index=n,t.$first=0===n,t.$last=n===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&n))}function e(t){return t.clone}function i(t){return t.clone}function r(t,n,e){return $t(e)}function s(t,n){return n}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,c)=>{const u=c.ngRepeat,h=!!c.animate;let a=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!a)throw tr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",u);const l=a[1],f=a[2],d=a[3];if(a=l.match(nr),!a)throw tr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",l);const m=a[3]||a[1],p=a[2];if(d&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw tr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",d);const $=function(){let t=!1;return(...n)=>{if(!t)return t=!0,(()=>{y(c.lazy)&&y(c.swap)&&document.querySelectorAll(c.swap).forEach(t=>nn(t))})(...n)}}();return function(o,c,a,l,g){let w=Object.create(null);o.$watch(f,a=>{$();let l,f,b=c;const y=Object.create(null);let k,E,S,_,x,O,C;if(d&&(o[d]=a),v(a))x=a,_=r;else{_=s,x=[];for(const t in a)kt(a,t)&&"$"!==t.charAt(0)&&x.push(t)}const j=x.length,A=new Array(j);for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],S=_(o,k,E),w[S])O=w[S],delete w[S],y[S]=O,A[l]=O;else{if(y[S])throw Object.values(A).forEach(t=>{t&&t.scope&&(w[t.id]=O)}),tr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",u,S,E);A[l]={id:S,scope:void 0,clone:void 0},y[S]=!0}for(const n in w){if(O=w[n],C=O.clone,h?t.leave(C):C.remove(),C.parentNode)for(let t=0,n=C.length;t<n;t++)C[t][Qi]=!0;O.scope.$destroy()}for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],O=A[l],O.scope){f=b;do{f=f.nextSibling}while(f&&f[Qi]);e(O)!==f&&t.move(rn(O.clone),null,b),b=i(O),n(O.scope,l,m,E,p,k,j)}else g((e,i)=>{O.scope=i;const r=e;h?t.enter(e,null,b):b.after(e),b=r,O.clone=e,y[O.id]=O,n(O.scope,l,m,E,p,k,j)});w=y},y(a.lazy))}}}}function ir(){return{restrict:"A",link(t,n,e){let i=null;t.$watch(e.ngStyle,t=>{const e=t?.$target||t;if(i)for(const t in i)n.style.removeProperty(t);if(e){i={};for(const t in e){const r=e[t];n.style.setProperty(t,r),i[t]=r}}else i=null})}}}function rr(t){return{require:"ngSwitch",controller:[jt.h,class{constructor(){this.cases={}}}],link(n,e,i,r){const s=i.ngSwitch||i.on;let o=[];const c=[],u=[],h=[],a=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};n.$watch(s,n=>{let e,i,s;for(;u.length;)t.cancel(u.pop());for(e=0,i=h.length;e<i;++e){const n=c[e].clone;h[e].$destroy(),bt(n)?(s=u[e]=t.leave(n),s.done(a(u,e))):n.remove()}c.length=0,h.length=0,(o=r.cases[`!${n}`]||r.cases["?"])&&Object.values(o).forEach(n=>{n.transclude((e,i)=>{h.push(i);const r=n.element,o={clone:e,comment:document.createComment("")};c.push(o),bt(e)?s?requestAnimationFrame(()=>{t.enter(e,r.parentElement,r)}):t.enter(e,r.parentElement,r):ln(e,r.parentElement,r)})})})}}}function sr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){e.ngSwitchWhen.split(e.ngSwitchWhenSeparator).sort().filter((t,n,e)=>e[n-1]!==t).forEach(t=>{i.cases[`!${t}`]=i.cases[`!${t}`]||[],i.cases[`!${t}`].push({transclude:r,element:n})})}}}function or(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:n})}}}er.$inject=[jt.C],rr.$inject=[jt.C];const cr=pt("ngOptions"),ur=document.createElement("option"),hr=document.createElement("optgroup"),ar=/^\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]+?))?$/;function lr(t,n){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,n,e,i){i[0].registerOption=()=>{}},post:function(e,i,r,s){const o=s[0],c=s[1],{multiple:u}=r;for(let t=0,n=i.childNodes,e=n.length;t<e;t++)if(""===n[t].value){o.hasEmptyOption=!0,o.emptyOption=n[t];break}an(i);const h=!!o.emptyOption;let a;ur.cloneNode(!1).nodeValue="?";const l=function(t,e,i){const r=t.match(ar);if(!r)throw cr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,en(e));const s=r[5]||r[7],o=r[6],c=/ as /.test(r[0])&&r[1],u=r[9],h=n(r[2]?r[1]:s),a=c&&n(c)||h,l=u&&n(u),f=u?function(t,n){return l(i,n)}:function(t){return $t(t)},d=function(t,n){return f(t,b(t,n))},m=n(r[2]||r[1]),p=n(r[3]||""),$=n(r[4]||""),g=n(r[8]),w={},b=o?function(t,n){return w[o]=n,w[s]=t,w}:function(t){return w[s]=t,w};class y{constructor(t,n,e,i,r){this.selectValue=t,this.viewValue=n,this.label=e,this.group=i,this.disabled=r}}return{trackBy:u,getTrackByValue:d,getWatchables:g,getOptions(){const t=[],n={},e=g(i)||[],r=function(t){let n;if(!o&&v(t))n=t;else{n=[];for(const e in t)kt(t,e)&&"$"!==e.charAt(0)&&n.push(e)}return n}(e),s=r.length;for(let o=0;o<s;o++){const s=e===r?o:r[o],c=e[s],u=b(c,s),h=a(i,u),l=f(h,u),d=m(i,u),g=p(i,u),w=$(i,u),v=new y(l,h,d,g,w);t.push(v),n[l]=v}return{items:t,selectValueMap:n,getOptionFromViewValue:t=>n[d(t)],getViewValueFromOption:t=>u?structuredClone(t.viewValue):t.viewValue}}}}(r.ngOptions,i,e),f=document.createDocumentFragment();if(o.ee=()=>"?",u?(o.he=function(t){if(!a)return;const n=t&&t.map(p)||[];a.items.forEach(t=>{t.element.selected&&!W(n,t)&&(t.element.selected=!1)})},o.ce=function(){const t=[],n=i.options;for(let e=0;e<n.length;e++){const i=n[e];if(i.selected){const n=a.selectValueMap[i.value];n&&!n.disabled&&t.push(a.getViewValueFromOption(n))}}return t}):(o.he=function(t){if(!a)return;const n=i.options[i.selectedIndex],e=a.getOptionFromViewValue(t);n&&n.removeAttribute("selected"),e?(i.value!==e.selectValue&&(o.re(),i.value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):o.ae(t)},o.ce=function(){const t=a.selectValueMap[i.value];return t&&!t.disabled?(o.oe(),o.re(),a.getViewValueFromOption(t)):null},l.trackBy&&e.$watch(l.getTrackByValue(c.$viewValue),()=>{c.$render()})),h){const n=t(o.emptyOption);i.prepend(o.emptyOption),n(e),8===o.emptyOption.nodeType&&(o.hasEmptyOption=!1,o.registerOption=function(t,n){""===n.value&&(o.hasEmptyOption=!0,o.emptyOption=n,c.$render(),n.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&c.$render()}))})}const d=l.getWatchables.pe.body[0].expression?.name;function m(t,n){const e=ur.cloneNode(!1);n.appendChild(e),function(t,n){t.element=n,n.disabled=t.disabled,t.label!==n.label&&(n.label=t.label,n.textContent=t.label),n.value=t.selectValue}(t,e)}function p(t){const n=a.getOptionFromViewValue(t),e=n&&n.element;return e&&!e.selected&&(e.selected=!0),n}e.$watch(d,function(){const t=a&&o.ce();if(a)for(let t=a.items.length-1;t>=0;t--){const n=a.items[t];y(n.group)?nn(n.element.parentNode):nn(n.element)}a=l.getOptions();const n={};if(a.items.forEach(t=>{let e;y(t.group)?(e=n[t.group],e||(e=hr.cloneNode(!1),f.appendChild(e),e.label=null===t.group?"null":t.group,n[t.group]=e),m(t,e)):m(t,f)}),i.appendChild(f),c.$render(),!c.$isEmpty(t)){const n=o.ce();(l.trackBy||u?G(t,n):t===n)||(c.$setViewValue(n),c.$render())}})}}}}lr.$inject=[jt.T,jt.B];const fr=pt("ngTransclude");function dr(t){return{compile:function(n){const e=t(n.childNodes);return an(n),function(t,n,i,r,s){if(!s)throw fr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",en(n));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");const o=i.ngTransclude||i.ngTranscludeSlot;function c(){e(t,t=>{n.append(t)})}s(function(t,e){var i;(i=t)instanceof Array||3===i.nodeType&&!i.nodeValue.trim()?(c(),e.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{n.append(t)}):n.append(t)},null,o),o&&!s.isSlotFilled(o)&&c()}}}}dr.$inject=[jt.T];const mr=/^\/(.+)\/([a-z]*)$/,pr={};Nt.forEach(t=>{if("multiple"===t)return;function n(n,i,r){n.$watch(r[e],n=>{r.$set(t,!!n)})}const e=vt(`ng-${t}`);let i=n;"checked"===t&&(i=function(t,i,r){r.ngModel!==r[e]&&n(t,0,r)}),pr[e]=function(){return{restrict:"A",priority:100,link:i}}}),St(l).forEach(([t])=>{pr[t]=function(){return{priority:100,link(n,e,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){const t=i.ngPattern.match(mr);if(t)return void i.$set("ngPattern",new RegExp(t[1],t[2]).toString())}n.$watch(i[t],n=>{i.$set(t,n)})}}}}),["src","srcset","href"].forEach(t=>{const n=vt(`ng-${t}`);pr[n]=[jt.K,function(e){return{priority:99,link(i,r,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(r.href)&&(o="xlinkHref",s.$attr[o]="href"),s.$set(n,e.getTrustedMediaUrl(s[n])),s.$observe(n,n=>{n?s.$set(o,n):"href"===t&&s.$set(o,null)})}}}]});const $r=[jt.B,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=kt(i,"required")||i.ngRequired&&t(i.ngRequired)(n);i.ngRequired||(i.required="true"),r.$validators.required=(t,n)=>!s||!r.$isEmpty(n),i.$observe("required",t=>{s!==t&&(s=t,r.$validate())})}})],gr=[jt.B,t=>({restrict:"A",require:"?ngModel",compile:(n,e)=>{let i,r;return e.ngPattern&&(i=e.ngPattern,r="/"===e.ngPattern.charAt(0)&&mr.test(e.ngPattern)?function(){return e.ngPattern}:e.ngPattern&&t(e.ngPattern)),function(t,n,e,s){if(!s)return;let o=e.pattern;e.ngPattern?o=r(t):i=e.pattern;let c=br(o,i,n);e.$observe("pattern",t=>{const e=c;c=br(t,i,n),(e&&e.toString())!==(c&&c.toString())&&s.$validate()}),s.$validators.pattern=(t,n)=>s.$isEmpty(n)||b(c)||c.test(n)}}})],wr=[jt.B,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=i.maxlength||i.ngMaxlength&&t(i.ngMaxlength)(n),o=yr(s);i.$observe("maxlength",t=>{s!==t&&(o=yr(t),s=t,r.$validate())}),r.$validators.maxlength=function(t,n){return o<0||r.$isEmpty(n)||n.length<=o}}})],vr=[jt.B,t=>({restrict:"A",require:"?ngModel",link(n,e,i,r){if(!r)return;let s=i.minlength||i.ngMinlength&&t(i.ngMinlength)(n),o=yr(s)||-1;i.$observe("minlength",t=>{s!==t&&(o=yr(t)||-1,s=t,r.$validate())}),r.$validators.minlength=function(t,n){return r.$isEmpty(n)||n.length>=o}}})];function br(t,n,e){if(t){if(d(t)&&(t=t.$target),_(t)){const n=t.match(/^\/(.*)\/([gimsuy]*)$/);t=n?new RegExp(n[1],n[2]):new RegExp(`^${t}$`)}if(!t.test)throw pt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",n,t,en(e));return t}}function yr(t){const n=parseInt(t,10);return L(n)?-1:n}class kr{constructor(){this.autoScrollingEnabled=!0}$get=[jt.F,jt.J,(t,n)=>{function e(t){if(t){t.scrollIntoView();const n=function(){let t=i.yOffset;if(R(t))t=t();else if(t instanceof Element){const n=t[0];t="fixed"!==window.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else j(t)||(t=0);return t}();if(n){const e=t.getBoundingClientRect().top;window.scrollBy(0,e-n)}}else window.scrollTo(0,0)}const i=function(n){let i;(n=_(n)?n:j(n)?n.toString():t.getHash())?(i=document.getElementById(n))||(i=function(t){let n=null;return Array.prototype.some.call(t,t=>"a"===z(t)&&(n=t,!0)),n}(document.getElementsByName(n)))?e(i):"top"===n&&e(null):e(null)};return this.autoScrollingEnabled&&(n.$location=t,n.$watch("$location.$$hash",(t,n)=>{if(t===n&&""===t)return;const e=()=>i(t);"complete"===document.readyState?queueMicrotask(()=>e()):window.addEventListener("load",()=>e())})),i}]}const Er="-add",Sr="-remove",_r="-active",xr="ng-animate",Or="$$ngAnimateChildren";function Cr(t,n,e){return(k(t)?t:t&&_(t)?t.trim().split(/\s+/):[]).filter(Boolean).map(t=>e?n+t:t+n).join(" ")}function jr(t){const n=t||{};if(!n.$$prepared){let t=n.domOperation||(()=>{});n.domOperation=function(){n.$e=!0,t(),t=()=>{}},n.$$prepared=!0}return n}function Ar(t,n){Tr(t,n),Rr(t,n)}function Tr(t,n){n&&n.from&&(Object.assign(t.style,n.from),n.from=void 0)}function Rr(t,n){n&&n.to&&(Object.assign(t.style,n.to),n.to=void 0)}function Mr(t,n,e){const i=n.options||{},r=e.options||{};r.preparationClasses&&(i.preparationClasses=[r.preparationClasses,i.preparationClasses].filter(Boolean).join(" "),delete r.preparationClasses),Object.assign(i,r);const s=`${i.addClass||""} ${r.addClass||""}`.trim().split(/\s+/).filter(Boolean),o=`${i.removeClass||""} ${r.removeClass||""}`.trim().split(/\s+/).filter(Boolean),c=new Set((t.getAttribute("class")||"").split(/\s+/).filter(Boolean)),u=[],h=[];return s.forEach(function(t){c.has(t)||u.push(t)}),o.forEach(function(t){c.has(t)&&h.push(t)}),i.addClass=u.length?u.join(" "):void 0,i.removeClass=h.length?h.join(" "):void 0,n.addClass=i.addClass,n.removeClass=i.removeClass,i}function Pr(t,n){const e=n?"paused":"",i="animationPlayState";return Ir(t,[i,e]),[i,e]}function Ir(t,n){const e=n[0];t.style[e]=n[1]}function Dr(t,n){return[t,n].filter(Boolean).join(" ")}const Nr=pt("$animate");function qr(t){return S(t)?t:{}}function Ur(t){const n=this;let e=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,i){if(e&&"."!==e.charAt(0))throw Nr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);const r=`${e}-animation`;n.$$registeredAnimations[e.substring(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=R(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(e=t instanceof RegExp?t:null,e)&&new RegExp(`[(\\s|\\/)]${xr}[(\\s|\\/)]`).test(e.toString()))throw e=null,Nr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',xr);return e},this.$get=[jt.k,function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:(t,n)=>void 0!==n?bt(t):(t.setAttribute("animate",`${n}`),!0),cancel(t){t.cancel&&t.cancel()},enter:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"enter",qr(r))),move:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"move",qr(r))),leave:(n,e)=>t.push(n,"leave",qr(e),()=>{nn(n)}),addClass:(n,e,i)=>((i=qr(i)).addClass=gt(i.addClass,e),t.push(n,"addClass",i)),removeClass:(n,e,i)=>((i=qr(i)).removeClass=gt(i.removeClass,e),t.push(n,"removeClass",i)),setClass:(n,e,i,r)=>((r=qr(r)).addClass=gt(r.addClass,e),r.removeClass=gt(r.removeClass,i),t.push(n,"setClass",r)),animate:(n,e,i,r,s)=>((s=qr(s)).from=s.from?F(s.from,e):e,s.to=s.to?F(s.to,i):i,r=r||"ng-inline-animate",s.tempClasses=gt(s.tempClasses,r),t.push(n,"animate",s))}}]}Ur.$inject=[jt.gt];class Vr{constructor(){this.cache=new Map}$get(){return this.cache}}class Fr{constructor(){this.handler=t=>{throw t}}$get(){return t=>this.handler(t)}}function Lr(){return function(t,n,e,i){if(!v(t)){if(O(t))return t;throw pt("filter")("notarray","Expected array but received: {0}",t)}let r;switch(i=i||"$",zr(n)){case"function":r=n;break;case"boolean":case"null":case"number":case"string":r=Hr(n,e,i,!0);break;case"object":r=Hr(n,e,i,!1);break;default:return t}return Array.from(t).filter(r)}}function Hr(t,n,e,i){e=e??"$";const r=S(t)&&e in t;return!0===n?n=G:R(n)||(n=function(t,n){return!(b(t)||(null===t||null===n?t!==n:S(n)||S(t)&&!B(t)||(t=`${t}`.toLowerCase(),n=`${n}`.toLowerCase(),-1===t.indexOf(n))))}),function(s){return r&&!S(s)?Br(s,t[e],n,e,!1):Br(s,t,n,e,!!i)}}function Br(t,n,e,i,r,s){const o=zr(t),c=zr(n);if("string"===c&&"!"===n.charAt(0))return!Br(t,n.substring(1),e,i,r);if(k(t))return t.some(t=>Br(t,n,e,i,r));switch(o){case"object":if(r){for(const r in t)if(r.charAt&&"$"!==r.charAt(0)&&Br(t[r],n,e,i,!0))return!0;return!s&&Br(t,n,e,i,!1)}if("object"===c){for(const r in n){const s=n[r];if(R(s)||b(s))continue;const o=r===i;if(!Br(o?t:t[r],s,e,i,o,o))return!1}return!0}return e(t,n);case"function":return!1;default:return e(t,n)}}function zr(t){return null===t?"null":typeof t}function Wr(){return function(t,n){return b(n)&&(n=2),et(t,n)}}function Jr(){return function(t,n,e){return R(t)&&(t=t()),L(n=Math.abs(Number(n))===1/0?Number(n):parseInt(n,10))?t:(j(t)&&(t=t.toString()),v(t)?(e=(e=!e||isNaN(e)?0:parseInt(e,10))<0?Math.max(0,t.length+e):e,n>=0?Zr(t,e,e+n):0===e?Zr(t,n,t.length):Zr(t,Math.max(0,e+n),e)):t)}}function Zr(t,n,e){return _(t)?t.slice(n,e):[].slice.call(t,n,e)}function Gr(t){return function(i,r,s,o){if(O(i))return i;if(R(i))return i();if(!v(i))throw pt("orderBy")("notarray","Expected array but received: {0}",i);k(r)||(r=[r??"+"]),0===r.length&&(r=["+"]);const c=r.map(n=>{let e=1,i=t=>t;if(R(n))i=n;else if(_(n)&&("+"!==n.charAt(0)&&"-"!==n.charAt(0)||(e="-"===n.charAt(0)?-1:1,n=n.substring(1)),""!==n)){const e=t(n);if(e.constant){const t=e();i=n=>n[t]}else i=e}return{get:i,descending:e}}),u=s?-1:1,h=R(o)?o:e,a=Array.prototype.map.call(i,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map(i=>function(t,e){let i=typeof t;return null===t?i="null":"object"===i&&(t=function(t){return R(t.valueOf)&&n(t=t.valueOf())||B(t)&&n(t=t.toString()),t}(t)),{value:t,type:i,index:e}}(i.get(t),e))}});return a.sort(function(t,n){for(let e=0,i=c.length;e<i;e++){const i=h(t.predicateValues[e],n.predicateValues[e]);if(i)return i*c[e].descending*u}return(h(t.tieBreaker,n.tieBreaker)||e(t.tieBreaker,n.tieBreaker))*u}),a.map(t=>t.value)};function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function e(t,n){let e=0;const i=t.type,r=n.type;if(i===r){let r=t.value,s=n.value;"string"===i?(r=r.toLowerCase(),s=s.toLowerCase()):"object"===i&&(S(r)&&(r=t.index),S(s)&&(s=n.index)),r!==s&&(e=r<s?-1:1)}else e="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return e}}Gr.$inject=[jt.B];const Kr="Filter";class Xr{static $inject=[jt.gt];constructor(t){at(y(t)),this.ge=t,St({filter:Lr,json:Wr,limitTo:Jr,orderBy:Gr}).forEach(([t,n])=>this.register(t,n))}register(t,n){return In(t,"name"),Mn(R,n,"factory"),this.ge.factory(t+Kr,n),this}$get=[jt.wt,t=>n=>(In(n,"name"),t.get(n+Kr))]}const Yr=pt("$interpolate");function Qr(t,n){throw Yr("interr","Can't interpolate: {0}\n{1}",t,n.toString())}class ts{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[jt.B,jt.K,(t,n)=>{const e=this,i=this.startSymbol.length,r=this.endSymbol.length,s=new RegExp(e.startSymbol.replace(/./g,c),"g"),o=new RegExp(e.endSymbol.replace(/./g,c),"g");function c(t){return`\\\\\\${t}`}function u(t){return t.replace(s,e.startSymbol).replace(o,e.endSymbol)}function h(s,o,c,h){const a=c===n.URL||c===n.MEDIA_URL;if(!s.length||-1===s.indexOf(e.startSymbol)){if(o)return;let t=u(s);a&&(t=n.getTrusted(c,t));const e=()=>t;return e.exp=s,e.expressions=[],e}let l,f;h=!!h;let d=0;const m=[],p=s.length;let $;const g=[],w=[];for(;d<p;){if(-1===(l=s.indexOf(e.startSymbol,d))||-1===(f=s.indexOf(e.endSymbol,l+i))){d!==p&&g.push(u(s.substring(d)));break}d!==l&&g.push(u(s.substring(d,l))),$=s.substring(l+i,f),m.push($),d=f+r,w.push(g.length),g.push("")}const v=1===g.length&&1===w.length,k=a&&v?void 0:function(t){try{return t=c&&!a?n.getTrusted(c,t):n.valueOf(t),h&&!y(t)?t:X(t)}catch(t){return Qr(s,t)}},E=m.map(n=>t(n,k));if(!o||m.length){const t=function(t){for(let n=0,e=m.length;n<e;n++){if(h&&b(t[n]))return;g[w[n]]=t[n]}return a?n.getTrusted(c,v?g[0]:g.join("")):(c&&g.length>1&&function(t){throw Yr("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)}(s),g.join(""))},e=(n,e)=>{const i=m.length,r=new Array(i);try{for(let s=0;s<i;s++){if(e){const r=m[s].trim();n.$watch(r,()=>{const r=new Array(i);for(let t=0;t<i;t++)r[t]=E[t](n);e(t(r))})}r[s]=E[s](n)}return t(r)}catch(t){return Qr(s,t)}};return e.exp=s,e.expressions=m,e}}return h.startSymbol=function(){return e.startSymbol},h.endSymbol=function(){return e.endSymbol},h}]}const ns=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,es=pt("$location");let is,rs,ss,os=!1;class cs{constructor(t,n,e=!0,i){this.appBase=t,this.appBaseNoFile=n,this.html5=e,this.basePrefix=e?i||"":void 0,this.hashPrefix=e?void 0:i,this.absUrl="",this.ht=void 0,this.we=void 0}setUrl(t){const n=ns.exec(t);return void 0===n[1]&&""!==t||this.setPath(n[1]||""),void 0===n[2]&&void 0===n[1]&&""!==t||this.setSearch(n[3]||""),this.setHash(n[5]||""),this}getUrl(){return this.ht}setPath(t){const n=null!==t?t.toString():"";return is="/"===n.charAt(0)?n:`/${n}`,this.ve(),this}getPath(){return is}setHash(t){return ss=null!==t?t.toString():"",this.ve(),this}getHash(){return ss}setSearch(t,n){if(1===arguments.length)if(_(t)||j(t))t=t.toString(),rs=it(t);else{if(!S(t))throw es("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");St(t=structuredClone(t,{})).forEach(([n,e])=>{x(e)&&delete t[n]}),rs=t}else b(n)||null===n?delete rs[t]:rs[t]=n;return this.ve(),this}getSearch(){return rs}ve(){this.ht=function(t,n,e){const i=rt(n),r=e?`#${ot(e)}`:"";return function(t){const n=t.split("/");let e=n.length;for(;e--;){const t=decodeURIComponent(n[e].replace(/%2F/gi,"/"));n[e]=ot(t)}return n.join("/")}(t)+(i?`?${i}`:"")+r}(is,rs,ss),this.absUrl=this.html5?this.appBaseNoFile+this.ht.substring(1):this.appBase+(this.ht?this.hashPrefix+this.ht:""),os=!0,setTimeout(()=>this.we&&this.we())}setState(t){if(!this.html5)throw es("nostate","History API state support is available only in HTML5 mode");return this.$$state=b(t)?null:t,os=!0,this}getState(){return this.$$state}parseLinkUrl(t,n){if(this.html5){if(n&&"#"===n[0])return this.setHash(n.slice(1)),!0;let e,i,r;return y(e=as(this.appBase,t))?(i=e,r=this.basePrefix&&y(e=as(this.basePrefix,e))?this.appBaseNoFile+(as("/",e)||e):this.appBase+i):y(e=as(this.appBaseNoFile,t))?r=this.appBaseNoFile+e:this.appBaseNoFile===`${t}/`&&(r=this.appBaseNoFile),r&&this.parse(r),!!r}return ls(this.appBase)===ls(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const n=as(this.appBaseNoFile,t);if(!_(n))throw es("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);hs(n,!0),is||(is="/"),this.ve()}else{const e=as(this.appBase,t)||as(this.appBaseNoFile,t);let i;function r(t,n,e){const i=/^\/[A-Z]:(\/.*)/;if(Ot(n,e)&&(n=n.replace(e,"")),i.exec(n))return t;const r=i.exec(t);return r?r[1]:t}b(e)||"#"!==e.charAt(0)?this.html5?i=e:(i="",b(e)&&(this.appBase=t)):(i=as(this.hashPrefix,e),b(i)&&(i=e)),hs(i,!1),is=r(is,i,this.appBase),this.ve()}}}class us{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.be=[],this.ye=!1,this.ke=null,this.Ee=null,this.Se=window.location.href,this.cacheState()}setUrl(t,n){if(void 0===n&&(n=null),t){if(t=new URL(t).href,this.Se===t&&this.Ee===n)return this;this.Se=t,this.Ee=n,history.pushState(n,"",t),this.cacheState()}return this}getBrowserUrl(){return Hn(window.location.href)}state(){return this.ke}cacheState(){const t=history.state??null;G(t,this.lastCachedState)||(this.ke=t,this.lastCachedState=t,this.Ee=t)}#t(){const t=this.Ee;this.cacheState(),this.Se===this.getBrowserUrl()&&t===this.ke||(this.Se=this.getBrowserUrl(),this.Ee=this.ke,this.be.forEach(t=>{t(Hn(window.location.href),this.ke)}))}#n(t){this.ye||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.ye=!0),this.be.push(t)}$get=[jt.J,jt.Z,jt.D,(t,n,e)=>{const i=dn(),r=Hn(window.location.href);let s;if(this.html5ModeConf.enabled){if(!i&&this.html5ModeConf.requireBase)throw es("nobase","$location in HTML5 mode requires a <base> tag to be present!");s=function(t){const n=t.indexOf("//")+2,e=t.indexOf("/",n);return-1===e?t:t.substring(0,e)}(r)+(i||"/")}else s=ls(r);const o=(c=s).substring(0,ls(c).lastIndexOf("/")+1);var c;const u=new cs(s,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`);u.parseLinkUrl(r,r),u.$$state=this.state();const h=/^\s*(javascript|mailto):/i,a=(t,n)=>{const i=u.getUrl(),r=u.$$state;try{this.setUrl(t,n),u.$$state=this.state()}catch(t){u.setUrl(i),u.$$state=r,e(t)}};n.addEventListener("click",t=>{const{rewriteLinks:e}=this.html5ModeConf;if(!e||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let i=t.target;for(;"a"!==i.nodeName.toLowerCase();)if(i===n||!(i=i.parentElement))return;if(_(e)&&b(i.getAttribute(e)))return;let r=i.href;const s=i.getAttribute("href")||i.getAttribute("xlink:href");S(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=new URL(r.animVal).href),h.test(r)||!r||i.getAttribute("target")||t.defaultPrevented||u.parseLinkUrl(r,s)&&t.preventDefault()}),u.absUrl!==r&&this.setUrl(u.absUrl,!0);let l=!0;this.#n((n,e)=>{Ot(n,o)?queueMicrotask(()=>{const i=u.absUrl,r=u.$$state;u.parse(n),u.$$state=e;const{defaultPrevented:s}=t.$broadcast("$locationChangeStart",n,i,e,r);u.absUrl===n&&(s?(u.parse(i),u.$$state=r,a(i,r)):(l=!1,d(i,r)))}):window.location.href=n});const f=()=>{if(l||os){os=!1;const e=this.getBrowserUrl();let i=u.absUrl;const r=this.state(),s=(n=i,!(fs(e)===fs(n))||u.html5&&r!==u.$$state);(l||s)&&(l=!1,setTimeout(()=>{i=u.absUrl;const{defaultPrevented:n}=t.$broadcast("$locationChangeStart",u.absUrl,e,u.$$state,r);u.absUrl===i&&(n?(u.parse(e),u.$$state=r):(s&&a(i,r===u.$$state?null:u.$$state),d(e,r)))}))}var n};return u.we=f,f(),t.$on("$updateBrowser",f),u;function d(n,e){t.$broadcast("$locationChangeSuccess",u.absUrl,n,u.$$state,e)}}]}function hs(t,n){if(/^\s*[\\/]{2,}/.test(t))throw es("badpath",'Invalid url "{0}".',t);const e="/"!==t.charAt(0);e&&(t=`/${t}`);const i=Fn(t),r=e&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;is=function(t,n){const e=t.split("/");let i=e.length;for(;i--;)e[i]=decodeURIComponent(e[i]),n&&(e[i]=e[i].replace(/\//g,"%2F"));return e.join("/")}(r,n),rs=it(i.search),ss=decodeURIComponent(i.hash),is&&"/"!==is.charAt(0)&&(is=`/${is}`)}function as(t,n){if(Ot(n,t))return n.substring(t.length)}function ls(t){const n=t.indexOf("#");return-1===n?t:t.substring(0,n)}function fs(t){const n=document.createElement("a");n.href=t;let e=n.href;return e.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(e)&&(e=e.slice(0,-1)),e.endsWith("#")&&(e=e.slice(0,-1)),e}class ds{constructor(){this.debug=!1,this._e=null}setLogger(t){this._e=t}xe(t){return T(t)&&t.stack&&(t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack),t}Oe(t){const n=window.console||{},e=n[t]||n.log||(()=>{});return(...t)=>{const i=t.map(t=>this.xe(t));return e.apply(n,i)}}$get(){return this._e?this._e():{log:this.Oe("log"),info:this.Oe("info"),warn:this.Oe("warn"),error:this.Oe("error"),debug:(()=>{const t=this.Oe("debug");return(...n)=>{this.debug&&t.apply(this,n)}})()}}}const ms=pt("$parse"),ps={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},$s=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" ")),gs=10,ws=11;class vs{constructor(t){this.Ce=t}compile(t){const n=bs(t,this.Ce),{body:e}=n,i=function(t){const n=t.body[0];if(1===t.body.length&&n?.expression&&ys(n.expression))return{type:3,left:n.expression,right:{type:17},operator:"="}}(n);let r;i&&(r=this.#e(i));const s=function(t){if(1!==t.length)return;const n=t[0].expression,e=n.toWatch;return 1!==e.length||e[0]!==n?e:void 0}(e);let o;if(s){o=[];for(const[t,n]of St(s)){const e=this.#e(n);n.input=e,o.push(e),n.watchId=t}}const c=[];e.forEach(t=>{c.push(this.#e(t.expression))});const u=0===e.length?()=>{}:1===e.length?c[0]:function(t,n){let e;for(let i=0;i<c.length;i++)e=c[i](t,n);return e};return r&&(u.un=(t,n,e)=>r(t,e,n)),o&&(u.hn=o),u.pe=n,u}#e(t,n,e){let i,r;const s=this;let o;switch(t.type){case ws:return this.value(t.value,n);case 7:return r=this.#e(t.argument),this[`unary${t.operator}`](r,n);case 6:case 5:return i=this.#e(t.left),r=this.#e(t.right),this[`binary${t.operator}`](i,r,n);case 4:return this["ternary?:"](this.#e(t.test),this.#e(t.alternate),this.#e(t.consequent),n);case gs:return s.identifier(t.name,n,e);case 9:return i=this.#e(t.object,!1,!!e),t.computed||(r=t.property.name),t.computed&&(r=this.#e(t.property)),t.computed?this.#i(i,r,n,e):this.nonComputedMember(i,r,n,e);case 8:return o=[],t.arguments.forEach(t=>{o.push(s.#e(t))}),t.filter&&(r=this.Ce(t.callee.name)),t.filter||(r=this.#e(t.callee,!0)),t.filter?(t,e,i)=>{const s=[];for(let n=0;n<o.length;++n){const r=o[n](t&&m(t),e,i);s.push(r)}const c=()=>r.apply(void 0,s);return n?{context:void 0,name:void 0,value:c}:c()}:(t,e,i)=>{const s=r(t.$target?t.$target:t,e,i);let c;if(!O(s.value)&&R(s.value)){const n=[];for(let r=0;r<o.length;++r){const s=o[r](t,e,i);n.push(R(s)?s():s)}c=s.value.apply(s.context,n)}return n?{value:c}:c};case 3:return i=this.#e(t.left,!0,1),r=this.#e(t.right),(t,e,s)=>{const o=i(t,e,s),c=r(t,e,s);return(d(o.context)?o.context:o.context.$proxy??o.context)[o.name]=c,n?{value:c}:c};case 12:return o=[],t.elements.forEach(t=>{o.push(s.#e(t))}),(t,e,i)=>{const r=[];for(let n=0;n<o.length;++n)r.push(o[n](t,e,i));return n?{value:r}:r};case 14:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:s.#e(t.key),computed:!0,value:s.#e(t.value)}):o.push({key:t.key.type===gs?t.key.name:`${t.key.value}`,computed:!1,value:s.#e(t.value)})}),(t,e,i)=>{const r={};for(let n=0;n<o.length;++n)o[n].computed?r[o[n].key(t,e,i)]=o[n].value(t,e,i):r[o[n].key]=o[n].value(t,e,i);return n?{value:r}:r};case 15:return t=>n?{value:t}:t.$proxy;case 16:return(t,e)=>n?{value:e}:e;case 17:return(t,e,i)=>n?{value:i}:i}}"unary+"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?+s:0,n?{value:s}:s}}"unary-"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?-s:-0,n?{value:s}:s}}"unary!"(t,n){return(e,i,r)=>{const s=!t(e,i,r);return n?{value:s}:s}}"binary+"(t,n,e){return(i,r,s)=>{const o=function(t,n){return void 0===t||S(t)?n:void 0===n||S(n)?t:t+n}(t(i,r,s),n(i,r,s));return e?{value:o}:o}}"binary-"(t,n,e){return(i,r,s)=>{const o=t(i,r,s),c=n(i,r,s),u=(y(o)?o:0)-(y(c)?c:0);return e?{value:u}:u}}"binary*"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)*n(i,r,s);return e?{value:o}:o}}"binary/"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)/n(i,r,s);return e?{value:o}:o}}"binary%"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)%n(i,r,s);return e?{value:o}:o}}"binary==="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)===n(i,r,s);return e?{value:o}:o}}"binary!=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!==n(i,r,s);return e?{value:o}:o}}"binary=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)==n(i,r,s);return e?{value:o}:o}}"binary!="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!=n(i,r,s);return e?{value:o}:o}}"binary<"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<n(i,r,s);return e?{value:o}:o}}"binary>"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>n(i,r,s);return e?{value:o}:o}}"binary<="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<=n(i,r,s);return e?{value:o}:o}}"binary>="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>=n(i,r,s);return e?{value:o}:o}}"binary&&"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)&&n(i,r,s);return e?{value:o}:o}}"binary||"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)||n(i,r,s);return e?{value:o}:o}}"ternary?:"(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o)?n(r,s,o):e(r,s,o);return i?{value:c}:c}}value(t,n){return()=>n?{context:void 0,name:void 0,value:t}:t}identifier(t,n,e){return(i,r)=>{const s=r&&t in r?r:(i&&i.$proxy)??i;let o;return e&&1!==e&&s&&O(s[t])&&(s[t]={}),s&&(o=m(s)[t]),n?{context:s,name:t,value:o}:o}}#i(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);let u,h;return O(c)||(u=n(r,s,o),u=function(t){return`${t}`}(u),i&&1!==i&&c&&!c[u]&&(c[u]={}),h=c[u]),e?{context:c,name:u,value:h}:h}}nonComputedMember(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);i&&1!==i&&c&&O(c[n])&&(c[n]={});const u=O(c)?void 0:c[n];return e?{context:c,name:n,value:u}:u}}}function bs(t,n,e){let i,r,s;const o=t;let c,u,h,a,l,f,d,m;const p=o.isPure=!!function(t,n){switch(t.type){case 9:if(t.computed)return!1;break;case 7:return 1;case 6:return"+"!==t.operator&&1;case 8:return!1}return void 0===n?2:n}(t,e);switch(t.type){case 1:return i=!0,o.body.forEach(t=>{const e=bs(t.expression,n,p);i=i&&e.constant}),o.constant=i,o;case ws:return o.constant=!0,o.toWatch=[],o;case 7:{const t=bs(o.argument,n,p);return o.constant=t.constant,o.toWatch=t.toWatch||[],o}case 6:return c=bs(o.left,n,p),u=bs(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=c.toWatch.concat(u.toWatch),o;case 5:return c=bs(o.left,n,p),u=bs(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=o.constant?[]:[t],o;case 4:return h=bs(t.test,n,p),a=bs(t.alternate,n,p),l=bs(t.consequent,n,p),o.constant=h.constant&&a.constant&&l.constant,o.toWatch=o.constant?[]:[t],o;case gs:return o.constant=!1,o.toWatch=[t],o;case 9:return f=bs(t.object,n,p),t.computed&&(d=bs(t.property,n,p)),o.constant=f.constant&&(!o.computed||d.constant),o.toWatch=o.constant?[]:[t],o;case 8:return s=t.filter,i=s,r=[],t.arguments.forEach(t=>{const e=bs(t,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=s?r:[o],o;case 3:return c=bs(t.left,n,p),u=bs(t.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=[o],o;case 12:return i=!0,r=[],t.elements.forEach(t=>{const e=bs(t,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=r,o;case 14:return i=!0,r=[],t.properties.forEach(t=>{const e=bs(t.value,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch),t.computed&&(m=bs(t.key,n,!1),i=i&&m.constant,r.push.apply(r,e.toWatch))}),o.constant=i,o.toWatch=r,o;case 15:case 16:return o.constant=!1,o.toWatch=[],o;default:throw new Error(`Unknown AST node type: ${t.type}`)}}function ys(t){return t.type===gs||9===t.type}const ks=pt("$parse"),Es={true:!0,false:!1,null:null,undefined:void 0};class Ss{constructor(t){this.je=t,this.Ae={this:{type:15},$locals:{type:16}},this.Te=0}Re(t){this.Me=t,this.Pe=this.je.Ie(t);const n=this.De();return this.Pe.length>this.Te&&this.Ne("is an unexpected token",this.Pe[this.Te]),n}De(){const t=[];let n=!0;for(;n;)this.Pe&&this.Pe.length>this.Te&&!this.qe("}",")",";","]")&&t.push(this.Ue()),this.Ve(";")||(n=!1);return{type:1,body:t}}Ue(){return{type:2,expression:this.Fe()}}Fe(){let t=this.Le();for(;this.Ve("|");)t=this.N(t);return t}Le(){let t=this.He();if(this.Ve("=")){if(!ys(t))throw ks("lval","Trying to assign a value to a non l-value");t={type:3,left:t,right:this.Le(),operator:"="}}return t}He(){const t=this.Be();if(this.Ve("?")){const n=this.Le();if(this.ze(":"))return{type:4,test:t,alternate:n,consequent:this.Le()}}return t}Be(){let t=this.We();for(;this.Ve("||");)t={type:5,operator:"||",left:t,right:this.We()};return t}We(){let t=this.Je();for(;this.Ve("&&");)t={type:5,operator:"&&",left:t,right:this.Je()};return t}Je(){let t,n=this.Ze();for(;t=this.Ve("==","!=","===","!==");)n={type:6,operator:t.text,left:n,right:this.Ze()};return n}Ze(){let t,n=this.Ge();for(;t=this.Ve("<",">","<=",">=");)n={type:6,operator:t.text,left:n,right:this.Ge()};return n}Ge(){let t,n=this.Ke();for(;t=this.Ve("+","-");)n={type:6,operator:t.text,left:n,right:this.Ke()};return n}Ke(){let t,n=this.Xe();for(;t=this.Ve("*","/","%");)n={type:6,operator:t.text,left:n,right:this.Xe()};return n}Xe(){let t;return(t=this.Ve("+","-","!"))?{type:7,operator:t.text,prefix:!0,argument:this.Xe()}:this.Ye()}Ye(){let t,n;for(this.Ve("(")?(t=this.Fe(),this.ze(")")):this.Ve("[")?t=this.Qe():this.Ve("{")?t=this.ti():kt(this.Ae,this.qe().text)?t=structuredClone(this.Ae[this.ze().text]):kt(Es,this.qe().text)?t={type:ws,value:Es[this.ze().text]}:this.qe().identifier?t=this.ni():this.qe().constant?t=this.ei():this.Ne("not a primary expression",this.qe());n=this.Ve("(","[",".");)if("("===n.text)t={type:8,callee:t,arguments:this.ii()},this.ze(")");else if("["===n.text)t={type:9,object:t,property:this.Le(),computed:!0},this.ze("]");else{if("."!==n.text)throw new Error("IMPOSSIBLE");t={type:9,object:t,property:this.ni(),computed:!1}}return t}N(t){const n=[t],e={type:8,callee:this.ni(),arguments:n,filter:!0};for(;this.Ve(":");)n.push(this.Le());return e}ii(){const t=[];if(")"!==this.ri().text)do{t.push(this.Fe())}while(this.Ve(","));return t}ni(){const t=this.ze();return t.identifier||this.Ne("is not a valid identifier",t),{type:gs,name:t.text}}ei(){return{type:ws,value:this.ze().value}}Qe(){const t=[];if("]"!==this.ri().text)do{if(this.qe("]"))break;t.push(this.Le())}while(this.Ve(","));return this.ze("]"),{type:12,elements:t}}ti(){const t=[];let n;if("}"!==this.ri().text)do{if(this.qe("}"))break;n={type:13,kind:"init"},this.qe().constant?(n.key=this.ei(),n.computed=!1,this.ze(":"),n.value=this.Le()):this.qe().identifier?(n.key=this.ni(),n.computed=!1,this.qe(":")?(this.ze(":"),n.value=this.Le()):n.value=n.key):this.qe("[")?(this.ze("["),n.key=this.Le(),this.ze("]"),n.computed=!0,this.ze(":"),n.value=this.Le()):this.Ne("invalid key",this.qe()),t.push(n)}while(this.Ve(","));return this.ze("}"),{type:14,properties:t}}Ne(t,n){throw ks("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",n.text,t,n.index+1,this.Me,this.Me?.substring(n.index))}ze(t){if(this.Pe&&this.Pe.length===this.Te)throw ks("ueoe","Unexpected end of expression: {0}",this.Me);return(y(t)?this.Ve(t):this.Ve())||void this.Ne(`is unexpected, expecting [${t}]`,this.qe())}ri(){if(this.Pe&&this.Pe.length!==this.Te)return this.Pe[this.Te];throw ks("ueoe","Unexpected end of expression: {0}",this.Me)}qe(...t){const n=this.Pe&&this.Pe[this.Te];if(!n)return!1;const e=t.length;if(!e)return n;const i=n.text;if(1===t.length)return t[0]===i&&n;for(let r=0;r<e;r++)if(t[r]===i||!t[r])return n;return!1}Ve(...t){const n=this.qe(...t);return!!n&&(this.Te++,n)}}class _s{constructor(t,n){this.Re=new Ss(t),this.si=new vs(n)}B(t){t=t.trim();const n=this.Re.Re(t),e=this.si.compile(n);return e.zt=function(t){const{body:n}=t;if(!n||1!==n.length)return!0;if(!n||1!==n.length)return!0;switch(n[0].expression?.type){case ws:case 12:case 14:return!0;default:return!1}}(n),e.constant=!!n.constant,e}}const xs=new class{constructor(){this.Me="",this.Te=0}Ie(t){for(this.Me=t,this.Te=0,this.Pe=[];this.Te<this.Me.length;){const t=this.Me.charAt(this.Te);if('"'===t||"'"===t)this.oi(t);else if(this.ci(t)||"."===t&&this.ci(this.qe()))this.ui();else if(this.hi(this.ai()))this.li();else if(this.fi(t,"(){}[].,;:?"))this.Pe.push({index:this.Te,text:t}),this.Te++;else if(this.di(t))this.Te++;else{const n=t+this.qe(),e=n+this.qe(2),i=$s.has(t),r=$s.has(n),s=$s.has(e);if(i||r||s){const i=s?e:r?n:t;this.Pe.push({index:this.Te,text:i,operator:!0}),this.Te+=i.length}else this.Ne("Unexpected next character ",this.Te,this.Te+1)}}return this.Pe}fi(t,n){return-1!==n.indexOf(t)}qe(t){const n=t||1;return this.Te+n<this.Me.length&&this.Me.charAt(this.Te+n)}ci(t){return t>="0"&&t<="9"&&"string"==typeof t}di(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}hi(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}mi(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}ai(){const t=this.Me.charAt(this.Te),n=this.qe();if(!n)return t;const e=t.charCodeAt(0),i=n.charCodeAt(0);return e>=55296&&e<=56319&&i>=56320&&i<=57343?t+n:t}pi(t){return"-"===t||"+"===t||this.ci(t)}Ne(t,n,e){e=e||this.Te;const i=y(n)?`s ${n}-${this.Te} [${this.Me.substring(n,e)}]`:` ${e}`;throw ms("lexerr",`Lexer Error: ${t} at column${i} in expression [${this.Me}].`)}ui(){let t="";const n=this.Te;for(;this.Te<this.Me.length;){const n=this.Me.charAt(this.Te).toLowerCase();if("."===n||this.ci(n))t+=n;else{const e=this.qe();if("e"===n&&this.pi(e))t+=n;else if(this.pi(n)&&e&&this.ci(e)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.pi(n)||e&&this.ci(e)||"e"!==t.charAt(t.length-1))break;this.Ne("Invalid exponent")}}this.Te++}this.Pe.push({index:n,text:t,constant:!0,value:Number(t)})}li(){const t=this.Te;for(this.Te+=this.ai().length;this.Te<this.Me.length;){const t=this.ai();if(!this.mi(t))break;this.Te+=t.length}this.Pe.push({index:t,text:this.Me.slice(t,this.Te),identifier:!0})}oi(t){const n=this.Te;let e="",i=!1;for(this.Te++;this.Te<this.Me.length;){const r=this.Me[this.Te];if(i)e+="u"===r?this.$i():ps[r]||r,i=!1;else if("\\"===r)i=!0;else{if(r===t)return this.Pe.push({index:n,text:this.Me.slice(n,this.Te+1),constant:!0,value:e}),void this.Te++;e+=r}this.Te++}this.Ne("Unterminated quote",n)}$i(){const t=this.Me.substring(this.Te+1,this.Te+5);return t.match(/[\da-f]{4}/i)||this.Ne(`Invalid unicode escape [\\u${t}]`),this.Te+=4,String.fromCharCode(parseInt(t,16))}};class Os{constructor(){const t=Object.create(null);this.$get=[jt.N,function(n){return function(e,i){let r;return Pn(e,"exp"),e=e.trim(),r=t[e],r||(r=new _s(xs,n).B(e)),function(t,n){if(!n)return t;const e=function(e,i,r){if(e?.getter)return;const s=t(e,i,r),o=R(s)?s():s;return n(m(o))};return e.gi=n,e.zt=t.zt,e.constant=t.constant,e.pe=t.pe,e}(r,i)}}]}}let Cs,js,As=0;const Ts=[];class Rs{constructor(){this.rootScope=Ms()}$get=[jt.D,jt.B,(t,n)=>(js=t,Cs=n,this.rootScope)]}function Ms(t={},n){if(!S(t)||function(t){if(null==t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t)return!0;if(!0===t.$nonscope||!0===t?.constructor?.$nonscope)return!0;if(t===Ps.window||t===Ps.document||t===Ps.self||t===Ps.frames)return!0;const n=[Window,Document,Element,Node,EventTarget,Promise,HTMLCollection,NodeList,Event,Date,RegExp,Map,Set,WeakMap,WeakSet,ArrayBuffer,DataView,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array,Function,Error,Blob,File,FormData,URL,URLSearchParams];for(const e of n)try{if(t instanceof e)return!0}catch{}try{return Object.prototype.toString.call(t)===Is}catch{return!1}}(t))return t;const e=new Proxy(t,n||new Ds),i=Et(t),r=k(t.constructor?.$nonscope)?t.constructor.$nonscope:null,s=k(t.$nonscope)?t.$nonscope:null;for(let n=0,o=i.length;n<o;n++){const o=i[n];r?.includes(o)||s?.includes(o)||(t[o]=Ms(t[o],e.$handler))}return e}const Ps=globalThis,Is="[object Window]";class Ds{constructor(t,n){this.an=t?.an??new Map,this.wi=new Map,this.bi=t?.bi??new Map,this.yi=t?.yi??new Set,this.ki=t?.ki??new WeakMap,this.$proxy,this.$handler=this,this.$target=null,this.Ei=[],this.$id=(As+=1,As),this.$root=t?t.$root:this,this.$parent=n||(this.$root===this?void 0:t),this.cn=!1,this.Si=[],this.$scopename=void 0,this.propertyMap={$apply:this.$apply.bind(this),$broadcast:this.$broadcast.bind(this),Ei:this.Ei,$destroy:this.$destroy.bind(this),$emit:this.$emit.bind(this),$eval:this.$eval.bind(this),$flushQueue:this.$flushQueue.bind(this),$getById:this.$getById.bind(this),$handler:this,$id:this.$id,$isRoot:this.#r.bind(this),$merge:this.$merge.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$on:this.$on.bind(this),$parent:this.$parent,$postUpdate:this.$postUpdate.bind(this),$proxy:this.$proxy,$root:this.$root,$scopename:this.$scopename,$searchByName:this.$searchByName.bind(this),$transcluded:this.$transcluded.bind(this),$watch:this.$watch.bind(this)}}set(t,n,e,i){if("undefined"===n)return!1;if("$scopename"===n)return this.$scopename=e,!0;const r=t.constructor?.$nonscope??t.$nonscope;if(k(r)&&r.includes(n))return t[n]=e,!0;this.$proxy=i,this.$target=t;const s=t[n];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(e))return!0;if(s&&s[f]){if(k(e)){if(s!==e){const t=this.an.get(n);t&&this.#s(t);const e=this.bi.get(n);e&&this.#s(e)}return this.ki.get(t[n])&&this.ki.delete(t[n]),t[n]=Ms(e,this),this.ki.set(t[n],[n]),!0}if(S(e)){if(kt(t,n)){const t=Et(s);for(const n of t)e[n]||delete s[n]}if(s!==e){const t=this.an.get(n);t&&this.#s(t);const i=this.bi.get(n);i&&this.#s(i),this.#o(e)}return t[n]=Ms(e,this),!0}if(b(e)){let e=!1;const i=Et(s.$target),r=s.$target;let o=0;for(;o<i.length;o++){const t=i[o],n=r[t];n&&n[f]&&(e=!0),delete s[t]}if(t[n]=void 0,!e){const t=this.an.get(n);t&&this.#s(t)}return!0}if(y(e)){t[n]=e;const r=this.an.get(n);if(r&&this.#s(r),k(t)&&this.ki.has(i)&&"length"!==n){const t=this.ki.get(i);for(let n=0,e=t.length;n<e;n++){const e=this.an.get(t[n]);e&&this.#s(e)}}return!0}return!0}if(b(t[n])&&d(e)&&(this.yi.add(e),t[n]=e,!this.an.has(n)))return!0;if(b(e)?t[n]=e:t[n]=Ms(e,this),s!==e){let i=this.$target;const r=[];if(b(s)&&S(t[n])){this.ki.has(t[n])||this.ki.set(t[n],[n]);const s=Et(e);for(let t=0,n=s.length;t<n;t++){const n=s[t],e=this.an.get(n);if(e)for(let t=0,n=e.length;t<n;t++)r.push(e[t])}i=e}if(k(t)){const t=this.an.get("length");if(t)for(let n=0,e=t.length;n<e;n++)r.push(t[n])}const o=this.an.get(n);if(o)for(let t=0,n=o.length;t<n;t++)r.push(o[t]);r.length>0&&this.#s(r,t=>{const n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!r.watchProp){n.push(r);continue}const s=r.watchProp.split(".").slice(0,-1).join("."),o=Cs(s)(r.originalTarget);i===o?.$target&&n.push(r)}return n});let c=this.bi.get(n);if(!c&&this.$parent?.bi&&(c=this.$parent.bi.get(n)),c){let t=c;const n=this.$target.i;if(n){t=[];for(let e=0,i=c.length;e<i;e++){const i=c[e];i.originalTarget.i===n&&t.push(i)}}t.length>0&&this.#s(t)}}if(this.ki.has(i)&&"length"!==n){const t=this.ki.get(i);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.Si!==i&&this.#s(i)}}return!0}get(t,n,e){if("$scopename"===n&&this.$scopename)return this.$scopename;if("$$watchersCount"===n)return function(t){const n=function(t){const n=new Set,e=[t];for(;e.length;){const t=e.pop();if(!n.has(t.$id)&&(n.add(t.$id),t.Ei))for(let n=0,i=t.Ei.length;n<i;n++)e.push(t.Ei[n])}return n}(t);let e=0;for(const i of t.an.values())for(let t=0,r=i.length;t<r;t++)n.has(i[t].scopeId)&&e++;return e}(this);if(n===f)return!0;const i=t[n];if(d(i)?this.$proxy=i:this.$proxy=e,this.propertyMap.$target=t,this.propertyMap.$proxy=e,k(t)&&["pop","shift","unshift"].includes(n)){if(this.ki.has(e)){const t=this.ki.get(e);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&(this.Si=i)}}"unshift"===n&&this.#s(this.Si)}return kt(this.propertyMap,n)?(this.$target=t,this.propertyMap[n]):i}deleteProperty(t,n){if(t[n]&&t[n][f]){t[n]=void 0;const e=this.an.get(n);if(e&&this.#s(e),this.ki.has(this.$proxy)){const t=this.ki.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.#s(i)}}return this.Si&&(this.#s(this.Si),this.Si=[]),!0}if(delete t[n],this.ki.has(this.$proxy)){const t=this.ki.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.#s(i)}}else{const e=this.an.get(n);e&&this.#s(e,t[n])}return!0}#o(t){b(t)||Et(t).forEach(n=>{const e=this.an.get(n);e&&this.#s(e),S(t[n])&&this.#o(t[n])})}#s(t,n=t=>t){queueMicrotask(()=>{let e=0;const i=n(t);for(;e<i.length;){const t=i[e];this.#c(t,this.$target),e++}})}$watch(t,n,e=!1){at(_(t),"Watched property required"),t=t.trim();const i=Cs(t);if(i.constant)return n&&queueMicrotask(()=>{let t=i();for(;R(t);)t=t();n(t,this.$target)}),()=>{};const r=i.pe.body[0].expression;if(!n){let t=i(this.$target);for(;R(t);)t=t(this.$target);return}const s={originalTarget:this.$target,listenerFn:n,watchFn:i,scopeId:this.$id,id:g(),property:[]};let o=r.name;const c=[],{type:u}=r;switch(u){case 3:o=r.left?.name;break;case 4:o=(r.toWatch[0]?.test)?.name,s.property.push(o);break;case 5:{const t=[r.left.toWatch[0]?.name,r.right.toWatch[0]?.name];for(let n=0,e=t.length;n<e;n++){const e=t[n];e&&this.#u(e,s)}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];this.#h(e,s.id)}}}case 6:if(r.isPure){const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;if(!i)throw new Error("Unable to determine key");this.#u(i,s),this.#s([s])}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;this.#h(i,s.id)}}}case 7:{const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}case 8:{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&(this.#u(e.name,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&this.#h(e.name,s.id)}}}case 9:if(o=r.property.name,o||(o=r.object.name),s.property.push(o),t!==o){s.watchProp=t;const n=Cs(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(n&&this.yi.has(n))return n.$handler._i(o,s),n.$handler.#s([s]),()=>(n.$handler.xi(o,s.id),n.$handler.#h(o,s.id))}break;case gs:s.property.push(r.name);break;case 12:{const{elements:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0]?.name;i&&(this.#u(i,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0].name;i&&this.#h(i,s.id)}}}case 14:{const{properties:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];let i;if(!1===e.key.isPure)i=e.key.name;else if(e.value?.name)i=e.value.name;else{const t=r.toWatch[0];i=t.property?t.property.name:t.name}i&&(c.push(i),s.property.push(i))}break}default:throw new Error(`Unsupported type ${u}`)}const h=s.watchFn(this.$target);if(S(h)&&this.ki.set(h,[o]),c.length>0)for(let t=0,n=c.length;t<n;t++)this.#u(c[t],s);else this.#u(o,s);return e||this.#s([s]),()=>{if(c.length>0){let t=!0;for(let n=0,e=c.length;n<e;n++)this.#h(c[n],s.id)||(t=!1);return t}return this.#h(o,s.id)}}$new(t){let n;if(t){const e=Object.getPrototypeOf(t);e===Object.prototype||e===this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(e||t,this.$target),n=t}else n=Object.create(this.$target);const e=new Proxy(n,new Ds(this));return this.Ei.push(e),e}$newIsolate(t){const n=t?Object.create(t):Object.create(null),e=new Proxy(n,new Ds(this,this.$root));return this.Ei.push(e),e}$transcluded(t){const n=Object.create(this.$target),e=new Proxy(n,new Ds(this,t));return this.Ei.push(e),e}#u(t,n){this.an.has(t)?this.an.get(t).push(n):this.an.set(t,[n])}_i(t,n){this.bi.has(t)?this.bi.get(t).push(n):this.bi.set(t,[n])}#h(t,n){const e=this.an.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.an.set(t,e):this.an.delete(t),!0)}xi(t,n){const e=this.bi.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.bi.set(t,e):this.bi.delete(t),!0)}$eval(t,n){const e=Cs(t)(this,n);return b(e)||null===e||e.name===Object.hasOwnProperty.name?e:R(e)?e():Number.isNaN(e)?0:e}$merge(t){const n=St(t);for(let t=0,e=n.length;t<e;t++){const[e,i]=n[t];this.set(this.$target,e,i,this.$proxy)}}$apply(t){try{return Cs(t)(this.$proxy)}catch(t){return js(t)}}$on(t,n){let e=this.wi.get(t);return e||(e=[],this.wi.set(t,e)),e.push(n),()=>{const i=e.indexOf(n);-1!==i&&(e.splice(i,1),0===e.length&&this.wi.delete(t))}}$emit(t,...n){return this.#a({name:t,event:void 0,broadcast:!1},...n)}$broadcast(t,...n){return this.#a({name:t,event:void 0,broadcast:!0},...n)}#a({name:t,event:n,broadcast:e},...i){if(!e&&!this.wi.has(t))return this.$parent?this.$parent.$handler.#a({name:t,event:n,broadcast:e},...i):void 0;n?n.currentScope=this.$proxy:n=n||{name:t,targetScope:this.$proxy,currentScope:this.$proxy,stopped:!1,stopPropagation(){n.stopped=!0},preventDefault(){n.defaultPrevented=!0},defaultPrevented:!1};const r=Y([n],[n].concat(i),1),s=this.wi.get(t);if(s){let{length:t}=s;for(let n=0;n<t;n++)try{s[n].apply(null,r);const e=s.length;e!==t&&(e<t&&n--,t=e)}catch(t){js(t)}}return n.currentScope=null,n.stopped?n:e?(this.Ei.length>0&&this.Ei.forEach(r=>{n=r.$handler.#a({name:t,event:n,broadcast:e},...i)}),n):this.$parent?this.$parent.#a({name:t,event:n,broadcast:e},...i):n}#r(){return this.$root===this}$postUpdate(t){Ts.push(t)}$destroy(){if(!this.cn){this.$broadcast("$destroy");for(const[t,n]of this.an){for(let t=n.length-1;t>=0;t--)n[t].scopeId===this.$id&&n.splice(t,1);0===n.length?this.an.delete(t):this.an.set(t,n)}if(this.#r())this.an.clear();else{const t=this.$parent.Ei;for(let n=0,e=t.length;n<e;n++)if(t[n].$id===this.$id){t.splice(n,1);break}}this.wi.clear(),this.cn=!0}}#c(t,n){const{originalTarget:e,listenerFn:i,watchFn:r}=t;try{let t=r(e);if(b(t)&&(t=r(n)),R(t)&&(t=t(e)),k(t))for(let n=0,i=t.length;n<i;n++)R(t[n])&&(t[n]=t[n](e));for(i(t,e);Ts.length;)Ts.shift()()}catch(t){js(t)}}$flushQueue(){for(;Ts.length;)Ts.shift()()}$getById(t){if(_(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let n;for(const e of this.Ei){const i=e.$getById(t);if(i){n=i;break}}return n}}$searchByName(t){const n=[this.$root];for(;n.length;){const e=n.pop();if(e.$scopename===t)return e;if(e.Ei?.length)for(let t=e.Ei.length-1;t>=0;t--)n.push(e.Ei[t])}}}class Ns{httpOptions;$get=[jt.rt,jt.q,(t,n)=>e=>{let i=n.defaults?.transformResponse??null;k(i)?i=i.filter(t=>t!==Qn):i===Qn&&(i=null);const r=F({cache:t,transformResponse:i},this.httpOptions||{});return n.get(e,r).then(n=>(t.set(e,n.data),n.data),t=>Promise.reject(t))}]}class qs{constructor(){this.Oi=/^\s*(https?|s?ftp|mailto|tel|file):/,this.Ci=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return y(t)?(this.Oi=t,this):this.Oi}imgSrcSanitizationTrustedUrlList(t){return y(t)?(this.Ci=t,this):this.Ci}$get=[jt.ft,t=>(n,e)=>{if(!n)return n;const i=e?this.Ci:this.Oi,r=new URL(n.trim(),t.location.href).href;return""===r||r.match(i)?n:`unsafe:${r}`}]}const Us="ng-active",Vs="ng-inactive";class Fs{constructor(t,n,e,i){this.$element=t,this.$scope=n,this.$attrs=e,this.$animate=i,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watch(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const n=Hs(this.$scope,this.$attrs.ngMessagesMultiple)||Hs(this.$scope,this.$attrs.multiple),e=[],i={};let r=0,s=this.head,o=!1,c=0;for(;s;){c++;const u=s.message;let h=!1;o||St(t).forEach(([t,n])=>{if(Bs(n)&&!h&&(r++,u.test(t))){if(i[t])return;i[t]=!0,h=!0,u.attach()}}),h?o=!n:e.push(u),s=s.next}e.forEach(t=>{t.detach()});const u=e.length!==c,h=this.default&&!u&&r>0;h?this.default.attach():this.default&&this.default.detach(),u||h?this.$animate.setClass(this.$element,Us,Vs):this.$animate.setClass(this.$element,Vs,Us)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,n,e){if(e)this.default=n;else{const e=this.latestKey.toString();this.messages[e]={message:n},this.insertMessageNode(this.$element,t,e),t.ji=e,this.latestKey++}this.reRender()}deregister(t,n){if(n)delete this.default;else{const n=t.ji;delete t.ji,this.removeMessageNode(this.$element,t,n),delete this.messages[n]}this.reRender()}findPreviousMessage(t,n){let e=n;const i=[];for(;e&&e!==t;){const t=e.ji;if(t&&t.length)return this.messages[t];e.childNodes.length&&-1===i.indexOf(e)?(i.push(e),e=e.childNodes[e.childNodes.length-1]):e.previousSibling?e=e.previousSibling:(e=e.parentNode,i.push(e))}}insertMessageNode(t,n,e){const i=this.messages[e];if(this.head){const e=this.findPreviousMessage(t,n);e?(i.next=e.next,e.next=i):(i.next=this.head,this.head=i)}else this.head=i}removeMessageNode(t,n,e){const i=this.messages[e];if(!i)return;const r=this.findPreviousMessage(t,n);r?r.next=i.next:this.head=i.next}}function Ls(t){return{require:"ngMessages",restrict:"AE",controller:(n,e,i)=>new Fs(n,e,i,t)}}function Hs(t,n){return _(n)&&0===n.length||Bs(n&&t.$eval(n))}function Bs(t){return _(t)?t.length:!!t}function zs(t,n){return{restrict:"AE",require:"^^ngMessages",link(e,i,r){const s=r.ngMessagesInclude||r.src;t(s).then(t=>{e.cn||_(t)&&!t.trim()||n(t)(e,t=>{E(t,Node)&&i.after(t)})})}}}Ls.$inject=[jt.C],zs.$inject=[jt.ot,jt.T];const Ws=Gs(!1),Js=Gs(!1),Zs=Gs(!0);function Gs(t){function n(n){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(e,i,r,s,o){let c,u,h,a,l,f;if(!t){c=i,h=r.ngMessage||r.when,a=r.ngMessageExp||r.whenExp;const t=function(t){u=t?k(t)?t:t.split(/[\s,]+/):null,s.reRender()};a?(t(e.$eval(a)),e.$watch(a,t)):t(h)}s.register(c,f={test:t=>function(t,n){if(t)return k(t)?t.indexOf(n)>=0:kt(t,n)}(u,t),attach(){l||o((e,r)=>{n.enter(e,null,i),l=e;const o=l.$$attachId=s.getAttachId();l.addEventListener("$destroy",()=>{l&&l.$$attachId===o&&(s.deregister(c,t),f.detach()),r.$destroy()})})},detach(){if(l){const t=l;l=null,n.leave(t)}}},t),e.$on("$destroy",()=>{s.deregister(c,t)})}}}return n.$inject=[jt.C],n}const Ks="ngAriaDisable",Xs=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Ys=function(t,n){return-1!==n.indexOf(t.nodeName)};function Qs(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function n(n,e,i,r){return function(s,o,c){if(kt(c,Ks))return;const u=c.$normalize(e);!t[u]||Ys(o,i)||c[u]||s.$watch(c[n],t=>{t=r?!t:!!t,o.setAttribute(e,t)})}}this.config=function(n){t=F(t,n)},this.$get=function(){return{config:n=>t[n],$$watchExpr:n}}}function to(t){return t.$$watchExpr("ngDisabled","aria-disabled",Xs,!1)}function no(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function eo(){return{restrict:"A",require:"?ngMessages",link(t,n,e){kt(e,Ks)||n.hasAttribute("aria-live")||n.setAttribute("aria-live","assertive")}}}function io(t,n){return{restrict:"A",compile(e,i){if(kt(i,Ks))return;const r=n(i.ngClick);return(n,e,i)=>{Ys(e,Xs)||(t.config("bindRoleForClick")&&!e.hasAttribute("role")&&e.setAttribute("role","button"),t.config("tabindex")&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","0"),!t.config("bindKeydown")||i.ngKeydown||i.ngKeypress||i.ngKeyup||e.addEventListener("keydown",t=>{const e=parseInt(t.key,10);13!==e&&32!==e||(-1!==Xs.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),r(n,{$event:t}))}))}}}}function ro(t){return t.$$watchExpr("ngRequired","aria-required",Xs,!1)}function so(t){return t.$$watchExpr("ngChecked","aria-checked",Xs,!1)}function oo(t){return t.$$watchExpr("ngValue","aria-checked",Xs,!1)}function co(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function uo(t){return t.$$watchExpr("ngReadonly","aria-readonly",Xs,!1)}function ho(t){function n(n,e,i,r){return t.config(e)&&!i.getAttribute(n)&&(r||!Ys(i,Xs))&&("hidden"!==i.getAttribute("type")||"INPUT"!==i.nodeName)}function e(t,n){return!n.getAttribute("role")&&n.getAttribute("type")===t&&!Ys(n,Xs)}return{restrict:"A",require:"ngModel",priority:200,compile(i,r){if(kt(r,Ks))return;const s=function(t){const{type:n}=t,{role:e}=t;return"checkbox"===(n||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(n||e)||"menuitemradio"===e?"radio":"range"===n||"progressbar"===e||"slider"===e?"range":""}(r);return{post(i,r,o,c){const u=n("tabindex","tabindex",r,!1);switch(s){case"radio":case"checkbox":e(s,r)&&r.setAttribute("role",s),n("aria-checked","ariaChecked",r,!1)&&c.$watch("$modelValue","radio"===s?function(){r.setAttribute("aria-checked",(o.value==c.$viewValue).toString())}:function(){r.setAttribute("aria-checked",(!c.$isEmpty(c.$viewValue)).toString())}),u&&r.setAttribute("tabindex",0);break;case"range":if(e(s,r)&&r.setAttribute("role","slider"),t.config("ariaValue")){const t=!r.hasAttribute("aria-valuemin")&&(kt(o,"min")||kt(o,"ngMin")),n=!r.hasAttribute("aria-valuemax")&&(kt(o,"max")||kt(o,"ngMax")),e=!r.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{r.setAttribute("aria-valuemin",t)}),n&&o.$observe("max",t=>{r.setAttribute("aria-valuemax",t)}),e&&c.$watch("$modelValue",t=>{r.setAttribute("aria-valuenow",t)})}u&&r.setAttribute("tabindex",0)}!kt(o,"ngRequired")&&c.$validators.required&&n("aria-required","ariaRequired",r,!1)&&o.$observe("required",()=>{r.setAttribute("aria-required",(!!o.required).toString())}),n("aria-invalid","ariaInvalid",r,!0)&&c.$watch("$invalid",t=>{r.setAttribute("aria-invalid",(!!t).toString())})}}}}}function ao(t){return function(n,e,i){kt(i,Ks)||!t.config("tabindex")||e.hasAttribute("tabindex")||Ys(e,Xs)||e.setAttribute("tabindex",0)}}to.$inject=[jt.A],no.$inject=[jt.A],io.$inject=[jt.A,jt.B],ro.$inject=[jt.A],so.$inject=[jt.A],oo.$inject=[jt.A],co.$inject=[jt.A],uo.$inject=[jt.A],ho.$inject=[jt.A],ao.$inject=[jt.A];let lo=[],fo=!1;function mo(){const t=lo;lo=[],fo=!1;for(let n=0;n<t.length;n++)t[n]()}function po(t){lo.push(t),fo||(fo=!0,requestAnimationFrame(mo))}class $o{constructor(t={},n=!1){if(this.Ai=t,this.Ti=[],this.Y=0,this.Ri=null,n){const t=t=>{requestAnimationFrame(t)},n=t=>{setTimeout(t,0)};this.Mi=e=>{document.hidden?n(e):t(e)}}else this.Mi=po}setHost(t){this.Ai=t||{}}done(t){2===this.Y?t(!0):this.Ti.push(t)}progress(...t){this.Ai.progress?.(...t)}pause(){this.Ai.pause?.()}resume(){this.Ai.resume?.()}end(){this.Ai.end?.(),this.Pi(!0)}cancel(){this.Ai.cancel?.(),this.Pi(!1)}complete(t=!0){0===this.Y&&(this.Y=1,this.Mi(()=>this.Pi(t)))}Pi(t){if(2===this.Y)return;this.Y=2;const n=this.Ti;this.Ti=[];for(let e=0;e<n.length;e++)n[e]&&n[e](t)}getPromise(){return this.Ri||(this.Ri=new Promise((t,n)=>{this.done(e=>!1===e?n():t())})),this.Ri}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}static Ii(t,n){let e=0;const i=(r=!0)=>{!r||e>=t.length?n(r):t[e++].done(i)};i()}static Di(t,n){let e=t.length,i=!0;for(const r of t)r.done(t=>{!1===t&&(i=!1),0===--e&&n(i)})}}const go="$animId",wo=new class{#l=new Map;#f=0;Ni(t,n,e,i){const r=t.parentNode??t,s=[r[go]??(r[go]=++this.#f),n,t.getAttribute("class")];return e&&s.push(e),i&&s.push(i),s.join(" ")}qi(t){const n=this.#l.get(t);return!!n&&!n.isValid}Ui(){this.#l.clear()}Vi(t){return this.#l.get(t)?.total??0}Fi(t){return this.#l.get(t)?.value}Li(t,n,e){const i=this.#l.get(t);i?(i.total++,i.value=n):this.#l.set(t,{total:1,value:n,isValid:e})}},vo=new class{constructor(){this.Hi=[],this.Bi=null}zi(){if(this.Hi.length){for(;this.Hi.length;)this.Hi.shift()();this.Bi||(this.Bi=window.requestAnimationFrame(()=>{this.Bi=null,this.zi()}))}}Wi(t){this.Hi.push(...t),this.zi()}Ji(t){null!==this.Bi&&(window.cancelAnimationFrame(this.Bi),this.Bi=null),this.Bi=window.requestAnimationFrame(()=>{this.Bi=null,t(),this.zi()})}},bo=jt.j,yo=1e3,ko={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",transitionProperty:"transitionProperty",animationDuration:"animationDuration",animationDelay:"animationDelay",animationIterationCount:"animationIterationCount"},Eo={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",animationDuration:"animationDuration",animationDelay:"animationDelay"};function So(t,n){return[n?"animationDelay":"transitionDelay",`${t}s`]}function _o(t,n){const e=Object.create(null),i=window.getComputedStyle(t)||{};return St(n).forEach(([t,n])=>{let r=i[n];if(r){const n=r.charAt(0);("-"===n||"+"===n||n>=0)&&(r=function(t){let n=0;return t.split(/\s*,\s*/).forEach(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t}),n}(r)),0===r&&(r=null),e[t]=r}}),e}function xo(t){return 0===t||!O(t)}function Oo(t,n){let e="transition",i=`${t}s`;return n?e+="Duration":i+=" linear all",[e,i]}function Co(t,n,e){e.forEach(e=>{t[e]=y(t[e])?t[e]:n.style.getPropertyValue(e)})}function jo(){let t;this.$get=[function(){const n=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)},e=[];function i(t){e.push(t),vo.Ji(()=>{wo.Ui(),document.documentElement.getBoundingClientRect();for(let t=0;t<e.length;t++)e[t]();e.length=0})}function r(t,n,e){const i=function(t,n,e,i){let r=wo.Fi(n);r||(r=_o(t,i),"infinite"===r.animationIterationCount&&(r.animationIterationCount=1));const s=e||r.transitionDuration>0||r.animationDuration>0;return wo.Li(n,r,s),r}(t,n,e,ko),r=i.animationDelay,s=i.transitionDelay;return i.maxDelay=r&&s?Math.max(r,s):r||s,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(e,s){let o,c=s||{$$skipPreparationClasses:!1};c.$$prepared||(c=jr(structuredClone(c)));const u={},h=e;if(!h||!h.parentNode)return H();const a=[],l=function(t){return t?.to||t?.from?{to:t.to,from:t.from}:{}}(c);let f,d,m,p,$,g,w,v,b,y;const E=[];if(0===c.duration)return H();const S=c.event&&k(c.event)?c.event.join(" "):c.event,_=S&&c.structural;let x="",C="";_?x=Cr(S,"ng-",!0):S&&(x=S),c.addClass&&(C+=Cr(c.addClass,Er)),c.removeClass&&(C.length&&(C+=" "),C+=Cr(c.removeClass,Sr)),c.applyClassesEarly&&C.length&&n(e,c);let j=[x,C].join(" ").trim();const A=l.to&&Object.keys(l.to).length>0;if(!((c.keyframeStyle||"").length>0||A||j))return H();let T,R,M=wo.Ni(h,S,c.addClass,c.removeClass);if(wo.qi(M))return j=null,H();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,e,i){let r;const s=`stagger-${e}`;if(wo.Vi(e)>0&&(r=wo.Fi(s),!r)){const e=Cr(n,"-stagger");t.className+=` ${e}`,r=_o(t,i),r.animationDuration=Math.max(r.animationDuration,0),r.transitionDuration=Math.max(r.transitionDuration,0),t.classList.remove(e),wo.Li(s,r,!0)}return r||{}}(h,j,M,Eo);if(c.$$skipPreparationClasses||e.classList.add(...j.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=["transition",c.transitionStyle];Ir(h,t),a.push(t)}if(c.duration>=0){R=h.style.transition.length>0;const t=Oo(c.duration,R);Ir(h,t),a.push(t)}if(c.keyframeStyle){const t=["animation",c.keyframeStyle];Ir(h,t),a.push(t)}const P=T?c.staggerIndex>=0?c.staggerIndex:wo.Vi(M):0,I=0===P;I&&Ao(h,9999);let D=r(h,M,!_),N=D.maxDelay;g=Math.max(N,0),v=D.maxDuration;const q={};return q.hasTransitions=D.transitionDuration>0,q.hasAnimations=D.animationDuration>0,q.hasTransitionAll=q.hasTransitions&&"all"===D.transitionProperty,q.applyTransitionDuration=A&&(q.hasTransitions&&!q.hasTransitionAll||q.hasAnimations&&!q.hasTransitions),q.applyAnimationDuration=c.duration&&q.hasAnimations,q.applyTransitionDelay=xo(c.delay)&&(q.applyTransitionDuration||q.hasTransitions),q.applyAnimationDelay=xo(c.delay)&&q.hasAnimations,q.recalculateTimingStyles=C.length>0,(q.applyTransitionDuration||q.applyAnimationDuration)&&(v=c.duration?parseFloat(c.duration):v,q.applyTransitionDuration&&(q.hasTransitions=!0,D.transitionDuration=v,R=h.style.transitionProperty.length>0,a.push(Oo(v,R))),q.applyAnimationDuration&&(q.hasAnimations=!0,D.animationDuration=v,a.push(["animationDuration",`${v}s`]))),0!==v||q.recalculateTimingStyles?(t=Cr(j,_r),O(c.delay)||("boolean"!=typeof c.delay&&(o=parseFloat(c.delay),g=Math.max(o,0)),q.applyTransitionDelay&&a.push(So(o)),q.applyAnimationDelay&&a.push(So(o,!0))),O(c.duration)&&D.transitionDuration>0&&(q.recalculateTimingStyles=q.recalculateTimingStyles||I),w=g*yo,b=v*yo,q.blockTransition=D.transitionDuration>0,q.blockKeyframeAnimation=D.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration,c.from&&(c.cleanupStyles&&Co(u,h,Object.keys(c.from)),Tr(e,c)),q.blockTransition||q.blockKeyframeAnimation?L(v):c.skipBlocking||Ao(h,!1),{$$willAnimate:!0,end:U,start(){if(!f)return $={end:U,cancel:V,resume:null,pause:null},p=new $o($),i(z),p}}):H();function U(){F()}function V(){F(!0)}function F(i){if(f||m&&d)return;f=!0,d=!1,j&&!c.$$skipPreparationClasses&&e.classList.remove(...j.split(" ")),t=Cr(j,_r),t&&e.classList.remove(...t.split(" ")),Pr(h,!1),Ao(h,!1),a.forEach(t=>{h.style[t[0]]=""}),n(e,c),Ar(e,c),Et(u).length&&St(u).forEach(([t,n])=>{n?h.style.setProperty(t,n):h.style.removeProperty(t)}),c.onDone&&c.onDone(),E&&E.length&&E.forEach(t=>e.removeEventListener(t,B));const r=Gt(e,bo);r&&(clearTimeout(r[0].timer),Lt(e,bo)),p&&p.complete(!i)}function L(t){q.blockTransition&&Ao(h,t),q.blockKeyframeAnimation&&Pr(h,!!t)}function H(){return p=new $o({end:U,cancel:V}),i(()=>{}),F(),{$$willAnimate:!1,start:()=>p,end:U}}function B(t){t.stopPropagation();const n=t.originalEvent||t;if(n.target!==h)return;const e=n.$manualTimeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(e-y,0)>=w&&i>=v&&(m=!0,F())}function z(){if(f)return;if(!h.parentNode)return void F();const i=function(t){if(m)d&&t&&(d=!1,F());else if(d=!t,D.animationDuration){const t=Pr(h,d);if(d)a.push(t);else{const n=a.indexOf(t);-1!==n&&a.splice(n,1)}}},s=P>0&&(D.transitionDuration&&0===T.transitionDuration||D.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function l(){if(f)return;if(L(!1),a.forEach(t=>{const n=t[0];h.style[n]=t[1]}),n(e,c),e.classList.add(...t.split(" ").filter(t=>""!==t)),q.recalculateTimingStyles){if(M=wo.Ni(h,S,c.addClass,c.removeClass),D=r(h,M,!1),N=D.maxDelay,g=Math.max(N,0),v=D.maxDuration,0===v)return void F();q.hasTransitions=D.transitionDuration>0,q.hasAnimations=D.animationDuration>0}if(q.applyAnimationDelay&&(N="boolean"!=typeof c.delay&&xo(c.delay)?parseFloat(c.delay):N,g=Math.max(N,0),D.animationDelay=N,o=So(N,!0),a.push(o),h.style[o[0]]=o[1]),w=g*yo,b=v*yo,c.easing){let t;const n=c.easing;q.hasTransitions&&(t="transitionTimingFunction",a.push([t,n]),h.style[t]=n),q.hasAnimations&&(t="animationTimingFunction",a.push([t,n]),h.style[t]=n)}D.transitionDuration&&E.push("transitionend"),D.animationDuration&&E.push("animationend"),y=Date.now();const i=w+1.5*b,s=y+i,l=Gt(e,bo)||[];let d=!0;if(l.length){const t=l[0];d=s>t.expectedEndTime,d?clearTimeout(t.timer):l.push(F)}if(d){const t=setTimeout(p,i,!1);l[0]={timer:t,expectedEndTime:s},l.push(F),Zt(e,bo,l)}E.length&&E.forEach(t=>{e.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Co(u,h,Object.keys(c.to)),Rr(e,c))}function p(){const t=Gt(e,bo);if(t){for(let n=1;n<t.length;n++)t[n]();Lt(e,bo)}}s?setTimeout(l,Math.floor(s*P*yo),!1):l(),$.resume=function(){i(!0)},$.pause=function(){i(!1)}}}}]}function Ao(t,n){const e=n?`-${n}s`:"";return Ir(t,["transitionDelay",e]),["transitionDelay",e]}const To="data-ng-animate",Ro="$ngAnimatePin";function Mo(t){const n=this.rules={skip:[],cancel:[],join:[]};function e(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const e=function(t){if(!t)return null;const n=t.split(" "),e=Object.create(null);return n.forEach(t=>{e[t]=!0}),e}(n);return t.split(" ").some(t=>e[t])}}function r(t,e,i){return n[t].some(t=>t(e,i))}function s(t,n){const e=(t.addClass||"").length>0,i=(t.removeClass||"").length>0;return n?e&&i:e||i}n.join.push(t=>!t.structural&&s(t)),n.skip.push(t=>!t.structural&&!s(t)),n.skip.push((t,n)=>"leave"===n.event&&t.structural),n.skip.push((t,n)=>n.structural&&2===n.state&&!t.structural),n.cancel.push((t,n)=>n.structural&&t.structural),n.cancel.push((t,n)=>2===n.state&&t.structural),n.cancel.push((t,n)=>{if(n.structural)return!1;const e=t.addClass,r=t.removeClass,s=n.addClass,o=n.removeClass;return!(b(e)&&b(r)||b(s)&&b(o))&&(i(e,o)||i(r,s))}),this.$get=[jt.J,jt.wt,jt.S,function(n,i,o){const c=new Map,u=new Map,h=Object.create(null),a=t.customFilter(),l=t.classNameFilter(),f=function(){return!0},d=a||f,m=l?function(t,n){const e=[t.getAttribute("class"),n.addClass,n.removeClass].join(" ");return l.test(e)}:f,p=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)};function $(t,n){return Mr(t,n,{})}function g(t,n,e){const i=mn(n);return t.filter(t=>!(t.node===i&&(!e||t.callback===e)))}function w(t,n){"close"!==t||n.parentNode||v.off(n)}const v={on(t,n,e){const i=mn(n);h[t]=h[t]||[],h[t].push({node:i,callback:e}),n.addEventListener("$destroy",()=>{c.get(i)||v.off(t,n,e)})},off(t,n,e){if(1===arguments.length&&!_(arguments[0])){n=arguments[0];for(const t in h)h[t]=g(h[t],n);return}const i=h[t];i&&(h[t]=1===arguments.length?null:g(i,n,e))},pin(t,n){Zt(t,Ro,n)},push:(t,a,l,f)=>((l=l||{}).domOperation=f,function(t,a,l){let f=l,g=k(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const v=g,O=v&&v.parentNode;f=jr(f);const C=new $o,j=function(){let t=!1;return function(e){t?e():n.$postUpdate(()=>{t=!0,e()})}}();if(k(f.addClass)&&(f.addClass=f.addClass.join(" ")),f.addClass&&!_(f.addClass)&&(f.addClass=null),k(f.removeClass)&&(f.removeClass=f.removeClass.join(" ")),f.removeClass&&!_(f.removeClass)&&(f.removeClass=null),f.from&&!S(f.from)&&(f.from=null),f.to&&!S(f.to)&&(f.to=null),!v||!d(v,a,l)||!m(v,f))return q(),C;const A=["enter","move","leave"].indexOf(a)>=0;let T=document.hidden||u.get(v);const R=!T&&c.get(v)||{},M=!!R.state;if(T||M&&1===R.state||(T=!function(t,n){const e=document.body,r=i.get("$rootElement");let s,o=t===e||"HTML"===t.nodeName,h=t===r,a=!1,l=u.get(t),f=Jt(t,Ro);for(f&&(n=f);n&&(h||(h=n===r),1===n.nodeType);){const t=c.get(n)||{};if(!a){const e=u.get(n);if(!0===e&&!1!==l){l=!0;break}!1===e&&(l=!1),a=t.structural}if(b(s)||!0===s){const t=Jt(n,Or);y(t)&&(s=t)}if(a&&!1===s)break;if(o||(o=n===e),o&&h)break;n=h||(f=Jt(n,Ro),!f)?n.parentNode:f}return(!a||s)&&!0!==l&&h&&o}(v,O)),T)return document.hidden&&N(C,a,"start",e(f)),q(),document.hidden&&N(C,a,"close",e(f)),C;A&&function(t){t.querySelectorAll(`[${To}]`).forEach(t=>{const n=parseInt(t.getAttribute(To),10),e=c.get(t);if(e)switch(n){case 2:e.runner.end();case 1:c.delete(t)}})}(v);const P={structural:A,element:g,event:a,addClass:f.addClass,removeClass:f.removeClass,close:q,options:f,runner:C};if(M){if(r("skip",P,R))return 2===R.state?(q(),C):(Mr(g,R,P),R.runner);if(r("cancel",P,R))if(2===R.state)R.runner.end();else{if(!R.structural)return Mr(g,R,P),R.runner;R.close()}else if(r("join",P,R)){if(2!==R.state)return function(t,n,e){let i="";n&&(i=Cr(n,"ng-",!0)),e.addClass&&(i=Dr(i,Cr(e.addClass,Er))),e.removeClass&&(i=Dr(i,Cr(e.removeClass,Sr))),i.length&&(e.preparationClasses=i,t.className+=` ${i}`)}(g,A?a:null,f),a=P.event=R.event,f=Mr(g,R,P),R.runner;$(g,P)}}else $(g,P);let I=P.structural;if(I||(I="animate"===P.event&&Object.keys(P.options.to||{}).length>0||s(P)),!I)return q(),E(v),C;const D=(R.counter||0)+1;return P.counter=D,x(v,1,P),n.$postUpdate(()=>{g=function(t){return t instanceof NodeList?Array.from(t).filter(t=>1===t.nodeType):1===t.nodeType?t:void 0}(t);let n=c.get(v);const i=!n;n=n||{};const r=(g.parentElement||[])&&("animate"===n.event||n.structural||s(n));if(i||n.counter!==D||!r)return i&&(p(g,f),Ar(g,f)),(i||A&&n.event!==a)&&(f.domOperation(),C.end()),void(r||E(v));a=!n.structural&&s(n,!0)?"setClass":n.event,x(v,2);const u=o(g,a,n.options);C.setHost(u),N(C,a,"start",e(f)),u.done(t=>{q(!t),c.get(v)?.counter===D&&E(v),N(C,a,"close",e(f))})}),setTimeout(n.$flushQueue,0),C;function N(t,n,e,i){j(()=>{const t=function(t,n,e){const i=[],r=h[e];return r&&r.forEach(r=>{(r.node.contains(n)||"leave"===e&&r.node.contains(t))&&i.push(r.callback)}),i}(O,v,n);t.length?(t.forEach(t=>{t(g,e,i)}),w(e,v)):w(e,v)}),t.progress(n,e,i)}function q(t){!function(t,n){n.preparationClasses&&(n.preparationClasses.split(" ").forEach(n=>t.classList.remove(n)),n.preparationClasses=void 0),n.activeClasses&&(n.activeClasses.split(" ").forEach(n=>t.classList.remove(n)),n.activeClasses=void 0)}(g,f),p(g,f),Ar(g,f),f.domOperation(),C.complete(!t)}}(t,a,l))};return v;function E(t){t.removeAttribute(To),c.delete(t)}function x(t,n,e){(e=e||{}).state=n,t.setAttribute(To,n);const i=c.get(t),r=i?F(i,e):e;c.set(t,r)}}]}function Po(t){this.$get=[jt.wt,function(n){return function(e,i,r,s){3===arguments.length&&S(r)&&(s=r,r=null),s=jr(s),r||(r=e.getAttribute("class")||"",s.addClass&&(r+=` ${s.addClass}`),s.removeClass&&(r+=` ${s.removeClass}`));const o=s.addClass,c=s.removeClass,u=function(e){e=k(e)?e:e.split(" ");const i=[],r={};for(let s=0;s<e.length;s++){const o=e[s],c=t.$$registeredAnimations[o];c&&!r[o]&&(i.push(n.get(c)),r[o]=!0)}return i}(r);let h,a,l;if(u.length){let t,n;"leave"===i?(t="leave",n="afterLeave"):(t=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,n=i),"enter"!==i&&"move"!==i&&(h=m(e,s,u,t,{add:o,remove:c})),a=m(e,s,u,n,{add:o,remove:c})}if(h||a)return{$$willAnimate:!0,start(){if(l)return l;function t(t){d(),l.complete(t)}return l=new $o({end:()=>t(!0),cancel:()=>t(!1)}),h?h(l.done.bind(l)):f(),a&&a(l.done.bind(l)),l},end:()=>(l?l.end():(d(),l=new $o,l.complete(!0)),l)};function f(){s.domOperation(),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(e,s)}function d(){f(),Ar(e,s)}function m(t,n,e,i,r){const s=[];if(e.forEach(e=>{const o=e[i];o&&s.push(s=>{if(R(o)){let c;switch(i){case"addClass":c=[t,r.add,s];break;case"removeClass":c=[t,r.remove,s];break;case"setClass":c=[t,r.add,r.remove,s];break;case"animate":c=[t,n.from,n.to,s];break;default:c=[t,s]}const u=o.apply(e,c);u instanceof $o&&u.done(s)}else s()})}),s.length)return t=>{let n=0;const e=s.length;s.forEach(i=>{i(()=>{++n===e&&R(t)&&t()})})}}}}]}Mo.$inject=At([jt.C]),Po.$inject=At([jt.C]);const Io="$$animationRunner",Do="$$animatePrepareClasses";function No(){const t="ng-animate-ref",n=this.drivers=[];function e(t){return Gt(t,Io)}this.$get=[jt.J,jt.wt,function(i,r){const s=[];return function(o,c,u){u=jr(u);const h=["enter","move","leave"].indexOf(c)>=0,a=new $o({end(){m()},cancel(){m(!0)}});if(!n.length)return m(),a;let l=gt(o.getAttribute("class"),gt(u.addClass,u.removeClass)),{tempClasses:f}=u;return f&&(l+=` ${f}`,u.tempClasses=null),h&&Zt(o,Do,`ng-${c}-prepare`),function(t,n){Zt(t,Io,n)}(o,a),s.push({element:o,classes:l,event:c,structural:h,options:u,beforeStart:function(){f=(f?`${f} `:"")+xr,o.className+=` ${f}`;let t=Gt(o,Do);t&&(o.classList.remove(t),t=null)},close:m}),o.addEventListener("$destroy",function(){("leave"!==c||!u.$e)&&e(o)?.end()}),s.length>1||i.$postUpdate(()=>{const i=[];s.forEach(t=>{e(t.element)?i.push(t):t.close()}),s.length=0;const o=function(n){const e=[],i={};n.forEach((n,r)=>{const{element:s,event:o}=n,c=s,u=["enter","move"].indexOf(o)>=0,h=n.structural?function(n){const e=`[${t}]`,i=n.hasAttribute(t)?[n]:n.querySelectorAll(e),r=[];return i.forEach(n=>{const e=n.getAttribute(t);e&&e.length&&r.push(n)}),r}(c):[];if(h.length){const n=u?"to":"from";h.forEach(e=>{const s=e.getAttribute(t);i[s]=i[s]||{},i[s][n]={animationID:r,element:e}})}else e.push(n)});const r={},s={};return Object.values(i).forEach(t=>{const{from:i}=t,{to:o}=t;if(!i||!o){const t=i?i.animationID:o.animationID,s=t.toString();return void(r[s]||(r[s]=!0,e.push(n[t])))}const c=n[i.animationID],u=n[o.animationID],h=i.animationID.toString();if(!s[h]){const t=s[h]={structural:!0,beforeStart(){c.beforeStart(),u.beforeStart()},close(){c.close(),u.close()},classes:d(c.classes,u.classes),from:c,to:u,anchors:[]};t.classes.length?e.push(t):(e.push(c),e.push(u))}s[h].anchors.push({out:i.element,in:o.element})}),e}(i),c=[];o.forEach(t=>{const i=t.from?t.from.element:t.element;let s=u.addClass;s=(s?`${s} `:"")+xr;const o=wo.Ni(i,t.event,s,u.removeClass);c.push({element:i,domNode:i,fn:function(){let i;const s=t.close;if(wo.qi(o))s();else{if(t.beforeStart(),e(t.anchors?t.from.element||t.to.element:t.element)){const e=function(t){for(let e=n.length-1;e>=0;e--){const i=n[e],s=r.get(i)(t);if(s)return s}}(t);e&&(i=e.start)}if(i){const n=i();n.done(t=>{s(!t)}),function(t,n){function i(t){e(t).setHost(n)}t.from&&t.to?(i(t.from.element),i(t.to.element)):i(t.element)}(t,n)}else s()}}})});const h=function(t){const n={children:[]};let e;const i=new Map;for(e=0;e<t.length;e++){const n=t[e];i.set(n.domNode,t[e]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)r(t[e]);return function(t){const n=[],i=[];for(e=0;e<t.children.length;e++)i.push(t.children[e]);let r=i.length,s=0,o=[];for(let t=0;t<i.length;t++){const e=i[t];r<=0&&(r=s,s=0,n.push(o),o=[]),o.push(e),e.children.forEach(t=>{s++,i.push(t)}),r--}return o.length&&n.push(o),n}(n);function r(t){if(t.processed)return t;t.processed=!0;const e=t.domNode;let s,{parentNode:o}=e;for(i.set(e,t);o;){if(s=i.get(o),s){s.processed||(s=r(s));break}o=o.parentNode}return(s||n).children.push(t),t}}(c);for(let t=0;t<h.length;t++){const n=h[t];for(let e=0;e<n.length;e++){const i=n[e],{element:r}=i;if(h[t][e]=i.fn,0===t){Lt(r,Do);continue}const s=Gt(r,Do);s&&r.classList.add(s)}}const a=h.flat();vo.Wi(a)}),a;function d(t,n){t=t.split(" "),n=n.split(" ");const e=[];for(let i=0;i<t.length;i++){const r=t[i];if("ng-"!==r.substring(0,3))for(let t=0;t<n.length;t++)if(r===n[t]){e.push(r);break}}return e.join(" ")}function m(t){(function(t,n){if(zt(t)){const e=Ht(t,!1),i=e?.data;i&&kt(i,Vt(n))&&delete i[Vt(n)]}})(o,Io),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(o,u),Ar(o,u),u.domOperation(),f&&f.split(" ").forEach(t=>o.classList.remove(t)),a.complete(!t)}}}]}const qo="ng-animate-shim",Uo="ng-anchor-out";function Vo(t){t.drivers.push(jt.m),this.$get=[jt.j,jt.Z,function(t,n){const e=document.body,i=n,r=(s=i).parentNode&&11===s.parentNode.nodeType||e.contains(i)?i:e;var s;return function(n){return n.from&&n.to?function(n,i,s){const c=o(n),u=o(i),h=[];return s.forEach(n=>{const i=function(n,i){const s=n.cloneNode(!0),o=Fo(l(s));let c;n[0].classList.add(qo),i[0].classList.add(qo),s.classList.add("ng-anchor"),r.append(s);const u=function(){const e=t(s,{addClass:Uo,delay:!0,from:a(n)});return e.$$willAnimate?e:null}();if(!u&&(c=f(),!c))return d();const h=u||c;return{start(){const t=new $o({end:e,cancel:e});let n=h.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,d(),t.complete()}),n;d(),t.complete()}),t;function e(){n&&n.end()}}};function a(t){const n={},i=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let r=i[t];switch(t){case"top":r+=e.scrollTop;break;case"left":r+=e.scrollLeft}n[t]=`${Math.floor(r)}px`}),n}function l(t){return t.getAttribute("class")||""}function f(){const n=Fo(l(i)),e=Lo(n,o),r=Lo(o,n),c=t(s,{to:a(i),addClass:`ng-anchor-in ${e}`,removeClass:`${Uo} ${r}`,delay:!0});return c.$$willAnimate?c:null}function d(){s.remove(),n[0].classList.remove(qo),i[0].classList.remove(qo)}}(n.out,n.in);i&&h.push(i)}),c||u||0!==h.length?{start(){const t=[];c&&t.push(c.start()),u&&t.push(u.start()),h.forEach(n=>{t.push(n.start())});const n=new $o({end:e,cancel:e});return $o.Di(t,t=>{n.complete(t)}),n;function e(){t.forEach(t=>{t.end()})}}}:void 0}(n.from,n.to,n.anchors):o(n)};function o(n){const e=n.options||{};n.structural&&(e.event=n.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===n.event&&(e.onDone=e.domOperation)),e.preparationClasses&&(e.event=Dr(e.event,e.preparationClasses));const i=t(n.element,e);return i.$$willAnimate?i:null}}]}function Fo(t){return t.replace(/\bng-\S+\b/g,"")}function Lo(t,n){return _(t)&&(t=t.split(" ")),_(n)&&(n=n.split(" ")),t.filter(t=>-1===n.indexOf(t)).join(" ")}function Ho(t){t.drivers.push(jt.$),this.$get=[jt.p,function(t){return function(t){if(t.from&&t.to){const e=n(t.from),i=n(t.to);if(!e&&!i)return;return{start(){const t=[];e&&t.push(e.start()),i&&t.push(i.start()),$o.Di(t,function(t){n.complete(t)});const n=new $o({end:r(),cancel:r()});return n;function r(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(n){const{element:e,event:i,options:r,classes:s}=n;return t(e,i,s,r)}}]}function Bo(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(n,e,i,r,s){let o,c;n.$watch(i.ngAnimateSwap||i.for,n=>{o&&t.leave(o),c&&(c.$destroy(),c=null),n&&s((n,i)=>{o=n,c=i,t.enter(n,null,e)})})}}}function zo(t){return{link(n,e,i){const r=i.ngAnimateChildren;function s(t){Zt(e,Or,"on"===t||"true"===t)}_(r)&&0===r.length?Zt(e,Or,!0):(s(t(r)(n)),i.$observe("ngAnimateChildren",s))}}}function Wo(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;const i=[t,n];if(i.every(k))return function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!Wo(t[e],n[e]))return!1;return!0}(t,n);if(i.every(A))return t.getTime()===n.getTime();if(i.every(M))return t.toString()===n.toString();if(i.every(R))return!0;if([R,k,A,M].some(t=>!!t(i)))return!1;const r={};for(const e in t){if(!Wo(t[e],n[e]))return!1;r[e]=!0}for(const t in n)if(!r[t])return!1;return!0}function Jo(t,n){const e=Object.create(t);return n&&Object.assign(e,n),e}function Zo(t,n){const e=t.indexOf(n);return-1!==e&&t.splice(e,1),t}function Go(t,...n){const e=Object.assign({},...n.reverse());return Object.assign(e,Ko(t||{},Object.keys(e)))}function Ko(t,n){const e={};for(const i in t)-1!==n.indexOf(i)&&(e[i]=t[i]);return e}function Xo(t,n){return Object.keys(t).filter(t=>!n.includes(t)).reduce((n,e)=>(n[e]=t[e],n),{})}function Yo(t,n){const e=k(t),i=e?[]:{},r=e?t=>i.push(t):(t,n)=>i[n]=t;return St(t).forEach(([t,e])=>{n(e,t)&&r(e,t)}),i}function Qo(t,n){let e;return St(t).forEach(([t,i])=>{e||n(i,t)&&(e=i)}),e}function tc(t,n,e){return e=e||(k(t)?[]:{}),St(t).forEach(([t,i])=>{if(k(e)){const r=Number(t);e[r]=n(i,r)}else e[t]=n(i,t)}),e}Vo.$inject=At([jt.S]),Ho.$inject=At([jt.S]),Bo.$inject=[jt.C],zo.$inject=[jt.V];const nc=(t,n)=>t&&n,ec=(t,n)=>t||n,ic=(t,n)=>t.concat(n);function rc(t,n){return t.push(n),t}const sc=(t,n)=>t.includes(n)?t:rc(t,n),oc=t=>t.reduce(ic,[]);function cc(...t){if(0===t.length)return[];const n=t.reduce((t,n)=>Math.min(n.length,t),Number.MAX_SAFE_INTEGER),e=[];for(let i=0;i<n;i++)switch(t.length){case 1:e.push([t[0][i]]);break;case 2:e.push([t[0][i],t[1][i]]);break;case 3:e.push([t[0][i],t[1][i],t[2][i]]);break;case 4:e.push([t[0][i],t[1][i],t[2][i],t[3][i]]);break;default:e.push(t.map(t=>t[i]))}return e}function uc(t,n){let e,i;if(k(n)&&([e,i]=n),!_(e))throw new Error("invalid parameters to applyPairs");return t[e]=i,t}function hc(t){return t.length>0?t[t.length-1]:void 0}function ac(t,n){return n&&Object.keys(n).forEach(t=>delete n[t]),n||(n={}),Object.assign(n,t)}function lc(t){const n=(...e)=>e.length>=t.length?t(...e):(...t)=>n(...e,...t);return n}const fc=lc((t,n,e)=>e&&e[t]===n),dc=t=>{const n=t.split(".");return t=>n.reduce((t,n)=>t&&t[n],t)};function mc(t){return function(n){return null!=n&&n.constructor===t||n instanceof t}}const pc=t=>()=>t;function $c(t){return function(n){for(let e=0;e<t.length;e++)if(t[e][0](n))return t[e][1](n)}}class gc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,n){return t===n}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,n){if(!t)return this;if("auto"===t&&!n)throw new Error("'auto' array mode is for query parameters only");return new wc(this,t)}}function wc(t,n){function e(t){return k(t)?t:y(t)?[t]:[]}function i(t,i){return function(r){if(k(r)&&0===r.length)return r;const s=tc(e(r),t);return!0===i?0===Yo(s,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===n?t[0]:t;default:return t}}(s)}}function r(t){return function(n,i){const r=e(n),s=e(i);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],s[n]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(n=>{const e=t[n].bind(t),s="equals"===n?r:i;this[n]=s(e)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:i(t.is.bind(t),!0),$arrayMode:n})}class vc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ko(vc.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=Jo(tc(this.defaultTypes,(t,n)=>new gc(Object.assign({name:n},t))),{})}type(t,n,e){if(!y(n))return this.types[t];if(kt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new gc(Object.assign({name:t},n)),e&&(this.typeQueue.push({name:t,def:e}),this.enqueue||this.Zi()),this}Zi(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],window.angular.$injector.invoke(t.def))}}}!function(){const t=t=>{const n=t=>O(t)?t:t.toString(),e={encode:n,decode:n,is:mc(String),pattern:/.*/,equals:(t,n)=>t===n};return Object.assign({},e,t)};Object.assign(vc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is(t){return!O(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:mc(Boolean),pattern:/[01]/}),date:t({encode(t){return this.is(t)?[t.getFullYear(),`0${t.getMonth()+1}`.slice(-2),`0${t.getDate()}`.slice(-2)].join("-"):void 0},decode(t){if(this.is(t))return t;const n=this.capture.exec(t);return n?new Date(n[1],n[2]-1,n[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,n)=>["getFullYear","getMonth","getDate"].reduce((e,i)=>e&&t[i]()===n[i](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:mc(Object),equals:Wo,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Wo})})}();class bc{constructor(){this.paramTypes=new vc,this.Gi=!1,this.Ki=!0,this.Xi=!1;const t=this.type("path");t.encode=t=>O(t)?t:t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])),t.decode=t=>O(t)?t:t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])),this.paramTypes.enqueue=!1,this.paramTypes.Zi()}$get=()=>this;caseInsensitive(t){return this.Gi=y(t)?t:this.Gi}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!_(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this.Xi=y(t)?t:this.Xi}strictMode(t){return this.Ki=y(t)?t:this.Ki}type(t,n,e){const i=this.paramTypes.type(t,n,e);return y(n)?this:i}}class yc{constructor(t={}){Object.assign(this,t)}$inherit(t,n,e){const i=function(t,n){const e=[];for(const i in t.path){if(t.path[i]!==n.path[i])break;e.push(t.path[i])}return e}(n,e),r={},s=[];for(const t in i){if(!i[t]||!i[t].params)continue;const n=i[t].params,e=Et(n);if(e.length)for(const t in e)!1===n[e[t]].inherit||s.indexOf(e[t])>=0||(s.push(e[t]),r[e[t]]=this[e[t]])}return Object.assign({},r,t)}}class kc{constructor(t=[],n=null){this.Yi=k(t)?[...t]:[],this.Qi=Number.isInteger(n)&&n>0?n:null,this.tr=[]}onEvict(t){this.tr.push(t)}enqueue(t){return this.Yi.push(t),null!==this.Qi&&this.Yi.length>this.Qi&&this.evict(),t}evict(){const t=this.Yi.shift();return void 0!==t&&this.tr.forEach(n=>n(t)),t}dequeue(){return this.Yi.length>0?this.Yi.shift():void 0}clear(){const t=[...this.Yi];return this.Yi.length=0,t}size(){return this.Yi.length}remove(t){const n=this.Yi.indexOf(t);return-1!==n&&this.Yi.splice(n,1)[0]}peekTail(){return this.Yi[this.Yi.length-1]}peekHead(){return this.Yi[0]}}class Ec{constructor(){this.params=new yc,this.nr=-1,this.er=new kc([],1),this.ir=new kc([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function Sc(t,n){return n.length<=t?n:`${n.substring(0,t-3)}...`}function _c(t){const n=xc(t),e=n.match(/^(function [^ ]+\([^)]*\))/),i=e?e[1]:n,r=t.name||"";return r&&i.match(/function \(/)?`function ${r}${i.substring(9)}`:i}function xc(t){const n=k(t)?t.slice(-1)[0]:t;return n&&n.toString()||"undefined"}function Oc(t){const n=[],e=$c([[b,pc("undefined")],[x,pc("null")],[An,pc("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"===t.constructor.name,t=>t.rr.toString()],[t=>S(t)&&!k(t)&&t.constructor!==Object&&R(t.toString),t=>t.toString()],[jn,_c],[pc(!0),t=>t]]);function i(t){if(S(t)){if(-1!==n.indexOf(t))return"[circular ref]";n.push(t)}return e(t)}return b(t)?i(t):JSON.stringify(t,(t,n)=>i(n)).replace(/\\"/g,'"')}function Cc(t,n){return _(hc(t))&&_(n)?t.slice(0,-1).concat(hc(t)+n):rc(t,n)}function jc(t){if(!t)return"ng-view (defunct)";const n=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${n})]`}function Ac(t){return j(t)?Tc[t]:Tc[Tc[t]]}const Tc={sr:0,cr:1,ur:2,hr:3,ar:4},Rc=dc("$id"),Mc=dc("router.$id"),Pc=t=>`Transition #${Rc(t)}-${Mc(t)}`,Ic=new class{constructor(){this.lr={},this.approximateDigests=0,this.$logger=window.angular?.$injector?.get(jt.L)}dr(t,n){n.length||(n=Et(Tc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>Tc[t])),n.map(Ac).forEach(n=>this.lr[n]=t)}enable(...t){this.dr(!0,t)}disable(...t){this.dr(!1,t)}enabled(t){return!!this.lr[Ac(t)]}traceTransitionStart(t){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(t)}: Started -> ${Oc(t)}`)}traceTransitionIgnored(t){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(t)}: Ignored <> ${Oc(t)}`)}traceHookInvocation(t,n,e){if(!this.enabled(Tc.ur))return;const i=dc("traceData.hookType")(e)||"internal",r=dc("traceData.context.state.name")(e)||dc("traceData.context")(e)||"unknown",s=_c(t.registeredHook.callback);this.$logger.log(`${Pc(n)}: Hook -> ${i} context: ${r}, ${Sc(200,s)}`)}traceHookResult(t,n){this.enabled(Tc.ur)&&this.$logger.log(`${Pc(n)}: <- Hook returned: ${Sc(200,Oc(t))}`)}traceResolvePath(t,n,e){this.enabled(Tc.sr)&&this.$logger.log(`${Pc(e)}: Resolving ${t} (${n})`)}traceResolvableResolved(t,n){this.enabled(Tc.sr)&&this.$logger.log(`${Pc(n)}: <- Resolved ${t} to: ${Sc(200,Oc(t.data))}`)}traceError(t,n){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(n)}: <- Rejected ${Oc(n)}, reason: ${t}`)}traceSuccess(t,n){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(n)}: <- Success ${Oc(n)}, final state: ${t.name}`)}traceUIViewEvent(t,n,e=""){this.enabled(Tc.hr)&&this.$logger.log(`ng-view: ${function(t,n){for(;n.length<30;)n+=" ";return n}(0,t)} ${jc(n)}${e}`)}traceUIViewConfigUpdated(t,n){this.enabled(Tc.hr)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${n}'`)}traceUIViewFill(t,n){this.enabled(Tc.hr)&&this.traceUIViewEvent("Fill",t,` with: ${Sc(200,n)}`)}traceViewSync(t){if(!this.enabled(Tc.ar))return;const n="uiview component fqn",e="view config state (view name)",i=t.map(({ngView:t,viewConfig:i})=>{const r=t&&t.fqn,s=i&&`${i.viewDecl.$context.name}: (${i.viewDecl.$name})`;return{[n]:r,[e]:s}}).sort((t,e)=>(t[n]||"").localeCompare(e[n]||""));this.$logger.table(i)}traceViewServiceEvent(t,n){this.enabled(Tc.ar)&&this.$logger.log(`VIEWCONFIG: ${t} ${(t=>{const n=t.viewDecl,e=n.$context.name||"(root)";return`[View#${t.$id} from '${e}' state]: target ng-view: '${n.$ngViewName}@${n.$ngViewContextAnchor}'`})(n)}`)}traceViewServiceUIViewEvent(t,n){this.enabled(Tc.ar)&&this.$logger.log(`VIEWCONFIG: ${t} ${jc(n)}`)}};class Dc{constructor(t,n,e,i,r){this.resolved=!1,this.promise=void 0,t instanceof Dc?Object.assign(this,t):R(n)?(at(!O(t),"token argument is required"),this.token=t,this.policy=i,this.resolveFn=n,this.deps=e||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?Promise.resolve(this.data):void 0):S(t)&&t.token&&(kt(t,"resolveFn")||kt(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const n=this.policy||{},e=t&&t.resolvePolicy||{};return{when:n.when||e.when||"LAZY",async:n.async||e.async||"WAIT"}}resolve(t,n){const e=t.findNode(this),i=e&&e.state,r=this.getPolicy(i).async,s=R(r)?r:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(e=>e.get(t,n)))).then(t=>this.resolveFn.apply(null,t)).then(s).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Ic.traceResolvableResolved(this,n),this.data)),this.promise}get(t,n){return this.promise||this.resolve(t,n)}toString(){return`Resolvable(token: ${Oc(this.token)}, requires: [${this.deps.map(Oc)}])`}clone(){return new Dc(this)}}Dc.fromData=(t,n)=>new Dc(t,()=>n,null,null,n);class Nc{constructor(t,n,e,i){this.tt=t,this.ni=n,this.ni=n,this.mr=Object.assign({},e||{}),this.vn=Object.assign({},i||{}),this.pr=t.matcher.find(n,this.vn.relative)}name(){return this.pr&&this.pr.name||this.ni}identifier(){return this.ni}params(){return this.mr}$state(){return this.pr}state(){return this.pr&&this.pr.self}options(){return this.vn}exists(){return!(!this.pr||!this.pr.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this.pr&&t){const n=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${n}'`}return this.pr?this.pr.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Oc(this.params())}`}withState(t){return new Nc(this.tt,t,this.mr,this.vn)}withParams(t,n=!1){const e=n?t:Object.assign({},this.mr,t);return new Nc(this.tt,this.ni,e,this.vn)}withOptions(t,n=!1){const e=n?t:Object.assign({},this.vn,t);return new Nc(this.tt,this.ni,this.mr,e)}}Nc.isDef=t=>t&&t.state&&(_(t.state)||S(t.state)&&_(t.state.name));class qc{constructor(t,n,e,i,r){const s=function(t,n,e){const i=!1===e.reloadOnSearch&&1===n||void 0,r=Qo([e.dynamic,i],y),s=y(r)?{dynamic:r}:{},o=function(t){function n(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,n.$r=!0;const e=jn(t.value)?t.value:n;return Object.assign(t,{gr:e})}(e&&e.params&&e.params[t]);return Object.assign(s,o)}(t,e,r);n=function(t,n,e,i,r){if(t.type&&n&&"string"!==n.name)throw new Error(`Param '${i}' has two type configurations.`);if(t.type&&n&&"string"===n.name&&r.type(t.type))return r.type(t.type);if(n)return n;if(!t.type){const t=2===e?"any":0===e?"path":1===e?"query":"string";return r.type(t)}return t.type instanceof gc?t.type:r.type(t.type)}(s,n,e,t,i.paramTypes);const o=function(){const n={array:1===e&&"auto"},i=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(n,i,s).array}();n=o?n.$asArray(o,1===e):n;const c=void 0!==s.value||1===e,u=y(s.dynamic)?!!s.dynamic:!!n.dynamic,h=y(s.raw)?!!s.raw:!!n.raw,a=function(t,n,e){const{squash:i}=t;if(!n||!1===i)return!1;if(!y(i)||O(i))return e;if(!0===i||_(i))return i;throw new Error(`Invalid squash policy: '${i}'. Valid policies: false, true, or arbitrary string`)}(s,c,i.defaultSquashPolicy()),l=function(t,n,e,i){const r=[{from:"",to:e||n?void 0:""},{from:null,to:e||n?void 0:""}],s=k(t.replace)?t.replace:[];_(i)&&s.push({from:i,to:void 0});const o=tc(s,t=>t.from);return Yo(r,t=>-1===o.indexOf(t.from)).concat(s)}(s,o,c,a),f=y(s.inherit)?!!s.inherit:!!n.inherit;this.isOptional=c,this.type=n,this.location=e,this.id=t,this.dynamic=u,this.raw=h,this.squash=a,this.replace=l,this.inherit=f,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const n of this.replace)if(n.from===t)return n.to;return t})(t),b(t)?(()=>{if(this.wr)return this.wr.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=window.angular.$injector.invoke(this.config.gr);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.gr.$r&&(this.wr={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return 1===this.location}validates(t){if((b(t)||null===t)&&this.isOptional)return!0;const n=this.type.$normalize(t);if(!this.type.is(n))return!1;const e=n;return!(_(e)&&!this.type.pattern.exec(e))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,n={}){const e={};for(const i of t)e[i.id]=i.value(n[i.id]);return e}static changed(t,n={},e={}){return t.filter(t=>!t.type.equals(n[t.id],e[t.id]))}static equals(t,n={},e={}){return 0===qc.changed(t,n,e).length}static validates(t,n={}){return t.map(t=>t.validates(n[t.id])).reduce(nc,!0)}}class Uc{constructor(t){if(t instanceof Uc){const n=t;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=Object.assign({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{const n=t;this.state=n,this.paramSchema=n.parameters({inherit:!1}),this.paramValues={},this.resolvables=n.resolvables.map(t=>t.clone())}}clone(){return new Uc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((n,e)=>{return uc(n,[(i=e).id,i.value(t[i.id])]);var i},{}),this}parameter(t){return Qo(this.paramSchema,fc("id",t))}equals(t,n){const e=this.diff(t,n);return e&&0===e.length}diff(t,n){if(this.state!==t.state)return!1;const e=n?n(this):this.paramSchema;return qc.changed(e,this.paramValues,t.paramValues)}}class Vc{static buildPath(t){const n=t.params();return t.$state().path.map(t=>new Uc(t).applyRawParams(n))}static buildToPath(t,n){const e=Vc.buildPath(n);return n.options().inherit?Vc.inheritParams(t,e,Object.keys(n.params())):e}static applyViewConfigs(t,n,e){n.filter(t=>e.includes(t.state)).forEach(e=>{const i=Object.values(e.state.views||{}),r=Vc.subPath(n,t=>t===e),s=i.map(n=>t.vr(r,n));e.views=s.reduce(ic,[])})}static inheritParams(t,n,e=[]){const i=t.map(t=>t.paramSchema).reduce(ic,[]).filter(t=>!t.inherit).map(t=>t.id);return n.map(function(n){let r=Object.assign({},n&&n.paramValues);const s=Ko(r,e);r=Xo(r,e);const o=Xo(function(t,n){const e=Qo(t,fc("state",n));return Object.assign({},e&&e.paramValues)}(t,n.state)||{},i),c=Object.assign(r,o,s);return new Uc(n.state).applyRawParams(c)})}static treeChanges(t,n,e){const i=Math.min(t.length,n.length);let r=0;const s=(t,n)=>t.equals(n,Vc.nonDynamicParams);for(;r<i&&t[r].state!==e&&s(t[r],n[r]);)r++;const o=t,c=o.slice(0,r),u=o.slice(r),h=c.map(function(t,e){const i=t.clone();return i.paramValues=n[e].paramValues,i}),a=n.slice(r);return{from:o,to:h.concat(a),retained:c,retainedWithToParams:h,exiting:u,entering:a}}static matching(t,n,e){let i=!1;return cc(t,n).reduce((t,[n,r])=>(i=i||!n.equals(r,e),i?t:t.concat(n)),[])}static equals(t,n,e){return t.length===n.length&&Vc.matching(t,n,e).length===t.length}static subPath(t,n){const e=Qo(t,n),i=t.indexOf(e);return-1===i?void 0:t.slice(0,i+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,n)=>Object.assign(t,n.paramValues),{})}}function Fc(t,n){return new Nc(t,n.at(-1).state,n.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}),{})}const Lc="EAGER",Hc=[Lc,"LAZY"],Bc=[Lc];class zc{constructor(t){this.St=t}getTokens(){return this.St.reduce((t,n)=>t.concat(n.resolvables.map(t=>t.token)),[]).reduce(sc,[])}getResolvable(t){return hc(this.St.map(t=>t.resolvables).reduce(ic,[]).filter(n=>n.token===t))}getPolicy(t){const n=this.findNode(t);return t.getPolicy(n)}subContext(t){return new zc(Vc.subPath(this.St,n=>n.state===t))}addResolvables(t,n){const e=Qo(this.St,fc("state",n)),i=t.map(t=>t.token);e.resolvables=e.resolvables.filter(t=>-1===i.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",n){const e=(Hc.includes(t)?t:"LAZY")===Lc?Bc:Hc;Ic.traceResolvePath(this.St,t,n);const i=(t,n)=>e=>t.includes(this.getPolicy(e)[n]),r=this.St.reduce((t,r)=>{const s=r.resolvables.filter(i(e,"when")),o=s.filter(i(["NOWAIT"],"async")),c=s.filter(t=>!i(["NOWAIT"],"async")(t)),u=this.subContext(r.state),h=t=>t.get(u,n).then(n=>({token:t.token,value:n}));return o.forEach(h),t.concat(c.map(h))},[]);return Promise.all(r)}findNode(t){return Qo(this.St,n=>n.resolvables.includes(t))}getDependencies(t){const n=this.findNode(t),e=(Vc.subPath(this.St,t=>t===n)||this.St).reduce((t,n)=>t.concat(n.resolvables),[]).filter(n=>n!==t);return t.deps.map(t=>{const n=e.filter(n=>n.token===t);if(n.length)return hc(n);const i=window.angular.$injector.get(t);if(b(i))throw new Error(`Could not find Dependency Injection token: ${Oc(t)}`);return new Dc(t,()=>i,[],i)})}}const Wc=(t,n)=>t.reduce((t,e)=>t||y(n[e]),!1);function Jc(t){if(!t.parent)return{};const n=["component","bindings","componentProvider"],e=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=n.concat(e);if(y(t.views)&&Wc(i,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${i.filter(n=>y(t[n])).join(", ")}`);const r={};return St(t.views||{$default:Ko(t,i)}).forEach(([i,s])=>{if(i=i||"$default",_(s)&&(s={component:s}),s=Object.assign({},s),Wc(n,s)&&Wc(e,s))throw new Error(`Cannot combine: ${n.join("|")} with: ${e.join("|")} in stateview: '${i}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$context=t,s.$name=i;const o=Gc.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,r[i]=s}),r}let Zc=0;class Gc{constructor(t,n,e){this.path=t,this.viewDecl=n,this.factory=e,this.component=void 0,this.template=void 0,this.$id=Zc++,this.loaded=!1,this.getTemplate=(t,n)=>this.component?this.factory.makeComponentTemplate(t,n,this.component,this.viewDecl.bindings):this.template}load(){const t=new zc(this.path),n=this.path.reduce((t,n)=>Object.assign(t,n.paramValues),{}),e=[Promise.resolve(this.factory.fromConfig(this.viewDecl,n,t)),Promise.resolve(this.getController(t))];return Promise.all(e).then(t=>(Ic.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const n=this.viewDecl.controllerProvider;if(!jn(n))return this.viewDecl.controller;const e=yn(n),i=k(n)?hc(n):n;return new Dc("",i,e).get(t)}static normalizeUIViewTarget(t,n=""){const e=n.split("@");let i=e[0]||"$default",r=_(e[1])?e[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(i);if(s&&(r=s[1],i=s[2]),"!"===i.charAt(0)&&(i=i.substring(1),r=""),/^(\^(?:\.\^)*)$/.exec(r)){const n=r.split(".").reduce(t=>t.parent,t);r=n.name}else"."===r&&(r=t.name);return{ngViewName:i,ngViewContextAnchor:r}}}class Kc{constructor(){this.br=[],this.yr=[],this.wi=[],this.kr(function(){let t=null;return(n,e)=>(t=t||window.angular.$injector.get("$templateFactory"),new Gc(n,e,t))}())}$get=()=>this;rootViewContext(t){return this.Er=t||this.Er}kr(t){this.kr=t}vr(t,n){const e=this.kr;if(!e)throw new Error(`ViewService: No view config factory registered for type ${n.$type}`);return e(t,n)}deactivateViewConfig(t){Ic.traceViewServiceEvent("<- Removing",t),Zo(this.yr,t)}activateViewConfig(t){Ic.traceViewServiceEvent("-> Registering",t),this.yr.push(t)}sync(){const t=this.br.map(t=>[t.fqn,t]).reduce(uc,{});function n(t){let n=t.viewDecl.$context,e=0;for(;++e&&n.parent;)n=n.parent;return e}const e=lc((t,n,e,i)=>n*(t(e)-t(i))),i=t=>{-1!==this.br.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},r=this.br.sort(e(function(t){const n=t=>t&&t.parent?n(t.parent)+1:1;return 1e4*t.fqn.split(".").length+n(t.creationContext)},1)).map(i=>{const r=this.yr.filter(Kc.matches(t,i));return r.length>1&&r.sort(e(n,-1)),{ngView:i,viewConfig:r[0]}}),s=r.map(t=>t.viewConfig),o=this.yr.filter(t=>!s.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));r.forEach(t=>{i(t)});const c=r.concat(o);this.wi.forEach(t=>t(c)),Ic.traceViewSync(c)}registerUIView(t){Ic.traceViewServiceUIViewEvent("-> Registering",t);const n=this.br;return n.filter(n=>n.fqn===t.fqn).length&&Ic.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),n.push(t),this.sync(),()=>{-1!==n.indexOf(t)?(Ic.traceViewServiceUIViewEvent("<- Deregistering",t),Zo(n,t)):Ic.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this.br.map(t=>t.fqn)}active(){return this.br.filter(t=>t.$config).map(t=>t.name)}}Kc.matches=(t,n)=>e=>{if(n.$type!==e.viewDecl.$type)return!1;const i=e.viewDecl,r=i.$ngViewName.split("."),s=n.fqn.split(".");if(!Wo(r,s.slice(0-r.length)))return!1;const o=1-r.length||void 0,c=s.slice(0,o).join("."),u=t[c].creationContext;return i.$ngViewContextAnchor===(u&&u.name)};let Xc=0;class Yc{constructor(t,n,e){this.$id=Xc++,this.type=t,this.message=n,this.detail=e,this.redirected=!1}static superseded(t,n){const e=new Yc(2,"The transition has been superseded by a different transition",t);return n&&n.redirected&&(e.redirected=!0),e}static redirected(t){return Yc.superseded(t,{redirected:!0})}static invalid(t){return new Yc(4,"This transition is invalid",t)}static ignored(t){return new Yc(5,"The transition was ignored",t)}static aborted(t){return new Yc(3,"The transition has been aborted",t)}static errored(t){return new Yc(6,"The transition errored",t)}static normalize(t){return mc(Yc)(t)?t:Yc.errored(t)}toString(){const t=(n=this.detail)&&n.toString!==Object.prototype.toString?n.toString():Oc(n);var n;const{$id:e,type:i,message:r}=this;return`Transition Rejection($id: ${e} type: ${i}, message: ${r}, detail: ${t})`}toPromise(){return Object.assign(((t=Promise.reject(this)).catch(()=>0),t),{rr:this});var t}}const Qc={current:()=>{},transition:null,traceData:{},bind:null},tu={cr:0,Sr:1};class nu{static chain(t,n){return t.reduce((t,n)=>t.then(()=>n.invokeHook()),n||Promise.resolve())}static invokeHooks(t,n){for(let e=0;e<t.length;e++){const i=t[e].invokeHook();if(An(i)){const r=t.slice(e+1);return nu.chain(r,i).then(()=>{n()})}}return n()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,n,e,i,r){this.transition=t,this.stateContext=n,this.registeredHook=e,this.options=i,this.isSuperseded=()=>2===this.type.hookPhase&&!this.options.transition.isActive(),this.options=Go(i,Qc),this.type=e.eventType,this.D=r}logError(t){this.D(t)}invokeHook(){const t=this.registeredHook;if(t._r)return;const n=this.getNotCurrentRejection();if(n)return n;const{options:e}=this;Ic.traceHookInvocation(this,this.transition,e);const i=()=>t.callback.call(e.bind,this.transition,this.stateContext),r=t=>Yc.normalize(t).toPromise(),s=n=>t.eventType.getErrorHandler(this)(n),o=n=>t.eventType.getResultHandler(this)(n);try{const t=i();return!this.type.synchronous&&An(t)?t.catch(r).then(o,s):o(t)}catch(t){return s(Yc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){return this.getNotCurrentRejection()||(An(t)?t.then(t=>this.handleHookResult(t)):(Ic.traceHookResult(t,this.transition),!1===t?Yc.aborted("Hook aborted transition").toPromise():t instanceof Nc?Yc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition.Or?Yc.aborted().toPromise():this.isSuperseded()?Yc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:n}=this;return`${dc("traceData.hookType")(t)||"internal"} context: ${dc("traceData.context.state.name")(t)||dc("traceData.context")(t)||"unknown"}, ${Sc(200,xc(n.callback))}`}}nu.HANDLE_RESULT=t=>n=>t.handleHookResult(n),nu.LOG_REJECTED_RESULT=t=>n=>{An(n)&&n.catch(n=>t.logError(Yc.normalize(n)))},nu.LOG_ERROR=t=>n=>t.logError(n),nu.REJECT_ERROR=()=>t=>{return(n=Promise.reject(t)).catch(()=>0),n;var n},nu.THROW_ERROR=()=>t=>{throw t};class eu{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new eu(t):null}constructor(t){this.Me=t;const n=this.Me.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":`\\.${t}`).join("");this.Cr=new RegExp(`^${n}$`)}matches(t){return this.Cr.test(`.${t}`)}}function iu(t,n,e){const i=_(n)?[n]:n;return!!(R(i)?i:function(t){const n=i;for(let e=0;e<n.length;e++){const i=new eu(n[e]);if(i&&i.matches(t.name)||!i&&n[e]===t.name)return!0}return!1})(t,e)}class ru{constructor(t,n,e,i,r,s={}){this.tranSvc=t,this.eventType=n,this.callback=e,this.matchCriteria=i,this.removeHookFromRegistry=r,this.invokeCount=0,this._r=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}jr(t,n,e){if(!0===n)return t;const i=t.filter(t=>iu(t.state,n,e));return i.length?i:null}Ar(){return tc(this.tranSvc.Tr(),()=>!0)}Rr(t,n){const e=Object.assign(this.Ar(),this.matchCriteria);return Object.values(this.tranSvc.Tr()).reduce((i,r)=>{const s=r.scope===tu.Sr,o=t[r.name]||[],c=s?o:[hc(o)];return i[r.name]=this.jr(c,e[r.name],n),i},{})}matches(t,n){const e=this.Rr(t,n);return Object.values(e).every(t=>t)?e:null}deregister(){this.removeHookFromRegistry(this),this._r=!0}}function su(t,n,e){const i=(t.Mr=t.Mr||{})[e.name]=[],r=t=>Zo(i,t);function s(t,s,o={}){const c=new ru(n,e,s,t,r,o);return i.push(c),c.deregister.bind(c)}return t[e.name]=s,s}class ou{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.Ir.Pr(t).map(t=>this.buildHooks(t)).reduce(ic,[]).filter(Boolean)}buildHooks(t){const{transition:n}=this,e=n.treeChanges(),i=this.getMatchingHooks(t,e,n);if(!i)return[];const r={transition:n,current:n.options().current};return i.map(i=>i.matches(e,n)[t.criteriaMatchPath.name].map(e=>{const s=Object.assign({bind:i.bind,traceData:{hookType:t.name,context:e}},r),o=t.criteriaMatchPath.scope===tu.Sr?e.state.self:null,c=new nu(n,o,i,s,this.transition.Ir.D);return{hook:i,node:e,transitionHook:c}})).reduce(ic,[]).sort(function(t=!1){return function(n,e){const i=t?-1:1,r=(n.node.state.path.length-e.node.state.path.length)*i;return 0!==r?r:e.hook.priority-n.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,n,e){const i=0===t.hookPhase,r=this.transition.Ir;return(i?[r]:[this.transition,r]).map(n=>n.getHooks(t.name)).filter(function(t,n="assert failure"){return e=>{const i=t(e);if(!i)throw new Error(n);return i}}(k,`broken event named: ${t.name}`)).reduce(ic,[]).filter(t=>t.matches(n,e))}}class cu{constructor(t,n,e,i){if(this.Dr=i,this.Ir=e,this.Nr=Promise.withResolvers(),this.promise=this.Nr.promise,this.Mr={},this.qr=new ou(this),this.isActive=()=>this.Dr.transition===this,this.Ur=n,!n.valid())throw new Error(n.error());this.vn=Object.assign({current:pc(this)},n.options()),this.$id=e.Vr++;const r=Vc.buildToPath(t,n);this.Fr=Vc.treeChanges(t,r,this.vn.reloadState),this.createTransitionHookRegFns();const s=this.qr.buildHooksForPhase(0);nu.invokeHooks(s,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.Ir.Pr().filter(t=>0!==t.hookPhase).forEach(t=>su(this,this.Ir,t))}getHooks(t){return this.Mr[t]}applyViewConfigs(){const t=this.Fr.entering.map(t=>t.state);Vc.applyViewConfigs(this.Ir.$view,this.Fr.to,t)}$from(){return hc(this.Fr.from).state}$to(){return hc(this.Fr.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this.Ur}is(t){return t instanceof cu?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!iu(this.$to(),t.to,this)||t.from&&!iu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this.Fr[t].map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}))}getResolveTokens(t="to"){return new zc(this.Fr[t]).getTokens()}addResolvable(t,n){void 0===n&&(n=""),t=mc(Dc)(t)?t:new Dc(t);const e="string"==typeof n?n:n.name,i=this.Fr.to,r=Qo(i,t=>t.state.name===e);at(!!r,`targetNode not found ${e}`),new zc(i).addResolvables([t],r.state)}redirectedFrom(){return this.vn.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this.vn}entering(){return tc(this.Fr.entering,t=>t.state).map(t=>t.self)}exiting(){return tc(this.Fr.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return tc(this.Fr.retained,t=>t.state).map(t=>t.self)}views(t="entering",n){let e=this.Fr[t];return e=n?e.filter(fc("state",n)):e,e.map(t=>t.views).reduce(ic,[])}treeChanges(t){return t?this.Fr[t]:this.Fr}redirect(t){let n=1,e=this;for(;!O(e=e.redirectedFrom());)if(++n>20)throw new Error("Too many consecutive Transition redirects (20+)");const i={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(i.location="replace");const r=Object.assign({},this.options(),t.options(),i);t=t.withOptions(r,!0);const s=this.Ir.create(this.Fr.from,t),o=this.Fr.entering,c=s.Fr.entering;return Vc.matching(c,o,Vc.nonDynamicParams).filter(n=>{return!(e=t.options().reloadState,t=>e&&t.state.includes[e.name])(n);var e}).forEach((t,n)=>{t.resolvables=o[n].resolvables}),s}Lr(){const t=this.Fr;if(this.vn.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(cc(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(ec,!1))return;const n=t.to.map(t=>t.paramSchema),[e,i]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return cc(n,e,i).map(([t,n,e])=>qc.changed(t,n,e)).reduce(ic,[])}dynamic(){const t=this.Lr();return!!t&&t.map(t=>t.dynamic).reduce(ec,!1)}ignored(){return!!this.Hr()}Hr(){const t=this.Dr.transition,{reloadState:n}=this.vn,e=(t,e)=>{if(t.length!==e.length)return!1;const i=Vc.matching(t,e);return t.length===i.filter(t=>!n||!t.state.includes[n.name]).length},i=this.Fr,r=t&&t.Fr;return r&&e(r.to,i.to)&&e(r.exiting,i.exiting)?"SameAsPending":0===i.exiting.length&&0===i.entering.length&&e(i.from,i.to)?"SameAsCurrent":void 0}run(){const t=t=>this.qr.buildHooksForPhase(t),n=t(1);return nu.invokeHooks(n,()=>{const{Dr:t}=this;return t.nr=this.$id,t.transition=this,t.er.enqueue(this),Ic.traceTransitionStart(this),Promise.resolve()}).then(()=>{const n=t(2),e=Promise.resolve();return nu.invokeHooks(n,()=>e)}).then(()=>{Ic.traceSuccess(this.$to(),this),this.success=!0,this.Nr.resolve(this.to()),this.qr.buildHooksForPhase(3).forEach(t=>{t.invokeHook()})},n=>{Ic.traceError(n,this),this.success=!1,this.Nr.reject(n),this.Br=n,t(4).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){b(this.success)&&(this.Or=!0)}error(){const t=this.$to();if(t.self.abstract)return Yc.invalid(`Cannot transition to abstract state '${t.name}'`);const n=t.parameters(),e=this.params(),i=n.filter(t=>!t.validates(e[t.id]));if(i.length){const n=i.map(t=>`[${t.id}:${Oc(e[t.id])}]`).join(", "),r=`The following parameter values are not valid for state '${t.name}': ${n}`;return Yc.invalid(r)}return!1===this.success?this.Br:void 0}toString(){const t=this.from(),n=this.to(),e=t=>null!==t["#"]&&void 0!==t["#"]?t:Xo(t,["#"]);return`Transition#${this.$id}( '${S(t)?t.name:t}'${Oc(e(this.Fr.from.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{})))} -> ${this.valid()?"":"(X) "}'${S(n)?n.name:n}'${Oc(e(this.params()))} )`}}cu.diToken=cu;const uu=["$transition$",cu];function hu(t){const n=Object.values(t.treeChanges()).reduce(ic,[]).reduce(sc,[]),e=t=>uu.includes(t.token)?Dc.fromData(t.token,null):t;n.forEach(t=>{t.resolvables=t.resolvables.map(e)})}function au(t){return(n,e)=>(0,e.$$state()[t])(n,e)}const lu=au("onExit"),fu=au("onRetain"),du=au("onEnter"),mu=1e3,pu=t=>new zc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),$u=(t,n)=>new zc(t.treeChanges().to).subContext(n.$$state()).resolvePath("LAZY",t).then(()=>{}),gu=t=>new zc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),wu=t=>{const n=t.views("entering");if(n.length)return Promise.all(n.map(t=>Promise.resolve(t.load()))).then(()=>{})},vu=t=>{const n=t.Dr,e=()=>{n.transition===t&&(n.transition=null)};t.onSuccess({},()=>{n.ir.enqueue(t),n.$current=t.$to(),n.current=n.$current.self,ac(t.params(),n.params)},{priority:1e4}),t.promise.then(e,e)};function bu(t,n,e,i){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const r=t.entering().filter(t=>!!t.$$state().lazyLoad).map(n=>yu(t,n,i));return Promise.all(r).then(function(){if("url"!==t.originalTransition().options().source){const e=t.targetState();return n.target(e.identifier(),e.params(),e.options())}const i=e.match(e.parts()),r=i&&i.rule;if(r&&"STATE"===r.type){const{state:e}=r,s=i.match;return n.target(e,s,t.options())}e.sync()})})}function yu(t,n,e){const i=n.$$state().lazyLoad;let r=i.Ri;if(!r){const s=t=>(delete n.lazyLoad,delete n.$$state().lazyLoad,delete i.Ri,t),o=t=>(delete i.Ri,Promise.reject(t));r=i.Ri=Promise.resolve(i(t,n)).then(function(t){return t&&k(t.states)&&t.states.forEach(t=>e.register(t)),t}).then(s,o)}return r}class ku{constructor(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){this.name=t,this.hookPhase=n,this.hookOrder=e,this.criteriaMatchPath=i,this.reverseSort=r,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=c}}function Eu(t){const n=t.Hr();if(!n)return;Ic.traceTransitionIgnored(t);const e=t.Dr.transition;return"SameAsCurrent"===n&&e&&e.abort(),Yc.ignored().toPromise()}function Su(t){if(!t.valid())throw new Error(t.error().toString())}const _u={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class xu{static $inject=At([jt.G,jt.lt,jt.D]);constructor(t,n,e){this.Vr=0,this.zr=[],this.Mr={},this.Wr={},this.globals=t,this.$view=n,this.Jr={},this.Zr(),this.Gr(),this.Kr(),this.D=e.handler,t.ir.onEvict(hu)}$get=[jt.Y,jt.ht,jt.tt,jt.lt,(t,n,e,i)=>(this.Jr.lazyLoad=bu(this,t,n,e),this.Jr.updateUrl=((t,n,e)=>{this.onSuccess({},t=>{const i=t.options(),r=n;if("url"!==i.source&&i.location&&r.$current.navigable){const t={replace:"replace"===i.location};e.push(r.$current.navigable.url,r.globals.params,t)}e.update(!0)},{priority:9999})})(0,t,n),this.Jr.redirectTo=((t,n)=>{this.onStart({to:t=>!!t.redirectTo},t=>{const e=t.to().redirectTo;if(!e)return;const i=n;function r(n){if(n)return n instanceof Nc?n:_(n)?i.target(n,t.params(),t.options()):n.state||n.params?i.target(n.state||t.to(),n.params||t.params(),t.options()):void 0}return R(e)?Promise.resolve(e(t)).then(r):r(e)})})(0,t),this.Jr.activateViews=((t,n)=>{this.onSuccess({},t=>{const e=t.views("entering"),i=t.views("exiting");(e.length||i.length)&&(i.forEach(t=>n.deactivateViewConfig(t)),e.forEach(t=>{n.activateViewConfig(t)}),n.sync())})})(0,i),this)];create(t,n){return new cu(t,n,this,this.globals)}Gr(){const t=nu,n=this.Wr,e=!1,i=!0;this.Xr("onCreate",0,0,n.to,e,t.LOG_REJECTED_RESULT,t.THROW_ERROR,i),this.Xr("onBefore",1,0,n.to),this.Xr("onStart",2,0,n.to),this.Xr("onExit",2,100,n.exiting,!0),this.Xr("onRetain",2,200,n.retained),this.Xr("onEnter",2,300,n.entering),this.Xr("onFinish",2,400,n.to),this.Xr("onSuccess",3,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i),this.Xr("onError",4,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i)}Zr(){const{Sr:t,cr:n}=tu;this.Yr("to",n),this.Yr("from",n),this.Yr("exiting",t),this.Yr("retained",t),this.Yr("entering",t)}Xr(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){const u=new ku(t,n,e,i,r,s,o,c);this.zr.push(u),su(this,this,u)}Pr(t){return(y(t)?this.zr.filter(n=>n.hookPhase===t):this.zr.slice()).sort((t,n)=>{const e=t.hookPhase-n.hookPhase;return 0===e?t.hookOrder-n.hookOrder:e})}Yr(t,n){this.Wr[t]={name:t,scope:n}}Tr(){return this.Wr}getHooks(t){return this.Mr[t]}Kr(){const t=this.Jr;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(Dc.fromData(cu,t),""),t.addResolvable(Dc.fromData("$transition$",t),""),t.addResolvable(Dc.fromData("$stateParams",t.params()),""),t.entering().forEach(n=>{t.addResolvable(Dc.fromData("$state$",n),n)})}),t.ignored=(()=>this.onBefore({},Eu,{priority:-9999}))(),t.invalid=(()=>this.onBefore({},Su,{priority:-1e4}))(),t.onExit=(()=>this.onExit({exiting:t=>!!t.onExit},lu))(),t.onRetain=(()=>this.onRetain({retained:t=>!!t.onRetain},fu))(),t.onEnter=(()=>this.onEnter({entering:t=>!!t.onEnter},du))(),t.eagerResolve=(()=>this.onStart({},pu,{priority:mu}))(),t.lazyResolve=(()=>this.onEnter({entering:pc(!0)},$u,{priority:mu}))(),t.resolveAll=(()=>this.onFinish({},gu,{priority:mu}))(),t.loadViews=(()=>this.onFinish({},wu))(),t.updateGlobals=(()=>this.onCreate({},vu))(),t.lazyLoad=bu(this)}}const Ou=pt("$stateProvider"),Cu=t=>t.catch(()=>0)&&t;class ju{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=At([jt.G,jt.ct,jt.D]);constructor(t,n,e){this.globals=t,this.transitionService=n,this.stateRegistry=void 0,this.urlService=void 0,this.$injector=void 0,this.invalidCallbacks=[],this.Qr=e.handler}$get=[jt.wt,jt.ht,(t,n)=>(this.urlService=n,this.$injector=t,this)];decorator(t,n){return this.stateRegistry.decorator(t,n)||this}state(t){if(!t.name)throw Ou("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Ou("stateinvalid",t.message)}return this}ts(t,n){const e=Fc(this.stateRegistry,t),{globals:i}=this,r=()=>i.er.peekTail(),s=r(),o=new kc(this.invalidCallbacks.slice()),c=this.$injector,u=t=>{if(!(t instanceof Nc))return;let n=t;return n=this.target(n.identifier(),n.params(),n.options()),n.valid()?r()!==s?Yc.superseded().toPromise():this.transitionTo(n.identifier(),n.params(),n.options()):Yc.invalid(n.error()).toPromise()};return function t(){const i=o.dequeue();return void 0===i?Yc.invalid(n.error()).toPromise():Promise.resolve(i(n,e,c)).then(u).then(n=>n||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Zo(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!y(t)||t,inherit:!1,notify:!1})}go(t,n,e){const i=Go(e,{relative:this.$current,inherit:!0},_u);return this.transitionTo(t,n,i)}target(t,n,e={}){if(S(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");const i=this.stateRegistry;if(e.reloadState=!0===e.reload?i.root():i.matcher.find(e.reload,e.relative),e.reload&&!e.reloadState)throw new Error(`No such reload state '${_(e.reload)?e.reload:e.reload.name}'`);return new Nc(this.stateRegistry,t,n,e)}getCurrentPath(){const{globals:t}=this,n=t.ir.peekTail();return n?n.Fr.to:(()=>[new Uc(this.stateRegistry.root())])()}transitionTo(t,n={},e={}){e=Go(e,_u);const i=()=>this.globals.transition;e=Object.assign(e,{current:i});const r=this.target(t,n,e),s=this.getCurrentPath();if(!r.exists())return this.ts(s,r);if(!r.valid())return o=r.error(),Cu(Promise.reject(o));var o;if(!1===e.supercede&&i())return Yc.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const c=t=>n=>{if(n instanceof Yc){const e=this.globals.nr<=t.$id;if(5===n.type)return e&&this.urlService.update(),Promise.resolve(this.globals.current);const{detail:i}=n;if(2===n.type&&n.redirected&&i instanceof Nc){const n=t.redirect(i);return n.run().catch(c(n))}if(3===n.type)return e&&this.urlService.update(),Promise.reject(n)}return this.defaultErrorHandler()(n),Promise.reject(n)},u=this.transitionService.create(s,r),h=u.run().catch(c(u));return Cu(h),Object.assign(h,{transition:u})}is(t,n,e){e=Go(e,{relative:this.$current});const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return;if(this.$current!==i)return!1;if(!n)return!0;const r=i.parameters({inherit:!0,matchingKeys:n});return qc.equals(r,qc.values(r,n),this.globals.params)}includes(t,n,e){e=Go(e,{relative:this.$current});const i=_(t)&&eu.fromString(t);if(i){if(!i.matches(this.$current.name))return!1;t=this.$current.name}const r=this.stateRegistry.matcher.find(t,e.relative),s=this.$current.includes;if(!y(r))return;if(!y(s[r.name]))return!1;if(!n)return!0;const o=r.parameters({inherit:!0,matchingKeys:n});return qc.equals(o,qc.values(o,n),this.globals.params)}href(t,n,e){e=Go(e,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),n=n||{};const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return null;e.inherit&&(n=this.globals.params.$inherit(n,this.$current,i));const r=i&&e.lossy?i.navigable:i;return r&&void 0!==r.url&&null!==r.url?this.urlService.href(r.url,n,{absolute:e.absolute}):null}defaultErrorHandler(t){return this.Qr=t||this.Qr}get(t,n){const e=this.stateRegistry;return 0===arguments.length?e.get():e.get(t,n||this.$current)}lazyLoad(t,n){const e=this.get(t);if(!e||!e.lazyLoad)throw new Error(`Can not lazy load ${t}`);const i=this.getCurrentPath(),r=Fc(this.stateRegistry,i);return yu(n=n||this.transitionService.create(i,r),e)}}class Au{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[jt.O,t=>this.enabled?t:t=>{var n;n=Element,Mn(t=>t instanceof n,t,"$element"),setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class Tu{constructor(){this.ns=!1}$get=[jt.q,jt.rt,jt.ot,jt.wt,(t,n,e,i)=>(this.$templateRequest=e,this.$http=t,this.$templateCache=n,this.$injector=i,this)];useHttpService(t){this.ns=t}fromConfig(t,n,e){const i=t=>Promise.resolve(t).then(t=>({template:t})),r=t=>Promise.resolve(t).then(t=>({component:t}));switch(y((s=t).template)?"template":y(s.templateUrl)?"templateUrl":y(s.templateProvider)?"templateProvider":y(s.component)?"component":y(s.componentProvider)?"componentProvider":"default"){case"template":return i(this.fromString(t.template,n));case"templateUrl":return i(this.fromUrl(t.templateUrl,n));case"templateProvider":return i(this.fromProvider(t.templateProvider,n,e));case"component":return r(t.component);case"componentProvider":return r(this.fromComponentProvider(t.componentProvider,e));default:return i("<ng-view></ng-view>")}var s}fromString(t,n){return R(t)?t(n):t}fromUrl(t,n){return R(t)&&(t=t(n)),O(t)?null:this.ns?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,n,e){const i=yn(t),r=k(t)?hc(t):t;return new Dc("",r,i).get(e)}fromComponentProvider(t,n){const e=yn(t),i=k(t)?hc(t):t;return new Dc("",i,e).get(n)}makeComponentTemplate(t,n,e,i){i=i||{};const r=t=>{const n=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}(t);return/^(x|data)-/.exec(n)?`x-${n}`:n},s=function(t,n){const e=t.get(n+Ve);if(!e||!e.length)throw new Error(`Unable to find component named '${n}'`);return e.map(Ru).reduce(ic,[])}(this.$injector,e).map(e=>{const{name:s,type:o}=e,c=r(s);if(t.getAttribute(c)&&!i[s])return`${c}='${t.getAttribute(c)}'`;const u=i[s]||s;if("@"===o)return`${c}='{{s$resolve.${u}}}'`;if("&"===o){const t=n.getResolvable(u),e=t&&t.data,i=e&&yn(e)||[];return`${c}='$resolve.${u}${k(e)?`[${e.length-1}]`:""}(${i.join(",")})'`}return`${c}='$resolve.${u}'`}).join(" "),o=r(e);return`<${o} ${s}></${o}>`}}const Ru=t=>S(t.bindToController)?Mu(t.bindToController):Mu(t.scope),Mu=t=>Object.keys(t||{}).map(n=>[n,/^([=<@&])[?]?(.*)/.exec(t[n])]).filter(t=>y(t)&&k(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function Pu(t,n){let e=["",""],i=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!n)return i;switch(n.squash){case!1:e=["(",")"+(n.isOptional?"?":"")];break;case!0:i=i.replace(/\/$/,""),e=["(?:/(",")|/)?"];break;default:e=[`(${n.squash}|`,")?"]}return i+e[0]+n.type.pattern.source+e[1]}const Iu=function(){const t=new RegExp("(/)","g");return n=>n.split(t).filter(Boolean)}(),Du={state:{params:{}},strict:!0,caseInsensitive:!0};class Nu{static pathSegmentsAndParams(t){return cc(t.es,t.mr.filter(t=>0===t.location).concat(void 0)).reduce(ic,[]).filter(t=>""!==t&&y(t))}static queryParams(t){return t.mr.filter(t=>1===t.location)}static compare(t,n){const e=t=>t.Et.weights=t.Et.weights||(t=>t.Et.segments=t.Et.segments||t.Et.path.map(Nu.pathSegmentsAndParams).reduce(ic,[]).reduce(Cc,[]).map(t=>_(t)?Iu(t):t).reduce(ic,[]))(t).map(t=>"/"===t?1:_(t)?2:t instanceof qc?3:void 0),i=e(t),r=e(n);((t,n)=>{const e=Math.max(t.length,n.length);for(;t.length<e;)t.push(0);for(;n.length<e;)n.push(0)})(i,r);const s=cc(i,r);let o;for(let t=0,n=s.length;t<n;t++)if(o=s[t][0]-s[t][1],0!==o)return o;return 0}constructor(t,n,e,i){this.Et={path:[this]},this.Ei=[],this.mr=[],this.es=[],this.rs=[],this.config=i=Go(i,Du),this.pattern=t;const r=new RegExp("([:*])([\\w[\\]]+)|\\{([\\w[\\]]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),s=new RegExp("([:]?)([\\w[\\].-]+)|\\{([\\w[\\].-]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),o=[];let c,u=0;const h=n=>{if(!Nu.nameValidator.test(n))throw new Error(`Invalid parameter name '${n}' in pattern '${t}'`);if(Qo(this.mr,fc("id",n)))throw new Error(`Duplicate parameter name '${n}' in pattern '${t}'`)},a=(e,i)=>{const r=e[2]||e[3],s=i?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:r,regexp:s,segment:t.substring(u,e.index),type:s?n.type(s)||(t=>Jo(n.type(i?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let l,f;for(;(c=r.exec(t))&&(l=a(c,!1),!(l.segment.indexOf("?")>=0));)h(l.id),this.mr.push(e.fromPath(l.id,l.type,i.state)),this.es.push(l.segment),o.push([l.segment,hc(this.mr)]),u=r.lastIndex;f=t.substring(u);const d=f.indexOf("?");if(d>=0){const t=f.substring(d);if(f=f.substring(0,d),t.length>0)for(u=0;c=s.exec(t);)l=a(c,!0),h(l.id),this.mr.push(e.fromSearch(l.id,l.type,i.state)),u=r.lastIndex}this.es.push(f),this.rs=o.map(t=>Pu.apply(null,t)).concat(Pu(f))}append(t){return this.Ei.push(t),t.Et={path:this.Et.path.concat(t),parent:this,pattern:null},t}isRoot(){return this.Et.path[0]===this}toString(){return this.pattern}ss(t,n){return n.value(t)}exec(t,n={},e){const i=(r=this.Et,s="pattern",o=()=>new RegExp(["^",oc(this.Et.path.map(t=>t.rs)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),r[s]=r[s]||o()).exec(t);var r,s,o;if(!i)return null;const c=this.parameters(),u=c.filter(t=>!t.isSearch()),h=c.filter(t=>t.isSearch()),a=this.Et.path.map(t=>t.es.length-1).reduce((t,n)=>t+n),l={};if(a!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function f(t){const n=t=>t.split("").reverse().join(""),e=tc(n(t).split(/-(?!\\)/),n);return tc(e,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<a;t++){const n=u[t];let e=i[t+1];for(let t=0;t<n.replace.length;t++)n.replace[t].from===e&&(e=n.replace[t].to);e&&!0===n.array&&(e=f(e)),l[n.id]=this.ss(e,n)}return h.forEach(t=>{let e=n[t.id];for(let n=0;n<t.replace.length;n++)t.replace[n].from===e&&(e=t.replace[n].to);l[t.id]=this.ss(e,t)}),e&&(l["#"]=e),l}parameters(t={}){return!1===t.inherit?this.mr:oc(this.Et.path.map(t=>t.mr))}parameter(t,n={}){const{parent:e}=this.Et;return(()=>{for(const n of this.mr)if(n.id===t)return n})()||!1!==n.inherit&&e&&e.parameter(t,n)||null}validates(t){return t=t||{},this.parameters().filter(n=>kt(t,n.id)).map(n=>((t,n)=>!t||t.validates(n))(n,t[n.id])).reduce(nc,!0)}format(t={}){const n=this.Et.path,e=n.map(Nu.pathSegmentsAndParams).reduce(ic,[]).map(t=>_(t)?t:r(t)),i=n.map(Nu.queryParams).reduce(ic,[]).map(r);if(e.concat(i).filter(t=>!1===t.isValid).length)return null;function r(n){const e=n.value(t[n.id]),i=n.validates(e),r=n.isDefaultValue(e),s=!!r&&n.squash,o=n.type.encode(e);return{param:n,value:e,isValid:i,isDefaultValue:r,squash:s,encoded:o}}const s=e.reduce((t,n)=>{if(_(n))return t+n;const{squash:e,encoded:i,param:r}=n;return!0===e?t.match(/\/$/)?t.slice(0,-1):t:_(e)?t+e:!1!==e||O(i)?t:k(i)?t+tc(i,qu).join("-"):r.raw?t+i:t+encodeURIComponent(i)},""),o=i.map(t=>{const{param:n,squash:e,isDefaultValue:i}=t;let{encoded:r}=t;if(!(O(r)||i&&!1!==e)&&(k(r)||(r=[r]),0!==r.length))return n.raw||(r=tc(r,encodeURIComponent)),r.map(t=>`${n.id}=${t}`)}).reduce(ic,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?`#${t["#"]}`:"")}}function qu(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}Nu.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Uu{name;navigable;parent;params;url;includes;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const n=this.name?eu.fromString(this.name):null;this.cs={nameGlob:n}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?`${t}.${this.name}`:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Go(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(n=>!t.matchingKeys||kt(t.matchingKeys,n.id))}parameter(t,n={}){return this.url&&this.url.parameter(t,n)||Qo(Object.values(this.params),fc("id",t))||n.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Uu.isStateDeclaration=t=>R(t.$$state),Uu.isState=t=>S(t.cs);class Vu{constructor(t,n,e){this.urlService=t,this.stateService=n,this.routerGlobals=e}create(t,n){const{isState:e,isStateDeclaration:i}=Uu,r=$c([[_,t=>r(this.urlService.compile(t))],[mc(Nu),t=>this.fromUrlMatcher(t,n)],[(...t)=>e(...t)||i(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[mc(RegExp),t=>this.fromRegExp(t,n)],[R,t=>new Fu(t,n)]]),s=r(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,n){let e=n;_(n)&&(n=this.urlService.compile(n)),mc(Nu)(n)&&(e=t=>n.format(t));const i={urlMatcher:t,matchPriority:function(n){const e=t.parameters().filter(t=>t.isOptional);return e.length?e.filter(t=>n[t.id]).length/e.length:1e-6},type:"URLMATCHER"};return Object.assign(new Fu(function(n){const e=t.exec(n.path,n.search,n.hash);return t.validates(e)&&e},e),i)}fromState(t,n,e){const i=Uu.isStateDeclaration(t)?t.$$state():t,r={state:i,type:"STATE"};return Object.assign(this.fromUrlMatcher(i.url,t=>{const r=n;r.href(i,t)!==r.href(e.current,e.params)&&r.transitionTo(i,t,{inherit:!0,source:"url"})}),r)}fromRegExp(t,n){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const e=_(n)?t=>n.replace(/\$(\$|\d{1,2})/,(n,e)=>t["$"===e?0:Number(e)]):n,i={regexp:t,type:"REGEXP"};return Object.assign(new Fu(n=>t.exec(n.path),e),i)}}Vu.isUrlRule=t=>t&&["type","match","handler"].every(n=>y(t[n]));class Fu{constructor(t,n){this.match=t,this.type="RAW",this.$id=-1,this.us=void 0,this.handler=n||(t=>t),this.priority=void 0}matchPriority(t){return at(b(t)),0-this.$id}}function Lu(t,n){let e=function(t,n){return(n.priority||0)-(t.priority||0)}(t,n);return 0!==e?e:(e=((t,n)=>{const e={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(e[t.type]||0)-(e[n.type]||0)})(t,n),0!==e?e:(e=((t,n)=>t.urlMatcher&&n.urlMatcher?Nu.compare(t.urlMatcher,n.urlMatcher):0)(t,n),0!==e?e:((t,n)=>{const e={STATE:!0,URLMATCHER:!0};return e[t.type]&&e[n.type]?0:(t.$id||0)-(n.$id||0)})(t,n)))}class Hu{constructor(t){this.hs=Lu,this.ls=[],this.fs=0,this.ds=t}removeRule(t){Zo(this.ls,t)}rule(t){if(!Vu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this.fs++,t.priority=t.priority||0,this.ls.push(t),this.ps=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this.ls}sort(t){const n=this.stableSort(this.ls,this.hs=t||this.hs);let e=0;for(let t=0;t<n.length;t++)n[t].us=e,t<n.length-1&&0!==this.hs(n[t],n[t+1])&&e++;this.ls=n,this.ps=!0}ensureSorted(){this.ps||this.sort()}stableSort(t,n){const e=t.map((t,n)=>({elem:t,idx:n}));return e.sort((t,e)=>{const i=n(t.elem,e.elem);return 0===i?t.idx-e.idx:i}),e.map(t=>t.elem)}when(t,n,e){const i=this.ds.create(t,n);return y(e&&e.priority)&&(i.priority=e.priority),this.rule(i),i}}class Bu{constructor(t){this.urlServiceConfig=t}fromConfig(t,n,e){return new qc(t,n,2,this.urlServiceConfig,e)}fromPath(t,n,e){return new qc(t,n,0,this.urlServiceConfig,e)}fromSearch(t,n,e){return new qc(t,n,1,this.urlServiceConfig,e)}}class zu{static $inject=At([jt.F,jt.Y,jt.G,jt.ut]);$location;constructor(t,n,e,i){this.$s=t,this.stateService=n,this.ds=new Vu(this,this.stateService,e),this.ls=new Hu(this.ds),this.gs=i,this.ws=new Bu(this.gs),this.vs=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[jt.F,jt.J,(t,n)=>(this.$location=t,n.$on("$locationChangeSuccess",t=>{for(let n=0,e=this.vs.length;n<e;n++)this.vs[n](t)}),this.listen(!0),this)];baseHref(){return this.bs||(this.bs=dn()||window.location.pathname)}url(t,n){if(y(t)){const n=decodeURIComponent(t);this.$location.setUrl(n)}return n&&this.$location.setState(n),this.$location.getUrl()}onChange(t){return this.vs.push(t),()=>Zo(this.vs,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const{stateService:n}=this,e={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},i=this.match(e);$c([[_,t=>this.url(t)],[Nc.isDef,t=>n.go(t.state,t.params,t.options)],[mc(Nc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,e))}listen(t){return!1===t?(this.ys&&this.ys(),void delete this.ys):this.ys=this.ys||this.onChange(t=>this.sync(t))}match(t){t=Object.assign({path:"",search:{},hash:""},t);const n=this.ls.rules(),e=n=>{const e=n.match(t);return e&&{match:e,rule:n,weight:n.matchPriority(e)}};let i;for(let t=0;t<n.length&&(!i||i.rule.us===n[t].us);t++){const r=e(n[t]);i=!i||r&&r.weight>i.weight?r:i}return i}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,n,e){const i=e&&!!e.replace;this.url(t.format(n||{}),i)}href(t,n,e){let i=t.format(n);if(x(i))return null;e=e||{absolute:!1};const r=this.$s.html5ModeConf.enabled;if(r||(i=`#${this.$s.hashPrefixConf}${i}`),i=function(t,n,e,i){return"/"===i?t:n?i.replace(/\/[^/]*$/,"")+t:e?i.slice(1)+t:t}(i,r,e.absolute,this.baseHref()),!e.absolute||!i)return i;const s=!r&&i?"/":"";return[`${window.location.protocol}//`,window.location.host,s,i].join("")}compile(t,n){const e=this.gs,i=n&&!n.state&&n.params;n=i?Object.assign({state:{params:i}},n):n;const r={strict:e.Ki,caseInsensitive:e.Gi};return new Nu(t,e.paramTypes,this.ws,Object.assign(r,n))}isMatcher(t){if(!S(t))return!1;let n=!0;return St(Nu.prototype).forEach(([e,i])=>{R(i)&&(n=n&&y(t[e])&&R(t[e]))}),n}}class Wu{constructor(t){this.ks=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,n,e=!0){if(!t&&""!==t)return;const i=_(t);let r=i?t:t.name;this.isRelative(r)&&(r=this.resolvePath(r,n));const s=this.ks[r];if(s&&(i||!(i||s!==t&&s.self!==t)))return s;if(i&&e){const t=Object.values(this.ks).filter(t=>t.cs.nameGlob?.matches(r));if(t.length>1)throw new Error(`stateMatcher.find: Found multiple matches for ${r} using glob: ${t.map(t=>t.name)}`);return t[0]}}resolvePath(t,n){if(!n)throw new Error(`No reference point given for path '${t}'`);const e=this.find(n),i=t.split("."),r=i.length;let s=0,o=e;for(;s<r;s++)if(""!==i[s]||0!==s){if("^"!==i[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${e.name}'`);o=o.parent}else o=e;const c=i.slice(s).join(".");return o.name+(o.name&&c?".":"")+c}}function Ju(t){return t.self.$$state=()=>t,t.self}function Zu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Jo(t.parent.data,t.data)),t.data}function Gu(t,n){return function(e){let i=e.self;if(i&&i.url&&i.name&&i.name.match(/\.\*\*$/)){const t={};ac(i,t),t.url+="{remainder:any}",i=t}const{parent:r}=e,s=function(t){if(!_(t))return!1;const n="^"===t.charAt(0);return{val:n?t.substring(1):t,root:n}}(i.url),o=s?t.compile(s.val,{state:i}):i.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${e}'`);return s&&s.root?o:(r&&r.navigable||n()).url.append(o)}}function Ku(t){return t.parent?t.parent.path.concat(t):[t]}function Xu(t){const n=t.parent?Object.assign({},t.parent.includes):{};return n[t.name]=!0,n}function Yu(t){const n=$c([[t=>t.resolveFn,t=>new Dc(nh(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Dc(nh(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Dc(nh(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new Dc(nh(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Dc(nh(t),t=>t,[t.useExisting],t.policy)]]),e=$c([[t=>_(t.val),t=>new Dc(t.token,t=>t,[t.val],t.policy)],[t=>k(t.val),t=>new Dc(t.token,hc(t.val),t.val.slice(0,-1),t.policy)],[t=>R(t.val),t=>new Dc(t.token,t.val,(t=>{const{$injector:n}=window.angular;return t.$inject||n&&yn(t,n.strictDi)||"deferred"})(t.val),t.policy)]]),i=$c([[mc(Dc),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!!(t&&t.val&&(_(t.val)||k(t.val)||R(t.val))),e],[pc(!0),t=>{throw new Error(`Invalid resolve value: ${Oc(t)}`)}]]),r=t.resolve;var s,o;return(k(r)?r:(s=r,o=t.resolvePolicy||{},Object.keys(s||{}).map(t=>({token:t,val:s[t],deps:void 0,policy:o[t]})))).map(i)}class Qu{constructor(t,n){this.Es=t,this.Ss=void 0;const e=this,i=()=>t.find("");var r,s;this._s={name:[t=>t.name],self:[Ju],parent:[function(n){return th(n)?null:t.find(e.parentName(n))||i()}],data:[Zu],url:[Gu(n,i)],navigable:[(s=th,function(t){return!s(t)&&t.url?t:t.parent?t.parent.navigable:null})],params:[(r=n.ws,function(t){const n=t.url&&t.url.parameters({inherit:!1})||[],e=Object.values(tc(Xo(t.params||{},n.map(t=>t.id)),(n,e)=>r.fromConfig(e,null,t.self)));return n.concat(e).map(t=>[t.id,t]).reduce(uc,{})})],views:[],path:[Ku],includes:[Xu],resolvables:[Yu]}}builder(t,n){const{_s:e}=this,i=e[t]||[];return _(t)&&!y(n)?i.length>1?i:i[0]:_(t)&&R(n)?(e[t]=i,e[t].push(n),()=>e[t].splice(e[t].indexOf(n,1))&&null):void 0}build(t){const{Es:n,_s:e}=this,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(const n in e){if(!kt(e,n))continue;const i=e[n].reduce((t,n)=>e=>n(e,t),()=>{});t[n]=i(t)}return t}parentName(t){const n=t.name||"",e=n.split(".");if("**"===e.pop()&&e.pop(),e.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${n})`);return e.join(".")}return t.parent?_(t.parent)?t.parent:t.parent.name:""}name(t){const{name:n}=t;if(-1!==n.indexOf(".")||!t.parent)return n;const e=_(t.parent)?t.parent:t.parent.name;return e?`${e}.${n}`:n}}function th(t){return""===t.name}function nh(t){return t.provide||t.token}class eh{constructor(t,n,e,i,r){this.stateRegistry=t,this.urlServiceRules=n,this.states=e,this.builder=i,this.listeners=r,this.queue=[]}register(t){const n=new Uu(t);if(!_(name))throw new Error("State must have a valid name");if(kt(this.states,n.name)||this.queue.map(t=>t.name).includes(n.name))throw new Error(`State '${n.name}' is already defined`);return this.queue.push(n),this.flush(),n}flush(){const{queue:t,states:n,builder:e}=this,i=[],r=[],s={},o=t=>kt(this.states,t)&&this.states[t],c=()=>{i.length&&this.listeners.forEach(t=>t("registered",i.map(t=>t.self)))};for(;t.length>0;){const u=t.shift(),{name:h}=u,a=e.build(u),l=r.indexOf(u);if(a){const t=o(h);if(t&&t.name===h)throw new Error(`State '${h}' is already defined`);const e=o(`${h}.**`);e&&this.stateRegistry.deregister(e),n[h]=u,this.attachRoute(u),l>=0&&r.splice(l,1),i.push(u);continue}const f=s[h];if(s[h]=t.length,l>=0&&f===t.length)return t.push(u),c(),n;l<0&&r.push(u),t.push(u)}return c(),n}attachRoute(t){if(t.abstract||!t.url)return;const n=this.urlServiceRules;n.rule(n.ds.create(t))}}class ih{static $inject=At([jt.ht,jt.Y,jt.G,jt.lt]);constructor(t,n,e,i){this.states={},n.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.ls,this.$injector=void 0,this.listeners=[],this.matcher=new Wu(this.states),this.builder=new Qu(this.matcher,t),this.builder.builder("views",Jc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new eh(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),i.rootViewContext(this.root()),e.$current=this.root(),e.current=e.$current.self}$get=[jt.wt,t=>(this.$injector=t,this.builder.Ss=t,this)];getStateHookBuilder(t){const n=this;return function(e){const i=e[t],r="onExit"===t?"from":"to";return i?function(t,e){const s=new zc(t.treeChanges(r)).subContext(e.$$state()),o=Object.assign(rh(s),{$state$:e,$transition$:t});return n.$injector.invoke(i,n,o)}:void 0}}registerRoot(){this.xs=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this.xs.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Zo(this.listeners,t)}.bind(this)}root(){return this.xs}register(t){return this.stateQueue.register(t)}Os(t){const n=this.getAll().map(t=>t.$$state()),e=t=>{const i=n.filter(n=>-1!==t.indexOf(n.parent));return 0===i.length?i:i.concat(e(i))},i=e([t]),r=[t].concat(i).reverse();return r.forEach(t=>{const n=this.urlServiceRules;n.rules().filter(fc("state",t)).forEach(t=>n.removeRule(t)),delete this.states[t.name]}),r}deregister(t){const n=this.get(t);if(!n)throw new Error(`Can't deregister state; not found: ${t}`);const e=this.Os(n.$$state());return this.listeners.forEach(t=>t("deregistered",e.map(t=>t.self))),e}getAll(){return Et(this.states).map(t=>this.states[t].self)}get(t,n){if(0===arguments.length)return Et(this.states).map(t=>this.states[t].self);const e=this.matcher.find(t,n);return e&&e.self||null}decorator(t,n){return this.builder.builder(t,n)}}const rh=t=>t.getTokens().filter(_).map(n=>{const e=t.getResolvable(n);return[n,"NOWAIT"===t.getPolicy(e).async?e.promise:e.data]}).reduce(uc,{});function sh(t){const n=t.match(/^\s*({[^}]*})\s*$/);n&&(t=`(${n[1]})`);const e=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!e||4!==e.length)throw new Error(`Invalid state ref '${t}'`);return{state:e[1]||null,paramExpr:e[3]||null}}function oh(t){const n=tn(t,"$ngView"),e=dc("$cfg.path")(n);return e?hc(e).state.name:void 0}function ch(t,n,e){const i=e.ngState||t.current.name,r=Object.assign(function(t,n){return{relative:oh(t)||n.$current,inherit:!0,source:"sref"}}(n,t),e.ngStateOpts||{}),s=t.href(i,e.ngStateParams,r);return{ngState:i,ngStateParams:e.ngStateParams,ngStateOpts:r,href:s}}function uh(t){const n="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),e="FORM"===t.nodeName;return{attr:e?"action":n?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!e}}function hh(t,n,e,i,r){return function(s){const o=s.which||s.button,c=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.getAttribute("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=setTimeout(function(){t.getAttribute("disabled")||n.go(c.ngState,c.ngStateParams,c.ngStateOpts).then(()=>{r.$emit("$updateBrowser")})});s.preventDefault();let o=e.isAnchor&&!c.href?1:0;s.preventDefault=function(){o--<=0&&clearTimeout(i)}}}}function ah(t,n,e,i){let r=i?i.events:void 0;k(r)||(r=["click"]);for(const n of r)t.addEventListener(n,e);n.$on("$destroy",function(){for(const n of r)t.removeEventListener(n,e)})}function lh(t,n,e){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,r,s,o)=>{const c=uh(r),u=o[1]||o[0];let h=null;const a={},l=()=>ch(i,r,a),f=sh(s.ngSref);function d(){a.ngStateParams=Object.assign({},f.paramExpr&&t.$eval(f.paramExpr));const n=l();h&&h(),u&&(h=u.Cs(n.ngState,n.ngStateParams)),O(n.href)||s.$set(c.attr,n.href)}a.ngState=f.state,a.ngStateOpts=s.ngSrefOpts?t.$eval(s.ngSrefOpts):{},f.paramExpr&&(t.$watch(f.paramExpr,function(t){a.ngStateParams=Object.assign({},t),d()},!0),a.ngStateParams=Object.assign({},t.$eval(f.paramExpr))),d(),t.$on("$destroy",n.onStatesChanged(d)),t.$on("$destroy",e.onSuccess({},d)),c.clickable&&ah(r,t,hh(r,i,c,l,t),a.ngStateOpts)}}}function fh(t,n,e){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link(i,r,s,o){const c=uh(r),u=o[1]||o[0];let h=null;const a={},l=()=>ch(t,r,a),f=["ngState","ngStateParams","ngStateOpts"],d=f.reduce((t,n)=>(t[n]=()=>{},t),{});function m(){const t=l();h&&h(),u&&(h=u.Cs(t.ngState,t.ngStateParams)),O(t.href)||s.$set(c.attr,t.href)}if(f.forEach(t=>{a[t]=s[t]?i.$eval(s[t]):null,s.$observe(t,n=>{d[t](),d[t]=i.$watch(n,n=>{a[t]=n,m()})})}),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",e.onSuccess({},m)),!c.clickable)return;const p=hh(r,t,c,l,i);ah(r,i,p,a.ngStateOpts)}}}function dh(t,n,e,i,r){return{restrict:"A",controller(s,o,c){let u,h=[];const a=e(c.ngSrefActiveEq||"",!1)(s);try{u=s.$eval(c.ngSrefActive)}catch{}function l(t){t.promise.then(p,()=>{})}function f(){d(u)}function d(t){S(t)&&(h=[],St(t).forEach(([t,n])=>{const e=function(t,n){const e=sh(t);m(e.state,e.paramExpr&&s.$eval(e.paramExpr),n)};_(n)?e(n,t):k(n)&&n.forEach(n=>{e(n,t)})}))}function m(n,e,i){const r={state:t.get(n,oh(o))||{name:n},params:e,activeClass:i};return h.push(r),function(){Zo(h,r)}}function p(){const n=t=>t.split(/\s/).filter(Boolean),e=t=>t.map(t=>t.activeClass).map(n).reduce(ic,[]),i=e(h).concat(n(a)).reduce(sc,[]),r=e(h.filter(n=>t.includes(n.state.name,n.params))),s=h.filter(n=>t.is(n.state.name,n.params)).length?n(a):[],c=r.concat(s).reduce(sc,[]),u=i.filter(t=>!c.includes(t));c.forEach(t=>o.classList.add(t)),u.forEach(t=>o.classList.remove(t))}u=u||e(c.ngSrefActive||"",!1)(s),d(u),this.Cs=function(t,n){if(S(u)&&h.length>0)return;const e=m(t,n,u);return p(),e},s.$on("$destroy",function(){const t=i.onStatesChanged(f),n=r.onStart({},l),e=s.$on("$stateChangeSuccess",p);return function(){t(),n(),e()}}()),n.transition&&l(n.transition),p()}}}function mh(t,n,e,i){const r={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},s={count:0,terminal:!0,priority:400,transclude:"element",compile:(o,c,u)=>function(o,c,h){const a=h.onload||"",l=h.autoscroll,f={enter(t,e,i){bt(t)?n.enter(t,null,e).then(i):(e.after(t),i())},leave(t,e){bt(t)?n.leave(t).then(e):(t.parentElement.removeChild(t),e())}},d=tn(c,"$ngView")||r,m=i(h.ngView||h.name||"")(o)||"$default";let p,$,g,w;const v={id:s.count++,name:m,fqn:d.$ngView.fqn?`${d.$ngView.fqn}.${m}`:m,config:null,configUpdated:function(t){(!t||t instanceof Gc)&&w!==t&&(Ic.traceUIViewConfigUpdated(v,t&&t.viewDecl&&t.viewDecl.$context),w=t,k(t))},get creationContext(){const t=dc("$cfg.viewDecl.$context")(d),n=dc("$ngView.creationContext")(d);return t||n}};Ic.traceUIViewEvent("Linking",v),Zt(c,"$ngView",{$ngView:v}),k();const b=t.registerUIView(v);function k(t){const n=o.$new(),i=Promise.withResolvers(),r=Promise.withResolvers(),s={$cfg:t,$ngView:v},h={$animEnter:i.promise,$animLeave:r.promise,$$animLeave:r};n.$emit("$viewContentLoading",m),$=u(n,function(t){Zt(t,"$ngViewAnim",h),Zt(t,"$ngView",s),f.enter(t,c,function(){i.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(y(l)&&!l||l&&o.$eval(l))&&e(t)}),function(){if(p&&(Ic.traceUIViewEvent("Removing (previous) el",Gt(p,"$ngView")),p.remove(),p=null),g&&(Ic.traceUIViewEvent("Destroying scope",v),g.$destroy(),g=null),$){const t=Gt($,"$ngViewAnim");Ic.traceUIViewEvent("Animate out",t),f.leave($,function(){t.$$animLeave.resolve(),p=null}),p=$,$=null}}()}),g=n,g.$emit("$viewContentLoaded",t||w),g.$eval(a)}o.$on("$destroy",function(){Ic.traceUIViewEvent("Destroying/Unregistering",v),b()})}};return s}function ph(t,n,e){const i=dc("viewDecl.controllerAs"),r=dc("viewDecl.resolveAs");return{priority:-400,compile(s){const o=s.innerHTML;return Wt(s,!0),function(s,c){const u=Gt(c,"$ngView");if(!u)return c.innerHTML=o,void t(c.contentDocument||c.childNodes)(s);const h=u.$cfg||{viewDecl:{},getTemplate:()=>{}},a=h.path&&new zc(h.path);c.innerHTML=h.getTemplate(c,a)||o,Ic.traceUIViewFill(u.$ngView,c.innerHTML);const l=t(c.contentDocument||c.childNodes),{controller:f}=h,d=i(h),m=r(h),p=a&&rh(a);if(m&&(s.$target[m]=p),f){const t=n(f,Object.assign({},p,{$scope:s,$element:c}));d&&(s.$target[d]=t,s.$target[d][m]=p),Zt(c,"$ngControllerController",t),Array.from(c.children).forEach(n=>{Zt(n,"$ngControllerController",t)}),function(t,n,e,i){!R(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const r=hc(i.path).state.self,s={bind:n};if(R(n.uiOnParamsChanged)){const o=new zc(i.path).getResolvable("$transition$").data,c=t=>{if(t===o||-1!==t.exiting().indexOf(r))return;const e=t.params("to"),i=t.params("from"),s=t=>t.paramSchema,c=t.treeChanges("to").map(s).reduce(ic,[]),u=t.treeChanges("from").map(s).reduce(ic,[]),h=c.filter(t=>{const n=u.indexOf(t);return-1===n||!u[n].type.equals(e[t.id],i[t.id])});if(h.length){const i=h.map(t=>t.id),r=Yo(e,(t,n)=>-1!==i.indexOf(n));n.uiOnParamsChanged(r,t)}};e.$on("$destroy",t.onSuccess({},c,s))}if(R(n.uiCanExit)){const i=$h++,o="_uiCanExitIds",c=t=>!!t&&(t[o]&&!0===t[o][i]||c(t.redirectedFrom())),u=t=>{let e;const r=t[o]=t[o]||{};return c(t)||(e=Promise.resolve(n.uiCanExit(t)),e.then(t=>r[i]=!1!==t)),e},h={exiting:r.name};e.$on("$destroy",t.onBefore(h,u,s))}}(e,t,s,h)}l(s)}}}}lh.$inject=[jt.Y,jt.tt,jt.ct],fh.$inject=[jt.Y,jt.tt,jt.ct],dh.$inject=[jt.Y,jt.G,jt.V,jt.tt,jt.ct],mh.$inject=[jt.lt,jt.C,jt.H,jt.V],ph.$inject=[jt.T,jt.M,jt.ct];let $h=0;function gh(t){return{scope:!1,link:(n,e,i)=>{const r=i.ngChannel,s=e.childNodes.length>0,o=t.subscribe(r,t=>{s?S(t)&&n.$merge(t):e.innerHTML=_(t)?t:t.toString()});n.$on("$destroy",()=>o())}}}function wh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngSetter;if(!s)return void n.warn("ng-setter: expression null");const o=t(s).un;if(!o)return void n.warn("ng-setter: expression invalid");const c=t=>{o(e,t.trim())},u=new MutationObserver(t=>{let n=!1;for(const e of t)if("childList"===e.type||"characterData"===e.type){n=!0;break}n&&c(i.innerHTML)});u.observe(i,{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",()=>u.disconnect()),c(i.innerHTML)}}}gh.$inject=[jt.I],wh.$inject=[jt.B,jt.L];class vh{static $inject=At([jt.D,jt.o]);constructor(t,n){this.eventBus=new bh(t.handler),n.$get().$eventBus=this.eventBus}$get=()=>this.eventBus}class bh{constructor(t){this.js=Object.create(null),this.As=!1,this.$exceptionHandler=t}reset(){this.js=Object.create(null),this.As=!1}isDisposed(){return this.As}dispose(){this.As||(this.As=!0,this.js=Object.create(null))}subscribe(t,n,e=void 0){if(this.As)return()=>!1;let i=this.js[t];i||(this.js[t]=i=[]);const r={fn:n,context:e};return i.push(r),()=>this.unsubscribe(t,n,e)}subscribeOnce(t,n,e=void 0){if(this.As)return()=>!1;let i=!1;const r=this.subscribe(t,(...t)=>{i||(i=!0,r(),n.apply(e,t))});return r}unsubscribe(t,n,e=void 0){if(this.As)return!1;const i=this.js[t];if(!i||0===i.length)return!1;for(let t=0;t<i.length;t++){const r=i[t];if(r.fn===n&&r.context===e)return i.splice(t,1),!0}return!1}getCount(t){const n=this.js[t];return n?n.length:0}publish(t,...n){if(this.As)return!1;const e=this.js[t];if(!e||0===e.length)return!1;const i=e.slice();return queueMicrotask(()=>{for(const{fn:t,context:e}of i)try{t.apply(e,n)}catch(t){this.$exceptionHandler(t)}}),!0}}function yh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngInject;if(!s)return;const o=s.split(";").map(t=>t.trim()).filter(Boolean);for(const i of o)n.has(i)?e[i]=n.get(i):t.warn(`Injectable ${i} not found in $injector`)}}}function kh(){return{restrict:"A",link(t,n,e){const i=e.ngEl||n.id;t.$target[i]=n;const r=n.parentNode;if(!r)return;const s=new MutationObserver(e=>{for(const r of e)Array.from(r.removedNodes).forEach(e=>{e===n&&(delete t.$target[i],s.disconnect())})});s.observe(r,{childList:!0})}}}yh.$inject=[jt.L,jt.wt];class Eh{constructor(t,n={},e=console){this.Ts=t,this.gs={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},...n},this.L=e,this.Rs=0,this.Ms=!1,this.Ps=void 0,this.Is=null,this.connect()}connect(){this.Ms||(this.Is&&"function"==typeof this.Is.close&&this.Is.close(),this.Is=this.Ts(),this.Ds())}send(t){this.Is instanceof WebSocket?this.Is.send(JSON.stringify(t)):this.L.warn("Send is only supported on WebSocket connections")}close(){this.Ms=!0,clearTimeout(this.Ps),this.Is&&this.Is.close&&this.Is.close()}Ds(){const t=this.Is;t instanceof EventSource?(t.addEventListener("open",t=>this.Ns(t)),t.addEventListener("message",t=>this.qs(t.data,t)),t.addEventListener("error",t=>this.Us(t))):t instanceof WebSocket&&(t.onopen=t=>this.Ns(t),t.onmessage=t=>this.qs(t.data,t),t.onerror=t=>this.Us(t),t.onclose=()=>this.Vs())}Ns(t){this.Rs=0,this.gs.onOpen?.(t),this.Fs()}qs(t,n){try{t=this.gs.transformMessage?.(t)??t}catch{}this.gs.onMessage?.(t,n),this.Fs()}Us(t){this.gs.onError?.(t),this.Ls()}Vs(){this.Ls()}Ls(){this.Ms||(this.Rs<this.gs.maxRetries?(this.Rs++,this.gs.onReconnect?.(this.Rs),setTimeout(()=>this.connect(),this.gs.retryDelay)):this.L.warn("StreamConnection: Max retries reached"))}Fs(){this.gs.heartbeatTimeout&&(clearTimeout(this.Ps),this.Ps=setTimeout(()=>{this.L.warn("StreamConnection: heartbeat timeout, reconnecting..."),this.Hs(),this.Rs++,this.gs.onReconnect?.(this.Rs),this.connect()},this.gs.heartbeatTimeout))}Hs(){clearTimeout(this.Ps),this.Is?.close()}}class Sh{constructor(){this.defaults={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.Bs=t,(t,n={})=>{const e={...this.defaults,...n},i=this.#d(t,e.params);return new Eh(()=>new EventSource(i,{withCredentials:!!e.withCredentials}),{...e,onMessage:(t,n)=>{e.onMessage?.(t,n)}},this.Bs)})];#d(t,n){if(!n)return t;const e=St(n).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&");return t+(t.includes("?")?"&":"?")+e}}function _h(){return{restrict:"A",link(t,n,e){const i=e.onEnter,r=e.onLeave,s=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting?i&&t.$eval(i):r&&t.$eval(r)})},{root:null,threshold:.1});s.observe(n);const o=n.parentNode;let c;o&&(c=new MutationObserver(t=>{for(const e of t)Array.from(e.removedNodes).forEach(t=>{t===n&&(s.disconnect(),c.disconnect())})}),c.observe(o,{childList:!0})),t.$on("$destroy",()=>{s.disconnect(),c&&c.disconnect()})}}}function xh(){return{async link(t,n,e){t.$target[e.as||"wasm"]=(await Ct(e.src)).exports}}}function Oh(){return{scope:!1,async link(t,n,e){t.$scopename=e.ngScope}}}class Ch{constructor(){this.defaults={}}$get=()=>new jh(this.defaults)}class jh{constructor(t){this.zs=Object.freeze({...t})}get(t){return In(t,"key"),Rh()[t]||null}getObject(t){In(t,"key");const n=this.get(t);return n?JSON.parse(n):null}getAll(){return Rh()}put(t,n,e={}){In(t,"key"),In(n,"value");const i=encodeURIComponent(t),r=encodeURIComponent(n);document.cookie=`${i}=${r}${function(t={}){const n=[];if(y(t.path)){if(!_(t.path))throw new TypeError(`${Tn}:path ${t.path}`);n.push(`path=${t.path}`)}if(y(t.domain)){if(!_(t.domain))throw new TypeError(`${Tn}:domain ${t.domain}`);n.push(`domain=${t.domain}`)}if(!O(t.expires)){let e;if(t.expires instanceof Date)e=t.expires;else{if(!j(t.expires)&&!_(t.expires))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);e=new Date(t.expires)}if(isNaN(e.getTime()))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);n.push(`expires=${e.toUTCString()}`)}if(t.secure&&n.push("secure"),y(t.samesite)){if(!_(t.samesite))throw new TypeError(`${Tn}:samesite ${t.samesite}`);const e=t.samesite.toLowerCase();if(!["lax","strict","none"].includes(e))throw new TypeError(`${Tn}:samesite ${t.samesite}`);n.push(`samesite=${e}`)}return n.length?`;${n.join(";")}`:""}({...this.zs,...e})}`}putObject(t,n,e){In(t,"key"),Pn(n,"value");const i=JSON.stringify(n);this.put(t,i,e)}remove(t,n={}){In(t,"key"),this.put(t,"",{...this.zs,...n,expires:new Date(0)})}}let Ah="",Th=Object.create(null);function Rh(){const t=document.cookie;if(t===Ah)return Th;Ah=t;const n=Object.create(null);if(!t)return Th=n,n;const e=t.split("; ");for(const t of e){const e=t.indexOf("=");if(-1===e)continue;const i=decodeURIComponent(t.substring(0,e)),r=decodeURIComponent(t.substring(e+1));n[i]=r}return Th=n,n}function Mh(t,n){const e=encodeURIComponent(String(t));return n?e.replace(/(%3A|%2F|%3F|%23|%5B|%5D|%40|%21|%24|%26|%27|%28|%29|%2A|%2B|%2C|%3B|%3D)/gi,t=>decodeURIComponent(t)):e}class Ph{static $nonscope=!0;constructor(t,n,e,i={}){at(_(n)&&n.length>0,"baseUrl required"),this.Ws=t,this.Js=n,this.Zs=e,this.vn=i}buildUrl(t,n){return function(t,n={}){if("string"!=typeof t)throw new TypeError("template must be a string");return t.replace(/\{([^}]+)\}/g,(t,e)=>function(t,n){const e=/^[+#./;?&]/.test(t)?t[0]:"",i=e?t.slice(1):t,r={"":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!1},"+":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!0},"#":{sep:",",prefix:"#",named:!1,ifEmpty:"",allowReserved:!0},".":{sep:".",prefix:".",named:!1,ifEmpty:"",allowReserved:!1},"/":{sep:"/",prefix:"/",named:!1,ifEmpty:"",allowReserved:!1},";":{sep:";",prefix:";",named:!0,ifEmpty:"",allowReserved:!1},"?":{sep:"&",prefix:"?",named:!0,ifEmpty:"=",allowReserved:!1},"&":{sep:"&",prefix:"&",named:!0,ifEmpty:"=",allowReserved:!1}}[e];if(!r)throw new Error(`Unsupported operator: ${e}`);const s=i.split(",").map(t=>t.trim()).filter(Boolean),o=[];for(const t of s){const e=/^([A-Za-z0-9_.]+)(\*|(?::(\d+)))?$/.exec(t);if(!e)throw new Error(`Invalid varspec: ${t}`);const i=e[1],s="*"===e[2],c=e[3]?parseInt(e[3],10):void 0,u=n[i];if(null==u)continue;if(k(u)){if(0===u.length){r.named&&("="===r.ifEmpty?o.push(`${Mh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Mh(i,r.allowReserved)));continue}if(s)for(const t of u)null!=t&&(r.named?o.push(`${Mh(i,r.allowReserved)}=${Mh(t,r.allowReserved)}`):o.push(Mh(t,r.allowReserved)));else{const t=u.filter(t=>null!=t).map(t=>Mh(t,r.allowReserved)).join(",");r.named?""===t?o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Mh(i,r.allowReserved)}=${t}`):o.push(t)}continue}if("object"==typeof u){const t=Object.keys(u);if(0===t.length){r.named&&o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:""));continue}if(s)for(const n of t){const t=u[n];null!=t&&(r.named,o.push(`${Mh(n,r.allowReserved)}=${Mh(t,r.allowReserved)}`))}else{const n=t.map(t=>`${Mh(t,r.allowReserved)},${Mh(u[t],r.allowReserved)}`).join(",");r.named?""===n?o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Mh(i,r.allowReserved)}=${n}`):o.push(n)}continue}let h=String(u);"number"==typeof c&&(h=h.substring(0,c)),""!==h?r.named?o.push(`${Mh(i,r.allowReserved)}=${Mh(h,r.allowReserved)}`):o.push(Mh(h,r.allowReserved)):r.named?"="===r.ifEmpty?o.push(`${Mh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Mh(i,r.allowReserved)):o.push(Mh(h,r.allowReserved))}return 0===o.length?"":r.prefix+o.join(r.sep)}(e,n))}(t,n||{})}#m(t){return t&&this.Zs?new this.Zs(t):t}async list(t={}){const n=this.buildUrl(this.Js,t),e=await this.#p("get",n,null,t);return k(e.data)?e.data.map(t=>this.#m(t)):[]}async read(t,n={}){at(!O(t),`${Tn}:id ${t}`);const e=this.buildUrl(`${this.Js}/${t}`,n),i=await this.#p("get",e,null,n);return this.#m(i.data)}async create(t){at(!O(t),`${Tn}:item ${t}`);const n=await this.#p("post",this.Js,t);return this.#m(n.data)}async update(t,n){at(!O(t),`${Tn}:id ${t}`);const e=`${this.Js}/${t}`;try{const t=await this.#p("put",e,n);return this.#m(t.data)}catch{return null}}async delete(t){at(!O(t),`${Tn}:id ${t}`);const n=`${this.Js}/${t}`;try{return await this.#p("delete",n),!0}catch{return!1}}async#p(t,n,e=null,i={}){return this.Ws({method:t,url:n,data:e,params:i,...this.vn})}}class Ih{constructor(){this.Gs=[]}rest(t,n,e,i={}){this.Gs.push({name:t,url:n,entityClass:e,options:i})}$get=[jt.q,t=>{const n=new Map,e=(n,e,i={})=>new Ph(t,n,e,i);for(const t of this.Gs){const i=e(t.url,t.entityClass,t.options);n.set(t.name,i)}return e}]}function Dh(){return{scope:!1,link:(t,n,e)=>{const i=e.ngListener||n.id,r=n.childNodes.length,s=e=>{const i=e.detail;r?S(i)&&t.$merge(i):_(i)&&(n.innerHTML=i)};n.addEventListener(i,s),t.$on("$destroy",()=>n.removeEventListener(i,s))}}}class Nh{constructor(){this.defaults={protocols:[],autoReconnect:!0,reconnectInterval:1e3,maxRetries:1/0,heartbeatInterval:0,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.Bs=t,(t,n=[],e={})=>{const i={...this.defaults,...e};return i.protocols=n.length?n:i.protocols,new Eh(()=>new WebSocket(t,i.protocols),{...i,onMessage:(t,n)=>{i.onMessage?.(t,n)},onOpen:t=>{i.onOpen?.(t)},onClose:t=>{i.onClose?.(t)},onError:t=>{i.onError?.(t)}},this.Bs)})]}const qh=pt("ng"),Uh=pt("$injector"),Vh="strict-di",Fh={};class Lh extends EventTarget{constructor(t=!1){super(),this.Ks=t,this.Xs=[],this.$eventBus,this.$injector,this.version="0.17.0",this.getController=Qt,this.getInjector=cn,this.getScope=Kt,this.errorHandlingConfig=mt,this.$t={},Object.values(jt).forEach(t=>{this.$t[t]=t}),t||(window.angular=this),function(t){t.module("ng",[],[jt.gt,n=>{n.provider({$$sanitizeUri:qs}),n.value(jt.o,t),n.value(jt.ft,window),n.value(jt.P,document),n.provider(jt.T,Fe).directive({input:ki,textarea:ki,form:Ze,script:xi,select:Ci,option:ji,ngBind:Ai,ngBindHtml:Ri,ngBindTemplate:Ti,ngChannel:gh,ngClass:Ni,ngClassEven:Ui,ngClassOdd:qi,ngCloak:Vi,ngController:Fi,ngDelete:ce,ngDisabled:to,ngEl:kh,ngForm:Ge,ngGet:oe,ngHide:zi,ngIf:Wi,ngInclude:Ji,ngInject:yh,ngInit:Gi,ngListener:Dh,ngMessages:Ls,ngMessage:Ws,ngMessageExp:Js,ngMessagesInclude:zs,ngMessageDefault:Zs,ngNonBindable:Ki,ngPost:ue,ngPut:he,ngRef:Yi,ngRepeat:er,ngSetter:wh,ngShow:Bi,ngStyle:ir,ngSse:ae,ngSwitch:rr,ngSwitchWhen:sr,ngSwitchDefault:or,ngOptions:lr,ngTransclude:dr,ngModel:si,pattern:gr,ngPattern:gr,required:$r,ngRequired:$r,ngMinlength:vr,minlength:vr,ngMaxlength:wr,maxlength:wr,ngValue:_i,ngModelOptions:ni,ngViewport:_h,ngWasm:xh,ngWorker:fe,ngScope:Oh}).directive({input:Ei,ngAnimateSwap:Bo,ngAnimateChildren:zo,ngChecked:so,ngClick:io,ngDblclick:ao,ngInclude:Zi,ngHide:co,ngShow:no,ngMessages:eo,ngModel:ho,ngReadonly:uo,ngRequired:ro,ngValue:oo,ngSref:lh,ngSrefActive:dh,ngSrefActiveEq:dh,ngState:fh,ngView:mh}).directive({ngView:ph}).directive(pr).directive(_e),n.provider({$aria:Qs,$anchorScroll:kr,$animate:Ur,$$animation:No,$animateCss:jo,$$animateCssDriver:Vo,$$animateJs:Po,$$animateJsDriver:Ho,$$animateQueue:Mo,$controller:ve,$cookie:Ch,$exceptionHandler:Fr,$filter:Xr,$interpolate:ts,$http:re,$httpParamSerializer:Yn,$location:us,$log:ds,$parse:Os,$rest:Ih,$rootScope:Rs,$router:Ec,$sce:Se,$sceDelegate:Ee,$sse:Sh,$templateCache:Vr,$templateRequest:Ns,$urlConfig:bc,$view:Kc,$transitions:xu,$state:ju,$viewScroll:Au,$templateFactory:Tu,$url:zu,$stateRegistry:ih,$eventBus:vh,$websocket:Nh})}]).factory("$stateParams",[jt.G,t=>t.params]).value("$trace",Ic)}(this)}module(t,n,e){return K(t,"module"),n&&kt(Fh,t)&&(Fh[t]=null),function(t,n,e){return t[n]||(t[n]=e())}(Fh,t,()=>{if(!n)throw Uh("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new me(t,n,e)})}dispatchEvent(t){const n=this.$injector.get(jt.B),e=t.type,i=this.$injector.has(e)?this.$injector.get(e):this.getScopeByName(e);return!!i&&(n(t.detail)(i),!0)}bootstrap(t,n,e){if(e=e||{strictDi:!1},(t instanceof Element||t instanceof Document)&&cn(t))throw qh("btstrpd","App already bootstrapped");k(n)&&(this.Xs=n),this.Xs.unshift(["$provide",n=>{n.value("$rootElement",t)}]),this.Xs.unshift("ng");const i=qn(this.Xs,e.strictDi);return i.invoke([jt.J,jt.Z,jt.T,jt.wt,(t,n,e,i)=>{if(this.$rootScope=t,this.$injector=i,Zt(n,"$injector",i),e(n)(t),!kt(i,"strictDi"))try{i.invoke(()=>{})}catch(t){const n=t instanceof Error?t.toString():String(t);i.strictDi=!!/strict mode/.exec(n)}i.get(jt.tt).getAll().map(t=>t.$$state().resolvables).reduce(ic,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=yn(t.resolveFn,i.strictDi))}]),i}injector(t,n){return this.$injector=qn(t,n),this.$injector}init(t){let n,e;const i={};ut.forEach(i=>{const r=`${i}app`;let s;t.hasAttribute&&t.hasAttribute(r)&&(n=t,e=t.getAttribute(r)),!n&&(s=t.querySelector(`[${r.replace(":","\\:")}]`))&&(n=s,e=s.getAttribute(r))}),n&&(i.strictDi=n.hasAttribute(Vh)||n.hasAttribute(`data-${Vh}`),this.bootstrap(n,e?[e]:[],i))}getScopeByName(t){In(t,"name");const n=this.$injector.get("$rootScope").$searchByName(t);if(n)return n.$proxy}}const Hh=new Lh;document.addEventListener("DOMContentLoaded",()=>Hh.init(document),{once:!0}),t.angular=Hh});
|
|
2
2
|
//# sourceMappingURL=angular-ts.umd.min.js.map
|