@angular-wave/angular.ts
Version:
A modern, optimized and type-safe version of AngularJS
1 lines • 271 kB
JavaScript
!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"];con