@angular-wave/angular.ts 0.9.8 → 0.9.9
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/core/compile/compile.d.ts +2 -59
- package/@types/core/compile/inteface.d.ts +82 -0
- package/@types/directive/channel/channel.d.ts +3 -5
- package/@types/directive/cloak/cloak.d.ts +2 -2
- package/@types/directive/events/events.d.ts +18 -0
- package/@types/directive/include/include.d.ts +2 -2
- package/@types/directive/options/options.d.ts +2 -2
- package/@types/directive/transclude/transclude.d.ts +4 -4
- package/@types/directive/viewport/viewport.d.ts +4 -0
- package/@types/interface.d.ts +1 -0
- package/@types/namespace.d.ts +63 -40
- package/@types/router/template-factory.d.ts +1 -1
- package/README.md +2 -2
- package/dist/angular-ts.esm.js +159 -129
- package/dist/angular-ts.umd.js +159 -129
- package/dist/angular-ts.umd.min.js +1 -1
- package/dist/angular.css +1 -0
- package/package.json +4 -3
- package/css/angular.css +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",s="ng-dirty",i="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=Symbol("isProxy");function p(t){return!(!t||!t[d])}const f=dt("ng");let $=0;function m(){return $+=1,$}function g(t){return E(t)?t.toLowerCase():t}function v(t){if(null==t||T(t))return!1;if(Array.isArray(t)||t instanceof Array||E(t))return!0;const e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function y(t){return void 0===t}function b(t){return void 0!==t}function w(t){return null!==t&&"object"==typeof t}function E(t){return"string"==typeof t}function C(t){return null===t}function S(t){return null==t}function x(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function O(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function k(t){return"function"==typeof t}function _(t){return"[object RegExp]"===toString.call(t)}function T(t){return t&&t.window===t}function j(t){return t&&t.$watch}function R(t){return"boolean"==typeof t}function N(t){return t&&k(t.then)}function L(t){return E(t)?t.trim():t}function V(t,e){const n=e;return t.replace(/[A-Z]/g,(t,e)=>(e?n:"")+t.toLowerCase())}function M(t,...e){return function(t,e){const n=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!w(r)&&!k(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;e++){const n=s[e],i=r[n];t[n]=i}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,n),t}(t,e)}function P(t){return Number.isNaN(t)}function D(t,e){return M(Object.create(t),e)}function U(t){return k(t.toString)&&t.toString!==toString}function I(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function H(t){return g(t.nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function q(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,s,i;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(A(t))return!!A(e)&&B(t.getTime(),e.getTime());if(_(t))return!!_(e)&&t.toString()===e.toString();if(j(t)||j(e)||T(t)||T(e)||Array.isArray(e)||A(e)||_(e))return!1;for(s in i=Object.create(null),t)if("$"!==s.charAt(0)&&!k(t[s])){if(!z(t[s],e[s]))return!1;i[s]=!0}for(s in e)if(!(s in i)&&"$"!==s.charAt(0)&&b(e[s])&&!k(e[s]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(s=0;s<r;s++)if(!z(t[s],e[s]))return!1;return!0}}return!1}function K(t,e){if("hasOwnProperty"===t)throw f("badname","hasOwnProperty is not a valid {0} name",e)}function W(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!U(t)||Array.isArray(t)||A(t)?Y(t):t.toString()}return t}function G(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Q(t,e){return Array.prototype.slice.call(t,e)}function J(t,e){const n=arguments.length>2?Q(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:T(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":j(e)&&(n="$SCOPE"),n}function Y(t,e){if(!y(t))return x(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),s=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return P(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(s-r))}function tt(t){const e={};return(t||"").split("&").forEach(t=>{let n,r,s;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),s=t.substring(n+1)),r=nt(r),b(r)&&(s=!b(s)||nt(s),vt(e,r)?Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]:e[r]=s))}),e}function et(t){const e=[];return t&&Object.entries(t).forEach(([t,n])=>{Array.isArray(n)?n.forEach(n=>{e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}):e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}),e.length?e.join("&"):""}function nt(t){try{return decodeURIComponent(t)}catch{}}function rt(t){return st(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function st(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const it=["ng-","data-ng-"];function ot(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function at(t,e="Assertion failed"){if(!t)throw new Error(e)}function ct(t,e,n){if(!t)throw f("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function lt(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),ct(k(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ut={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ht(t){var e;return w(t)&&(b(t.objectMaxDepth)&&(ut.objectMaxDepth=x(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),b(t.urlErrorParamsEnabled)&&R(t.urlErrorParamsEnabled)&&(ut.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ut}function dt(t){return function(...e){const n=e[0],r=e[1];let s=`[${t?`${t}:`:""}${n}] `;const i=Q(e,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(y(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(p(t)?t.$target:t);return JSON.stringify(n,(t,n)=>{const r=Z(t,n);if(w(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r})}return t}(t));return s+=r.replace(/\{\d+\}/g,t=>{const e=+t.slice(1,-1);return e<i.length?i[e]:t}),new Error(s)}}function pt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${m()}`,t.$$hashKey):"undefined"===n?`${n}:${m()}`:`${n}:${t}`}function ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,(t,e,n)=>n?e.toUpperCase():e)}function mt(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}function gt(t){return!t||!Object.keys(t).length}function vt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function yt(t,e){return t.slice(0,e.length)===e}const bt=new Map;let wt=1;const Et="ng",Ct="$scope",St=/-([a-z])/g,xt=/_([a-z])/g,At=["multiple","selected","checked","disabled","readonly","required","open"],Ot=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function kt(t,e){return e.toUpperCase()}function _t(t){return t.replace(St,kt)}function Tt(t){return t.replace(xt,kt)}function jt(t,e){const n=t[Et],r=n&&bt.get(n);r&&(e?delete r.data[e]:r.data={},function(t){const e=t[Et],{data:n}=bt.get(e);n&&Object.keys(n).length||(bt.delete(e),t[Et]=void 0)}(t))}function Rt(t,e=!1){let n=t[Et],r=n&&bt.get(n);return e&&!r&&(t[Et]=n=++wt,r={data:{}},bt.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Lt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.COMMENT_NODE:case void 0:return!0;default:return!1}}function Vt(t,e){t&&(Array.isArray(t)?t.forEach(t=>Vt(t,e)):(!e&&Lt(t)&&Gt([t]),Lt(t)&&Gt(t.querySelectorAll("*"))),delete t[Et],t.innerHTML="")}function Mt(t,e,n){if(Lt(t)){let r;const s=b(n),i=!s&&e&&!w(e),o=!e,a=Rt(t,!i),c=a&&a.data;if(s)c[_t(e)]=n;else{if(o)return c;if(i)return c&&c[_t(e)];for(r in e)c[_t(r)]=e[r]}}}function Pt(t,e,n){if(Lt(t)){const r=Rt(t,!0);(r&&r.data)[_t(e)]=n}else t.parentElement&&Pt(t.parentElement,e,n)}function Dt(t,e){if(Lt(t)){const n=Rt(t,!1),r=n&&n.data;if(!e)return;return r&&r[_t(e)]}}function Ut(t){return Dt(t,Ct)}function It(t,e){return Pt(t,Ct,e)}function Ht(t,e){return Pt(t,"$isolateScope",e)}function Ft(t,e){return qt(t,`$${e||"ngController"}Controller`)}function qt(t,e){let n;for(t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);t;){if(b(n=Dt(t,e)))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Bt(t,e=!1){e||Vt(t);const n=t.parentNode;n&&n.removeChild(t)}function zt(t){let e;if("string"==typeof t){e=(new DOMParser).parseFromString(t,"text/html").body.firstChild.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");e=t.cloneNode(!0)}for(;e.firstChild;)e.removeChild(e.firstChild);const n=document.createElement("div");n.appendChild(e);const r=n.innerHTML;try{if(e.nodeType===Node.TEXT_NODE)return r.toLowerCase();if(e.nodeType===Node.COMMENT_NODE)return`\x3c!--${e.data.trim()}--\x3e`;{const t=r.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,e)=>"<"+e.toLowerCase())}}catch{return r.toLowerCase()}return r.toLowerCase()}function Kt(t){let e=t[0];const n=t[t.length-1];let r;for(let s=1;e!==n&&(e=e.nextSibling);s++)(r||t[s]!==e)&&(r||(r=Array.prototype.slice.call(t,0,s)),r.push(e));return r||t}function Wt(t,e){const n=e.toLowerCase();return!(!At.includes(n)||!Ot.includes(t.nodeName))&&n}function Gt(t){for(let e=0,n=t.length;e<n;e++)jt(t[e])}function Qt(t){return qt(t,"$injector")}function Jt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}function Zt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.childNodes}function Yt(t){switch(Vt(t,!0),t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t.replaceChildren()}}function Xt(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function te(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}const ee=Object.freeze({$attrs:"$attrs",$scope:"$scope",$element:"$element",$$AnimateRunner:"$$AnimateRunner",$$animateAsyncRun:"$$animateAsyncRun",$$animateCache:"$$animateCache",$$animateCssDriver:"$$animateCssDriver",$$animateJs:"$$animateJs",$$animateJsDriver:"$$animateJsDriver",$$animateQueue:"$$animateQueue",$$animation:"$$animation",$$rAFScheduler:"$$rAFScheduler",$$taskTrackerFactory:"$$taskTrackerFactory",$anchorScroll:"$anchorScroll",$animate:"$animate",$animateCss:"$animateCss",$aria:"$aria",$compile:"$compile",$controller:"$controller",$document:"$document",$eventBus:"$eventBus",$exceptionHandler:"$exceptionHandler",$filter:"$filter",$http:"$http",$httpParamSerializer:"$httpParamSerializer",$interpolate:"$interpolate",$location:"$location",$log:"$log",$viewScroll:"$viewScroll",$parse:"$parse",$rootScope:"$rootScope",$rootElement:"$rootElement",$router:"$router",$sce:"$sce",$sceDelegate:"$sceDelegate",$state:"$state",$stateRegistry:"$stateRegistry",$sse:"$sse",$$sanitizeUri:"$$sanitizeUri",$$sanitizeUriProvider:"$$sanitizeUriProvider",$templateCache:"$templateCache",$templateFactory:"$templateFactory",$templateRequest:"$templateRequest",$transitions:"$transitions",$urlConfig:"$urlConfig",$url:"$url",$view:"$view",$window:"$window",$provide:"$provide",$injector:"$injector",$compileProvider:"$compileProvider",$animateProvider:"$animateProvider",$filterProvider:"$filterProvider",$controllerProvider:"$controllerProvider"});function ne(t){return t.map(t=>t+"Provider")}const re="$injector",se="$compileProvider";class ie{constructor(t,e,n){at(E(t),"name required"),at(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],n&&this.config(n),this.services=[]}value(t,e){return this.invokeQueue.push([ee.$provide,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([ee.$provide,"constant",[t,e]]),this}config(t){return this.configBlocks.push([re,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"component",[t,e]]),this}factory(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"factory",[t,e]]),this}service(t,e){return e&&k(e)&&(e.$$moduleName=t),this.services.push(t),this.invokeQueue.push([ee.$provide,"service",[t,e]]),this}provider(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"provider",[t,e]]),this}decorator(t,e){return e&&k(e)&&(e.$$moduleName=t),this.configBlocks.push([ee.$provide,"decorator",[t,e]]),this}directive(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"directive",[t,e]]),this}animation(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const oe=/^([^(]+?)=>/,ae=/^[^(]*\(\s*([^)]*)\)/m,ce=/^\s*(_?)(\S+?)\1\s*$/,le=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ue=dt(re),he="Provider",de=!0;class pe{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(vt(this.cache,t)){if(this.cache[t]===de)throw ue("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=de;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],s=function(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ue("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=function(t){const e=me(t).replace(le,"");return e.match(oe)||e.match(ae)}(t),s[1].split(/,/).forEach(function(t){t.replace(ce,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=s;t<n;t++){const n=s[t];if("string"!=typeof n)throw ue("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&vt(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const s=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(me(t))?(s.unshift(null),new(Function.prototype.bind.apply(t,s))):t.apply(e,s)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,s=this.injectionArgs(t,e,n);return s.unshift(null),new(Function.prototype.bind.apply(r,s))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class fe extends pe{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),ue("unpr","Unknown provider: {0}",this.path.join(" <- "))}loadNewModules(){}}class $e extends pe{constructor(t,e){super(e),this.providerInjector=t,this.modules=t.modules}factory(t){const e=this.providerInjector.get(t+he);return this.invoke(e.$get,e,void 0,t)}has(t){const e=vt(this.providerInjector.cache,t+he),n=vt(this.cache,t);return e||n}}function me(t){return Function.prototype.toString.call(t)}const ge=/^([^(]+?)=>/,ve=/^[^(]*\(\s*([^)]*)\)/m,ye=/,/,be=/^\s*(_?)(\S+?)\1\s*$/,we=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ee=dt(re),Ce="Provider";function Se(t,e=!1){at(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Oe(c),factory:Oe(l),service:Oe(function(t,e){return l(t,[re,t=>t.instantiate(e)])}),value:Oe(function(t,e){return r[t+Ce]={$get:()=>e}}),constant:Oe(function(t,e){K(t,"constant"),s.cache[t]=e,i.cache[t]=e}),decorator:function(t,e){const n=s.get(t+Ce),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},s=r.$injector=new fe(r,e),i=new $e(s,e);r.$injectorProvider={$get:()=>i};let o=i;const a=u(t);return o=i.get(re),a.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>u(t).forEach(t=>t&&o.invoke(t)),o;function c(t,e){let n;if(K(t,"service"),n=k(e)||Array.isArray(e)?s.instantiate(e):e,!n.$get)throw Ee("pget","Provider '{0}' must define $get factory method.",t);return r[t+Ce]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(y(n))throw Ee("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){ct(y(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach(t=>{if(!n.get(t)){n.set(t,!0);try{if(E(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach(t=>{const e=s.get(t[0]);e[t[1]].apply(e,t[2])})}else k(t)||Array.isArray(t)?e.push(s.invoke(t)):lt(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),Ee("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),e}}function xe(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(we,"");return e.match(ge)||e.match(ve)}function Ae(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw Ee("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=xe(t),s[1].split(ye).forEach(function(t){t.replace(be,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}function Oe(t){return function(e,n){if(!w(e))return t(e,n);Object.entries(e).forEach(([e,n])=>{t(e,n)})}}class ke{constructor(t){if(ct(t,"element"),this.initial=null,this._node=null,this._element=void 0,this._nodes=void 0,this.linked=!1,this.isList=!1,E(t)){this.initial=t;let e=Jt(t);switch(!0){case e instanceof Element:this.element=e;break;case e instanceof Node:this.node=e}}else if(t instanceof NodeList)this.initial=Array.from(t).map(t=>t.cloneNode(!0)),1==t.length?this.node=t[0]:(this._nodes=Array.from(t),this.isList=!0);else if(t instanceof Element)this.initial=t.cloneNode(!0),this.element=t;else if(t instanceof Node)this.initial=t.cloneNode(!0),this._node=t;else{if(!(t instanceof Array))throw new Error("Invalid element passed to NodeRef");1==t.length?(this.initial=t[0].cloneNode(!0),this.node=t[0]):(this.initial=Array.from(t).map(t=>t.cloneNode(!0)),this.nodes=t)}}get element(){return ct(this._element,"element"),this._element}set element(t){ct(t instanceof Element,"element"),this._element=t,this._nodes=void 0,this.isList=!1}get node(){return ct(this._node||this._element,"node"),this._node||this._element}set node(t){ct(t instanceof Node,"node"),this._node=t,t.nodeType===Node.ELEMENT_NODE?this._element=t:this._element=void 0}set nodes(t){ct(Array.isArray(t)&&t.every(t=>t instanceof Node),"nodes"),this._nodes=t,this.isList=!0}get nodes(){return ct(this._nodes,"nodes"),this._nodes}get nodelist(){if(ct(this.isList,"nodes"),0===this._nodes.length)return this._nodes;if(this._nodes[0].parentElement)return this._nodes[0].parentElement.childNodes;{const t=document.createDocumentFragment();return this._nodes.forEach(e=>{t.appendChild(e)}),t.childNodes}}get dom(){return this.isList?this.nodelist:this.node}get size(){return this.isList?this._nodes.length:1}getAny(){return this.isList?this._nodes[0]:this._element||this._node}getAll(){return this.isList?this._nodes:this._element||this._node}collection(){return this.isList?Array.from(this._nodes):[this._element||this._node]}getIndex(t){return this.isList?this._nodes[t]:this.node}setIndex(t,e){ct(null!==t,"index"),ct(e,"node"),this.isList?this._nodes[t]=e:this.node=e}clone(){const t=this.isList?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new ke(t)}isElement(){return void 0!==this._element}}const _e=dt("$controller"),Te=/^(\S+)(\s+as\s+([\w$]+))?$/;function je(t,e){if(E(t)){const e=Te.exec(t);if(e)return e[3]}}class Re{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){K(t,"controller"),w(t)?Object.entries(t).forEach(([t,e])=>{this.controllers.set(t,e)}):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,s)=>{let i,o,a,c=s&&E(s)?s:null;if(r=!0===r,E(e)){if(o=e.match(Te),!o)throw _e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw _e("ctrlreg","The controller with the name '{0}' is not registered.",a);lt(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return i=Object.create(r||null),c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name)),function(){const r=t.invoke(e,i,n,a);return r!==i&&(w(r)||k(r))&&(i=r,c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name))),i}.bind(this,{instance:i,identifier:c})}return i=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,i,a||e.name),i}];addIdentifier(t,e,n,r){if(!t||!w(t.$scope))throw dt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Ne=Le(window.location.href);function Le(t){if(!E(t))return t;const e=new URL(t,window.location.href),n=e.hostname.includes(":")?`[${e.hostname}]`:e.hostname;return{href:e.href,protocol:e.protocol,host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:n,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:`/${e.pathname}`}}function Ve(t,e){return t=Le(t),e=Le(e),t.protocol===e.protocol&&t.host===e.host}function Me(t){return t.replace(/#$/,"")}const Pe=dt("$sce"),De={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ue(t){if("self"===t)return t;if(E(t)){if(t.indexOf("***")>-1)throw Pe("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(_(t))return new RegExp(`^${t.source}$`);throw Pe("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ie{constructor(){let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map(t=>Ue(t))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map(t=>Ue(t))),e},this.$get=[ee.$injector,ee.$$sanitizeUri,ee.$exceptionHandler,function(n,r,s){let i=function(){s(Pe("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,e){return"self"===t?Ve(e,Ne)||function(t){return Ve(t,document.baseURI)}(e):!!t.exec(e.href)}function a(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const c=a(),l={};return l[De.HTML]=a(c),l[De.CSS]=a(c),l[De.MEDIA_URL]=a(c),l[De.URL]=a(l[De.MEDIA_URL]),l[De.JS]=a(c),l[De.RESOURCE_URL]=a(l[De.URL]),{trustAs:function(t,e){const n=vt(l,t)?l[t]:null;if(n){if(null===e||y(e)||""===e)return e;if("string"==typeof e)return new n(e);s(Pe("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t))}else s(Pe("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e))},getTrusted:function(n,a){if(null===a||y(a)||""===a)return a;const c=vt(l,n)?l[n]:null;return c&&a instanceof c?a.$$unwrapTrustedValue():(k(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),n===De.MEDIA_URL||n===De.URL?r(a.toString(),n===De.MEDIA_URL):n===De.RESOURCE_URL?function(n){const r=Le(n.toString());let s,i,a=!1;for(s=0,i=t.length;s<i;s++)if(o(t[s],r)){a=!0;break}if(a)for(s=0,i=e.length;s<i;s++)if(o(e[s],r)){a=!1;break}return a}(a)?a:void s(Pe("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",a.toString())):n===De.HTML?i():void s(Pe("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof c?t.$$unwrapTrustedValue():t}}}]}}function He(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=[ee.$parse,ee.$sceDelegate,(e,n)=>{const r=ot(De);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=(t,n)=>{const s=e(n);return s.literal&&s.constant?s:e(n,e=>r.getTrusted(t,e))};const s=r.parseAs,{getTrusted:i}=r,{trustAs:o}=r;return Object.entries(De).forEach(([t,e])=>{const n=g(t);r[Tt(`parse_as_${n}`)]=function(t){return s(e,t)},r[Tt(`get_trusted_${n}`)]=function(t){return i(e,t)},r[Tt(`trust_as_${n}`)]=function(t){return o(e,t)}}),r}]}const Fe={};function qe(t,e,n,r){return{restrict:"A",compile(s,i){const o=t(i[n]);return function(t,n){n.addEventListener(r,n=>{try{o(t,{$event:n})}catch(t){e(t)}})}}}}"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 e=$t(`ng-${t}`);Fe[e]=["$parse","$exceptionHandler",(n,r)=>qe(n,r,e,t)]});const Be=dt("$compile"),ze=/^\w/,Ke=document.createElement("div");class We{static $nonscope=!0;constructor(t,e,n,r,s,i){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,i){const t=Object.keys(i);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=i[n]}}else this.$attr={};this.$nodeRef=s}get $$element(){return this.$nodeRef.node}$normalize=$t;$addClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.addClass(this.$$element,t):this.$nodeRef.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,t):this.$nodeRef.element.classList.remove(t))}$updateClass(t,e){const n=Ge(t,e);n&&n.length&&(mt(this.$$element)?this.$animate.addClass(this.$$element,n):this.$nodeRef.element.classList.add(...n.trim().split(/\s+/)));const r=Ge(e,t);r&&r.length&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,r):this.$nodeRef.element.classList.remove(...r.trim().split(/\s+/)))}$set(t,e,n,r){const s=Wt(this.$$element,t),i=h[t];let o=t;if(s?(this.$$element[t]=e,r=s):i&&(this[i]=e,o=i),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=V(t,"-")),"img"===this.$nodeRef.node.nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n){let t=p(this.$$element)?this.$$element.$target:this.$$element;null===e||y(e)?t.removeAttribute(r):ze.test(r)?s&&!1===e?t.removeAttribute(r):s?t.toggleAttribute(r,e):t.setAttribute(r,e):this.setSpecialAttr(this.$$element,r,e)}const{$$observers:a}=this;a&&a[o]&&a[o].forEach(t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}})}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),r.$$inter||!vt(this,t)||y(this[t])||e(this[t]),function(){q(r,e)}}setSpecialAttr(t,e,n){Ke.innerHTML=`<span ${e}>`;const{attributes:r}=Ke.firstChild,s=r[0];r.removeNamedItem(s.name),s.value=n,t.attributes.setNamedItem(s)}sanitizeSrcset(t,e){let n;if(!t)return t;if(!E(t))throw Be("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let r="";const s=L(t),i=/\s/.test(s)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=s.split(i),a=Math.floor(o.length/2);for(n=0;n<a;n++){const t=2*n;r+=this.$sce.getTrustedMediaUrl(L(o[t])),r+=" "+L(o[t+1])}const c=L(o[2*n]).split(/\s/);return r+=this.$sce.getTrustedMediaUrl(L(c[0])),2===c.length&&(r+=" "+L(c[1])),r}}function Ge(t,e){const n=new Set(t.split(/\s+/)),r=new Set(e.split(/\s+/));return Array.from(n).filter(t=>!r.has(t)).join(" ")}function Qe(t,e){return{restrict:"A",compile:()=>(n,r)=>{const s=r;""===e&&(e=t);const i=_t(e);n[i]||(n[i]=s.getAttribute(t));const o=new MutationObserver(e=>{const r=e[0].target.getAttribute(t);n[i]!==r&&(n[i]=r)});o.observe(s,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",()=>{o.disconnect()})}}}const Je=dt("$compile"),Ze=["ngIf","ngRepeat"],Ye=["ngSrc","ngSrcset","src","srcset"],Xe=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,tn=/^(on[a-z]+|formaction)$/,en="Directive";class nn{static $inject=[ee.$provide,ee.$$sanitizeUriProvider];constructor(t,e){const n={},r=Object.create(null);function s(t,e,n){const s=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach(([t,o])=>{if((o=o.trim())in r)return void(i[t]=r[o]);const a=o.match(s);if(!a)throw Je("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,o,n?"controller bindings definition":"isolate scope definition");i[t]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||t},a[4]&&(r[o]=i[t])}),i}function i(t,e){const n={isolateScope:null,bindToController:null};if(w(t.scope)&&(!0===t.bindToController?(n.bindToController=s(t.scope,e,!0),n.isolateScope={}):n.isolateScope=s(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=s(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Je("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(r,s){return ct(r,"name"),K(r,"directive"),E(r)?(!function(t){const e=t.charAt(0);if(!e||e!==g(e))throw Je("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Je("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(r),ct(s,"directiveFactory"),vt(n,r)||(n[r]=[],t.factory(r+en,["$injector","$exceptionHandler",function(t,e){const s=[];return n[r].forEach((n,i)=>{try{let e=t.invoke(n);const o=t=>()=>t;k(e)?e={compile:o(e)}:!e.compile&&e.link&&(e.compile=o(e.link)),e.priority=e.priority||0,e.index=i,e.name=e.name||r,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&w(e)&&Object.entries(e).forEach(([t,n])=>{const r=n.match(Xe);n.substring(r[0].length)||(e[t]=r[0]+t)}),e}(e),e.restrict=function(t,e){if(t&&(!E(t)||!/[EA]/.test(t)))throw Je("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,r),e.$$moduleName=n.$$moduleName,s.push(e)}catch(t){e(t)}}),s}])),n[r].push(s)):Object.entries(r).forEach(([t,n])=>e(t,n)),this},this.component=function(t,e){if(!E(t))return Object.entries(t).forEach(([t,e])=>this.component(t,e)),this;const n=e.controller||function(){};function r(t){function r(e){return k(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const s=e.template||e.templateUrl?e.template:"",i={controller:n,controllerAs:je(e.controller)||e.controllerAs||"$ctrl",template:r(s),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(i[t]=e)}),i}return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,k(n)&&(n[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){if(!b(t))return e.aHrefSanitizationTrustedUrlList();e.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!b(t))return e.imgSrcSanitizationTrustedUrlList();e.imgSrcSanitizationTrustedUrlList(t)};let o=!1;this.strictComponentBindingsEnabled=function(t){return b(t)?(o=t,this):o};const a=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in a&&a[r]!==n)throw Je("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,a[r],n);return a[r]=n,this},function(){function t(t,e){e.forEach(e=>{a[e.toLowerCase()]=t})}t(De.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(De.CSS,["*|style"]),t(De.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(De.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(De.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,r,s,c,u,h,d,f){let $;function m(){for(let t=0,e=$.length;t<e;++t)try{$[t]()}catch(t){r(t)}$=void 0}const g=e.startSymbol(),v=e.endSymbol(),C="{{"===g&&"}}"===v?t=>t:t=>t.replace(/\{\{/g,g).replace(/}}/g,v),S=/^ng(Attr|Prop|On|Observe)([A-Z].*)$/;return x;function x(t,e,n,r,s){let i=new ke(t),o=A(i,e,n,r,s),a=null;return function(t,e,n){if(!i)throw Je("multilink","This element has already been linked.");ct(t,"scope"),i.getAny()&&It(i.getAny(),t);s&&s.needsNewScope&&(t=t.$parent.$new());n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;l&&l.$$boundTransclude&&(l=l.$$boundTransclude);a||(a=function(t){const e=t;if(!e)return"html";return"foreignobject"!==H(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u));if("html"!==a){const t=Jt("<div></div>");t.append(i.node);const e=G(a,t.innerHTML);r=new ke(e[0])}else r=e?i.clone():i;if(c)for(const t in c)ct(r.element,"element"),Pt(r.element,`$${t}Controller`,c[t].instance);e&&e(r.dom,t);o&&o(t,r,l);e||(i=o=null);return r.linked=!0,r.getAll()}}function A(t,e,n,s,i){const o=[];let a,c=!1;for(let l=0;l<t.size;l++){const u=new We(h,f,r,d),p=T(t.getIndex(l),u,0===l?n:void 0,s);let $,m,g;p.length&&($=V(p,t.getIndex(l),u,e,null,[],[],Object.assign({},i,{index:l,parentNodeRef:t,ctxNodeRef:t})));let v=$?.nodeLinkFn;if(v&&$.terminal||!(g=t.getIndex(l).childNodes)||!g.length)m=null;else{let t=v?($.transcludeOnThisElement||!$.templateOnThisElement)&&$.transclude:e;m=A(new ke(g),t)}(v||m)&&(o.push({index:l,nodeLinkFnCtx:$,childLinkFn:m}),c=!0,a=a||v),i=null}return c?function(n,r,s){ct(r,"nodeRef");let i=[];if(a){const e=r.isList?r.nodes.length:1;i=new Array(e),o.forEach(e=>{let n=e.index;0===n?i[n]=r.isList?r.nodes[n]:r.node:t.getIndex(n)&&(i[n]=r.nodes[n])})}else r.isList?r.nodes.forEach(t=>i.push(t)):i.push(r.node);o.forEach(({index:t,nodeLinkFnCtx:r,childLinkFn:o})=>{const a=i[t];let c,l;a.stable=!0,r?.nodeLinkFn?(c=r.newScope?n.$new():n,l=r.transcludeOnThisElement?_(n,r.transclude,s):!r.templateOnThisElement&&s?s:!s&&e?_(n,e):null,r?.newScope&&It(a,c),r.nodeLinkFn(o,c,a,l)):o&&o(n,new ke(a.childNodes),s)})}:null}function _(t,e,n){function r(r,s,i,o,a){r||((r=t.$transcluded(a)).$$transcluded=!0);return e(r,s,{parentBoundTranscludeFn:n,transcludeControllers:i,futureParentElement:o})}const s=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?s[r]=_(t,e.$$slots[r],n):s[r]=null;return r}function T(t,n,s,i){const o=[],{nodeType:a}=t,u=n.$attr;let h;switch(a){case Node.ELEMENT_NODE:h=t.nodeName.toLowerCase(),i!==$t(h)&&I(o,$t(h),"E",s);for(let e=0;e<t.attributes?.length;e++){let a=!1,h=!1,d=!1,p=!1,f=t.attributes[e],$=f.name,m=f.value,g=$t($.toLowerCase());const v=g.match(S);v&&(a="Attr"===v[1],h="Prop"===v[1],d="On"===v[1],p="Observe"===v[1],$=$.replace(l,"").toLowerCase().substring(4+v[1].length).replace(/_(.)/g,(t,e)=>e.toUpperCase())),h||d?(n[g]=m,u[g]=f.name,h?Q(t,o,g,$):o.push(qe(c,r,g,$))):p?o.push(Qe($,m)):(g=$t($.toLowerCase()),u[g]=$,!a&&vt(n,g)||(n[g]=m,Wt(t,g)&&(n[g]=!0)),Z(t,o,m,g,a),g!==i&&I(o,g,"A",s))}"input"===h&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{r.expressions.forEach(n=>{t.$watch(n,()=>{const n=r(p(t)?t.$target:t);if(1===e.nodeType)e.innerHTML=n;else e.nodeValue=n})})}})}(o,t.nodeValue)}return o.sort(K),o}function N(t,e,n,r,s,i){let o;return t?x(e,n,r,s,i):function(){return o||(o=x(e,n,r,s,i),e=n=i=null),o.apply(this,arguments)}}function V(t,e,n,s,i,o,a,c){c=c||{};let l=-Number.MAX_VALUE,p=!1,{newScopeDirective:$,controllerDirectives:m,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,hasElementTranscludeDirective:S,ctxNodeRef:x,parentNodeRef:A}=c,O=!1,_=!1,R=new ke(e);const V=c.index;let D,I,B;n.$nodeRef=R;let z,K=i,Q=s,Z=!1,tt=!1,nt=function(t,s,i,c){let l,p,v,b,E,C,x,A,O,_=s;e===i?(A=n,x=n.$nodeRef):(x=new ke(i),A=new We(h,f,r,d,x,n)),b=s,g?v=s.$newIsolate():$&&(b=s.$parent),c&&(C=function(t,e,n,r){let s;j(t)||(r=n,n=e,e=t,t=void 0);S&&(s=E);n||(n=S?x.node.parentElement:x.node);if(!r)return c(t,e,s,n,_);{const i=c.$$slots[r];if(i)return i(t,e,s,n,_);if(y(i))throw Je("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,zt(x.element))}},C.$$boundTransclude=c,C.isSlotFilled=function(t){return!!c.$$slots[t]}),m&&(E=function(t,e,n,r,s,i,o){const a=Object.create(null);for(const c in r){const l=r[c],h={$scope:l===o||l.$$isolateScope?s:i,$element:t.node,$attrs:e,$transclude:n};let{controller:d}=l;"@"===d&&(d=e[l.name]);const p=u(d,h,!0,l.controllerAs);a[l.name]=p,t.isElement()&&Pt(t.element,`$${l.name}Controller`,p.instance)}return a}(x,A,C,m,v,s,g)),g&&(v.$target.$$isolateBindings=g.$$isolateBindings,O=et(s,A,v,v.$$isolateBindings,g),O.removeWatches&&v.$on("$destroy",O.removeWatches));for(const t in E){const e=m[t],n=E[t],r=e.$$bindings.bindToController,s=n();n.instance=b.$new(s),Pt(x.node,`$${e.name}Controller`,n.instance),n.bindingInfo=et(b,A,n.instance,r,e)}for(m&&Object.entries(m).forEach(([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&w(n)&&M(E[t].instance,P(t,n,x.element,E))}),E&&Object.values(E).forEach(t=>{const e=t.instance;if(k(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(k(e.$onInit))try{e.$target.$onInit()}catch(t){r(t)}k(e.$onDestroy)&&b.$on("$destroy",()=>{e.$onDestroy()})}),l=0,p=o.length;l<p;l++){let t=o[l];const e=t.require&&P(t.directiveName,t.require,x.element,E);try{t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}for(g&&(g.template||null===g.templateUrl)&&(_=v),t&&i&&i.childNodes&&i.childNodes.length&&t(_,new ke(i.childNodes),c),l=a.length-1;l>=0;l--){let t=a[l];const e=t.require&&P(t.directiveName,t.require,x.node,E);try{t.isolateScope&&Ht(x.element,v),t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}E&&Object.values(E).forEach(t=>{const e=t.instance;k(e.$postLink)&&e.$postLink()})};for(let i=0,u=t.length;i<u&&(D=t[i],B=void 0,!(l>D.priority));i++){z=D.scope,z&&(D.templateUrl||(w(z)?(W("new/isolated scope",g||$,D,R),g=D):W("new/isolated scope",g,D,R)),$=$||D),I=D.name;const h=D.replace&&(D.templateUrl||D.template),d=D.transclude&&!Ze.includes(D.name);if(!Z&&(h||d)){let e;for(let n=i+1;e=t[n++];)if(e.transclude&&!Ze.includes(e.name)||e.replace&&(e.templateUrl||e.template)){tt=!0;break}Z=!0}if(!D.templateUrl&&D.controller&&(m=m||Object.create(null),W(`'${I}' controller`,m[I],D,R),m[I]=D),z=D.transclude,z)if(O=!0,Ze.includes(D.name)||(W("transclusion",b,D,R),b=D),"element"===z)S=!0,l=D.priority,B=R,R=new ke(document.createComment("")),n.$nodeRef=R,e=R.node,x.node=e,Y(new ke(B.getAny()),e,V),Q=N(tt,B.getAny(),s,l,K&&K.name,{nonTlbTranscludeDirective:b});else{const t=Object.create(null);if(w(z)){B=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(z).forEach(([r,s])=>{const i="?"===s.charAt(0);s=i?s.substring(1):s,e[s]=r,t[r]=null,n[r]=i}),R.element.childNodes.forEach(r=>{const s=e[$t(H(r))];s?(n[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):B.appendChild(r)}),Object.entries(n).forEach(([t,e])=>{if(!e)throw Je("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const e in t)if(t[e]){const n=t[e].childNodes;t[e]=N(tt,n,s)}B=B.childNodes}else B=e.cloneNode(!0).childNodes;Yt(e),Q=N(tt,B,s,void 0,void 0,{needsNewScope:D.$$isolateScope||D.$$newScope}),Q.$$slots=t}if(D.template)if(_=!0,W("template",v,D,R),v=D,z=k(D.template)?D.template(R.node,n):D.template,z=C(z),D.replace){if(K=D,B=Nt(z)?[]:rn(G(D.templateNamespace,L(z))),E(B)&&(B=Array.from(Zt(B)).filter(t=>t.nodeType===Node.ELEMENT_NODE)),e=B[0],1!==B.length||e.nodeType!==Node.ELEMENT_NODE)throw Je("tplrt","Template for directive '{0}' must have exactly one root element. {1}",I,"");Y(R,e),A&&A.setIndex(V,e);const r={$attr:{}},s=T(e,r),o=t.splice(i+1,t.length-(i+1));(g||$)&&U(s,g,$),t=t.concat(s).concat(o),F(n,r),u=t.length}else R.isElement()&&(R.element.innerHTML=z);if(D.templateUrl)_=!0,W("template",v,D,R),v=D,D.replace&&(K=D),nt=q(t.splice(i,t.length-i),R,n,e,O&&Q,o,a,{index:V,controllerDirectives:m,newScopeDirective:$!==D&&$,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,futureParentElement:c.futureParentElement}),u=t.length;else if(D.compile)try{const t=D.compile(R.getAny(),n,Q),e=D.$$originalDirective||D;k(t)?rt(null,J(e,t)):t&&rt(J(e,t.pre),J(e,t.post))}catch(t){r(t,zt(R.getAny()))}D.terminal&&(p=!0,l=Math.max(l,D.priority))}return c.hasElementTranscludeDirective=S,{nodeLinkFn:nt,terminal:p,transclude:Q,transcludeOnThisElement:O,templateOnThisElement:_,newScope:$&&!0===$.scope};function rt(t,e){t&&(t.require=D.require,t.directiveName=I,(g===D||D.$$isolateScope)&&(t=X(t,{isolateScope:!0})),o.push(t)),e&&(e.require=D.require,e.directiveName=I,(g===D||D.$$isolateScope)&&(e=X(e,{isolateScope:!0})),a.push(e))}}function P(t,e,n,r){let s;if(E(e)){const i=e.match(Xe),o=e.substring(i[0].length),a=i[1]||i[3],c="?"===i[2];if("^^"===a?n=n.parentElement?n.parentElement:void 0:(s=r&&r[o],s=s&&s.instance),!s){const t=`$${o}Controller`;s="^^"===a&&n&&n.nodeType===Node.DOCUMENT_NODE?null:n?a?qt(n,t):Dt(n,t):void 0}if(!s&&!c)throw Je("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(Array.isArray(e)){s=[];for(let i=0,o=e.length;i<o;i++)s[i]=P(t,e[i],n,r)}else w(e)&&(s={},Object.entries(e).forEach(([e,i])=>{s[e]=P(t,i,n,r)}));return s||null}function U(t,e,n){for(let r=0,s=t.length;r<s;r++)t[r]=D(t[r],{$$isolateScope:e,$$newScope:n})}function I(e,r,s,o){let a=!1;if(vt(n,r))for(let n,c=t.get(r+en),l=0,u=c.length;l<u;l++)if(n=c[l],(y(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const t=n.$$bindings=i(n,n.name);w(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),a=n}return a}function F(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach(([r,s])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==s&&(s.length?s+=("style"===r?";":" ")+e[r]:s=e[r]),t.$set(r,s,!0,n[r]))}),Object.entries(e).forEach(([e,s])=>{vt(t,e)||"$"===e.charAt(0)||(t[e]=s,"class"!==e&&"style"!==e&&(r[e]=n[e]))})}function q(t,e,n,i,o,a,c,l){let u,h,d,p=[];const f=e.getAny(),$=t.shift(),m=D($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),g=k($.templateUrl)?$.templateUrl(e.element,n):$.templateUrl,{templateNamespace:v}=$;return Yt(e.element),s(g).then(r=>{let s,y,b,S;if(r=C(r),$.replace){if(b=Nt(r)?[]:E(r)?Array.from(Zt(r)).filter(t=>t.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.TEXT_NODE):rn(G(v,L(r))),s=b[0],1!==b.length||s.nodeType!==Node.ELEMENT_NODE)throw Je("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,g);y={$attr:{}},Y(e,s,l.index);const i=T(s,y);w($.scope)&&U(i,!0),t=i.concat(t),F(n,y)}else s=f,e.element.innerHTML=r;for(t.unshift(m),d=V(t,s,n,o,$,a,c,{...l,ctxNodeRef:e}),u=d?.nodeLinkFn,i&&Object.entries(i).forEach(([t,n])=>{n===s&&(i[t]=e)}),h=A(new ke(e.getAny().childNodes),o);p.length;){const t=p.shift(),n=p.shift(),r=p.shift();let i=e.getAny();if(!t.$$destroyed){if(n!==f){const t=n.className;l.hasElementTranscludeDirective&&$.replace||(i=s.cloneNode(!0),n.appendChild(i));try{""!==t&&e.element.classList.forEach(t=>n.classList.add(t))}catch{}}S=d.transcludeOnThisElement?_(t,d.transclude,r):r,u(h,t,i,S)}}p=null}).catch(t=>{O(t)?r(t):r(new Error(t))}),function(t,e,n,r,s){let i=s;e.$$destroyed||(p?p.push(e,n,r):(u.transcludeOnThisElement&&(i=_(e,u.transclude,s)),u(h,e,n,r,i)))}}function K(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function W(t,e,n,r){function s(t){return t?` (module: ${t})`:""}if(e)throw Je("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,s(e.$$moduleName),n.name,s(n.$$moduleName),t,zt(r.getAny()))}function G(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes}default:return e}}function Q(t,e,n,r){if(tn.test(r))throw Je("nodomevents","Property bindings for HTML DOM event properties are disallowed");const s=H(t),i=function(t,e){const n=e.toLowerCase();return a[`${t}|${n}`]||a[`*|${n}`]}(s,r);let o=t=>t;"srcset"!==r||"img"!==s&&"source"!==s?i&&(o=d.getTrusted.bind(d,i)):o=t=>function(t,e){if(!t)return t;if(!E(t))throw Je("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let n="";const r=L(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,i=r.split(s),o=Math.floor(i.length/2);let a;for(a=0;a<o;a++){const t=2*a;n+=d.getTrustedMediaUrl(L(i[t])),n+=" "+L(i[t+1])}const c=L(i[2*a]).split(/\s/);return n+=d.getTrustedMediaUrl(L(c[0])),2===c.length&&(n+=" "+L(c[1])),n}(d.valueOf(t),"ng-prop-srcset"),e.push({priority:100,compile:function(t,e){const s=c(e[n]);return{pre:function(t,i){function a(){const e=s(t);i[r]=o(e)}a(),t.$watch(r,a),t.$watch(e[n],t=>{d.valueOf(t),a()})}}}})}function Z(t,n,r,s,i){const o=H(t),a=function(t,e){return"srcdoc"===e?d.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?d.RESOURCE_URL:d.MEDIA_URL:"xlinkHref"===e?"image"===t?d.MEDIA_URL:"a"===t?d.URL:d.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?d.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:d.URL}(o,s),c=!i,l=Ye.includes(s)||i;let u=e(r,c,a,l);if(u){if("multiple"===s&&"select"===o)throw Je("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",zt(t.outerHTML));if(tn.test(s))throw Je("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),c=i[s];c!==r&&(u=c&&e(c,!0,a,l),r=c),u&&(i[s]=u(t),(o[s]||(o[s]=[])).$$inter=!0,u.expressions.forEach(e=>{(i.$$observers&&i.$$observers[s].$$scope||t).$watch(e,()=>{let e=u(t);"class"===s?i.$updateClass(e,i.$$element.classList.value):i.$set(s,e)})}),0==u.expressions.length&&i.$set(s,c))}})})}}function Y(t,e,n){const r=t.getAny().parentNode;if(r)if(b(n)){const t=r.childNodes[n];t&&r.replaceChild(e,t)}else r.insertBefore(e,r.firstChild);const s=document.createDocumentFragment();t.collection().forEach(t=>{s.appendChild(t)}),t.node=e}function X(t,e){return M(function(){return t.apply(null,arguments)},t,e)}function tt(t,e){if(o)throw Je("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function et(t,n,r,s,i){const o=[],a={};let l;function u(e,n,s){k(r.$onChanges)&&($||(t.$postUpdate(m),$=[]),l||(l={},$.push(h)),l[e]={currentValue:n,firstChange:s})}function h(){r.$onChanges&&l&&r.$onChanges(l),l=void 0}return s&&Object.entries(s).forEach(([s,l])=>{const{attrName:d,optional:p,mode:f}=l;let $,m,g,v,C,S=!0,x=!0;switch(f){case"@":p||vt(n,d)||(tt(d,i.name),r[s]=n[d]=void 0),C=n.$observe(d,t=>{(E(t)||R(t))&&(u(s,t,x),r[s]=t,S?S=!1:(h(),x=!1))}),n.$$observers[d].$$scope=t,$=n[d],E($)?r[s]=e($)(t):R($)&&(r[s]=$),a[s]={currentValue:r[s],firstChange:!0},o.push(C);break;case"=":{if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),v=m.literal?z:B,g=m.assign||function(){throw $=r.$target[s]=m(t),Je("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name)},$=r.$target[s]=m(t.$target);const e=function(e){return v(e,r[s])||(v(e,$)?g(t,e=r[s]):r[s]=e),$=e,$};if(e.$stateful=!0,l.collection)C=t.$watch(n[d],e);else{if(n[d]){let r=n[d];t.$watch(r,r=>{const s=c(n[d],e);r?(m.literal?t.$target[d]=r:t[d]=r,s(t)):t[d]=t[n[d]]},!0)}C=r.$watch(d,e=>{if(e!==$||y(n[d])){if(m.inputs&&!m.literal||y(n[d])&&b(e))throw r.$target[d]=$,Je("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name);w(e)?Object.entries(e).forEach(([e,n])=>{t.$target[e]=n}):(g(t.$target,$=e),t.$handler.watchers.get(n[d])?.forEach(t=>{t.listenerFn(e)}))}},!0)}o.push(C);break}case"<":if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),r.$target[s]=m(t.$target),a[s]={currentValue:r.$target[s],firstChange:x},t.$target.attrs=n,n[d]&&(C=t.$watch(n[d],t=>{r.$target[s]=t,u(s,t,x),x&&(x=!1)},!0),o.push(C));break;case"&":if(p||vt(n,d)||tt(d,i.name),m=vt(n,d)?c(n[d]):()=>{},m.toString()===(()=>{}).toString()&&p)break;r.$target[s]=function(e){return m(t.$target,e)}}}),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}}function rn(t){let e=t.length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const sn={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],$$renameControl:(t,e)=>{t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},on="ng-pending",an="ng-submitted";class cn{static $nonscope=!0;static $inject=["$element","$attrs","$scope","$animate","$interpolate"];constructor(t,r,s,i,o){this.$$controls=[],this.$name=o(r.name||r.ngForm||"")(s),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=sn,this.$$element=t,this.$$animate=i,this.$error={},this.$$success={},this.$pending=void 0,this.$$classCache={};const a=this.$$element.classList.contains(e);this.$$classCache[e]=a,this.$$classCache[n]=!a}$rollbackViewValue(){this.$$controls.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.$$controls.forEach(t=>{t.$commitViewValue()})}$addControl(t){K(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$target.$$parentForm=this}$getControls(){return ot(this.$$controls)}$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(e=>{this.$setValidity(e,null,t)}),this.$error&&Object.keys(this.$error).forEach(e=>{this.$setValidity(e,null,t)}),this.$$success&&Object.keys(this.$$success).forEach(e=>{this.$setValidity(e,null,t)}),q(this.$$controls,t),t.$target.$$parentForm=sn}$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()}$setPristine(){this.$$animate.setClass(this.$$element,r,`${s} ${an}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach(t=>{t.$setPristine()})}$setUntouched(){this.$$controls.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==sn;)t=t.$$parentForm;t.$$setSubmitted()}$$setSubmitted(){this.$$animate.addClass(this.$$element,an),this.$submitted=!0,this.$$controls.forEach(t=>{t.$$setSubmitted&&t.$$setSubmitted()})}set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else p(t)&&(t=t.$target),t[e]=[n]}unset(t,e,n){const r=t[e];if(!r)return;-1===q(r,n)&&q(r,n.$target),0===r.length&&delete t[e]}$setValidity(t,r,s){let i,o=this;function a(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function c(t,r,s){r=r?`-${V(r,"-")}`:"",a(t,e+r,!0===s),a(t,n+r,!1===s)}y(r)?function(t,e,n,r){t[e]||(t[e]={});o.set(t[e],n,r)}(this,"$pending",t,s):function(t,e,n,r){t[e]&&o.unset(t[e],n,r);gt(t[e])&&(t[e]=void 0)}(this,"$pending",t,s),R(r)?r?(this.unset(this.$error,t,s),this.set(this.$$success,t,s)):(this.set(this.$error,t,s),this.unset(this.$$success,t,s)):(this.unset(this.$error,t,s),this.unset(this.$$success,t,s)),this.$pending?(a(this,on,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(a(this,on,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),i=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),c(this,t,i),this.$$parentForm.$setValidity(t,i,this)}}const ln=function(t){return["$parse",function(n){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:cn,compile:function(s,i){s.classList.add(r,e);const o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,e,r,s){const i=s[0];if(!("action"in r)){const t=function(t){i.$commitViewValue(),i.$setSubmitted(),t.preventDefault()};e.addEventListener("submit",t),e.addEventListener("$destroy",()=>{setTimeout(()=>{e.removeEventListener("submit",t)},0,!1)})}(s[1]||i.$$parentForm).$addControl(i);let a=o?function(t){if(""===t)return n('this[""]').assign;return n(t).assign||(()=>{})}(i.$name):()=>{};o&&(a(t,i),r.$observe(o,e=>{i.$name!==e&&(t.$target[i.$name]=void 0,i.$$parentForm.$$renameControl(i,e),t.$target!==i.$$parentForm&&i.$$parentForm!==sn||(t.$target[e]=i))})),e.addEventListener("$destroy",()=>{i.$target.$$parentForm.$removeControl(i),a(t,void 0),M(i,sn)})}}}}}]},un=ln(),hn=ln("ngForm"),dn=/(\s+|^)default(\s+|$)/;class pn{static $nonscope=!0;static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:$n,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class fn{static $nonscope=!0;constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return t=Object.assign({},t),Object.entries(t).forEach(([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=L(r.replace(dn,()=>(t.updateOnDefault=!0," "))))},this),e&&(delete t["*"],gn(t,this.$$options)),gn(t,$n.$$options),new fn(t)}}const $n=new fn({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),mn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:pn}};function gn(t,e){Object.keys(e).forEach(n=>{b(t[n])||(t[n]=e[n])})}const vn=dt("ngModel");class yn{static $nonscope=!0;static $inject=["$scope",ee.$exceptionHandler,"$attrs","$element",ee.$parse,ee.$animate,ee.$interpolate];constructor(t,r,s,i,o,a,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(s.name||"",!1)(t),this.$$parentForm=sn,this.$options=$n,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=o(s.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$attr=s,this.$$element=i,this.$$animate=a,this.$$parse=o,this.$$exceptionHandler=r,this.$$hasNativeValidators=!1,this.$$classCache={};const l=this.$$element.classList.contains(e);var u;this.$$classCache[e]=l,this.$$classCache[n]=!l,this.$$eventRemovers=new Set,(u=this).$$scope.$watch("value",()=>{const t=u.$$ngModelGet(u.$$scope);t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t)})}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let s,i=this;function o(t,e,n){n&&!t.$$classCache[e]?(mt(t.$$element)?t.$$animate.addClass(t.$$element,e):t.$$element.classList.add(e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(mt(t.$$element)?t.$$animate.removeClass(t.$$element,e):t.$$element.classList.remove(e),t.$$classCache[e]=!1)}function a(t,r,s){r=r?`-${V(r,"-")}`:"",o(t,e+r,!0===s),o(t,n+r,!1===s)}y(r)?function(t,e,n){t[e]||(t[e]={}),i.set(t[e],n)}(this,"$pending",t):function(t,e,n){t[e]&&i.unset(t[e],n),gt(t[e])&&(t[e]=void 0)}(this,"$pending",t),R(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(o(this,on,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,on,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),s=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,s),this.$$parentForm.$setValidity(t,s,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=e=>{let n=this.$$parsedNgModel(e);return k(n)&&(n=t(e)),n},this.$$ngModelSet=(t,n)=>{k(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw vn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,zt(this.$$element))}$render(){}$isEmpty(t){return y(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?mt(this.$$element)?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element.classList.remove(c),this.$$element.classList.add(a)):mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element.classList.remove(a),this.$$element.classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$element&&(mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element.classList.remove(a),this.$$element.classList.add(r)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,mt(this.$$element)?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s)):(this.$$element.classList.remove(r),this.$$element.classList.add(s)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,mt(this.$$element)?this.$$animate.setClass(this.$$element,i,o):(this.$$element.classList.remove(o),this.$$element.classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,mt(this.$$element)?this.$$animate.setClass(this.$$element,o,i):(this.$$element.classList.remove(i),this.$$element.classList.add(o))}$rollbackViewValue(){clearTimeout(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(P(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,s=this.$options.getOption("allowInvalid"),i=this;this.$$runValidators(e,t,t=>{s||n===t||(i.$modelValue=t?e:void 0,i.$modelValue!==r&&i.$$writeModelToScope())})}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,s=this;function i(t,e){r===s.$$currentValidationRunId&&s.$setValidity(t,e)}function o(t){r===s.$$currentValidationRunId&&n(t)}!function(){const t=s.$$parserName;if(!y(s.$$parserValid))return s.$$parserValid||(Object.keys(s.$validators).forEach(t=>{i(t,null)}),Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)})),i(t,s.$$parserValid),s.$$parserValid;i(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(s.$validators).forEach(([r,s])=>{const o=Boolean(s(t,e));n=n&&o,i(r,o)}),!n)return Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)}),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(s.$asyncValidators).forEach(([s,o])=>{const a=o(t,e);if(!N(a))throw vn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);i(s,void 0),n.push(a.then(()=>{i(s,!0)},()=>{r=!1,i(s,!1)}))}),n.length?Promise.all(n).then(()=>{o(r)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!y(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),y(t)){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function s(){e.$modelValue!=n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,s()),this.$$runValidators(t,this.$$lastCommittedViewValue,n=>{r||(e.$modelValue=n?t:void 0,s())})}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.$$exceptionHandler(t)}},this)}$setViewValue(t,e){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");x(e[t])?e=e[t]:x(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:x(e["*"])&&(e=e["*"]),clearTimeout(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=setTimeout(()=>{n.$commitViewValue()},e):this.$commitViewValue()}$overrideModelOptions(t){this.$$removeAllEventListeners(),this.$options=this.$options.createChild(t),this.$$updateEvents=this.$options.$$options.updateOn,this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,()=>{}))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$removeAllEventListeners(){this.$$eventRemovers.forEach(t=>t()),this.$$eventRemovers.clear()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))}),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))})}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function bn(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:yn,priority:1,compile:t=>(t.classList.add(r,i,e),{pre:(t,e,n,r)=>{const s=r[0],i=r[1]||s.$$parentForm,o=r[2];o&&(s.$options=o.$options),s.$$initGetterSetters(),i.$addControl(s),n.$observe("name",t=>{s.$name!==t&&s.$$parentForm.$$renameControl(s,t)});let a=t.$watch(n.ngModel,t=>{s.$$setModelValue(p(t)?t.$target:t)});t.$on("$destroy",()=>{s.$$parentForm.$removeControl(s),a()})},post:(t,e,n,r)=>{const s=r[0];s.$$setUpdateOnEvents(),e.addEventListener("blur",()=>{s.$touched||s.$setTouched()}),s.$viewChangeListeners.push(()=>t.$eval(e.dataset.change))}})}}const wn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,En=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Cn=/^(?=.{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])?)*$/,Sn=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,xn=/^(\d{4,})-(\d{2})-(\d{2})$/,An=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,On=/^(\d{4,})-W(\d\d)$/,kn=/^(\d{4,})-(\d\d)$/,_n=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Tn="validity",jn=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{jn.set(t,!0)});const Rn={text:function(t,e,n,r){Ln(t,e,n,r),Nn(r)},date:Pn("date",xn,Vn(xn,["yyyy","MM","dd"])),"datetime-local":Pn("datetimelocal",An,Vn(An,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Pn("time",_n,Vn(_n,["HH","mm","ss","sss"])),week:Pn("week",On,function(t,e){if(A(t))return t;if(E(t)){On.lastIndex=0;const n=On.exec(t);if(n){const t=+n[1],r=+n[2];let s=0,i=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(s=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,s,i,o,a)}}return NaN}),month:Pn("month",kn,Vn(kn,["yyyy","MM"])),number:function(t,e,n,r,s,i){let o;if(Dn(t,e,n,r,"number"),Un(r),Ln(t,e,n,r),b(n.min)||n.ngMin){let e=n.min||i(n.ngMin)(t);o=In(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||y(o)||e>=o},n.$observe("min",t=>{t!==e&&(o=In(t),e=t,r.$validate())})}if(b(n.max)||n.ngMax){let e=n.max||i(n.ngMax)(t),s=In(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||y(s)||e<=s},n.$observe("max",t=>{t!==e&&(s=In(t),e=t,r.$validate())})}if(b(n.step)||n.ngStep){let e=n.step||i(n.ngStep)(t),s=In(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||y(s)||qn(e,o||0,s)},n.$observe("step",t=>{t!==e&&(s=In(t),e=t,r.$validate())})}},url:function(t,e,n,r){Ln(t,e,n,r),Nn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||En.test(n)}},email:function(t,e,n,r){Ln(t,e,n,r),Nn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Cn.test(n)}},radio:function(t,e,n,r){const s=!n.ngTrim||"false"!==L(n.ngTrim);y(n.name)&&e.setAttribute("name",m());e.addEventListener("change",function(t){let i;e.checked&&(i=n.value,s&&(i=L(i)),r.$setViewValue(i,t&&t.type))}),r.$render=function(){let{value:t}=n;s&&(t=L(t));const i=p(r.$viewValue)?r.$viewValue.$target:r.$viewValue;e.checked=(p(t)?t.$target:t)===(p(i)?i.$target:i)},n.$observe("value",r.$render)},range:function(t,e,n,r){Dn(t,e,n,r,"range"),Un(r),Ln(t,e,n,r);const s=r.$$hasNativeValidators&&"range"===e.type;let i=s?0:void 0,o=s?100:void 0,a=s?1:void 0;const{validity:c}=e,l=b(n.min),u=b(n.max),h=b(n.step),d=r.$render;r.$render=s&&b(c.rangeUnderflow)&&b(c.rangeOverflow)?function(){d(),r.$setViewValue(e.value)}:d,l&&(i=In(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(i)||e>=i},p("min",function(t){if(i=In(t),P(r.$modelValue))return;if(s){let t=e.value;i>t&&(t=i,e.value=t),r.$setViewValue(t)}else r.$validate()}));u&&(o=In(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(o)||e<=o},p("max",function(t){if(o=In(t),P(r.$modelValue))return;if(s){let t=e.value;o<t&&(e.value=o,t=o<i?i:o),r.$setViewValue(t)}else r.$validate()}));h&&(a=In(n.step),r.$validators.step=s?function(){return!c.stepMismatch}:function(t,e){return r.$isEmpty(e)||y(a)||qn(e,i||0,a)},p("step",function(t){if(a=In(t),P(r.$modelValue))return;s?r.$viewValue!==e.value&&r.$setViewValue(e.value):r.$validate()}));function p(t,r){e.setAttribute(t,n[t]);let s=n[t];n.$observe(t,t=>{t!==s&&(s=t,r(t))})}},checkbox:function(t,e,n,r,s,i){const o=Bn(i,t,"ngTrueValue",n.ngTrueValue,!0),a=Bn(i,t,"ngFalseValue",n.ngFalseValue,!1);e.addEventListener("change",function(t){r.$setViewValue(e.checked,t&&t.type)}),r.$render=function(){e.checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(t=>z(t,o)),r.$parsers.push(t=>t?o:a)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Nn(t){t.$formatters.push(e=>t.$isEmpty(e)?e:e.toString())}function Ln(t,e,n,r){const s=e.type.toLowerCase();let i,o=!1;e.addEventListener("compositionstart",()=>{o=!0}),e.addEventListener("compositionend",()=>{o=!1,a()});let a=function(t){if(i&&(clearTimeout(i),i=null),o)return;let a=e.value;const c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(a=L(a)),(r.$viewValue!==a||""===a&&r.$$hasNativeValidators)&&r.$target.$setViewValue(a,c)};["input","change","paste","drop","cut"].forEach(t=>{e.addEventListener(t,a)}),jn[s]&&r.$$hasNativeValidators&&s===n.type&&e.addEventListener("keydown wheel mousedown",function(t){if(!i){const e=this[Tn],n=e.badInput,r=e.typeMismatch;i=setTimeout(()=>{i=null,e.badInput===n&&e.typeMismatch===r||a(t)})}}),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.value!==t&&(e.value=t)}}function Vn(t,e){return function(n,r){let s,i;if(A(n))return n;if(E(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),wn.test(n))return new Date(n);if(t.lastIndex=0,s=t.exec(n),s){s.shift(),i=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(s).forEach(([t,n])=>{t<e.length&&(i[e[t]]=+n)});const t=new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0);return i.yyyy<100&&t.setFullYear(i.yyyy),t}}return NaN}}const Mn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Pn(t,e,n){return function(r,s,i,o,a,c){if(Dn(r,s,i,o,t),Ln(0,s,i,o),o.$parsers.push(n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:h(n,undefined):void(o.$$parserName=t)),o.$formatters.push(function(e){if(e&&!E(e))throw vn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Mn.test(e))throw vn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!On.test(e))throw vn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!An.test(e))throw vn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e}),b(i.min)||i.ngMin){let e=i.min||c(i.ngMin)(r),s=u(p(e)?e.$target:e);o.$validators.min=function(e){return"month"===t?y(s)||n(e)>=n(s):!l(e)||y(s)||n(e)>=s},i.$observe("min",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}if(b(i.max)||i.ngMax){let e=i.max||c(i.ngMax)(r),s=u(p(e)?e.$target:e);o.$validators.max=function(e){return"month"===t?y(s)||n(e)<=n(s):!l(e)||y(s)||n(e)<=s},i.$observe("max",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}function l(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function u(t){return b(t)&&!A(t)?h(t)||void 0:t}function h(t,e){const r=o.$options.getOption("timezone");let s=n(t,e);return!Number.isNaN(s)&&r&&(s=X(s,r)),s}}}function Dn(t,e,n,r,s){(r.$$hasNativeValidators=w(e.validity))&&r.$parsers.push(t=>{const n=e[Tn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=s})}function Un(t){t.$parsers.push(e=>t.$isEmpty(e)?null:Sn.test(e)?parseFloat(e):void(t.$$parserName="number")),t.$formatters.push(e=>{if(!t.$isEmpty(e)){if(!x(e))throw vn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function In(t){return b(t)&&!x(t)&&(t=parseFloat(t)),P(t)?void 0:t}function Hn(t){return(0|t)===t}function Fn(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function qn(t,e,n){let r=Number(t);const s=!Hn(r),i=!Hn(e),o=!Hn(n);if(s||i||o){const t=s?Fn(r):0,a=i?Fn(e):0,c=o?Fn(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,s&&(r=Math.round(r)),i&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n===0}function Bn(t,e,n,r,s){let i;if(b(r)){if(i=t(r),!i.constant)throw vn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return i(e)}return s}function zn(t,e){return{restrict:"E",require:["?ngModel"],link:{pre(n,r,s,i){i[0]&&(Rn[g(s.type)]||Rn.text)(n,r,s,i[0],t,e)}}}}function Kn(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===g(n.type))return{pre(e,n){const r=n;r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}zn.$inject=["$filter","$parse"];const Wn=/^(true|false|\d+)$/;function Gn(){function t(t,e,n){t.value=b(n)?p(n)?n.$target:n:null,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>Wn.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,e=>{t(n,r,e)})}}}function Qn(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e.innerText)}}}Qn.$inject=["$templateCache"];class Jn{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap","$scope","$element"];static $inject=["$element","$scope"];constructor(t,e){this.$element=t,this.$scope=e,this.selectValueMap={},this.ngModelCtrl={},this.multiple=!1,this.unknownOption=document.createElement("option"),this.hasEmptyOption=!1,this.emptyOption=void 0,this.optionsMap=new Map,this.renderScheduled=!1,this.updateScheduled=!1,e.$on("$destroy",()=>{this.renderUnknownOption=()=>{}})}renderUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.$element.prepend(this.unknownOption),this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}updateUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}generateUnknownOptionValue(t){return y(t)?"? undefined:undefined ?":`? ${pt(t)} ?`}removeUnknownOption(){this.unknownOption.parentElement&&this.unknownOption.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,e=t in this.selectValueMap?this.selectValueMap[t]:t;return this.hasOption(e)?e:null}writeValue(t){const e=this.$element.options[this.$element.selectedIndex];if(e&&(e.selected=!1),this.hasOption(t)){this.removeUnknownOption();const e=pt(t);this.$element.value=e in this.selectValueMap?e:t;const n=this.$element.options[this.$element.selectedIndex];n?n.selected=!0:this.selectUnknownOrEmptyOption(t)}else this.selectUnknownOrEmptyOption(t)}addOption(t,e){if(e.nodeType===Node.COMMENT_NODE)return;K(t,'"option value"'),""===t&&(this.hasEmptyOption=!0,this.emptyOption=e);const n=this.optionsMap.get(t)||0;this.optionsMap.set(t,n+1),this.scheduleRender()}removeOption(t){const e=this.optionsMap.get(t);e&&(1===e?(this.optionsMap.delete(t),""===t&&(this.hasEmptyOption=!1,this.emptyOption=void 0)):this.optionsMap.set(t,e-1))}hasOption(t){return!!this.optionsMap.get(t)}$hasEmptyOption(){return this.hasEmptyOption}$isUnknownOptionSelected(){return this.$element.options[0]===this.unknownOption}$isEmptyOptionSelected(){return this.hasEmptyOption&&this.$element.options[this.$element.selectedIndex]===this.emptyOption}selectUnknownOrEmptyOption(t){null==t&&this.emptyOption?(this.removeUnknownOption(),this.selectEmptyOption()):this.unknownOption.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,e,n,r,s){let i,o;if(n.$attr.ngValue)n.$observe("value",t=>{let n;const r=e.selected;b(o)&&(this.removeOption(i),delete this.selectValueMap[o],n=!0),o=pt(t),i=t,this.selectValueMap[o]=t,this.addOption(t,e),e.setAttribute("value",o),n&&r&&this.scheduleViewValueUpdate()});else if(r)n.$observe("value",t=>{let n;this.readValue();const r=e.selected;b(i)&&(this.removeOption(i),n=!0),i=t,this.addOption(t,e),n&&r&&this.scheduleViewValueUpdate()});else if(s){let r;t.value=s(t),n.value||(n.$set("value",t.value),this.addOption(t.value,e)),t.$watch("value",()=>{let i=s(t);n.value||n.$set("value",i);const o=e.selected;r!==i&&(this.removeOption(r),r=i),this.addOption(i,e),r&&o&&this.scheduleViewValueUpdate()})}else this.addOption(n.value,e);n.$observe("disabled",t=>{("true"===t||t&&e.selected)&&(this.multiple?this.scheduleViewValueUpdate(!0):(this.ngModelCtrl.$setViewValue(null),this.ngModelCtrl.$render()))}),e.addEventListener("$destroy",()=>{const t=this.readValue(),e=n.value;this.removeOption(e),this.scheduleRender(),(this.multiple&&t&&-1!==t.indexOf(e)||t===e)&&this.scheduleViewValueUpdate(!0)})}}function Zn(){return{restrict:"E",require:["select","?ngModel"],controller:Jn,priority:1,link:{pre:function(t,e,n,r){const s=r[0],i=r[1];if(!i)return void(s.registerOption=()=>{});if(s.ngModelCtrl=i,e.addEventListener("change",()=>{s.removeUnknownOption();const t=s.readValue();i.$setViewValue(t)}),n.multiple){let t;s.multiple=!0,s.readValue=function(){const t=[],n=e.getElementsByTagName("option");return Array.from(n).forEach(e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in s.selectValueMap?s.selectValueMap[n]:n)}}),t},s.writeValue=function(t){const n=e.getElementsByTagName("option");Array.from(n).forEach(e=>{const n=!!t&&(F(t,e.value)||F(t,s.selectValueMap[e.value]));n!==e.selected&&(e.selected=n)})};let n=NaN;n!==i.$viewValue||z(t,i.$viewValue)||(t=ot(i.$viewValue),i.$render()),n=i.$viewValue,i.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const s=r[1];if(!s)return;const i=r[0];s.$render=function(){i.writeValue(s.$viewValue)}}}}}function Yn(t){return{restrict:"E",priority:100,compile(e,n){let r,s;return b(n.ngValue)||(b(n.value)?r=t(n.value,!0):(s=t(e.textContent,!0),s||n.$set("value",e.textContent))),function(t,e,n){const i="$selectController",o=e.parentElement,a=Dt(o,i)||Dt(o.parentElement,i);a&&a.registerOption(t,e,n,r,s)}}}}function Xn(){return{link(t,e,n){t.$watch(n.ngBind,t=>{e.textContent=W(p(t)?t.$target:t)},b(n.lazy))}}}function tr(){return{link(t,e,n){n.$observe("ngBindTemplate",t=>{e.textContent=y(t)?"":t})}}}function er(t){return{restrict:"A",compile:(e,n)=>(t(n.ngBindHtml),(t,e)=>{t.$watch(n.ngBindHtml,t=>{(y(t)||C(t))&&(t=""),e.innerHTML=t})})}}function nr(t,e){return t=`ngClass${t}`,function(){return{link(n,r,s){let i,o=Dt(r,"$classCounts"),a=!0;function c(t,e){const n=[];return t&&t.forEach(t=>{(e>0||o[t])&&(o[t]=(o[t]||0)+e,o[t]===+(e>0)&&n.push(t))}),n.join(" ")}o||(o=Object.create(null),Pt(r,"$classCounts",o)),"ngClass"!==t&&n.$watch("$index",()=>{!function(t){t===e?(o=c(sr(o=i),1),mt(r)?s.$addClass(o):n.$postUpdate(()=>{""!==o&&r.classList.add(...o.trim().split(" "))})):function(t){t=c(sr(t),-1),mt(r)?s.$removeClass(t):n.$postUpdate(()=>{""!==t&&r.classList.remove(...t.trim().split(" "))})}(i);var o;a=t}(1&n.$index)}),n.$watch(s[t],t=>{!function(t){a===e&&function(t,e){const n=sr(t),i=sr(e),o=rr(n,i),a=rr(i,n),l=c(o,-1),u=c(a,1);mt(r)?(s.$addClass(u),s.$removeClass(l)):(""!==u&&r.classList.add(...u.trim().split(" ")),""!==l&&r.classList.remove(...l.trim().split(" ")))}(i,t);i=t}(ir(t))})}}}}function rr(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const s=t[r];for(let t=0;t<e.length;t++)if(s===e[t])continue t;n.push(s)}return n}function sr(t){return t&&t.split(" ")}function ir(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(ir).join(" "):w(t)?e=Object.keys(t).filter(e=>t[e]).join(" "):E(t)||(e=`${t}`),e}Yn.$inject=["$interpolate"],er.$inject=[ee.$parse];const or=nr("",!0),ar=nr("Odd",0),cr=nr("Even",1);function lr(){return{compile(t,e){e.$set("ngCloak",void 0),t.classList.remove("ng-cloak")}}}function ur(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const hr="ng-hide",dr="ng-hide-animate";function pr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,e=>{mt(n)?t[e?"removeClass":"addClass"](n,hr,{tempClasses:dr}):e?n.classList.remove(hr):n.classList.add(hr)})}}}function fr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,e=>{mt(n)?t[e?"addClass":"removeClass"](n,hr,{tempClasses:dr}):e?n.classList.add(hr):n.classList.remove(hr)})}}}function $r(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,s,i){let o,a,c;e.$watch(r.ngIf,e=>{e?a||i((e,r)=>{a=r,o=e,mt(e)?t.enter(e,n.parentElement,n):n.after(e)}):(c&&(Bt(c),c=null),a&&(a.$destroy(),a=null),o&&(c=o,mt(c)?t.leave(c).done(t=>{!1!==t&&(c=null)}):n.nextElementSibling.remove(),o=null))})}}}function mr(t,e,n,r){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(s,i){const o=i.ngInclude||i.src,a=i.onload||"",c=i.autoscroll;return(s,i,l,u,h)=>{function d(){!b(c)||c&&!s.$eval(c)||e()}let p,f,$,m=0;const g=()=>{f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),$&&(mt($)?n.leave($).done(t=>{!1!==t&&(f=null)}):$.remove(),f=$,$=null)};s.$watch(o,async e=>{const o=function(t){!1!==t&&d()},c=++m;e?(await t(e,!0).then(t=>{if(s.$$destroyed)return;if(c!==m)return;const r=s.$new();u.template=t;const l=h(r,t=>{g(),mt(t)?n.enter(t,null,i).done(o):(i.after(t),d())});p=r,$=l,p.$emit("$includeContentLoaded",e),s.$eval(a)},t=>{s.$$destroyed||(c===m&&(g(),s.$emit("$includeContentError",e)),r(new Error(t)))}),s.$emit("$includeContentRequested",e)):(g(),u.template=null)})}}}}function gr(t){return{priority:-400,require:"ngInclude",link(e,n,r,s){n.innerHTML=s.template,t(n.childNodes)(e)}}}function vr(){return{priority:450,compile:()=>({pre(t,e,n){const r=Ft(e);r?r.$eval(n.ngInit):t.$eval(n.ngInit)}})}}function yr(){return{terminal:!0,priority:1e3}}pr.$inject=["$animate"],fr.$inject=["$animate"],$r.$inject=["$animate"],mr.$inject=[ee.$templateRequest,ee.$anchorScroll,ee.$animate,ee.$exceptionHandler],gr.$inject=[ee.$compile];const br=dt("ngRef");function wr(t){return{priority:-1,restrict:"A",compile(e,n){const r=$t(H(e)),s=t(n.ngRef),i=s.assign||function(){throw br("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return(t,e,o)=>{let a;if(vt(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=Dt(e,`$${o.ngRefRead}Controller`),!a)throw br("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=Dt(e,`$${r}Controller`);a=a||e,i(t,a),e.addEventListener("$destroy",()=>{s(t)===a&&i(t,null)})}}}}wr.$inject=["$parse"];const Er="$$NG_REMOVED",Cr=dt("ngRepeat"),Sr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function xr(t){function e(t,e,n,r,s,i,o){t[n]!==r&&(t[n]=r),s&&(t[s]=i),r&&(t.$target.$$hashKey=r.$$hashKey),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))}function n(t){return t.clone}function r(t){return t.clone}function s(t,e,n){return pt(n)}function i(t,e){return e}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,a)=>{const c=a.ngRepeat,l=!!a.animate;let u=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw Cr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);const h=u[1],d=u[2],p=u[3];if(u=h.match(Sr),!u)throw Cr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);const f=u[3]||u[1],$=u[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw Cr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",p);const m=function(t){let e=!1;return function(...n){if(!e)return e=!0,t.apply(this,n)}}(()=>{b(a.lazy)&&b(a.swap)&&document.querySelectorAll(a.swap).forEach(t=>Bt(t))});return function(o,a,u,h,g){let y=Object.create(null);o.$watch(d,u=>{m();let h,d,b,w=a;const E=Object.create(null);let C,S,x,A,O,k,_,T,j;if(p&&(o[p]=u),v(u))k=u,O=s;else{O=i,k=[];for(const t in u)vt(u,t)&&"$"!==t.charAt(0)&&k.push(t)}for(C=k.length,T=new Array(C),h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],A=O(o,S,x),y[A])_=y[A],delete y[A],E[A]=_,T[h]=_;else{if(E[A])throw Object.values(T).forEach(t=>{t&&t.scope&&(y[t.id]=t)}),Cr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",c,A,x);T[h]={id:A,scope:void 0,clone:void 0},E[A]=!0}for(let e in y){if(_=y[e],j=_.clone,l?t.leave(j):j.remove(),j.parentNode)for(h=0,d=j.length;h<d;h++)j[h][Er]=!0;_.scope.$destroy()}for(h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],_=T[h],_.scope){b=w;do{b=b.nextSibling}while(b&&b[Er]);n(_)!==b&&t.move(Kt(_.clone),null,w),w=r(_),e(_.scope,h,f,x,$,S,C)}else g((n,r)=>{_.scope=r;const s=n;l?t.enter(n,null,w):w.after(n),w=s,_.clone=n,E[_.id]=_,e(_.scope,h,f,x,$,S,C)});y=E},b(u.lazy))}}}}function Ar(){return{restrict:"A",link(t,e,n){let r;t.$watch(n.ngStyle,t=>{if(r){const t=Object.keys(r);for(let n=0,r=t.length;n<r;n++)e.style.removeProperty(t[n])}if(t){r={...t.$target};const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,s]=n[t];e.style.setProperty(r,s)}}})}}}function Or(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,s){const i=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(i,e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Kt(a[n].clone);if(l[n].$destroy(),mt(e)){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=s.cases[`!${e}`]||s.cases["?"])&&Object.values(o).forEach(e=>{e.transclude((n,r)=>{l.push(r);const s=e.element,i={clone:n,comment:document.createComment("")};a.push(i),mt(n)?t.enter(n,s.parentElement,s):Xt(n,s.parentElement,s)})})})}}}function kr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){const i=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((t,e,n)=>n[e-1]!==t);i.forEach(t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:s,element:e})})}}}function _r(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:s,element:e})}}}xr.$inject=[ee.$animate],Or.$inject=["$animate"];const Tr=dt("ngOptions"),jr=document.createElement("option"),Rr=document.createElement("optgroup"),Nr=/^\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,e){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(n,r,s,i){const o=i[0],a=i[1],c=s.multiple;for(let t=0,e=r.childNodes,n=e.length;t<n;t++)if(""===e[t].value){o.hasEmptyOption=!0,o.emptyOption=e[t];break}Yt(r);const l=!!o.emptyOption;let u;jr.cloneNode(!1).nodeValue="?";const h=function(t,n,r){const s=t.match(Nr);if(!s)throw Tr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,zt(n));const i=s[5]||s[7],o=s[6],a=/ as /.test(s[0])&&s[1],c=s[9],l=e(s[2]?s[1]:i),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return pt(t)},p=function(t,e){return d(t,b(t,e))},f=e(s[2]||s[1]),$=e(s[3]||""),m=e(s[4]||""),g=e(s[8]),y={};let b=o?function(t,e){return y[o]=e,y[i]=t,y}:function(t){return y[i]=t,y};class w{constructor(t,e,n,r,s){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=s}}function E(t){let e;if(!o&&v(t))e=t;else{e=[];for(const n in t)vt(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(g,t=>{const e=[],n=E(t=t||[]),i=n.length;for(let o=0;o<i;o++){const i=t===n?o:n[o],a=t[i],c=b(a,i),l=d(a,c);if(e.push(l),s[2]||s[1]){const t=f(r,c);e.push(t)}if(s[4]){const t=m(r,c);e.push(t)}}return e}),getOptions(){const t=[],e={},n=g(r)||[],s=E(n),i=s.length;for(let o=0;o<i;o++){const i=n===s?o:s[o],a=n[i],c=b(a,i),l=u(r,c),h=d(l,c),p=f(r,c),g=$(r,c),v=m(r,c),y=new w(h,l,p,g,v);t.push(y),e[h]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(s.ngOptions,r,n),d=document.createDocumentFragment();if(o.generateUnknownOptionValue=()=>"?",c?(o.writeValue=function(t){if(!u)return;const e=t&&t.map(f)||[];u.items.forEach(t=>{t.element.selected&&!F(e,t)&&(t.element.selected=!1)})},o.readValue=function(){const t=r.value||[],e=[];return t.forEach(t=>{const n=u.selectValueMap[t];n&&!n.disabled&&e.push(u.getViewValueFromOption(n))}),e}):(o.writeValue=function(t){if(!u)return;const e=r.options[r.selectedIndex],n=u.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(r.value!==n.selectValue&&(o.removeUnknownOption(),r.value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(t)},o.readValue=function(){const t=u.selectValueMap[r.value];return t&&!t.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),u.getViewValueFromOption(t)):null},h.trackBy&&n.$watch(h.getTrackByValue(a.$viewValue),()=>{a.$render()})),l){const e=t(o.emptyOption);ct(e,"LinkFn required"),r.prepend(o.emptyOption),e(n),o.emptyOption.nodeType===Node.COMMENT_NODE&&(o.hasEmptyOption=!1,o.registerOption=function(t,e){""===e.value&&(o.hasEmptyOption=!0,o.emptyOption=e,a.$render(),e.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&a.$render()}))})}function p(t,e){const n=jr.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function f(t){const e=u.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}n.$watch(h.getWatchables.decoratedNode.body[0].expression.name,function(){const t=u&&o.readValue();if(u)for(let t=u.items.length-1;t>=0;t--){const e=u.items[t];b(e.group)?Bt(e.element.parentNode):Bt(e.element)}u=h.getOptions();const e={};if(u.items.forEach(t=>{let n;b(t.group)?(n=e[t.group],n||(n=Rr.cloneNode(!1),d.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),p(t,n)):p(t,d)}),r.appendChild(d),a.$render(),!a.$isEmpty(t)){const e=o.readValue();(h.trackBy||c?z(t,e):t===e)||(a.$setViewValue(e),a.$render())}})}}}}Lr.$inject=["$compile","$parse"];const Vr=dt("ngTransclude");function Mr(t){return{compile:function(e){const n=t(e.childNodes);return Yt(e),function(t,e,r,s,i){if(!i)throw Vr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",zt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,t=>{e.append(t)})}i(function(t,n){!function(t){if(t instanceof Array)return!1;if(t.nodeType!==Node.TEXT_NODE||t.nodeValue.trim())return!0}(t)?(a(),n.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{e.append(t)}):e.append(t)},null,o),o&&!i.isSlotFilled(o)&&a()}}}}Mr.$inject=["$compile"];const Pr=/^\/(.+)\/([a-z]*)$/,Dr={};At.forEach(t=>{if("multiple"===t)return;function e(e,r,s){e.$watch(s[n],e=>{s.$set(t,!!e)})}let n=$t(`ng-${t}`),r=e;"checked"===t&&(r=function(t,r,s){s.ngModel!==s[n]&&e(t,0,s)}),Dr[n]=function(){return{restrict:"A",priority:100,link:r}}}),Object.entries(h).forEach(([t])=>{Dr[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Pr);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]).toString())}e.$watch(r[t],e=>{r.$set(t,e)})}}}}),["src","srcset","href"].forEach(t=>{const e=$t(`ng-${t}`);Dr[e]=[ee.$sce,function(n){return{priority:99,link(r,s,i){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(s.href)&&(o="xlinkHref",i.$attr[o]="href"),i.$set(e,n.getTrustedMediaUrl(i[e])),i.$observe(e,e=>{e?i.$set(o,e):"href"===t&&i.$set(o,null)})}}}]});const Ur=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=vt(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),s.$validators.required=(t,e)=>!i||!s.$isEmpty(e),r.$observe("required",t=>{i!==t&&(i=t,s.$validate())})}})],Ir=[ee.$parse,t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{let r,s;return n.ngPattern&&(r=n.ngPattern,s="/"===n.ngPattern.charAt(0)&&Pr.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,i){if(!i)return;let o=n.pattern;n.ngPattern?o=s(t):r=n.pattern;let a=qr(o,r,e);n.$observe("pattern",t=>{const n=a;a=qr(t,r,e),(n&&n.toString())!==(a&&a.toString())&&i.$validate()}),i.$validators.pattern=(t,e)=>i.$isEmpty(e)||y(a)||a.test(e)}}})],Hr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=r.maxlength||t(r.ngMaxlength)(e),o=Br(i);r.$observe("maxlength",t=>{i!==t&&(o=Br(t),i=t,s.$validate())}),s.$validators.maxlength=function(t,e){return o<0||s.$isEmpty(e)||e.length<=o}}})],Fr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link(e,n,r,s){if(!s)return;let i=r.minlength||t(r.ngMinlength)(e),o=Br(i)||-1;r.$observe("minlength",t=>{i!==t&&(o=Br(t)||-1,i=t,s.$validate())}),s.$validators.minlength=function(t,e){return s.$isEmpty(e)||e.length>=o}}})];function qr(t,e,n){if(t){if(p(t)&&(t=t.$target),E(t)){const e=t.match(/^\/(.*)\/([gimsuy]*)$/);t=e?new RegExp(e[1],e[2]):new RegExp(`^${t}$`)}if(!t.test)throw dt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,zt(n));return t}}function Br(t){const e=parseInt(t,10);return P(e)?-1:e}class zr{constructor(){this.autoScrollingEnabled=!0}$get=[ee.$location,ee.$rootScope,function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(k(t))t=t();else if(I(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else x(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=E(e)?e:x(e)?e.toString():t.getHash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,t=>{if("a"===H(t))return e=t,!0}),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&(e.$location=t,e.$watch("$location.$$hash",(t,e)=>{if(t===e&&""===t)return;const n=()=>Promise.resolve().then(r);"complete"===document.readyState?window.setTimeout(()=>n()):window.addEventListener("load",()=>n())})),r}]}const Kr=1,Wr=2,Gr=3,Qr=4,Jr=5,Zr=6,Yr=7,Xr=8,ts=9,es=10,ns=11,rs=12,ss=13,is=14,os=15,as=16,cs=17,ls="-add",us="-remove",hs="-active",ds="ng-animate",ps="$$ngAnimateChildren";let fs,$s,ms,gs;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(fs="WebkitTransition",$s="webkitTransitionEnd transitionend"):(fs="transition",$s="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(ms="WebkitAnimation",gs="webkitAnimationEnd animationend"):(ms="animation",gs="animationend");const vs="Duration",ys=ss,bs="Delay",ws="TimingFunction",Es=ms+bs,Cs=ms+vs,Ss=fs+bs,xs=fs+vs,As=dt("ng");function Os(t,e,n){if(!t)throw As("areq","Argument '{0}' is {1}",e||"?",n);return t}function ks(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&E(t)&&t.length?t.split(/\s+/):[]).forEach((t,s)=>{t&&t.length>0&&(r+=s>0?" ":"",r+=n?e+t:t+e)}),r}function _s(t){if(!t)return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function Ts(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function js(t,e){Rs(t,e),Ns(t,e)}function Rs(t,e){e.from&&(e.from=null)}function Ns(t,e){e.to&&(e.to=null)}function Ls(t,e,n){const r=e.options||{},s=n.options||{},i=`${r.addClass||""} ${s.addClass||""}`,o=`${r.removeClass||""} ${s.removeClass||""}`,a=function(t,e,n){const r=1,s=-1,i={};t=a(t),e=a(e),Object.keys(e).forEach(t=>{i[t]=r}),n=a(n),Object.keys(n).forEach(t=>{i[t]=i[t]===r?null:s});const o={addClass:"",removeClass:""};function a(t){E(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach(t=>{t.length&&(e[t]=!0)}),e}return Object.entries(i).forEach(([e,n])=>{let i,a;n===r?(i="addClass",a=!t[e]||t[e+us]):n===s&&(i="removeClass",a=t[e]||t[e+ls]),a&&(o[i].length&&(o[i]+=" "),o[i]+=e)}),o}(t.getAttribute("class"),i,o);return s.preparationClasses&&(r.preparationClasses=Ps(s.preparationClasses,r.preparationClasses),delete s.preparationClasses),M(r,s),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function Vs(t,e){const n=e?"paused":"",r=ms+"PlayState";return Ms(t,[r,n]),[r,n]}function Ms(t,e){const n=e[0];t.style[n]=e[1]}function Ps(t,e){return t?e?`${t} ${e}`:t:e}const Ds=dt("$animate");function Us(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function Is(t){return w(t)?t:{}}function Hs(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ds("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const s=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=s,t.factory(s,r)},this.customFilter=function(t){return 1===arguments.length&&(r=k(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${ds}[(\\s|\\/)]`).test(n.toString()))throw n=null,Ds("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ds)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"enter",Is(s))),move:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"move",Is(s))),leave:(e,n)=>t.push(e,"leave",Is(n),()=>{Array.isArray(e)?e.forEach(t=>Bt(t)):Bt(e)}),addClass:(e,n,r)=>((r=Is(r)).addClass=Us(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=Is(r)).removeClass=Us(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,s)=>((s=Is(s)).addClass=Us(s.addClass,n),s.removeClass=Us(s.removeClass,r),t.push(e,"setClass",s)),animate:(e,n,r,s,i)=>((i=Is(i)).from=i.from?M(i.from,n):n,i.to=i.to?M(i.to,r):r,s=s||"ng-inline-animate",i.tempClasses=Us(i.tempClasses,s),t.push(e,"animate",i))}}]}function Fs(){this.$get=[function(){let t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame(function(){for(let e=0;e<t.length;e++)t[e]();t=[]})}return function(){let t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]}Hs.$inject=["$provide"];let qs;function Bs(){this.$get=["$$animateAsyncRun",function(t){return qs=t,zs}]}class zs{static chain(t,e){let n=0;!function r(){n!==t.length?t[n](t=>{!1!==t?(n++,r()):e(!1)}):e(!0)}()}static all(t,e){let n=0,r=!0;function s(s){r=r&&s,++n===t.length&&e(r)}t.forEach(t=>{t.done(s)})}constructor(t){this.setHost(t);const e=qs();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{setTimeout(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=new Promise((e,n)=>{t.done(t=>{!1===t?n():e()})})}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick(()=>{this._resolve(t)}))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach(e=>{e(t)}),this._doneCallbacks.length=0,this._state=2)}}class Ks{constructor(){this.cache=new Map}$get(){return this.cache}}class Ws{constructor(){this.log=window.console,this.errorHandler=(t,e)=>{this.log.error(t,e)},this.$get=["$log",t=>(this.log=t,this.errorHandler)]}}function Gs(){return function(t,e,n,r){if(!v(t)){if(null==t)return t;throw dt("filter")("notarray","Expected array but received: {0}",t)}let s;r=r||"$";let i=!1;switch(Js(e)){case"function":s=e;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":s=function(t,e,n,r){const s=w(t)&&n in t;let i;!0===e?e=z:k(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!U(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return i=function(i){return s&&!w(i)?Qs(i,t[n],e,n,!1):Qs(i,t,e,n,r)},i}(e,n,r,i);break;default:return t}return Array.prototype.filter.call(t,s)}}function Qs(t,e,n,r,s,i){const o=Js(t),a=Js(e);if("string"===a&&"!"===e.charAt(0))return!Qs(t,e.substring(1),n,r,s);if(Array.isArray(t))return t.some(t=>Qs(t,e,n,r,s));switch(o){case"object":if(s){for(let s in t)if(s.charAt&&"$"!==s.charAt(0)&&Qs(t[s],e,n,r,!0))return!0;return!i&&Qs(t,e,n,r,!1)}if("object"===a){for(let s in e){const i=e[s];if(k(i)||y(i))continue;const o=s===r;if(!Qs(o?t:t[s],i,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Js(t){return null===t?"null":typeof t}function Zs(){return function(t,e){return y(e)&&(e=2),Y(t,e)}}function Ys(){return function(t,e,n){return k(t)&&(t=t()),P(e=Math.abs(Number(e))===1/0?Number(e):parseInt(e,10))?t:(x(t)&&(t=t.toString()),v(t)?(n=(n=!n||isNaN(n)?0:parseInt(n,10))<0?Math.max(0,t.length+n):n,e>=0?Xs(t,n,n+e):0===n?Xs(t,e,t.length):Xs(t,Math.max(0,n+e),n)):t)}}function Xs(t,e,n){return E(t)?t.slice(e,n):[].slice.call(t,e,n)}function ti(t){return function(r,s,i,o){if(null==r)return r;if(k(r))return r();if(!v(r))throw dt("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(s)||(s=[s]),0===s.length&&(s=["+"]);const a=s.map(e=>{let n=1,r=t=>t;if(k(e))r=e;else if(E(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}});const c=i?-1:1,l=k(o)?o:n,u=Array.prototype.map.call(r,function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map(r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(k(t.valueOf)&&e(t=t.valueOf()))return t;if(U(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n))}});return u.sort(function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c}),r=u.map(t=>t.value)};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,s=e.type;if(r===s){let s=t.value,i=e.value;"string"===r?(s=s.toLowerCase(),i=i.toLowerCase()):"object"===r&&(w(s)&&(s=t.index),w(i)&&(i=e.index)),s!==i&&(n=s<i?-1:1)}else n="undefined"===r?1:"undefined"===s?-1:"null"===r?1:"null"===s||r<s?-1:1;return n}}function ei(t){const e=(e,n,r)=>t.is(e,n,r);return e.$stateful=!0,e}function ni(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}ti.$inject=[ee.$parse],ei.$inject=[ee.$state],ni.$inject=[ee.$state];const ri="Filter";class si{static $inject=[ee.$provide];constructor(t){this.$provide=t,this.register({filter:Gs,json:Zs,limitTo:Ys,orderBy:ti,isState:ei,includedByState:ni})}register(t,e){return w(t)&&Object.entries(t).forEach(([t,e])=>{this.register(t,e)}),this.$provide.factory(t+ri,e)}$get=[ee.$injector,t=>e=>t.get(e+ri)]}class ii{constructor(t){this.$filter=t}compile(t){let e,n,r=oi(t,this.$filter);(e=function(t){if(1===t.body.length&&ai(t.body[0].expression))return{type:Gr,left:t.body[0].expression,right:{type:cs},operator:"="}}(r))&&(n=this.recurse(e));const s=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let i;if(s){i=[];for(const[t,e]of Object.entries(s)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t}}const o=[];r.body.forEach(t=>{o.push(this.recurse(t.expression))});const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach(r=>{n=r(t,e)}),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),i&&(a.inputs=i),a.decoratedNode=r,a}recurse(t,e,n){let r,s;const i=this;let o;switch(t.type){case ns:return this.value(t.value,e);case Yr:return s=this.recurse(t.argument),this[`unary${t.operator}`](s,e);case Zr:case Jr:return r=this.recurse(t.left),s=this.recurse(t.right),this[`binary${t.operator}`](r,s,e);case Qr:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case es:return i.identifier(t.name,e,n);case ts:return r=this.recurse(t.object,!1,!!n),t.computed||(s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(r,s,e,n):this.nonComputedMember(r,s,e,n);case Xr:return o=[],t.arguments.forEach(t=>{o.push(i.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?(t,n,r)=>{const i=[];for(let e=0;e<o.length;++e){const s=o[e](t&&t.$target?t.$target:t,n,r);i.push(s)}const a=()=>s.apply(void 0,i);return e?{context:void 0,name:void 0,value:a}:a}:(t,n,r)=>{const i=s(t.$target?t.$target:t,n,r);let a;if(null!=i.value&&k(i.value)){const e=[];for(let s=0;s<o.length;++s){const i=o[s](t,n,r);e.push(k(i)?i():i)}a=i.value.apply(i.context,e)}return e?{value:a}:a};case Gr:return r=this.recurse(t.left,!0,1),s=this.recurse(t.right),(t,n,i)=>{const o=r(t,n,i),a=s(t,n,i);return(p(o.context)?o.context:o.context.$proxy??o.context)[o.name]=a,e?{value:a}:a};case rs:return o=[],t.elements.forEach(t=>{o.push(i.recurse(t))}),(t,n,r)=>{const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));return e?{value:s}:s};case is:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:i.recurse(t.key),computed:!0,value:i.recurse(t.value)}):o.push({key:t.key.type===es?t.key.name:`${t.key.value}`,computed:!1,value:i.recurse(t.value)})}),(t,n,r)=>{const s={};for(let e=0;e<o.length;++e)o[e].computed?s[o[e].key(t,n,r)]=o[e].value(t,n,r):s[o[e].key]=o[e].value(t,n,r);return e?{value:s}:s};case os:return t=>e?{value:t}:t.$proxy;case as:return(t,n)=>e?{value:n}:n;case cs:return(t,n,r)=>e?{value:r}:r}}"unary+"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?+i:0,e?{value:i}:i}}"unary-"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?-i:-0,e?{value:i}:i}}"unary!"(t,e){return(n,r,s)=>{const i=!t(n,r,s);return e?{value:i}:i}}"binary+"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(u=a,void 0===(l=o)||w(l)?u:void 0===u||w(u)?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(b(o)?o:0)-(b(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)*e(r,s,i);return n?{value:o}:o}}"binary/"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)/e(r,s,i);return n?{value:o}:o}}"binary%"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)%e(r,s,i);return n?{value:o}:o}}"binary==="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)===e(r,s,i);return n?{value:o}:o}}"binary!=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!==e(r,s,i);return n?{value:o}:o}}"binary=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)==e(r,s,i);return n?{value:o}:o}}"binary!="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!=e(r,s,i);return n?{value:o}:o}}"binary<"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<e(r,s,i);return n?{value:o}:o}}"binary>"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>e(r,s,i);return n?{value:o}:o}}"binary<="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<=e(r,s,i);return n?{value:o}:o}}"binary>="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>=e(r,s,i);return n?{value:o}:o}}"binary&&"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)&&e(r,s,i);return n?{value:o}:o}}"binary||"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)||e(r,s,i);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o)?e(s,i,o):n(s,i,o);return r?{value:a}:a}}value(t,e){return()=>e?{context:void 0,name:void 0,value:t}:t}identifier(t,e,n){return(r,s)=>{const i=s&&t in s?s:(r&&r.$proxy)??r;let o;return n&&1!==n&&i&&null==i[t]&&(i[t]={}),i&&(o=i.$target?i.$target[t]:i[t]),e?{context:i,name:t,value:o}:o}}computedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);let c,l;return null!=a&&(c=e(s,i,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function oi(t,e,n){let r,s,i,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case ts:if(t.computed)return!1;break;case Yr:return 1;case Zr:return"+"!==t.operator&&1;case Xr:return!1}return void 0===e?2:e}(t,n);switch(t.type){case Kr:return r=!0,f.body.forEach(t=>{let n=oi(t.expression,e,$);r=r&&n.constant}),f.constant=r,f;case ns:return f.constant=!0,f.toWatch=[],f;case Yr:var m=oi(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Zr:return o=oi(f.left,e,$),a=oi(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Jr:return o=oi(f.left,e,$),a=oi(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Qr:return c=oi(t.test,e,$),l=oi(t.alternate,e,$),u=oi(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case es:return f.constant=!1,f.toWatch=[t],f;case ts:return h=oi(t.object,e,$),t.computed&&(d=oi(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case Xr:return i=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=i,s=[],t.arguments.forEach(t=>{m=oi(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=i?s:[f],f;case Gr:return o=oi(t.left,e,$),a=oi(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case rs:return r=!0,s=[],t.elements.forEach(t=>{m=oi(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=s,f;case is:return r=!0,s=[],t.properties.forEach(t=>{m=oi(t.value,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch),t.computed&&(p=oi(t.key,e,!1),r=r&&p.constant,s.push.apply(s,p.toWatch))}),f.constant=r,f.toWatch=s,f;case os:case as:return f.constant=!1,f.toWatch=[],f}}function ai(t){return t.type===es||t.type===ts}const ci=dt("$parse"),li={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ui=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class hi{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=ui.has(t),s=ui.has(e),i=ui.has(n);if(r||s||i){const r=i?n:s?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=b(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw ci("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const s=this.text[this.index];if(r)n+="u"===s?this.handleUnicodeEscape():li[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=s}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const di=dt("$parse"),pi=new Map([["true",!0],["false",!1],["null",null],["undefined",void 0]]);class fi{constructor(t){this.lexer=t,this.selfReferential={this:{type:os},$locals:{type:as}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Kr,body:t}}expressionStatement(){return{type:Wr,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!ai(t))throw di("lval","Trying to assign a value to a non l-value");t={type:Gr,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Qr,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Jr,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Jr,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Zr,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Zr,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Zr,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Zr,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Yr,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():vt(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):pi.has(this.peek().text)?t={type:ns,value:pi.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:Xr,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:ts,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:ts,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Xr,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:es,name:t.text}}constant(){return{type:ns,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:rs,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:ss,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:is,properties:t}}throwError(t,e){throw di("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw di("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw di("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class $i{constructor(t,e){this.ast=new fi(t),this.astCompiler=new ii(e)}parse(t){const{ast:e}=this.getAst(t),n=this.astCompiler.compile(e);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===ns||t.body[0].expression.type===rs||t.body[0].expression.type===is)}(e),n.constant=function(t){return t.constant}(e),n}getAst(t){return t=t.trim(),{ast:this.ast.ast(t)}}}class mi{constructor(){const t=Object.create(null);let e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){const s={isIdentifierStart:k(e)&&e,isIdentifierContinue:k(n)&&n};return function(e,n){let o,a;switch(typeof e){case"string":if(a=e=e.trim(),o=t[a],!o){const n=new hi(s);o=new $i(n,r).parse(e),t[a]=vi(o)}return i(o,n);case"function":return i(e,n);default:return i(()=>{},n)}};function i(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);let n=!1;const r=function(r,s,i,o){const a=n&&o?o[0]:t(r,s,i,o);if(r?.getter)return;const c=k(a)?a():a;return e(p(c)?c.$target:c)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,r.decoratedNode=t.decoratedNode,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map(function(t){return 2===t.isPure?function(e){return t(e)}:t}))),vi(r)}}]}}function gi(t,e,n,r){const s=t.$watch(()=>(s(),r(t)),e,n);return s}function vi(t){return t.constant?t.$$watchDelegate=gi:t.inputs&&(t.$$watchDelegate=yi),t}function yi(t,e,n,r){let s,i=r.inputs;if(1===i.length){let o=bi,a=i[0];return t.$watch(t=>{const e=a(t);return bi(e,o,a.isPure)||(s=r(t,void 0,[e]),o=e&&wi(e)),s},e,n)}{const o=[],a=[];for(let t=0,e=i.length;t<e;t++)o[t]=bi,a[t]=null;return t.$watch(t=>{let e=!1;for(let n=0,r=i.length;n<r;n++){const r=i[n](t);(e||(e=!bi(r,o[n],i[n].isPure)))&&(a[n]=r,o[n]=r&&wi(r))}return e&&(s=r(t,void 0,a)),s},e,n)}}function bi(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=wi(t))&&!n)&&(t===e||t!=t&&e!=e)}function wi(t){return k(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Ei=dt("$interpolate");function Ci(t,e){throw Ei("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class Si{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[ee.$parse,ee.$sce,function(t,e){const n=this,r=n.startSymbol.length,s=n.endSymbol.length,i=new RegExp(n.startSymbol.replace(/./g,a),"g"),o=new RegExp(n.endSymbol.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(i,n.startSymbol).replace(o,n.endSymbol)}function l(i,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!i.length||-1===i.indexOf(n.startSymbol)){if(o)return;let t=c(i);u&&(t=e.getTrusted(a,t));const n=()=>t;return n.exp=i,n.expressions=[],n.$$watchDelegate=gi,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=i.length;let g;const v=[],w=[];let E;for(;p<m;){if(-1===(h=i.indexOf(n.startSymbol,p))||-1===(d=i.indexOf(n.endSymbol,h+r))){p!==m&&v.push(c(i.substring(p)));break}p!==h&&v.push(c(i.substring(p,h))),g=i.substring(h+r,d),f.push(g),p=d+s,w.push(v.length),v.push("")}E=1===v.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!b(t)?t:W(t)}catch(t){Ci(i,t)}};if($=f.map(e=>t(e,C)),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&y(t[e]))return;v[w[e]]=t[e]}return u?e.getTrusted(a,E?v[0]:v.join("")):(a&&v.length>1&&function(t){throw Ei("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)}(i),v.join(""))};return M((e,n)=>{let r=0;const s=f.length,o=new Array(s);try{for(;r<s;r++){if(n){const i=f[r].trim();e.$watch(i,()=>{let r=new Array(s),i=0;for(;i<s;i++){let t=$[i];r[i]=t(e)}n(t(r))})}o[r]=$[r](e)}return t(o)}catch(t){Ci(i,t)}},{exp:i,expressions:f,$$watchDelegate(e,n){let r;return e.$watch($,function(s,i){const o=t(s);n.call(this,o,s!==i?r:o,e),r=o})}})}}return l.startSymbol=function(){return n.startSymbol},l.endSymbol=function(){return n.endSymbol},l}]}let xi={},Ai="";const Oi="application/json",ki={"Content-Type":`${Oi};charset=utf-8`},_i=/^\[|^\{(?!\{)/,Ti={"[":/]$/,"{":/}$/},ji=/^\)]\}',?\n/,Ri=dt("$http");function Ni(t){return w(t)?A(t)?t.toISOString():Y(t):t}function Li(){this.$get=()=>t=>{if(!t)return"";const e=[];return Object.keys(t).sort().forEach(n=>{const r=t[n];null===r||y(r)||k(r)||(Array.isArray(r)?r.forEach(t=>{e.push(`${st(n)}=${st(Ni(t))}`)}):e.push(`${st(n)}=${st(Ni(r))}`))}),e.join("&")}}function Vi(t,e){if(E(t)){const r=t.replace(ji,"").trim();if(r){const s=e("Content-Type"),i=s&&0===s.indexOf(Oi);if(i||function(t){const e=t.match(_i);return e&&Ti[e[0]].test(t)}(r))try{t=E(n=r)?JSON.parse(n):n}catch(e){if(!i)return t;throw Ri("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Mi(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return E(t)?t.split("\n").forEach(t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),L(t.substring(n+1)))}):w(t)&&Object.entries(t).forEach(([t,e])=>{r(g(t),L(e))}),e}function Pi(t){let e;return function(n){if(e||(e=Mi(t)),n){let t=e[g(n)];return void 0===t&&(t=null),t}return e}}function Di(t,e,n,r){return k(r)?r(t,e,n):(Array.isArray(r)&&r.forEach(r=>{t=r(t,e,n)}),t)}function Ui(t){return t>=200&&t<300}function Ii(){const t=this.defaults={transformResponse:[Vi],transformRequest:[function(t){return!w(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Y(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ot(ki),put:ot(ki),patch:ot(ki)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e},this.interceptors=[],this.xsrfTrustedOrigins=[],Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=[ee.$injector,ee.$sce,function(n,r){const s=new Map;t.paramSerializer=E(t.paramSerializer)?n.get(t.paramSerializer):t.paramSerializer;const i=[];this.interceptors.forEach(t=>{i.unshift(E(t)?n.get(t):n.invoke(t))});const o=function(t){const e=[Ne].concat(t.map(Le));return function(t){const n=Le(t);return e.some(Ve.bind(null,n))}}(this.xsrfTrustedOrigins);function a(c){if(!w(c))throw dt("$http")("badreq","Http request configuration must be an object. Received: {0}",c);if(!E(r.valueOf(c.url)))throw dt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",c.url);const l=M({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},c);var u;l.headers=function(e){let n=t.headers,r=M({},e.headers);return n=M({},n.common,n[g(e.method)]),Object.keys(n).forEach(t=>{const e=g(t);Object.keys(r).some(t=>g(t)===e)||(r[t]=n[t])}),function(t,e){let n;const r={};return Object.entries(t).forEach(([t,s])=>{k(s)?(n=s(e),null!=n&&(r[t]=n)):r[t]=s}),r}(r,ot(e))}(c),l.method=E(u=l.method)?u.toUpperCase():u,l.paramSerializer=E(l.paramSerializer)?n.get(l.paramSerializer):l.paramSerializer;const h=[],d=[];let p=Promise.resolve(l);return i.forEach(t=>{(t.request||t.requestError)&&h.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),p=f(p,h),p=p.then(function(n){const{headers:i}=n,c=Di(n.data,Pi(i),void 0,n.transformRequest);y(c)&&Object.keys(i).forEach(t=>{"content-type"===g(t)&&delete i[t]});y(n.withCredentials)&&!y(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,i){const{promise:c,resolve:l,reject:u}=Promise.withResolvers();let h,d;const p=n.headers;let{url:f}=n;E(f)||(f=r.valueOf(f));f=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(f,n.paramSerializer(n.params)),a.pendingRequests.push(n),c.then(C,C),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=w(n.cache)?n.cache:w(t.cache)?t.cache:s);h&&(d=h.get(f),b(d)?N(d)?d.then(v,v):Array.isArray(d)?g(d[1],d[0],ot(d[2]),d[3],d[4]):g(d,200,{},"OK","complete"):h.set(f,c));if(y(d)){const e=o(n.url)?function(){let t,e,n,r,s;const i=document.cookie;if(i!==Ai)for(Ai=i,t=Ai.split("; "),xi={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(s=Hi(e.substring(0,r)),y(xi[s])&&(xi[s]=Hi(e.substring(r+1))));return xi}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=e),function(t,e,n,r,s,i,o,a,c,l){e=e||Me(window.location.href);const u=new XMLHttpRequest;let h,d=!1;if(u.open(t,e,!0),s)for(const[t,e]of Object.entries(s))b(e)&&u.setRequestHeader(t,e);if(u.onload=()=>{let t=u.status||0;const n=u.statusText||"";0===t&&(t=u.response?200:"file:"===new URL(e).protocol?404:0),f(t,u.response,u.getAllResponseHeaders(),n,"complete")},u.onerror=()=>f(-1,null,null,"","error"),u.ontimeout=()=>f(-1,null,null,"","timeout"),u.onabort=()=>{f(-1,null,null,"",d?"timeout":"abort")},c)for(const[t,e]of Object.entries(c))u.addEventListener(t,e);if(l)for(const[t,e]of Object.entries(l))u.upload.addEventListener(t,e);o&&(u.withCredentials=!0);if(a)try{u.responseType=a}catch(t){if("json"!==a)throw t}u.send(y(n)?null:n),"number"==typeof i&&i>0?h=setTimeout(()=>p("timeout"),i):N(i)&&i.then(()=>{p(b(i.$$timeoutId)?"timeout":"abort")});function p(t){d="timeout"===t,u&&u.abort()}function f(t,e,n,s,i){b(h)&&clearTimeout(h),r(t,e,n,s,i)}}(n.method,f,i,m,p,n.timeout,n.withCredentials,n.responseType,$(n.eventHandlers),$(n.uploadEventHandlers))}return c;function $(t){if(t){const n={};return Object.entries(t).forEach(([t,r])=>{n[t]=function(t){function n(){r(t)}e?setTimeout(()=>n()):n()}}),n}return{}}function m(t,n,r,s,i){function o(){g(n,t,r,s,i)}h&&(Ui(t)?h.set(f,[t,n,Mi(r),s,i]):h.delete(f)),e?setTimeout(o):o()}function g(t,e,r,s,i){(Ui(e=e>=-1?e:0)?l:u)({data:t,status:e,headers:Pi(r),config:n,statusText:s,xhrStatus:i})}function v(t){g(t.data,t.status,ot(t.headers()),t.statusText,t.xhrStatus)}function C(){const t=a.pendingRequests.indexOf(n);-1!==t&&a.pendingRequests.splice(t,1)}}(n,c).then($,$)}),p=f(p,d),p;function f(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],s=e[n++];t=t.then(r,s)}return e.length=0,t}function $(t){const e=M({},t);return e.data=Di(t.data,t.headers,t.status,l.transformResponse),Ui(t.status)?e:Promise.reject(e)}}return a.pendingRequests=[],function(...t){t.forEach(t=>{a[t]=function(e,n){return a(M({},n||{},{method:t,url:e}))}})}("get","delete","head"),function(...t){t.forEach(t=>{a[t]=function(e,n,r){return a(M({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),a.defaults=t,a}]}function Hi(t){try{return decodeURIComponent(t)}catch{return t}}const Fi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,qi=dt("$location");let Bi,zi,Ki,Wi=!1;class Gi{constructor(t,e,n=!0,r){this.appBase=t,this.appBaseNoFile=e,this.html5=n,this.basePrefix=n?r||"":void 0,this.hashPrefix=n?void 0:r,this.absUrl="",this.$$url=void 0,this.$$updateBrowser=void 0}setUrl(t){const e=Fi.exec(t);return void 0===e[1]&&""!==t||this.setPath(e[1]||""),void 0===e[2]&&void 0===e[1]&&""!==t||this.setSearch(e[3]||""),this.setHash(e[5]||""),this}getUrl(){return this.$$url}setPath(t){let e=null!==t?t.toString():"";return Bi="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}getPath(){return Bi}setHash(t){return Ki=null!==t?t.toString():"",this.$$compose(),this}getHash(){return Ki}setSearch(t,e){if(1===arguments.length)if(E(t)||x(t))t=t.toString(),zi=tt(t);else{if(!w(t))throw qi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach(([e,n])=>{null==n&&delete t[e]}),zi=t}else y(e)||null===e?delete zi[t]:zi[t]=e;return this.$$compose(),this}getSearch(){return zi}$$compose(){this.$$url=function(t,e,n){const r=et(e),s=n?`#${rt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;){const t=decodeURIComponent(e[n].replace(/%2F/gi,"/"));e[n]=rt(t)}return e.join("/")}(t)+(r?`?${r}`:"")+s}(Bi,zi,Ki),this.absUrl=this.html5?this.appBaseNoFile+this.$$url.substring(1):this.appBase+(this.$$url?this.hashPrefix+this.$$url:""),Wi=!0,setTimeout(()=>this.$$updateBrowser&&this.$$updateBrowser())}setState(t){if(!this.html5)throw qi("nostate","History API state support is available only in HTML5 mode");return this.$$state=y(t)?null:t,Wi=!0,this}getState(){return this.$$state}parseLinkUrl(t,e){if(this.html5){if(e&&"#"===e[0])return this.setHash(e.slice(1)),!0;let n,r,s;return b(n=Zi(this.appBase,t))?(r=n,s=this.basePrefix&&b(n=Zi(this.basePrefix,n))?this.appBaseNoFile+(Zi("/",n)||n):this.appBase+r):b(n=Zi(this.appBaseNoFile,t))?s=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(s=this.appBaseNoFile),s&&this.parse(s),!!s}return Yi(this.appBase)===Yi(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const e=Zi(this.appBaseNoFile,t);if(!E(e))throw qi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);Ji(e,!0),Bi||(Bi="/"),this.$$compose()}else{const n=Zi(this.appBase,t)||Zi(this.appBaseNoFile,t);let r;function s(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let s;return yt(e,n)&&(e=e.replace(n,"")),r.exec(e)?t:(s=r.exec(t),s?s[1]:t)}y(n)||"#"!==n.charAt(0)?this.html5?r=n:(r="",y(n)&&(this.appBase=t)):(r=Zi(this.hashPrefix,n),y(r)&&(r=n)),Ji(r,!1),Bi=s(Bi,r,this.appBase),this.$$compose()}}}class Qi{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.cacheState()}setUrl(t,e){if(void 0===e&&(e=null),t){if(t=new URL(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e)return this;this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()}}getBrowserUrl(){return Me(window.location.href)}state(){return this.cachedState}cacheState(){const t=history.state??null;z(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}#t(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.getBrowserUrl()&&t===this.cachedState||(this.lastBrowserUrl=this.getBrowserUrl(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach(t=>{t(Me(window.location.href),this.cachedState)}))}#e(t){this.urlChangeInit||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t)}$get=[ee.$rootScope,ee.$rootElement,(t,e)=>{let n;const r=te(),s=Me(window.location.href);let i;if(this.html5ModeConf.enabled){if(!r&&this.html5ModeConf.requireBase)throw qi("nobase","$location in HTML5 mode requires a <base> tag to be present!");i=function(t){const e=t.indexOf("//")+2,n=t.indexOf("/",e);return-1===n?t:t.substring(0,n)}(s)+(r||"/")}else i=Yi(s);const o=(a=i).substring(0,Yi(a).lastIndexOf("/")+1);var a;n=new Gi(i,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`),n.parseLinkUrl(s,s),n.$$state=this.state();const c=/^\s*(javascript|mailto):/i,l=(t,e)=>{const r=n.getUrl(),s=n.$$state;try{this.setUrl(t,e),n.$$state=this.state()}catch(t){throw n.setUrl(r),n.$$state=s,t}};e.addEventListener("click",t=>{const r=this.html5ModeConf.rewriteLinks;if(!r||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let s=t.target;for(;"a"!==s.nodeName.toLowerCase();)if(s===e||!(s=s.parentElement))return;if(E(r)&&y(s.getAttribute(r)))return;let i=s.href;const o=s.getAttribute("href")||s.getAttribute("xlink:href");if(w(i)&&"[object SVGAnimatedString]"===i.toString()){i=new URL(i.animVal).href}c.test(i)||!i||s.getAttribute("target")||t.defaultPrevented||n.parseLinkUrl(i,o)&&t.preventDefault()}),n.absUrl!==s&&this.setUrl(n.absUrl,!0);let u=!0;this.#e((e,r)=>{yt(e,o)?Promise.resolve().then(()=>{const s=n.absUrl,i=n.$$state;let o;n.parse(e),n.$$state=r,o=t.$broadcast("$locationChangeStart",e,s,r,i).defaultPrevented,n.absUrl===e&&(o?(n.parse(s),n.$$state=i,l(s,i)):(u=!1,d(s,i)))}):window.location.href=e});const h=()=>{if(u||Wi){Wi=!1;const r=this.getBrowserUrl(),s=n.absUrl,i=this.state(),o=(e=s,!(Xi(r)===Xi(e))||n.html5&&i!==n.$$state);(u||o)&&(u=!1,setTimeout(()=>{const e=n.absUrl,{defaultPrevented:s}=t.$broadcast("$locationChangeStart",e,r,n.$$state,i);n.absUrl===e&&(s?(n.parse(r),n.$$state=i):(o&&l(e,i===n.$$state?null:n.$$state),d(r,i)))}))}var e};return n.$$updateBrowser=h,h(),t.$on("$updateBrowser",h),n;function d(e,r){t.$broadcast("$locationChangeSuccess",n.absUrl,e,n.$$state,r)}}]}function Ji(t,e){if(/^\s*[\\/]{2,}/.test(t))throw qi("badpath",'Invalid url "{0}".',t);const n="/"!==t.charAt(0);n&&(t=`/${t}`);const r=Le(t),s=n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;Bi=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,e),zi=tt(r.search),Ki=decodeURIComponent(r.hash),Bi&&"/"!==Bi.charAt(0)&&(Bi=`/${Bi}`)}function Zi(t,e){if(yt(e,t))return e.substring(t.length)}function Yi(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}function Xi(t){const e=document.createElement("a");e.href=t;let n=e.href;return n.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(n)&&(n=n.slice(0,-1)),n.endsWith("#")&&(n=n.slice(0,-1)),n}class to{constructor(){this.debug=!1,this._override=null}setLogger(t){this._override=t}formatError(t){return O(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map(t=>this.formatError(t));return n.apply(e,r)}}$get(){return this._override?this._override():{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()}}}let eo,no,ro=0;const so=[];class io{constructor(){this.rootScope=oo()}$get=["$exceptionHandler","$parse",(t,e)=>(no=t,eo=e,this.rootScope)]}function oo(t={},e){if(C(t)||!0===t[ao]||!0===(t.constructor&&t.constructor[ao]))return t;if("object"==typeof t){const n=new Proxy(t,e||new co);for(const e in t)if(vt(t,e))try{t.constructor.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e)||(t[e]=oo(t[e],n.$handler))}catch{}return n}return t}const ao="$nonscope";class co{constructor(t,e){this.context=t?t.context?t.context:t:void 0,this.watchers=t?t.watchers:new Map,this.$$listeners=new Map,this.foreignListeners=t?t.foreignListeners:new Map,this.foreignProxies=t?t.foreignProxies:new Set,this.objectListeners=t?t.objectListeners:new WeakMap,this.functionListeners=t?t.functionListeners:new Map,this.$proxy=null,this.$handler=this,this.$target=null,this.$value=null,this.$children=[],this.$id=(ro+=1,ro),this.$root=t?t.$root:this,this.$parent=e||(this.$root===this?null:t),this.$$asyncQueue=[],this.filters=[],this.$$destroyed=!1,this.scheduled=[]}set(t,e,n,r){if("undefined"===e)throw new Error("Attempting to set undefined property");if(t.constructor?.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e))return t[e]=n,!0;this.$proxy=r,this.$target=t;const s=t[e];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(n))return!0;if(s&&s[d]){if(Array.isArray(n)){if(s!==n){const t=this.watchers.get(e);t&&this.#n(t);const n=this.foreignListeners.get(e);n&&this.#n(n)}return this.objectListeners.get(t[e])&&this.objectListeners.delete(t[e]),t[e]=oo(n,this),this.objectListeners.set(t[e],[e]),!0}if(w(n)){if(vt(t,e)&&Object.keys(s).filter(t=>!n[t]).forEach(t=>{delete s[t]}),s!==n){const t=this.watchers.get(e);t&&this.#n(t);const r=this.foreignListeners.get(e);r&&this.#n(r),this.#r(n)}return t[e]=oo(n,this),!0}if(y(n)){let n=!1;if(Object.keys(s.$target).forEach(t=>{s.$target[t]?.[d]&&(n=!0),delete s[t]}),t[e]=void 0,!n){let t=this.watchers.get(e);t&&this.#n(t)}return!0}if(b(n)){t[e]=n;let s=this.watchers.get(e);if(s&&this.#n(s),Array.isArray(t)&&this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}return!0}return!0}if(y(t[e])&&p(n)&&(this.foreignProxies.add(n),t[e]=n,!this.watchers.has(e)))return!0;if(y(n)?t[e]=n:t[e]=oo(n,this),s!==n){let r=this.$target,i=[];if(y(s)&&w(t[e])){this.objectListeners.has(t[e])||this.objectListeners.set(t[e],[e]);for(const t of Object.keys(n))this.watchers.get(t)?.forEach(t=>i.push(t)),r=n}Array.isArray(t)&&this.watchers.get("length")?.forEach(t=>i.push(t)),this.watchers.get(e)?.forEach(t=>i.push(t)),i.length>0&&this.#n(i,t=>t.filter(t=>{if(!t.watchProp)return!0;const e=t.watchProp.split(".").slice(0,-1).join("."),n=eo(e)(t.originalTarget)?.$handler;return r===n?.$target}));let o=this.foreignListeners.get(e);!o&&this.$parent?.foreignListeners&&(o=this.$parent.foreignListeners.get(e)),o&&(this.$target.$$hashKey&&(o=o.filter(t=>!!t.originalTarget.$$hashKey&&t.originalTarget.$$hashKey==this.$target.$$hashKey)),this.#n(o))}if(this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.scheduled!==e&&this.#n(e)})}return!0}get(t,e,n){if("$$watchersCount"===e)return function(t){const e=lo(t).add(t.$id);return Array.from(t.watchers.values()).reduce((t,n)=>t+n.reduce((t,n)=>t+(e.has(n.scopeId)?1:0),0),0)}(this);if(e===d)return!0;if(t[e]&&p(t[e])?this.$proxy=t[e]:this.$proxy=n,this.propertyMap={$watch:this.$watch.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$destroy:this.$destroy.bind(this),$eval:this.$eval.bind(this),$apply:this.$apply.bind(this),$postUpdate:this.$postUpdate.bind(this),$isRoot:this.#s.bind(this),$target:t,$proxy:this.$proxy,$on:this.$on.bind(this),$emit:this.$emit.bind(this),$broadcast:this.$broadcast.bind(this),$transcluded:this.$transcluded.bind(this),$handler:this,$parent:this.$parent,$root:this.$root,$children:this.$children,$id:this.$id,$merge:this.$merge.bind(this),$getById:this.$getById.bind(this)},Array.isArray(t)&&["pop","shift","unshift"].includes(e)){if(this.objectListeners.has(n)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&(this.scheduled=e)})}"unshift"===e&&this.#n(this.scheduled)}return vt(this.propertyMap,e)?(this.$target=t,this.propertyMap[e]):t[e]}deleteProperty(t,e){if(t[e]&&t[e][d]){t[e]=void 0;let n=this.watchers.get(e);if(n&&this.#n(n),this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{n=this.watchers.get(t),n&&this.#n(n)})}return this.scheduled&&(this.#n(this.scheduled),this.scheduled=[]),!0}if(delete t[e],this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}else{const n=this.watchers.get(e);n&&this.#n(n,t[e])}return!0}#r(t){y(t)||Object.keys(t).forEach(e=>{const n=this.watchers.get(e);n&&this.#n(n),w(t[e])&&this.#r(t[e])})}#n(t,e=t=>t){Promise.resolve().then(()=>{let n=0,r=e(t);for(;n<r.length;){const t=r[n];t.foreignListener?t.foreignListener.#i(t,this.$target):this.#i(t,this.$target),n++}})}$watch(t,e,n=!1){at(E(t),"Watched property required"),t=t.trim();const r=eo(t);if(r.constant)return e&&Promise.resolve().then(()=>{let t=r();for(;k(t);)t=t();e(t,this.$target)}),()=>{};const s={originalTarget:this.$target,listenerFn:e,watchFn:r,scopeId:this.$id,id:m(),property:[]};let i=r.decoratedNode.body[0].expression.name,o=[],a=r.decoratedNode.body[0].expression.type;switch(a){case Kr:case Wr:throw new Error("Unsupported type "+a);case Gr:if(!e){let t=r(this.$target);for(;k(t);)t=t(this.$target);return Promise.resolve().then(t),()=>{}}i=r.decoratedNode.body[0].expression.left.name;break;case Qr:i=r.decoratedNode.body[0].expression.toWatch[0]?.test?.name,s.property.push(i);break;case Jr:{let t=[];return t.push(r.decoratedNode.body[0].expression.left.toWatch[0]?.name),t.push(r.decoratedNode.body[0].expression.right.toWatch[0]?.name),t.forEach(t=>{this.#o(t,s)}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case Zr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case Yr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case Xr:{let t=[];return r.decoratedNode.body[0].expression.toWatch.forEach(e=>{b(e)&&t.push(e.name)}),t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case ts:if(i=r.decoratedNode.body[0].expression.property.name,i||(i=r.decoratedNode.body[0].expression.object.name),s.property.push(i),t!==i){s.watchProp=t;let e=eo(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(e&&this.foreignProxies.has(e))return e.$handler.#c(i,s),e.$handler.#n([s]),()=>e.$handler.#a(i,s.id)}break;case es:s.property.push(r.decoratedNode.body[0].expression.name);break;case ns:throw new Error("Unsupported type "+a);case rs:{let t=r.decoratedNode.body[0].expression.elements.map(t=>11===t.type?t.value:t.toWatch[0].name).filter(t=>!!t);return t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case ss:throw new Error("Unsupported type "+a);case is:r.decoratedNode.body[0].expression.properties.forEach(t=>{if(!1===t.key.isPure)o.push(t.key.name),s.property.push(i);else if(t.value.name)o.push(t.value.name),s.property.push(i);else{const t=r.decoratedNode.body[0].expression.toWatch[0];i=t.property?t.property.name:t.name,s.property.push(i)}});break;case os:case as:case cs:throw new Error("Unsupported type "+a)}let c=s.watchFn(this.$target);return w(c)&&this.objectListeners.set(c,[i]),o.length>0?o.forEach(t=>{this.#o(t,s)}):this.#o(i,s),n||this.#n([s]),()=>{if(o.length>0){let t=!0;return o.forEach(e=>{this.#a(e,s.id)||(t=!1)}),t}return this.#a(i,s.id)}}$new(t){let e;t?(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)==this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(Object.getPrototypeOf(t)||t,this.$target),e=t):e=Object.create(this.$target);const n=new Proxy(e,new co(this));return this.$children.push(n),n}$newIsolate(t){let e=t?Object.create(t):Object.create(null);const n=new Proxy(e,new co(this,this.$root));return this.$children.push(n),n}$transcluded(t){let e=Object.create(this.$target);const n=new Proxy(e,new co(this,t));return this.$children.push(n),n}#o(t,e){this.watchers.has(t)?this.watchers.get(t).push(e):this.watchers.set(t,[e])}#c(t,e){this.foreignListeners.has(t)?this.foreignListeners.get(t).push(e):this.foreignListeners.set(t,[e])}#a(t,e){const n=this.watchers.get(t);if(!n)return!1;const r=n.findIndex(t=>t.id===e);return-1!==r&&(n.splice(r,1),n.length?this.watchers.set(t,n):this.watchers.delete(t),!0)}$eval(t,e){const n=eo(t)(this,e);return y(n)||null===n||n.name===Object.hasOwnProperty.name?n:k(n)?n():Number.isNaN(n)?0:n}$merge(t){Object.entries(t).forEach(([t,e])=>{this.set(this.$target,t,e,this.$proxy)})}$apply(t){try{return eo(t)(this.$proxy)}catch(t){no(t)}}$on(t,e){let n=this.$$listeners.get(t);return n||(n=[],this.$$listeners.set(t,n)),n.push(e),()=>{const r=n.indexOf(e);-1!==r&&(n.splice(r,1),0==n.length&&this.$$listeners.delete(t))}}$emit(t,...e){return this.#l({name:t,event:void 0,broadcast:!1},...e)}$broadcast(t,...e){return this.#l({name:t,event:void 0,broadcast:!0},...e)}#l({name:t,event:e,broadcast:n},...r){if(!n&&!this.$$listeners.has(t))return this.$parent?this.$parent.$handler.#l({name:t,event:e,broadcast:n},...r):void 0;e?e.currentScope=this.$target:e=e||{name:t,targetScope:this.$target,currentScope:this.$target,stopped:!1,stopPropagation(){e.stopped=!0},preventDefault(){e.defaultPrevented=!0},defaultPrevented:!1};const s=G([e],[e].concat(r),1);let i=this.$$listeners.get(t);if(i){let t=i.length;for(let e=0;e<t;e++)try{i[e].apply(null,s),i.length!==t&&(i.length<t&&e--,t=i.length)}catch(t){no(t)}}return e.currentScope=null,e.stopped?e:n?(this.$children.length>0&&this.$children.forEach(s=>{e=s.$handler.#l({name:t,event:e,broadcast:n},...r)}),e):this.$parent?this.$parent.#l({name:t,event:e,broadcast:n},...r):e}#s(){return this.$root==this}$postUpdate(t){so.push(t)}$destroy(){if(!this.$$destroyed){if(this.$broadcast("$destroy"),Array.from(this.watchers.entries()).forEach(([t,e])=>{this.watchers.set(t,e.filter(t=>t.scopeId!==this.$id))}),this.#s())this.watchers.clear();else{let t=this.$parent.$children.filter(t=>t.$id==this.$id)[0];this.$parent.$children.splice(this.$parent.$children.indexOf(t),1)}this.$$listeners.clear(),this.$$destroyed=!0}}#i(t,e){const{originalTarget:n,listenerFn:r,watchFn:s}=t;try{let t=s(n);for(y(t)&&(t=s(e)),k(t)&&(t=t(n)),Array.isArray(t)&&t.forEach((e,r)=>{k(e)&&(t[r]=e(n))}),r(t,n),this.$$asyncQueue.forEach(t=>{t.handler.$id==this.$id&&Promise.resolve().then(t.fn(t.handler,t.locals))});so.length;)so.shift()()}catch(t){no(t)}}$getById(t){if(E(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let e;for(const n of this.$children){let r=n.$getById(t);if(r){e=r;break}}return e}}}function lo(t){const e=new Set([t.$id]);return t.$children?.forEach(t=>{lo(t).forEach(t=>e.add(t))}),e}const uo=dt("$templateRequest");function ho(){let t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$sce",function(e,n,r,s){function i(o,a){if(i.totalPendingRequests++,!E(o)||!n.has(o))try{if(!(o=s.getTrustedResourceUrl(o)))return Promise.reject("Template not found")}catch(t){return Promise.reject(t.message)}let c=r.defaults&&r.defaults.transformResponse;return Array.isArray(c)?c=c.filter(function(t){return t!==Vi}):c===Vi&&(c=null),r.get(o,M({cache:n,transformResponse:c},t)).finally(function(){i.totalPendingRequests--}).then(function(t){return n.set(o,t.data),t.data},function(t){a||(t=uo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText),e(t));return Promise.reject(t)})}return i.totalPendingRequests=0,i}]}class po{constructor(){this._aHrefSanitizationTrustedUrlList=/^\s*(https?|s?ftp|mailto|tel|file):/,this._imgSrcSanitizationTrustedUrlList=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return b(t)?(this._aHrefSanitizationTrustedUrlList=t,this):this._aHrefSanitizationTrustedUrlList}imgSrcSanitizationTrustedUrlList(t){return b(t)?(this._imgSrcSanitizationTrustedUrlList=t,this):this._imgSrcSanitizationTrustedUrlList}$get(){return(t,e)=>{if(!t)return t;const n=e?this._imgSrcSanitizationTrustedUrlList:this._aHrefSanitizationTrustedUrlList,r=Le(t.trim()).href;return""===r||r.match(n)?t:`unsafe:${r}`}}}const fo="ng-active",$o="ng-inactive";class mo{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,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 e=vo(this.$scope,this.$attrs.ngMessagesMultiple)||vo(this.$scope,this.$attrs.multiple),n=[],r={};let s=0,i=this.head,o=!1,a=0;for(;i;){a++;const c=i.message;let l=!1;o||Object.entries(t).forEach(([t,e])=>{if(yo(e)&&!l&&(s++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}}),l?o=!e:n.push(c),i=i.next}n.forEach(t=>{t.detach()});const c=n.length!==a,l=this.default&&!c&&s>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,fo,$o):this.$animate.setClass(this.$element,$o,fo)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element,t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element,t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const s=this.findPreviousMessage(t,e);s?s.next=r.next:this.head=r.next}}function go(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new mo(e,n,r,t)}}function vo(t,e){return E(e)&&0===e.length||yo(t.$eval(e))}function yo(t){return E(t)?t.length:!!t}function bo(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,s){const i=s.ngMessagesInclude||s.src;t(i).then(t=>{n.$$destroyed||E(t)&&!t.trim()||e(t)(n,t=>{r.after(t)})})}}}go.$inject=["$animate"],bo.$inject=["$templateRequest","$compile"];const wo=So(!1),Eo=So(!1),Co=So(!0);function So(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,s,i,o){let a,c,l,u,h,d;if(!t){a=r,l=s.ngMessage||s.when,u=s.ngMessageExp||s.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,i.reRender()};u?(t(n.$eval(u)),n.$watch(u,t)):t(l)}i.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:vt(t,e)}(c,t),attach(){h||o((n,s)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=i.getAttachId();h.addEventListener("$destroy",()=>{h&&h.$$attachId===o&&(i.deregister(a,t),d.detach()),s.$destroy()})})},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",()=>{i.deregister(a,t)})}}}return e.$inject=["$animate"],e}const xo="ngAriaDisable",Ao=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Oo=function(t,e){if(-1!==e.indexOf(t.nodeName))return!0};function ko(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,s){return function(i,o,a){if(vt(a,xo))return;const c=a.$normalize(n);!t[c]||Oo(o,r)||a[c]||i.$watch(a[e],t=>{t=s?!t:!!t,o.setAttribute(n,t)})}}this.config=function(e){t=M(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function _o(t){return t.$$watchExpr("ngDisabled","aria-disabled",Ao,!1)}function To(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function jo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){vt(n,xo)||e.hasAttribute("aria-live")||e.setAttribute("aria-live","assertive")}}}function Ro(t,e){return{restrict:"A",compile(n,r){if(vt(r,xo))return;const s=e(r.ngClick);return function(e,n,r){Oo(n,Ao)||(t.config("bindRoleForClick")&&!n.hasAttribute("role")&&n.setAttribute("role","button"),t.config("tabindex")&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","0"),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.addEventListener("keydown",t=>{const n=parseInt(t.key,10);13!==n&&32!==n||(-1!==Ao.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply(function(){s(e,{$event:t})}))}))}}}}function No(t){return t.$$watchExpr("ngRequired","aria-required",Ao,!1)}function Lo(t){return t.$$watchExpr("ngChecked","aria-checked",Ao,!1)}function Vo(t){return t.$$watchExpr("ngValue","aria-checked",Ao,!1)}function Mo(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Po(t){return t.$$watchExpr("ngReadonly","aria-readonly",Ao,!1)}function Do(t){function e(e,n,r,s){return t.config(n)&&!r.getAttribute(e)&&(s||!Oo(r,Ao))&&("hidden"!==r.getAttribute("type")||"INPUT"!==r.nodeName)}function n(t,e){return!e.getAttribute("role")&&e.getAttribute("type")===t&&!Oo(e,Ao)}return{restrict:"A",require:"ngModel",priority:200,compile(r,s){if(vt(s,xo))return;const i=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(s);return{post(r,s,o,a){const c=e("tabindex","tabindex",s,!1);switch(i){case"radio":case"checkbox":n(i,s)&&s.setAttribute("role",i),e("aria-checked","ariaChecked",s,!1)&&a.$watch("$modelValue","radio"===i?function(){s.setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){s.setAttribute("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&s.setAttribute("tabindex",0);break;case"range":if(n(i,s)&&s.setAttribute("role","slider"),t.config("ariaValue")){const t=!s.hasAttribute("aria-valuemin")&&(vt(o,"min")||vt(o,"ngMin")),e=!s.hasAttribute("aria-valuemax")&&(vt(o,"max")||vt(o,"ngMax")),n=!s.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{s.setAttribute("aria-valuemin",t)}),e&&o.$observe("max",t=>{s.setAttribute("aria-valuemax",t)}),n&&a.$watch("$modelValue",t=>{s.setAttribute("aria-valuenow",t)})}c&&s.setAttribute("tabindex",0)}!vt(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",s,!1)&&o.$observe("required",()=>{s.setAttribute("aria-required",(!!o.required).toString())}),e("aria-invalid","ariaInvalid",s,!0)&&a.$watch("$invalid",t=>{s.setAttribute("aria-invalid",(!!t).toString())})}}}}}function Uo(t){return function(e,n,r){vt(r,xo)||!t.config("tabindex")||n.hasAttribute("tabindex")||Oo(n,Ao)||n.setAttribute("tabindex",0)}}_o.$inject=[ee.$aria],To.$inject=[ee.$aria],Ro.$inject=[ee.$aria,ee.$parse],No.$inject=[ee.$aria],Lo.$inject=["$aria"],Vo.$inject=[ee.$aria],Mo.$inject=[ee.$aria],Po.$inject=[ee.$aria],Do.$inject=[ee.$aria],Uo.$inject=[ee.$aria];const Io="$$animateCss",Ho=1e3,Fo={transitionDuration:xs,transitionDelay:Ss,transitionProperty:fs+ys,animationDuration:Cs,animationDelay:Es,animationIterationCount:ms+"IterationCount"},qo={transitionDuration:xs,transitionDelay:Ss,animationDuration:Cs,animationDelay:Es};function Bo(t,e){return[e?Es:Ss,`${t}s`]}function zo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach(([t,e])=>{let s=r[e];if(s){const e=s.charAt(0);("-"===e||"+"===e||e>=0)&&(s=function(t){let e=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,e=e?Math.max(t,e):t}),e}(s)),0===s&&(s=null),n[t]=s}}),n}function Ko(t){return 0===t||null!=t}function Wo(t,e){let n=fs,r=`${t}s`;return e?n+=vs:r+=" linear all",[n,r]}function Go(t,e,n){n.forEach(n=>{t[n]=b(t[n])?t[n]:e.style.getPropertyValue(n)})}function Qo(){this.$get=["$$AnimateRunner","$$animateCache","$$rAFScheduler",function(t,e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const s=[];function i(t){s.push(t),n.waitUntilQuiet(()=>{e.flush();const t=document.body.offsetWidth+1;for(let e=0;e<s.length;e++)s[e](t);s.length=0})}function o(t,n,r){const s=function(t,n,r,s){let i=e.get(n);i||(i=zo(t,s),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1));const o=r||i.transitionDuration>0||i.animationDuration>0;return e.put(n,i,o),i}(t,n,r,Fo),i=s.animationDelay,o=s.transitionDelay;return s.maxDelay=i&&o?Math.max(i,o):i||o,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(n,s){let a,c=s||{};c.$$prepared||(c=Ts(structuredClone(c)));const l={},u=n;if(!u||!u.parentNode)return q();const h=[],d=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(c);let p,f,$,m,g,v,y,b,w,E;const C=[];if(0===c.duration)return q();const S=c.event&&Array.isArray(c.event)?c.event.join(" "):c.event,x=S&&c.structural;let A="",O="";x?A=ks(S,"ng-",!0):S&&(A=S),c.addClass&&(O+=ks(c.addClass,ls)),c.removeClass&&(O.length&&(O+=" "),O+=ks(c.removeClass,us)),c.applyClassesEarly&&O.length&&r(n,c);let k=[A,O].join(" ").trim();const _=d.to&&Object.keys(d.to).length>0;if(!((c.keyframeStyle||"").length>0)&&!_&&!k)return q();let T,j,R=e.cacheKey(u,S,c.addClass,c.removeClass);if(e.containsCachedAnimationWithoutDuration(R))return k=null,q();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,r,s){let i;const o=`stagger-${r}`;if(e.count(r)>0&&(i=e.get(o),!i)){const r=ks(n,"-stagger");t.className+=` ${r}`,i=zo(t,s),i.animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),t.classList.remove(r),e.put(o,i,!0)}return i||{}}(u,k,R,qo);if(c.$$skipPreparationClasses||n.classList.add(...k.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=[fs,c.transitionStyle];Ms(u,t),h.push(t)}if(c.duration>=0){j=u.style[fs].length>0;const t=Wo(c.duration,j);Ms(u,t),h.push(t)}if(c.keyframeStyle){const t=[ms,c.keyframeStyle];Ms(u,t),h.push(t)}const N=T?c.staggerIndex>=0?c.staggerIndex:e.count(R):0,L=0===N;L&&!c.skipBlocking&&Jo(u,9999);let V=o(u,R,!x),M=V.maxDelay;v=Math.max(M,0),b=V.maxDuration;const P={};if(P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0,P.hasTransitionAll=P.hasTransitions&&"all"===V.transitionProperty,P.applyTransitionDuration=_&&(P.hasTransitions&&!P.hasTransitionAll||P.hasAnimations&&!P.hasTransitions),P.applyAnimationDuration=c.duration&&P.hasAnimations,P.applyTransitionDelay=Ko(c.delay)&&(P.applyTransitionDuration||P.hasTransitions),P.applyAnimationDelay=Ko(c.delay)&&P.hasAnimations,P.recalculateTimingStyles=O.length>0,(P.applyTransitionDuration||P.applyAnimationDuration)&&(b=c.duration?parseFloat(c.duration):b,P.applyTransitionDuration&&(P.hasTransitions=!0,V.transitionDuration=b,j=u.style[fs+ys].length>0,h.push(Wo(b,j))),P.applyAnimationDuration&&(P.hasAnimations=!0,V.animationDuration=b,h.push([Cs,`${b}s`]))),0===b&&!P.recalculateTimingStyles)return q();let D=ks(k,hs);return null!=c.delay&&("boolean"!=typeof c.delay&&(a=parseFloat(c.delay),v=Math.max(a,0)),P.applyTransitionDelay&&h.push(Bo(a)),P.applyAnimationDelay&&h.push(Bo(a,!0))),null==c.duration&&V.transitionDuration>0&&(P.recalculateTimingStyles=P.recalculateTimingStyles||L),y=v*Ho,w=b*Ho,c.skipBlocking||(P.blockTransition=V.transitionDuration>0,P.blockKeyframeAnimation=V.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration),c.from&&(c.cleanupStyles&&Go(l,u,Object.keys(c.from)),Rs(0,c)),P.blockTransition||P.blockKeyframeAnimation?F(b):c.skipBlocking||Jo(u,!1),{$$willAnimate:!0,end:U,start(){if(!p)return g={end:U,cancel:I,resume:null,pause:null},m=new t(g),i(z),m}};function U(){H()}function I(){H(!0)}function H(t){if(p||$&&f)return;p=!0,f=!1,k&&!c.$$skipPreparationClasses&&n.classList.remove(...k.split(" ")),D=ks(k,hs),D&&n.classList.remove(...D.split(" ")),Vs(u,!1),Jo(u,!1),h.forEach(t=>{u.style[t[0]]=""}),r(n,c),js(n,c),Object.keys(l).length&&Object.entries(l).forEach(([t,e])=>{e?u.style.setProperty(t,e):u.style.removeProperty(t)}),c.onDone&&c.onDone(),C&&C.length&&n.off(C.join(" "),B);const e=Dt(n,Io);e&&(clearTimeout(e[0].timer),jt(n,Io)),m&&m.complete(!t)}function F(t){P.blockTransition&&Jo(u,t),P.blockKeyframeAnimation&&Vs(u,!!t)}function q(){return m=new t({end:U,cancel:I}),i(()=>{}),H(),{$$willAnimate:!1,start:()=>m,end:U}}function B(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==u)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-E,0)>=y&&r>=b&&($=!0,H())}function z(){if(p)return;if(!u.parentNode)return void H();const t=function(t){if($)f&&t&&(f=!1,H());else if(f=!t,V.animationDuration){const t=Vs(u,f);f?h.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(h,t)}},s=N>0&&(V.transitionDuration&&0===T.transitionDuration||V.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function i(){if(p)return;if(F(!1),h.forEach(t=>{const e=t[0];u.style[e]=t[1]}),r(n,c),n.classList.add(...D.split(" ").filter(t=>""!==t)),P.recalculateTimingStyles){if(R=e.cacheKey(u,S,c.addClass,c.removeClass),V=o(u,R,!1),M=V.maxDelay,v=Math.max(M,0),b=V.maxDuration,0===b)return void H();P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0}if(P.applyAnimationDelay&&(M="boolean"!=typeof c.delay&&Ko(c.delay)?parseFloat(c.delay):M,v=Math.max(M,0),V.animationDelay=M,a=Bo(M,!0),h.push(a),u.style[a[0]]=a[1]),y=v*Ho,w=b*Ho,c.easing){let t;const e=c.easing;P.hasTransitions&&(t=fs+ws,h.push([t,e]),u.style[t]=e),P.hasAnimations&&(t=ms+ws,h.push([t,e]),u.style[t]=e)}V.transitionDuration&&C.push($s),V.animationDuration&&C.push(gs),E=Date.now();const t=y+1.5*w,s=E+t,i=Dt(n,Io)||[];let f=!0;if(i.length){const t=i[0];f=s>t.expectedEndTime,f?clearTimeout(t.timer):i.push(H)}if(f){const e=setTimeout(d,t,!1);i[0]={timer:e,expectedEndTime:s},i.push(H),Pt(n,Io,i)}C.length&&C.forEach(t=>{n.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Go(l,u,Object.keys(c.to)),Ns(0,c))}function d(){const t=Dt(n,Io);if(t){for(let e=1;e<t.length;e++)t[e]();jt(n,Io)}}s?setTimeout(i,Math.floor(s*N*Ho),!1):i(),g.resume=function(){t(!0)},g.pause=function(){t(!1)}}}}]}function Jo(t,e){const n=e?`-${e}s`:"";return Ms(t,[Ss,n]),[Ss,n]}const Zo="data-ng-animate",Yo="$ngAnimatePin";function Xo(t){const e=this.rules={skip:[],cancel:[],join:[]};function n(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function r(t,e){if(t&&e){const n=function(t){if(!t)return null;const e=t.split(" "),n=Object.create(null);return e.forEach(t=>{n[t]=!0}),n}(e);return t.split(" ").some(t=>n[t])}}function s(t,n,r){return e[t].some(t=>t(n,r))}function i(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}e.join.push(t=>!t.structural&&i(t)),e.skip.push(t=>!t.structural&&!i(t)),e.skip.push((t,e)=>"leave"===e.event&&t.structural),e.skip.push((t,e)=>e.structural&&2===e.state&&!t.structural),e.cancel.push((t,e)=>e.structural&&t.structural),e.cancel.push((t,e)=>2===e.state&&t.structural),e.cancel.push((t,e)=>{if(e.structural)return!1;const n=t.addClass,s=t.removeClass,i=e.addClass,o=e.removeClass;return!(y(n)&&y(s)||y(i)&&y(o))&&(r(n,o)||r(s,i))}),this.$get=[ee.$rootScope,ee.$injector,ee.$$animation,ee.$$AnimateRunner,ee.$templateRequest,function(e,r,o,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",t=>{0===t&&(p(),e.$templateRequest=void 0,e.$postUpdate(()=>{e.$postUpdate(()=>{null===h&&(h=!0)})}))},!0),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),g=function(){return!0},v=$||g,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:g,S=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function x(t,e){return Ls(t,e,{})}const A=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function O(t,e,n){const r=_s(e);return t.filter(t=>!(t.node===r&&(!n||t.callback===n)))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=_s(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),e.addEventListener("$destroy",()=>{l.get(r)||_.off(t,e,n)})},off(t,e,n){if(1===arguments.length&&!E(arguments[0])){e=arguments[0];for(const t in f)f[t]=O(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:O(r,e,n))},pin(t,e){Os(I(t),"element","not an element"),Os(I(e),"parentElement","not an element"),Pt(t,Yo,e)},push:(t,c,h,d)=>((h=h||{}).domOperation=d,function(t,c,h){let d=h,p=Array.isArray(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const $=p,m=$&&$.parentNode;d=Ts(d);const g=new a,O=function(){let t=!1;return function(n){t?n():e.$postUpdate(()=>{t=!0,n()})}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!E(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!E(d.removeClass)&&(d.removeClass=null);d.from&&!w(d.from)&&(d.from=null);d.to&&!w(d.to)&&(d.to=null);if(!$||!v($,c,h)||!C($,d))return U(),g;const _=["enter","move","leave"].indexOf(c)>=0;let R=document.hidden||u.get($);const N=!R&&l.get($)||{},L=!!N.state;R||L&&1===N.state||(R=!function(t,e){const n=document.body,s=r.get("$rootElement");let i,o=t===n||"HTML"===t.nodeName,a=t===s,c=!1,h=u.get(t),d=Mt(t,Yo);d&&(e=d);for(;e&&(a||(a=e===s),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(y(i)||!0===i){const t=Mt(e,ps);b(t)&&(i=t)}if(c&&!1===i)break;if(o||(o=e===n),o&&a)break;e=a||(d=Mt(e,Yo),!d)?e.parentNode:d}return(!c||i)&&!0!==h&&a&&o}($,m));if(R)return document.hidden&&D(g,c,"start",n(d)),U(),document.hidden&&D(g,c,"close",n(d)),g;_&&function(t){const e=t.querySelectorAll(`[${Zo}]`);e.forEach(t=>{const e=parseInt(t.getAttribute(Zo),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}})}($);const V={structural:_,element:p,event:c,addClass:d.addClass,removeClass:d.removeClass,close:U,options:d,runner:g};if(L){if(s("skip",V,N))return 2===N.state?(U(),g):(Ls(p,N,V),N.runner);if(s("cancel",V,N))if(2===N.state)N.runner.end();else{if(!N.structural)return Ls(p,N,V),N.runner;N.close()}else{if(s("join",V,N)){if(2!==N.state)return function(t,e,n){let r="";e&&(r=ks(e,"ng-",!0)),n.addClass&&(r=Ps(r,ks(n.addClass,ls))),n.removeClass&&(r=Ps(r,ks(n.removeClass,us))),r.length&&(n.preparationClasses=r,t.className+=` ${r}`)}(p,_?c:null,d),c=V.event=N.event,d=Ls(p,N,V),N.runner;x(p,V)}}}else x(p,V);let M=V.structural;M||(M="animate"===V.event&&Object.keys(V.options.to||{}).length>0||i(V));if(!M)return U(),T($),g;const P=(N.counter||0)+1;return V.counter=P,j($,1,V),e.$postUpdate(()=>{p=function(t){return t instanceof NodeList?Array.from(t).filter(t=>t.nodeType==Node.ELEMENT_NODE):t.nodeType===Node.ELEMENT_NODE?t:void 0}(t);let e=l.get($);const r=!e;e=e||{};const s=(p.parentElement||[])&&("animate"===e.event||e.structural||i(e));if(r||e.counter!==P||!s)return r&&(S(p,d),js(p,d)),(r||_&&e.event!==c)&&(d.domOperation(),g.end()),void(s||T($));c=!e.structural&&i(e,!0)?"setClass":e.event,j($,2);const a=o(p,c,e.options);g.setHost(a),D(g,c,"start",n(d)),a.done(t=>{U(!t);const e=l.get($);e&&e.counter===P&&T($),D(g,c,"close",n(d))})}),g;function D(t,e,n,r){O(()=>{const t=function(t,e,n){const r=[],s=f[n];return s&&s.forEach(s=>{(A.call(s.node,e)||"leave"===n&&A.call(s.node,t))&&r.push(s.callback)}),r}(m,$,e);t.length?(t.forEach(t=>{t(p,n,r)}),k(n,$)):k(n,$)}),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach(e=>t.classList.remove(e)),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach(e=>t.classList.remove(e)),e.activeClasses=null)}(p,d),S(p,d),js(p,d),d.domOperation(),g.complete(!t)}}(t,c,h)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(I(t)){const r=t;1===n?e=!u.get(r):(u.has(r)||t.addEventListener("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(Zo),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(Zo,e);const r=l.get(t),s=r?M(r,n):n;l.set(t,s)}}]}function ta(t){this.$get=[ee.$injector,"$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(s,i,o,a){let c=!1;3===arguments.length&&w(o)&&(a=o,o=null),a=Ts(a),o||(o=s.getAttribute("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],s={};for(let i=0;i<n.length;i++){const o=n[i],a=t.$$registeredAnimations[o];a&&!s[o]&&(r.push(e.get(a)),s[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===i?(e="leave",t="afterLeave"):(e=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,t=i),"enter"!==i&&"move"!==i&&(d=v(s,i,a,h,e)),p=v(s,i,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push(e=>{t=d(e)}),e.length?e.push(t=>{$(),t(!0)}):$(),p&&e.push(e=>{t=p(e)}),f.setHost({end(){s()},cancel(){s(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function s(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(s,a)}function m(){c=!0,$(),js(s,a)}function g(t,e,r,s,i){const o=[];return s.forEach(s=>{const a=s[i];a&&o.push(()=>{let s,i,o=!1;const c=function(t){o||(o=!0,(i||(()=>{}))(t),s.complete(!t))};return s=new n({end(){c()},cancel(){c(!0)}}),i=function(t,e,r,s,i){let o;switch(r){case"animate":o=[e,s.from,s.to,i];break;case"setClass":o=[e,l,u,i];break;case"addClass":o=[e,l,i];break;case"removeClass":o=[e,u,i];break;default:o=[e,i]}o.push(s);let a=t.apply(t,o);if(a)if(k(a.start)&&(a=a.start()),a instanceof n)a.done(i);else if(k(a))return a;return()=>{}}(a,t,e,r,t=>{c(!1===t)}),s})}),o}function v(t,e,r,s,i){let o=g(t,e,r,s,i);if(0===o.length){let e,n;"beforeSetClass"===i?(e=g(t,"removeClass",r,s,"beforeRemoveClass"),n=g(t,"addClass",r,s,"beforeAddClass")):"setClass"===i&&(e=g(t,"removeClass",r,s,"removeClass"),n=g(t,"addClass",r,s,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&o.forEach(t=>{e.push(t())}),e.length?n.all(e,t):t(),function(t){e.forEach(e=>{t?e.cancel():e.end()})}}}}}]}Xo.$inject=["$animateProvider"],ta.$inject=["$animateProvider"];const ea="$$animationRunner",na="$$animatePrepareClasses";function ra(){const t="ng-animate-ref",e=this.drivers=[];function n(t){!function(t,e){if(Lt(t)){const n=Rt(t,!1),r=n?.data;r&&vt(r,_t(e))&&delete r[_t(e)]}}(t,ea)}function r(t){return Dt(t,ea)}this.$get=[ee.$rootScope,ee.$injector,ee.$$AnimateRunner,ee.$$rAFScheduler,ee.$$animateCache,function(s,i,o,a,c){const l=[],u=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(h,d,p){p=Ts(p);const f=["enter","move","leave"].indexOf(d)>=0,$=new o({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),$;let m=ft(h.getAttribute("class"),ft(p.addClass,p.removeClass)),{tempClasses:g}=p;return g&&(m+=` ${g}`,p.tempClasses=null),f&&Pt(h,na,`ng-${d}-prepare`),function(t,e){Pt(t,ea,e)}(h,$),l.push({element:h,classes:m,event:d,structural:f,options:p,beforeStart:function(){g=(g?`${g} `:"")+ds,h.className+=` ${g}`;let t=Dt(h,na);t&&(h.classList.remove(t),t=null)},close:y}),h.addEventListener("$destroy",function(){const t=r(h);!t||"leave"===d&&p.$$domOperationFired||t.end()}),l.length>1||s.$postUpdate(()=>{const n=[];l.forEach(t=>{r(t.element)?n.push(t):t.close()}),l.length=0;const s=function(e){const n=[],r={};e.forEach((e,s)=>{const{element:i}=e,o=i,{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),s=[];return r.forEach(e=>{const n=e.getAttribute(t);n&&n.length&&s.push(e)}),s}(o):[];if(l.length){const e=c?"to":"from";l.forEach(n=>{const i=n.getAttribute(t);r[i]=r[i]||{},r[i][e]={animationID:s,element:n}})}else n.push(e)});const s={},i={};return Object.values(r).forEach(t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,i=t.toString();return void(s[i]||(s[i]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!i[l]){const t=i[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:v(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}i[l].anchors.push({out:r.element,in:o.element})}),n}(n),o=[];s.forEach(t=>{const n=t.from?t.from.element:t.element;let s=p.addClass;s=(s?`${s} `:"")+ds;const a=c.cacheKey(n,t.event,s,p.removeClass);o.push({element:n,domNode:n,fn:function(){let n;const s=t.close;if(c.containsCachedAnimationWithoutDuration(a))return void s();t.beforeStart();if(r(t.anchors?t.from.element||t.to.element:t.element)){const r=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);r&&(n=r.start)}if(n){const e=n();e.done(t=>{s(!t)}),function(t,e){t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element);function n(t){const n=r(t);n&&n.setHost(e)}}(t,e)}else s()}})});const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)s(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let s=n.length,i=0,o=[];for(r=0;r<n.length;r++){const t=n[r];s<=0&&(s=i,i=0,e.push(o),o=[]),o.push(t),t.children.forEach(t=>{i++,n.push(t)}),s--}return o.length&&e.push(o),e}(e);function s(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let i,{parentNode:o}=n;for(r.set(n,t);o;){if(i=r.get(o),i){i.processed||(i=s(i));break}o=o.parentNode}return(i||e).children.push(t),t}}(o);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:s}=r;if(u[t][n]=r.fn,0===t){jt(s,na);continue}const i=Dt(s,na);i&&s.classList.add(i)}}a(u)}),$;function v(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const s=t[r];if("ng-"!==s.substring(0,3))for(let t=0;t<e.length;t++)if(s===e[t]){n.push(s);break}}return n.join(" ")}function y(t){n(h),u(h,p),js(h,p),p.domOperation(),g&&g.split(" ").forEach(t=>h.classList.remove(t)),$.complete(!t)}}}]}class sa{constructor(){this.queue=[],this.cancelFn=null}nextTick(){if(!this.queue.length)return;this.queue.shift().forEach(t=>t()),this.cancelFn||(this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,this.nextTick()}))}$get(){const t=t=>{this.queue=this.queue.concat(t),this.nextTick()};return t.queue=this.queue,t.waitUntilQuiet=t=>{null!==this.cancelFn&&(window.cancelAnimationFrame(this.cancelFn),this.cancelFn=null),this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,t(),this.nextTick()})},t}}const ia="$animId";let oa=0;const aa=new Map;function ca(){return{cacheKey(t,e,n,r){const{parentNode:s}=t,i=[s[ia]??(s[ia]=++oa),e,t.getAttribute("class")];return n&&i.push(n),r&&i.push(r),i.join(" ")},containsCachedAnimationWithoutDuration(t){const e=aa.get(t);return!!e&&!e.isValid},flush(){aa.clear()},count:t=>aa.get(t)?.total??0,get:t=>aa.get(t)?.value,put(t,e,n){const r=aa.get(t);r?(r.total++,r.value=e):aa.set(t,{total:1,value:e,isValid:n})}}}function la(){this.$get=[ca]}const ua="ng-animate-shim",ha="ng-anchor",da="ng-anchor-out",pa="ng-anchor-in";function fa(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,s=n,i=(o=s).parentNode&&11===o.parentNode.nodeType||r.contains(s)?s:r;var o;return function(n){return n.from&&n.to?function(n,s,o){const c=a(n),l=a(s),u=[];if(o.forEach(n=>{const s=function(n,s){const o=n.cloneNode(!0),a=$a(p(o));let c;n[0].classList.add(ua),s[0].classList.add(ua),o.classList.add(ha),i.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,$(),t.complete()}),n;$(),t.complete()}),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let s=n[t];switch(t){case"top":s+=r.scrollTop;break;case"left":s+=r.scrollLeft}e[t]=`${Math.floor(s)}px`}),e}function d(){const e=t(o,{addClass:da,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.getAttribute("class")||""}function f(){const e=$a(p(s)),n=ma(e,a),r=ma(a,e),i=t(o,{to:h(s),addClass:`${pa} ${n}`,removeClass:`${da} ${r}`,delay:!0});return i.$$willAnimate?i:null}function $(){o.remove(),n[0].classList.remove(ua),s[0].classList.remove(ua)}}(n.out,n.in);s&&u.push(s)}),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach(e=>{t.push(e.start())});const n=new e({end:r,cancel:r});return e.all(t,t=>{n.complete(t)}),n;function r(){t.forEach(t=>{t.end()})}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=Ps(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function $a(t){return t.replace(/\bng-\S+\b/g,"")}function ma(t,e){return E(t)&&(t=t.split(" ")),E(e)&&(e=e.split(" ")),t.filter(t=>-1===e.indexOf(t)).join(" ")}function ga(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),s=n(t.to);if(!r&&!s)return;return{start(){const t=[];r&&t.push(r.start()),s&&t.push(s.start()),e.all(t,function(t){n.complete(t)});const n=new e({end:i(),cancel:i()});return n;function i(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(e){const{element:n,event:r,options:s,classes:i}=e;return t(n,r,i,s)}}]}function va(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,s,i){let o,a;e.$watch(r.ngAnimateSwap||r.for,e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&i((e,r)=>{o=e,a=r,t.enter(e,null,n)})})}}}function ya(t){return{link(e,n,r){const s=r.ngAnimateChildren;function i(t){Pt(n,ps,t="on"===t||"true"===t)}E(s)&&0===s.length?Pt(n,ps,!0):(i(t(s)(e)),r.$observe("ngAnimateChildren",i))}}}function ba(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(r.every(Array.isArray))return i=e,(s=t).length===i.length&&Ma(s,i).reduce((t,e)=>t&&ba(e[0],e[1]),!0);var s,i;if(r.every(A))return t.getTime()===e.getTime();if(r.every(_))return t.toString()===e.toString();if(r.every(k))return!0;if([k,Array.isArray,A,_].some(t=>!!t(r)))return!1;const o={};for(const n in t){if(!ba(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function wa(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}function Ea(t,e){const n=t.indexOf(e);return-1!==n&&t.splice(n,1),t}function Ca(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Sa(t||{},Object.keys(n)))}function Sa(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function xa(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>(e[n]=t[n],e),{})}function Aa(t,e){const n=Array.isArray(t),r=n?[]:{},s=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach(([t,n])=>{e(n,t)&&s(n,t)}),r}function Oa(t,e){let n;return Object.entries(t).forEach(([t,r])=>{n||e(r,t)&&(n=r)}),n}function ka(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach(([t,r])=>n[t]=e(r,t)),n}fa.$inject=["$$animationProvider"],ga.$inject=["$$animationProvider"],va.$inject=["$animate"],ya.$inject=[ee.$interpolate];const _a=(t,e)=>t&&e,Ta=(t,e)=>t||e,ja=(t,e)=>t.concat(e);function Ra(t,e){return t.push(e),t}const Na=(t,e)=>t.includes(e)?t:Ra(t,e),La=t=>t.reduce(ja,[]),Va=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function Ma(...t){if(0===t.length)return[];const e=t.reduce((t,e)=>Math.min(e.length,t),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map(t=>t[r]))}return n}function Pa(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!E(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function Da(t){return t.length>0?t[t.length-1]:void 0}function Ua(t,e){return e&&Object.keys(e).forEach(t=>delete e[t]),e||(e={}),Object.assign(e,t)}const Ia=t=>t.catch(()=>0)&&t,Ha=t=>Ia(Promise.reject(t));function Fa(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}const qa=Fa((t,e,n)=>n&&n[t]===e),Ba=t=>{const e=t.split(".");return t=>e.reduce((t,e)=>t&&t[e],t)};function za(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}}const Ka=t=>()=>t;function Wa(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}class Ga{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,e){return t==e}$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,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new Qa(this,t)}}function Qa(t,e){function n(t){return Array.isArray(t)?t:b(t)?[t]:[]}function r(t,r){return function(s){if(Array.isArray(s)&&0===s.length)return s;const i=ka(n(s),t);return!0===r?0===Aa(i,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(i)}}function s(t){return function(e,r){const s=n(e),i=n(r);if(s.length!==i.length)return!1;for(let e=0;e<s.length;e++)if(!t(s[e],i[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(e=>{const n=t[e].bind(t),i="equals"===e?s:r;this[e]=i(n)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class Ja{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Sa(Ja.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=wa(ka(this.defaultTypes,(t,e)=>new Ga(Object.assign({name:e},t))),{})}type(t,e,n){if(!b(e))return this.types[t];if(vt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new Ga(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){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 e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:za(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(Ja.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!S(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:za(Boolean),pattern:/[01]/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce((n,r)=>n&&t[r]()===e[r](),!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:za(Object),equals:ba,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:ba})})}();class Za{constructor(){this.paramTypes=new Ja,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=b(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(b(t)&&!0!==t&&!1!==t&&!E(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=b(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=b(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return b(e)?this:r}}class Ya{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),s={},i=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||i.indexOf(n[t])>=0||(i.push(n[t]),s[n[t]]=this[n[t]])}return Object.assign({},s,t)}}class Xa{constructor(t=[],e=null){this._items=Array.isArray(t)?[...t]:[],this._limit=Number.isInteger(e)&&e>0?e:null,this._evictListeners=[]}onEvict(t){this._evictListeners.push(t)}enqueue(t){return this._items.push(t),null!==this._limit&&this._items.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return void 0!==t&&this._evictListeners.forEach(e=>e(t)),t}dequeue(){return this._items.length>0?this._items.shift():void 0}clear(){const t=[...this._items];return this._items.length=0,t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return-1!==e&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){return this._items[0]}}class tc{constructor(){this.params=new Ya,this.lastStartedTransitionId=-1,this.transitionHistory=new Xa([],1),this.successfulTransitions=new Xa([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function ec(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(t=>!E(t)).length||n.filter(t=>!k(t)).length)}return k(t)}function nc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}function rc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function sc(t){const e=ic(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,s=t.name||"";return s&&r.match(/function \(/)?"function "+s+r.substring(9):r}function ic(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function oc(t){const e=[],n=Wa([[y,Ka("undefined")],[C,Ka("null")],[nc,Ka("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>w(t)&&!Array.isArray(t)&&t.constructor!==Object&&k(t.toString),t=>t.toString()],[ec,sc],[Ka(!0),t=>t]]);function r(t){if(w(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return y(t)?r(t):JSON.stringify(t,(t,e)=>r(e)).replace(/\\"/g,'"')}function ac(t,e){return E(Da(t))&&E(e)?t.slice(0,-1).concat(Da(t)+e):Ra(t,e)}function cc(t){if(!t)return"ng-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${e})]`}function lc(t){return x(t)?uc[t]:uc[uc[t]]}const uc={RESOLVE:0,TRANSITION:1,HOOK:2,UIVIEW:3,VIEWCONFIG:4},hc=Ba("$id"),dc=Ba("router.$id"),pc=t=>`Transition #${hc(t)}-${dc(t)}`;const fc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(uc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>uc[t])),e.map(lc).forEach(e=>this._enabled[e]=t)}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[lc(t)]}traceTransitionStart(t){this.enabled(uc.TRANSITION)&&console.log(`${pc(t)}: Started -> ${oc(t)}`)}traceTransitionIgnored(t){this.enabled(uc.TRANSITION)&&console.log(`${pc(t)}: Ignored <> ${oc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(uc.HOOK))return;const r=Ba("traceData.hookType")(n)||"internal",s=Ba("traceData.context.state.name")(n)||Ba("traceData.context")(n)||"unknown",i=sc(t.registeredHook.callback);console.log(`${pc(e)}: Hook -> ${r} context: ${s}, ${rc(200,i)}`)}traceHookResult(t,e){this.enabled(uc.HOOK)&&console.log(`${pc(e)}: <- Hook returned: ${rc(200,oc(t))}`)}traceResolvePath(t,e,n){this.enabled(uc.RESOLVE)&&console.log(`${pc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(uc.RESOLVE)&&console.log(`${pc(e)}: <- Resolved ${t} to: ${rc(200,oc(t.data))}`)}traceError(t,e){this.enabled(uc.TRANSITION)&&console.log(`${pc(e)}: <- Rejected ${oc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(uc.TRANSITION)&&console.log(`${pc(e)}: <- Success ${oc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(uc.UIVIEW)&&console.log(`ng-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${cc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(uc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(uc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${rc(200,e)}`)}traceViewSync(t){if(!this.enabled(uc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map(({ngView:t,viewConfig:r})=>{const s=t&&t.fqn,i=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:s,[n]:i}}).sort((t,n)=>(t[e]||"").localeCompare(n[e]||""));console.table(r)}traceViewServiceEvent(t,e){this.enabled(uc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ng-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(uc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${cc(e)}`)}};let $c="LAZY",mc="WAIT";class gc{constructor(t,e,n,r,s){this.resolved=!1,this.promise=void 0,t instanceof gc?Object.assign(this,t):k(e)?(at(!S(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=s,this.resolved=void 0!==s,this.promise=this.resolved?Promise.resolve(this.data):void 0):w(t)&&t.token&&(vt(t,"resolveFn")||vt(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 e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||$c,async:e.async||n.async||mc}}resolve(t,e){const n=t.findNode(this),r=n&&n.state,s=this.getPolicy(r).async,i=k(s)?s:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(n=>n.get(t,e)))).then(t=>this.resolveFn.apply(null,t)).then(i).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,fc.traceResolvableResolved(this,e),this.data)),this.promise}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${oc(this.token)}, requires: [${this.deps.map(oc)}])`}clone(){return new gc(this)}}gc.fromData=(t,e)=>new gc(t,()=>e,null,null,e);class vc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.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 vc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new vc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new vc(this._stateRegistry,this._identifier,this._params,n)}}vc.isDef=t=>t&&t.state&&(E(t.state)||w(t.state)&&E(t.state.name));const yc=0,bc=1,wc=2;function Ec(t,e,n){const r=!1===n.reloadOnSearch&&e===bc||void 0,s=Oa([n.dynamic,r],b),i=b(s)?{dynamic:s}:{},o=function(t){function e(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,e.__cacheable=!0;const n=ec(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(i,o)}class Cc{constructor(t,e,n,r,s){const i=Ec(t,n,s);e=function(t,e,n,r,s){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&s.type(t.type))return s.type(t.type);if(e)return e;if(!t.type){const t=n===wc?"any":n===yc?"path":n===bc?"query":"string";return s.type(t)}return t.type instanceof Ga?t.type:s.type(t.type)}(i,e,n,t,r.paramTypes);const o=function(){const e={array:n===bc&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,i).array}();e=o?e.$asArray(o,n===bc):e;const a=void 0!==i.value||n===bc,c=b(i.dynamic)?!!i.dynamic:!!e.dynamic,l=b(i.raw)?!!i.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!b(r)||null==r)return n;if(!0===r||E(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(i,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const s=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],i=Array.isArray(t.replace)?t.replace:[];E(r)&&i.push({from:r,to:void 0});const o=ka(i,t=>t.from);return Aa(s,t=>-1===o.indexOf(t.from)).concat(i)}(i,o,a,u),d=b(i.inherit)?!!i.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=i}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),y(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.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.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===bc}validates(t){if((y(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=e;return!(E(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter(t=>!t.type.equals(e[t.id],n[t.id]))}static equals(t,e={},n={}){return 0===Cc.changed(t,e,n).length}static validates(t,e={}){return t.map(t=>t.validates(e[t.id])).reduce(_a,!0)}}class Sc{constructor(t){if(t instanceof Sc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map(t=>t.clone())}}clone(){return new Sc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((e,n)=>{return Pa(e,[(r=n).id,r.value(t[r.id])]);var r},{}),this}parameter(t){return Oa(this.paramSchema,qa("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Cc.changed(n,this.paramValues,t.paramValues)}}class xc{static buildPath(t){const e=t.params();return t.$state().path.map(t=>new Sc(t).applyRawParams(e))}static buildToPath(t,e){const n=xc.buildPath(e);return e.options().inherit?xc.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter(t=>n.includes(t.state)).forEach(n=>{const r=Object.values(n.state.views||{}),s=xc.subPath(e,t=>t===n),i=r.map(e=>t.createViewConfig(s,e));n.views=i.reduce(ja,[])})}static inheritParams(t,e,n=[]){const r=t.map(t=>t.paramSchema).reduce(ja,[]).filter(t=>!t.inherit).map(t=>t.id);return e.map(function(e){let s=Object.assign({},e&&e.paramValues);const i=Sa(s,n);s=xa(s,n);const o=xa(function(t,e){const n=Oa(t,qa("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(s,o,i);return new Sc(e.state).applyRawParams(a)})}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let s=0;const i=(t,e)=>t.equals(e,xc.nonDynamicParams);for(;s<r&&t[s].state!==n&&i(t[s],e[s]);)s++;let o,a,c,l,u;o=t,a=o.slice(0,s),c=o.slice(s);const h=a.map(function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r});return l=e.slice(s),u=h.concat(l),{from:o,to:u,retained:a,retainedWithToParams:h,exiting:c,entering:l}}static matching(t,e,n){let r=!1;return Ma(t,e).reduce((t,[e,s])=>(r=r||!e.equals(s,n),r?t:t.concat(e)),[])}static equals(t,e,n){return t.length===e.length&&xc.matching(t,e,n).length===t.length}static subPath(t,e){const n=Oa(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,e)=>Object.assign(t,e.paramValues),{})}}function Ac(t,e){return new vc(t,e.at(-1).state,e.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}),{})}const Oc={LAZY:"LAZY",EAGER:"EAGER"},kc=[Oc.EAGER,Oc.LAZY],_c=[Oc.EAGER];class Tc{constructor(t){this._path=t}getTokens(){return this._path.reduce((t,e)=>t.concat(e.resolvables.map(t=>t.token)),[]).reduce(Na,[])}getResolvable(t){return Da(this._path.map(t=>t.resolvables).reduce(ja,[]).filter(e=>e.token===t))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new Tc(xc.subPath(this._path,e=>e.state===t))}addResolvables(t,e){const n=Oa(this._path,qa("state",e)),r=t.map(t=>t.token);n.resolvables=n.resolvables.filter(t=>-1===r.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",e){const n=(kc.includes(t)?t:"LAZY")===Oc.EAGER?_c:kc;fc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),s=this._path.reduce((t,s)=>{const i=s.resolvables.filter(r(n,"when")),o=i.filter(r(["NOWAIT"],"async")),a=i.filter(t=>!r(["NOWAIT"],"async")(t)),c=this.subContext(s.state),l=t=>t.get(c,e).then(e=>({token:t.token,value:e}));return o.forEach(l),t.concat(a.map(l))},[]);return Promise.all(s)}findNode(t){return Oa(this._path,e=>e.resolvables.includes(t))}getDependencies(t){const e=this.findNode(t),n=(xc.subPath(this._path,t=>t===e)||this._path).reduce((t,e)=>t.concat(e.resolvables),[]).filter(e=>e!==t);return t.deps.map(t=>{const e=n.filter(e=>e.token===t);if(e.length)return Da(e);const r=window.angular.$injector.get(t);if(y(r))throw new Error("Could not find Dependency Injection token: "+oc(t));return new gc(t,()=>r,[],r)})}}const jc=(t,e)=>t.reduce((t,n)=>t||b(e[n]),!1);function Rc(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(b(t.views)&&jc(r,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): ${r.filter(e=>b(t[e])).join(", ")}`);const s={},i=t.views||{$default:Sa(t,r)};return Object.entries(i).forEach(([r,i])=>{if(r=r||"$default",E(i)&&(i={component:i}),i=Object.assign({},i),jc(e,i)&&jc(n,i))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);i.resolveAs=i.resolveAs||"$resolve",i.$context=t,i.$name=r;const o=Lc.normalizeUIViewTarget(i.$context,i.$name);i.$ngViewName=o.ngViewName,i.$ngViewContextAnchor=o.ngViewContextAnchor,s[r]=i}),s}let Nc=0;class Lc{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=Nc++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=new Tc(this.path),e=this.path.reduce((t,e)=>Object.assign(t,e.paramValues),{}),n=[Promise.resolve(this.factory.fromConfig(this.viewDecl,e,t)),Promise.resolve(this.getController(t))];return Promise.all(n).then(t=>(fc.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const e=this.viewDecl.controllerProvider;if(!ec(e))return this.viewDecl.controller;const n=Ae(e),r=Array.isArray(e)?Da(e):e;return new gc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",s=E(n[1])?n[1]:"^";const i=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);i&&(s=i[1],r=i[2]),"!"===r.charAt(0)&&(r=r.substring(1),s="");if(/^(\^(?:\.\^)*)$/.exec(s)){const e=s.split(".").reduce(t=>t.parent,t);s=e.name}else"."===s&&(s=t.name);return{ngViewName:r,ngViewContextAnchor:s}}}class Vc{constructor(){this._ngViews=[],this._viewConfigs=[],this._listeners=[],this.viewConfigFactory(function(){let t=null;return(e,n)=>(t=t||window.angular.$injector.get("$templateFactory"),new Lc(e,n,t))}())}$get=()=>this;rootViewContext(t){return this._rootContext=t||this._rootContext}viewConfigFactory(t){this.viewConfigFactory=t}createViewConfig(t,e){const n=this.viewConfigFactory;if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);return n(t,e)}deactivateViewConfig(t){fc.traceViewServiceEvent("<- Removing",t),Ea(this._viewConfigs,t)}activateViewConfig(t){fc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map(t=>[t.fqn,t]).reduce(Pa,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Fa((t,e,n,r)=>e*(t(n)-t(r))),r=t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},s=this._ngViews.sort(n(function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)},1)).map(r=>{const s=this._viewConfigs.filter(Vc.matches(t,r));return s.length>1&&s.sort(n(e,-1)),{ngView:r,viewConfig:s[0]}}),i=s.map(t=>t.viewConfig),o=this._viewConfigs.filter(t=>!i.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));s.forEach(t=>{r(t)});const a=s.concat(o);this._listeners.forEach(t=>t(a)),fc.traceViewSync(a)}registerUIView(t){fc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter(e=>e.fqn===t.fqn).length&&fc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(fc.traceViewServiceUIViewEvent("<- Deregistering",t),Ea(e,t)):fc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(t=>t.fqn)}active(){return this._ngViews.filter(t=>t.$config).map(t=>t.name)}}Vc.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,s=r.$ngViewName.split("."),i=e.fqn.split(".");if(!ba(s,i.slice(0-s.length)))return!1;const o=1-s.length||void 0,a=i.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const Mc={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},Pc={TRANSITION:0,STATE:1},Dc=2,Uc=3,Ic=4,Hc=5,Fc=6;let qc=0;class Bc{static superseded(t,e){const n=new Bc(Dc,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return Bc.superseded(t,{redirected:!0})}static invalid(t){return new Bc(Ic,"This transition is invalid",t)}static ignored(t){return new Bc(Hc,"The transition was ignored",t)}static aborted(t){return new Bc(Uc,"The transition has been aborted",t)}static errored(t){return new Bc(Fc,"The transition errored",t)}static normalize(t){return za(Bc)(t)?t:Bc.errored(t)}constructor(t,e,n){this.$id=qc++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():oc(e);var e;const{$id:n,type:r,message:s}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${s}, detail: ${t})`}toPromise(){return Object.assign(Ha(this),{_transitionRejection:this})}}class zc{constructor(){this.eventBus=Wc}$get=()=>this.eventBus}class Kc{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const s=this.key;return this.subscriptions[s]=t,this.subscriptions[s+1]=e,this.subscriptions[s+2]=n,this.key=s+3,r.push(s),s}subscribeOnce(t,e,n=null){let r=!1;const s=this.subscribe(t,(...t)=>{r||(r=!0,this.unsubscribeByKey(s),e.apply(n,t))},this);return s}static runAsync_(t,e,n){Promise.resolve().then(()=>{t.apply(e,n)})}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,s=r.find(r=>t[r+1]===e&&t[r+2]===n);if(void 0!==s)return this.unsubscribeByKey(s)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter(e=>e!==t)),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];Kc.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Wc=new Kc(!0),Gc={current:()=>{},transition:null,traceData:{},bind:null};class Qc{static chain(t,e){return t.reduce((t,e)=>t.then(()=>e.invokeHook()),e||Promise.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(nc(r)){const s=t.slice(n+1);return Qc.chain(s,r).then(()=>{e()})}}return e()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===Mc.RUN&&!this.options.transition.isActive(),this.options=Ca(r,Gc),this.type=n.eventType}logError(t){Wc.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;fc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),s=t=>Bc.normalize(t).toPromise(),i=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&nc(t)?t.catch(s).then(o,i):o(t)}catch(t){return i(Bc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(nc(t)?t.then(t=>this.handleHookResult(t)):(fc.traceHookResult(t,this.transition),!1===t?Bc.aborted("Hook aborted transition").toPromise():t instanceof vc?Bc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?Bc.aborted().toPromise():this.isSuperseded()?Bc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Ba("traceData.hookType")(t)||"internal"} context: ${Ba("traceData.context.state.name")(t)||Ba("traceData.context")(t)||"unknown"}, ${rc(200,ic(e.callback))}`}}Qc.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Qc.LOG_REJECTED_RESULT=t=>e=>{nc(e)&&e.catch(e=>t.logError(Bc.normalize(e)))},Qc.LOG_ERROR=t=>e=>t.logError(e),Qc.REJECT_ERROR=()=>t=>Ha(t),Qc.THROW_ERROR=()=>t=>{throw t};class Jc{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new Jc(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function Zc(t,e,n){const r=E(e)?[e]:e;return!!(k(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new Jc(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class Yc{constructor(t,e,n,r,s,i={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=s,this.invokeCount=0,this._deregistered=!1,this.priority=i.priority||0,this.bind=i.bind||null,this.invokeLimit=i.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter(t=>Zc(t.state,e,n));return r.length?r:null}_getDefaultMatchCriteria(){return ka(this.tranSvc._getPathTypes(),()=>!0)}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._getPathTypes()).reduce((r,s)=>{const i=s.scope===Pc.STATE,o=t[s.name]||[],a=i?o:[Da(o)];return r[s.name]=this._matchingNodes(a,n[s.name],e),r},{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every(t=>t)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function Xc(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],s=t=>Ea(r,t);function i(t,i,o={}){const a=new Yc(e,n,i,t,s,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=i,i}class tl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._getEvents(t).map(t=>this.buildHooks(t)).reduce(ja,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const s={transition:e,current:e.options().current};return r.map(r=>r.matches(n,e)[t.criteriaMatchPath.name].map(n=>{const i=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},s),o=t.criteriaMatchPath.scope===Pc.STATE?n.state.self:null,a=new Qc(e,o,r,i);return{hook:r,node:n,transitionHook:a}})).reduce(ja,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,s=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==s?s:n.hook.priority-e.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,e,n){const r=t.hookPhase===Mc.CREATE,s=this.transition.transitionService;return(r?[s]:[this.transition,s]).map(e=>e.getHooks(t.name)).filter(Va(Array.isArray,`broken event named: ${t.name}`)).reduce(ja,[]).filter(t=>t.matches(e,n))}}class el{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Promise.withResolvers(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new tl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ka(this)},e.options()),this.$id=n._transitionCount++;const s=xc.buildToPath(t,e);this._treeChanges=xc.treeChanges(t,s,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(Mc.CREATE);Qc.invokeHooks(i,()=>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.transitionService._getEvents().filter(t=>t.hookPhase!==Mc.CREATE).forEach(t=>Xc(this,this.transitionService,t))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map(t=>t.state);xc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return Da(this._treeChanges.from).state}$to(){return Da(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof el?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Zc(this.$to(),t.to,this)||t.from&&!Zc(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}))}getResolveTokens(t="to"){return new Tc(this._treeChanges[t]).getTokens()}addResolvable(t,e){void 0===e&&(e=""),t=za(gc)(t)?t:new gc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,s=Oa(r,t=>t.state.name===n);at(!!s,`targetNode not found ${n}`);new Tc(r).addResolvables([t],s.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return ka(this._treeChanges.entering,t=>t.state).map(t=>t.self)}exiting(){return ka(this._treeChanges.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return ka(this._treeChanges.retained,t=>t.state).map(t=>t.self)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(qa("state",e)):n,n.map(t=>t.views).reduce(ja,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const s=Object.assign({},this.options(),t.options(),r);t=t.withOptions(s,!0);const i=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=i._treeChanges.entering;return xc.matching(a,o,xc.nonDynamicParams).filter(e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n}).forEach((t,e)=>{t.resolvables=o[e].resolvables}),i}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(Ma(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(Ta,!1))return;const e=t.to.map(t=>t.paramSchema),[n,r]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return Ma(e,n,r).map(([t,e,n])=>Cc.changed(t,e,n)).reduce(ja,[])}dynamic(){const t=this._changedParams();return!!t&&t.map(t=>t.dynamic).reduce(Ta,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=xc.matching(t,n);return t.length===r.filter(t=>!e||!t.state.includes[e.name]).length},r=this._treeChanges,s=t&&t._treeChanges;return s&&n(s.to,r.to)&&n(s.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=t=>this._hookBuilder.buildHooksForPhase(t),e=t(Mc.BEFORE);return Qc.invokeHooks(e,()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),fc.traceTransitionStart(this),Promise.resolve()}).then(()=>{const e=t(Mc.RUN),n=Promise.resolve();return Qc.invokeHooks(e,()=>n)}).then(()=>{fc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to());this._hookBuilder.buildHooksForPhase(Mc.SUCCESS).forEach(t=>{t.invokeHook()})},e=>{fc.traceError(e,this),this.success=!1,this._deferred.reject(e),this._error=e;t(Mc.ERROR).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){y(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return Bc.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter(t=>!t.validates(n[t.id]));if(r.length){const e=r.map(t=>`[${t.id}:${oc(n[t.id])}]`).join(", "),s=`The following parameter values are not valid for state '${t.name}': ${e}`;return Bc.invalid(s)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:xa(t,["#"]);return`Transition#${this.$id}( '${w(t)?t.name:t}'${oc(n(this._treeChanges.from.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{})))} -> ${this.valid()?"":"(X) "}'${w(e)?e.name:e}'${oc(n(this.params()))} )`}}el.diToken=el;const nl=["$transition$",el];function rl(t){const e=Object.values(t.treeChanges()).reduce(ja,[]).reduce(Na,[]),n=t=>nl.includes(t.token)?gc.fromData(t.token,null):t;e.forEach(t=>{t.resolvables=t.resolvables.map(n)})}function sl(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const il=sl("onExit"),ol=sl("onRetain"),al=sl("onEnter"),cl=1e3,ll=t=>new Tc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),ul=(t,e)=>new Tc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(()=>{}),hl=t=>new Tc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),dl=t=>{const e=t.views("entering");if(e.length)return Promise.all(e.map(t=>Promise.resolve(t.load()))).then(()=>{})},pl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,Ua(t.params(),e.params)},{priority:1e4}),t.promise.then(n,n)};function fl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const s=t.entering().filter(t=>!!t.$$state().lazyLoad).map(e=>$l(t,e,r));return Promise.all(s).then(function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),s=r&&r.rule;if(s&&"STATE"===s.type){const n=s.state,i=r.match;return e.target(n,i,t.options())}n.sync()})})}function $l(t,e,n){const r=e.$$state().lazyLoad;let s=r._promise;if(!s){const i=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Promise.reject(t));s=r._promise=Promise.resolve(r(t,e)).then(function(t){t&&Array.isArray(t.states)&&t.states.forEach(t=>n.register(t));return t}).then(i,o)}return s}class ml{constructor(t,e,n,r,s=!1,i=Qc.HANDLE_RESULT,o=Qc.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=s,this.getResultHandler=i,this.getErrorHandler=o,this.synchronous=a}}function gl(t){const e=t._ignoredReason();if(!e)return;fc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),Bc.ignored().toPromise()}function vl(t){if(!t.valid())throw new Error(t.error().toString())}let yl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class bl{static $inject=ne([ee.$router,ee.$view]);constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(rl)}$get=[ee.$state,ee.$url,ee.$stateRegistry,ee.$view,(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=fl(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},t=>{const r=t.options(),s=e;if("url"!==r.source&&r.location&&s.$current.navigable){const t={replace:"replace"===r.location};n.push(s.$current.navigable.url,s.globals.params,t)}n.update(!0)},{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function s(e){if(e)return e instanceof vc?e:E(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return k(n)?Promise.resolve(n(t)).then(s):s(n)})})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach(t=>e.deactivateViewConfig(t)),n.forEach(t=>{e.activateViewConfig(t)}),e.sync())})})(this,r),this)];create(t,e){return new el(t,e,this,this.globals)}_defineCoreEvents(){const t=Mc,e=Qc,n=this._criteriaPaths,r=!1,s=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,s),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=Pc;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,s=!1,i=Qc.HANDLE_RESULT,o=Qc.REJECT_ERROR,a=!1){const c=new ml(t,e,n,r,s,i,o,a);this._eventTypes.push(c),Xc(this,this,c)}_getEvents(t){return(b(t)?this._eventTypes.filter(e=>e.hookPhase===t):this._eventTypes.slice()).sort((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n})}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(gc.fromData(el,t),""),t.addResolvable(gc.fromData("$transition$",t),""),t.addResolvable(gc.fromData("$stateParams",t.params()),""),t.entering().forEach(e=>{t.addResolvable(gc.fromData("$state$",e),e)})}),t.ignored=(t=>t.onBefore({},gl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},vl,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},il))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},ol))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},al))(this),t.eagerResolve=(t=>t.onStart({},ll,{priority:cl}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ka(!0)},ul,{priority:cl}))(this),t.resolveAll=(t=>t.onFinish({},hl,{priority:cl}))(this),t.loadViews=(t=>t.onFinish({},dl))(this),t.updateGlobals=(t=>t.onCreate({},pl))(this),t.lazyLoad=fl(this)}}const wl=dt("$stateProvider");class El{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerProvider","$transitionsProvider"];constructor(t,e,n){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.$injector=n,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof Bc?new Error(t.toString()):new Error(t)},Wc.subscribe("$stateService:defaultErrorHandler",t=>this.defaultErrorHandler()(t))}$get=()=>this;decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw wl("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw wl("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Ac(this.stateRegistry,t),r=this.globals,s=()=>r.transitionHistory.peekTail(),i=s(),o=new Xa(this.invalidCallbacks.slice()),a=this.$injector,c=t=>{if(!(t instanceof vc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?s()!==i?Bc.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):Bc.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?Bc.invalid(e.error()).toPromise():Promise.resolve(r(e,n,a)).then(c).then(e=>e||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ea(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!b(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Ca(n,{relative:this.$current,inherit:!0},yl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(w(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${E(n.reload)?n.reload:n.reload.name}'`);return new vc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t._treeChanges.to:(()=>[new Sc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Ca(n,yl);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const s=this.target(t,e,n),i=this.getCurrentPath();if(!s.exists())return this._handleInvalidTargetState(i,s);if(!s.valid())return Ha(s.error());if(!1===n.supercede&&r())return Bc.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 o=t=>e=>{if(e instanceof Bc){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===Hc)return n&&this.urlService.update(),Promise.resolve(this.globals.current);const r=e.detail;if(e.type===Dc&&e.redirected&&r instanceof vc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===Uc)return n&&this.urlService.update(),Promise.reject(e)}return this.defaultErrorHandler()(e),Promise.reject(e)},a=this.transitionService.create(i,s),c=a.run().catch(o(a));return Ia(c),Object.assign(c,{transition:a})}is(t,e,n){n=Ca(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return;if(this.$current!==r)return!1;if(!e)return!0;const s=r.parameters({inherit:!0,matchingKeys:e});return Cc.equals(s,Cc.values(s,e),this.globals.params)}includes(t,e,n){n=Ca(n,{relative:this.$current});const r=E(t)&&Jc.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const s=this.stateRegistry.matcher.find(t,n.relative),i=this.$current.includes;if(!b(s))return;if(!b(i[s.name]))return!1;if(!e)return!0;const o=s.parameters({inherit:!0,matchingKeys:e});return Cc.equals(o,Cc.values(o,e),this.globals.params)}href(t,e,n){n=Ca(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const s=r&&n.lossy?r.navigable:r;return s&&void 0!==s.url&&null!==s.url?this.urlService.href(s.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),s=Ac(this.stateRegistry,r);return $l(e=e||this.transitionService.create(r,s),n)}}class Cl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[ee.$anchorScroll,t=>this.enabled?t:async function(t){return setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class Sl{constructor(){this._useHttp=!1}$get=[ee.$http,ee.$templateCache,ee.$templateRequest,ee.$injector,(t,e,n,r)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$injector=r,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>Promise.resolve(t).then(t=>({template:t})),s=t=>Promise.resolve(t).then(t=>({component:t}));switch((t=>b(t.template)?"template":b(t.templateUrl)?"templateUrl":b(t.templateProvider)?"templateProvider":b(t.component)?"component":b(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return s(t.component);case"componentProvider":return s(this.fromComponentProvider(t.componentProvider,n));default:return r("<ng-view></ng-view>")}}fromString(t,e){return k(t)?t(e):t}fromUrl(t,e){return k(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,e,n){const r=Ae(t),s=Array.isArray(t)?Da(t):t;return new gc("",s,r).get(n)}fromComponentProvider(t,e){const n=Ae(t),r=Array.isArray(t)?Da(t):t;return new gc("",r,n).get(e)}makeComponentTemplate(t,e,n,r){r=r||{};const s=t=>{const e=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>"-"+t.toLowerCase())}(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},i=function(t,e){const n=t.get(e+en);if(!n||!n.length)throw new Error(`Unable to find component named '${e}'`);return n.map(xl).reduce(ja,[])}(this.$injector,n).map(n=>{const{name:i,type:o}=n,a=s(i);if(t.getAttribute(a)&&!r[i])return`${a}='${t.getAttribute(a)}'`;const c=r[i]||i;if("@"===o)return`${a}='{{s$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Ae(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='$resolve.${c}'`}).join(" "),o=s(n);return`<${o} ${i}></${o}>`}}const xl=t=>w(t.bindToController)?Al(t.bindToController):Al(t.scope),Al=t=>Object.keys(t||{}).map(e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])]).filter(t=>b(t)&&Array.isArray(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function Ol(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const kl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),_l={state:{params:{}},strict:!0,caseInsensitive:!0};class Tl{static pathSegmentsAndParams(t){return Ma(t._segments,t._params.filter(t=>t.location===yc).concat(void 0)).reduce(ja,[]).filter(t=>""!==t&&b(t))}static queryParams(t){return t._params.filter(t=>t.location===bc)}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(Tl.pathSegmentsAndParams).reduce(ja,[]).reduce(ac,[]).map(t=>E(t)?kl(t):t).reduce(ja,[]))(t).map(t=>"/"===t?1:E(t)?2:t instanceof Cc?3:void 0),r=n(t),s=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,s,0);const i=Ma(r,s);let o,a;for(a=0;a<i.length;a++)if(o=i[a][0]-i[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=Ca(r,_l),this.pattern=t;const s=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,i=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{\\}]+|\\.|{(?:[^{\\}]+|\\.)*})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Tl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Oa(this._params,qa("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const s=n[2]||n[3],i=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:s,regexp:i,segment:t.substring(c,n.index),type:i?e.type(i)||(t=>wa(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(i):null}};let h,d;for(;(a=s.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,Da(this._params)]),c=s.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=i.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=s.lastIndex}this._segments.push(d),this._compiled=o.map(t=>Ol.apply(null,t)).concat(Ol(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return e.value(t)}exec(t,e={},n){const r=(s=this._cache,i="pattern",o=()=>new RegExp(["^",La(this._cache.path.map(t=>t._compiled)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[i]=s[i]||o()).exec(t);var s,i,o;if(!r)return null;const a=this.parameters(),c=a.filter(t=>!t.isSearch()),l=a.filter(t=>t.isSearch()),u=this._cache.path.map(t=>t._segments.length-1).reduce((t,e)=>t+e),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=ka(e(t).split(/-(?!\\)/),e);return ka(n,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach(t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)}),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:La(this._cache.path.map(t=>t._params))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter(e=>vt(t,e.id)).map(e=>((t,e)=>!t||t.validates(e))(e,t[e.id])).reduce(_a,!0)}format(t={}){const e=this._cache.path,n=e.map(Tl.pathSegmentsAndParams).reduce(ja,[]).map(t=>E(t)?t:s(t)),r=e.map(Tl.queryParams).reduce(ja,[]).map(s);if(n.concat(r).filter(t=>!1===t.isValid).length)return null;function s(e){const n=e.value(t[e.id]),r=e.validates(n),s=e.isDefaultValue(n),i=!!s&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:s,squash:i,encoded:o}}const i=n.reduce((t,e)=>{if(E(e))return t+e;const{squash:n,encoded:r,param:s}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:E(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+ka(r,jl).join("-"):s.raw?t+r:t+encodeURIComponent(r)},""),o=r.map(t=>{let{param:e,squash:n,encoded:r,isDefaultValue:s}=t;if(!(null==r||s&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=ka(r,encodeURIComponent)),r.map(t=>`${e.id}=${t}`)}).reduce(ja,[]).join("&");return i+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}function jl(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}Tl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Rl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;includes=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?Jc.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}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=Ca(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(e=>!t.matchingKeys||vt(t.matchingKeys,e.id))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||Oa(Object.values(this.params),qa("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Rl.isStateDeclaration=t=>k(t.$$state),Rl.isState=t=>w(t.__stateObjectCache);class Nl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Rl,s=Wa([[E,t=>s(this.urlService.compile(t))],[za(Tl),t=>this.fromUrlMatcher(t,e)],[(...t)=>n(...t)||r(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[za(RegExp),t=>this.fromRegExp(t,e)],[k,t=>new Ll(t,e)]]),i=s(t);if(!i)throw new Error("invalid 'what' in when()");return i}fromUrlMatcher(t,e){let n=e;E(e)&&(e=this.urlService.compile(e)),za(Tl)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter(t=>t.isOptional);return n.length?n.filter(t=>e[t.id]).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new Ll(function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n},n),r)}fromState(t,e,n){const r=Rl.isStateDeclaration(t)?t.$$state():t,s={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,t=>{const s=e;s.href(r,t)!==s.href(n.current,n.params)&&s.transitionTo(r,t,{inherit:!0,source:"url"})}),s)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=E(e)?t=>e.replace(/\$(\$|\d{1,2})/,(e,n)=>t["$"===n?0:Number(n)]):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Ll(e=>t.exec(e.path),n),r)}}Nl.isUrlRule=t=>t&&["type","match","handler"].every(e=>b(t[e]));class Ll{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t),this.priority=void 0}matchPriority(t){return at(y(t)),0-this.$id}}function Vl(t,e){let n=function(t,e){return(e.priority||0)-(t.priority||0)}(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?Tl.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))}function Ml(t){if(!(k(t)||E(t)||za(vc)(t)||vc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(t)?t:Ka(t)}class Pl{constructor(t){this._sortFn=Vl,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=Ml(t);this.rule(this.urlRuleFactory.create((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path),e))}otherwise(t){const e=Ml(t);this._otherwiseFn=this.urlRuleFactory.create(Ka(!0),e),this._sorted=!1}removeRule(t){Ea(this._rules,t)}rule(t){if(!Nl.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map((t,e)=>({elem:t,idx:e}));return n.sort((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r}),n.map(t=>t.elem)}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return b(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Dl{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Cc(t,e,wc,this.urlServiceConfig,n)}fromPath(t,e,n){return new Cc(t,e,yc,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Cc(t,e,bc,this.urlServiceConfig,n)}}class Ul{static $inject=ne([ee.$location,ee.$state,ee.$router,ee.$urlConfig]);$location;constructor(t,e,n,r){this.$locationProvider=t,this.stateService=e,this.stateService.urlService=this,this.urlRuleFactory=new Nl(this,this.stateService,n),this.rules=new Pl(this.urlRuleFactory),this.config=r,this.paramFactory=new Dl(this.config),this._urlListeners=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[ee.$location,ee.$rootScope,(t,e)=>(this.$location=t,e.$on("$locationChangeSuccess",t=>{this._urlListeners.forEach(e=>{e(t)})}),this.listen(!0),this)];baseHref(){return this._baseHref||(this._baseHref=te()||window.location.pathname)}url(t,e){if(b(t)){const e=decodeURIComponent(t);this.$location.setUrl(e)}return e&&this.$location.setState(e),this.$location.getUrl()}onChange(t){return this._urlListeners.push(t),()=>Ea(this._urlListeners,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},r=this.match(n);Wa([[E,t=>this.url(t)],[vc.isDef,t=>e.go(t.state,t.params,t.options)],[za(vc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange(t=>this.sync(t));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const s=n(e[t]);r=!r||s&&s.weight>r.weight?s:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const s=this.$locationProvider.html5ModeConf.enabled;if(s||(r="#"+this.$locationProvider.hashPrefixConf+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,s,n.absolute,this.baseHref()),!n.absolute||!r)return r;const i=!s&&r?"/":"";return[`${window.location.protocol}//`,window.location.host,i,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const s={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Tl(t,n.paramTypes,this.paramFactory,Object.assign(s,e))}isMatcher(t){if(!w(t))return!1;let e=!0;return Object.entries(Tl.prototype).forEach(([n,r])=>{k(r)&&(e=e&&b(t[n])&&k(t[n]))}),e}}class Il{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=E(t);let s=r?t:t.name;this.isRelative(s)&&(s=this.resolvePath(s,e));const i=this._states[s];if(i&&(r||!(r||i!==t&&i.self!==t)))return i;if(r&&n){const t=Object.values(this._states).filter(t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(s));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${s} using glob: `,t.map(t=>t.name)),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),s=r.length;let i=0,o=n;for(;i<s;i++)if(""!==r[i]||0!==i){if("^"!==r[i])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(i).join(".");return o.name+(o.name&&a?".":"")+a}}function Hl(t){return t.self.$$state=()=>t,t.self}function Fl(t){return t.parent&&t.parent.data&&(t.data=t.self.data=wa(t.parent.data,t.data)),t.data}function ql(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};Ua(r,t),t.url+="{remainder:any}",r=t}const s=n.parent,i=function(t){if(!E(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=i?t.compile(i.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return i&&i.root?o:(s&&s.navigable||e()).url.append(o)}}function Bl(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function zl(t){return t.parent?t.parent.path.concat(t):[t]}function Kl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Wl(t){const e=Wa([[t=>t.resolveFn,t=>new gc(Jl(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new gc(Jl(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new gc(Jl(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new gc(Jl(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new gc(Jl(t),t=>t,[t.useExisting],t.policy)]]),n=Wa([[t=>E(t.val),t=>new gc(t.token,t=>t,[t.val],t.policy)],[t=>Array.isArray(t.val),t=>new gc(t.token,Da(t.val),t.val.slice(0,-1),t.policy)],[t=>k(t.val),t=>new gc(t.token,t.val,(t=>{const e=window.angular.$injector;return t.$inject||e&&Ae(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Wa([[za(gc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(E(t.val)||Array.isArray(t.val)||k(t.val))),n],[Ka(!0),t=>{throw new Error("Invalid resolve value: "+oc(t))}]]),s=t.resolve,i=Array.isArray(s)?s:((t,e)=>Object.keys(t||{}).map(n=>({token:n,val:t[n],deps:void 0,policy:e[n]})))(s,t.resolvePolicy||{});return i.map(r)}class Gl{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var s;this.builders={name:[t=>t.name],self:[Hl],parent:[function(e){return Ql(e)?null:t.find(n.parentName(e))||r()}],data:[Fl],url:[ql(e,r)],navigable:[Bl(Ql)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(ka(xa(t.params||{},e.map(t=>t.id)),(e,n)=>s.fromConfig(n,null,t.self)));return e.concat(n).map(t=>[t.id,t]).reduce(Pa,{})})],views:[],path:[zl],includes:[Kl],resolvables:[Wl]}}builder(t,e){const n=this.builders,r=n[t]||[];return E(t)&&!b(e)?r.length>1?r:r[0]:E(t)&&k(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!vt(n,e))continue;const r=n[e].reduce((t,e)=>n=>e(n,t),()=>{});t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?E(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=E(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function Ql(t){return""===t.name}function Jl(t){return t.provide||t.token}class Zl{constructor(t,e,n,r,s){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=s,this.queue=[]}register(t){const e=new Rl(t);if(!E(name))throw new Error("State must have a valid name");if(vt(this.states,e.name)||this.queue.map(t=>t.name).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],s=[],i={},o=t=>vt(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach(t=>t("registered",r.map(t=>t.self)))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=s.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&s.splice(h,1),r.push(c);continue}const d=i[l];if(i[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&s.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class Yl{static $inject=ne([ee.$url,ee.$state,ee.$router,ee.$view]);constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new Il(this.states),this.builder=new Gl(this.matcher,t),this.builder.builder("views",Rc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new Zl(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r.rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=[ee.$injector,t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],s="onExit"===t?"from":"to";return r?function(t,n){const i=new Tc(t.treeChanges(s)).subContext(n.$$state()),o=Object.assign(Xl(i),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ea(this.listeners,t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map(t=>t.$$state()),n=t=>{const r=e.filter(e=>-1!==t.indexOf(e.parent));return 0===r.length?r:r.concat(n(r))},r=n([t]),s=[t].concat(r).reverse();return s.forEach(t=>{const e=this.urlServiceRules;e.rules().filter(qa("state",t)).forEach(t=>e.removeRule(t)),delete this.states[t.name]}),s}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach(t=>t("deregistered",n.map(t=>t.self))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map(t=>this.states[t].self);const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const Xl=t=>t.getTokens().filter(E).map(e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]}).reduce(Pa,{});function tu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function eu(t){const e=qt(t,"$ngView"),n=Ba("$cfg.path")(e);return n?Da(n).state.name:void 0}function nu(t,e,n){const r=n.ngState||t.current.name,s=Object.assign(function(t,e){return{relative:eu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),i=t.href(r,n.ngStateParams,s);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:s,href:i}}function ru(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),n="FORM"===t.nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!n}}function su(t,e,n,r,s){return function(i){const o=i.which||i.button,a=r();if(o>1||i.ctrlKey||i.metaKey||i.shiftKey||i.altKey||t.getAttribute("target"))i.preventDefault(),i.stopImmediatePropagation();else{const r=setTimeout(function(){if(!t.getAttribute("disabled")){e.go(a.ngState,a.ngStateParams,a.ngStateOpts).then(()=>{s.$emit("$updateBrowser")})}});i.preventDefault();let o=n.isAnchor&&!a.href?1:0;i.preventDefault=function(){o--<=0&&clearTimeout(r)}}}}function iu(t,e,n,r){let s;r&&(s=r.events),Array.isArray(s)||(s=["click"]);for(const e of s)t.addEventListener(e,n);e.$on("$destroy",function(){for(const e of s)t.removeEventListener(e,n)})}function ou(t,e,n){const r=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,i,o)=>{const a=ru(s),c=o[1]||o[0];let l=null;const u={},h=()=>nu(r,s,u),d=tu(i.ngSref);function p(){u.ngStateParams=Object.assign({},t.$eval(d.paramExpr));const e=h();l&&l(),c&&(l=c.$$addStateInfo(e.ngState,e.ngStateParams)),null!=e.href&&i.$set(a.attr,e.href)}u.ngState=d.state,u.ngStateOpts=i.ngSrefOpts?t.$eval(i.ngSrefOpts):{},d.paramExpr&&(t.$watch(d.paramExpr,function(t){u.ngStateParams=Object.assign({},t),p()},!0),u.ngStateParams=Object.assign({},t.$eval(d.paramExpr))),p(),t.$on("$destroy",e.onStatesChanged(p)),t.$on("$destroy",n.onSuccess({},p)),a.clickable&&iu(s,t,su(s,r,a,h,t),u.ngStateOpts)}}}function au(t,e,n){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(r,s,i,o){const a=ru(s),c=o[1]||o[0];let l,u=null;const h={},d=()=>nu(t,s,h),p=["ngState","ngStateParams","ngStateOpts"],f=p.reduce((t,e)=>(t[e]=()=>{},t),{});function $(){const t=d();u&&u(),c&&(u=c.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&i.$set(a.attr,t.href)}p.forEach(t=>{h[t]=i[t]?r.$eval(i[t]):null,i.$observe(t,e=>{f[t](),f[t]=r.$watch(e,e=>{h[t]=e,$()})})}),$(),r.$on("$destroy",e.onStatesChanged($)),r.$on("$destroy",n.onSuccess({},$)),a.clickable&&(l=su(s,t,a,d,r),iu(s,r,l,h.ngStateOpts))}}}function cu(t,e,n,r,s){return{restrict:"A",controller:function(i,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(i);try{l=i.$eval(a.ngSrefActive)}catch{}function h(t){t.promise.then($,()=>{})}function d(){p(l)}function p(t){w(t)&&(u=[],Object.entries(t).forEach(([t,e])=>{const n=function(t,e){const n=tu(t);f(n.state,i.$eval(n.paramExpr),e)};E(e)?n(e,t):Array.isArray(e)&&e.forEach(e=>{n(e,t)})}))}function f(e,n,r){const s={state:t.get(e,eu(o))||{name:e},params:n,activeClass:r};return u.push(s),function(){Ea(u,s)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map(t=>t.activeClass).map(e).reduce(ja,[]),r=n(u).concat(e(c)).reduce(Na,[]),s=n(u.filter(e=>t.includes(e.state.name,e.params))),i=!!u.filter(e=>t.is(e.state.name,e.params)).length?e(c):[],a=s.concat(i).reduce(Na,[]),l=r.filter(t=>!a.includes(t));a.forEach(t=>o.classList.add(t)),l.forEach(t=>o.classList.remove(t))}l=l||n(a.ngSrefActive||"",!1)(i),p(l),this.$$addStateInfo=function(t,e){if(w(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},i.$on("$destroy",function(){const t=r.onStatesChanged(d),e=s.onStart({},h),n=i.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}ou.$inject=["$state","$stateRegistry","$transitions"],au.$inject=["$state","$stateRegistry","$transitions"],cu.$inject=["$state","$router","$interpolate","$stateRegistry","$transitions"];let lu=["$view","$animate","$viewScroll","$interpolate",function(t,e,n,r){const s={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},i={count:0,terminal:!0,priority:400,transclude:"element",compile:function(o,a,c){return function(o,a,l){const u=l.onload||"",h=l.autoscroll,d={enter:function(t,n,r){mt(t)?e.enter(t,null,n).then(r):(n.after(t),r())},leave:function(t,n){mt(t)?e.leave(t).then(n):(t.parentElement.removeChild(t),n())}},p=qt(a,"$ngView")||s,f=r(l.ngView||l.name||"")(o)||"$default";let $,m,g,v;const y={id:i.count++,name:f,fqn:p.$ngView.fqn?p.$ngView.fqn+"."+f:f,config:null,configUpdated:function(t){if(t&&!(t instanceof Lc))return;if(e=v,n=t,e===n)return;var e,n;fc.traceUIViewConfigUpdated(y,t&&t.viewDecl&&t.viewDecl.$context),v=t,E(t)},get creationContext(){const t=Ba("$cfg.viewDecl.$context")(p),e=Ba("$ngView.creationContext")(p);return t||e}};fc.traceUIViewEvent("Linking",y),Pt(a,"$ngView",{$ngView:y}),E();const w=t.registerUIView(y);function E(t){const e=o.$new(),r=Promise.withResolvers(),s=Promise.withResolvers(),i={$cfg:t,$ngView:y},l={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",f),m=c(e,function(t){Pt(t,"$ngViewAnim",l),Pt(t,"$ngView",i),d.enter(t,a,function(){r.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(b(h)&&!h||o.$eval(h))&&n(t)}),function(){if($&&(fc.traceUIViewEvent("Removing (previous) el",Dt($,"$ngView")),$.remove(),$=null),g&&(fc.traceUIViewEvent("Destroying scope",y),g.$destroy(),g=null),m){const t=Dt(m,"$ngViewAnim");fc.traceUIViewEvent("Animate out",t),d.leave(m,function(){t.$$animLeave.resolve(),$=null}),$=m,m=null}}()}),g=e,g.$emit("$viewContentLoaded",t||v),g.$eval(u)}o.$on("$destroy",function(){fc.traceUIViewEvent("Destroying/Unregistering",y),w()})}}};return i}];function uu(t,e,n){const r=Ba("viewDecl.controllerAs"),s=Ba("viewDecl.resolveAs");return{priority:-400,compile:function(i){const o=i.innerHTML;return Vt(i,!0),function(i,a){const c=Dt(a,"$ngView");if(!c)return a.innerHTML=o,void t(a.contentDocument||a.childNodes)(i);const l=c.$cfg||{viewDecl:{},getTemplate:()=>{}},u=l.path&&new Tc(l.path);a.innerHTML=l.getTemplate(a,u)||o,fc.traceUIViewFill(c.$ngView,a.innerHTML);const h=t(a.contentDocument||a.childNodes),d=l.controller,p=r(l),f=s(l),$=u&&Xl(u);if(f&&(i.$target[f]=$),d){const t=e(d,Object.assign({},$,{$scope:i,$element:a}));p&&(i.$target[p]=t,i.$target[p][f]=$),Pt(a,"$ngControllerController",t),Array.from(a.children).forEach(e=>{Pt(e,"$ngControllerController",t)}),function(t,e,n,r){!k(e.$onInit)||r.viewDecl.component||r.viewDecl.componentProvider||e.$onInit();const s=Da(r.path).state.self,i={bind:e};if(k(e.uiOnParamsChanged)){const o=new Tc(r.path).getResolvable("$transition$").data,a=t=>{if(t===o||-1!==t.exiting().indexOf(s))return;const n=t.params("to"),r=t.params("from"),i=t=>t.paramSchema,a=t.treeChanges("to").map(i).reduce(ja,[]),c=t.treeChanges("from").map(i).reduce(ja,[]),l=a.filter(t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(n[t.id],r[t.id])});if(l.length){const r=l.map(t=>t.id),s=Aa(n,(t,e)=>-1!==r.indexOf(e));e.uiOnParamsChanged(s,t)}};n.$on("$destroy",t.onSuccess({},a,i))}if(k(e.uiCanExit)){const r=hu++,o="_uiCanExitIds",a=t=>!!t&&(t[o]&&!0===t[o][r]||a(t.redirectedFrom())),c=t=>{let n;const s=t[o]=t[o]||{};return a(t)||(n=Promise.resolve(e.uiCanExit(t)),n.then(t=>s[r]=!1!==t)),n},l={exiting:s.name};n.$on("$destroy",t.onBefore(l,c,i))}}(n,t,i,l)}h(i)}}}}uu.$inject=["$compile","$controller","$transitions"];let hu=0;function du(t){return{link:(e,n,r)=>{const s=r.ngChannel,i=n.childNodes.length>0,o=t.subscribe(s,t=>{i?w(t)&&e.$merge(t):n.innerHTML=t});e.$on("$destroy",()=>{t.unsubscribeByKey(o)})}}}function pu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngSetter;if(!i)return void e.warn("ng-setter: expression null");const o=t(i).assign;if(!o)return void e.warn("ng-setter: expression invalid");const a=t=>{o(n,t.trim())},c=new MutationObserver(t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&a(r.innerHTML)});c.observe(r,{childList:!0,subtree:!0,characterData:!0}),n.$on("$destroy",()=>c.disconnect()),a(r.innerHTML)}}}function fu(t,e){const n=e||"ng"+t.charAt(0).toUpperCase()+t.slice(1),r=function(t,e){return function(n,r,s,i,o,a){function c(t){let e=null;if("form"===t.tagName.toLowerCase())e=t;else if("form"in t&&t.form)e=t.form;else if(t.hasAttribute("form")){const n=t.getAttribute("form");if(n){const t=document.getElementById(n);t&&"form"===t.tagName.toLowerCase()&&(e=t)}}if(!e){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=t.name,n=t.value;return{[e]:n}}return{}}const n=new FormData(e),r={};return n.forEach((t,e)=>{r[e]=t}),r}return{restrict:"A",link(l,u,h){const d=h.trigger||function(t){const e=t.tagName.toLowerCase();if(["input","textarea","select"].includes(e))return"change";if("form"===e)return"submit";return"click"}(u),p=u.tagName.toLowerCase();b(h.latch)&&h.$observe("latch",function(t){let e=!1;return function(...n){if(e)return t.apply(this,n);e=!0}}(()=>u.dispatchEvent(new Event(d))));let f,$=!1;b(h.interval)&&(u.dispatchEvent(new Event(d)),f=setInterval(()=>u.dispatchEvent(new Event(d)),parseInt(h.interval)||1e3)),u.addEventListener(d,async d=>{if(u.disabled)return;"form"===p&&d.preventDefault();const f=h.swap||"innerHTML",m=h.target,g=m?document.querySelector(m):u;if(!g)return void s.warn(`${e}: target "${m}" not found`);const v=h[e];if(!v)return void s.warn(`${e}: no URL specified`);const y=t=>{b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass);const e=t.data;200<=t.status&&t.status<=299?(b(h.success)&&i(h.success)(l,{$res:e}),b(h.stateSuccess)&&o.go(h.stateSuccess)):400<=t.status&&t.status<=599&&(b(h.error)&&i(h.error)(l,{$res:e}),b(h.stateError)&&o.go(h.stateError)),function(t,e,n,r,s){let i=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;if(w(t))return void r.$merge(t);const e=s(t)(r);i=e instanceof DocumentFragment?Array.from(e.childNodes):[e]}switch(e){case"innerHTML":default:n.replaceChildren(...i);break;case"outerHTML":{const t=n.parentNode;if(!t)return;const e=document.createDocumentFragment();i.forEach(t=>e.appendChild(t)),t.replaceChild(e,n);break}case"textContent":n.textContent=t;break;case"beforebegin":i.forEach(t=>n.parentNode.insertBefore(t,n));break;case"afterbegin":i.slice().reverse().forEach(t=>n.insertBefore(t,n.firstChild));break;case"beforeend":i.forEach(t=>n.appendChild(t));break;case"afterend":i.slice().reverse().forEach(t=>n.parentNode.insertBefore(t,n.nextSibling));break;case"delete":n.remove();case"none":}}(e,f,g,l,r)};if(b(h.delay)&&await function(t=0){return new Promise(e=>setTimeout(e,t))}(0|parseInt(h.delay)),!$)if(b(h.throttle)&&($=!0,h.$set("throttled",!0),setTimeout(()=>{h.$set("throttled",!1),$=!1},parseInt(h.throttle))),b(h.loading)&&h.$set("loading",!0),b(h.loadingClass)&&h.$addClass(h.loadingClass),"post"===t||"put"===t){let e;const r={};h.enctype?(r.headers={"Content-Type":h.enctype},e=et(c(u))):e=c(u),n[t](v,e,r).then(y).catch(y)}else if("get"===t&&h.ngSse){const t=v,n={withCredentials:"true"===h.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{s.info(`${e}: SSE connection opened to ${t}`),b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass)},onMessage:t=>{y({status:200,data:t})},onError:t=>{s.error(`${e}: SSE error`,t);y({status:500,data:t})}},r=a(t,n);l.$on("$destroy",()=>{s.info(`${e}: closing SSE connection`),r.close()})}else n[t](v).then(y).catch(y)}),f&&l.$on("$destroy",()=>clearInterval(f)),"load"==d&&u.dispatchEvent(new Event("load"))}}}}(t,n);return r.$inject=[ee.$http,ee.$compile,ee.$log,ee.$parse,ee.$state,ee.$sse],r}du.$inject=[ee.$eventBus],pu.$inject=[ee.$parse,ee.$log];const $u=fu("get"),mu=fu("delete"),gu=fu("post"),vu=fu("put"),yu=fu("get","ngSse");function bu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngInject;if(!i)return;const o=i.replace(/(\$[\w]+|[\w]+(?:Service|Factory))/g,(r,s)=>{try{const t=e.get(s);return n.$target[s]=t,s}catch{return t.warn(`Injectable ${s} not found in $injector`),r}});n.$apply(o)}}}function wu(){return{restrict:"A",link(t,e,n){const r=n.ngEl,s=r||e.id;t.$target[s]=e;const i=e.parentNode;if(!i)return;const o=new MutationObserver(n=>{for(const r of n)Array.from(r.removedNodes).forEach(n=>{n===e&&(delete t.$target[s],o.disconnect())})});o.observe(i,{childList:!0})}}}bu.$inject=[ee.$log,ee.$injector];class Eu{constructor(){this.defaults={}}$get=()=>(t,e={})=>{const n=this.#u(t,e.params);return this.#h(n,e)};#u(t,e){if(!e)return t;const n=Object.entries(e).map(([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&");return t+(t.includes("?")?"&":"?")+n}#h(t,e){const n=new EventSource(t,{withCredentials:!!e.withCredentials});return e.onOpen&&n.addEventListener("open",t=>e.onOpen(t)),n.addEventListener("message",t=>{let n=t.data;try{n=e.transformMessage?e.transformMessage(n):JSON.parse(n)}catch{}e.onMessage?.(n,t)}),e.onError&&n.addEventListener("error",t=>e.onError(t)),n}}const Cu=dt("ng"),Su=dt("$injector"),xu={};const Au=new class{constructor(){this.$cache=bt,this.$eventBus=Wc,this.version="0.9.8",this.bootsrappedModules=[],this.getController=Ft,this.getInjector=Qt,this.getScope=Ut,this.errorHandlingConfig=ht,this.$t=ee,window.angular=this,function(t){t.module("ng",[],[ee.$provide,t=>{t.provider({$$sanitizeUri:po}),t.value("$window",window),t.value("$document",document),t.provider(ee.$compile,nn).directive({input:zn,textarea:zn,form:un,script:Qn,select:Zn,option:Yn,ngBind:Xn,ngBindHtml:er,ngBindTemplate:tr,ngClass:or,ngClassEven:cr,ngClassOdd:ar,ngCloak:lr,ngController:ur,ngDelete:mu,ngDisabled:_o,ngEl:wu,ngForm:hn,ngGet:$u,ngHide:fr,ngIf:$r,ngInclude:mr,ngInject:bu,ngInit:vr,ngMessages:go,ngMessage:wo,ngMessageExp:Eo,ngMessagesInclude:bo,ngMessageDefault:Co,ngNonBindable:yr,ngPost:gu,ngPut:vu,ngRef:wr,ngRepeat:xr,ngSetter:pu,ngShow:pr,ngStyle:Ar,ngSse:yu,ngSwitch:Or,ngSwitchWhen:kr,ngSwitchDefault:_r,ngOptions:Lr,ngTransclude:Mr,ngModel:bn,pattern:Ir,ngPattern:Ir,required:Ur,ngRequired:Ur,ngMinlength:Fr,minlength:Fr,ngMaxlength:Hr,maxlength:Hr,ngValue:Gn,ngModelOptions:mn}).directive({input:Kn,ngAnimateSwap:va,ngAnimateChildren:ya,ngChecked:Lo,ngClick:Ro,ngDblclick:Uo,ngInclude:gr,ngHide:Mo,ngShow:To,ngMessages:jo,ngModel:Do,ngReadonly:Po,ngRequired:No,ngValue:Vo,ngSref:ou,ngSrefActive:cu,ngSrefActiveEq:cu,ngState:au,ngView:lu,ngChannel:du}).directive({ngView:uu}).directive(Dr).directive(Fe),t.provider({$aria:ko,$anchorScroll:zr,$animate:Hs,$$animation:ra,$animateCss:Qo,$$animateCssDriver:fa,$$animateJs:ta,$$animateJsDriver:ga,$$animateCache:la,$$animateQueue:Xo,$$AnimateRunner:Bs,$$animateAsyncRun:Fs,$controller:Re,$exceptionHandler:Ws,$filter:si,$interpolate:Si,$http:Ii,$httpParamSerializer:Li,$location:Qi,$log:to,$parse:mi,$$rAFScheduler:sa,$rootScope:io,$router:tc,$sce:He,$sceDelegate:Ie,$sse:Eu,$templateCache:Ks,$templateRequest:ho,$urlConfig:Za,$view:Vc,$transitions:bl,$state:El,$viewScroll:Cl,$templateFactory:Sl,$url:Ul,$stateRegistry:Yl,$eventBus:zc})}]).factory("$stateParams",[ee.$router,t=>t.params]).value("$trace",fc)}(this)}bootstrap(t,e,n){if(n=n||{strictDi:!1},(t instanceof Element||t instanceof Document)&&Qt(t))throw Cu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",e=>{e.value("$rootElement",t)}]),this.bootsrappedModules.unshift("ng");const r=Se(this.bootsrappedModules,n.strictDi);return r.invoke([ee.$rootScope,ee.$rootElement,ee.$compile,ee.$injector,(t,e,n,r)=>{this.$injector=r,Pt(e,"$injector",r);if(n(e)(t),!vt(r,"strictDi"))try{r.invoke(()=>{})}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get(ee.$stateRegistry).get().map(t=>t.$$state().resolvables).reduce(ja,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=Ae(t.resolveFn,r.strictDi))}]),r}injector(t,e){return Se(t,e)}init(t){let e,n;const r={};it.forEach(r=>{const s=`${r}app`;t.hasAttribute&&t.hasAttribute(s)&&(e=t,n=t.getAttribute(s))}),it.forEach(r=>{const s=`${r}app`;let i;!e&&(i=t.querySelector(`[${s.replace(":","\\:")}]`))&&(e=i,n=i.getAttribute(s))}),e&&(r.strictDi=null!==function(t,e){let n,r;const s=it.length;for(r=0;r<s;++r)if(n=it[r]+e,E(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return K(t,"module"),e&&vt(xu,t)&&(xu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(xu,t,()=>{if(!e)throw Su("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new ie(t,e,n)})}};document.addEventListener("DOMContentLoaded",()=>Au.init(document),{once:!0}),t.angular=Au});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",s="ng-dirty",i="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=Symbol("isProxy");function p(t){return!(!t||!t[d])}const f=dt("ng");let $=0;function m(){return $+=1,$}function g(t){return E(t)?t.toLowerCase():t}function v(t){if(null==t||T(t))return!1;if(Array.isArray(t)||t instanceof Array||E(t))return!0;const e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function y(t){return void 0===t}function b(t){return void 0!==t}function w(t){return null!==t&&"object"==typeof t}function E(t){return"string"==typeof t}function C(t){return null===t}function S(t){return null==t}function x(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function O(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function k(t){return"function"==typeof t}function _(t){return"[object RegExp]"===toString.call(t)}function T(t){return t&&t.window===t}function j(t){return t&&t.$watch}function R(t){return"boolean"==typeof t}function N(t){return t&&k(t.then)}function L(t){return E(t)?t.trim():t}function V(t,e){const n=e;return t.replace(/[A-Z]/g,(t,e)=>(e?n:"")+t.toLowerCase())}function M(t,...e){return function(t,e){const n=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!w(r)&&!k(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;e++){const n=s[e],i=r[n];t[n]=i}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,n),t}(t,e)}function P(t){return Number.isNaN(t)}function D(t,e){return M(Object.create(t),e)}function U(t){return k(t.toString)&&t.toString!==toString}function I(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function H(t){return g(t.nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function q(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,s,i;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(A(t))return!!A(e)&&B(t.getTime(),e.getTime());if(_(t))return!!_(e)&&t.toString()===e.toString();if(j(t)||j(e)||T(t)||T(e)||Array.isArray(e)||A(e)||_(e))return!1;for(s in i=Object.create(null),t)if("$"!==s.charAt(0)&&!k(t[s])){if(!z(t[s],e[s]))return!1;i[s]=!0}for(s in e)if(!(s in i)&&"$"!==s.charAt(0)&&b(e[s])&&!k(e[s]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(s=0;s<r;s++)if(!z(t[s],e[s]))return!1;return!0}}return!1}function W(t,e){if("hasOwnProperty"===t)throw f("badname","hasOwnProperty is not a valid {0} name",e)}function K(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!U(t)||Array.isArray(t)||A(t)?Y(t):t.toString()}return t}function G(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Q(t,e){return Array.prototype.slice.call(t,e)}function J(t,e){const n=arguments.length>2?Q(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:T(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":j(e)&&(n="$SCOPE"),n}function Y(t,e){if(!y(t))return x(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),s=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return P(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(s-r))}function tt(t){const e={};return(t||"").split("&").forEach(t=>{let n,r,s;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),s=t.substring(n+1)),r=nt(r),b(r)&&(s=!b(s)||nt(s),vt(e,r)?Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]:e[r]=s))}),e}function et(t){const e=[];return t&&Object.entries(t).forEach(([t,n])=>{Array.isArray(n)?n.forEach(n=>{e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}):e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}),e.length?e.join("&"):""}function nt(t){try{return decodeURIComponent(t)}catch{}}function rt(t){return st(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function st(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const it=["ng-","data-ng-"];function ot(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function at(t,e="Assertion failed"){if(!t)throw new Error(e)}function ct(t,e,n){if(!t)throw f("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function lt(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),ct(k(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ut={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ht(t){var e;return w(t)&&(b(t.objectMaxDepth)&&(ut.objectMaxDepth=x(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),b(t.urlErrorParamsEnabled)&&R(t.urlErrorParamsEnabled)&&(ut.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ut}function dt(t){return function(...e){const n=e[0],r=e[1];let s=`[${t?`${t}:`:""}${n}] `;const i=Q(e,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(y(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(p(t)?t.$target:t);return JSON.stringify(n,(t,n)=>{const r=Z(t,n);if(w(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r})}return t}(t));return s+=r.replace(/\{\d+\}/g,t=>{const e=+t.slice(1,-1);return e<i.length?i[e]:t}),new Error(s)}}function pt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${m()}`,t.$$hashKey):"undefined"===n?`${n}:${m()}`:`${n}:${t}`}function ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,(t,e,n)=>n?e.toUpperCase():e)}function mt(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}function gt(t){return!t||!Object.keys(t).length}function vt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function yt(t,e){return t.slice(0,e.length)===e}const bt=new Map;let wt=1;const Et="ng",Ct="$scope",St=/-([a-z])/g,xt=/_([a-z])/g,At=["multiple","selected","checked","disabled","readonly","required","open"],Ot=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function kt(t,e){return e.toUpperCase()}function _t(t){return t.replace(St,kt)}function Tt(t){return t.replace(xt,kt)}function jt(t,e){const n=t[Et],r=n&&bt.get(n);r&&(e?delete r.data[e]:r.data={},function(t){const e=t[Et],{data:n}=bt.get(e);n&&Object.keys(n).length||(bt.delete(e),t[Et]=void 0)}(t))}function Rt(t,e=!1){let n=t[Et],r=n&&bt.get(n);return e&&!r&&(t[Et]=n=++wt,r={data:{}},bt.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Lt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.COMMENT_NODE:case void 0:return!0;default:return!1}}function Vt(t,e){t&&(Array.isArray(t)?t.forEach(t=>Vt(t,e)):(!e&&Lt(t)&&Gt([t]),Lt(t)&&Gt(t.querySelectorAll("*"))),delete t[Et],t.innerHTML="")}function Mt(t,e,n){if(Lt(t)){let r;const s=b(n),i=!s&&e&&!w(e),o=!e,a=Rt(t,!i),c=a&&a.data;if(s)c[_t(e)]=n;else{if(o)return c;if(i)return c&&c[_t(e)];for(r in e)c[_t(r)]=e[r]}}}function Pt(t,e,n){if(Lt(t)){const r=Rt(t,!0);(r&&r.data)[_t(e)]=n}else t.parentElement&&Pt(t.parentElement,e,n)}function Dt(t,e){if(Lt(t)){const n=Rt(t,!1),r=n&&n.data;if(!e)return;return r&&r[_t(e)]}}function Ut(t){return Dt(t,Ct)}function It(t,e){return Pt(t,Ct,e)}function Ht(t,e){return Pt(t,"$isolateScope",e)}function Ft(t,e){return qt(t,`$${e||"ngController"}Controller`)}function qt(t,e){let n;for(t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);t;){if(b(n=Dt(t,e)))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Bt(t,e=!1){e||Vt(t);const n=t.parentNode;n&&n.removeChild(t)}function zt(t){let e;if("string"==typeof t){e=(new DOMParser).parseFromString(t,"text/html").body.firstChild.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");e=t.cloneNode(!0)}for(;e.firstChild;)e.removeChild(e.firstChild);const n=document.createElement("div");n.appendChild(e);const r=n.innerHTML;try{if(e.nodeType===Node.TEXT_NODE)return r.toLowerCase();if(e.nodeType===Node.COMMENT_NODE)return`\x3c!--${e.data.trim()}--\x3e`;{const t=r.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,e)=>"<"+e.toLowerCase())}}catch{return r.toLowerCase()}return r.toLowerCase()}function Wt(t){let e=t[0];const n=t[t.length-1];let r;for(let s=1;e!==n&&(e=e.nextSibling);s++)(r||t[s]!==e)&&(r||(r=Array.prototype.slice.call(t,0,s)),r.push(e));return r||t}function Kt(t,e){const n=e.toLowerCase();return!(!At.includes(n)||!Ot.includes(t.nodeName))&&n}function Gt(t){for(let e=0,n=t.length;e<n;e++)jt(t[e])}function Qt(t){return qt(t,"$injector")}function Jt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}function Zt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.childNodes}function Yt(t){switch(Vt(t,!0),t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t.replaceChildren()}}function Xt(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function te(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}const ee=Object.freeze({$attrs:"$attrs",$scope:"$scope",$element:"$element",$$AnimateRunner:"$$AnimateRunner",$$animateAsyncRun:"$$animateAsyncRun",$$animateCache:"$$animateCache",$$animateCssDriver:"$$animateCssDriver",$$animateJs:"$$animateJs",$$animateJsDriver:"$$animateJsDriver",$$animateQueue:"$$animateQueue",$$animation:"$$animation",$$rAFScheduler:"$$rAFScheduler",$$taskTrackerFactory:"$$taskTrackerFactory",$anchorScroll:"$anchorScroll",$animate:"$animate",$animateCss:"$animateCss",$aria:"$aria",$compile:"$compile",$controller:"$controller",$document:"$document",$eventBus:"$eventBus",$exceptionHandler:"$exceptionHandler",$filter:"$filter",$http:"$http",$httpParamSerializer:"$httpParamSerializer",$interpolate:"$interpolate",$location:"$location",$log:"$log",$viewScroll:"$viewScroll",$parse:"$parse",$rootScope:"$rootScope",$rootElement:"$rootElement",$router:"$router",$sce:"$sce",$sceDelegate:"$sceDelegate",$state:"$state",$stateRegistry:"$stateRegistry",$sse:"$sse",$$sanitizeUri:"$$sanitizeUri",$$sanitizeUriProvider:"$$sanitizeUriProvider",$templateCache:"$templateCache",$templateFactory:"$templateFactory",$templateRequest:"$templateRequest",$transitions:"$transitions",$urlConfig:"$urlConfig",$url:"$url",$view:"$view",$window:"$window",$provide:"$provide",$injector:"$injector",$compileProvider:"$compileProvider",$animateProvider:"$animateProvider",$filterProvider:"$filterProvider",$controllerProvider:"$controllerProvider"});function ne(t){return t.map(t=>t+"Provider")}const re="$injector",se="$compileProvider";class ie{constructor(t,e,n){at(E(t),"name required"),at(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],n&&this.config(n),this.services=[]}value(t,e){return this.invokeQueue.push([ee.$provide,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([ee.$provide,"constant",[t,e]]),this}config(t){return this.configBlocks.push([re,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"component",[t,e]]),this}factory(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"factory",[t,e]]),this}service(t,e){return e&&k(e)&&(e.$$moduleName=t),this.services.push(t),this.invokeQueue.push([ee.$provide,"service",[t,e]]),this}provider(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"provider",[t,e]]),this}decorator(t,e){return e&&k(e)&&(e.$$moduleName=t),this.configBlocks.push([ee.$provide,"decorator",[t,e]]),this}directive(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"directive",[t,e]]),this}animation(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const oe=/^([^(]+?)=>/,ae=/^[^(]*\(\s*([^)]*)\)/m,ce=/^\s*(_?)(\S+?)\1\s*$/,le=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ue=dt(re),he="Provider",de=!0;class pe{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(vt(this.cache,t)){if(this.cache[t]===de)throw ue("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=de;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],s=function(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ue("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=function(t){const e=me(t).replace(le,"");return e.match(oe)||e.match(ae)}(t),s[1].split(/,/).forEach(function(t){t.replace(ce,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=s;t<n;t++){const n=s[t];if("string"!=typeof n)throw ue("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&vt(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const s=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(me(t))?(s.unshift(null),new(Function.prototype.bind.apply(t,s))):t.apply(e,s)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,s=this.injectionArgs(t,e,n);return s.unshift(null),new(Function.prototype.bind.apply(r,s))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class fe extends pe{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),ue("unpr","Unknown provider: {0}",this.path.join(" <- "))}loadNewModules(){}}class $e extends pe{constructor(t,e){super(e),this.providerInjector=t,this.modules=t.modules}factory(t){const e=this.providerInjector.get(t+he);return this.invoke(e.$get,e,void 0,t)}has(t){const e=vt(this.providerInjector.cache,t+he),n=vt(this.cache,t);return e||n}}function me(t){return Function.prototype.toString.call(t)}const ge=/^([^(]+?)=>/,ve=/^[^(]*\(\s*([^)]*)\)/m,ye=/,/,be=/^\s*(_?)(\S+?)\1\s*$/,we=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ee=dt(re),Ce="Provider";function Se(t,e=!1){at(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Oe(c),factory:Oe(l),service:Oe(function(t,e){return l(t,[re,t=>t.instantiate(e)])}),value:Oe(function(t,e){return r[t+Ce]={$get:()=>e}}),constant:Oe(function(t,e){W(t,"constant"),s.cache[t]=e,i.cache[t]=e}),decorator:function(t,e){const n=s.get(t+Ce),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},s=r.$injector=new fe(r,e),i=new $e(s,e);r.$injectorProvider={$get:()=>i};let o=i;const a=u(t);return o=i.get(re),a.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>u(t).forEach(t=>t&&o.invoke(t)),o;function c(t,e){let n;if(W(t,"service"),n=k(e)||Array.isArray(e)?s.instantiate(e):e,!n.$get)throw Ee("pget","Provider '{0}' must define $get factory method.",t);return r[t+Ce]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(y(n))throw Ee("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){ct(y(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach(t=>{if(!n.get(t)){n.set(t,!0);try{if(E(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach(t=>{const e=s.get(t[0]);e[t[1]].apply(e,t[2])})}else k(t)||Array.isArray(t)?e.push(s.invoke(t)):lt(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),Ee("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),e}}function xe(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(we,"");return e.match(ge)||e.match(ve)}function Ae(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw Ee("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=xe(t),s[1].split(ye).forEach(function(t){t.replace(be,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}function Oe(t){return function(e,n){if(!w(e))return t(e,n);Object.entries(e).forEach(([e,n])=>{t(e,n)})}}class ke{constructor(t){if(ct(t,"element"),this.initial=null,this._node=null,this._element=void 0,this._nodes=void 0,this.linked=!1,this.isList=!1,E(t)){this.initial=t;let e=Jt(t);switch(!0){case e instanceof Element:this.element=e;break;case e instanceof Node:this.node=e}}else if(t instanceof NodeList)this.initial=Array.from(t).map(t=>t.cloneNode(!0)),1==t.length?this.node=t[0]:(this._nodes=Array.from(t),this.isList=!0);else if(t instanceof Element)this.initial=t.cloneNode(!0),this.element=t;else if(t instanceof Node)this.initial=t.cloneNode(!0),this._node=t;else{if(!(t instanceof Array))throw new Error("Invalid element passed to NodeRef");1==t.length?(this.initial=t[0].cloneNode(!0),this.node=t[0]):(this.initial=Array.from(t).map(t=>t.cloneNode(!0)),this.nodes=t)}}get element(){return ct(this._element,"element"),this._element}set element(t){ct(t instanceof Element,"element"),this._element=t,this._nodes=void 0,this.isList=!1}get node(){return ct(this._node||this._element,"node"),this._node||this._element}set node(t){ct(t instanceof Node,"node"),this._node=t,t.nodeType===Node.ELEMENT_NODE?this._element=t:this._element=void 0}set nodes(t){ct(Array.isArray(t)&&t.every(t=>t instanceof Node),"nodes"),this._nodes=t,this.isList=!0}get nodes(){return ct(this._nodes,"nodes"),this._nodes}get nodelist(){if(ct(this.isList,"nodes"),0===this._nodes.length)return this._nodes;if(this._nodes[0].parentElement)return this._nodes[0].parentElement.childNodes;{const t=document.createDocumentFragment();return this._nodes.forEach(e=>{t.appendChild(e)}),t.childNodes}}get dom(){return this.isList?this.nodelist:this.node}get size(){return this.isList?this._nodes.length:1}getAny(){return this.isList?this._nodes[0]:this._element||this._node}getAll(){return this.isList?this._nodes:this._element||this._node}collection(){return this.isList?Array.from(this._nodes):[this._element||this._node]}getIndex(t){return this.isList?this._nodes[t]:this.node}setIndex(t,e){ct(null!==t,"index"),ct(e,"node"),this.isList?this._nodes[t]=e:this.node=e}clone(){const t=this.isList?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new ke(t)}isElement(){return void 0!==this._element}}const _e=dt("$controller"),Te=/^(\S+)(\s+as\s+([\w$]+))?$/;function je(t,e){if(E(t)){const e=Te.exec(t);if(e)return e[3]}}class Re{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){W(t,"controller"),w(t)?Object.entries(t).forEach(([t,e])=>{this.controllers.set(t,e)}):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,s)=>{let i,o,a,c=s&&E(s)?s:null;if(r=!0===r,E(e)){if(o=e.match(Te),!o)throw _e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw _e("ctrlreg","The controller with the name '{0}' is not registered.",a);lt(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return i=Object.create(r||null),c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name)),function(){const r=t.invoke(e,i,n,a);return r!==i&&(w(r)||k(r))&&(i=r,c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name))),i}.bind(this,{instance:i,identifier:c})}return i=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,i,a||e.name),i}];addIdentifier(t,e,n,r){if(!t||!w(t.$scope))throw dt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Ne=Le(window.location.href);function Le(t){if(!E(t))return t;const e=new URL(t,window.location.href),n=e.hostname.includes(":")?`[${e.hostname}]`:e.hostname;return{href:e.href,protocol:e.protocol,host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:n,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:`/${e.pathname}`}}function Ve(t,e){return t=Le(t),e=Le(e),t.protocol===e.protocol&&t.host===e.host}function Me(t){return t.replace(/#$/,"")}const Pe=dt("$sce"),De={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ue(t){if("self"===t)return t;if(E(t)){if(t.indexOf("***")>-1)throw Pe("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(_(t))return new RegExp(`^${t.source}$`);throw Pe("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ie{constructor(){let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map(t=>Ue(t))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map(t=>Ue(t))),e},this.$get=[ee.$injector,ee.$$sanitizeUri,ee.$exceptionHandler,function(n,r,s){let i=function(){s(Pe("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,e){return"self"===t?Ve(e,Ne)||function(t){return Ve(t,document.baseURI)}(e):!!t.exec(e.href)}function a(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const c=a(),l={};return l[De.HTML]=a(c),l[De.CSS]=a(c),l[De.MEDIA_URL]=a(c),l[De.URL]=a(l[De.MEDIA_URL]),l[De.JS]=a(c),l[De.RESOURCE_URL]=a(l[De.URL]),{trustAs:function(t,e){const n=vt(l,t)?l[t]:null;if(n){if(null===e||y(e)||""===e)return e;if("string"==typeof e)return new n(e);s(Pe("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t))}else s(Pe("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e))},getTrusted:function(n,a){if(null===a||y(a)||""===a)return a;const c=vt(l,n)?l[n]:null;return c&&a instanceof c?a.$$unwrapTrustedValue():(k(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),n===De.MEDIA_URL||n===De.URL?r(a.toString(),n===De.MEDIA_URL):n===De.RESOURCE_URL?function(n){const r=Le(n.toString());let s,i,a=!1;for(s=0,i=t.length;s<i;s++)if(o(t[s],r)){a=!0;break}if(a)for(s=0,i=e.length;s<i;s++)if(o(e[s],r)){a=!1;break}return a}(a)?a:void s(Pe("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",a.toString())):n===De.HTML?i():void s(Pe("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof c?t.$$unwrapTrustedValue():t}}}]}}function He(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=[ee.$parse,ee.$sceDelegate,(e,n)=>{const r=ot(De);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=(t,n)=>{const s=e(n);return s.literal&&s.constant?s:e(n,e=>r.getTrusted(t,e))};const s=r.parseAs,{getTrusted:i}=r,{trustAs:o}=r;return Object.entries(De).forEach(([t,e])=>{const n=g(t);r[Tt(`parse_as_${n}`)]=function(t){return s(e,t)},r[Tt(`get_trusted_${n}`)]=function(t){return i(e,t)},r[Tt(`trust_as_${n}`)]=function(t){return o(e,t)}}),r}]}const Fe={};function qe(t,e,n,r,s){return{restrict:"A",compile(n,i){const o=t(i[r]);return(t,n)=>{const r=n=>{try{o(t,{$event:n})}catch(t){e(t)}};n.addEventListener(s,r),t.$on("$destroy",()=>n.removeEventListener(s,r))}}}}function Be(t,e,n,r,s){return{restrict:"A",compile(i,o){const a=t(o[r]);return t=>{const r=n=>{try{a(t,{$event:n})}catch(t){e(t)}};n.addEventListener(s,r),t.$on("$destroy",()=>n.removeEventListener(s,r))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove offline online".split(" ").forEach(t=>{const e=$t(`ng-${t}`);Fe[e]=[ee.$parse,ee.$exceptionHandler,ee.$window,(n,r,s)=>qe(n,r,s,e,t)]});const ze=dt("$compile"),We=/^\w/,Ke=document.createElement("div");class Ge{static $nonscope=!0;constructor(t,e,n,r,s,i){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,i){const t=Object.keys(i);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=i[n]}}else this.$attr={};this.$nodeRef=s}get $$element(){return this.$nodeRef.node}$normalize=$t;$addClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.addClass(this.$$element,t):this.$nodeRef.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,t):this.$nodeRef.element.classList.remove(t))}$updateClass(t,e){const n=Qe(t,e);n&&n.length&&(mt(this.$$element)?this.$animate.addClass(this.$$element,n):this.$nodeRef.element.classList.add(...n.trim().split(/\s+/)));const r=Qe(e,t);r&&r.length&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,r):this.$nodeRef.element.classList.remove(...r.trim().split(/\s+/)))}$set(t,e,n,r){const s=Kt(this.$$element,t),i=h[t];let o=t;if(s?(this.$$element[t]=e,r=s):i&&(this[i]=e,o=i),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=V(t,"-")),"img"===this.$nodeRef.node.nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n){let t=p(this.$$element)?this.$$element.$target:this.$$element;null===e||y(e)?t.removeAttribute(r):We.test(r)?s&&!1===e?t.removeAttribute(r):s?t.toggleAttribute(r,e):t.setAttribute(r,e):this.setSpecialAttr(this.$$element,r,e)}const{$$observers:a}=this;a&&a[o]&&a[o].forEach(t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}})}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),r.$$inter||!vt(this,t)||y(this[t])||e(this[t]),function(){q(r,e)}}setSpecialAttr(t,e,n){Ke.innerHTML=`<span ${e}>`;const{attributes:r}=Ke.firstChild,s=r[0];r.removeNamedItem(s.name),s.value=n,t.attributes.setNamedItem(s)}sanitizeSrcset(t,e){let n;if(!t)return t;if(!E(t))throw ze("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let r="";const s=L(t),i=/\s/.test(s)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=s.split(i),a=Math.floor(o.length/2);for(n=0;n<a;n++){const t=2*n;r+=this.$sce.getTrustedMediaUrl(L(o[t])),r+=" "+L(o[t+1])}const c=L(o[2*n]).split(/\s/);return r+=this.$sce.getTrustedMediaUrl(L(c[0])),2===c.length&&(r+=" "+L(c[1])),r}}function Qe(t,e){const n=new Set(t.split(/\s+/)),r=new Set(e.split(/\s+/));return Array.from(n).filter(t=>!r.has(t)).join(" ")}function Je(t,e){return{restrict:"A",compile:()=>(n,r)=>{const s=r;""===e&&(e=t);const i=_t(e);n[i]||(n[i]=s.getAttribute(t));const o=new MutationObserver(e=>{const r=e[0].target.getAttribute(t);n[i]!==r&&(n[i]=r)});o.observe(s,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",()=>{o.disconnect()})}}}const Ze=dt("$compile"),Ye=["ngIf","ngRepeat"],Xe=["ngSrc","ngSrcset","src","srcset"],tn=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,en=/^(on[a-z]+|formaction)$/,nn="Directive";class rn{static $inject=[ee.$provide,ee.$$sanitizeUriProvider];constructor(t,e){const n={},r=Object.create(null);function s(t,e,n){const s=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach(([t,o])=>{if((o=o.trim())in r)return void(i[t]=r[o]);const a=o.match(s);if(!a)throw Ze("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,o,n?"controller bindings definition":"isolate scope definition");i[t]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||t},a[4]&&(r[o]=i[t])}),i}function i(t,e){const n={isolateScope:null,bindToController:null};if(w(t.scope)&&(!0===t.bindToController?(n.bindToController=s(t.scope,e,!0),n.isolateScope={}):n.isolateScope=s(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=s(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Ze("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(r,s){return ct(r,"name"),W(r,"directive"),E(r)?(!function(t){const e=t.charAt(0);if(!e||e!==g(e))throw Ze("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ze("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(r),ct(s,"directiveFactory"),vt(n,r)||(n[r]=[],t.factory(r+nn,["$injector","$exceptionHandler",function(t,e){const s=[];return n[r].forEach((n,i)=>{try{let e=t.invoke(n);const o=t=>()=>t;k(e)?e={compile:o(e)}:!e.compile&&e.link&&(e.compile=o(e.link)),e.priority=e.priority||0,e.index=i,e.name=e.name||r,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&w(e)&&Object.entries(e).forEach(([t,n])=>{const r=n.match(tn);n.substring(r[0].length)||(e[t]=r[0]+t)}),e}(e),e.restrict=function(t,e){if(t&&(!E(t)||!/[EA]/.test(t)))throw Ze("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,r),e.$$moduleName=n.$$moduleName,s.push(e)}catch(t){e(t)}}),s}])),n[r].push(s)):Object.entries(r).forEach(([t,n])=>e(t,n)),this},this.component=function(t,e){if(!E(t))return Object.entries(t).forEach(([t,e])=>this.component(t,e)),this;const n=e.controller||function(){};function r(t){function r(e){return k(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const s=e.template||e.templateUrl?e.template:"",i={controller:n,controllerAs:je(e.controller)||e.controllerAs||"$ctrl",template:r(s),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(i[t]=e)}),i}return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,k(n)&&(n[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){if(!b(t))return e.aHrefSanitizationTrustedUrlList();e.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!b(t))return e.imgSrcSanitizationTrustedUrlList();e.imgSrcSanitizationTrustedUrlList(t)};let o=!1;this.strictComponentBindingsEnabled=function(t){return b(t)?(o=t,this):o};const a=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in a&&a[r]!==n)throw Ze("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,a[r],n);return a[r]=n,this},function(){function t(t,e){e.forEach(e=>{a[e.toLowerCase()]=t})}t(De.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(De.CSS,["*|style"]),t(De.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(De.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(De.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,r,s,c,u,h,d,f){let $;function m(){for(let t=0,e=$.length;t<e;++t)try{$[t]()}catch(t){r(t)}$=void 0}const g=e.startSymbol(),v=e.endSymbol(),C="{{"===g&&"}}"===v?t=>t:t=>t.replace(/\{\{/g,g).replace(/}}/g,v),S=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return x;function x(t,e,n,r,s){let i=new ke(t),o=A(i,e,n,r,s),a=null;return function(t,e,n){if(!i)throw Ze("multilink","This element has already been linked.");ct(t,"scope"),i.getAny()&&It(i.getAny(),t);s&&s.needsNewScope&&(t=t.$parent.$new());n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;l&&l.$$boundTransclude&&(l=l.$$boundTransclude);a||(a=function(t){const e=t;if(!e)return"html";return"foreignobject"!==H(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u));if("html"!==a){const t=Jt("<div></div>");t.append(i.node);const e=G(a,t.innerHTML);r=new ke(e[0])}else r=e?i.clone():i;if(c)for(const t in c)ct(r.element,"element"),Pt(r.element,`$${t}Controller`,c[t].instance);e&&e(r.dom,t);o&&o(t,r,l);e||(i=o=null);return r.linked=!0,r.getAll()}}function A(t,e,n,s,i){const o=[];let a,c=!1;for(let l=0;l<t.size;l++){const u=new Ge(h,f,r,d),p=T(t.getIndex(l),u,0===l?n:void 0,s);let $,m,g;p.length&&($=V(p,t.getIndex(l),u,e,null,[],[],Object.assign({},i,{index:l,parentNodeRef:t,ctxNodeRef:t})));let v=$?.nodeLinkFn;if(v&&$.terminal||!(g=t.getIndex(l).childNodes)||!g.length)m=null;else{let t=v?($.transcludeOnThisElement||!$.templateOnThisElement)&&$.transclude:e;m=A(new ke(g),t)}(v||m)&&(o.push({index:l,nodeLinkFnCtx:$,childLinkFn:m}),c=!0,a=a||v),i=null}return c?function(n,r,s){ct(r,"nodeRef");let i=[];if(a){const e=r.isList?r.nodes.length:1;i=new Array(e),o.forEach(e=>{let n=e.index;0===n?i[n]=r.isList?r.nodes[n]:r.node:t.getIndex(n)&&(i[n]=r.nodes[n])})}else r.isList?r.nodes.forEach(t=>i.push(t)):i.push(r.node);o.forEach(({index:t,nodeLinkFnCtx:r,childLinkFn:o})=>{const a=i[t];let c,l;a.stable=!0,r?.nodeLinkFn?(c=r.newScope?n.$new():n,l=r.transcludeOnThisElement?_(n,r.transclude,s):!r.templateOnThisElement&&s?s:!s&&e?_(n,e):null,r?.newScope&&It(a,c),r.nodeLinkFn(o,c,a,l)):o&&o(n,new ke(a.childNodes),s)})}:null}function _(t,e,n){function r(r,s,i,o,a){r||((r=t.$transcluded(a)).$$transcluded=!0);return e(r,s,{parentBoundTranscludeFn:n,transcludeControllers:i,futureParentElement:o})}const s=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?s[r]=_(t,e.$$slots[r],n):s[r]=null;return r}function T(t,n,s,i){const o=[],{nodeType:a}=t,u=n.$attr;let h;switch(a){case Node.ELEMENT_NODE:h=t.nodeName.toLowerCase(),i!==$t(h)&&I(o,$t(h),"E",s);for(let e=0;e<t.attributes?.length;e++){let a=!1,h=!1,d=!1,p=!1,f=!1,$=t.attributes[e],m=$.name,g=$.value,v=$t(m.toLowerCase());const y=v.match(S);y&&(a="Attr"===y[1],h="Prop"===y[1],d="On"===y[1],p="Observe"===y[1],f="Window"===y[1],m=m.replace(l,"").toLowerCase().substring(4+y[1].length).replace(/_(.)/g,(t,e)=>e.toUpperCase())),h||d||f?(n[v]=g,u[v]=$.name,h?Q(t,o,v,m):d?o.push(qe(c,r,window,v,m)):o.push(Be(c,r,window,v,m))):p?o.push(Je(m,g)):(v=$t(m.toLowerCase()),u[v]=m,!a&&vt(n,v)||(n[v]=g,Kt(t,v)&&(n[v]=!0)),Z(t,o,g,v,a),v!==i&&I(o,v,"A",s))}"input"===h&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{r.expressions.forEach(n=>{t.$watch(n,()=>{const n=r(p(t)?t.$target:t);if(1===e.nodeType)e.innerHTML=n;else e.nodeValue=n})})}})}(o,t.nodeValue)}return o.sort(W),o}function N(t,e,n,r,s,i){let o;return t?x(e,n,r,s,i):function(){return o||(o=x(e,n,r,s,i),e=n=i=null),o.apply(this,arguments)}}function V(t,e,n,s,i,o,a,c){c=c||{};let l=-Number.MAX_VALUE,p=!1,{newScopeDirective:$,controllerDirectives:m,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,hasElementTranscludeDirective:S,ctxNodeRef:x,parentNodeRef:A}=c,O=!1,_=!1,R=new ke(e);const V=c.index;let D,I,B;n.$nodeRef=R;let z,W=i,Q=s,Z=!1,tt=!1,nt=function(t,s,i,c){let l,p,v,b,E,C,x,A,O,_=s;e===i?(A=n,x=n.$nodeRef):(x=new ke(i),A=new Ge(h,f,r,d,x,n)),b=s,g?v=s.$newIsolate():$&&(b=s.$parent),c&&(C=function(t,e,n,r){let s;j(t)||(r=n,n=e,e=t,t=void 0);S&&(s=E);n||(n=S?x.node.parentElement:x.node);if(!r)return c(t,e,s,n,_);{const i=c.$$slots[r];if(i)return i(t,e,s,n,_);if(y(i))throw Ze("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,zt(x.element))}},C.$$boundTransclude=c,C.isSlotFilled=function(t){return!!c.$$slots[t]}),m&&(E=function(t,e,n,r,s,i,o){const a=Object.create(null);for(const c in r){const l=r[c],h={$scope:l===o||l.$$isolateScope?s:i,$element:t.node,$attrs:e,$transclude:n};let{controller:d}=l;"@"===d&&(d=e[l.name]);const p=u(d,h,!0,l.controllerAs);a[l.name]=p,t.isElement()&&Pt(t.element,`$${l.name}Controller`,p.instance)}return a}(x,A,C,m,v,s,g)),g&&(v.$target.$$isolateBindings=g.$$isolateBindings,O=et(s,A,v,v.$$isolateBindings,g),O.removeWatches&&v.$on("$destroy",O.removeWatches));for(const t in E){const e=m[t],n=E[t],r=e.$$bindings.bindToController,s=n();n.instance=b.$new(s),Pt(x.node,`$${e.name}Controller`,n.instance),n.bindingInfo=et(b,A,n.instance,r,e)}for(m&&Object.entries(m).forEach(([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&w(n)&&M(E[t].instance,P(t,n,x.element,E))}),E&&Object.values(E).forEach(t=>{const e=t.instance;if(k(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(k(e.$onInit))try{e.$target.$onInit()}catch(t){r(t)}k(e.$onDestroy)&&b.$on("$destroy",()=>{e.$onDestroy()})}),l=0,p=o.length;l<p;l++){let t=o[l];const e=t.require&&P(t.directiveName,t.require,x.element,E);try{t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}for(g&&(g.template||null===g.templateUrl)&&(_=v),t&&i&&i.childNodes&&i.childNodes.length&&t(_,new ke(i.childNodes),c),l=a.length-1;l>=0;l--){let t=a[l];const e=t.require&&P(t.directiveName,t.require,x.node,E);try{t.isolateScope&&Ht(x.element,v),t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}E&&Object.values(E).forEach(t=>{const e=t.instance;k(e.$postLink)&&e.$postLink()})};for(let i=0,u=t.length;i<u&&(D=t[i],B=void 0,!(l>D.priority));i++){z=D.scope,z&&(D.templateUrl||(w(z)?(K("new/isolated scope",g||$,D,R),g=D):K("new/isolated scope",g,D,R)),$=$||D),I=D.name;const h=D.replace&&(D.templateUrl||D.template),d=D.transclude&&!Ye.includes(D.name);if(!Z&&(h||d)){let e;for(let n=i+1;e=t[n++];)if(e.transclude&&!Ye.includes(e.name)||e.replace&&(e.templateUrl||e.template)){tt=!0;break}Z=!0}if(!D.templateUrl&&D.controller&&(m=m||Object.create(null),K(`'${I}' controller`,m[I],D,R),m[I]=D),z=D.transclude,z)if(O=!0,Ye.includes(D.name)||(K("transclusion",b,D,R),b=D),"element"===z)S=!0,l=D.priority,B=R,R=new ke(document.createComment("")),n.$nodeRef=R,e=R.node,x.node=e,Y(new ke(B.getAny()),e,V),Q=N(tt,B.getAny(),s,l,W&&W.name,{nonTlbTranscludeDirective:b});else{const t=Object.create(null);if(w(z)){B=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(z).forEach(([r,s])=>{const i="?"===s.charAt(0);s=i?s.substring(1):s,e[s]=r,t[r]=null,n[r]=i}),R.element.childNodes.forEach(r=>{const s=e[$t(H(r))];s?(n[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):B.appendChild(r)}),Object.entries(n).forEach(([t,e])=>{if(!e)throw Ze("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const e in t)if(t[e]){const n=t[e].childNodes;t[e]=N(tt,n,s)}B=B.childNodes}else B=e.cloneNode(!0).childNodes;Yt(e),Q=N(tt,B,s,void 0,void 0,{needsNewScope:D.$$isolateScope||D.$$newScope}),Q.$$slots=t}if(D.template)if(_=!0,K("template",v,D,R),v=D,z=k(D.template)?D.template(R.node,n):D.template,z=C(z),D.replace){if(W=D,B=Nt(z)?[]:sn(G(D.templateNamespace,L(z))),E(B)&&(B=Array.from(Zt(B)).filter(t=>t.nodeType===Node.ELEMENT_NODE)),e=B[0],1!==B.length||e.nodeType!==Node.ELEMENT_NODE)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",I,"");Y(R,e),A&&A.setIndex(V,e);const r={$attr:{}},s=T(e,r),o=t.splice(i+1,t.length-(i+1));(g||$)&&U(s,g,$),t=t.concat(s).concat(o),F(n,r),u=t.length}else R.isElement()&&(R.element.innerHTML=z);if(D.templateUrl)_=!0,K("template",v,D,R),v=D,D.replace&&(W=D),nt=q(t.splice(i,t.length-i),R,n,e,O&&Q,o,a,{index:V,controllerDirectives:m,newScopeDirective:$!==D&&$,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,futureParentElement:c.futureParentElement}),u=t.length;else if(D.compile)try{const t=D.compile(R.getAny(),n,Q),e=D.$$originalDirective||D;k(t)?rt(null,J(e,t)):t&&rt(J(e,t.pre),J(e,t.post))}catch(t){r(t,zt(R.getAny()))}D.terminal&&(p=!0,l=Math.max(l,D.priority))}return c.hasElementTranscludeDirective=S,{nodeLinkFn:nt,terminal:p,transclude:Q,transcludeOnThisElement:O,templateOnThisElement:_,newScope:$&&!0===$.scope};function rt(t,e){t&&(t.require=D.require,t.directiveName=I,(g===D||D.$$isolateScope)&&(t=X(t,{isolateScope:!0})),o.push(t)),e&&(e.require=D.require,e.directiveName=I,(g===D||D.$$isolateScope)&&(e=X(e,{isolateScope:!0})),a.push(e))}}function P(t,e,n,r){let s;if(E(e)){const i=e.match(tn),o=e.substring(i[0].length),a=i[1]||i[3],c="?"===i[2];if("^^"===a?n=n.parentElement?n.parentElement:void 0:(s=r&&r[o],s=s&&s.instance),!s){const t=`$${o}Controller`;s="^^"===a&&n&&n.nodeType===Node.DOCUMENT_NODE?null:n?a?qt(n,t):Dt(n,t):void 0}if(!s&&!c)throw Ze("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(Array.isArray(e)){s=[];for(let i=0,o=e.length;i<o;i++)s[i]=P(t,e[i],n,r)}else w(e)&&(s={},Object.entries(e).forEach(([e,i])=>{s[e]=P(t,i,n,r)}));return s||null}function U(t,e,n){for(let r=0,s=t.length;r<s;r++)t[r]=D(t[r],{$$isolateScope:e,$$newScope:n})}function I(e,r,s,o){let a=!1;if(vt(n,r))for(let n,c=t.get(r+nn),l=0,u=c.length;l<u;l++)if(n=c[l],(y(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const t=n.$$bindings=i(n,n.name);w(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),a=n}return a}function F(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach(([r,s])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==s&&(s.length?s+=("style"===r?";":" ")+e[r]:s=e[r]),t.$set(r,s,!0,n[r]))}),Object.entries(e).forEach(([e,s])=>{vt(t,e)||"$"===e.charAt(0)||(t[e]=s,"class"!==e&&"style"!==e&&(r[e]=n[e]))})}function q(t,e,n,i,o,a,c,l){let u,h,d,p=[];const f=e.getAny(),$=t.shift(),m=D($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),g=k($.templateUrl)?$.templateUrl(e.element,n):$.templateUrl,{templateNamespace:v}=$;return Yt(e.element),s(g).then(r=>{let s,y,b,S;if(r=C(r),$.replace){if(b=Nt(r)?[]:E(r)?Array.from(Zt(r)).filter(t=>t.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.TEXT_NODE):sn(G(v,L(r))),s=b[0],1!==b.length||s.nodeType!==Node.ELEMENT_NODE)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,g);y={$attr:{}},Y(e,s,l.index);const i=T(s,y);w($.scope)&&U(i,!0),t=i.concat(t),F(n,y)}else s=f,e.element.innerHTML=r;for(t.unshift(m),d=V(t,s,n,o,$,a,c,{...l,ctxNodeRef:e}),u=d?.nodeLinkFn,i&&Object.entries(i).forEach(([t,n])=>{n===s&&(i[t]=e)}),h=A(new ke(e.getAny().childNodes),o);p.length;){const t=p.shift(),n=p.shift(),r=p.shift();let i=e.getAny();if(!t.$$destroyed){if(n!==f){const t=n.className;l.hasElementTranscludeDirective&&$.replace||(i=s.cloneNode(!0),n.appendChild(i));try{""!==t&&e.element.classList.forEach(t=>n.classList.add(t))}catch{}}S=d.transcludeOnThisElement?_(t,d.transclude,r):r,u(h,t,i,S)}}p=null}).catch(t=>{O(t)?r(t):r(new Error(t))}),function(t,e,n,r,s){let i=s;e.$$destroyed||(p?p.push(e,n,r):(u.transcludeOnThisElement&&(i=_(e,u.transclude,s)),u(h,e,n,r,i)))}}function W(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function K(t,e,n,r){function s(t){return t?` (module: ${t})`:""}if(e)throw Ze("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,s(e.$$moduleName),n.name,s(n.$$moduleName),t,zt(r.getAny()))}function G(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes}default:return e}}function Q(t,e,n,r){if(en.test(r))throw Ze("nodomevents","Property bindings for HTML DOM event properties are disallowed");const s=H(t),i=function(t,e){const n=e.toLowerCase();return a[`${t}|${n}`]||a[`*|${n}`]}(s,r);let o=t=>t;"srcset"!==r||"img"!==s&&"source"!==s?i&&(o=d.getTrusted.bind(d,i)):o=t=>function(t,e){if(!t)return t;if(!E(t))throw Ze("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let n="";const r=L(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,i=r.split(s),o=Math.floor(i.length/2);let a;for(a=0;a<o;a++){const t=2*a;n+=d.getTrustedMediaUrl(L(i[t])),n+=" "+L(i[t+1])}const c=L(i[2*a]).split(/\s/);return n+=d.getTrustedMediaUrl(L(c[0])),2===c.length&&(n+=" "+L(c[1])),n}(d.valueOf(t),"ng-prop-srcset"),e.push({priority:100,compile:function(t,e){const s=c(e[n]);return{pre:function(t,i){function a(){const e=s(t);i[r]=o(e)}a(),t.$watch(r,a),t.$watch(e[n],t=>{d.valueOf(t),a()})}}}})}function Z(t,n,r,s,i){const o=H(t),a=function(t,e){return"srcdoc"===e?d.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?d.RESOURCE_URL:d.MEDIA_URL:"xlinkHref"===e?"image"===t?d.MEDIA_URL:"a"===t?d.URL:d.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?d.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:d.URL}(o,s),c=!i,l=Xe.includes(s)||i;let u=e(r,c,a,l);if(u){if("multiple"===s&&"select"===o)throw Ze("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",zt(t.outerHTML));if(en.test(s))throw Ze("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),c=i[s];c!==r&&(u=c&&e(c,!0,a,l),r=c),u&&(i[s]=u(t),(o[s]||(o[s]=[])).$$inter=!0,u.expressions.forEach(e=>{(i.$$observers&&i.$$observers[s].$$scope||t).$watch(e,()=>{let e=u(t);"class"===s?i.$updateClass(e,i.$$element.classList.value):i.$set(s,e)})}),0==u.expressions.length&&i.$set(s,c))}})})}}function Y(t,e,n){const r=t.getAny().parentNode;if(r)if(b(n)){const t=r.childNodes[n];t&&r.replaceChild(e,t)}else r.insertBefore(e,r.firstChild);const s=document.createDocumentFragment();t.collection().forEach(t=>{s.appendChild(t)}),t.node=e}function X(t,e){return M(function(){return t.apply(null,arguments)},t,e)}function tt(t,e){if(o)throw Ze("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function et(t,n,r,s,i){const o=[],a={};let l;function u(e,n,s){k(r.$onChanges)&&($||(t.$postUpdate(m),$=[]),l||(l={},$.push(h)),l[e]={currentValue:n,firstChange:s})}function h(){r.$onChanges&&l&&r.$onChanges(l),l=void 0}return s&&Object.entries(s).forEach(([s,l])=>{const{attrName:d,optional:p,mode:f}=l;let $,m,g,v,C,S=!0,x=!0;switch(f){case"@":p||vt(n,d)||(tt(d,i.name),r[s]=n[d]=void 0),C=n.$observe(d,t=>{(E(t)||R(t))&&(u(s,t,x),r[s]=t,S?S=!1:(h(),x=!1))}),n.$$observers[d].$$scope=t,$=n[d],E($)?r[s]=e($)(t):R($)&&(r[s]=$),a[s]={currentValue:r[s],firstChange:!0},o.push(C);break;case"=":{if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),v=m.literal?z:B,g=m.assign||function(){throw $=r.$target[s]=m(t),Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name)},$=r.$target[s]=m(t.$target);const e=function(e){return v(e,r[s])||(v(e,$)?g(t,e=r[s]):r[s]=e),$=e,$};if(e.$stateful=!0,l.collection)C=t.$watch(n[d],e);else{if(n[d]){let r=n[d];t.$watch(r,r=>{const s=c(n[d],e);r?(m.literal?t.$target[d]=r:t[d]=r,s(t)):t[d]=t[n[d]]},!0)}C=r.$watch(d,e=>{if(e!==$||y(n[d])){if(m.inputs&&!m.literal||y(n[d])&&b(e))throw r.$target[d]=$,Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name);w(e)?Object.entries(e).forEach(([e,n])=>{t.$target[e]=n}):(g(t.$target,$=e),t.$handler.watchers.get(n[d])?.forEach(t=>{t.listenerFn(e)}))}},!0)}o.push(C);break}case"<":if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),r.$target[s]=m(t.$target),a[s]={currentValue:r.$target[s],firstChange:x},t.$target.attrs=n,n[d]&&(C=t.$watch(n[d],t=>{r.$target[s]=t,u(s,t,x),x&&(x=!1)},!0),o.push(C));break;case"&":if(p||vt(n,d)||tt(d,i.name),m=vt(n,d)?c(n[d]):()=>{},m.toString()===(()=>{}).toString()&&p)break;r.$target[s]=function(e){return m(t.$target,e)}}}),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}}function sn(t){let e=t.length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const on={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],$$renameControl:(t,e)=>{t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},an="ng-pending",cn="ng-submitted";class ln{static $nonscope=!0;static $inject=["$element","$attrs","$scope","$animate","$interpolate"];constructor(t,r,s,i,o){this.$$controls=[],this.$name=o(r.name||r.ngForm||"")(s),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=on,this.$$element=t,this.$$animate=i,this.$error={},this.$$success={},this.$pending=void 0,this.$$classCache={};const a=this.$$element.classList.contains(e);this.$$classCache[e]=a,this.$$classCache[n]=!a}$rollbackViewValue(){this.$$controls.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.$$controls.forEach(t=>{t.$commitViewValue()})}$addControl(t){W(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$target.$$parentForm=this}$getControls(){return ot(this.$$controls)}$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(e=>{this.$setValidity(e,null,t)}),this.$error&&Object.keys(this.$error).forEach(e=>{this.$setValidity(e,null,t)}),this.$$success&&Object.keys(this.$$success).forEach(e=>{this.$setValidity(e,null,t)}),q(this.$$controls,t),t.$target.$$parentForm=on}$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()}$setPristine(){this.$$animate.setClass(this.$$element,r,`${s} ${cn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach(t=>{t.$setPristine()})}$setUntouched(){this.$$controls.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==on;)t=t.$$parentForm;t.$$setSubmitted()}$$setSubmitted(){this.$$animate.addClass(this.$$element,cn),this.$submitted=!0,this.$$controls.forEach(t=>{t.$$setSubmitted&&t.$$setSubmitted()})}set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else p(t)&&(t=t.$target),t[e]=[n]}unset(t,e,n){const r=t[e];if(!r)return;-1===q(r,n)&&q(r,n.$target),0===r.length&&delete t[e]}$setValidity(t,r,s){let i,o=this;function a(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function c(t,r,s){r=r?`-${V(r,"-")}`:"",a(t,e+r,!0===s),a(t,n+r,!1===s)}y(r)?function(t,e,n,r){t[e]||(t[e]={});o.set(t[e],n,r)}(this,"$pending",t,s):function(t,e,n,r){t[e]&&o.unset(t[e],n,r);gt(t[e])&&(t[e]=void 0)}(this,"$pending",t,s),R(r)?r?(this.unset(this.$error,t,s),this.set(this.$$success,t,s)):(this.set(this.$error,t,s),this.unset(this.$$success,t,s)):(this.unset(this.$error,t,s),this.unset(this.$$success,t,s)),this.$pending?(a(this,an,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(a(this,an,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),i=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),c(this,t,i),this.$$parentForm.$setValidity(t,i,this)}}const un=function(t){return["$parse",function(n){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:ln,compile:function(s,i){s.classList.add(r,e);const o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,e,r,s){const i=s[0];if(!("action"in r)){const t=function(t){i.$commitViewValue(),i.$setSubmitted(),t.preventDefault()};e.addEventListener("submit",t),e.addEventListener("$destroy",()=>{setTimeout(()=>{e.removeEventListener("submit",t)},0,!1)})}(s[1]||i.$$parentForm).$addControl(i);let a=o?function(t){if(""===t)return n('this[""]').assign;return n(t).assign||(()=>{})}(i.$name):()=>{};o&&(a(t,i),r.$observe(o,e=>{i.$name!==e&&(t.$target[i.$name]=void 0,i.$$parentForm.$$renameControl(i,e),t.$target!==i.$$parentForm&&i.$$parentForm!==on||(t.$target[e]=i))})),e.addEventListener("$destroy",()=>{i.$target.$$parentForm.$removeControl(i),a(t,void 0),M(i,on)})}}}}}]},hn=un(),dn=un("ngForm"),pn=/(\s+|^)default(\s+|$)/;class fn{static $nonscope=!0;static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:mn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class $n{static $nonscope=!0;constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return t=Object.assign({},t),Object.entries(t).forEach(([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=L(r.replace(pn,()=>(t.updateOnDefault=!0," "))))},this),e&&(delete t["*"],vn(t,this.$$options)),vn(t,mn.$$options),new $n(t)}}const mn=new $n({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),gn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:fn}};function vn(t,e){Object.keys(e).forEach(n=>{b(t[n])||(t[n]=e[n])})}const yn=dt("ngModel");class bn{static $nonscope=!0;static $inject=["$scope",ee.$exceptionHandler,"$attrs","$element",ee.$parse,ee.$animate,ee.$interpolate];constructor(t,r,s,i,o,a,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(s.name||"",!1)(t),this.$$parentForm=on,this.$options=mn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=o(s.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$attr=s,this.$$element=i,this.$$animate=a,this.$$parse=o,this.$$exceptionHandler=r,this.$$hasNativeValidators=!1,this.$$classCache={};const l=this.$$element.classList.contains(e);var u;this.$$classCache[e]=l,this.$$classCache[n]=!l,this.$$eventRemovers=new Set,(u=this).$$scope.$watch("value",()=>{const t=u.$$ngModelGet(u.$$scope);t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t)})}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let s,i=this;function o(t,e,n){n&&!t.$$classCache[e]?(mt(t.$$element)?t.$$animate.addClass(t.$$element,e):t.$$element.classList.add(e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(mt(t.$$element)?t.$$animate.removeClass(t.$$element,e):t.$$element.classList.remove(e),t.$$classCache[e]=!1)}function a(t,r,s){r=r?`-${V(r,"-")}`:"",o(t,e+r,!0===s),o(t,n+r,!1===s)}y(r)?function(t,e,n){t[e]||(t[e]={}),i.set(t[e],n)}(this,"$pending",t):function(t,e,n){t[e]&&i.unset(t[e],n),gt(t[e])&&(t[e]=void 0)}(this,"$pending",t),R(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(o(this,an,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,an,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),s=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,s),this.$$parentForm.$setValidity(t,s,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=e=>{let n=this.$$parsedNgModel(e);return k(n)&&(n=t(e)),n},this.$$ngModelSet=(t,n)=>{k(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw yn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,zt(this.$$element))}$render(){}$isEmpty(t){return y(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?mt(this.$$element)?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element.classList.remove(c),this.$$element.classList.add(a)):mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element.classList.remove(a),this.$$element.classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$element&&(mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element.classList.remove(a),this.$$element.classList.add(r)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,mt(this.$$element)?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s)):(this.$$element.classList.remove(r),this.$$element.classList.add(s)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,mt(this.$$element)?this.$$animate.setClass(this.$$element,i,o):(this.$$element.classList.remove(o),this.$$element.classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,mt(this.$$element)?this.$$animate.setClass(this.$$element,o,i):(this.$$element.classList.remove(i),this.$$element.classList.add(o))}$rollbackViewValue(){clearTimeout(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(P(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,s=this.$options.getOption("allowInvalid"),i=this;this.$$runValidators(e,t,t=>{s||n===t||(i.$modelValue=t?e:void 0,i.$modelValue!==r&&i.$$writeModelToScope())})}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,s=this;function i(t,e){r===s.$$currentValidationRunId&&s.$setValidity(t,e)}function o(t){r===s.$$currentValidationRunId&&n(t)}!function(){const t=s.$$parserName;if(!y(s.$$parserValid))return s.$$parserValid||(Object.keys(s.$validators).forEach(t=>{i(t,null)}),Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)})),i(t,s.$$parserValid),s.$$parserValid;i(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(s.$validators).forEach(([r,s])=>{const o=Boolean(s(t,e));n=n&&o,i(r,o)}),!n)return Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)}),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(s.$asyncValidators).forEach(([s,o])=>{const a=o(t,e);if(!N(a))throw yn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);i(s,void 0),n.push(a.then(()=>{i(s,!0)},()=>{r=!1,i(s,!1)}))}),n.length?Promise.all(n).then(()=>{o(r)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!y(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),y(t)){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function s(){e.$modelValue!=n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,s()),this.$$runValidators(t,this.$$lastCommittedViewValue,n=>{r||(e.$modelValue=n?t:void 0,s())})}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.$$exceptionHandler(t)}},this)}$setViewValue(t,e){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");x(e[t])?e=e[t]:x(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:x(e["*"])&&(e=e["*"]),clearTimeout(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=setTimeout(()=>{n.$commitViewValue()},e):this.$commitViewValue()}$overrideModelOptions(t){this.$$removeAllEventListeners(),this.$options=this.$options.createChild(t),this.$$updateEvents=this.$options.$$options.updateOn,this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,()=>{}))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$removeAllEventListeners(){this.$$eventRemovers.forEach(t=>t()),this.$$eventRemovers.clear()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))}),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))})}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function wn(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:bn,priority:1,compile:t=>(t.classList.add(r,i,e),{pre:(t,e,n,r)=>{const s=r[0],i=r[1]||s.$$parentForm,o=r[2];o&&(s.$options=o.$options),s.$$initGetterSetters(),i.$addControl(s),n.$observe("name",t=>{s.$name!==t&&s.$$parentForm.$$renameControl(s,t)});let a=t.$watch(n.ngModel,t=>{s.$$setModelValue(p(t)?t.$target:t)});t.$on("$destroy",()=>{s.$$parentForm.$removeControl(s),a()})},post:(t,e,n,r)=>{const s=r[0];s.$$setUpdateOnEvents(),e.addEventListener("blur",()=>{s.$touched||s.$setTouched()}),s.$viewChangeListeners.push(()=>t.$eval(e.dataset.change))}})}}const En=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Cn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Sn=/^(?=.{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])?)*$/,xn=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,An=/^(\d{4,})-(\d{2})-(\d{2})$/,On=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,kn=/^(\d{4,})-W(\d\d)$/,_n=/^(\d{4,})-(\d\d)$/,Tn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,jn="validity",Rn=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{Rn.set(t,!0)});const Nn={text:function(t,e,n,r){Vn(t,e,n,r),Ln(r)},date:Dn("date",An,Mn(An,["yyyy","MM","dd"])),"datetime-local":Dn("datetimelocal",On,Mn(On,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Dn("time",Tn,Mn(Tn,["HH","mm","ss","sss"])),week:Dn("week",kn,function(t,e){if(A(t))return t;if(E(t)){kn.lastIndex=0;const n=kn.exec(t);if(n){const t=+n[1],r=+n[2];let s=0,i=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(s=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,s,i,o,a)}}return NaN}),month:Dn("month",_n,Mn(_n,["yyyy","MM"])),number:function(t,e,n,r,s,i){let o;if(Un(t,e,n,r,"number"),In(r),Vn(t,e,n,r),b(n.min)||n.ngMin){let e=n.min||i(n.ngMin)(t);o=Hn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||y(o)||e>=o},n.$observe("min",t=>{t!==e&&(o=Hn(t),e=t,r.$validate())})}if(b(n.max)||n.ngMax){let e=n.max||i(n.ngMax)(t),s=Hn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||y(s)||e<=s},n.$observe("max",t=>{t!==e&&(s=Hn(t),e=t,r.$validate())})}if(b(n.step)||n.ngStep){let e=n.step||i(n.ngStep)(t),s=Hn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||y(s)||Bn(e,o||0,s)},n.$observe("step",t=>{t!==e&&(s=Hn(t),e=t,r.$validate())})}},url:function(t,e,n,r){Vn(t,e,n,r),Ln(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Cn.test(n)}},email:function(t,e,n,r){Vn(t,e,n,r),Ln(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Sn.test(n)}},radio:function(t,e,n,r){const s=!n.ngTrim||"false"!==L(n.ngTrim);y(n.name)&&e.setAttribute("name",m());e.addEventListener("change",function(t){let i;e.checked&&(i=n.value,s&&(i=L(i)),r.$setViewValue(i,t&&t.type))}),r.$render=function(){let{value:t}=n;s&&(t=L(t));const i=p(r.$viewValue)?r.$viewValue.$target:r.$viewValue;e.checked=(p(t)?t.$target:t)===(p(i)?i.$target:i)},n.$observe("value",r.$render)},range:function(t,e,n,r){Un(t,e,n,r,"range"),In(r),Vn(t,e,n,r);const s=r.$$hasNativeValidators&&"range"===e.type;let i=s?0:void 0,o=s?100:void 0,a=s?1:void 0;const{validity:c}=e,l=b(n.min),u=b(n.max),h=b(n.step),d=r.$render;r.$render=s&&b(c.rangeUnderflow)&&b(c.rangeOverflow)?function(){d(),r.$setViewValue(e.value)}:d,l&&(i=Hn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(i)||e>=i},p("min",function(t){if(i=Hn(t),P(r.$modelValue))return;if(s){let t=e.value;i>t&&(t=i,e.value=t),r.$setViewValue(t)}else r.$validate()}));u&&(o=Hn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(o)||e<=o},p("max",function(t){if(o=Hn(t),P(r.$modelValue))return;if(s){let t=e.value;o<t&&(e.value=o,t=o<i?i:o),r.$setViewValue(t)}else r.$validate()}));h&&(a=Hn(n.step),r.$validators.step=s?function(){return!c.stepMismatch}:function(t,e){return r.$isEmpty(e)||y(a)||Bn(e,i||0,a)},p("step",function(t){if(a=Hn(t),P(r.$modelValue))return;s?r.$viewValue!==e.value&&r.$setViewValue(e.value):r.$validate()}));function p(t,r){e.setAttribute(t,n[t]);let s=n[t];n.$observe(t,t=>{t!==s&&(s=t,r(t))})}},checkbox:function(t,e,n,r,s,i){const o=zn(i,t,"ngTrueValue",n.ngTrueValue,!0),a=zn(i,t,"ngFalseValue",n.ngFalseValue,!1);e.addEventListener("change",function(t){r.$setViewValue(e.checked,t&&t.type)}),r.$render=function(){e.checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(t=>z(t,o)),r.$parsers.push(t=>t?o:a)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Ln(t){t.$formatters.push(e=>t.$isEmpty(e)?e:e.toString())}function Vn(t,e,n,r){const s=e.type.toLowerCase();let i,o=!1;e.addEventListener("compositionstart",()=>{o=!0}),e.addEventListener("compositionend",()=>{o=!1,a()});let a=function(t){if(i&&(clearTimeout(i),i=null),o)return;let a=e.value;const c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(a=L(a)),(r.$viewValue!==a||""===a&&r.$$hasNativeValidators)&&r.$target.$setViewValue(a,c)};["input","change","paste","drop","cut"].forEach(t=>{e.addEventListener(t,a)}),Rn[s]&&r.$$hasNativeValidators&&s===n.type&&e.addEventListener("keydown wheel mousedown",function(t){if(!i){const e=this[jn],n=e.badInput,r=e.typeMismatch;i=setTimeout(()=>{i=null,e.badInput===n&&e.typeMismatch===r||a(t)})}}),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.value!==t&&(e.value=t)}}function Mn(t,e){return function(n,r){let s,i;if(A(n))return n;if(E(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),En.test(n))return new Date(n);if(t.lastIndex=0,s=t.exec(n),s){s.shift(),i=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(s).forEach(([t,n])=>{t<e.length&&(i[e[t]]=+n)});const t=new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0);return i.yyyy<100&&t.setFullYear(i.yyyy),t}}return NaN}}const Pn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Dn(t,e,n){return function(r,s,i,o,a,c){if(Un(r,s,i,o,t),Vn(0,s,i,o),o.$parsers.push(n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:h(n,undefined):void(o.$$parserName=t)),o.$formatters.push(function(e){if(e&&!E(e))throw yn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Pn.test(e))throw yn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!kn.test(e))throw yn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!On.test(e))throw yn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e}),b(i.min)||i.ngMin){let e=i.min||c(i.ngMin)(r),s=u(p(e)?e.$target:e);o.$validators.min=function(e){return"month"===t?y(s)||n(e)>=n(s):!l(e)||y(s)||n(e)>=s},i.$observe("min",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}if(b(i.max)||i.ngMax){let e=i.max||c(i.ngMax)(r),s=u(p(e)?e.$target:e);o.$validators.max=function(e){return"month"===t?y(s)||n(e)<=n(s):!l(e)||y(s)||n(e)<=s},i.$observe("max",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}function l(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function u(t){return b(t)&&!A(t)?h(t)||void 0:t}function h(t,e){const r=o.$options.getOption("timezone");let s=n(t,e);return!Number.isNaN(s)&&r&&(s=X(s,r)),s}}}function Un(t,e,n,r,s){(r.$$hasNativeValidators=w(e.validity))&&r.$parsers.push(t=>{const n=e[jn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=s})}function In(t){t.$parsers.push(e=>t.$isEmpty(e)?null:xn.test(e)?parseFloat(e):void(t.$$parserName="number")),t.$formatters.push(e=>{if(!t.$isEmpty(e)){if(!x(e))throw yn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Hn(t){return b(t)&&!x(t)&&(t=parseFloat(t)),P(t)?void 0:t}function Fn(t){return(0|t)===t}function qn(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function Bn(t,e,n){let r=Number(t);const s=!Fn(r),i=!Fn(e),o=!Fn(n);if(s||i||o){const t=s?qn(r):0,a=i?qn(e):0,c=o?qn(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,s&&(r=Math.round(r)),i&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n===0}function zn(t,e,n,r,s){let i;if(b(r)){if(i=t(r),!i.constant)throw yn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return i(e)}return s}function Wn(t,e){return{restrict:"E",require:["?ngModel"],link:{pre(n,r,s,i){i[0]&&(Nn[g(s.type)]||Nn.text)(n,r,s,i[0],t,e)}}}}function Kn(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===g(n.type))return{pre(e,n){const r=n;r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}Wn.$inject=["$filter","$parse"];const Gn=/^(true|false|\d+)$/;function Qn(){function t(t,e,n){t.value=b(n)?p(n)?n.$target:n:null,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>Gn.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,e=>{t(n,r,e)})}}}function Jn(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e.innerText)}}}Jn.$inject=["$templateCache"];class Zn{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap","$scope","$element"];static $inject=["$element","$scope"];constructor(t,e){this.$element=t,this.$scope=e,this.selectValueMap={},this.ngModelCtrl={},this.multiple=!1,this.unknownOption=document.createElement("option"),this.hasEmptyOption=!1,this.emptyOption=void 0,this.optionsMap=new Map,this.renderScheduled=!1,this.updateScheduled=!1,e.$on("$destroy",()=>{this.renderUnknownOption=()=>{}})}renderUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.$element.prepend(this.unknownOption),this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}updateUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}generateUnknownOptionValue(t){return y(t)?"? undefined:undefined ?":`? ${pt(t)} ?`}removeUnknownOption(){this.unknownOption.parentElement&&this.unknownOption.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,e=t in this.selectValueMap?this.selectValueMap[t]:t;return this.hasOption(e)?e:null}writeValue(t){const e=this.$element.options[this.$element.selectedIndex];if(e&&(e.selected=!1),this.hasOption(t)){this.removeUnknownOption();const e=pt(t);this.$element.value=e in this.selectValueMap?e:t;const n=this.$element.options[this.$element.selectedIndex];n?n.selected=!0:this.selectUnknownOrEmptyOption(t)}else this.selectUnknownOrEmptyOption(t)}addOption(t,e){if(e.nodeType===Node.COMMENT_NODE)return;W(t,'"option value"'),""===t&&(this.hasEmptyOption=!0,this.emptyOption=e);const n=this.optionsMap.get(t)||0;this.optionsMap.set(t,n+1),this.scheduleRender()}removeOption(t){const e=this.optionsMap.get(t);e&&(1===e?(this.optionsMap.delete(t),""===t&&(this.hasEmptyOption=!1,this.emptyOption=void 0)):this.optionsMap.set(t,e-1))}hasOption(t){return!!this.optionsMap.get(t)}$hasEmptyOption(){return this.hasEmptyOption}$isUnknownOptionSelected(){return this.$element.options[0]===this.unknownOption}$isEmptyOptionSelected(){return this.hasEmptyOption&&this.$element.options[this.$element.selectedIndex]===this.emptyOption}selectUnknownOrEmptyOption(t){null==t&&this.emptyOption?(this.removeUnknownOption(),this.selectEmptyOption()):this.unknownOption.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,e,n,r,s){let i,o;if(n.$attr.ngValue)n.$observe("value",t=>{let n;const r=e.selected;b(o)&&(this.removeOption(i),delete this.selectValueMap[o],n=!0),o=pt(t),i=t,this.selectValueMap[o]=t,this.addOption(t,e),e.setAttribute("value",o),n&&r&&this.scheduleViewValueUpdate()});else if(r)n.$observe("value",t=>{let n;this.readValue();const r=e.selected;b(i)&&(this.removeOption(i),n=!0),i=t,this.addOption(t,e),n&&r&&this.scheduleViewValueUpdate()});else if(s){let r;t.value=s(t),n.value||(n.$set("value",t.value),this.addOption(t.value,e)),t.$watch("value",()=>{let i=s(t);n.value||n.$set("value",i);const o=e.selected;r!==i&&(this.removeOption(r),r=i),this.addOption(i,e),r&&o&&this.scheduleViewValueUpdate()})}else this.addOption(n.value,e);n.$observe("disabled",t=>{("true"===t||t&&e.selected)&&(this.multiple?this.scheduleViewValueUpdate(!0):(this.ngModelCtrl.$setViewValue(null),this.ngModelCtrl.$render()))}),e.addEventListener("$destroy",()=>{const t=this.readValue(),e=n.value;this.removeOption(e),this.scheduleRender(),(this.multiple&&t&&-1!==t.indexOf(e)||t===e)&&this.scheduleViewValueUpdate(!0)})}}function Yn(){return{restrict:"E",require:["select","?ngModel"],controller:Zn,priority:1,link:{pre:function(t,e,n,r){const s=r[0],i=r[1];if(!i)return void(s.registerOption=()=>{});if(s.ngModelCtrl=i,e.addEventListener("change",()=>{s.removeUnknownOption();const t=s.readValue();i.$setViewValue(t)}),n.multiple){let t;s.multiple=!0,s.readValue=function(){const t=[],n=e.getElementsByTagName("option");return Array.from(n).forEach(e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in s.selectValueMap?s.selectValueMap[n]:n)}}),t},s.writeValue=function(t){const n=e.getElementsByTagName("option");Array.from(n).forEach(e=>{const n=!!t&&(F(t,e.value)||F(t,s.selectValueMap[e.value]));n!==e.selected&&(e.selected=n)})};let n=NaN;n!==i.$viewValue||z(t,i.$viewValue)||(t=ot(i.$viewValue),i.$render()),n=i.$viewValue,i.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const s=r[1];if(!s)return;const i=r[0];s.$render=function(){i.writeValue(s.$viewValue)}}}}}function Xn(t){return{restrict:"E",priority:100,compile(e,n){let r,s;return b(n.ngValue)||(b(n.value)?r=t(n.value,!0):(s=t(e.textContent,!0),s||n.$set("value",e.textContent))),function(t,e,n){const i="$selectController",o=e.parentElement,a=Dt(o,i)||Dt(o.parentElement,i);a&&a.registerOption(t,e,n,r,s)}}}}function tr(){return{link(t,e,n){t.$watch(n.ngBind,t=>{e.textContent=K(p(t)?t.$target:t)},b(n.lazy))}}}function er(){return{link(t,e,n){n.$observe("ngBindTemplate",t=>{e.textContent=y(t)?"":t})}}}function nr(t){return{restrict:"A",compile:(e,n)=>(t(n.ngBindHtml),(t,e)=>{t.$watch(n.ngBindHtml,t=>{(y(t)||C(t))&&(t=""),e.innerHTML=t})})}}function rr(t,e){return t=`ngClass${t}`,function(){return{link(n,r,s){let i,o=Dt(r,"$classCounts"),a=!0;function c(t,e){const n=[];return t&&t.forEach(t=>{(e>0||o[t])&&(o[t]=(o[t]||0)+e,o[t]===+(e>0)&&n.push(t))}),n.join(" ")}o||(o=Object.create(null),Pt(r,"$classCounts",o)),"ngClass"!==t&&n.$watch("$index",()=>{!function(t){t===e?(o=c(ir(o=i),1),mt(r)?s.$addClass(o):n.$postUpdate(()=>{""!==o&&r.classList.add(...o.trim().split(" "))})):function(t){t=c(ir(t),-1),mt(r)?s.$removeClass(t):n.$postUpdate(()=>{""!==t&&r.classList.remove(...t.trim().split(" "))})}(i);var o;a=t}(1&n.$index)}),n.$watch(s[t],t=>{!function(t){a===e&&function(t,e){const n=ir(t),i=ir(e),o=sr(n,i),a=sr(i,n),l=c(o,-1),u=c(a,1);mt(r)?(s.$addClass(u),s.$removeClass(l)):(""!==u&&r.classList.add(...u.trim().split(" ")),""!==l&&r.classList.remove(...l.trim().split(" ")))}(i,t);i=t}(or(t))})}}}}function sr(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const s=t[r];for(let t=0;t<e.length;t++)if(s===e[t])continue t;n.push(s)}return n}function ir(t){return t&&t.split(" ")}function or(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(or).join(" "):w(t)?e=Object.keys(t).filter(e=>t[e]).join(" "):E(t)||(e=`${t}`),e}Xn.$inject=["$interpolate"],nr.$inject=[ee.$parse];const ar=rr("",!0),cr=rr("Odd",0),lr=rr("Even",1);function ur(){return{compile(t,e){e.$set("ngCloak",void 0),t.classList.remove("ng-cloak")}}}function hr(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const dr="ng-hide",pr="ng-hide-animate";function fr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,e=>{mt(n)?t[e?"removeClass":"addClass"](n,dr,{tempClasses:pr}):e?n.classList.remove(dr):n.classList.add(dr)})}}}function $r(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,e=>{mt(n)?t[e?"addClass":"removeClass"](n,dr,{tempClasses:pr}):e?n.classList.add(dr):n.classList.remove(dr)})}}}function mr(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,s,i){let o,a,c;e.$watch(r.ngIf,e=>{e?a||i((e,r)=>{a=r,o=e,mt(e)?t.enter(e,n.parentElement,n):n.after(e)}):(c&&(Bt(c),c=null),a&&(a.$destroy(),a=null),o&&(c=o,mt(c)?t.leave(c).done(t=>{!1!==t&&(c=null)}):n.nextElementSibling.remove(),o=null))})}}}function gr(t,e,n,r){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(s,i){const o=i.ngInclude||i.src,a=i.onload||"",c=i.autoscroll;return(s,i,l,u,h)=>{function d(){!b(c)||c&&!s.$eval(c)||e()}let p,f,$,m=0;const g=()=>{f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),$&&(mt($)?n.leave($).done(t=>{!1!==t&&(f=null)}):$.remove(),f=$,$=null)};s.$watch(o,async e=>{const o=function(t){!1!==t&&d()},c=++m;e?(await t(e,!0).then(t=>{if(s.$$destroyed)return;if(c!==m)return;const r=s.$new();u.template=t;const l=h(r,t=>{g(),mt(t)?n.enter(t,null,i).done(o):(i.after(t),d())});p=r,$=l,p.$emit("$includeContentLoaded",e),s.$eval(a)},t=>{s.$$destroyed||(c===m&&(g(),s.$emit("$includeContentError",e)),r(new Error(t)))}),s.$emit("$includeContentRequested",e)):(g(),u.template=null)})}}}}function vr(t){return{priority:-400,require:"ngInclude",link(e,n,r,s){n.innerHTML=s.template,t(n.childNodes)(e)}}}function yr(){return{priority:450,compile:()=>({pre(t,e,n){const r=Ft(e);r?r.$eval(n.ngInit):t.$eval(n.ngInit)}})}}function br(){return{terminal:!0,priority:1e3}}fr.$inject=["$animate"],$r.$inject=["$animate"],mr.$inject=["$animate"],gr.$inject=[ee.$templateRequest,ee.$anchorScroll,ee.$animate,ee.$exceptionHandler],vr.$inject=[ee.$compile];const wr=dt("ngRef");function Er(t){return{priority:-1,restrict:"A",compile(e,n){const r=$t(H(e)),s=t(n.ngRef),i=s.assign||function(){throw wr("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return(t,e,o)=>{let a;if(vt(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=Dt(e,`$${o.ngRefRead}Controller`),!a)throw wr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=Dt(e,`$${r}Controller`);a=a||e,i(t,a),e.addEventListener("$destroy",()=>{s(t)===a&&i(t,null)})}}}}Er.$inject=["$parse"];const Cr="$$NG_REMOVED",Sr=dt("ngRepeat"),xr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function Ar(t){function e(t,e,n,r,s,i,o){t[n]!==r&&(t[n]=r),s&&(t[s]=i),r&&(t.$target.$$hashKey=r.$$hashKey),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))}function n(t){return t.clone}function r(t){return t.clone}function s(t,e,n){return pt(n)}function i(t,e){return e}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,a)=>{const c=a.ngRepeat,l=!!a.animate;let u=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw Sr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);const h=u[1],d=u[2],p=u[3];if(u=h.match(xr),!u)throw Sr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);const f=u[3]||u[1],$=u[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw Sr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",p);const m=function(t){let e=!1;return function(...n){if(!e)return e=!0,t.apply(this,n)}}(()=>{b(a.lazy)&&b(a.swap)&&document.querySelectorAll(a.swap).forEach(t=>Bt(t))});return function(o,a,u,h,g){let y=Object.create(null);o.$watch(d,u=>{m();let h,d,b,w=a;const E=Object.create(null);let C,S,x,A,O,k,_,T,j;if(p&&(o[p]=u),v(u))k=u,O=s;else{O=i,k=[];for(const t in u)vt(u,t)&&"$"!==t.charAt(0)&&k.push(t)}for(C=k.length,T=new Array(C),h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],A=O(o,S,x),y[A])_=y[A],delete y[A],E[A]=_,T[h]=_;else{if(E[A])throw Object.values(T).forEach(t=>{t&&t.scope&&(y[t.id]=t)}),Sr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",c,A,x);T[h]={id:A,scope:void 0,clone:void 0},E[A]=!0}for(let e in y){if(_=y[e],j=_.clone,l?t.leave(j):j.remove(),j.parentNode)for(h=0,d=j.length;h<d;h++)j[h][Cr]=!0;_.scope.$destroy()}for(h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],_=T[h],_.scope){b=w;do{b=b.nextSibling}while(b&&b[Cr]);n(_)!==b&&t.move(Wt(_.clone),null,w),w=r(_),e(_.scope,h,f,x,$,S,C)}else g((n,r)=>{_.scope=r;const s=n;l?t.enter(n,null,w):w.after(n),w=s,_.clone=n,E[_.id]=_,e(_.scope,h,f,x,$,S,C)});y=E},b(u.lazy))}}}}function Or(){return{restrict:"A",link(t,e,n){let r;t.$watch(n.ngStyle,t=>{if(r){const t=Object.keys(r);for(let n=0,r=t.length;n<r;n++)e.style.removeProperty(t[n])}if(t){r={...t.$target};const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,s]=n[t];e.style.setProperty(r,s)}}})}}}function kr(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,s){const i=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(i,e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Wt(a[n].clone);if(l[n].$destroy(),mt(e)){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=s.cases[`!${e}`]||s.cases["?"])&&Object.values(o).forEach(e=>{e.transclude((n,r)=>{l.push(r);const s=e.element,i={clone:n,comment:document.createComment("")};a.push(i),mt(n)?t.enter(n,s.parentElement,s):Xt(n,s.parentElement,s)})})})}}}function _r(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){const i=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((t,e,n)=>n[e-1]!==t);i.forEach(t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:s,element:e})})}}}function Tr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:s,element:e})}}}Ar.$inject=[ee.$animate],kr.$inject=["$animate"];const jr=dt("ngOptions"),Rr=document.createElement("option"),Nr=document.createElement("optgroup"),Lr=/^\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 Vr(t,e){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(n,r,s,i){const o=i[0],a=i[1],c=s.multiple;for(let t=0,e=r.childNodes,n=e.length;t<n;t++)if(""===e[t].value){o.hasEmptyOption=!0,o.emptyOption=e[t];break}Yt(r);const l=!!o.emptyOption;let u;Rr.cloneNode(!1).nodeValue="?";const h=function(t,n,r){const s=t.match(Lr);if(!s)throw jr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,zt(n));const i=s[5]||s[7],o=s[6],a=/ as /.test(s[0])&&s[1],c=s[9],l=e(s[2]?s[1]:i),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return pt(t)},p=function(t,e){return d(t,b(t,e))},f=e(s[2]||s[1]),$=e(s[3]||""),m=e(s[4]||""),g=e(s[8]),y={};let b=o?function(t,e){return y[o]=e,y[i]=t,y}:function(t){return y[i]=t,y};class w{constructor(t,e,n,r,s){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=s}}function E(t){let e;if(!o&&v(t))e=t;else{e=[];for(const n in t)vt(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(g,t=>{const e=[],n=E(t=t||[]),i=n.length;for(let o=0;o<i;o++){const i=t===n?o:n[o],a=t[i],c=b(a,i),l=d(a,c);if(e.push(l),s[2]||s[1]){const t=f(r,c);e.push(t)}if(s[4]){const t=m(r,c);e.push(t)}}return e}),getOptions(){const t=[],e={},n=g(r)||[],s=E(n),i=s.length;for(let o=0;o<i;o++){const i=n===s?o:s[o],a=n[i],c=b(a,i),l=u(r,c),h=d(l,c),p=f(r,c),g=$(r,c),v=m(r,c),y=new w(h,l,p,g,v);t.push(y),e[h]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(s.ngOptions,r,n),d=document.createDocumentFragment();if(o.generateUnknownOptionValue=()=>"?",c?(o.writeValue=function(t){if(!u)return;const e=t&&t.map(f)||[];u.items.forEach(t=>{t.element.selected&&!F(e,t)&&(t.element.selected=!1)})},o.readValue=function(){const t=r.value||[],e=[];return t.forEach(t=>{const n=u.selectValueMap[t];n&&!n.disabled&&e.push(u.getViewValueFromOption(n))}),e}):(o.writeValue=function(t){if(!u)return;const e=r.options[r.selectedIndex],n=u.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(r.value!==n.selectValue&&(o.removeUnknownOption(),r.value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(t)},o.readValue=function(){const t=u.selectValueMap[r.value];return t&&!t.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),u.getViewValueFromOption(t)):null},h.trackBy&&n.$watch(h.getTrackByValue(a.$viewValue),()=>{a.$render()})),l){const e=t(o.emptyOption);ct(e,"LinkFn required"),r.prepend(o.emptyOption),e(n),o.emptyOption.nodeType===Node.COMMENT_NODE&&(o.hasEmptyOption=!1,o.registerOption=function(t,e){""===e.value&&(o.hasEmptyOption=!0,o.emptyOption=e,a.$render(),e.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&a.$render()}))})}function p(t,e){const n=Rr.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function f(t){const e=u.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}n.$watch(h.getWatchables.decoratedNode.body[0].expression.name,function(){const t=u&&o.readValue();if(u)for(let t=u.items.length-1;t>=0;t--){const e=u.items[t];b(e.group)?Bt(e.element.parentNode):Bt(e.element)}u=h.getOptions();const e={};if(u.items.forEach(t=>{let n;b(t.group)?(n=e[t.group],n||(n=Nr.cloneNode(!1),d.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),p(t,n)):p(t,d)}),r.appendChild(d),a.$render(),!a.$isEmpty(t)){const e=o.readValue();(h.trackBy||c?z(t,e):t===e)||(a.$setViewValue(e),a.$render())}})}}}}Vr.$inject=["$compile","$parse"];const Mr=dt("ngTransclude");function Pr(t){return{compile:function(e){const n=t(e.childNodes);return Yt(e),function(t,e,r,s,i){if(!i)throw Mr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",zt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,t=>{e.append(t)})}i(function(t,n){!function(t){if(t instanceof Array)return!1;if(t.nodeType!==Node.TEXT_NODE||t.nodeValue.trim())return!0}(t)?(a(),n.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{e.append(t)}):e.append(t)},null,o),o&&!i.isSlotFilled(o)&&a()}}}}Pr.$inject=["$compile"];const Dr=/^\/(.+)\/([a-z]*)$/,Ur={};At.forEach(t=>{if("multiple"===t)return;function e(e,r,s){e.$watch(s[n],e=>{s.$set(t,!!e)})}let n=$t(`ng-${t}`),r=e;"checked"===t&&(r=function(t,r,s){s.ngModel!==s[n]&&e(t,0,s)}),Ur[n]=function(){return{restrict:"A",priority:100,link:r}}}),Object.entries(h).forEach(([t])=>{Ur[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Dr);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]).toString())}e.$watch(r[t],e=>{r.$set(t,e)})}}}}),["src","srcset","href"].forEach(t=>{const e=$t(`ng-${t}`);Ur[e]=[ee.$sce,function(n){return{priority:99,link(r,s,i){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(s.href)&&(o="xlinkHref",i.$attr[o]="href"),i.$set(e,n.getTrustedMediaUrl(i[e])),i.$observe(e,e=>{e?i.$set(o,e):"href"===t&&i.$set(o,null)})}}}]});const Ir=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=vt(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),s.$validators.required=(t,e)=>!i||!s.$isEmpty(e),r.$observe("required",t=>{i!==t&&(i=t,s.$validate())})}})],Hr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{let r,s;return n.ngPattern&&(r=n.ngPattern,s="/"===n.ngPattern.charAt(0)&&Dr.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,i){if(!i)return;let o=n.pattern;n.ngPattern?o=s(t):r=n.pattern;let a=Br(o,r,e);n.$observe("pattern",t=>{const n=a;a=Br(t,r,e),(n&&n.toString())!==(a&&a.toString())&&i.$validate()}),i.$validators.pattern=(t,e)=>i.$isEmpty(e)||y(a)||a.test(e)}}})],Fr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=r.maxlength||t(r.ngMaxlength)(e),o=zr(i);r.$observe("maxlength",t=>{i!==t&&(o=zr(t),i=t,s.$validate())}),s.$validators.maxlength=function(t,e){return o<0||s.$isEmpty(e)||e.length<=o}}})],qr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link(e,n,r,s){if(!s)return;let i=r.minlength||t(r.ngMinlength)(e),o=zr(i)||-1;r.$observe("minlength",t=>{i!==t&&(o=zr(t)||-1,i=t,s.$validate())}),s.$validators.minlength=function(t,e){return s.$isEmpty(e)||e.length>=o}}})];function Br(t,e,n){if(t){if(p(t)&&(t=t.$target),E(t)){const e=t.match(/^\/(.*)\/([gimsuy]*)$/);t=e?new RegExp(e[1],e[2]):new RegExp(`^${t}$`)}if(!t.test)throw dt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,zt(n));return t}}function zr(t){const e=parseInt(t,10);return P(e)?-1:e}class Wr{constructor(){this.autoScrollingEnabled=!0}$get=[ee.$location,ee.$rootScope,function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(k(t))t=t();else if(I(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else x(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=E(e)?e:x(e)?e.toString():t.getHash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,t=>{if("a"===H(t))return e=t,!0}),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&(e.$location=t,e.$watch("$location.$$hash",(t,e)=>{if(t===e&&""===t)return;const n=()=>Promise.resolve().then(r);"complete"===document.readyState?window.setTimeout(()=>n()):window.addEventListener("load",()=>n())})),r}]}const Kr=1,Gr=2,Qr=3,Jr=4,Zr=5,Yr=6,Xr=7,ts=8,es=9,ns=10,rs=11,ss=12,is=13,os=14,as=15,cs=16,ls=17,us="-add",hs="-remove",ds="-active",ps="ng-animate",fs="$$ngAnimateChildren";let $s,ms,gs,vs;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?($s="WebkitTransition",ms="webkitTransitionEnd transitionend"):($s="transition",ms="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(gs="WebkitAnimation",vs="webkitAnimationEnd animationend"):(gs="animation",vs="animationend");const ys="Duration",bs=is,ws="Delay",Es="TimingFunction",Cs=gs+ws,Ss=gs+ys,xs=$s+ws,As=$s+ys,Os=dt("ng");function ks(t,e,n){if(!t)throw Os("areq","Argument '{0}' is {1}",e||"?",n);return t}function _s(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&E(t)&&t.length?t.split(/\s+/):[]).forEach((t,s)=>{t&&t.length>0&&(r+=s>0?" ":"",r+=n?e+t:t+e)}),r}function Ts(t){if(!t)return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function js(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function Rs(t,e){Ns(t,e),Ls(t,e)}function Ns(t,e){e.from&&(e.from=null)}function Ls(t,e){e.to&&(e.to=null)}function Vs(t,e,n){const r=e.options||{},s=n.options||{},i=`${r.addClass||""} ${s.addClass||""}`,o=`${r.removeClass||""} ${s.removeClass||""}`,a=function(t,e,n){const r=1,s=-1,i={};t=a(t),e=a(e),Object.keys(e).forEach(t=>{i[t]=r}),n=a(n),Object.keys(n).forEach(t=>{i[t]=i[t]===r?null:s});const o={addClass:"",removeClass:""};function a(t){E(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach(t=>{t.length&&(e[t]=!0)}),e}return Object.entries(i).forEach(([e,n])=>{let i,a;n===r?(i="addClass",a=!t[e]||t[e+hs]):n===s&&(i="removeClass",a=t[e]||t[e+us]),a&&(o[i].length&&(o[i]+=" "),o[i]+=e)}),o}(t.getAttribute("class"),i,o);return s.preparationClasses&&(r.preparationClasses=Ds(s.preparationClasses,r.preparationClasses),delete s.preparationClasses),M(r,s),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function Ms(t,e){const n=e?"paused":"",r=gs+"PlayState";return Ps(t,[r,n]),[r,n]}function Ps(t,e){const n=e[0];t.style[n]=e[1]}function Ds(t,e){return t?e?`${t} ${e}`:t:e}const Us=dt("$animate");function Is(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function Hs(t){return w(t)?t:{}}function Fs(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Us("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const s=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=s,t.factory(s,r)},this.customFilter=function(t){return 1===arguments.length&&(r=k(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${ps}[(\\s|\\/)]`).test(n.toString()))throw n=null,Us("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ps)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"enter",Hs(s))),move:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"move",Hs(s))),leave:(e,n)=>t.push(e,"leave",Hs(n),()=>{Array.isArray(e)?e.forEach(t=>Bt(t)):Bt(e)}),addClass:(e,n,r)=>((r=Hs(r)).addClass=Is(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=Hs(r)).removeClass=Is(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,s)=>((s=Hs(s)).addClass=Is(s.addClass,n),s.removeClass=Is(s.removeClass,r),t.push(e,"setClass",s)),animate:(e,n,r,s,i)=>((i=Hs(i)).from=i.from?M(i.from,n):n,i.to=i.to?M(i.to,r):r,s=s||"ng-inline-animate",i.tempClasses=Is(i.tempClasses,s),t.push(e,"animate",i))}}]}function qs(){this.$get=[function(){let t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame(function(){for(let e=0;e<t.length;e++)t[e]();t=[]})}return function(){let t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]}Fs.$inject=["$provide"];let Bs;function zs(){this.$get=["$$animateAsyncRun",function(t){return Bs=t,Ws}]}class Ws{static chain(t,e){let n=0;!function r(){n!==t.length?t[n](t=>{!1!==t?(n++,r()):e(!1)}):e(!0)}()}static all(t,e){let n=0,r=!0;function s(s){r=r&&s,++n===t.length&&e(r)}t.forEach(t=>{t.done(s)})}constructor(t){this.setHost(t);const e=Bs();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{setTimeout(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=new Promise((e,n)=>{t.done(t=>{!1===t?n():e()})})}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick(()=>{this._resolve(t)}))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach(e=>{e(t)}),this._doneCallbacks.length=0,this._state=2)}}class Ks{constructor(){this.cache=new Map}$get(){return this.cache}}class Gs{constructor(){this.log=window.console,this.errorHandler=(t,e)=>{this.log.error(t,e)},this.$get=["$log",t=>(this.log=t,this.errorHandler)]}}function Qs(){return function(t,e,n,r){if(!v(t)){if(null==t)return t;throw dt("filter")("notarray","Expected array but received: {0}",t)}let s;r=r||"$";let i=!1;switch(Zs(e)){case"function":s=e;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":s=function(t,e,n,r){const s=w(t)&&n in t;let i;!0===e?e=z:k(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!U(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return i=function(i){return s&&!w(i)?Js(i,t[n],e,n,!1):Js(i,t,e,n,r)},i}(e,n,r,i);break;default:return t}return Array.prototype.filter.call(t,s)}}function Js(t,e,n,r,s,i){const o=Zs(t),a=Zs(e);if("string"===a&&"!"===e.charAt(0))return!Js(t,e.substring(1),n,r,s);if(Array.isArray(t))return t.some(t=>Js(t,e,n,r,s));switch(o){case"object":if(s){for(let s in t)if(s.charAt&&"$"!==s.charAt(0)&&Js(t[s],e,n,r,!0))return!0;return!i&&Js(t,e,n,r,!1)}if("object"===a){for(let s in e){const i=e[s];if(k(i)||y(i))continue;const o=s===r;if(!Js(o?t:t[s],i,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Zs(t){return null===t?"null":typeof t}function Ys(){return function(t,e){return y(e)&&(e=2),Y(t,e)}}function Xs(){return function(t,e,n){return k(t)&&(t=t()),P(e=Math.abs(Number(e))===1/0?Number(e):parseInt(e,10))?t:(x(t)&&(t=t.toString()),v(t)?(n=(n=!n||isNaN(n)?0:parseInt(n,10))<0?Math.max(0,t.length+n):n,e>=0?ti(t,n,n+e):0===n?ti(t,e,t.length):ti(t,Math.max(0,n+e),n)):t)}}function ti(t,e,n){return E(t)?t.slice(e,n):[].slice.call(t,e,n)}function ei(t){return function(r,s,i,o){if(null==r)return r;if(k(r))return r();if(!v(r))throw dt("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(s)||(s=[s]),0===s.length&&(s=["+"]);const a=s.map(e=>{let n=1,r=t=>t;if(k(e))r=e;else if(E(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}});const c=i?-1:1,l=k(o)?o:n,u=Array.prototype.map.call(r,function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map(r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(k(t.valueOf)&&e(t=t.valueOf()))return t;if(U(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n))}});return u.sort(function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c}),r=u.map(t=>t.value)};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,s=e.type;if(r===s){let s=t.value,i=e.value;"string"===r?(s=s.toLowerCase(),i=i.toLowerCase()):"object"===r&&(w(s)&&(s=t.index),w(i)&&(i=e.index)),s!==i&&(n=s<i?-1:1)}else n="undefined"===r?1:"undefined"===s?-1:"null"===r?1:"null"===s||r<s?-1:1;return n}}function ni(t){const e=(e,n,r)=>t.is(e,n,r);return e.$stateful=!0,e}function ri(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}ei.$inject=[ee.$parse],ni.$inject=[ee.$state],ri.$inject=[ee.$state];const si="Filter";class ii{static $inject=[ee.$provide];constructor(t){this.$provide=t,this.register({filter:Qs,json:Ys,limitTo:Xs,orderBy:ei,isState:ni,includedByState:ri})}register(t,e){return w(t)&&Object.entries(t).forEach(([t,e])=>{this.register(t,e)}),this.$provide.factory(t+si,e)}$get=[ee.$injector,t=>e=>t.get(e+si)]}class oi{constructor(t){this.$filter=t}compile(t){let e,n,r=ai(t,this.$filter);(e=function(t){if(1===t.body.length&&ci(t.body[0].expression))return{type:Qr,left:t.body[0].expression,right:{type:ls},operator:"="}}(r))&&(n=this.recurse(e));const s=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let i;if(s){i=[];for(const[t,e]of Object.entries(s)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t}}const o=[];r.body.forEach(t=>{o.push(this.recurse(t.expression))});const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach(r=>{n=r(t,e)}),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),i&&(a.inputs=i),a.decoratedNode=r,a}recurse(t,e,n){let r,s;const i=this;let o;switch(t.type){case rs:return this.value(t.value,e);case Xr:return s=this.recurse(t.argument),this[`unary${t.operator}`](s,e);case Yr:case Zr:return r=this.recurse(t.left),s=this.recurse(t.right),this[`binary${t.operator}`](r,s,e);case Jr:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case ns:return i.identifier(t.name,e,n);case es:return r=this.recurse(t.object,!1,!!n),t.computed||(s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(r,s,e,n):this.nonComputedMember(r,s,e,n);case ts:return o=[],t.arguments.forEach(t=>{o.push(i.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?(t,n,r)=>{const i=[];for(let e=0;e<o.length;++e){const s=o[e](t&&t.$target?t.$target:t,n,r);i.push(s)}const a=()=>s.apply(void 0,i);return e?{context:void 0,name:void 0,value:a}:a}:(t,n,r)=>{const i=s(t.$target?t.$target:t,n,r);let a;if(null!=i.value&&k(i.value)){const e=[];for(let s=0;s<o.length;++s){const i=o[s](t,n,r);e.push(k(i)?i():i)}a=i.value.apply(i.context,e)}return e?{value:a}:a};case Qr:return r=this.recurse(t.left,!0,1),s=this.recurse(t.right),(t,n,i)=>{const o=r(t,n,i),a=s(t,n,i);return(p(o.context)?o.context:o.context.$proxy??o.context)[o.name]=a,e?{value:a}:a};case ss:return o=[],t.elements.forEach(t=>{o.push(i.recurse(t))}),(t,n,r)=>{const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));return e?{value:s}:s};case os:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:i.recurse(t.key),computed:!0,value:i.recurse(t.value)}):o.push({key:t.key.type===ns?t.key.name:`${t.key.value}`,computed:!1,value:i.recurse(t.value)})}),(t,n,r)=>{const s={};for(let e=0;e<o.length;++e)o[e].computed?s[o[e].key(t,n,r)]=o[e].value(t,n,r):s[o[e].key]=o[e].value(t,n,r);return e?{value:s}:s};case as:return t=>e?{value:t}:t.$proxy;case cs:return(t,n)=>e?{value:n}:n;case ls:return(t,n,r)=>e?{value:r}:r}}"unary+"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?+i:0,e?{value:i}:i}}"unary-"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?-i:-0,e?{value:i}:i}}"unary!"(t,e){return(n,r,s)=>{const i=!t(n,r,s);return e?{value:i}:i}}"binary+"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(u=a,void 0===(l=o)||w(l)?u:void 0===u||w(u)?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(b(o)?o:0)-(b(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)*e(r,s,i);return n?{value:o}:o}}"binary/"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)/e(r,s,i);return n?{value:o}:o}}"binary%"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)%e(r,s,i);return n?{value:o}:o}}"binary==="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)===e(r,s,i);return n?{value:o}:o}}"binary!=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!==e(r,s,i);return n?{value:o}:o}}"binary=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)==e(r,s,i);return n?{value:o}:o}}"binary!="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!=e(r,s,i);return n?{value:o}:o}}"binary<"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<e(r,s,i);return n?{value:o}:o}}"binary>"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>e(r,s,i);return n?{value:o}:o}}"binary<="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<=e(r,s,i);return n?{value:o}:o}}"binary>="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>=e(r,s,i);return n?{value:o}:o}}"binary&&"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)&&e(r,s,i);return n?{value:o}:o}}"binary||"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)||e(r,s,i);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o)?e(s,i,o):n(s,i,o);return r?{value:a}:a}}value(t,e){return()=>e?{context:void 0,name:void 0,value:t}:t}identifier(t,e,n){return(r,s)=>{const i=s&&t in s?s:(r&&r.$proxy)??r;let o;return n&&1!==n&&i&&null==i[t]&&(i[t]={}),i&&(o=i.$target?i.$target[t]:i[t]),e?{context:i,name:t,value:o}:o}}computedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);let c,l;return null!=a&&(c=e(s,i,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function ai(t,e,n){let r,s,i,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case es:if(t.computed)return!1;break;case Xr:return 1;case Yr:return"+"!==t.operator&&1;case ts:return!1}return void 0===e?2:e}(t,n);switch(t.type){case Kr:return r=!0,f.body.forEach(t=>{let n=ai(t.expression,e,$);r=r&&n.constant}),f.constant=r,f;case rs:return f.constant=!0,f.toWatch=[],f;case Xr:var m=ai(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Yr:return o=ai(f.left,e,$),a=ai(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Zr:return o=ai(f.left,e,$),a=ai(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Jr:return c=ai(t.test,e,$),l=ai(t.alternate,e,$),u=ai(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case ns:return f.constant=!1,f.toWatch=[t],f;case es:return h=ai(t.object,e,$),t.computed&&(d=ai(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case ts:return i=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=i,s=[],t.arguments.forEach(t=>{m=ai(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=i?s:[f],f;case Qr:return o=ai(t.left,e,$),a=ai(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case ss:return r=!0,s=[],t.elements.forEach(t=>{m=ai(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=s,f;case os:return r=!0,s=[],t.properties.forEach(t=>{m=ai(t.value,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch),t.computed&&(p=ai(t.key,e,!1),r=r&&p.constant,s.push.apply(s,p.toWatch))}),f.constant=r,f.toWatch=s,f;case as:case cs:return f.constant=!1,f.toWatch=[],f}}function ci(t){return t.type===ns||t.type===es}const li=dt("$parse"),ui={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},hi=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class di{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=hi.has(t),s=hi.has(e),i=hi.has(n);if(r||s||i){const r=i?n:s?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=b(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw li("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const s=this.text[this.index];if(r)n+="u"===s?this.handleUnicodeEscape():ui[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=s}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const pi=dt("$parse"),fi=new Map([["true",!0],["false",!1],["null",null],["undefined",void 0]]);class $i{constructor(t){this.lexer=t,this.selfReferential={this:{type:as},$locals:{type:cs}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Kr,body:t}}expressionStatement(){return{type:Gr,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!ci(t))throw pi("lval","Trying to assign a value to a non l-value");t={type:Qr,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Jr,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Zr,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Zr,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Yr,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Yr,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Yr,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Yr,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Xr,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():vt(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):fi.has(this.peek().text)?t={type:rs,value:fi.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:ts,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:es,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:es,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:ts,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ns,name:t.text}}constant(){return{type:rs,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:ss,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:is,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:os,properties:t}}throwError(t,e){throw pi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw pi("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw pi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class mi{constructor(t,e){this.ast=new $i(t),this.astCompiler=new oi(e)}parse(t){const{ast:e}=this.getAst(t),n=this.astCompiler.compile(e);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===rs||t.body[0].expression.type===ss||t.body[0].expression.type===os)}(e),n.constant=function(t){return t.constant}(e),n}getAst(t){return t=t.trim(),{ast:this.ast.ast(t)}}}class gi{constructor(){const t=Object.create(null);let e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){const s={isIdentifierStart:k(e)&&e,isIdentifierContinue:k(n)&&n};return function(e,n){let o,a;switch(typeof e){case"string":if(a=e=e.trim(),o=t[a],!o){const n=new di(s);o=new mi(n,r).parse(e),t[a]=yi(o)}return i(o,n);case"function":return i(e,n);default:return i(()=>{},n)}};function i(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);let n=!1;const r=function(r,s,i,o){const a=n&&o?o[0]:t(r,s,i,o);if(r?.getter)return;const c=k(a)?a():a;return e(p(c)?c.$target:c)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,r.decoratedNode=t.decoratedNode,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map(function(t){return 2===t.isPure?function(e){return t(e)}:t}))),yi(r)}}]}}function vi(t,e,n,r){const s=t.$watch(()=>(s(),r(t)),e,n);return s}function yi(t){return t.constant?t.$$watchDelegate=vi:t.inputs&&(t.$$watchDelegate=bi),t}function bi(t,e,n,r){let s,i=r.inputs;if(1===i.length){let o=wi,a=i[0];return t.$watch(t=>{const e=a(t);return wi(e,o,a.isPure)||(s=r(t,void 0,[e]),o=e&&Ei(e)),s},e,n)}{const o=[],a=[];for(let t=0,e=i.length;t<e;t++)o[t]=wi,a[t]=null;return t.$watch(t=>{let e=!1;for(let n=0,r=i.length;n<r;n++){const r=i[n](t);(e||(e=!wi(r,o[n],i[n].isPure)))&&(a[n]=r,o[n]=r&&Ei(r))}return e&&(s=r(t,void 0,a)),s},e,n)}}function wi(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Ei(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ei(t){return k(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Ci=dt("$interpolate");function Si(t,e){throw Ci("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class xi{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[ee.$parse,ee.$sce,function(t,e){const n=this,r=n.startSymbol.length,s=n.endSymbol.length,i=new RegExp(n.startSymbol.replace(/./g,a),"g"),o=new RegExp(n.endSymbol.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(i,n.startSymbol).replace(o,n.endSymbol)}function l(i,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!i.length||-1===i.indexOf(n.startSymbol)){if(o)return;let t=c(i);u&&(t=e.getTrusted(a,t));const n=()=>t;return n.exp=i,n.expressions=[],n.$$watchDelegate=vi,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=i.length;let g;const v=[],w=[];let E;for(;p<m;){if(-1===(h=i.indexOf(n.startSymbol,p))||-1===(d=i.indexOf(n.endSymbol,h+r))){p!==m&&v.push(c(i.substring(p)));break}p!==h&&v.push(c(i.substring(p,h))),g=i.substring(h+r,d),f.push(g),p=d+s,w.push(v.length),v.push("")}E=1===v.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!b(t)?t:K(t)}catch(t){Si(i,t)}};if($=f.map(e=>t(e,C)),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&y(t[e]))return;v[w[e]]=t[e]}return u?e.getTrusted(a,E?v[0]:v.join("")):(a&&v.length>1&&function(t){throw Ci("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)}(i),v.join(""))};return M((e,n)=>{let r=0;const s=f.length,o=new Array(s);try{for(;r<s;r++){if(n){const i=f[r].trim();e.$watch(i,()=>{let r=new Array(s),i=0;for(;i<s;i++){let t=$[i];r[i]=t(e)}n(t(r))})}o[r]=$[r](e)}return t(o)}catch(t){Si(i,t)}},{exp:i,expressions:f,$$watchDelegate(e,n){let r;return e.$watch($,function(s,i){const o=t(s);n.call(this,o,s!==i?r:o,e),r=o})}})}}return l.startSymbol=function(){return n.startSymbol},l.endSymbol=function(){return n.endSymbol},l}]}let Ai={},Oi="";const ki="application/json",_i={"Content-Type":`${ki};charset=utf-8`},Ti=/^\[|^\{(?!\{)/,ji={"[":/]$/,"{":/}$/},Ri=/^\)]\}',?\n/,Ni=dt("$http");function Li(t){return w(t)?A(t)?t.toISOString():Y(t):t}function Vi(){this.$get=()=>t=>{if(!t)return"";const e=[];return Object.keys(t).sort().forEach(n=>{const r=t[n];null===r||y(r)||k(r)||(Array.isArray(r)?r.forEach(t=>{e.push(`${st(n)}=${st(Li(t))}`)}):e.push(`${st(n)}=${st(Li(r))}`))}),e.join("&")}}function Mi(t,e){if(E(t)){const r=t.replace(Ri,"").trim();if(r){const s=e("Content-Type"),i=s&&0===s.indexOf(ki);if(i||function(t){const e=t.match(Ti);return e&&ji[e[0]].test(t)}(r))try{t=E(n=r)?JSON.parse(n):n}catch(e){if(!i)return t;throw Ni("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Pi(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return E(t)?t.split("\n").forEach(t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),L(t.substring(n+1)))}):w(t)&&Object.entries(t).forEach(([t,e])=>{r(g(t),L(e))}),e}function Di(t){let e;return function(n){if(e||(e=Pi(t)),n){let t=e[g(n)];return void 0===t&&(t=null),t}return e}}function Ui(t,e,n,r){return k(r)?r(t,e,n):(Array.isArray(r)&&r.forEach(r=>{t=r(t,e,n)}),t)}function Ii(t){return t>=200&&t<300}function Hi(){const t=this.defaults={transformResponse:[Mi],transformRequest:[function(t){return!w(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Y(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ot(_i),put:ot(_i),patch:ot(_i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e},this.interceptors=[],this.xsrfTrustedOrigins=[],Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=[ee.$injector,ee.$sce,function(n,r){const s=new Map;t.paramSerializer=E(t.paramSerializer)?n.get(t.paramSerializer):t.paramSerializer;const i=[];this.interceptors.forEach(t=>{i.unshift(E(t)?n.get(t):n.invoke(t))});const o=function(t){const e=[Ne].concat(t.map(Le));return function(t){const n=Le(t);return e.some(Ve.bind(null,n))}}(this.xsrfTrustedOrigins);function a(c){if(!w(c))throw dt("$http")("badreq","Http request configuration must be an object. Received: {0}",c);if(!E(r.valueOf(c.url)))throw dt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",c.url);const l=M({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},c);var u;l.headers=function(e){let n=t.headers,r=M({},e.headers);return n=M({},n.common,n[g(e.method)]),Object.keys(n).forEach(t=>{const e=g(t);Object.keys(r).some(t=>g(t)===e)||(r[t]=n[t])}),function(t,e){let n;const r={};return Object.entries(t).forEach(([t,s])=>{k(s)?(n=s(e),null!=n&&(r[t]=n)):r[t]=s}),r}(r,ot(e))}(c),l.method=E(u=l.method)?u.toUpperCase():u,l.paramSerializer=E(l.paramSerializer)?n.get(l.paramSerializer):l.paramSerializer;const h=[],d=[];let p=Promise.resolve(l);return i.forEach(t=>{(t.request||t.requestError)&&h.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),p=f(p,h),p=p.then(function(n){const{headers:i}=n,c=Ui(n.data,Di(i),void 0,n.transformRequest);y(c)&&Object.keys(i).forEach(t=>{"content-type"===g(t)&&delete i[t]});y(n.withCredentials)&&!y(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,i){const{promise:c,resolve:l,reject:u}=Promise.withResolvers();let h,d;const p=n.headers;let{url:f}=n;E(f)||(f=r.valueOf(f));f=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(f,n.paramSerializer(n.params)),a.pendingRequests.push(n),c.then(C,C),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=w(n.cache)?n.cache:w(t.cache)?t.cache:s);h&&(d=h.get(f),b(d)?N(d)?d.then(v,v):Array.isArray(d)?g(d[1],d[0],ot(d[2]),d[3],d[4]):g(d,200,{},"OK","complete"):h.set(f,c));if(y(d)){const e=o(n.url)?function(){let t,e,n,r,s;const i=document.cookie;if(i!==Oi)for(Oi=i,t=Oi.split("; "),Ai={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(s=Fi(e.substring(0,r)),y(Ai[s])&&(Ai[s]=Fi(e.substring(r+1))));return Ai}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=e),function(t,e,n,r,s,i,o,a,c,l){e=e||Me(window.location.href);const u=new XMLHttpRequest;let h,d=!1;if(u.open(t,e,!0),s)for(const[t,e]of Object.entries(s))b(e)&&u.setRequestHeader(t,e);if(u.onload=()=>{let t=u.status||0;const n=u.statusText||"";0===t&&(t=u.response?200:"file:"===new URL(e).protocol?404:0),f(t,u.response,u.getAllResponseHeaders(),n,"complete")},u.onerror=()=>f(-1,null,null,"","error"),u.ontimeout=()=>f(-1,null,null,"","timeout"),u.onabort=()=>{f(-1,null,null,"",d?"timeout":"abort")},c)for(const[t,e]of Object.entries(c))u.addEventListener(t,e);if(l)for(const[t,e]of Object.entries(l))u.upload.addEventListener(t,e);o&&(u.withCredentials=!0);if(a)try{u.responseType=a}catch(t){if("json"!==a)throw t}u.send(y(n)?null:n),"number"==typeof i&&i>0?h=setTimeout(()=>p("timeout"),i):N(i)&&i.then(()=>{p(b(i.$$timeoutId)?"timeout":"abort")});function p(t){d="timeout"===t,u&&u.abort()}function f(t,e,n,s,i){b(h)&&clearTimeout(h),r(t,e,n,s,i)}}(n.method,f,i,m,p,n.timeout,n.withCredentials,n.responseType,$(n.eventHandlers),$(n.uploadEventHandlers))}return c;function $(t){if(t){const n={};return Object.entries(t).forEach(([t,r])=>{n[t]=function(t){function n(){r(t)}e?setTimeout(()=>n()):n()}}),n}return{}}function m(t,n,r,s,i){function o(){g(n,t,r,s,i)}h&&(Ii(t)?h.set(f,[t,n,Pi(r),s,i]):h.delete(f)),e?setTimeout(o):o()}function g(t,e,r,s,i){(Ii(e=e>=-1?e:0)?l:u)({data:t,status:e,headers:Di(r),config:n,statusText:s,xhrStatus:i})}function v(t){g(t.data,t.status,ot(t.headers()),t.statusText,t.xhrStatus)}function C(){const t=a.pendingRequests.indexOf(n);-1!==t&&a.pendingRequests.splice(t,1)}}(n,c).then($,$)}),p=f(p,d),p;function f(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],s=e[n++];t=t.then(r,s)}return e.length=0,t}function $(t){const e=M({},t);return e.data=Ui(t.data,t.headers,t.status,l.transformResponse),Ii(t.status)?e:Promise.reject(e)}}return a.pendingRequests=[],function(...t){t.forEach(t=>{a[t]=function(e,n){return a(M({},n||{},{method:t,url:e}))}})}("get","delete","head"),function(...t){t.forEach(t=>{a[t]=function(e,n,r){return a(M({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),a.defaults=t,a}]}function Fi(t){try{return decodeURIComponent(t)}catch{return t}}const qi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Bi=dt("$location");let zi,Wi,Ki,Gi=!1;class Qi{constructor(t,e,n=!0,r){this.appBase=t,this.appBaseNoFile=e,this.html5=n,this.basePrefix=n?r||"":void 0,this.hashPrefix=n?void 0:r,this.absUrl="",this.$$url=void 0,this.$$updateBrowser=void 0}setUrl(t){const e=qi.exec(t);return void 0===e[1]&&""!==t||this.setPath(e[1]||""),void 0===e[2]&&void 0===e[1]&&""!==t||this.setSearch(e[3]||""),this.setHash(e[5]||""),this}getUrl(){return this.$$url}setPath(t){let e=null!==t?t.toString():"";return zi="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}getPath(){return zi}setHash(t){return Ki=null!==t?t.toString():"",this.$$compose(),this}getHash(){return Ki}setSearch(t,e){if(1===arguments.length)if(E(t)||x(t))t=t.toString(),Wi=tt(t);else{if(!w(t))throw Bi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach(([e,n])=>{null==n&&delete t[e]}),Wi=t}else y(e)||null===e?delete Wi[t]:Wi[t]=e;return this.$$compose(),this}getSearch(){return Wi}$$compose(){this.$$url=function(t,e,n){const r=et(e),s=n?`#${rt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;){const t=decodeURIComponent(e[n].replace(/%2F/gi,"/"));e[n]=rt(t)}return e.join("/")}(t)+(r?`?${r}`:"")+s}(zi,Wi,Ki),this.absUrl=this.html5?this.appBaseNoFile+this.$$url.substring(1):this.appBase+(this.$$url?this.hashPrefix+this.$$url:""),Gi=!0,setTimeout(()=>this.$$updateBrowser&&this.$$updateBrowser())}setState(t){if(!this.html5)throw Bi("nostate","History API state support is available only in HTML5 mode");return this.$$state=y(t)?null:t,Gi=!0,this}getState(){return this.$$state}parseLinkUrl(t,e){if(this.html5){if(e&&"#"===e[0])return this.setHash(e.slice(1)),!0;let n,r,s;return b(n=Yi(this.appBase,t))?(r=n,s=this.basePrefix&&b(n=Yi(this.basePrefix,n))?this.appBaseNoFile+(Yi("/",n)||n):this.appBase+r):b(n=Yi(this.appBaseNoFile,t))?s=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(s=this.appBaseNoFile),s&&this.parse(s),!!s}return Xi(this.appBase)===Xi(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const e=Yi(this.appBaseNoFile,t);if(!E(e))throw Bi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);Zi(e,!0),zi||(zi="/"),this.$$compose()}else{const n=Yi(this.appBase,t)||Yi(this.appBaseNoFile,t);let r;function s(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let s;return yt(e,n)&&(e=e.replace(n,"")),r.exec(e)?t:(s=r.exec(t),s?s[1]:t)}y(n)||"#"!==n.charAt(0)?this.html5?r=n:(r="",y(n)&&(this.appBase=t)):(r=Yi(this.hashPrefix,n),y(r)&&(r=n)),Zi(r,!1),zi=s(zi,r,this.appBase),this.$$compose()}}}class Ji{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.cacheState()}setUrl(t,e){if(void 0===e&&(e=null),t){if(t=new URL(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e)return this;this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()}}getBrowserUrl(){return Me(window.location.href)}state(){return this.cachedState}cacheState(){const t=history.state??null;z(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}#t(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.getBrowserUrl()&&t===this.cachedState||(this.lastBrowserUrl=this.getBrowserUrl(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach(t=>{t(Me(window.location.href),this.cachedState)}))}#e(t){this.urlChangeInit||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t)}$get=[ee.$rootScope,ee.$rootElement,(t,e)=>{let n;const r=te(),s=Me(window.location.href);let i;if(this.html5ModeConf.enabled){if(!r&&this.html5ModeConf.requireBase)throw Bi("nobase","$location in HTML5 mode requires a <base> tag to be present!");i=function(t){const e=t.indexOf("//")+2,n=t.indexOf("/",e);return-1===n?t:t.substring(0,n)}(s)+(r||"/")}else i=Xi(s);const o=(a=i).substring(0,Xi(a).lastIndexOf("/")+1);var a;n=new Qi(i,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`),n.parseLinkUrl(s,s),n.$$state=this.state();const c=/^\s*(javascript|mailto):/i,l=(t,e)=>{const r=n.getUrl(),s=n.$$state;try{this.setUrl(t,e),n.$$state=this.state()}catch(t){throw n.setUrl(r),n.$$state=s,t}};e.addEventListener("click",t=>{const r=this.html5ModeConf.rewriteLinks;if(!r||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let s=t.target;for(;"a"!==s.nodeName.toLowerCase();)if(s===e||!(s=s.parentElement))return;if(E(r)&&y(s.getAttribute(r)))return;let i=s.href;const o=s.getAttribute("href")||s.getAttribute("xlink:href");if(w(i)&&"[object SVGAnimatedString]"===i.toString()){i=new URL(i.animVal).href}c.test(i)||!i||s.getAttribute("target")||t.defaultPrevented||n.parseLinkUrl(i,o)&&t.preventDefault()}),n.absUrl!==s&&this.setUrl(n.absUrl,!0);let u=!0;this.#e((e,r)=>{yt(e,o)?Promise.resolve().then(()=>{const s=n.absUrl,i=n.$$state;let o;n.parse(e),n.$$state=r,o=t.$broadcast("$locationChangeStart",e,s,r,i).defaultPrevented,n.absUrl===e&&(o?(n.parse(s),n.$$state=i,l(s,i)):(u=!1,d(s,i)))}):window.location.href=e});const h=()=>{if(u||Gi){Gi=!1;const r=this.getBrowserUrl(),s=n.absUrl,i=this.state(),o=(e=s,!(to(r)===to(e))||n.html5&&i!==n.$$state);(u||o)&&(u=!1,setTimeout(()=>{const e=n.absUrl,{defaultPrevented:s}=t.$broadcast("$locationChangeStart",e,r,n.$$state,i);n.absUrl===e&&(s?(n.parse(r),n.$$state=i):(o&&l(e,i===n.$$state?null:n.$$state),d(r,i)))}))}var e};return n.$$updateBrowser=h,h(),t.$on("$updateBrowser",h),n;function d(e,r){t.$broadcast("$locationChangeSuccess",n.absUrl,e,n.$$state,r)}}]}function Zi(t,e){if(/^\s*[\\/]{2,}/.test(t))throw Bi("badpath",'Invalid url "{0}".',t);const n="/"!==t.charAt(0);n&&(t=`/${t}`);const r=Le(t),s=n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;zi=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,e),Wi=tt(r.search),Ki=decodeURIComponent(r.hash),zi&&"/"!==zi.charAt(0)&&(zi=`/${zi}`)}function Yi(t,e){if(yt(e,t))return e.substring(t.length)}function Xi(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}function to(t){const e=document.createElement("a");e.href=t;let n=e.href;return n.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(n)&&(n=n.slice(0,-1)),n.endsWith("#")&&(n=n.slice(0,-1)),n}class eo{constructor(){this.debug=!1,this._override=null}setLogger(t){this._override=t}formatError(t){return O(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map(t=>this.formatError(t));return n.apply(e,r)}}$get(){return this._override?this._override():{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()}}}let no,ro,so=0;const io=[];class oo{constructor(){this.rootScope=ao()}$get=["$exceptionHandler","$parse",(t,e)=>(ro=t,no=e,this.rootScope)]}function ao(t={},e){if(C(t)||!0===t[co]||!0===(t.constructor&&t.constructor[co]))return t;if("object"==typeof t){const n=new Proxy(t,e||new lo);for(const e in t)if(vt(t,e))try{t.constructor.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e)||(t[e]=ao(t[e],n.$handler))}catch{}return n}return t}const co="$nonscope";class lo{constructor(t,e){this.context=t?t.context?t.context:t:void 0,this.watchers=t?t.watchers:new Map,this.$$listeners=new Map,this.foreignListeners=t?t.foreignListeners:new Map,this.foreignProxies=t?t.foreignProxies:new Set,this.objectListeners=t?t.objectListeners:new WeakMap,this.functionListeners=t?t.functionListeners:new Map,this.$proxy=null,this.$handler=this,this.$target=null,this.$value=null,this.$children=[],this.$id=(so+=1,so),this.$root=t?t.$root:this,this.$parent=e||(this.$root===this?null:t),this.$$asyncQueue=[],this.filters=[],this.$$destroyed=!1,this.scheduled=[]}set(t,e,n,r){if("undefined"===e)throw new Error("Attempting to set undefined property");if(t.constructor?.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e))return t[e]=n,!0;this.$proxy=r,this.$target=t;const s=t[e];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(n))return!0;if(s&&s[d]){if(Array.isArray(n)){if(s!==n){const t=this.watchers.get(e);t&&this.#n(t);const n=this.foreignListeners.get(e);n&&this.#n(n)}return this.objectListeners.get(t[e])&&this.objectListeners.delete(t[e]),t[e]=ao(n,this),this.objectListeners.set(t[e],[e]),!0}if(w(n)){if(vt(t,e)&&Object.keys(s).filter(t=>!n[t]).forEach(t=>{delete s[t]}),s!==n){const t=this.watchers.get(e);t&&this.#n(t);const r=this.foreignListeners.get(e);r&&this.#n(r),this.#r(n)}return t[e]=ao(n,this),!0}if(y(n)){let n=!1;if(Object.keys(s.$target).forEach(t=>{s.$target[t]?.[d]&&(n=!0),delete s[t]}),t[e]=void 0,!n){let t=this.watchers.get(e);t&&this.#n(t)}return!0}if(b(n)){t[e]=n;let s=this.watchers.get(e);if(s&&this.#n(s),Array.isArray(t)&&this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}return!0}return!0}if(y(t[e])&&p(n)&&(this.foreignProxies.add(n),t[e]=n,!this.watchers.has(e)))return!0;if(y(n)?t[e]=n:t[e]=ao(n,this),s!==n){let r=this.$target,i=[];if(y(s)&&w(t[e])){this.objectListeners.has(t[e])||this.objectListeners.set(t[e],[e]);for(const t of Object.keys(n))this.watchers.get(t)?.forEach(t=>i.push(t)),r=n}Array.isArray(t)&&this.watchers.get("length")?.forEach(t=>i.push(t)),this.watchers.get(e)?.forEach(t=>i.push(t)),i.length>0&&this.#n(i,t=>t.filter(t=>{if(!t.watchProp)return!0;const e=t.watchProp.split(".").slice(0,-1).join("."),n=no(e)(t.originalTarget)?.$handler;return r===n?.$target}));let o=this.foreignListeners.get(e);!o&&this.$parent?.foreignListeners&&(o=this.$parent.foreignListeners.get(e)),o&&(this.$target.$$hashKey&&(o=o.filter(t=>!!t.originalTarget.$$hashKey&&t.originalTarget.$$hashKey==this.$target.$$hashKey)),this.#n(o))}if(this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.scheduled!==e&&this.#n(e)})}return!0}get(t,e,n){if("$$watchersCount"===e)return function(t){const e=uo(t).add(t.$id);return Array.from(t.watchers.values()).reduce((t,n)=>t+n.reduce((t,n)=>t+(e.has(n.scopeId)?1:0),0),0)}(this);if(e===d)return!0;if(t[e]&&p(t[e])?this.$proxy=t[e]:this.$proxy=n,this.propertyMap={$watch:this.$watch.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$destroy:this.$destroy.bind(this),$eval:this.$eval.bind(this),$apply:this.$apply.bind(this),$postUpdate:this.$postUpdate.bind(this),$isRoot:this.#s.bind(this),$target:t,$proxy:this.$proxy,$on:this.$on.bind(this),$emit:this.$emit.bind(this),$broadcast:this.$broadcast.bind(this),$transcluded:this.$transcluded.bind(this),$handler:this,$parent:this.$parent,$root:this.$root,$children:this.$children,$id:this.$id,$merge:this.$merge.bind(this),$getById:this.$getById.bind(this)},Array.isArray(t)&&["pop","shift","unshift"].includes(e)){if(this.objectListeners.has(n)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&(this.scheduled=e)})}"unshift"===e&&this.#n(this.scheduled)}return vt(this.propertyMap,e)?(this.$target=t,this.propertyMap[e]):t[e]}deleteProperty(t,e){if(t[e]&&t[e][d]){t[e]=void 0;let n=this.watchers.get(e);if(n&&this.#n(n),this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{n=this.watchers.get(t),n&&this.#n(n)})}return this.scheduled&&(this.#n(this.scheduled),this.scheduled=[]),!0}if(delete t[e],this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}else{const n=this.watchers.get(e);n&&this.#n(n,t[e])}return!0}#r(t){y(t)||Object.keys(t).forEach(e=>{const n=this.watchers.get(e);n&&this.#n(n),w(t[e])&&this.#r(t[e])})}#n(t,e=t=>t){Promise.resolve().then(()=>{let n=0,r=e(t);for(;n<r.length;){const t=r[n];t.foreignListener?t.foreignListener.#i(t,this.$target):this.#i(t,this.$target),n++}})}$watch(t,e,n=!1){at(E(t),"Watched property required"),t=t.trim();const r=no(t);if(r.constant)return e&&Promise.resolve().then(()=>{let t=r();for(;k(t);)t=t();e(t,this.$target)}),()=>{};const s={originalTarget:this.$target,listenerFn:e,watchFn:r,scopeId:this.$id,id:m(),property:[]};let i=r.decoratedNode.body[0].expression.name,o=[],a=r.decoratedNode.body[0].expression.type;switch(a){case Kr:case Gr:throw new Error("Unsupported type "+a);case Qr:if(!e){let t=r(this.$target);for(;k(t);)t=t(this.$target);return Promise.resolve().then(t),()=>{}}i=r.decoratedNode.body[0].expression.left.name;break;case Jr:i=r.decoratedNode.body[0].expression.toWatch[0]?.test?.name,s.property.push(i);break;case Zr:{let t=[];return t.push(r.decoratedNode.body[0].expression.left.toWatch[0]?.name),t.push(r.decoratedNode.body[0].expression.right.toWatch[0]?.name),t.forEach(t=>{this.#o(t,s)}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case Yr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case Xr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case ts:{let t=[];return r.decoratedNode.body[0].expression.toWatch.forEach(e=>{b(e)&&t.push(e.name)}),t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case es:if(i=r.decoratedNode.body[0].expression.property.name,i||(i=r.decoratedNode.body[0].expression.object.name),s.property.push(i),t!==i){s.watchProp=t;let e=no(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(e&&this.foreignProxies.has(e))return e.$handler.#c(i,s),e.$handler.#n([s]),()=>e.$handler.#a(i,s.id)}break;case ns:s.property.push(r.decoratedNode.body[0].expression.name);break;case rs:throw new Error("Unsupported type "+a);case ss:{let t=r.decoratedNode.body[0].expression.elements.map(t=>11===t.type?t.value:t.toWatch[0].name).filter(t=>!!t);return t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case is:throw new Error("Unsupported type "+a);case os:r.decoratedNode.body[0].expression.properties.forEach(t=>{if(!1===t.key.isPure)o.push(t.key.name),s.property.push(i);else if(t.value.name)o.push(t.value.name),s.property.push(i);else{const t=r.decoratedNode.body[0].expression.toWatch[0];i=t.property?t.property.name:t.name,s.property.push(i)}});break;case as:case cs:case ls:throw new Error("Unsupported type "+a)}let c=s.watchFn(this.$target);return w(c)&&this.objectListeners.set(c,[i]),o.length>0?o.forEach(t=>{this.#o(t,s)}):this.#o(i,s),n||this.#n([s]),()=>{if(o.length>0){let t=!0;return o.forEach(e=>{this.#a(e,s.id)||(t=!1)}),t}return this.#a(i,s.id)}}$new(t){let e;t?(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)==this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(Object.getPrototypeOf(t)||t,this.$target),e=t):e=Object.create(this.$target);const n=new Proxy(e,new lo(this));return this.$children.push(n),n}$newIsolate(t){let e=t?Object.create(t):Object.create(null);const n=new Proxy(e,new lo(this,this.$root));return this.$children.push(n),n}$transcluded(t){let e=Object.create(this.$target);const n=new Proxy(e,new lo(this,t));return this.$children.push(n),n}#o(t,e){this.watchers.has(t)?this.watchers.get(t).push(e):this.watchers.set(t,[e])}#c(t,e){this.foreignListeners.has(t)?this.foreignListeners.get(t).push(e):this.foreignListeners.set(t,[e])}#a(t,e){const n=this.watchers.get(t);if(!n)return!1;const r=n.findIndex(t=>t.id===e);return-1!==r&&(n.splice(r,1),n.length?this.watchers.set(t,n):this.watchers.delete(t),!0)}$eval(t,e){const n=no(t)(this,e);return y(n)||null===n||n.name===Object.hasOwnProperty.name?n:k(n)?n():Number.isNaN(n)?0:n}$merge(t){Object.entries(t).forEach(([t,e])=>{this.set(this.$target,t,e,this.$proxy)})}$apply(t){try{return no(t)(this.$proxy)}catch(t){ro(t)}}$on(t,e){let n=this.$$listeners.get(t);return n||(n=[],this.$$listeners.set(t,n)),n.push(e),()=>{const r=n.indexOf(e);-1!==r&&(n.splice(r,1),0==n.length&&this.$$listeners.delete(t))}}$emit(t,...e){return this.#l({name:t,event:void 0,broadcast:!1},...e)}$broadcast(t,...e){return this.#l({name:t,event:void 0,broadcast:!0},...e)}#l({name:t,event:e,broadcast:n},...r){if(!n&&!this.$$listeners.has(t))return this.$parent?this.$parent.$handler.#l({name:t,event:e,broadcast:n},...r):void 0;e?e.currentScope=this.$target:e=e||{name:t,targetScope:this.$target,currentScope:this.$target,stopped:!1,stopPropagation(){e.stopped=!0},preventDefault(){e.defaultPrevented=!0},defaultPrevented:!1};const s=G([e],[e].concat(r),1);let i=this.$$listeners.get(t);if(i){let t=i.length;for(let e=0;e<t;e++)try{i[e].apply(null,s),i.length!==t&&(i.length<t&&e--,t=i.length)}catch(t){ro(t)}}return e.currentScope=null,e.stopped?e:n?(this.$children.length>0&&this.$children.forEach(s=>{e=s.$handler.#l({name:t,event:e,broadcast:n},...r)}),e):this.$parent?this.$parent.#l({name:t,event:e,broadcast:n},...r):e}#s(){return this.$root==this}$postUpdate(t){io.push(t)}$destroy(){if(!this.$$destroyed){if(this.$broadcast("$destroy"),Array.from(this.watchers.entries()).forEach(([t,e])=>{this.watchers.set(t,e.filter(t=>t.scopeId!==this.$id))}),this.#s())this.watchers.clear();else{let t=this.$parent.$children.filter(t=>t.$id==this.$id)[0];this.$parent.$children.splice(this.$parent.$children.indexOf(t),1)}this.$$listeners.clear(),this.$$destroyed=!0}}#i(t,e){const{originalTarget:n,listenerFn:r,watchFn:s}=t;try{let t=s(n);for(y(t)&&(t=s(e)),k(t)&&(t=t(n)),Array.isArray(t)&&t.forEach((e,r)=>{k(e)&&(t[r]=e(n))}),r(t,n),this.$$asyncQueue.forEach(t=>{t.handler.$id==this.$id&&Promise.resolve().then(t.fn(t.handler,t.locals))});io.length;)io.shift()()}catch(t){ro(t)}}$getById(t){if(E(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let e;for(const n of this.$children){let r=n.$getById(t);if(r){e=r;break}}return e}}}function uo(t){const e=new Set([t.$id]);return t.$children?.forEach(t=>{uo(t).forEach(t=>e.add(t))}),e}const ho=dt("$templateRequest");function po(){let t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$sce",function(e,n,r,s){function i(o,a){if(i.totalPendingRequests++,!E(o)||!n.has(o))try{if(!(o=s.getTrustedResourceUrl(o)))return Promise.reject("Template not found")}catch(t){return Promise.reject(t.message)}let c=r.defaults&&r.defaults.transformResponse;return Array.isArray(c)?c=c.filter(function(t){return t!==Mi}):c===Mi&&(c=null),r.get(o,M({cache:n,transformResponse:c},t)).finally(function(){i.totalPendingRequests--}).then(function(t){return n.set(o,t.data),t.data},function(t){a||(t=ho("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText),e(t));return Promise.reject(t)})}return i.totalPendingRequests=0,i}]}class fo{constructor(){this._aHrefSanitizationTrustedUrlList=/^\s*(https?|s?ftp|mailto|tel|file):/,this._imgSrcSanitizationTrustedUrlList=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return b(t)?(this._aHrefSanitizationTrustedUrlList=t,this):this._aHrefSanitizationTrustedUrlList}imgSrcSanitizationTrustedUrlList(t){return b(t)?(this._imgSrcSanitizationTrustedUrlList=t,this):this._imgSrcSanitizationTrustedUrlList}$get(){return(t,e)=>{if(!t)return t;const n=e?this._imgSrcSanitizationTrustedUrlList:this._aHrefSanitizationTrustedUrlList,r=Le(t.trim()).href;return""===r||r.match(n)?t:`unsafe:${r}`}}}const $o="ng-active",mo="ng-inactive";class go{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,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 e=yo(this.$scope,this.$attrs.ngMessagesMultiple)||yo(this.$scope,this.$attrs.multiple),n=[],r={};let s=0,i=this.head,o=!1,a=0;for(;i;){a++;const c=i.message;let l=!1;o||Object.entries(t).forEach(([t,e])=>{if(bo(e)&&!l&&(s++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}}),l?o=!e:n.push(c),i=i.next}n.forEach(t=>{t.detach()});const c=n.length!==a,l=this.default&&!c&&s>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,$o,mo):this.$animate.setClass(this.$element,mo,$o)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element,t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element,t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const s=this.findPreviousMessage(t,e);s?s.next=r.next:this.head=r.next}}function vo(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new go(e,n,r,t)}}function yo(t,e){return E(e)&&0===e.length||bo(t.$eval(e))}function bo(t){return E(t)?t.length:!!t}function wo(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,s){const i=s.ngMessagesInclude||s.src;t(i).then(t=>{n.$$destroyed||E(t)&&!t.trim()||e(t)(n,t=>{r.after(t)})})}}}vo.$inject=["$animate"],wo.$inject=["$templateRequest","$compile"];const Eo=xo(!1),Co=xo(!1),So=xo(!0);function xo(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,s,i,o){let a,c,l,u,h,d;if(!t){a=r,l=s.ngMessage||s.when,u=s.ngMessageExp||s.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,i.reRender()};u?(t(n.$eval(u)),n.$watch(u,t)):t(l)}i.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:vt(t,e)}(c,t),attach(){h||o((n,s)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=i.getAttachId();h.addEventListener("$destroy",()=>{h&&h.$$attachId===o&&(i.deregister(a,t),d.detach()),s.$destroy()})})},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",()=>{i.deregister(a,t)})}}}return e.$inject=["$animate"],e}const Ao="ngAriaDisable",Oo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],ko=function(t,e){if(-1!==e.indexOf(t.nodeName))return!0};function _o(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,s){return function(i,o,a){if(vt(a,Ao))return;const c=a.$normalize(n);!t[c]||ko(o,r)||a[c]||i.$watch(a[e],t=>{t=s?!t:!!t,o.setAttribute(n,t)})}}this.config=function(e){t=M(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function To(t){return t.$$watchExpr("ngDisabled","aria-disabled",Oo,!1)}function jo(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Ro(){return{restrict:"A",require:"?ngMessages",link(t,e,n){vt(n,Ao)||e.hasAttribute("aria-live")||e.setAttribute("aria-live","assertive")}}}function No(t,e){return{restrict:"A",compile(n,r){if(vt(r,Ao))return;const s=e(r.ngClick);return function(e,n,r){ko(n,Oo)||(t.config("bindRoleForClick")&&!n.hasAttribute("role")&&n.setAttribute("role","button"),t.config("tabindex")&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","0"),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.addEventListener("keydown",t=>{const n=parseInt(t.key,10);13!==n&&32!==n||(-1!==Oo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply(function(){s(e,{$event:t})}))}))}}}}function Lo(t){return t.$$watchExpr("ngRequired","aria-required",Oo,!1)}function Vo(t){return t.$$watchExpr("ngChecked","aria-checked",Oo,!1)}function Mo(t){return t.$$watchExpr("ngValue","aria-checked",Oo,!1)}function Po(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Do(t){return t.$$watchExpr("ngReadonly","aria-readonly",Oo,!1)}function Uo(t){function e(e,n,r,s){return t.config(n)&&!r.getAttribute(e)&&(s||!ko(r,Oo))&&("hidden"!==r.getAttribute("type")||"INPUT"!==r.nodeName)}function n(t,e){return!e.getAttribute("role")&&e.getAttribute("type")===t&&!ko(e,Oo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,s){if(vt(s,Ao))return;const i=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(s);return{post(r,s,o,a){const c=e("tabindex","tabindex",s,!1);switch(i){case"radio":case"checkbox":n(i,s)&&s.setAttribute("role",i),e("aria-checked","ariaChecked",s,!1)&&a.$watch("$modelValue","radio"===i?function(){s.setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){s.setAttribute("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&s.setAttribute("tabindex",0);break;case"range":if(n(i,s)&&s.setAttribute("role","slider"),t.config("ariaValue")){const t=!s.hasAttribute("aria-valuemin")&&(vt(o,"min")||vt(o,"ngMin")),e=!s.hasAttribute("aria-valuemax")&&(vt(o,"max")||vt(o,"ngMax")),n=!s.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{s.setAttribute("aria-valuemin",t)}),e&&o.$observe("max",t=>{s.setAttribute("aria-valuemax",t)}),n&&a.$watch("$modelValue",t=>{s.setAttribute("aria-valuenow",t)})}c&&s.setAttribute("tabindex",0)}!vt(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",s,!1)&&o.$observe("required",()=>{s.setAttribute("aria-required",(!!o.required).toString())}),e("aria-invalid","ariaInvalid",s,!0)&&a.$watch("$invalid",t=>{s.setAttribute("aria-invalid",(!!t).toString())})}}}}}function Io(t){return function(e,n,r){vt(r,Ao)||!t.config("tabindex")||n.hasAttribute("tabindex")||ko(n,Oo)||n.setAttribute("tabindex",0)}}To.$inject=[ee.$aria],jo.$inject=[ee.$aria],No.$inject=[ee.$aria,ee.$parse],Lo.$inject=[ee.$aria],Vo.$inject=["$aria"],Mo.$inject=[ee.$aria],Po.$inject=[ee.$aria],Do.$inject=[ee.$aria],Uo.$inject=[ee.$aria],Io.$inject=[ee.$aria];const Ho="$$animateCss",Fo=1e3,qo={transitionDuration:As,transitionDelay:xs,transitionProperty:$s+bs,animationDuration:Ss,animationDelay:Cs,animationIterationCount:gs+"IterationCount"},Bo={transitionDuration:As,transitionDelay:xs,animationDuration:Ss,animationDelay:Cs};function zo(t,e){return[e?Cs:xs,`${t}s`]}function Wo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach(([t,e])=>{let s=r[e];if(s){const e=s.charAt(0);("-"===e||"+"===e||e>=0)&&(s=function(t){let e=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,e=e?Math.max(t,e):t}),e}(s)),0===s&&(s=null),n[t]=s}}),n}function Ko(t){return 0===t||null!=t}function Go(t,e){let n=$s,r=`${t}s`;return e?n+=ys:r+=" linear all",[n,r]}function Qo(t,e,n){n.forEach(n=>{t[n]=b(t[n])?t[n]:e.style.getPropertyValue(n)})}function Jo(){this.$get=["$$AnimateRunner","$$animateCache","$$rAFScheduler",function(t,e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const s=[];function i(t){s.push(t),n.waitUntilQuiet(()=>{e.flush();const t=document.body.offsetWidth+1;for(let e=0;e<s.length;e++)s[e](t);s.length=0})}function o(t,n,r){const s=function(t,n,r,s){let i=e.get(n);i||(i=Wo(t,s),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1));const o=r||i.transitionDuration>0||i.animationDuration>0;return e.put(n,i,o),i}(t,n,r,qo),i=s.animationDelay,o=s.transitionDelay;return s.maxDelay=i&&o?Math.max(i,o):i||o,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(n,s){let a,c=s||{};c.$$prepared||(c=js(structuredClone(c)));const l={},u=n;if(!u||!u.parentNode)return q();const h=[],d=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(c);let p,f,$,m,g,v,y,b,w,E;const C=[];if(0===c.duration)return q();const S=c.event&&Array.isArray(c.event)?c.event.join(" "):c.event,x=S&&c.structural;let A="",O="";x?A=_s(S,"ng-",!0):S&&(A=S),c.addClass&&(O+=_s(c.addClass,us)),c.removeClass&&(O.length&&(O+=" "),O+=_s(c.removeClass,hs)),c.applyClassesEarly&&O.length&&r(n,c);let k=[A,O].join(" ").trim();const _=d.to&&Object.keys(d.to).length>0;if(!((c.keyframeStyle||"").length>0)&&!_&&!k)return q();let T,j,R=e.cacheKey(u,S,c.addClass,c.removeClass);if(e.containsCachedAnimationWithoutDuration(R))return k=null,q();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,r,s){let i;const o=`stagger-${r}`;if(e.count(r)>0&&(i=e.get(o),!i)){const r=_s(n,"-stagger");t.className+=` ${r}`,i=Wo(t,s),i.animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),t.classList.remove(r),e.put(o,i,!0)}return i||{}}(u,k,R,Bo);if(c.$$skipPreparationClasses||n.classList.add(...k.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=[$s,c.transitionStyle];Ps(u,t),h.push(t)}if(c.duration>=0){j=u.style[$s].length>0;const t=Go(c.duration,j);Ps(u,t),h.push(t)}if(c.keyframeStyle){const t=[gs,c.keyframeStyle];Ps(u,t),h.push(t)}const N=T?c.staggerIndex>=0?c.staggerIndex:e.count(R):0,L=0===N;L&&!c.skipBlocking&&Zo(u,9999);let V=o(u,R,!x),M=V.maxDelay;v=Math.max(M,0),b=V.maxDuration;const P={};if(P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0,P.hasTransitionAll=P.hasTransitions&&"all"===V.transitionProperty,P.applyTransitionDuration=_&&(P.hasTransitions&&!P.hasTransitionAll||P.hasAnimations&&!P.hasTransitions),P.applyAnimationDuration=c.duration&&P.hasAnimations,P.applyTransitionDelay=Ko(c.delay)&&(P.applyTransitionDuration||P.hasTransitions),P.applyAnimationDelay=Ko(c.delay)&&P.hasAnimations,P.recalculateTimingStyles=O.length>0,(P.applyTransitionDuration||P.applyAnimationDuration)&&(b=c.duration?parseFloat(c.duration):b,P.applyTransitionDuration&&(P.hasTransitions=!0,V.transitionDuration=b,j=u.style[$s+bs].length>0,h.push(Go(b,j))),P.applyAnimationDuration&&(P.hasAnimations=!0,V.animationDuration=b,h.push([Ss,`${b}s`]))),0===b&&!P.recalculateTimingStyles)return q();let D=_s(k,ds);return null!=c.delay&&("boolean"!=typeof c.delay&&(a=parseFloat(c.delay),v=Math.max(a,0)),P.applyTransitionDelay&&h.push(zo(a)),P.applyAnimationDelay&&h.push(zo(a,!0))),null==c.duration&&V.transitionDuration>0&&(P.recalculateTimingStyles=P.recalculateTimingStyles||L),y=v*Fo,w=b*Fo,c.skipBlocking||(P.blockTransition=V.transitionDuration>0,P.blockKeyframeAnimation=V.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration),c.from&&(c.cleanupStyles&&Qo(l,u,Object.keys(c.from)),Ns(0,c)),P.blockTransition||P.blockKeyframeAnimation?F(b):c.skipBlocking||Zo(u,!1),{$$willAnimate:!0,end:U,start(){if(!p)return g={end:U,cancel:I,resume:null,pause:null},m=new t(g),i(z),m}};function U(){H()}function I(){H(!0)}function H(t){if(p||$&&f)return;p=!0,f=!1,k&&!c.$$skipPreparationClasses&&n.classList.remove(...k.split(" ")),D=_s(k,ds),D&&n.classList.remove(...D.split(" ")),Ms(u,!1),Zo(u,!1),h.forEach(t=>{u.style[t[0]]=""}),r(n,c),Rs(n,c),Object.keys(l).length&&Object.entries(l).forEach(([t,e])=>{e?u.style.setProperty(t,e):u.style.removeProperty(t)}),c.onDone&&c.onDone(),C&&C.length&&n.off(C.join(" "),B);const e=Dt(n,Ho);e&&(clearTimeout(e[0].timer),jt(n,Ho)),m&&m.complete(!t)}function F(t){P.blockTransition&&Zo(u,t),P.blockKeyframeAnimation&&Ms(u,!!t)}function q(){return m=new t({end:U,cancel:I}),i(()=>{}),H(),{$$willAnimate:!1,start:()=>m,end:U}}function B(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==u)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-E,0)>=y&&r>=b&&($=!0,H())}function z(){if(p)return;if(!u.parentNode)return void H();const t=function(t){if($)f&&t&&(f=!1,H());else if(f=!t,V.animationDuration){const t=Ms(u,f);f?h.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(h,t)}},s=N>0&&(V.transitionDuration&&0===T.transitionDuration||V.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function i(){if(p)return;if(F(!1),h.forEach(t=>{const e=t[0];u.style[e]=t[1]}),r(n,c),n.classList.add(...D.split(" ").filter(t=>""!==t)),P.recalculateTimingStyles){if(R=e.cacheKey(u,S,c.addClass,c.removeClass),V=o(u,R,!1),M=V.maxDelay,v=Math.max(M,0),b=V.maxDuration,0===b)return void H();P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0}if(P.applyAnimationDelay&&(M="boolean"!=typeof c.delay&&Ko(c.delay)?parseFloat(c.delay):M,v=Math.max(M,0),V.animationDelay=M,a=zo(M,!0),h.push(a),u.style[a[0]]=a[1]),y=v*Fo,w=b*Fo,c.easing){let t;const e=c.easing;P.hasTransitions&&(t=$s+Es,h.push([t,e]),u.style[t]=e),P.hasAnimations&&(t=gs+Es,h.push([t,e]),u.style[t]=e)}V.transitionDuration&&C.push(ms),V.animationDuration&&C.push(vs),E=Date.now();const t=y+1.5*w,s=E+t,i=Dt(n,Ho)||[];let f=!0;if(i.length){const t=i[0];f=s>t.expectedEndTime,f?clearTimeout(t.timer):i.push(H)}if(f){const e=setTimeout(d,t,!1);i[0]={timer:e,expectedEndTime:s},i.push(H),Pt(n,Ho,i)}C.length&&C.forEach(t=>{n.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Qo(l,u,Object.keys(c.to)),Ls(0,c))}function d(){const t=Dt(n,Ho);if(t){for(let e=1;e<t.length;e++)t[e]();jt(n,Ho)}}s?setTimeout(i,Math.floor(s*N*Fo),!1):i(),g.resume=function(){t(!0)},g.pause=function(){t(!1)}}}}]}function Zo(t,e){const n=e?`-${e}s`:"";return Ps(t,[xs,n]),[xs,n]}const Yo="data-ng-animate",Xo="$ngAnimatePin";function ta(t){const e=this.rules={skip:[],cancel:[],join:[]};function n(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function r(t,e){if(t&&e){const n=function(t){if(!t)return null;const e=t.split(" "),n=Object.create(null);return e.forEach(t=>{n[t]=!0}),n}(e);return t.split(" ").some(t=>n[t])}}function s(t,n,r){return e[t].some(t=>t(n,r))}function i(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}e.join.push(t=>!t.structural&&i(t)),e.skip.push(t=>!t.structural&&!i(t)),e.skip.push((t,e)=>"leave"===e.event&&t.structural),e.skip.push((t,e)=>e.structural&&2===e.state&&!t.structural),e.cancel.push((t,e)=>e.structural&&t.structural),e.cancel.push((t,e)=>2===e.state&&t.structural),e.cancel.push((t,e)=>{if(e.structural)return!1;const n=t.addClass,s=t.removeClass,i=e.addClass,o=e.removeClass;return!(y(n)&&y(s)||y(i)&&y(o))&&(r(n,o)||r(s,i))}),this.$get=[ee.$rootScope,ee.$injector,ee.$$animation,ee.$$AnimateRunner,ee.$templateRequest,function(e,r,o,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",t=>{0===t&&(p(),e.$templateRequest=void 0,e.$postUpdate(()=>{e.$postUpdate(()=>{null===h&&(h=!0)})}))},!0),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),g=function(){return!0},v=$||g,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:g,S=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function x(t,e){return Vs(t,e,{})}const A=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function O(t,e,n){const r=Ts(e);return t.filter(t=>!(t.node===r&&(!n||t.callback===n)))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=Ts(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),e.addEventListener("$destroy",()=>{l.get(r)||_.off(t,e,n)})},off(t,e,n){if(1===arguments.length&&!E(arguments[0])){e=arguments[0];for(const t in f)f[t]=O(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:O(r,e,n))},pin(t,e){ks(I(t),"element","not an element"),ks(I(e),"parentElement","not an element"),Pt(t,Xo,e)},push:(t,c,h,d)=>((h=h||{}).domOperation=d,function(t,c,h){let d=h,p=Array.isArray(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const $=p,m=$&&$.parentNode;d=js(d);const g=new a,O=function(){let t=!1;return function(n){t?n():e.$postUpdate(()=>{t=!0,n()})}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!E(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!E(d.removeClass)&&(d.removeClass=null);d.from&&!w(d.from)&&(d.from=null);d.to&&!w(d.to)&&(d.to=null);if(!$||!v($,c,h)||!C($,d))return U(),g;const _=["enter","move","leave"].indexOf(c)>=0;let R=document.hidden||u.get($);const N=!R&&l.get($)||{},L=!!N.state;R||L&&1===N.state||(R=!function(t,e){const n=document.body,s=r.get("$rootElement");let i,o=t===n||"HTML"===t.nodeName,a=t===s,c=!1,h=u.get(t),d=Mt(t,Xo);d&&(e=d);for(;e&&(a||(a=e===s),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(y(i)||!0===i){const t=Mt(e,fs);b(t)&&(i=t)}if(c&&!1===i)break;if(o||(o=e===n),o&&a)break;e=a||(d=Mt(e,Xo),!d)?e.parentNode:d}return(!c||i)&&!0!==h&&a&&o}($,m));if(R)return document.hidden&&D(g,c,"start",n(d)),U(),document.hidden&&D(g,c,"close",n(d)),g;_&&function(t){const e=t.querySelectorAll(`[${Yo}]`);e.forEach(t=>{const e=parseInt(t.getAttribute(Yo),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}})}($);const V={structural:_,element:p,event:c,addClass:d.addClass,removeClass:d.removeClass,close:U,options:d,runner:g};if(L){if(s("skip",V,N))return 2===N.state?(U(),g):(Vs(p,N,V),N.runner);if(s("cancel",V,N))if(2===N.state)N.runner.end();else{if(!N.structural)return Vs(p,N,V),N.runner;N.close()}else{if(s("join",V,N)){if(2!==N.state)return function(t,e,n){let r="";e&&(r=_s(e,"ng-",!0)),n.addClass&&(r=Ds(r,_s(n.addClass,us))),n.removeClass&&(r=Ds(r,_s(n.removeClass,hs))),r.length&&(n.preparationClasses=r,t.className+=` ${r}`)}(p,_?c:null,d),c=V.event=N.event,d=Vs(p,N,V),N.runner;x(p,V)}}}else x(p,V);let M=V.structural;M||(M="animate"===V.event&&Object.keys(V.options.to||{}).length>0||i(V));if(!M)return U(),T($),g;const P=(N.counter||0)+1;return V.counter=P,j($,1,V),e.$postUpdate(()=>{p=function(t){return t instanceof NodeList?Array.from(t).filter(t=>t.nodeType==Node.ELEMENT_NODE):t.nodeType===Node.ELEMENT_NODE?t:void 0}(t);let e=l.get($);const r=!e;e=e||{};const s=(p.parentElement||[])&&("animate"===e.event||e.structural||i(e));if(r||e.counter!==P||!s)return r&&(S(p,d),Rs(p,d)),(r||_&&e.event!==c)&&(d.domOperation(),g.end()),void(s||T($));c=!e.structural&&i(e,!0)?"setClass":e.event,j($,2);const a=o(p,c,e.options);g.setHost(a),D(g,c,"start",n(d)),a.done(t=>{U(!t);const e=l.get($);e&&e.counter===P&&T($),D(g,c,"close",n(d))})}),g;function D(t,e,n,r){O(()=>{const t=function(t,e,n){const r=[],s=f[n];return s&&s.forEach(s=>{(A.call(s.node,e)||"leave"===n&&A.call(s.node,t))&&r.push(s.callback)}),r}(m,$,e);t.length?(t.forEach(t=>{t(p,n,r)}),k(n,$)):k(n,$)}),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach(e=>t.classList.remove(e)),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach(e=>t.classList.remove(e)),e.activeClasses=null)}(p,d),S(p,d),Rs(p,d),d.domOperation(),g.complete(!t)}}(t,c,h)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(I(t)){const r=t;1===n?e=!u.get(r):(u.has(r)||t.addEventListener("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(Yo),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(Yo,e);const r=l.get(t),s=r?M(r,n):n;l.set(t,s)}}]}function ea(t){this.$get=[ee.$injector,"$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(s,i,o,a){let c=!1;3===arguments.length&&w(o)&&(a=o,o=null),a=js(a),o||(o=s.getAttribute("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],s={};for(let i=0;i<n.length;i++){const o=n[i],a=t.$$registeredAnimations[o];a&&!s[o]&&(r.push(e.get(a)),s[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===i?(e="leave",t="afterLeave"):(e=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,t=i),"enter"!==i&&"move"!==i&&(d=v(s,i,a,h,e)),p=v(s,i,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push(e=>{t=d(e)}),e.length?e.push(t=>{$(),t(!0)}):$(),p&&e.push(e=>{t=p(e)}),f.setHost({end(){s()},cancel(){s(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function s(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(s,a)}function m(){c=!0,$(),Rs(s,a)}function g(t,e,r,s,i){const o=[];return s.forEach(s=>{const a=s[i];a&&o.push(()=>{let s,i,o=!1;const c=function(t){o||(o=!0,(i||(()=>{}))(t),s.complete(!t))};return s=new n({end(){c()},cancel(){c(!0)}}),i=function(t,e,r,s,i){let o;switch(r){case"animate":o=[e,s.from,s.to,i];break;case"setClass":o=[e,l,u,i];break;case"addClass":o=[e,l,i];break;case"removeClass":o=[e,u,i];break;default:o=[e,i]}o.push(s);let a=t.apply(t,o);if(a)if(k(a.start)&&(a=a.start()),a instanceof n)a.done(i);else if(k(a))return a;return()=>{}}(a,t,e,r,t=>{c(!1===t)}),s})}),o}function v(t,e,r,s,i){let o=g(t,e,r,s,i);if(0===o.length){let e,n;"beforeSetClass"===i?(e=g(t,"removeClass",r,s,"beforeRemoveClass"),n=g(t,"addClass",r,s,"beforeAddClass")):"setClass"===i&&(e=g(t,"removeClass",r,s,"removeClass"),n=g(t,"addClass",r,s,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&o.forEach(t=>{e.push(t())}),e.length?n.all(e,t):t(),function(t){e.forEach(e=>{t?e.cancel():e.end()})}}}}}]}ta.$inject=["$animateProvider"],ea.$inject=["$animateProvider"];const na="$$animationRunner",ra="$$animatePrepareClasses";function sa(){const t="ng-animate-ref",e=this.drivers=[];function n(t){!function(t,e){if(Lt(t)){const n=Rt(t,!1),r=n?.data;r&&vt(r,_t(e))&&delete r[_t(e)]}}(t,na)}function r(t){return Dt(t,na)}this.$get=[ee.$rootScope,ee.$injector,ee.$$AnimateRunner,ee.$$rAFScheduler,ee.$$animateCache,function(s,i,o,a,c){const l=[],u=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(h,d,p){p=js(p);const f=["enter","move","leave"].indexOf(d)>=0,$=new o({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),$;let m=ft(h.getAttribute("class"),ft(p.addClass,p.removeClass)),{tempClasses:g}=p;return g&&(m+=` ${g}`,p.tempClasses=null),f&&Pt(h,ra,`ng-${d}-prepare`),function(t,e){Pt(t,na,e)}(h,$),l.push({element:h,classes:m,event:d,structural:f,options:p,beforeStart:function(){g=(g?`${g} `:"")+ps,h.className+=` ${g}`;let t=Dt(h,ra);t&&(h.classList.remove(t),t=null)},close:y}),h.addEventListener("$destroy",function(){const t=r(h);!t||"leave"===d&&p.$$domOperationFired||t.end()}),l.length>1||s.$postUpdate(()=>{const n=[];l.forEach(t=>{r(t.element)?n.push(t):t.close()}),l.length=0;const s=function(e){const n=[],r={};e.forEach((e,s)=>{const{element:i}=e,o=i,{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),s=[];return r.forEach(e=>{const n=e.getAttribute(t);n&&n.length&&s.push(e)}),s}(o):[];if(l.length){const e=c?"to":"from";l.forEach(n=>{const i=n.getAttribute(t);r[i]=r[i]||{},r[i][e]={animationID:s,element:n}})}else n.push(e)});const s={},i={};return Object.values(r).forEach(t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,i=t.toString();return void(s[i]||(s[i]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!i[l]){const t=i[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:v(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}i[l].anchors.push({out:r.element,in:o.element})}),n}(n),o=[];s.forEach(t=>{const n=t.from?t.from.element:t.element;let s=p.addClass;s=(s?`${s} `:"")+ps;const a=c.cacheKey(n,t.event,s,p.removeClass);o.push({element:n,domNode:n,fn:function(){let n;const s=t.close;if(c.containsCachedAnimationWithoutDuration(a))return void s();t.beforeStart();if(r(t.anchors?t.from.element||t.to.element:t.element)){const r=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);r&&(n=r.start)}if(n){const e=n();e.done(t=>{s(!t)}),function(t,e){t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element);function n(t){const n=r(t);n&&n.setHost(e)}}(t,e)}else s()}})});const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)s(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let s=n.length,i=0,o=[];for(r=0;r<n.length;r++){const t=n[r];s<=0&&(s=i,i=0,e.push(o),o=[]),o.push(t),t.children.forEach(t=>{i++,n.push(t)}),s--}return o.length&&e.push(o),e}(e);function s(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let i,{parentNode:o}=n;for(r.set(n,t);o;){if(i=r.get(o),i){i.processed||(i=s(i));break}o=o.parentNode}return(i||e).children.push(t),t}}(o);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:s}=r;if(u[t][n]=r.fn,0===t){jt(s,ra);continue}const i=Dt(s,ra);i&&s.classList.add(i)}}a(u)}),$;function v(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const s=t[r];if("ng-"!==s.substring(0,3))for(let t=0;t<e.length;t++)if(s===e[t]){n.push(s);break}}return n.join(" ")}function y(t){n(h),u(h,p),Rs(h,p),p.domOperation(),g&&g.split(" ").forEach(t=>h.classList.remove(t)),$.complete(!t)}}}]}class ia{constructor(){this.queue=[],this.cancelFn=null}nextTick(){if(!this.queue.length)return;this.queue.shift().forEach(t=>t()),this.cancelFn||(this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,this.nextTick()}))}$get(){const t=t=>{this.queue=this.queue.concat(t),this.nextTick()};return t.queue=this.queue,t.waitUntilQuiet=t=>{null!==this.cancelFn&&(window.cancelAnimationFrame(this.cancelFn),this.cancelFn=null),this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,t(),this.nextTick()})},t}}const oa="$animId";let aa=0;const ca=new Map;function la(){return{cacheKey(t,e,n,r){const{parentNode:s}=t,i=[s[oa]??(s[oa]=++aa),e,t.getAttribute("class")];return n&&i.push(n),r&&i.push(r),i.join(" ")},containsCachedAnimationWithoutDuration(t){const e=ca.get(t);return!!e&&!e.isValid},flush(){ca.clear()},count:t=>ca.get(t)?.total??0,get:t=>ca.get(t)?.value,put(t,e,n){const r=ca.get(t);r?(r.total++,r.value=e):ca.set(t,{total:1,value:e,isValid:n})}}}function ua(){this.$get=[la]}const ha="ng-animate-shim",da="ng-anchor",pa="ng-anchor-out",fa="ng-anchor-in";function $a(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,s=n,i=(o=s).parentNode&&11===o.parentNode.nodeType||r.contains(s)?s:r;var o;return function(n){return n.from&&n.to?function(n,s,o){const c=a(n),l=a(s),u=[];if(o.forEach(n=>{const s=function(n,s){const o=n.cloneNode(!0),a=ma(p(o));let c;n[0].classList.add(ha),s[0].classList.add(ha),o.classList.add(da),i.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,$(),t.complete()}),n;$(),t.complete()}),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let s=n[t];switch(t){case"top":s+=r.scrollTop;break;case"left":s+=r.scrollLeft}e[t]=`${Math.floor(s)}px`}),e}function d(){const e=t(o,{addClass:pa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.getAttribute("class")||""}function f(){const e=ma(p(s)),n=ga(e,a),r=ga(a,e),i=t(o,{to:h(s),addClass:`${fa} ${n}`,removeClass:`${pa} ${r}`,delay:!0});return i.$$willAnimate?i:null}function $(){o.remove(),n[0].classList.remove(ha),s[0].classList.remove(ha)}}(n.out,n.in);s&&u.push(s)}),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach(e=>{t.push(e.start())});const n=new e({end:r,cancel:r});return e.all(t,t=>{n.complete(t)}),n;function r(){t.forEach(t=>{t.end()})}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=Ds(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function ma(t){return t.replace(/\bng-\S+\b/g,"")}function ga(t,e){return E(t)&&(t=t.split(" ")),E(e)&&(e=e.split(" ")),t.filter(t=>-1===e.indexOf(t)).join(" ")}function va(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),s=n(t.to);if(!r&&!s)return;return{start(){const t=[];r&&t.push(r.start()),s&&t.push(s.start()),e.all(t,function(t){n.complete(t)});const n=new e({end:i(),cancel:i()});return n;function i(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(e){const{element:n,event:r,options:s,classes:i}=e;return t(n,r,i,s)}}]}function ya(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,s,i){let o,a;e.$watch(r.ngAnimateSwap||r.for,e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&i((e,r)=>{o=e,a=r,t.enter(e,null,n)})})}}}function ba(t){return{link(e,n,r){const s=r.ngAnimateChildren;function i(t){Pt(n,fs,t="on"===t||"true"===t)}E(s)&&0===s.length?Pt(n,fs,!0):(i(t(s)(e)),r.$observe("ngAnimateChildren",i))}}}function wa(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(r.every(Array.isArray))return i=e,(s=t).length===i.length&&Pa(s,i).reduce((t,e)=>t&&wa(e[0],e[1]),!0);var s,i;if(r.every(A))return t.getTime()===e.getTime();if(r.every(_))return t.toString()===e.toString();if(r.every(k))return!0;if([k,Array.isArray,A,_].some(t=>!!t(r)))return!1;const o={};for(const n in t){if(!wa(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function Ea(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}function Ca(t,e){const n=t.indexOf(e);return-1!==n&&t.splice(n,1),t}function Sa(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,xa(t||{},Object.keys(n)))}function xa(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Aa(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>(e[n]=t[n],e),{})}function Oa(t,e){const n=Array.isArray(t),r=n?[]:{},s=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach(([t,n])=>{e(n,t)&&s(n,t)}),r}function ka(t,e){let n;return Object.entries(t).forEach(([t,r])=>{n||e(r,t)&&(n=r)}),n}function _a(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach(([t,r])=>n[t]=e(r,t)),n}$a.$inject=["$$animationProvider"],va.$inject=["$$animationProvider"],ya.$inject=["$animate"],ba.$inject=[ee.$interpolate];const Ta=(t,e)=>t&&e,ja=(t,e)=>t||e,Ra=(t,e)=>t.concat(e);function Na(t,e){return t.push(e),t}const La=(t,e)=>t.includes(e)?t:Na(t,e),Va=t=>t.reduce(Ra,[]),Ma=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function Pa(...t){if(0===t.length)return[];const e=t.reduce((t,e)=>Math.min(e.length,t),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map(t=>t[r]))}return n}function Da(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!E(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function Ua(t){return t.length>0?t[t.length-1]:void 0}function Ia(t,e){return e&&Object.keys(e).forEach(t=>delete e[t]),e||(e={}),Object.assign(e,t)}const Ha=t=>t.catch(()=>0)&&t,Fa=t=>Ha(Promise.reject(t));function qa(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}const Ba=qa((t,e,n)=>n&&n[t]===e),za=t=>{const e=t.split(".");return t=>e.reduce((t,e)=>t&&t[e],t)};function Wa(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}}const Ka=t=>()=>t;function Ga(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}class Qa{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,e){return t==e}$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,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new Ja(this,t)}}function Ja(t,e){function n(t){return Array.isArray(t)?t:b(t)?[t]:[]}function r(t,r){return function(s){if(Array.isArray(s)&&0===s.length)return s;const i=_a(n(s),t);return!0===r?0===Oa(i,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(i)}}function s(t){return function(e,r){const s=n(e),i=n(r);if(s.length!==i.length)return!1;for(let e=0;e<s.length;e++)if(!t(s[e],i[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(e=>{const n=t[e].bind(t),i="equals"===e?s:r;this[e]=i(n)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class Za{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=xa(Za.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Ea(_a(this.defaultTypes,(t,e)=>new Qa(Object.assign({name:e},t))),{})}type(t,e,n){if(!b(e))return this.types[t];if(vt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new Qa(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){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 e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Wa(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(Za.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!S(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Wa(Boolean),pattern:/[01]/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce((n,r)=>n&&t[r]()===e[r](),!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:Wa(Object),equals:wa,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:wa})})}();class Ya{constructor(){this.paramTypes=new Za,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=b(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(b(t)&&!0!==t&&!1!==t&&!E(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=b(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=b(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return b(e)?this:r}}class Xa{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),s={},i=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||i.indexOf(n[t])>=0||(i.push(n[t]),s[n[t]]=this[n[t]])}return Object.assign({},s,t)}}class tc{constructor(t=[],e=null){this._items=Array.isArray(t)?[...t]:[],this._limit=Number.isInteger(e)&&e>0?e:null,this._evictListeners=[]}onEvict(t){this._evictListeners.push(t)}enqueue(t){return this._items.push(t),null!==this._limit&&this._items.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return void 0!==t&&this._evictListeners.forEach(e=>e(t)),t}dequeue(){return this._items.length>0?this._items.shift():void 0}clear(){const t=[...this._items];return this._items.length=0,t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return-1!==e&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){return this._items[0]}}class ec{constructor(){this.params=new Xa,this.lastStartedTransitionId=-1,this.transitionHistory=new tc([],1),this.successfulTransitions=new tc([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function nc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(t=>!E(t)).length||n.filter(t=>!k(t)).length)}return k(t)}function rc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}function sc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function ic(t){const e=oc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,s=t.name||"";return s&&r.match(/function \(/)?"function "+s+r.substring(9):r}function oc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function ac(t){const e=[],n=Ga([[y,Ka("undefined")],[C,Ka("null")],[rc,Ka("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>w(t)&&!Array.isArray(t)&&t.constructor!==Object&&k(t.toString),t=>t.toString()],[nc,ic],[Ka(!0),t=>t]]);function r(t){if(w(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return y(t)?r(t):JSON.stringify(t,(t,e)=>r(e)).replace(/\\"/g,'"')}function cc(t,e){return E(Ua(t))&&E(e)?t.slice(0,-1).concat(Ua(t)+e):Na(t,e)}function lc(t){if(!t)return"ng-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${e})]`}function uc(t){return x(t)?hc[t]:hc[hc[t]]}const hc={RESOLVE:0,TRANSITION:1,HOOK:2,UIVIEW:3,VIEWCONFIG:4},dc=za("$id"),pc=za("router.$id"),fc=t=>`Transition #${dc(t)}-${pc(t)}`;const $c=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(hc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>hc[t])),e.map(uc).forEach(e=>this._enabled[e]=t)}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[uc(t)]}traceTransitionStart(t){this.enabled(hc.TRANSITION)&&console.log(`${fc(t)}: Started -> ${ac(t)}`)}traceTransitionIgnored(t){this.enabled(hc.TRANSITION)&&console.log(`${fc(t)}: Ignored <> ${ac(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(hc.HOOK))return;const r=za("traceData.hookType")(n)||"internal",s=za("traceData.context.state.name")(n)||za("traceData.context")(n)||"unknown",i=ic(t.registeredHook.callback);console.log(`${fc(e)}: Hook -> ${r} context: ${s}, ${sc(200,i)}`)}traceHookResult(t,e){this.enabled(hc.HOOK)&&console.log(`${fc(e)}: <- Hook returned: ${sc(200,ac(t))}`)}traceResolvePath(t,e,n){this.enabled(hc.RESOLVE)&&console.log(`${fc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(hc.RESOLVE)&&console.log(`${fc(e)}: <- Resolved ${t} to: ${sc(200,ac(t.data))}`)}traceError(t,e){this.enabled(hc.TRANSITION)&&console.log(`${fc(e)}: <- Rejected ${ac(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(hc.TRANSITION)&&console.log(`${fc(e)}: <- Success ${ac(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(hc.UIVIEW)&&console.log(`ng-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${lc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(hc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(hc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${sc(200,e)}`)}traceViewSync(t){if(!this.enabled(hc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map(({ngView:t,viewConfig:r})=>{const s=t&&t.fqn,i=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:s,[n]:i}}).sort((t,n)=>(t[e]||"").localeCompare(n[e]||""));console.table(r)}traceViewServiceEvent(t,e){this.enabled(hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ng-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${lc(e)}`)}};let mc="LAZY",gc="WAIT";class vc{constructor(t,e,n,r,s){this.resolved=!1,this.promise=void 0,t instanceof vc?Object.assign(this,t):k(e)?(at(!S(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=s,this.resolved=void 0!==s,this.promise=this.resolved?Promise.resolve(this.data):void 0):w(t)&&t.token&&(vt(t,"resolveFn")||vt(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 e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||mc,async:e.async||n.async||gc}}resolve(t,e){const n=t.findNode(this),r=n&&n.state,s=this.getPolicy(r).async,i=k(s)?s:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(n=>n.get(t,e)))).then(t=>this.resolveFn.apply(null,t)).then(i).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,$c.traceResolvableResolved(this,e),this.data)),this.promise}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${ac(this.token)}, requires: [${this.deps.map(ac)}])`}clone(){return new vc(this)}}vc.fromData=(t,e)=>new vc(t,()=>e,null,null,e);class yc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${ac(this.params())}`}withState(t){return new yc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new yc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new yc(this._stateRegistry,this._identifier,this._params,n)}}yc.isDef=t=>t&&t.state&&(E(t.state)||w(t.state)&&E(t.state.name));const bc=0,wc=1,Ec=2;function Cc(t,e,n){const r=!1===n.reloadOnSearch&&e===wc||void 0,s=ka([n.dynamic,r],b),i=b(s)?{dynamic:s}:{},o=function(t){function e(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,e.__cacheable=!0;const n=nc(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(i,o)}class Sc{constructor(t,e,n,r,s){const i=Cc(t,n,s);e=function(t,e,n,r,s){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&s.type(t.type))return s.type(t.type);if(e)return e;if(!t.type){const t=n===Ec?"any":n===bc?"path":n===wc?"query":"string";return s.type(t)}return t.type instanceof Qa?t.type:s.type(t.type)}(i,e,n,t,r.paramTypes);const o=function(){const e={array:n===wc&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,i).array}();e=o?e.$asArray(o,n===wc):e;const a=void 0!==i.value||n===wc,c=b(i.dynamic)?!!i.dynamic:!!e.dynamic,l=b(i.raw)?!!i.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!b(r)||null==r)return n;if(!0===r||E(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(i,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const s=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],i=Array.isArray(t.replace)?t.replace:[];E(r)&&i.push({from:r,to:void 0});const o=_a(i,t=>t.from);return Oa(s,t=>-1===o.indexOf(t.from)).concat(i)}(i,o,a,u),d=b(i.inherit)?!!i.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=i}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),y(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.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.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===wc}validates(t){if((y(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=e;return!(E(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter(t=>!t.type.equals(e[t.id],n[t.id]))}static equals(t,e={},n={}){return 0===Sc.changed(t,e,n).length}static validates(t,e={}){return t.map(t=>t.validates(e[t.id])).reduce(Ta,!0)}}class xc{constructor(t){if(t instanceof xc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map(t=>t.clone())}}clone(){return new xc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((e,n)=>{return Da(e,[(r=n).id,r.value(t[r.id])]);var r},{}),this}parameter(t){return ka(this.paramSchema,Ba("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Sc.changed(n,this.paramValues,t.paramValues)}}class Ac{static buildPath(t){const e=t.params();return t.$state().path.map(t=>new xc(t).applyRawParams(e))}static buildToPath(t,e){const n=Ac.buildPath(e);return e.options().inherit?Ac.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter(t=>n.includes(t.state)).forEach(n=>{const r=Object.values(n.state.views||{}),s=Ac.subPath(e,t=>t===n),i=r.map(e=>t.createViewConfig(s,e));n.views=i.reduce(Ra,[])})}static inheritParams(t,e,n=[]){const r=t.map(t=>t.paramSchema).reduce(Ra,[]).filter(t=>!t.inherit).map(t=>t.id);return e.map(function(e){let s=Object.assign({},e&&e.paramValues);const i=xa(s,n);s=Aa(s,n);const o=Aa(function(t,e){const n=ka(t,Ba("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(s,o,i);return new xc(e.state).applyRawParams(a)})}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let s=0;const i=(t,e)=>t.equals(e,Ac.nonDynamicParams);for(;s<r&&t[s].state!==n&&i(t[s],e[s]);)s++;let o,a,c,l,u;o=t,a=o.slice(0,s),c=o.slice(s);const h=a.map(function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r});return l=e.slice(s),u=h.concat(l),{from:o,to:u,retained:a,retainedWithToParams:h,exiting:c,entering:l}}static matching(t,e,n){let r=!1;return Pa(t,e).reduce((t,[e,s])=>(r=r||!e.equals(s,n),r?t:t.concat(e)),[])}static equals(t,e,n){return t.length===e.length&&Ac.matching(t,e,n).length===t.length}static subPath(t,e){const n=ka(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,e)=>Object.assign(t,e.paramValues),{})}}function Oc(t,e){return new yc(t,e.at(-1).state,e.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}),{})}const kc={LAZY:"LAZY",EAGER:"EAGER"},_c=[kc.EAGER,kc.LAZY],Tc=[kc.EAGER];class jc{constructor(t){this._path=t}getTokens(){return this._path.reduce((t,e)=>t.concat(e.resolvables.map(t=>t.token)),[]).reduce(La,[])}getResolvable(t){return Ua(this._path.map(t=>t.resolvables).reduce(Ra,[]).filter(e=>e.token===t))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new jc(Ac.subPath(this._path,e=>e.state===t))}addResolvables(t,e){const n=ka(this._path,Ba("state",e)),r=t.map(t=>t.token);n.resolvables=n.resolvables.filter(t=>-1===r.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",e){const n=(_c.includes(t)?t:"LAZY")===kc.EAGER?Tc:_c;$c.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),s=this._path.reduce((t,s)=>{const i=s.resolvables.filter(r(n,"when")),o=i.filter(r(["NOWAIT"],"async")),a=i.filter(t=>!r(["NOWAIT"],"async")(t)),c=this.subContext(s.state),l=t=>t.get(c,e).then(e=>({token:t.token,value:e}));return o.forEach(l),t.concat(a.map(l))},[]);return Promise.all(s)}findNode(t){return ka(this._path,e=>e.resolvables.includes(t))}getDependencies(t){const e=this.findNode(t),n=(Ac.subPath(this._path,t=>t===e)||this._path).reduce((t,e)=>t.concat(e.resolvables),[]).filter(e=>e!==t);return t.deps.map(t=>{const e=n.filter(e=>e.token===t);if(e.length)return Ua(e);const r=window.angular.$injector.get(t);if(y(r))throw new Error("Could not find Dependency Injection token: "+ac(t));return new vc(t,()=>r,[],r)})}}const Rc=(t,e)=>t.reduce((t,n)=>t||b(e[n]),!1);function Nc(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(b(t.views)&&Rc(r,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): ${r.filter(e=>b(t[e])).join(", ")}`);const s={},i=t.views||{$default:xa(t,r)};return Object.entries(i).forEach(([r,i])=>{if(r=r||"$default",E(i)&&(i={component:i}),i=Object.assign({},i),Rc(e,i)&&Rc(n,i))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);i.resolveAs=i.resolveAs||"$resolve",i.$context=t,i.$name=r;const o=Vc.normalizeUIViewTarget(i.$context,i.$name);i.$ngViewName=o.ngViewName,i.$ngViewContextAnchor=o.ngViewContextAnchor,s[r]=i}),s}let Lc=0;class Vc{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=Lc++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=new jc(this.path),e=this.path.reduce((t,e)=>Object.assign(t,e.paramValues),{}),n=[Promise.resolve(this.factory.fromConfig(this.viewDecl,e,t)),Promise.resolve(this.getController(t))];return Promise.all(n).then(t=>($c.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const e=this.viewDecl.controllerProvider;if(!nc(e))return this.viewDecl.controller;const n=Ae(e),r=Array.isArray(e)?Ua(e):e;return new vc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",s=E(n[1])?n[1]:"^";const i=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);i&&(s=i[1],r=i[2]),"!"===r.charAt(0)&&(r=r.substring(1),s="");if(/^(\^(?:\.\^)*)$/.exec(s)){const e=s.split(".").reduce(t=>t.parent,t);s=e.name}else"."===s&&(s=t.name);return{ngViewName:r,ngViewContextAnchor:s}}}class Mc{constructor(){this._ngViews=[],this._viewConfigs=[],this._listeners=[],this.viewConfigFactory(function(){let t=null;return(e,n)=>(t=t||window.angular.$injector.get("$templateFactory"),new Vc(e,n,t))}())}$get=()=>this;rootViewContext(t){return this._rootContext=t||this._rootContext}viewConfigFactory(t){this.viewConfigFactory=t}createViewConfig(t,e){const n=this.viewConfigFactory;if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);return n(t,e)}deactivateViewConfig(t){$c.traceViewServiceEvent("<- Removing",t),Ca(this._viewConfigs,t)}activateViewConfig(t){$c.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map(t=>[t.fqn,t]).reduce(Da,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=qa((t,e,n,r)=>e*(t(n)-t(r))),r=t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},s=this._ngViews.sort(n(function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)},1)).map(r=>{const s=this._viewConfigs.filter(Mc.matches(t,r));return s.length>1&&s.sort(n(e,-1)),{ngView:r,viewConfig:s[0]}}),i=s.map(t=>t.viewConfig),o=this._viewConfigs.filter(t=>!i.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));s.forEach(t=>{r(t)});const a=s.concat(o);this._listeners.forEach(t=>t(a)),$c.traceViewSync(a)}registerUIView(t){$c.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter(e=>e.fqn===t.fqn).length&&$c.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?($c.traceViewServiceUIViewEvent("<- Deregistering",t),Ca(e,t)):$c.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(t=>t.fqn)}active(){return this._ngViews.filter(t=>t.$config).map(t=>t.name)}}Mc.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,s=r.$ngViewName.split("."),i=e.fqn.split(".");if(!wa(s,i.slice(0-s.length)))return!1;const o=1-s.length||void 0,a=i.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const Pc={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},Dc={TRANSITION:0,STATE:1},Uc=2,Ic=3,Hc=4,Fc=5,qc=6;let Bc=0;class zc{static superseded(t,e){const n=new zc(Uc,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return zc.superseded(t,{redirected:!0})}static invalid(t){return new zc(Hc,"This transition is invalid",t)}static ignored(t){return new zc(Fc,"The transition was ignored",t)}static aborted(t){return new zc(Ic,"The transition has been aborted",t)}static errored(t){return new zc(qc,"The transition errored",t)}static normalize(t){return Wa(zc)(t)?t:zc.errored(t)}constructor(t,e,n){this.$id=Bc++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():ac(e);var e;const{$id:n,type:r,message:s}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${s}, detail: ${t})`}toPromise(){return Object.assign(Fa(this),{_transitionRejection:this})}}class Wc{constructor(){this.eventBus=Gc}$get=()=>this.eventBus}class Kc{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const s=this.key;return this.subscriptions[s]=t,this.subscriptions[s+1]=e,this.subscriptions[s+2]=n,this.key=s+3,r.push(s),s}subscribeOnce(t,e,n=null){let r=!1;const s=this.subscribe(t,(...t)=>{r||(r=!0,this.unsubscribeByKey(s),e.apply(n,t))},this);return s}static runAsync_(t,e,n){Promise.resolve().then(()=>{t.apply(e,n)})}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,s=r.find(r=>t[r+1]===e&&t[r+2]===n);if(void 0!==s)return this.unsubscribeByKey(s)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter(e=>e!==t)),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];Kc.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Gc=new Kc(!0),Qc={current:()=>{},transition:null,traceData:{},bind:null};class Jc{static chain(t,e){return t.reduce((t,e)=>t.then(()=>e.invokeHook()),e||Promise.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(rc(r)){const s=t.slice(n+1);return Jc.chain(s,r).then(()=>{e()})}}return e()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===Pc.RUN&&!this.options.transition.isActive(),this.options=Sa(r,Qc),this.type=n.eventType}logError(t){Gc.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;$c.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),s=t=>zc.normalize(t).toPromise(),i=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&rc(t)?t.catch(s).then(o,i):o(t)}catch(t){return i(zc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(rc(t)?t.then(t=>this.handleHookResult(t)):($c.traceHookResult(t,this.transition),!1===t?zc.aborted("Hook aborted transition").toPromise():t instanceof yc?zc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?zc.aborted().toPromise():this.isSuperseded()?zc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${za("traceData.hookType")(t)||"internal"} context: ${za("traceData.context.state.name")(t)||za("traceData.context")(t)||"unknown"}, ${sc(200,oc(e.callback))}`}}Jc.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Jc.LOG_REJECTED_RESULT=t=>e=>{rc(e)&&e.catch(e=>t.logError(zc.normalize(e)))},Jc.LOG_ERROR=t=>e=>t.logError(e),Jc.REJECT_ERROR=()=>t=>Fa(t),Jc.THROW_ERROR=()=>t=>{throw t};class Zc{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new Zc(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function Yc(t,e,n){const r=E(e)?[e]:e;return!!(k(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new Zc(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class Xc{constructor(t,e,n,r,s,i={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=s,this.invokeCount=0,this._deregistered=!1,this.priority=i.priority||0,this.bind=i.bind||null,this.invokeLimit=i.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter(t=>Yc(t.state,e,n));return r.length?r:null}_getDefaultMatchCriteria(){return _a(this.tranSvc._getPathTypes(),()=>!0)}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._getPathTypes()).reduce((r,s)=>{const i=s.scope===Dc.STATE,o=t[s.name]||[],a=i?o:[Ua(o)];return r[s.name]=this._matchingNodes(a,n[s.name],e),r},{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every(t=>t)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function tl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],s=t=>Ca(r,t);function i(t,i,o={}){const a=new Xc(e,n,i,t,s,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=i,i}class el{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._getEvents(t).map(t=>this.buildHooks(t)).reduce(Ra,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const s={transition:e,current:e.options().current};return r.map(r=>r.matches(n,e)[t.criteriaMatchPath.name].map(n=>{const i=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},s),o=t.criteriaMatchPath.scope===Dc.STATE?n.state.self:null,a=new Jc(e,o,r,i);return{hook:r,node:n,transitionHook:a}})).reduce(Ra,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,s=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==s?s:n.hook.priority-e.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,e,n){const r=t.hookPhase===Pc.CREATE,s=this.transition.transitionService;return(r?[s]:[this.transition,s]).map(e=>e.getHooks(t.name)).filter(Ma(Array.isArray,`broken event named: ${t.name}`)).reduce(Ra,[]).filter(t=>t.matches(e,n))}}class nl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Promise.withResolvers(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new el(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ka(this)},e.options()),this.$id=n._transitionCount++;const s=Ac.buildToPath(t,e);this._treeChanges=Ac.treeChanges(t,s,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(Pc.CREATE);Jc.invokeHooks(i,()=>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.transitionService._getEvents().filter(t=>t.hookPhase!==Pc.CREATE).forEach(t=>tl(this,this.transitionService,t))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map(t=>t.state);Ac.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return Ua(this._treeChanges.from).state}$to(){return Ua(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof nl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Yc(this.$to(),t.to,this)||t.from&&!Yc(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}))}getResolveTokens(t="to"){return new jc(this._treeChanges[t]).getTokens()}addResolvable(t,e){void 0===e&&(e=""),t=Wa(vc)(t)?t:new vc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,s=ka(r,t=>t.state.name===n);at(!!s,`targetNode not found ${n}`);new jc(r).addResolvables([t],s.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return _a(this._treeChanges.entering,t=>t.state).map(t=>t.self)}exiting(){return _a(this._treeChanges.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return _a(this._treeChanges.retained,t=>t.state).map(t=>t.self)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Ba("state",e)):n,n.map(t=>t.views).reduce(Ra,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const s=Object.assign({},this.options(),t.options(),r);t=t.withOptions(s,!0);const i=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=i._treeChanges.entering;return Ac.matching(a,o,Ac.nonDynamicParams).filter(e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n}).forEach((t,e)=>{t.resolvables=o[e].resolvables}),i}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(Pa(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(ja,!1))return;const e=t.to.map(t=>t.paramSchema),[n,r]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return Pa(e,n,r).map(([t,e,n])=>Sc.changed(t,e,n)).reduce(Ra,[])}dynamic(){const t=this._changedParams();return!!t&&t.map(t=>t.dynamic).reduce(ja,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=Ac.matching(t,n);return t.length===r.filter(t=>!e||!t.state.includes[e.name]).length},r=this._treeChanges,s=t&&t._treeChanges;return s&&n(s.to,r.to)&&n(s.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=t=>this._hookBuilder.buildHooksForPhase(t),e=t(Pc.BEFORE);return Jc.invokeHooks(e,()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),$c.traceTransitionStart(this),Promise.resolve()}).then(()=>{const e=t(Pc.RUN),n=Promise.resolve();return Jc.invokeHooks(e,()=>n)}).then(()=>{$c.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to());this._hookBuilder.buildHooksForPhase(Pc.SUCCESS).forEach(t=>{t.invokeHook()})},e=>{$c.traceError(e,this),this.success=!1,this._deferred.reject(e),this._error=e;t(Pc.ERROR).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){y(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return zc.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter(t=>!t.validates(n[t.id]));if(r.length){const e=r.map(t=>`[${t.id}:${ac(n[t.id])}]`).join(", "),s=`The following parameter values are not valid for state '${t.name}': ${e}`;return zc.invalid(s)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Aa(t,["#"]);return`Transition#${this.$id}( '${w(t)?t.name:t}'${ac(n(this._treeChanges.from.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{})))} -> ${this.valid()?"":"(X) "}'${w(e)?e.name:e}'${ac(n(this.params()))} )`}}nl.diToken=nl;const rl=["$transition$",nl];function sl(t){const e=Object.values(t.treeChanges()).reduce(Ra,[]).reduce(La,[]),n=t=>rl.includes(t.token)?vc.fromData(t.token,null):t;e.forEach(t=>{t.resolvables=t.resolvables.map(n)})}function il(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const ol=il("onExit"),al=il("onRetain"),cl=il("onEnter"),ll=1e3,ul=t=>new jc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),hl=(t,e)=>new jc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(()=>{}),dl=t=>new jc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),pl=t=>{const e=t.views("entering");if(e.length)return Promise.all(e.map(t=>Promise.resolve(t.load()))).then(()=>{})},fl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,Ia(t.params(),e.params)},{priority:1e4}),t.promise.then(n,n)};function $l(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const s=t.entering().filter(t=>!!t.$$state().lazyLoad).map(e=>ml(t,e,r));return Promise.all(s).then(function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),s=r&&r.rule;if(s&&"STATE"===s.type){const n=s.state,i=r.match;return e.target(n,i,t.options())}n.sync()})})}function ml(t,e,n){const r=e.$$state().lazyLoad;let s=r._promise;if(!s){const i=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Promise.reject(t));s=r._promise=Promise.resolve(r(t,e)).then(function(t){t&&Array.isArray(t.states)&&t.states.forEach(t=>n.register(t));return t}).then(i,o)}return s}class gl{constructor(t,e,n,r,s=!1,i=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=s,this.getResultHandler=i,this.getErrorHandler=o,this.synchronous=a}}function vl(t){const e=t._ignoredReason();if(!e)return;$c.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),zc.ignored().toPromise()}function yl(t){if(!t.valid())throw new Error(t.error().toString())}let bl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class wl{static $inject=ne([ee.$router,ee.$view]);constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(sl)}$get=[ee.$state,ee.$url,ee.$stateRegistry,ee.$view,(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=$l(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},t=>{const r=t.options(),s=e;if("url"!==r.source&&r.location&&s.$current.navigable){const t={replace:"replace"===r.location};n.push(s.$current.navigable.url,s.globals.params,t)}n.update(!0)},{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function s(e){if(e)return e instanceof yc?e:E(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return k(n)?Promise.resolve(n(t)).then(s):s(n)})})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach(t=>e.deactivateViewConfig(t)),n.forEach(t=>{e.activateViewConfig(t)}),e.sync())})})(this,r),this)];create(t,e){return new nl(t,e,this,this.globals)}_defineCoreEvents(){const t=Pc,e=Jc,n=this._criteriaPaths,r=!1,s=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,s),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=Dc;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,s=!1,i=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){const c=new gl(t,e,n,r,s,i,o,a);this._eventTypes.push(c),tl(this,this,c)}_getEvents(t){return(b(t)?this._eventTypes.filter(e=>e.hookPhase===t):this._eventTypes.slice()).sort((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n})}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(vc.fromData(nl,t),""),t.addResolvable(vc.fromData("$transition$",t),""),t.addResolvable(vc.fromData("$stateParams",t.params()),""),t.entering().forEach(e=>{t.addResolvable(vc.fromData("$state$",e),e)})}),t.ignored=(t=>t.onBefore({},vl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},yl,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},ol))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},al))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},cl))(this),t.eagerResolve=(t=>t.onStart({},ul,{priority:ll}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ka(!0)},hl,{priority:ll}))(this),t.resolveAll=(t=>t.onFinish({},dl,{priority:ll}))(this),t.loadViews=(t=>t.onFinish({},pl))(this),t.updateGlobals=(t=>t.onCreate({},fl))(this),t.lazyLoad=$l(this)}}const El=dt("$stateProvider");class Cl{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerProvider","$transitionsProvider"];constructor(t,e,n){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.$injector=n,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof zc?new Error(t.toString()):new Error(t)},Gc.subscribe("$stateService:defaultErrorHandler",t=>this.defaultErrorHandler()(t))}$get=()=>this;decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw El("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw El("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Oc(this.stateRegistry,t),r=this.globals,s=()=>r.transitionHistory.peekTail(),i=s(),o=new tc(this.invalidCallbacks.slice()),a=this.$injector,c=t=>{if(!(t instanceof yc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?s()!==i?zc.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):zc.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?zc.invalid(e.error()).toPromise():Promise.resolve(r(e,n,a)).then(c).then(e=>e||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ca(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!b(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Sa(n,{relative:this.$current,inherit:!0},bl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(w(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${E(n.reload)?n.reload:n.reload.name}'`);return new yc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t._treeChanges.to:(()=>[new xc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Sa(n,bl);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const s=this.target(t,e,n),i=this.getCurrentPath();if(!s.exists())return this._handleInvalidTargetState(i,s);if(!s.valid())return Fa(s.error());if(!1===n.supercede&&r())return zc.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 o=t=>e=>{if(e instanceof zc){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===Fc)return n&&this.urlService.update(),Promise.resolve(this.globals.current);const r=e.detail;if(e.type===Uc&&e.redirected&&r instanceof yc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===Ic)return n&&this.urlService.update(),Promise.reject(e)}return this.defaultErrorHandler()(e),Promise.reject(e)},a=this.transitionService.create(i,s),c=a.run().catch(o(a));return Ha(c),Object.assign(c,{transition:a})}is(t,e,n){n=Sa(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return;if(this.$current!==r)return!1;if(!e)return!0;const s=r.parameters({inherit:!0,matchingKeys:e});return Sc.equals(s,Sc.values(s,e),this.globals.params)}includes(t,e,n){n=Sa(n,{relative:this.$current});const r=E(t)&&Zc.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const s=this.stateRegistry.matcher.find(t,n.relative),i=this.$current.includes;if(!b(s))return;if(!b(i[s.name]))return!1;if(!e)return!0;const o=s.parameters({inherit:!0,matchingKeys:e});return Sc.equals(o,Sc.values(o,e),this.globals.params)}href(t,e,n){n=Sa(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const s=r&&n.lossy?r.navigable:r;return s&&void 0!==s.url&&null!==s.url?this.urlService.href(s.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),s=Oc(this.stateRegistry,r);return ml(e=e||this.transitionService.create(r,s),n)}}class Sl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[ee.$anchorScroll,t=>this.enabled?t:async function(t){return setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class xl{constructor(){this._useHttp=!1}$get=[ee.$http,ee.$templateCache,ee.$templateRequest,ee.$injector,(t,e,n,r)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$injector=r,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>Promise.resolve(t).then(t=>({template:t})),s=t=>Promise.resolve(t).then(t=>({component:t}));switch((t=>b(t.template)?"template":b(t.templateUrl)?"templateUrl":b(t.templateProvider)?"templateProvider":b(t.component)?"component":b(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return s(t.component);case"componentProvider":return s(this.fromComponentProvider(t.componentProvider,n));default:return r("<ng-view></ng-view>")}}fromString(t,e){return k(t)?t(e):t}fromUrl(t,e){return k(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,e,n){const r=Ae(t),s=Array.isArray(t)?Ua(t):t;return new vc("",s,r).get(n)}fromComponentProvider(t,e){const n=Ae(t),r=Array.isArray(t)?Ua(t):t;return new vc("",r,n).get(e)}makeComponentTemplate(t,e,n,r){r=r||{};const s=t=>{const e=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>"-"+t.toLowerCase())}(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},i=function(t,e){const n=t.get(e+nn);if(!n||!n.length)throw new Error(`Unable to find component named '${e}'`);return n.map(Al).reduce(Ra,[])}(this.$injector,n).map(n=>{const{name:i,type:o}=n,a=s(i);if(t.getAttribute(a)&&!r[i])return`${a}='${t.getAttribute(a)}'`;const c=r[i]||i;if("@"===o)return`${a}='{{s$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Ae(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='$resolve.${c}'`}).join(" "),o=s(n);return`<${o} ${i}></${o}>`}}const Al=t=>w(t.bindToController)?Ol(t.bindToController):Ol(t.scope),Ol=t=>Object.keys(t||{}).map(e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])]).filter(t=>b(t)&&Array.isArray(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function kl(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const _l=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Tl={state:{params:{}},strict:!0,caseInsensitive:!0};class jl{static pathSegmentsAndParams(t){return Pa(t._segments,t._params.filter(t=>t.location===bc).concat(void 0)).reduce(Ra,[]).filter(t=>""!==t&&b(t))}static queryParams(t){return t._params.filter(t=>t.location===wc)}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(jl.pathSegmentsAndParams).reduce(Ra,[]).reduce(cc,[]).map(t=>E(t)?_l(t):t).reduce(Ra,[]))(t).map(t=>"/"===t?1:E(t)?2:t instanceof Sc?3:void 0),r=n(t),s=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,s,0);const i=Pa(r,s);let o,a;for(a=0;a<i.length;a++)if(o=i[a][0]-i[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=Sa(r,Tl),this.pattern=t;const s=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,i=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{\\}]+|\\.|{(?:[^{\\}]+|\\.)*})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!jl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(ka(this._params,Ba("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const s=n[2]||n[3],i=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:s,regexp:i,segment:t.substring(c,n.index),type:i?e.type(i)||(t=>Ea(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(i):null}};let h,d;for(;(a=s.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,Ua(this._params)]),c=s.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=i.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=s.lastIndex}this._segments.push(d),this._compiled=o.map(t=>kl.apply(null,t)).concat(kl(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return e.value(t)}exec(t,e={},n){const r=(s=this._cache,i="pattern",o=()=>new RegExp(["^",Va(this._cache.path.map(t=>t._compiled)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[i]=s[i]||o()).exec(t);var s,i,o;if(!r)return null;const a=this.parameters(),c=a.filter(t=>!t.isSearch()),l=a.filter(t=>t.isSearch()),u=this._cache.path.map(t=>t._segments.length-1).reduce((t,e)=>t+e),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=_a(e(t).split(/-(?!\\)/),e);return _a(n,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach(t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)}),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:Va(this._cache.path.map(t=>t._params))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter(e=>vt(t,e.id)).map(e=>((t,e)=>!t||t.validates(e))(e,t[e.id])).reduce(Ta,!0)}format(t={}){const e=this._cache.path,n=e.map(jl.pathSegmentsAndParams).reduce(Ra,[]).map(t=>E(t)?t:s(t)),r=e.map(jl.queryParams).reduce(Ra,[]).map(s);if(n.concat(r).filter(t=>!1===t.isValid).length)return null;function s(e){const n=e.value(t[e.id]),r=e.validates(n),s=e.isDefaultValue(n),i=!!s&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:s,squash:i,encoded:o}}const i=n.reduce((t,e)=>{if(E(e))return t+e;const{squash:n,encoded:r,param:s}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:E(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+_a(r,Rl).join("-"):s.raw?t+r:t+encodeURIComponent(r)},""),o=r.map(t=>{let{param:e,squash:n,encoded:r,isDefaultValue:s}=t;if(!(null==r||s&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=_a(r,encodeURIComponent)),r.map(t=>`${e.id}=${t}`)}).reduce(Ra,[]).join("&");return i+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}function Rl(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}jl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Nl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;includes=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?Zc.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}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=Sa(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(e=>!t.matchingKeys||vt(t.matchingKeys,e.id))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||ka(Object.values(this.params),Ba("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Nl.isStateDeclaration=t=>k(t.$$state),Nl.isState=t=>w(t.__stateObjectCache);class Ll{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Nl,s=Ga([[E,t=>s(this.urlService.compile(t))],[Wa(jl),t=>this.fromUrlMatcher(t,e)],[(...t)=>n(...t)||r(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Wa(RegExp),t=>this.fromRegExp(t,e)],[k,t=>new Vl(t,e)]]),i=s(t);if(!i)throw new Error("invalid 'what' in when()");return i}fromUrlMatcher(t,e){let n=e;E(e)&&(e=this.urlService.compile(e)),Wa(jl)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter(t=>t.isOptional);return n.length?n.filter(t=>e[t.id]).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new Vl(function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n},n),r)}fromState(t,e,n){const r=Nl.isStateDeclaration(t)?t.$$state():t,s={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,t=>{const s=e;s.href(r,t)!==s.href(n.current,n.params)&&s.transitionTo(r,t,{inherit:!0,source:"url"})}),s)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=E(e)?t=>e.replace(/\$(\$|\d{1,2})/,(e,n)=>t["$"===n?0:Number(n)]):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Vl(e=>t.exec(e.path),n),r)}}Ll.isUrlRule=t=>t&&["type","match","handler"].every(e=>b(t[e]));class Vl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t),this.priority=void 0}matchPriority(t){return at(y(t)),0-this.$id}}function Ml(t,e){let n=function(t,e){return(e.priority||0)-(t.priority||0)}(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?jl.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))}function Pl(t){if(!(k(t)||E(t)||Wa(yc)(t)||yc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(t)?t:Ka(t)}class Dl{constructor(t){this._sortFn=Ml,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=Pl(t);this.rule(this.urlRuleFactory.create((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path),e))}otherwise(t){const e=Pl(t);this._otherwiseFn=this.urlRuleFactory.create(Ka(!0),e),this._sorted=!1}removeRule(t){Ca(this._rules,t)}rule(t){if(!Ll.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map((t,e)=>({elem:t,idx:e}));return n.sort((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r}),n.map(t=>t.elem)}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return b(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Ul{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Sc(t,e,Ec,this.urlServiceConfig,n)}fromPath(t,e,n){return new Sc(t,e,bc,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Sc(t,e,wc,this.urlServiceConfig,n)}}class Il{static $inject=ne([ee.$location,ee.$state,ee.$router,ee.$urlConfig]);$location;constructor(t,e,n,r){this.$locationProvider=t,this.stateService=e,this.stateService.urlService=this,this.urlRuleFactory=new Ll(this,this.stateService,n),this.rules=new Dl(this.urlRuleFactory),this.config=r,this.paramFactory=new Ul(this.config),this._urlListeners=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[ee.$location,ee.$rootScope,(t,e)=>(this.$location=t,e.$on("$locationChangeSuccess",t=>{this._urlListeners.forEach(e=>{e(t)})}),this.listen(!0),this)];baseHref(){return this._baseHref||(this._baseHref=te()||window.location.pathname)}url(t,e){if(b(t)){const e=decodeURIComponent(t);this.$location.setUrl(e)}return e&&this.$location.setState(e),this.$location.getUrl()}onChange(t){return this._urlListeners.push(t),()=>Ca(this._urlListeners,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},r=this.match(n);Ga([[E,t=>this.url(t)],[yc.isDef,t=>e.go(t.state,t.params,t.options)],[Wa(yc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange(t=>this.sync(t));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const s=n(e[t]);r=!r||s&&s.weight>r.weight?s:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const s=this.$locationProvider.html5ModeConf.enabled;if(s||(r="#"+this.$locationProvider.hashPrefixConf+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,s,n.absolute,this.baseHref()),!n.absolute||!r)return r;const i=!s&&r?"/":"";return[`${window.location.protocol}//`,window.location.host,i,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const s={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new jl(t,n.paramTypes,this.paramFactory,Object.assign(s,e))}isMatcher(t){if(!w(t))return!1;let e=!0;return Object.entries(jl.prototype).forEach(([n,r])=>{k(r)&&(e=e&&b(t[n])&&k(t[n]))}),e}}class Hl{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=E(t);let s=r?t:t.name;this.isRelative(s)&&(s=this.resolvePath(s,e));const i=this._states[s];if(i&&(r||!(r||i!==t&&i.self!==t)))return i;if(r&&n){const t=Object.values(this._states).filter(t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(s));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${s} using glob: `,t.map(t=>t.name)),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),s=r.length;let i=0,o=n;for(;i<s;i++)if(""!==r[i]||0!==i){if("^"!==r[i])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(i).join(".");return o.name+(o.name&&a?".":"")+a}}function Fl(t){return t.self.$$state=()=>t,t.self}function ql(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Ea(t.parent.data,t.data)),t.data}function Bl(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};Ia(r,t),t.url+="{remainder:any}",r=t}const s=n.parent,i=function(t){if(!E(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=i?t.compile(i.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return i&&i.root?o:(s&&s.navigable||e()).url.append(o)}}function zl(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function Wl(t){return t.parent?t.parent.path.concat(t):[t]}function Kl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Gl(t){const e=Ga([[t=>t.resolveFn,t=>new vc(Zl(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new vc(Zl(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new vc(Zl(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new vc(Zl(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new vc(Zl(t),t=>t,[t.useExisting],t.policy)]]),n=Ga([[t=>E(t.val),t=>new vc(t.token,t=>t,[t.val],t.policy)],[t=>Array.isArray(t.val),t=>new vc(t.token,Ua(t.val),t.val.slice(0,-1),t.policy)],[t=>k(t.val),t=>new vc(t.token,t.val,(t=>{const e=window.angular.$injector;return t.$inject||e&&Ae(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ga([[Wa(vc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(E(t.val)||Array.isArray(t.val)||k(t.val))),n],[Ka(!0),t=>{throw new Error("Invalid resolve value: "+ac(t))}]]),s=t.resolve,i=Array.isArray(s)?s:((t,e)=>Object.keys(t||{}).map(n=>({token:n,val:t[n],deps:void 0,policy:e[n]})))(s,t.resolvePolicy||{});return i.map(r)}class Ql{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var s;this.builders={name:[t=>t.name],self:[Fl],parent:[function(e){return Jl(e)?null:t.find(n.parentName(e))||r()}],data:[ql],url:[Bl(e,r)],navigable:[zl(Jl)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(_a(Aa(t.params||{},e.map(t=>t.id)),(e,n)=>s.fromConfig(n,null,t.self)));return e.concat(n).map(t=>[t.id,t]).reduce(Da,{})})],views:[],path:[Wl],includes:[Kl],resolvables:[Gl]}}builder(t,e){const n=this.builders,r=n[t]||[];return E(t)&&!b(e)?r.length>1?r:r[0]:E(t)&&k(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!vt(n,e))continue;const r=n[e].reduce((t,e)=>n=>e(n,t),()=>{});t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?E(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=E(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function Jl(t){return""===t.name}function Zl(t){return t.provide||t.token}class Yl{constructor(t,e,n,r,s){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=s,this.queue=[]}register(t){const e=new Nl(t);if(!E(name))throw new Error("State must have a valid name");if(vt(this.states,e.name)||this.queue.map(t=>t.name).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],s=[],i={},o=t=>vt(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach(t=>t("registered",r.map(t=>t.self)))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=s.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&s.splice(h,1),r.push(c);continue}const d=i[l];if(i[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&s.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class Xl{static $inject=ne([ee.$url,ee.$state,ee.$router,ee.$view]);constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new Hl(this.states),this.builder=new Ql(this.matcher,t),this.builder.builder("views",Nc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new Yl(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r.rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=[ee.$injector,t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],s="onExit"===t?"from":"to";return r?function(t,n){const i=new jc(t.treeChanges(s)).subContext(n.$$state()),o=Object.assign(tu(i),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ca(this.listeners,t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map(t=>t.$$state()),n=t=>{const r=e.filter(e=>-1!==t.indexOf(e.parent));return 0===r.length?r:r.concat(n(r))},r=n([t]),s=[t].concat(r).reverse();return s.forEach(t=>{const e=this.urlServiceRules;e.rules().filter(Ba("state",t)).forEach(t=>e.removeRule(t)),delete this.states[t.name]}),s}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach(t=>t("deregistered",n.map(t=>t.self))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map(t=>this.states[t].self);const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const tu=t=>t.getTokens().filter(E).map(e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]}).reduce(Da,{});function eu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function nu(t){const e=qt(t,"$ngView"),n=za("$cfg.path")(e);return n?Ua(n).state.name:void 0}function ru(t,e,n){const r=n.ngState||t.current.name,s=Object.assign(function(t,e){return{relative:nu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),i=t.href(r,n.ngStateParams,s);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:s,href:i}}function su(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),n="FORM"===t.nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!n}}function iu(t,e,n,r,s){return function(i){const o=i.which||i.button,a=r();if(o>1||i.ctrlKey||i.metaKey||i.shiftKey||i.altKey||t.getAttribute("target"))i.preventDefault(),i.stopImmediatePropagation();else{const r=setTimeout(function(){if(!t.getAttribute("disabled")){e.go(a.ngState,a.ngStateParams,a.ngStateOpts).then(()=>{s.$emit("$updateBrowser")})}});i.preventDefault();let o=n.isAnchor&&!a.href?1:0;i.preventDefault=function(){o--<=0&&clearTimeout(r)}}}}function ou(t,e,n,r){let s;r&&(s=r.events),Array.isArray(s)||(s=["click"]);for(const e of s)t.addEventListener(e,n);e.$on("$destroy",function(){for(const e of s)t.removeEventListener(e,n)})}function au(t,e,n){const r=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,i,o)=>{const a=su(s),c=o[1]||o[0];let l=null;const u={},h=()=>ru(r,s,u),d=eu(i.ngSref);function p(){u.ngStateParams=Object.assign({},t.$eval(d.paramExpr));const e=h();l&&l(),c&&(l=c.$$addStateInfo(e.ngState,e.ngStateParams)),null!=e.href&&i.$set(a.attr,e.href)}u.ngState=d.state,u.ngStateOpts=i.ngSrefOpts?t.$eval(i.ngSrefOpts):{},d.paramExpr&&(t.$watch(d.paramExpr,function(t){u.ngStateParams=Object.assign({},t),p()},!0),u.ngStateParams=Object.assign({},t.$eval(d.paramExpr))),p(),t.$on("$destroy",e.onStatesChanged(p)),t.$on("$destroy",n.onSuccess({},p)),a.clickable&&ou(s,t,iu(s,r,a,h,t),u.ngStateOpts)}}}function cu(t,e,n){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(r,s,i,o){const a=su(s),c=o[1]||o[0];let l,u=null;const h={},d=()=>ru(t,s,h),p=["ngState","ngStateParams","ngStateOpts"],f=p.reduce((t,e)=>(t[e]=()=>{},t),{});function $(){const t=d();u&&u(),c&&(u=c.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&i.$set(a.attr,t.href)}p.forEach(t=>{h[t]=i[t]?r.$eval(i[t]):null,i.$observe(t,e=>{f[t](),f[t]=r.$watch(e,e=>{h[t]=e,$()})})}),$(),r.$on("$destroy",e.onStatesChanged($)),r.$on("$destroy",n.onSuccess({},$)),a.clickable&&(l=iu(s,t,a,d,r),ou(s,r,l,h.ngStateOpts))}}}function lu(t,e,n,r,s){return{restrict:"A",controller:function(i,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(i);try{l=i.$eval(a.ngSrefActive)}catch{}function h(t){t.promise.then($,()=>{})}function d(){p(l)}function p(t){w(t)&&(u=[],Object.entries(t).forEach(([t,e])=>{const n=function(t,e){const n=eu(t);f(n.state,i.$eval(n.paramExpr),e)};E(e)?n(e,t):Array.isArray(e)&&e.forEach(e=>{n(e,t)})}))}function f(e,n,r){const s={state:t.get(e,nu(o))||{name:e},params:n,activeClass:r};return u.push(s),function(){Ca(u,s)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map(t=>t.activeClass).map(e).reduce(Ra,[]),r=n(u).concat(e(c)).reduce(La,[]),s=n(u.filter(e=>t.includes(e.state.name,e.params))),i=!!u.filter(e=>t.is(e.state.name,e.params)).length?e(c):[],a=s.concat(i).reduce(La,[]),l=r.filter(t=>!a.includes(t));a.forEach(t=>o.classList.add(t)),l.forEach(t=>o.classList.remove(t))}l=l||n(a.ngSrefActive||"",!1)(i),p(l),this.$$addStateInfo=function(t,e){if(w(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},i.$on("$destroy",function(){const t=r.onStatesChanged(d),e=s.onStart({},h),n=i.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}au.$inject=["$state","$stateRegistry","$transitions"],cu.$inject=["$state","$stateRegistry","$transitions"],lu.$inject=["$state","$router","$interpolate","$stateRegistry","$transitions"];let uu=["$view","$animate","$viewScroll","$interpolate",function(t,e,n,r){const s={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},i={count:0,terminal:!0,priority:400,transclude:"element",compile:function(o,a,c){return function(o,a,l){const u=l.onload||"",h=l.autoscroll,d={enter:function(t,n,r){mt(t)?e.enter(t,null,n).then(r):(n.after(t),r())},leave:function(t,n){mt(t)?e.leave(t).then(n):(t.parentElement.removeChild(t),n())}},p=qt(a,"$ngView")||s,f=r(l.ngView||l.name||"")(o)||"$default";let $,m,g,v;const y={id:i.count++,name:f,fqn:p.$ngView.fqn?p.$ngView.fqn+"."+f:f,config:null,configUpdated:function(t){if(t&&!(t instanceof Vc))return;if(e=v,n=t,e===n)return;var e,n;$c.traceUIViewConfigUpdated(y,t&&t.viewDecl&&t.viewDecl.$context),v=t,E(t)},get creationContext(){const t=za("$cfg.viewDecl.$context")(p),e=za("$ngView.creationContext")(p);return t||e}};$c.traceUIViewEvent("Linking",y),Pt(a,"$ngView",{$ngView:y}),E();const w=t.registerUIView(y);function E(t){const e=o.$new(),r=Promise.withResolvers(),s=Promise.withResolvers(),i={$cfg:t,$ngView:y},l={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",f),m=c(e,function(t){Pt(t,"$ngViewAnim",l),Pt(t,"$ngView",i),d.enter(t,a,function(){r.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(b(h)&&!h||o.$eval(h))&&n(t)}),function(){if($&&($c.traceUIViewEvent("Removing (previous) el",Dt($,"$ngView")),$.remove(),$=null),g&&($c.traceUIViewEvent("Destroying scope",y),g.$destroy(),g=null),m){const t=Dt(m,"$ngViewAnim");$c.traceUIViewEvent("Animate out",t),d.leave(m,function(){t.$$animLeave.resolve(),$=null}),$=m,m=null}}()}),g=e,g.$emit("$viewContentLoaded",t||v),g.$eval(u)}o.$on("$destroy",function(){$c.traceUIViewEvent("Destroying/Unregistering",y),w()})}}};return i}];function hu(t,e,n){const r=za("viewDecl.controllerAs"),s=za("viewDecl.resolveAs");return{priority:-400,compile:function(i){const o=i.innerHTML;return Vt(i,!0),function(i,a){const c=Dt(a,"$ngView");if(!c)return a.innerHTML=o,void t(a.contentDocument||a.childNodes)(i);const l=c.$cfg||{viewDecl:{},getTemplate:()=>{}},u=l.path&&new jc(l.path);a.innerHTML=l.getTemplate(a,u)||o,$c.traceUIViewFill(c.$ngView,a.innerHTML);const h=t(a.contentDocument||a.childNodes),d=l.controller,p=r(l),f=s(l),$=u&&tu(u);if(f&&(i.$target[f]=$),d){const t=e(d,Object.assign({},$,{$scope:i,$element:a}));p&&(i.$target[p]=t,i.$target[p][f]=$),Pt(a,"$ngControllerController",t),Array.from(a.children).forEach(e=>{Pt(e,"$ngControllerController",t)}),function(t,e,n,r){!k(e.$onInit)||r.viewDecl.component||r.viewDecl.componentProvider||e.$onInit();const s=Ua(r.path).state.self,i={bind:e};if(k(e.uiOnParamsChanged)){const o=new jc(r.path).getResolvable("$transition$").data,a=t=>{if(t===o||-1!==t.exiting().indexOf(s))return;const n=t.params("to"),r=t.params("from"),i=t=>t.paramSchema,a=t.treeChanges("to").map(i).reduce(Ra,[]),c=t.treeChanges("from").map(i).reduce(Ra,[]),l=a.filter(t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(n[t.id],r[t.id])});if(l.length){const r=l.map(t=>t.id),s=Oa(n,(t,e)=>-1!==r.indexOf(e));e.uiOnParamsChanged(s,t)}};n.$on("$destroy",t.onSuccess({},a,i))}if(k(e.uiCanExit)){const r=du++,o="_uiCanExitIds",a=t=>!!t&&(t[o]&&!0===t[o][r]||a(t.redirectedFrom())),c=t=>{let n;const s=t[o]=t[o]||{};return a(t)||(n=Promise.resolve(e.uiCanExit(t)),n.then(t=>s[r]=!1!==t)),n},l={exiting:s.name};n.$on("$destroy",t.onBefore(l,c,i))}}(n,t,i,l)}h(i)}}}}hu.$inject=["$compile","$controller","$transitions"];let du=0;function pu(t){return{link:(e,n,r)=>{const s=r.ngChannel,i=n.childNodes.length>0,o=t.subscribe(s,t=>{i?w(t)&&e.$merge(t):n.innerHTML=t});e.$on("$destroy",()=>{t.unsubscribeByKey(o)})}}}function fu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngSetter;if(!i)return void e.warn("ng-setter: expression null");const o=t(i).assign;if(!o)return void e.warn("ng-setter: expression invalid");const a=t=>{o(n,t.trim())},c=new MutationObserver(t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&a(r.innerHTML)});c.observe(r,{childList:!0,subtree:!0,characterData:!0}),n.$on("$destroy",()=>c.disconnect()),a(r.innerHTML)}}}function $u(t,e){const n=e||"ng"+t.charAt(0).toUpperCase()+t.slice(1),r=function(t,e){return function(n,r,s,i,o,a){function c(t){let e=null;if("form"===t.tagName.toLowerCase())e=t;else if("form"in t&&t.form)e=t.form;else if(t.hasAttribute("form")){const n=t.getAttribute("form");if(n){const t=document.getElementById(n);t&&"form"===t.tagName.toLowerCase()&&(e=t)}}if(!e){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=t.name,n=t.value;return{[e]:n}}return{}}const n=new FormData(e),r={};return n.forEach((t,e)=>{r[e]=t}),r}return{restrict:"A",link(l,u,h){const d=h.trigger||function(t){const e=t.tagName.toLowerCase();if(["input","textarea","select"].includes(e))return"change";if("form"===e)return"submit";return"click"}(u),p=u.tagName.toLowerCase();b(h.latch)&&h.$observe("latch",function(t){let e=!1;return function(...n){if(e)return t.apply(this,n);e=!0}}(()=>u.dispatchEvent(new Event(d))));let f,$=!1;b(h.interval)&&(u.dispatchEvent(new Event(d)),f=setInterval(()=>u.dispatchEvent(new Event(d)),parseInt(h.interval)||1e3)),u.addEventListener(d,async d=>{if(u.disabled)return;"form"===p&&d.preventDefault();const f=h.swap||"innerHTML",m=h.target,g=m?document.querySelector(m):u;if(!g)return void s.warn(`${e}: target "${m}" not found`);const v=h[e];if(!v)return void s.warn(`${e}: no URL specified`);const y=t=>{b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass);const e=t.data;200<=t.status&&t.status<=299?(b(h.success)&&i(h.success)(l,{$res:e}),b(h.stateSuccess)&&o.go(h.stateSuccess)):400<=t.status&&t.status<=599&&(b(h.error)&&i(h.error)(l,{$res:e}),b(h.stateError)&&o.go(h.stateError)),function(t,e,n,r,s){let i=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;if(w(t))return void r.$merge(t);const e=s(t)(r);i=e instanceof DocumentFragment?Array.from(e.childNodes):[e]}switch(e){case"innerHTML":default:n.replaceChildren(...i);break;case"outerHTML":{const t=n.parentNode;if(!t)return;const e=document.createDocumentFragment();i.forEach(t=>e.appendChild(t)),t.replaceChild(e,n);break}case"textContent":n.textContent=t;break;case"beforebegin":i.forEach(t=>n.parentNode.insertBefore(t,n));break;case"afterbegin":i.slice().reverse().forEach(t=>n.insertBefore(t,n.firstChild));break;case"beforeend":i.forEach(t=>n.appendChild(t));break;case"afterend":i.slice().reverse().forEach(t=>n.parentNode.insertBefore(t,n.nextSibling));break;case"delete":n.remove();case"none":}}(e,f,g,l,r)};if(b(h.delay)&&await function(t=0){return new Promise(e=>setTimeout(e,t))}(0|parseInt(h.delay)),!$)if(b(h.throttle)&&($=!0,h.$set("throttled",!0),setTimeout(()=>{h.$set("throttled",!1),$=!1},parseInt(h.throttle))),b(h.loading)&&h.$set("loading",!0),b(h.loadingClass)&&h.$addClass(h.loadingClass),"post"===t||"put"===t){let e;const r={};h.enctype?(r.headers={"Content-Type":h.enctype},e=et(c(u))):e=c(u),n[t](v,e,r).then(y).catch(y)}else if("get"===t&&h.ngSse){const t=v,n={withCredentials:"true"===h.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{s.info(`${e}: SSE connection opened to ${t}`),b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass)},onMessage:t=>{y({status:200,data:t})},onError:t=>{s.error(`${e}: SSE error`,t);y({status:500,data:t})}},r=a(t,n);l.$on("$destroy",()=>{s.info(`${e}: closing SSE connection`),r.close()})}else n[t](v).then(y).catch(y)}),f&&l.$on("$destroy",()=>clearInterval(f)),"load"==d&&u.dispatchEvent(new Event("load"))}}}}(t,n);return r.$inject=[ee.$http,ee.$compile,ee.$log,ee.$parse,ee.$state,ee.$sse],r}pu.$inject=[ee.$eventBus],fu.$inject=[ee.$parse,ee.$log];const mu=$u("get"),gu=$u("delete"),vu=$u("post"),yu=$u("put"),bu=$u("get","ngSse");function wu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngInject;if(!i)return;const o=i.replace(/(\$[\w]+|[\w]+(?:Service|Factory))/g,(r,s)=>{try{const t=e.get(s);return n.$target[s]=t,s}catch{return t.warn(`Injectable ${s} not found in $injector`),r}});n.$apply(o)}}}function Eu(){return{restrict:"A",link(t,e,n){const r=n.ngEl,s=r||e.id;t.$target[s]=e;const i=e.parentNode;if(!i)return;const o=new MutationObserver(n=>{for(const r of n)Array.from(r.removedNodes).forEach(n=>{n===e&&(delete t.$target[s],o.disconnect())})});o.observe(i,{childList:!0})}}}wu.$inject=[ee.$log,ee.$injector];class Cu{constructor(){this.defaults={}}$get=()=>(t,e={})=>{const n=this.#u(t,e.params);return this.#h(n,e)};#u(t,e){if(!e)return t;const n=Object.entries(e).map(([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&");return t+(t.includes("?")?"&":"?")+n}#h(t,e){const n=new EventSource(t,{withCredentials:!!e.withCredentials});return e.onOpen&&n.addEventListener("open",t=>e.onOpen(t)),n.addEventListener("message",t=>{let n=t.data;try{n=e.transformMessage?e.transformMessage(n):JSON.parse(n)}catch{}e.onMessage?.(n,t)}),e.onError&&n.addEventListener("error",t=>e.onError(t)),n}}function Su(){return{restrict:"A",link(t,e,n){const r=n.onEnter,s=n.onLeave,i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?r&&t.$eval(r):s&&t.$eval(s)})},{root:null,threshold:.1});i.observe(e);const o=e.parentNode;let a;o&&(a=new MutationObserver(t=>{for(const n of t)Array.from(n.removedNodes).forEach(t=>{t===e&&(i.disconnect(),a.disconnect())})}),a.observe(o,{childList:!0})),t.$on("$destroy",()=>{i.disconnect(),a&&a.disconnect()})}}}const xu=dt("ng"),Au=dt("$injector"),Ou={};const ku=new class{constructor(){this.$cache=bt,this.$eventBus=Gc,this.version="0.9.9",this.bootsrappedModules=[],this.getController=Ft,this.getInjector=Qt,this.getScope=Ut,this.errorHandlingConfig=ht,this.$t=ee,window.angular=this,function(t){t.module("ng",[],[ee.$provide,t=>{t.provider({$$sanitizeUri:fo}),t.value("$window",window),t.value("$document",document),t.provider(ee.$compile,rn).directive({input:Wn,textarea:Wn,form:hn,script:Jn,select:Yn,option:Xn,ngBind:tr,ngBindHtml:nr,ngBindTemplate:er,ngClass:ar,ngClassEven:lr,ngClassOdd:cr,ngCloak:ur,ngController:hr,ngDelete:gu,ngDisabled:To,ngEl:Eu,ngForm:dn,ngGet:mu,ngHide:$r,ngIf:mr,ngInclude:gr,ngInject:wu,ngInit:yr,ngMessages:vo,ngMessage:Eo,ngMessageExp:Co,ngMessagesInclude:wo,ngMessageDefault:So,ngNonBindable:br,ngPost:vu,ngPut:yu,ngRef:Er,ngRepeat:Ar,ngSetter:fu,ngShow:fr,ngStyle:Or,ngSse:bu,ngSwitch:kr,ngSwitchWhen:_r,ngSwitchDefault:Tr,ngOptions:Vr,ngTransclude:Pr,ngModel:wn,pattern:Hr,ngPattern:Hr,required:Ir,ngRequired:Ir,ngMinlength:qr,minlength:qr,ngMaxlength:Fr,maxlength:Fr,ngValue:Qn,ngModelOptions:gn,ngViewport:Su}).directive({input:Kn,ngAnimateSwap:ya,ngAnimateChildren:ba,ngChecked:Vo,ngClick:No,ngDblclick:Io,ngInclude:vr,ngHide:Po,ngShow:jo,ngMessages:Ro,ngModel:Uo,ngReadonly:Do,ngRequired:Lo,ngValue:Mo,ngSref:au,ngSrefActive:lu,ngSrefActiveEq:lu,ngState:cu,ngView:uu,ngChannel:pu}).directive({ngView:hu}).directive(Ur).directive(Fe),t.provider({$aria:_o,$anchorScroll:Wr,$animate:Fs,$$animation:sa,$animateCss:Jo,$$animateCssDriver:$a,$$animateJs:ea,$$animateJsDriver:va,$$animateCache:ua,$$animateQueue:ta,$$AnimateRunner:zs,$$animateAsyncRun:qs,$controller:Re,$exceptionHandler:Gs,$filter:ii,$interpolate:xi,$http:Hi,$httpParamSerializer:Vi,$location:Ji,$log:eo,$parse:gi,$$rAFScheduler:ia,$rootScope:oo,$router:ec,$sce:He,$sceDelegate:Ie,$sse:Cu,$templateCache:Ks,$templateRequest:po,$urlConfig:Ya,$view:Mc,$transitions:wl,$state:Cl,$viewScroll:Sl,$templateFactory:xl,$url:Il,$stateRegistry:Xl,$eventBus:Wc})}]).factory("$stateParams",[ee.$router,t=>t.params]).value("$trace",$c)}(this)}bootstrap(t,e,n){if(n=n||{strictDi:!1},(t instanceof Element||t instanceof Document)&&Qt(t))throw xu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",e=>{e.value("$rootElement",t)}]),this.bootsrappedModules.unshift("ng");const r=Se(this.bootsrappedModules,n.strictDi);return r.invoke([ee.$rootScope,ee.$rootElement,ee.$compile,ee.$injector,(t,e,n,r)=>{this.$injector=r,Pt(e,"$injector",r);if(n(e)(t),!vt(r,"strictDi"))try{r.invoke(()=>{})}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get(ee.$stateRegistry).get().map(t=>t.$$state().resolvables).reduce(Ra,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=Ae(t.resolveFn,r.strictDi))}]),r}injector(t,e){return Se(t,e)}init(t){let e,n;const r={};it.forEach(r=>{const s=`${r}app`;t.hasAttribute&&t.hasAttribute(s)&&(e=t,n=t.getAttribute(s))}),it.forEach(r=>{const s=`${r}app`;let i;!e&&(i=t.querySelector(`[${s.replace(":","\\:")}]`))&&(e=i,n=i.getAttribute(s))}),e&&(r.strictDi=null!==function(t,e){let n,r;const s=it.length;for(r=0;r<s;++r)if(n=it[r]+e,E(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return W(t,"module"),e&&vt(Ou,t)&&(Ou[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Ou,t,()=>{if(!e)throw Au("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new ie(t,e,n)})}};document.addEventListener("DOMContentLoaded",()=>ku.init(document),{once:!0}),t.angular=ku});
|