khiops-visualization 11.13.1 → 11.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +25 -281
- package/990.js +1 -0
- package/README.md +2 -2
- package/khiops-webcomponents.bundle.js +2 -2
- package/main.js +1 -1
- package/package.json +3 -3
- package/polyfills.js +1 -1
- package/680.js +0 -1
- package/assets/i18n/en.json +0 -467
- package/assets/mock/AdultAllReports.json +0 -954
- package/assets/mock/AdultSmall.json +0 -409
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "khiops-visualization",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.0",
|
|
4
4
|
"main": "khiops-webcomponents.bundle.js",
|
|
5
5
|
"module": "khiops-webcomponents.bundle.js",
|
|
6
6
|
"license": "BSD-3-Clause-Clear",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"name": "Orange",
|
|
9
9
|
"email": "khiops.team@orange.com"
|
|
10
10
|
},
|
|
11
|
-
"description": "Khiops Visualization
|
|
11
|
+
"description": "Khiops Visualization is a powerful visualization plugin for the data preparation and scoring tool Khiops. It provides intuitive visualizations of analysis results, enabling quick and easy interpretation of discovered patterns in your data.",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/KhiopsML/khiops-visualization.git"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/KhiopsML/khiops-visualization/issues"
|
|
17
|
+
"url": "https://github.com/KhiopsML/khiops-visualization-desktop/issues"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/KhiopsML/khiops-visualization#readme"
|
|
20
20
|
}
|
package/polyfills.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var yt={2260(){var K=Object.defineProperty,ee=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Me=(t,e,c)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:c}):t[e]=c,Ke=(t,e)=>{for(var c in e||(e={}))vt.call(e,c)&&Me(t,c,e[c]);if($e)for(var c of $e(e))kt.call(e,c)&&Me(t,c,e[c]);return t},D=(t,e,c)=>(Me(t,"symbol"!=typeof e?e+"":e,c),c),he=globalThis;function re(t){return(he.__Zone_symbol_prefix||"__zone_symbol__")+t}var Pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,je=Object.getPrototypeOf,Rt=Object.create,Ct=Array.prototype.slice,Ae="addEventListener",He="removeEventListener",Fe=re(Ae),Ve=re(He),de="true",Te="false",we=re("");function xe(t,e){return Zone.current.wrap(t,e)}function Be(t,e,c,n,a){return Zone.current.scheduleMacroTask(t,e,c,n,a)}var A=re,De=typeof window<"u",Se=De?window:void 0,Y=De&&Se||globalThis;function Ge(t,e){for(let c=t.length-1;c>=0;c--)"function"==typeof t[c]&&(t[c]=xe(t[c],e+"_"+c));return t}function Je(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Oe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"===Y.process.toString(),ze=!Oe&&!Qe&&!(!De||!Se.HTMLElement),et=typeof Y.process<"u"&&"[object process]"===Y.process.toString()&&!Qe&&!(!De||!Se.HTMLElement),Ne={},Ot=A("enable_beforeunload"),tt=function(t){if(!(t=t||Y.event))return;let e=Ne[t.type];e||(e=Ne[t.type]=A("ON_PROPERTY"+t.type));const c=this||t.target||Y,n=c[e];let a;return ze&&c===Se&&"error"===t.type?(a=n&&n.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===a&&t.preventDefault()):(a=n&&n.apply(this,arguments),"beforeunload"===t.type&&Y[Ot]&&"string"==typeof a?t.returnValue=a:null!=a&&!a&&t.preventDefault()),a};function nt(t,e,c){let n=Pe(t,e);if(!n&&c&&Pe(c,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const a=A("on"+e+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;const u=n.get,k=n.set,d=e.slice(2);let m=Ne[d];m||(m=Ne[d]=A("ON_PROPERTY"+d)),n.set=function(R){let E=this;!E&&t===Y&&(E=Y),E&&("function"==typeof E[m]&&E.removeEventListener(d,tt),k?.call(E,null),E[m]=R,"function"==typeof R&&E.addEventListener(d,tt,!1))},n.get=function(){let R=this;if(!R&&t===Y&&(R=Y),!R)return null;const E=R[m];if(E)return E;if(u){let w=u.call(this);if(w)return n.set.call(this,w),"function"==typeof R.removeAttribute&&R.removeAttribute(e),w}return null},Ie(t,e,n),t[a]=!0}function rt(t,e,c){if(e)for(let n=0;n<e.length;n++)nt(t,"on"+e[n],c);else{const n=[];for(const a in t)"on"==a.slice(0,2)&&n.push(a);for(let a=0;a<n.length;a++)nt(t,n[a],c)}}var se=A("originalInstance");function Re(t){const e=Y[t];if(!e)return;Y[A(t)]=e,Y[t]=function(){const a=Ge(arguments,t);switch(a.length){case 0:this[se]=new e;break;case 1:this[se]=new e(a[0]);break;case 2:this[se]=new e(a[0],a[1]);break;case 3:this[se]=new e(a[0],a[1],a[2]);break;case 4:this[se]=new e(a[0],a[1],a[2],a[3]);break;default:throw new Error("Arg list too long.")}},pe(Y[t],e);const c=new e(function(){});let n;for(n in c)"XMLHttpRequest"===t&&"responseBlob"===n||function(a){"function"==typeof c[a]?Y[t].prototype[a]=function(){return this[se][a].apply(this[se],arguments)}:Ie(Y[t].prototype,a,{set:function(u){"function"==typeof u?(this[se][a]=xe(u,t+"."+a),pe(this[se][a],u)):this[se][a]=u},get:function(){return this[se][a]}})}(n);for(n in e)"prototype"!==n&&e.hasOwnProperty(n)&&(Y[t][n]=e[n])}function Ee(t,e,c){let n=t;for(;n&&!n.hasOwnProperty(e);)n=je(n);!n&&t[e]&&(n=t);const a=A(e);let u=null;if(n&&(!(u=n[a])||!n.hasOwnProperty(a))&&(u=n[a]=n[e],Je(n&&Pe(n,e)))){const d=c(u,a,e);n[e]=function(){return d(this,arguments)},pe(n[e],u)}return u}function Lt(t,e,c){let n=null;function a(u){const k=u.data;return k.args[k.cbIdx]=function(){u.invoke.apply(this,arguments)},n.apply(k.target,k.args),u}n=Ee(t,e,u=>function(k,d){const m=c(k,d);return m.cbIdx>=0&&"function"==typeof d[m.cbIdx]?Be(m.name,d[m.cbIdx],m,a):u.apply(k,d)})}function pe(t,e){t[A("OriginalDelegate")]=e}function ot(t){return"function"==typeof t}function st(t){return"number"==typeof t}var Mt={useG:!0},oe={},it={},at=new RegExp("^"+we+"(\\w+)(true|false)$"),ct=A("propagationStopped");function lt(t,e){const c=(e?e(t):t)+Te,n=(e?e(t):t)+de,a=we+c,u=we+n;oe[t]={},oe[t][Te]=a,oe[t][de]=u}function It(t,e,c,n){const a=n&&n.add||Ae,u=n&&n.rm||He,k=n&&n.listeners||"eventListeners",d=n&&n.rmAll||"removeAllListeners",m=A(a),R="."+a+":",E="prependListener",w="."+E+":",I=function(y,_,x){if(y.isRemoved)return;const H=y.callback;let W;"object"==typeof H&&H.handleEvent&&(y.callback=p=>H.handleEvent(p),y.originalDelegate=H);try{y.invoke(y,_,[x])}catch(p){W=p}const B=y.options;return B&&"object"==typeof B&&B.once&&_[u].call(_,x.type,y.originalDelegate?y.originalDelegate:y.callback,B),W};function j(y,_,x){if(!(_=_||t.event))return;const H=y||_.target||t,W=H[oe[_.type][x?de:Te]];if(W){const B=[];if(1===W.length){const p=I(W[0],H,_);p&&B.push(p)}else{const p=W.slice();for(let X=0;X<p.length&&(!_||!0!==_[ct]);X++){const S=I(p[X],H,_);S&&B.push(S)}}if(1===B.length)throw B[0];for(let p=0;p<B.length;p++){const X=B[p];e.nativeScheduleMicroTask(()=>{throw X})}}}const J=function(y){return j(this,y,!1)},q=function(y){return j(this,y,!0)};function te(y,_){if(!y)return!1;let x=!0;_&&void 0!==_.useG&&(x=_.useG);const H=_&&_.vh;let W=!0;_&&void 0!==_.chkDup&&(W=_.chkDup);let B=!1;_&&void 0!==_.rt&&(B=_.rt);let p=y;for(;p&&!p.hasOwnProperty(a);)p=je(p);if(!p&&y[a]&&(p=y),!p||p[m])return!1;const X=_&&_.eventNameToString,S={},C=p[m]=p[a],L=p[A(u)]=p[u],b=p[A(k)]=p[k],Q=p[A(d)]=p[d];let ne;_&&_.prepend&&(ne=p[A(_.prepend)]=p[_.prepend]);const V=x?function(i){if(!S.isExisting)return C.call(S.target,S.eventName,S.capture?q:J,S.options)}:function(i){return C.call(S.target,S.eventName,i.invoke,S.options)},M=x?function(i){if(!i.isRemoved){const f=oe[i.eventName];let g;f&&(g=f[i.capture?de:Te]);const P=g&&i.target[g];if(P)for(let T=0;T<P.length;T++)if(P[T]===i){P.splice(T,1),i.isRemoved=!0,i.removeAbortListener&&(i.removeAbortListener(),i.removeAbortListener=null),0===P.length&&(i.allRemoved=!0,i.target[g]=null);break}}if(i.allRemoved)return L.call(i.target,i.eventName,i.capture?q:J,i.options)}:function(i){return L.call(i.target,i.eventName,i.invoke,i.options)},ge=_?.diff||function(i,f){const g=typeof f;return"function"===g&&i.callback===f||"object"===g&&i.originalDelegate===f},ye=Zone[A("UNPATCHED_EVENTS")],ae=t[A("PASSIVE_EVENTS")],l=function(i,f,g,P,T=!1,O=!1){return function(){const N=this||t;let Z=arguments[0];_&&_.transferEventName&&(Z=_.transferEventName(Z));let z=arguments[1];if(!z)return i.apply(this,arguments);if(Oe&&"uncaughtException"===Z)return i.apply(this,arguments);let U=!1;if("function"!=typeof z){if(!z.handleEvent)return i.apply(this,arguments);U=!0}if(H&&!H(i,z,N,arguments))return;const me=!!ae&&-1!==ae.indexOf(Z),ce=function h(i){if("object"==typeof i&&null!==i){const f=Ke({},i);return i.signal&&(f.signal=i.signal),f}return i}(function G(i,f){return f?"boolean"==typeof i?{capture:i,passive:!0}:i?"object"==typeof i&&!1!==i.passive?(t=>ee(t,ue({passive:!0})))(Ke({},i)):i:{passive:!0}:i}(arguments[2],me)),ve=ce?.signal;if(ve?.aborted)return;if(ye)for(let fe=0;fe<ye.length;fe++)if(Z===ye[fe])return me?i.call(N,Z,z,ce):i.apply(this,arguments);const We=!!ce&&("boolean"==typeof ce||ce.capture),dt=!(!ce||"object"!=typeof ce)&&ce.once,Xt=Zone.current;let qe=oe[Z];qe||(lt(Z,X),qe=oe[Z]);const Tt=qe[We?de:Te];let Le,be=N[Tt],Et=!1;if(be){if(Et=!0,W)for(let fe=0;fe<be.length;fe++)if(ge(be[fe],z))return}else be=N[Tt]=[];const pt=N.constructor.name,gt=it[pt];gt&&(Le=gt[Z]),Le||(Le=pt+f+(X?X(Z):Z)),S.options=ce,dt&&(S.options.once=!1),S.target=N,S.capture=We,S.eventName=Z,S.isExisting=Et;const Ce=x?Mt:void 0;Ce&&(Ce.taskData=S),ve&&(S.options.signal=void 0);const le=Xt.scheduleEventTask(Le,z,Ce,g,P);if(ve){S.options.signal=ve;const fe=()=>le.zone.cancelTask(le);i.call(ve,"abort",fe,{once:!0}),le.removeAbortListener=()=>ve.removeEventListener("abort",fe)}return S.target=null,Ce&&(Ce.taskData=null),dt&&(S.options.once=!0),"boolean"!=typeof le.options&&(le.options=ce),le.target=N,le.capture=We,le.eventName=Z,U&&(le.originalDelegate=z),O?be.unshift(le):be.push(le),T?N:void 0}};return p[a]=l(C,R,V,M,B),ne&&(p[E]=l(ne,w,function(i){return ne.call(S.target,S.eventName,i.invoke,S.options)},M,B,!0)),p[u]=function(){const i=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],P=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return L.apply(this,arguments);if(H&&!H(L,T,i,arguments))return;const O=oe[f];let N;O&&(N=O[P?de:Te]);const Z=N&&i[N];if(Z)for(let z=0;z<Z.length;z++){const U=Z[z];if(ge(U,T))return Z.splice(z,1),U.isRemoved=!0,0!==Z.length||(U.allRemoved=!0,i[N]=null,P||"string"!=typeof f)||(i[we+"ON_PROPERTY"+f]=null),U.zone.cancelTask(U),B?i:void 0}return L.apply(this,arguments)},p[k]=function(){const i=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],P=ut(i,X?X(f):f);for(let T=0;T<P.length;T++){const O=P[T];g.push(O.originalDelegate?O.originalDelegate:O.callback)}return g},p[d]=function(){const i=this||t;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=oe[f];if(g){const O=i[g[Te]],N=i[g[de]];if(O){const Z=O.slice();for(let z=0;z<Z.length;z++){const U=Z[z];this[u].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}if(N){const Z=N.slice();for(let z=0;z<Z.length;z++){const U=Z[z];this[u].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}}}else{const g=Object.keys(i);for(let P=0;P<g.length;P++){const O=at.exec(g[P]);let N=O&&O[1];N&&"removeListener"!==N&&this[d].call(this,N)}this[d].call(this,"removeListener")}if(B)return this},pe(p[a],C),pe(p[u],L),Q&&pe(p[d],Q),b&&pe(p[k],b),!0}let $=[];for(let y=0;y<c.length;y++)$[y]=te(c[y],n);return $}function ut(t,e){if(!e){const u=[];for(let k in t){const d=at.exec(k);let m=d&&d[1];if(m&&(!e||m===e)){const R=t[k];if(R)for(let E=0;E<R.length;E++)u.push(R[E])}}return u}let c=oe[e];c||(lt(e),c=oe[e]);const n=t[c[Te]],a=t[c[de]];return n?a?n.concat(a):n.slice():a?a.slice():[]}function jt(t,e){const c=t.Event;c&&c.prototype&&e.patchMethod(c.prototype,"stopImmediatePropagation",n=>function(a,u){a[ct]=!0,n&&n.apply(a,u)})}var Ze=A("zoneTask");function ke(t,e,c,n){let a=null,u=null;c+=n;const k={};function d(R){const E=R.data;E.args[0]=function(){return R.invoke.apply(this,arguments)};const w=a.apply(t,E.args);return st(w)?E.handleId=w:(E.handle=w,E.isRefreshable=ot(w.refresh)),R}function m(R){const{handle:E,handleId:w}=R.data;return u.call(t,E??w)}a=Ee(t,e+=n,R=>function(E,w){var I;if(ot(w[0])){const j={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?w[1]||0:void 0,args:w},J=w[0];w[0]=function(){try{return J.apply(this,arguments)}finally{const{handle:H,handleId:W,isPeriodic:B,isRefreshable:p}=j;!B&&!p&&(W?delete k[W]:H&&(H[Ze]=null))}};const q=Be(e,w[0],j,d,m);if(!q)return q;const{handleId:te,handle:$,isRefreshable:y,isPeriodic:_}=q.data;if(te)k[te]=q;else if($&&($[Ze]=q,y&&!_)){const x=$.refresh;$.refresh=function(){const{zone:H,state:W}=q;return"notScheduled"===W?(q._state="scheduled",H._updateTaskCount(q,1)):"running"===W&&(q._state="scheduling"),x.call(this)}}return null!=(I=$??te)?I:q}return R.apply(t,w)}),u=Ee(t,c,R=>function(E,w){const I=w[0];let j;st(I)?(j=k[I],delete k[I]):(j=I?.[Ze],j?I[Ze]=null:j=I),j?.type?j.cancelFn&&j.zone.cancelTask(j):R.apply(t,w)})}function ht(t,e,c){if(!c||0===c.length)return e;const n=c.filter(u=>u.target===t);if(0===n.length)return e;const a=n[0].ignoreProperties;return e.filter(u=>-1===a.indexOf(u))}function ft(t,e,c,n){t&&rt(t,ht(t,e,c),n)}function Ue(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function Ut(t,e,c,n,a){const u=Zone.__symbol__(n);if(e[u])return;const k=e[u]=e[n];e[n]=function(d,m,R){return m&&m.prototype&&a.forEach(function(E){const w=`${c}.${n}::`+E,I=m.prototype;try{if(I.hasOwnProperty(E)){const j=t.ObjectGetOwnPropertyDescriptor(I,E);j&&j.value?(j.value=t.wrapWithCurrentZone(j.value,w),t._redefineProperty(m.prototype,E,j)):I[E]&&(I[E]=t.wrapWithCurrentZone(I[E],w))}else I[E]&&(I[E]=t.wrapWithCurrentZone(I[E],w))}catch{}}),k.call(e,d,m,R)},t.attachOriginToPatched(e[n],k)}var _t=function wt(){const e=globalThis,c=!0===e[re("forceDuplicateZoneCheck")];if(e.Zone&&(c||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return null!=e.Zone||(e.Zone=function Pt(){const t=he.performance;function e(F){t&&t.mark&&t.mark(F)}function c(F,s){t&&t.measure&&t.measure(F,s)}e("Zone");const n=class Xe{constructor(s,o){D(this,"_parent"),D(this,"_name"),D(this,"_properties"),D(this,"_zoneDelegate"),this._parent=s,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(he.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=Xe.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return Q}static __load_patch(s,o,r=!1){if(C.hasOwnProperty(s)){const v=!0===he[re("forceDuplicateZoneCheck")];if(!r&&v)throw Error("Already loaded patch: "+s)}else if(!he["__Zone_disable_"+s]){const v="Zone:"+s;e(v),C[s]=o(he,Xe,L),c(v,v)}}get parent(){return this._parent}get name(){return this._name}get(s){const o=this.getZoneWith(s);if(o)return o._properties[s]}getZoneWith(s){let o=this;for(;o;){if(o._properties.hasOwnProperty(s))return o;o=o._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,o){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const r=this._zoneDelegate.intercept(this,s,o),v=this;return function(){return v.runGuarded(r,this,arguments,o)}}run(s,o,r,v){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,o,r,v)}finally{b=b.parent}}runGuarded(s,o=null,r,v){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,o,r,v)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,o,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||$).name+"; Execution: "+this.name+")");const v=s,{type:V,data:{isPeriodic:M=!1,isRefreshable:ie=!1}={}}=s;if(s.state===y&&(V===S||V===X))return;const ge=s.state!=H;ge&&v._transitionTo(H,x);const ye=Q;Q=v,b={parent:b,zone:this};try{V==X&&s.data&&!M&&!ie&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,v,o,r)}catch(ae){if(this._zoneDelegate.handleError(this,ae))throw ae}}finally{const ae=s.state;if(ae!==y&&ae!==B)if(V==S||M||ie&&ae===_)ge&&v._transitionTo(x,H,_);else{const h=v._zoneDelegates;this._updateTaskCount(v,-1),ge&&v._transitionTo(y,H,y),ie&&(v._zoneDelegates=h)}b=b.parent,Q=ye}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(_,y);const o=[];s._zoneDelegates=o,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(B,_,y),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===o&&this._updateTaskCount(s,1),s.state==_&&s._transitionTo(x,_),s}scheduleMicroTask(s,o,r,v){return this.scheduleTask(new d(p,s,o,r,v,void 0))}scheduleMacroTask(s,o,r,v,V){return this.scheduleTask(new d(X,s,o,r,v,V))}scheduleEventTask(s,o,r,v,V){return this.scheduleTask(new d(S,s,o,r,v,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||$).name+"; Execution: "+this.name+")");if(s.state===x||s.state===H){s._transitionTo(W,x,H);try{this._zoneDelegate.cancelTask(this,s)}catch(o){throw s._transitionTo(B,W),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(s,-1),s._transitionTo(y,W),s.runCount=-1,s}}_updateTaskCount(s,o){const r=s._zoneDelegates;-1==o&&(s._zoneDelegates=null);for(let v=0;v<r.length;v++)r[v]._updateTaskCount(s.type,o)}};D(n,"__symbol__",re);let a=n;const u={name:"",onHasTask:(F,s,o,r)=>F.hasTask(o,r),onScheduleTask:(F,s,o,r)=>F.scheduleTask(o,r),onInvokeTask:(F,s,o,r,v,V)=>F.invokeTask(o,r,v,V),onCancelTask:(F,s,o,r)=>F.cancelTask(o,r)};class k{constructor(s,o,r){D(this,"_zone"),D(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),D(this,"_parentDelegate"),D(this,"_forkDlgt"),D(this,"_forkZS"),D(this,"_forkCurrZone"),D(this,"_interceptDlgt"),D(this,"_interceptZS"),D(this,"_interceptCurrZone"),D(this,"_invokeDlgt"),D(this,"_invokeZS"),D(this,"_invokeCurrZone"),D(this,"_handleErrorDlgt"),D(this,"_handleErrorZS"),D(this,"_handleErrorCurrZone"),D(this,"_scheduleTaskDlgt"),D(this,"_scheduleTaskZS"),D(this,"_scheduleTaskCurrZone"),D(this,"_invokeTaskDlgt"),D(this,"_invokeTaskZS"),D(this,"_invokeTaskCurrZone"),D(this,"_cancelTaskDlgt"),D(this,"_cancelTaskZS"),D(this,"_cancelTaskCurrZone"),D(this,"_hasTaskDlgt"),D(this,"_hasTaskDlgtOwner"),D(this,"_hasTaskZS"),D(this,"_hasTaskCurrZone"),this._zone=s,this._parentDelegate=o,this._forkZS=r&&(r&&r.onFork?r:o._forkZS),this._forkDlgt=r&&(r.onFork?o:o._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:o._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:o._interceptZS),this._interceptDlgt=r&&(r.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:o._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:o._invokeZS),this._invokeDlgt=r&&(r.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:o._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:o._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:o._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:o._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:o._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:o._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:o._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:o._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const v=r&&r.onHasTask;(v||o&&o._hasTaskZS)&&(this._hasTaskZS=v?r:u,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(s,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,o):new a(s,o)}intercept(s,o,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,o,r):o}invoke(s,o,r,v,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,o,r,v,V):o.apply(r,v)}handleError(s,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,o)}scheduleTask(s,o){let r=o;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,o),r||(r=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=p)throw new Error("Task is missing scheduleFn.");q(o)}return r}invokeTask(s,o,r,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,o,r,v):o.callback.apply(r,v)}cancelTask(s,o){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");r=o.cancelFn(o)}return r}hasTask(s,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,o)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,o){const r=this._taskCounts,v=r[s],V=r[s]=v+o;if(V<0)throw new Error("More tasks executed then were scheduled.");0!=v&&0!=V||this.hasTask(this._zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s})}}class d{constructor(s,o,r,v,V,M){if(D(this,"type"),D(this,"source"),D(this,"invoke"),D(this,"callback"),D(this,"data"),D(this,"scheduleFn"),D(this,"cancelFn"),D(this,"_zone",null),D(this,"runCount",0),D(this,"_zoneDelegates",null),D(this,"_state","notScheduled"),this.type=s,this.source=o,this.data=v,this.scheduleFn=V,this.cancelFn=M,!r)throw new Error("callback is not defined");this.callback=r;const ie=this;this.invoke=s===S&&v&&v.useG?d.invokeTask:function(){return d.invokeTask.call(he,ie,this,arguments)}}static invokeTask(s,o,r){s||(s=this),ne++;try{return s.runCount++,s.zone.runTask(s,o,r)}finally{1==ne&&te(),ne--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,_)}_transitionTo(s,o,r){if(this._state!==o&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${o}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=s,s==y&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const m=re("setTimeout"),R=re("Promise"),E=re("then");let j,w=[],I=!1;function J(F){if(j||he[R]&&(j=he[R].resolve(0)),j){let s=j[E];s||(s=j.then),s.call(j,F)}else he[m](F,0)}function q(F){0===ne&&0===w.length&&J(te),F&&w.push(F)}function te(){if(!I){for(I=!0;w.length;){const F=w;w=[];for(let s=0;s<F.length;s++){const o=F[s];try{o.zone.runTask(o,null,null)}catch(r){L.onUnhandledError(r)}}}L.microtaskDrainDone(),I=!1}}const $={name:"NO ZONE"},y="notScheduled",_="scheduling",x="scheduled",H="running",W="canceling",B="unknown",p="microTask",X="macroTask",S="eventTask",C={},L={symbol:re,currentZoneFrame:()=>b,onUnhandledError:G,microtaskDrainDone:G,scheduleMicroTask:q,showUncaughtError:()=>!a[re("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:G,patchMethod:()=>G,bindArguments:()=>[],patchThen:()=>G,patchMacroTask:()=>G,patchEventPrototype:()=>G,getGlobalObjects:()=>{},ObjectDefineProperty:()=>G,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>G,wrapWithCurrentZone:()=>G,filterProperties:()=>[],attachOriginToPatched:()=>G,_redefineProperty:()=>G,patchCallbacks:()=>G,nativeScheduleMicroTask:J};let b={parent:null,zone:new a(null,null)},Q=null,ne=0;function G(){}return c("Zone","Zone"),a}()),e.Zone}();(function qt(t){(function Gt(t){t.__load_patch("ZoneAwarePromise",(e,c,n)=>{const a=Object.getOwnPropertyDescriptor,u=Object.defineProperty,d=n.symbol,m=[],R=!1!==e[d("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],E=d("Promise"),w=d("then");n.onUnhandledError=h=>{if(n.showUncaughtError()){const l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;m.length;){const h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){J(l)}}};const j=d("unhandledPromiseRejectionHandler");function J(h){n.onUnhandledError(h);try{const l=c[j];"function"==typeof l&&l.call(this,h)}catch{}}function q(h){return h&&"function"==typeof h.then}function te(h){return h}function $(h){return M.reject(h)}const y=d("state"),_=d("value"),x=d("finally"),H=d("parentPromiseValue"),W=d("parentPromiseState"),p=null,X=!0,S=!1;function L(h,l){return i=>{try{G(h,l,i)}catch(f){G(h,!1,f)}}}const b=function(){let h=!1;return function(i){return function(){h||(h=!0,i.apply(null,arguments))}}},Q="Promise resolved with itself",ne=d("currentTaskTrace");function G(h,l,i){const f=b();if(h===i)throw new TypeError(Q);if(h[y]===p){let g=null;try{("object"==typeof i||"function"==typeof i)&&(g=i&&i.then)}catch(P){return f(()=>{G(h,!1,P)})(),h}if(l!==S&&i instanceof M&&i.hasOwnProperty(y)&&i.hasOwnProperty(_)&&i[y]!==p)s(i),G(h,i[y],i[_]);else if(l!==S&&"function"==typeof g)try{g.call(i,f(L(h,l)),f(L(h,!1)))}catch(P){f(()=>{G(h,!1,P)})()}else{h[y]=l;const P=h[_];if(h[_]=i,h[x]===x&&l===X&&(h[y]=h[W],h[_]=h[H]),l===S&&i instanceof Error){const T=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;T&&u(i,ne,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<P.length;)o(h,P[T++],P[T++],P[T++],P[T++]);if(0==P.length&&l==S){h[y]=0;let T=i;try{throw new Error("Uncaught (in promise): "+function k(h){return h&&h.toString===Object.prototype.toString?(h.constructor&&h.constructor.name||"")+": "+JSON.stringify(h):h?h.toString():Object.prototype.toString.call(h)}(i)+(i&&i.stack?"\n"+i.stack:""))}catch(O){T=O}R&&(T.throwOriginal=!0),T.rejection=i,T.promise=h,T.zone=c.current,T.task=c.currentTask,m.push(T),n.scheduleMicroTask()}}}return h}const F=d("rejectionHandledHandler");function s(h){if(0===h[y]){try{const l=c[F];l&&"function"==typeof l&&l.call(this,{rejection:h[_],promise:h})}catch{}h[y]=S;for(let l=0;l<m.length;l++)h===m[l].promise&&m.splice(l,1)}}function o(h,l,i,f,g){s(h);const P=h[y],T=P?"function"==typeof f?f:te:"function"==typeof g?g:$;l.scheduleMicroTask("Promise.then",()=>{try{const O=h[_],N=!!i&&x===i[x];N&&(i[H]=O,i[W]=P);const Z=l.run(T,void 0,N&&T!==$&&T!==te?[]:[O]);G(i,!0,Z)}catch(O){G(i,!1,O)}},i)}const v=function(){},V=e.AggregateError;class M{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof M?l:G(new this(null),X,l)}static reject(l){return G(new this(null),S,l)}static withResolvers(){const l={};return l.promise=new M((i,f)=>{l.resolve=i,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new V([],"All promises were rejected"));const i=[];let f=0;try{for(let T of l)f++,i.push(M.resolve(T))}catch{return Promise.reject(new V([],"All promises were rejected"))}if(0===f)return Promise.reject(new V([],"All promises were rejected"));let g=!1;const P=[];return new M((T,O)=>{for(let N=0;N<i.length;N++)i[N].then(Z=>{g||(g=!0,T(Z))},Z=>{P.push(Z),f--,0===f&&(g=!0,O(new V(P,"All promises were rejected")))})})}static race(l){let i,f,g=new this((O,N)=>{i=O,f=N});function P(O){i(O)}function T(O){f(O)}for(let O of l)q(O)||(O=this.resolve(O)),O.then(P,T);return g}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,i){let f,g,P=new this((Z,z)=>{f=Z,g=z}),T=2,O=0;const N=[];for(let Z of l){q(Z)||(Z=this.resolve(Z));const z=O;try{Z.then(U=>{N[z]=i?i.thenCallback(U):U,T--,0===T&&f(N)},U=>{i?(N[z]=i.errorCallback(U),T--,0===T&&f(N)):g(U)})}catch(U){g(U)}T++,O++}return T-=2,0===T&&f(N),P}constructor(l){const i=this;if(!(i instanceof M))throw new Error("Must be an instanceof Promise.");i[y]=p,i[_]=[];try{const f=b();l&&l(f(L(i,X)),f(L(i,S)))}catch(f){G(i,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,i){var f;let g=null==(f=this.constructor)?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||M);const P=new g(v),T=c.current;return this[y]==p?this[_].push(T,P,l,i):o(this,T,P,l,i),P}catch(l){return this.then(null,l)}finally(l){var i;let f=null==(i=this.constructor)?void 0:i[Symbol.species];(!f||"function"!=typeof f)&&(f=M);const g=new f(v);g[x]=x;const P=c.current;return this[y]==p?this[_].push(P,g,l,l):o(this,P,g,l,l),g}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;const ie=e[E]=e.Promise;e.Promise=M;const ge=d("thenPatched");function ye(h){const l=h.prototype,i=a(l,"then");if(i&&(!1===i.writable||!i.configurable))return;const f=l.then;l[w]=f,h.prototype.then=function(g,P){return new M((O,N)=>{f.call(this,O,N)}).then(g,P)},h[ge]=!0}if(n.patchThen=ye,ie){ye(ie);const h=ie.try;h&&"function"==typeof h&&(M.try=h),Ee(e,"fetch",l=>function ae(h){return function(l,i){let f=h.apply(l,i);if(f instanceof M)return f;let g=f.constructor;return g[ge]||ye(g),f}}(l))}return Promise[c.__symbol__("uncaughtPromiseErrors")]=m,M})})(t),function zt(t){t.__load_patch("toString",e=>{const c=Function.prototype.toString,n=A("OriginalDelegate"),a=A("Promise"),u=A("Error"),k=function(){if("function"==typeof this){const E=this[n];if(E)return"function"==typeof E?c.call(E):Object.prototype.toString.call(E);if(this===Promise){const w=e[a];if(w)return c.call(w)}if(this===Error){const w=e[u];if(w)return c.call(w)}}return c.call(this)};k[n]=c,Function.prototype.toString=k;const d=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":d.call(this)}})}(t),function Wt(t){t.__load_patch("util",(e,c,n)=>{const a=Ue(e);n.patchOnProperties=rt,n.patchMethod=Ee,n.bindArguments=Ge,n.patchMacroTask=Lt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),k=c.__symbol__("UNPATCHED_EVENTS");e[k]&&(e[u]=e[k]),e[u]&&(c[u]=c[k]=e[u]),n.patchEventPrototype=jt,n.patchEventTarget=It,n.ObjectDefineProperty=Ie,n.ObjectGetOwnPropertyDescriptor=Pe,n.ObjectCreate=Rt,n.ArraySlice=Ct,n.patchClass=Re,n.wrapWithCurrentZone=xe,n.filterProperties=ht,n.attachOriginToPatched=pe,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Ut,n.getGlobalObjects=()=>({globalSources:it,zoneSymbolEventNames:oe,eventNames:a,isBrowser:ze,isMix:et,isNode:Oe,TRUE_STR:de,FALSE_STR:Te,ZONE_SYMBOL_PREFIX:we,ADD_EVENT_LISTENER_STR:Ae,REMOVE_EVENT_LISTENER_STR:He})})}(t)})(_t),function Bt(t){t.__load_patch("timers",e=>{const n="clear";ke(e,"set",n,"Timeout"),ke(e,"set",n,"Interval"),ke(e,"set",n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,c)=>{const n=["alert","prompt","confirm"];for(let a=0;a<n.length;a++)Ee(e,n[a],(k,d,m)=>function(R,E){return c.current.run(k,e,E,m)})}),t.__load_patch("EventTarget",(e,c,n)=>{(function Vt(t,e){e.patchEventPrototype(t,e)})(e,n),function Ft(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:u,ZONE_SYMBOL_PREFIX:k}=e.getGlobalObjects();for(let m=0;m<c.length;m++){const R=c[m],I=k+(R+u),j=k+(R+a);n[R]={},n[R][u]=I,n[R][a]=j}const d=t.EventTarget;d&&d.prototype&&e.patchEventTarget(t,e,[d&&d.prototype])}(e,n);const a=e.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(e,n,[a.prototype])}),t.__load_patch("MutationObserver",(e,c,n)=>{Re("MutationObserver"),Re("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,c,n)=>{Re("IntersectionObserver")}),t.__load_patch("FileReader",(e,c,n)=>{Re("FileReader")}),t.__load_patch("on_property",(e,c,n)=>{!function xt(t,e){if(Oe&&!et||Zone[t.symbol("patchEvents")])return;const c=e.__Zone_ignore_on_properties;let n=[];if(ze){const a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),ft(a,Ue(a),c,je(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a<n.length;a++){const u=e[n[a]];u?.prototype&&ft(u.prototype,Ue(u.prototype),c)}}(n,e)}),t.__load_patch("customElements",(e,c,n)=>{!function Ht(t,e){const{isBrowser:c,isMix:n}=e.getGlobalObjects();(c||n)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(e,n)}),t.__load_patch("XHR",(e,c)=>{!function R(E){const w=E.XMLHttpRequest;if(!w)return;const I=w.prototype;let J=I[Fe],q=I[Ve];if(!J){const C=E.XMLHttpRequestEventTarget;if(C){const L=C.prototype;J=L[Fe],q=L[Ve]}}const te="readystatechange",$="scheduled";function y(C){const L=C.data,b=L.target;b[k]=!1,b[m]=!1;const Q=b[u];J||(J=b[Fe],q=b[Ve]),Q&&q.call(b,te,Q);const ne=b[u]=()=>{if(b.readyState===b.DONE)if(!L.aborted&&b[k]&&C.state===$){const F=b[c.__symbol__("loadfalse")];if(0!==b.status&&F&&F.length>0){const s=C.invoke;C.invoke=function(){const o=b[c.__symbol__("loadfalse")];for(let r=0;r<o.length;r++)o[r]===C&&o.splice(r,1);!L.aborted&&C.state===$&&s.call(C)},F.push(C)}else C.invoke()}else!L.aborted&&!1===b[k]&&(b[m]=!0)};return J.call(b,te,ne),b[n]||(b[n]=C),X.apply(b,L.args),b[k]=!0,C}function _(){}function x(C){const L=C.data;return L.aborted=!0,S.apply(L.target,L.args)}const H=Ee(I,"open",()=>function(C,L){return C[a]=0==L[2],C[d]=L[1],H.apply(C,L)}),B=A("fetchTaskAborting"),p=A("fetchTaskScheduling"),X=Ee(I,"send",()=>function(C,L){if(!0===c.current[p]||C[a])return X.apply(C,L);{const b={target:C,url:C[d],isPeriodic:!1,args:L,aborted:!1},Q=Be("XMLHttpRequest.send",_,b,y,x);C&&!0===C[m]&&!b.aborted&&Q.state===$&&Q.invoke()}}),S=Ee(I,"abort",()=>function(C,L){const b=function j(C){return C[n]}(C);if(b&&"string"==typeof b.type){if(null==b.cancelFn||b.data&&b.data.aborted)return;b.zone.cancelTask(b)}else if(!0===c.current[B])return S.apply(C,L)})}(e);const n=A("xhrTask"),a=A("xhrSync"),u=A("xhrListener"),k=A("xhrScheduled"),d=A("xhrURL"),m=A("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function St(t,e){const c=t.constructor.name;for(let n=0;n<e.length;n++){const a=e[n],u=t[a];if(u){if(!Je(Pe(t,a)))continue;t[a]=(d=>{const m=function(){return d.apply(this,Ge(arguments,c+"."+a))};return pe(m,d),m})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,c)=>{function n(a){return function(u){ut(e,a).forEach(d=>{const m=e.PromiseRejectionEvent;if(m){const R=new m(a,{promise:u.promise,reason:u.rejection});d.invoke(R)}})}}e.PromiseRejectionEvent&&(c[A("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[A("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,c,n)=>{!function At(t,e){e.patchMethod(t,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}(e,n)})}(_t)}},Ye={};function _e(K){var ee=Ye[K];if(void 0!==ee)return ee.exports;var ue=Ye[K]={exports:{}};return yt[K](ue,ue.exports,_e),ue.exports}_e.n=K=>{var ee=K&&K.__esModule?()=>K.default:()=>K;return _e.d(ee,{a:ee}),ee},_e.d=(K,ee)=>{for(var ue in ee)_e.o(ee,ue)&&!_e.o(K,ue)&&Object.defineProperty(K,ue,{enumerable:!0,get:ee[ue]})},_e.o=(K,ee)=>Object.prototype.hasOwnProperty.call(K,ee),_e(2260)})();
|
|
1
|
+
(()=>{"use strict";var yt={260(){var K=Object.defineProperty,ee=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Me=(t,e,c)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:c}):t[e]=c,Ke=(t,e)=>{for(var c in e||(e={}))vt.call(e,c)&&Me(t,c,e[c]);if($e)for(var c of $e(e))kt.call(e,c)&&Me(t,c,e[c]);return t},D=(t,e,c)=>(Me(t,"symbol"!=typeof e?e+"":e,c),c),he=globalThis;function re(t){return(he.__Zone_symbol_prefix||"__zone_symbol__")+t}var Pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,je=Object.getPrototypeOf,Rt=Object.create,Ct=Array.prototype.slice,Ae="addEventListener",He="removeEventListener",Fe=re(Ae),Ve=re(He),de="true",Te="false",we=re("");function xe(t,e){return Zone.current.wrap(t,e)}function Be(t,e,c,n,a){return Zone.current.scheduleMacroTask(t,e,c,n,a)}var A=re,De=typeof window<"u",Se=De?window:void 0,Y=De&&Se||globalThis;function Ge(t,e){for(let c=t.length-1;c>=0;c--)"function"==typeof t[c]&&(t[c]=xe(t[c],e+"_"+c));return t}function Je(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Oe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"===Y.process.toString(),ze=!Oe&&!Qe&&!(!De||!Se.HTMLElement),et=typeof Y.process<"u"&&"[object process]"===Y.process.toString()&&!Qe&&!(!De||!Se.HTMLElement),Ne={},Ot=A("enable_beforeunload"),tt=function(t){if(!(t=t||Y.event))return;let e=Ne[t.type];e||(e=Ne[t.type]=A("ON_PROPERTY"+t.type));const c=this||t.target||Y,n=c[e];let a;return ze&&c===Se&&"error"===t.type?(a=n&&n.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===a&&t.preventDefault()):(a=n&&n.apply(this,arguments),"beforeunload"===t.type&&Y[Ot]&&"string"==typeof a?t.returnValue=a:null!=a&&!a&&t.preventDefault()),a};function nt(t,e,c){let n=Pe(t,e);if(!n&&c&&Pe(c,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const a=A("on"+e+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;const u=n.get,k=n.set,d=e.slice(2);let m=Ne[d];m||(m=Ne[d]=A("ON_PROPERTY"+d)),n.set=function(R){let E=this;!E&&t===Y&&(E=Y),E&&("function"==typeof E[m]&&E.removeEventListener(d,tt),k?.call(E,null),E[m]=R,"function"==typeof R&&E.addEventListener(d,tt,!1))},n.get=function(){let R=this;if(!R&&t===Y&&(R=Y),!R)return null;const E=R[m];if(E)return E;if(u){let w=u.call(this);if(w)return n.set.call(this,w),"function"==typeof R.removeAttribute&&R.removeAttribute(e),w}return null},Ie(t,e,n),t[a]=!0}function rt(t,e,c){if(e)for(let n=0;n<e.length;n++)nt(t,"on"+e[n],c);else{const n=[];for(const a in t)"on"==a.slice(0,2)&&n.push(a);for(let a=0;a<n.length;a++)nt(t,n[a],c)}}var se=A("originalInstance");function Re(t){const e=Y[t];if(!e)return;Y[A(t)]=e,Y[t]=function(){const a=Ge(arguments,t);switch(a.length){case 0:this[se]=new e;break;case 1:this[se]=new e(a[0]);break;case 2:this[se]=new e(a[0],a[1]);break;case 3:this[se]=new e(a[0],a[1],a[2]);break;case 4:this[se]=new e(a[0],a[1],a[2],a[3]);break;default:throw new Error("Arg list too long.")}},pe(Y[t],e);const c=new e(function(){});let n;for(n in c)"XMLHttpRequest"===t&&"responseBlob"===n||function(a){"function"==typeof c[a]?Y[t].prototype[a]=function(){return this[se][a].apply(this[se],arguments)}:Ie(Y[t].prototype,a,{set:function(u){"function"==typeof u?(this[se][a]=xe(u,t+"."+a),pe(this[se][a],u)):this[se][a]=u},get:function(){return this[se][a]}})}(n);for(n in e)"prototype"!==n&&e.hasOwnProperty(n)&&(Y[t][n]=e[n])}function Ee(t,e,c){let n=t;for(;n&&!n.hasOwnProperty(e);)n=je(n);!n&&t[e]&&(n=t);const a=A(e);let u=null;if(n&&(!(u=n[a])||!n.hasOwnProperty(a))&&(u=n[a]=n[e],Je(n&&Pe(n,e)))){const d=c(u,a,e);n[e]=function(){return d(this,arguments)},pe(n[e],u)}return u}function Lt(t,e,c){let n=null;function a(u){const k=u.data;return k.args[k.cbIdx]=function(){u.invoke.apply(this,arguments)},n.apply(k.target,k.args),u}n=Ee(t,e,u=>function(k,d){const m=c(k,d);return m.cbIdx>=0&&"function"==typeof d[m.cbIdx]?Be(m.name,d[m.cbIdx],m,a):u.apply(k,d)})}function pe(t,e){t[A("OriginalDelegate")]=e}function ot(t){return"function"==typeof t}function st(t){return"number"==typeof t}var Mt={useG:!0},oe={},it={},at=new RegExp("^"+we+"(\\w+)(true|false)$"),ct=A("propagationStopped");function lt(t,e){const c=(e?e(t):t)+Te,n=(e?e(t):t)+de,a=we+c,u=we+n;oe[t]={},oe[t][Te]=a,oe[t][de]=u}function It(t,e,c,n){const a=n&&n.add||Ae,u=n&&n.rm||He,k=n&&n.listeners||"eventListeners",d=n&&n.rmAll||"removeAllListeners",m=A(a),R="."+a+":",E="prependListener",w="."+E+":",I=function(y,_,x){if(y.isRemoved)return;const H=y.callback;let W;"object"==typeof H&&H.handleEvent&&(y.callback=p=>H.handleEvent(p),y.originalDelegate=H);try{y.invoke(y,_,[x])}catch(p){W=p}const B=y.options;return B&&"object"==typeof B&&B.once&&_[u].call(_,x.type,y.originalDelegate?y.originalDelegate:y.callback,B),W};function j(y,_,x){if(!(_=_||t.event))return;const H=y||_.target||t,W=H[oe[_.type][x?de:Te]];if(W){const B=[];if(1===W.length){const p=I(W[0],H,_);p&&B.push(p)}else{const p=W.slice();for(let X=0;X<p.length&&(!_||!0!==_[ct]);X++){const S=I(p[X],H,_);S&&B.push(S)}}if(1===B.length)throw B[0];for(let p=0;p<B.length;p++){const X=B[p];e.nativeScheduleMicroTask(()=>{throw X})}}}const J=function(y){return j(this,y,!1)},q=function(y){return j(this,y,!0)};function te(y,_){if(!y)return!1;let x=!0;_&&void 0!==_.useG&&(x=_.useG);const H=_&&_.vh;let W=!0;_&&void 0!==_.chkDup&&(W=_.chkDup);let B=!1;_&&void 0!==_.rt&&(B=_.rt);let p=y;for(;p&&!p.hasOwnProperty(a);)p=je(p);if(!p&&y[a]&&(p=y),!p||p[m])return!1;const X=_&&_.eventNameToString,S={},C=p[m]=p[a],L=p[A(u)]=p[u],b=p[A(k)]=p[k],Q=p[A(d)]=p[d];let ne;_&&_.prepend&&(ne=p[A(_.prepend)]=p[_.prepend]);const V=x?function(i){if(!S.isExisting)return C.call(S.target,S.eventName,S.capture?q:J,S.options)}:function(i){return C.call(S.target,S.eventName,i.invoke,S.options)},M=x?function(i){if(!i.isRemoved){const f=oe[i.eventName];let g;f&&(g=f[i.capture?de:Te]);const P=g&&i.target[g];if(P)for(let T=0;T<P.length;T++)if(P[T]===i){P.splice(T,1),i.isRemoved=!0,i.removeAbortListener&&(i.removeAbortListener(),i.removeAbortListener=null),0===P.length&&(i.allRemoved=!0,i.target[g]=null);break}}if(i.allRemoved)return L.call(i.target,i.eventName,i.capture?q:J,i.options)}:function(i){return L.call(i.target,i.eventName,i.invoke,i.options)},ge=_?.diff||function(i,f){const g=typeof f;return"function"===g&&i.callback===f||"object"===g&&i.originalDelegate===f},ye=Zone[A("UNPATCHED_EVENTS")],ae=t[A("PASSIVE_EVENTS")],l=function(i,f,g,P,T=!1,O=!1){return function(){const N=this||t;let Z=arguments[0];_&&_.transferEventName&&(Z=_.transferEventName(Z));let z=arguments[1];if(!z)return i.apply(this,arguments);if(Oe&&"uncaughtException"===Z)return i.apply(this,arguments);let U=!1;if("function"!=typeof z){if(!z.handleEvent)return i.apply(this,arguments);U=!0}if(H&&!H(i,z,N,arguments))return;const me=!!ae&&-1!==ae.indexOf(Z),ce=function h(i){if("object"==typeof i&&null!==i){const f=Ke({},i);return i.signal&&(f.signal=i.signal),f}return i}(function G(i,f){return f?"boolean"==typeof i?{capture:i,passive:!0}:i?"object"==typeof i&&!1!==i.passive?(t=>ee(t,ue({passive:!0})))(Ke({},i)):i:{passive:!0}:i}(arguments[2],me)),ve=ce?.signal;if(ve?.aborted)return;if(ye)for(let fe=0;fe<ye.length;fe++)if(Z===ye[fe])return me?i.call(N,Z,z,ce):i.apply(this,arguments);const We=!!ce&&("boolean"==typeof ce||ce.capture),dt=!(!ce||"object"!=typeof ce)&&ce.once,Xt=Zone.current;let qe=oe[Z];qe||(lt(Z,X),qe=oe[Z]);const Tt=qe[We?de:Te];let Le,be=N[Tt],Et=!1;if(be){if(Et=!0,W)for(let fe=0;fe<be.length;fe++)if(ge(be[fe],z))return}else be=N[Tt]=[];const pt=N.constructor.name,gt=it[pt];gt&&(Le=gt[Z]),Le||(Le=pt+f+(X?X(Z):Z)),S.options=ce,dt&&(S.options.once=!1),S.target=N,S.capture=We,S.eventName=Z,S.isExisting=Et;const Ce=x?Mt:void 0;Ce&&(Ce.taskData=S),ve&&(S.options.signal=void 0);const le=Xt.scheduleEventTask(Le,z,Ce,g,P);if(ve){S.options.signal=ve;const fe=()=>le.zone.cancelTask(le);i.call(ve,"abort",fe,{once:!0}),le.removeAbortListener=()=>ve.removeEventListener("abort",fe)}return S.target=null,Ce&&(Ce.taskData=null),dt&&(S.options.once=!0),"boolean"!=typeof le.options&&(le.options=ce),le.target=N,le.capture=We,le.eventName=Z,U&&(le.originalDelegate=z),O?be.unshift(le):be.push(le),T?N:void 0}};return p[a]=l(C,R,V,M,B),ne&&(p[E]=l(ne,w,function(i){return ne.call(S.target,S.eventName,i.invoke,S.options)},M,B,!0)),p[u]=function(){const i=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],P=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return L.apply(this,arguments);if(H&&!H(L,T,i,arguments))return;const O=oe[f];let N;O&&(N=O[P?de:Te]);const Z=N&&i[N];if(Z)for(let z=0;z<Z.length;z++){const U=Z[z];if(ge(U,T))return Z.splice(z,1),U.isRemoved=!0,0!==Z.length||(U.allRemoved=!0,i[N]=null,P||"string"!=typeof f)||(i[we+"ON_PROPERTY"+f]=null),U.zone.cancelTask(U),B?i:void 0}return L.apply(this,arguments)},p[k]=function(){const i=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],P=ut(i,X?X(f):f);for(let T=0;T<P.length;T++){const O=P[T];g.push(O.originalDelegate?O.originalDelegate:O.callback)}return g},p[d]=function(){const i=this||t;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=oe[f];if(g){const O=i[g[Te]],N=i[g[de]];if(O){const Z=O.slice();for(let z=0;z<Z.length;z++){const U=Z[z];this[u].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}if(N){const Z=N.slice();for(let z=0;z<Z.length;z++){const U=Z[z];this[u].call(this,f,U.originalDelegate?U.originalDelegate:U.callback,U.options)}}}}else{const g=Object.keys(i);for(let P=0;P<g.length;P++){const O=at.exec(g[P]);let N=O&&O[1];N&&"removeListener"!==N&&this[d].call(this,N)}this[d].call(this,"removeListener")}if(B)return this},pe(p[a],C),pe(p[u],L),Q&&pe(p[d],Q),b&&pe(p[k],b),!0}let $=[];for(let y=0;y<c.length;y++)$[y]=te(c[y],n);return $}function ut(t,e){if(!e){const u=[];for(let k in t){const d=at.exec(k);let m=d&&d[1];if(m&&(!e||m===e)){const R=t[k];if(R)for(let E=0;E<R.length;E++)u.push(R[E])}}return u}let c=oe[e];c||(lt(e),c=oe[e]);const n=t[c[Te]],a=t[c[de]];return n?a?n.concat(a):n.slice():a?a.slice():[]}function jt(t,e){const c=t.Event;c&&c.prototype&&e.patchMethod(c.prototype,"stopImmediatePropagation",n=>function(a,u){a[ct]=!0,n&&n.apply(a,u)})}var Ze=A("zoneTask");function ke(t,e,c,n){let a=null,u=null;c+=n;const k={};function d(R){const E=R.data;E.args[0]=function(){return R.invoke.apply(this,arguments)};const w=a.apply(t,E.args);return st(w)?E.handleId=w:(E.handle=w,E.isRefreshable=ot(w.refresh)),R}function m(R){const{handle:E,handleId:w}=R.data;return u.call(t,E??w)}a=Ee(t,e+=n,R=>function(E,w){var I;if(ot(w[0])){const j={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?w[1]||0:void 0,args:w},J=w[0];w[0]=function(){try{return J.apply(this,arguments)}finally{const{handle:H,handleId:W,isPeriodic:B,isRefreshable:p}=j;!B&&!p&&(W?delete k[W]:H&&(H[Ze]=null))}};const q=Be(e,w[0],j,d,m);if(!q)return q;const{handleId:te,handle:$,isRefreshable:y,isPeriodic:_}=q.data;if(te)k[te]=q;else if($&&($[Ze]=q,y&&!_)){const x=$.refresh;$.refresh=function(){const{zone:H,state:W}=q;return"notScheduled"===W?(q._state="scheduled",H._updateTaskCount(q,1)):"running"===W&&(q._state="scheduling"),x.call(this)}}return null!=(I=$??te)?I:q}return R.apply(t,w)}),u=Ee(t,c,R=>function(E,w){const I=w[0];let j;st(I)?(j=k[I],delete k[I]):(j=I?.[Ze],j?I[Ze]=null:j=I),j?.type?j.cancelFn&&j.zone.cancelTask(j):R.apply(t,w)})}function ht(t,e,c){if(!c||0===c.length)return e;const n=c.filter(u=>u.target===t);if(0===n.length)return e;const a=n[0].ignoreProperties;return e.filter(u=>-1===a.indexOf(u))}function ft(t,e,c,n){t&&rt(t,ht(t,e,c),n)}function Ue(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function Ut(t,e,c,n,a){const u=Zone.__symbol__(n);if(e[u])return;const k=e[u]=e[n];e[n]=function(d,m,R){return m&&m.prototype&&a.forEach(function(E){const w=`${c}.${n}::`+E,I=m.prototype;try{if(I.hasOwnProperty(E)){const j=t.ObjectGetOwnPropertyDescriptor(I,E);j&&j.value?(j.value=t.wrapWithCurrentZone(j.value,w),t._redefineProperty(m.prototype,E,j)):I[E]&&(I[E]=t.wrapWithCurrentZone(I[E],w))}else I[E]&&(I[E]=t.wrapWithCurrentZone(I[E],w))}catch{}}),k.call(e,d,m,R)},t.attachOriginToPatched(e[n],k)}var _t=function wt(){const e=globalThis,c=!0===e[re("forceDuplicateZoneCheck")];if(e.Zone&&(c||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return null!=e.Zone||(e.Zone=function Pt(){const t=he.performance;function e(F){t&&t.mark&&t.mark(F)}function c(F,s){t&&t.measure&&t.measure(F,s)}e("Zone");const n=class Xe{constructor(s,o){D(this,"_parent"),D(this,"_name"),D(this,"_properties"),D(this,"_zoneDelegate"),this._parent=s,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(he.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=Xe.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return Q}static __load_patch(s,o,r=!1){if(C.hasOwnProperty(s)){const v=!0===he[re("forceDuplicateZoneCheck")];if(!r&&v)throw Error("Already loaded patch: "+s)}else if(!he["__Zone_disable_"+s]){const v="Zone:"+s;e(v),C[s]=o(he,Xe,L),c(v,v)}}get parent(){return this._parent}get name(){return this._name}get(s){const o=this.getZoneWith(s);if(o)return o._properties[s]}getZoneWith(s){let o=this;for(;o;){if(o._properties.hasOwnProperty(s))return o;o=o._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,o){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const r=this._zoneDelegate.intercept(this,s,o),v=this;return function(){return v.runGuarded(r,this,arguments,o)}}run(s,o,r,v){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,o,r,v)}finally{b=b.parent}}runGuarded(s,o=null,r,v){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,o,r,v)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,o,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||$).name+"; Execution: "+this.name+")");const v=s,{type:V,data:{isPeriodic:M=!1,isRefreshable:ie=!1}={}}=s;if(s.state===y&&(V===S||V===X))return;const ge=s.state!=H;ge&&v._transitionTo(H,x);const ye=Q;Q=v,b={parent:b,zone:this};try{V==X&&s.data&&!M&&!ie&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,v,o,r)}catch(ae){if(this._zoneDelegate.handleError(this,ae))throw ae}}finally{const ae=s.state;if(ae!==y&&ae!==B)if(V==S||M||ie&&ae===_)ge&&v._transitionTo(x,H,_);else{const h=v._zoneDelegates;this._updateTaskCount(v,-1),ge&&v._transitionTo(y,H,y),ie&&(v._zoneDelegates=h)}b=b.parent,Q=ye}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(_,y);const o=[];s._zoneDelegates=o,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(B,_,y),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===o&&this._updateTaskCount(s,1),s.state==_&&s._transitionTo(x,_),s}scheduleMicroTask(s,o,r,v){return this.scheduleTask(new d(p,s,o,r,v,void 0))}scheduleMacroTask(s,o,r,v,V){return this.scheduleTask(new d(X,s,o,r,v,V))}scheduleEventTask(s,o,r,v,V){return this.scheduleTask(new d(S,s,o,r,v,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||$).name+"; Execution: "+this.name+")");if(s.state===x||s.state===H){s._transitionTo(W,x,H);try{this._zoneDelegate.cancelTask(this,s)}catch(o){throw s._transitionTo(B,W),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(s,-1),s._transitionTo(y,W),s.runCount=-1,s}}_updateTaskCount(s,o){const r=s._zoneDelegates;-1==o&&(s._zoneDelegates=null);for(let v=0;v<r.length;v++)r[v]._updateTaskCount(s.type,o)}};D(n,"__symbol__",re);let a=n;const u={name:"",onHasTask:(F,s,o,r)=>F.hasTask(o,r),onScheduleTask:(F,s,o,r)=>F.scheduleTask(o,r),onInvokeTask:(F,s,o,r,v,V)=>F.invokeTask(o,r,v,V),onCancelTask:(F,s,o,r)=>F.cancelTask(o,r)};class k{constructor(s,o,r){D(this,"_zone"),D(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),D(this,"_parentDelegate"),D(this,"_forkDlgt"),D(this,"_forkZS"),D(this,"_forkCurrZone"),D(this,"_interceptDlgt"),D(this,"_interceptZS"),D(this,"_interceptCurrZone"),D(this,"_invokeDlgt"),D(this,"_invokeZS"),D(this,"_invokeCurrZone"),D(this,"_handleErrorDlgt"),D(this,"_handleErrorZS"),D(this,"_handleErrorCurrZone"),D(this,"_scheduleTaskDlgt"),D(this,"_scheduleTaskZS"),D(this,"_scheduleTaskCurrZone"),D(this,"_invokeTaskDlgt"),D(this,"_invokeTaskZS"),D(this,"_invokeTaskCurrZone"),D(this,"_cancelTaskDlgt"),D(this,"_cancelTaskZS"),D(this,"_cancelTaskCurrZone"),D(this,"_hasTaskDlgt"),D(this,"_hasTaskDlgtOwner"),D(this,"_hasTaskZS"),D(this,"_hasTaskCurrZone"),this._zone=s,this._parentDelegate=o,this._forkZS=r&&(r&&r.onFork?r:o._forkZS),this._forkDlgt=r&&(r.onFork?o:o._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:o._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:o._interceptZS),this._interceptDlgt=r&&(r.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:o._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:o._invokeZS),this._invokeDlgt=r&&(r.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:o._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:o._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:o._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:o._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:o._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:o._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:o._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:o._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const v=r&&r.onHasTask;(v||o&&o._hasTaskZS)&&(this._hasTaskZS=v?r:u,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(s,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,o):new a(s,o)}intercept(s,o,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,o,r):o}invoke(s,o,r,v,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,o,r,v,V):o.apply(r,v)}handleError(s,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,o)}scheduleTask(s,o){let r=o;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,o),r||(r=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=p)throw new Error("Task is missing scheduleFn.");q(o)}return r}invokeTask(s,o,r,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,o,r,v):o.callback.apply(r,v)}cancelTask(s,o){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");r=o.cancelFn(o)}return r}hasTask(s,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,o)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,o){const r=this._taskCounts,v=r[s],V=r[s]=v+o;if(V<0)throw new Error("More tasks executed then were scheduled.");0!=v&&0!=V||this.hasTask(this._zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s})}}class d{constructor(s,o,r,v,V,M){if(D(this,"type"),D(this,"source"),D(this,"invoke"),D(this,"callback"),D(this,"data"),D(this,"scheduleFn"),D(this,"cancelFn"),D(this,"_zone",null),D(this,"runCount",0),D(this,"_zoneDelegates",null),D(this,"_state","notScheduled"),this.type=s,this.source=o,this.data=v,this.scheduleFn=V,this.cancelFn=M,!r)throw new Error("callback is not defined");this.callback=r;const ie=this;this.invoke=s===S&&v&&v.useG?d.invokeTask:function(){return d.invokeTask.call(he,ie,this,arguments)}}static invokeTask(s,o,r){s||(s=this),ne++;try{return s.runCount++,s.zone.runTask(s,o,r)}finally{1==ne&&te(),ne--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,_)}_transitionTo(s,o,r){if(this._state!==o&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${o}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=s,s==y&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const m=re("setTimeout"),R=re("Promise"),E=re("then");let j,w=[],I=!1;function J(F){if(j||he[R]&&(j=he[R].resolve(0)),j){let s=j[E];s||(s=j.then),s.call(j,F)}else he[m](F,0)}function q(F){0===ne&&0===w.length&&J(te),F&&w.push(F)}function te(){if(!I){for(I=!0;w.length;){const F=w;w=[];for(let s=0;s<F.length;s++){const o=F[s];try{o.zone.runTask(o,null,null)}catch(r){L.onUnhandledError(r)}}}L.microtaskDrainDone(),I=!1}}const $={name:"NO ZONE"},y="notScheduled",_="scheduling",x="scheduled",H="running",W="canceling",B="unknown",p="microTask",X="macroTask",S="eventTask",C={},L={symbol:re,currentZoneFrame:()=>b,onUnhandledError:G,microtaskDrainDone:G,scheduleMicroTask:q,showUncaughtError:()=>!a[re("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:G,patchMethod:()=>G,bindArguments:()=>[],patchThen:()=>G,patchMacroTask:()=>G,patchEventPrototype:()=>G,getGlobalObjects:()=>{},ObjectDefineProperty:()=>G,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>G,wrapWithCurrentZone:()=>G,filterProperties:()=>[],attachOriginToPatched:()=>G,_redefineProperty:()=>G,patchCallbacks:()=>G,nativeScheduleMicroTask:J};let b={parent:null,zone:new a(null,null)},Q=null,ne=0;function G(){}return c("Zone","Zone"),a}()),e.Zone}();(function qt(t){(function Gt(t){t.__load_patch("ZoneAwarePromise",(e,c,n)=>{const a=Object.getOwnPropertyDescriptor,u=Object.defineProperty,d=n.symbol,m=[],R=!1!==e[d("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],E=d("Promise"),w=d("then");n.onUnhandledError=h=>{if(n.showUncaughtError()){const l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;m.length;){const h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){J(l)}}};const j=d("unhandledPromiseRejectionHandler");function J(h){n.onUnhandledError(h);try{const l=c[j];"function"==typeof l&&l.call(this,h)}catch{}}function q(h){return h&&"function"==typeof h.then}function te(h){return h}function $(h){return M.reject(h)}const y=d("state"),_=d("value"),x=d("finally"),H=d("parentPromiseValue"),W=d("parentPromiseState"),p=null,X=!0,S=!1;function L(h,l){return i=>{try{G(h,l,i)}catch(f){G(h,!1,f)}}}const b=function(){let h=!1;return function(i){return function(){h||(h=!0,i.apply(null,arguments))}}},Q="Promise resolved with itself",ne=d("currentTaskTrace");function G(h,l,i){const f=b();if(h===i)throw new TypeError(Q);if(h[y]===p){let g=null;try{("object"==typeof i||"function"==typeof i)&&(g=i&&i.then)}catch(P){return f(()=>{G(h,!1,P)})(),h}if(l!==S&&i instanceof M&&i.hasOwnProperty(y)&&i.hasOwnProperty(_)&&i[y]!==p)s(i),G(h,i[y],i[_]);else if(l!==S&&"function"==typeof g)try{g.call(i,f(L(h,l)),f(L(h,!1)))}catch(P){f(()=>{G(h,!1,P)})()}else{h[y]=l;const P=h[_];if(h[_]=i,h[x]===x&&l===X&&(h[y]=h[W],h[_]=h[H]),l===S&&i instanceof Error){const T=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;T&&u(i,ne,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<P.length;)o(h,P[T++],P[T++],P[T++],P[T++]);if(0==P.length&&l==S){h[y]=0;let T=i;try{throw new Error("Uncaught (in promise): "+function k(h){return h&&h.toString===Object.prototype.toString?(h.constructor&&h.constructor.name||"")+": "+JSON.stringify(h):h?h.toString():Object.prototype.toString.call(h)}(i)+(i&&i.stack?"\n"+i.stack:""))}catch(O){T=O}R&&(T.throwOriginal=!0),T.rejection=i,T.promise=h,T.zone=c.current,T.task=c.currentTask,m.push(T),n.scheduleMicroTask()}}}return h}const F=d("rejectionHandledHandler");function s(h){if(0===h[y]){try{const l=c[F];l&&"function"==typeof l&&l.call(this,{rejection:h[_],promise:h})}catch{}h[y]=S;for(let l=0;l<m.length;l++)h===m[l].promise&&m.splice(l,1)}}function o(h,l,i,f,g){s(h);const P=h[y],T=P?"function"==typeof f?f:te:"function"==typeof g?g:$;l.scheduleMicroTask("Promise.then",()=>{try{const O=h[_],N=!!i&&x===i[x];N&&(i[H]=O,i[W]=P);const Z=l.run(T,void 0,N&&T!==$&&T!==te?[]:[O]);G(i,!0,Z)}catch(O){G(i,!1,O)}},i)}const v=function(){},V=e.AggregateError;class M{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(l){return l instanceof M?l:G(new this(null),X,l)}static reject(l){return G(new this(null),S,l)}static withResolvers(){const l={};return l.promise=new M((i,f)=>{l.resolve=i,l.reject=f}),l}static any(l){if(!l||"function"!=typeof l[Symbol.iterator])return Promise.reject(new V([],"All promises were rejected"));const i=[];let f=0;try{for(let T of l)f++,i.push(M.resolve(T))}catch{return Promise.reject(new V([],"All promises were rejected"))}if(0===f)return Promise.reject(new V([],"All promises were rejected"));let g=!1;const P=[];return new M((T,O)=>{for(let N=0;N<i.length;N++)i[N].then(Z=>{g||(g=!0,T(Z))},Z=>{P.push(Z),f--,0===f&&(g=!0,O(new V(P,"All promises were rejected")))})})}static race(l){let i,f,g=new this((O,N)=>{i=O,f=N});function P(O){i(O)}function T(O){f(O)}for(let O of l)q(O)||(O=this.resolve(O)),O.then(P,T);return g}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(l,i){let f,g,P=new this((Z,z)=>{f=Z,g=z}),T=2,O=0;const N=[];for(let Z of l){q(Z)||(Z=this.resolve(Z));const z=O;try{Z.then(U=>{N[z]=i?i.thenCallback(U):U,T--,0===T&&f(N)},U=>{i?(N[z]=i.errorCallback(U),T--,0===T&&f(N)):g(U)})}catch(U){g(U)}T++,O++}return T-=2,0===T&&f(N),P}constructor(l){const i=this;if(!(i instanceof M))throw new Error("Must be an instanceof Promise.");i[y]=p,i[_]=[];try{const f=b();l&&l(f(L(i,X)),f(L(i,S)))}catch(f){G(i,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,i){var f;let g=null==(f=this.constructor)?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||M);const P=new g(v),T=c.current;return this[y]==p?this[_].push(T,P,l,i):o(this,T,P,l,i),P}catch(l){return this.then(null,l)}finally(l){var i;let f=null==(i=this.constructor)?void 0:i[Symbol.species];(!f||"function"!=typeof f)&&(f=M);const g=new f(v);g[x]=x;const P=c.current;return this[y]==p?this[_].push(P,g,l,l):o(this,P,g,l,l),g}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;const ie=e[E]=e.Promise;e.Promise=M;const ge=d("thenPatched");function ye(h){const l=h.prototype,i=a(l,"then");if(i&&(!1===i.writable||!i.configurable))return;const f=l.then;l[w]=f,h.prototype.then=function(g,P){return new M((O,N)=>{f.call(this,O,N)}).then(g,P)},h[ge]=!0}if(n.patchThen=ye,ie){ye(ie);const h=ie.try;h&&"function"==typeof h&&(M.try=h),Ee(e,"fetch",l=>function ae(h){return function(l,i){let f=h.apply(l,i);if(f instanceof M)return f;let g=f.constructor;return g[ge]||ye(g),f}}(l))}return Promise[c.__symbol__("uncaughtPromiseErrors")]=m,M})})(t),function zt(t){t.__load_patch("toString",e=>{const c=Function.prototype.toString,n=A("OriginalDelegate"),a=A("Promise"),u=A("Error"),k=function(){if("function"==typeof this){const E=this[n];if(E)return"function"==typeof E?c.call(E):Object.prototype.toString.call(E);if(this===Promise){const w=e[a];if(w)return c.call(w)}if(this===Error){const w=e[u];if(w)return c.call(w)}}return c.call(this)};k[n]=c,Function.prototype.toString=k;const d=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":d.call(this)}})}(t),function Wt(t){t.__load_patch("util",(e,c,n)=>{const a=Ue(e);n.patchOnProperties=rt,n.patchMethod=Ee,n.bindArguments=Ge,n.patchMacroTask=Lt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),k=c.__symbol__("UNPATCHED_EVENTS");e[k]&&(e[u]=e[k]),e[u]&&(c[u]=c[k]=e[u]),n.patchEventPrototype=jt,n.patchEventTarget=It,n.ObjectDefineProperty=Ie,n.ObjectGetOwnPropertyDescriptor=Pe,n.ObjectCreate=Rt,n.ArraySlice=Ct,n.patchClass=Re,n.wrapWithCurrentZone=xe,n.filterProperties=ht,n.attachOriginToPatched=pe,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Ut,n.getGlobalObjects=()=>({globalSources:it,zoneSymbolEventNames:oe,eventNames:a,isBrowser:ze,isMix:et,isNode:Oe,TRUE_STR:de,FALSE_STR:Te,ZONE_SYMBOL_PREFIX:we,ADD_EVENT_LISTENER_STR:Ae,REMOVE_EVENT_LISTENER_STR:He})})}(t)})(_t),function Bt(t){t.__load_patch("timers",e=>{const n="clear";ke(e,"set",n,"Timeout"),ke(e,"set",n,"Interval"),ke(e,"set",n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,c)=>{const n=["alert","prompt","confirm"];for(let a=0;a<n.length;a++)Ee(e,n[a],(k,d,m)=>function(R,E){return c.current.run(k,e,E,m)})}),t.__load_patch("EventTarget",(e,c,n)=>{(function Vt(t,e){e.patchEventPrototype(t,e)})(e,n),function Ft(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:u,ZONE_SYMBOL_PREFIX:k}=e.getGlobalObjects();for(let m=0;m<c.length;m++){const R=c[m],I=k+(R+u),j=k+(R+a);n[R]={},n[R][u]=I,n[R][a]=j}const d=t.EventTarget;d&&d.prototype&&e.patchEventTarget(t,e,[d&&d.prototype])}(e,n);const a=e.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(e,n,[a.prototype])}),t.__load_patch("MutationObserver",(e,c,n)=>{Re("MutationObserver"),Re("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,c,n)=>{Re("IntersectionObserver")}),t.__load_patch("FileReader",(e,c,n)=>{Re("FileReader")}),t.__load_patch("on_property",(e,c,n)=>{!function xt(t,e){if(Oe&&!et||Zone[t.symbol("patchEvents")])return;const c=e.__Zone_ignore_on_properties;let n=[];if(ze){const a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),ft(a,Ue(a),c,je(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a<n.length;a++){const u=e[n[a]];u?.prototype&&ft(u.prototype,Ue(u.prototype),c)}}(n,e)}),t.__load_patch("customElements",(e,c,n)=>{!function Ht(t,e){const{isBrowser:c,isMix:n}=e.getGlobalObjects();(c||n)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(e,n)}),t.__load_patch("XHR",(e,c)=>{!function R(E){const w=E.XMLHttpRequest;if(!w)return;const I=w.prototype;let J=I[Fe],q=I[Ve];if(!J){const C=E.XMLHttpRequestEventTarget;if(C){const L=C.prototype;J=L[Fe],q=L[Ve]}}const te="readystatechange",$="scheduled";function y(C){const L=C.data,b=L.target;b[k]=!1,b[m]=!1;const Q=b[u];J||(J=b[Fe],q=b[Ve]),Q&&q.call(b,te,Q);const ne=b[u]=()=>{if(b.readyState===b.DONE)if(!L.aborted&&b[k]&&C.state===$){const F=b[c.__symbol__("loadfalse")];if(0!==b.status&&F&&F.length>0){const s=C.invoke;C.invoke=function(){const o=b[c.__symbol__("loadfalse")];for(let r=0;r<o.length;r++)o[r]===C&&o.splice(r,1);!L.aborted&&C.state===$&&s.call(C)},F.push(C)}else C.invoke()}else!L.aborted&&!1===b[k]&&(b[m]=!0)};return J.call(b,te,ne),b[n]||(b[n]=C),X.apply(b,L.args),b[k]=!0,C}function _(){}function x(C){const L=C.data;return L.aborted=!0,S.apply(L.target,L.args)}const H=Ee(I,"open",()=>function(C,L){return C[a]=0==L[2],C[d]=L[1],H.apply(C,L)}),B=A("fetchTaskAborting"),p=A("fetchTaskScheduling"),X=Ee(I,"send",()=>function(C,L){if(!0===c.current[p]||C[a])return X.apply(C,L);{const b={target:C,url:C[d],isPeriodic:!1,args:L,aborted:!1},Q=Be("XMLHttpRequest.send",_,b,y,x);C&&!0===C[m]&&!b.aborted&&Q.state===$&&Q.invoke()}}),S=Ee(I,"abort",()=>function(C,L){const b=function j(C){return C[n]}(C);if(b&&"string"==typeof b.type){if(null==b.cancelFn||b.data&&b.data.aborted)return;b.zone.cancelTask(b)}else if(!0===c.current[B])return S.apply(C,L)})}(e);const n=A("xhrTask"),a=A("xhrSync"),u=A("xhrListener"),k=A("xhrScheduled"),d=A("xhrURL"),m=A("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function St(t,e){const c=t.constructor.name;for(let n=0;n<e.length;n++){const a=e[n],u=t[a];if(u){if(!Je(Pe(t,a)))continue;t[a]=(d=>{const m=function(){return d.apply(this,Ge(arguments,c+"."+a))};return pe(m,d),m})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,c)=>{function n(a){return function(u){ut(e,a).forEach(d=>{const m=e.PromiseRejectionEvent;if(m){const R=new m(a,{promise:u.promise,reason:u.rejection});d.invoke(R)}})}}e.PromiseRejectionEvent&&(c[A("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[A("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,c,n)=>{!function At(t,e){e.patchMethod(t,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}(e,n)})}(_t)}},Ye={};function _e(K){var ee=Ye[K];if(void 0!==ee)return ee.exports;var ue=Ye[K]={exports:{}};return yt[K](ue,ue.exports,_e),ue.exports}_e.n=K=>{var ee=K&&K.__esModule?()=>K.default:()=>K;return _e.d(ee,{a:ee}),ee},_e.d=(K,ee)=>{for(var ue in ee)_e.o(ee,ue)&&!_e.o(K,ue)&&Object.defineProperty(K,ue,{enumerable:!0,get:ee[ue]})},_e.o=(K,ee)=>Object.prototype.hasOwnProperty.call(K,ee),_e(260)})();
|
package/680.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkkhiops_webcomponent=self.webpackChunkkhiops_webcomponent||[]).push([[680],{3680(yi,je,ie){ie.r(je),ie.d(je,{AnimationDriver:()=>Ts,NoopAnimationDriver:()=>ke,\u0275Animation:()=>fi,\u0275AnimationEngine:()=>qe,\u0275AnimationRenderer:()=>wt,\u0275AnimationRendererFactory:()=>pi,\u0275AnimationStyleNormalizer:()=>nt,\u0275BaseAnimationRenderer:()=>$e,\u0275ENTER_CLASSNAME:()=>re,\u0275LEAVE_CLASSNAME:()=>x,\u0275NoopAnimationStyleNormalizer:()=>rt,\u0275TransitionAnimationPlayer:()=>pe,\u0275WebAnimationsDriver:()=>bt,\u0275WebAnimationsPlayer:()=>Ve,\u0275WebAnimationsStyleNormalizer:()=>at,\u0275allowPreviousPlayerStylesMerge:()=>it,\u0275camelCaseToDashCase:()=>Ss,\u0275containsElement:()=>be,\u0275createEngine:()=>hi,\u0275getParentElement:()=>ne,\u0275invokeQuery:()=>ve,\u0275normalizeKeyframes:()=>et,\u0275validateStyleProperty:()=>Ze,\u0275validateWebAnimatableStyleProperty:()=>hs});var E=ie(6296),d=ie(2816);function Ge(n){return new E.buA(3e3,!1)}function Kt(n){return new E.buA(3002,!1)}const ls=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function V(n){switch(n.length){case 0:return new d.sf;case 1:return n[0];default:return new d.PZ(n)}}function He(n,e,t=new Map,s=new Map){const i=[],r=[];let a=-1,o=null;if(e.forEach(l=>{const u=l.get("offset"),c=u==a,h=c&&o||new Map;l.forEach((S,_)=>{let m=_,y=S;if("offset"!==_)switch(m=n.normalizePropertyName(m,i),y){case d.FX:y=t.get(_);break;case d.kp:y=s.get(_);break;default:y=n.normalizeStyleValue(_,m,y,i)}h.set(m,y)}),c||r.push(h),o=h,a=u}),i.length)throw function Zt(){return new E.buA(3502,!1)}();return r}function Se(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ee(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ee(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ee(t,"destroy",n)))}}function Ee(n,e,t){const r=Te(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),a=n._data;return null!=a&&(r._data=a),r}function Te(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function I(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Xe(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}const us=typeof document>"u"?null:document.documentElement;function ne(n){const e=n.parentNode||n.host||null;return e===us?null:e}let U=null,Ye=!1;function Ze(n){U||(U=function fs(){return typeof document<"u"?document.body:null}()||{},Ye=!!U.style&&"WebkitAppearance"in U.style);let e=!0;return U.style&&!function cs(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in U.style,!e&&Ye&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in U.style)),e}function hs(n){return ls.has(n)}function be(n,e){for(;e;){if(e===n)return!0;e=ne(e)}return!1}function ve(n,e,t){if(t)return Array.from(n.querySelectorAll(e));const s=n.querySelector(e);return s?[s]:[]}const re="ng-enter",x="ng-leave",ae="ng-trigger",oe=".ng-trigger",xe="ng-animating",we=".ng-animating";function Q(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ae(parseFloat(e[1]),e[2])}function Ae(n,e){return"s"===e?1e3*n:n}function le(n,e,t){return n.hasOwnProperty("duration")?n:function gs(n,e,t){let s,i=0,r="";if("string"==typeof n){const a=n.match(ps);if(null===a)return e.push(Ge()),{duration:0,delay:0,easing:""};s=Ae(parseFloat(a[1]),a[2]);const o=a[3];null!=o&&(i=Ae(parseFloat(o),a[4]));const l=a[5];l&&(r=l)}else s=n;if(!t){let a=!1,o=e.length;s<0&&(e.push(function kt(){return new E.buA(3100,!1)}()),a=!0),i<0&&(e.push(function Ct(){return new E.buA(3101,!1)}()),a=!0),a&&e.splice(o,0,Ge())}return{duration:s,delay:i,easing:r}}(n,e,t)}const ps=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function et(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function tt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function K(n,e,t){e.forEach((s,i)=>{const r=Ne(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function W(n,e){e.forEach((t,s)=>{const i=Ne(s);n.style[i]=""})}function ee(n){return Array.isArray(n)?1==n.length?n[0]:(0,d.K2)(n):n}const Pe=new RegExp("{{\\s*(.+?)\\s*}}","g");function st(n){let e=[];if("string"==typeof n){let t;for(;t=Pe.exec(n);)e.push(t[1]);Pe.lastIndex=0}return e}function te(n,e,t){const s=`${n}`,i=s.replace(Pe,(r,a)=>{let o=e[a];return null==o&&(t.push(function It(){return new E.buA(3003,!1)}()),o=""),o.toString()});return i==s?n:i}const _s=/-+([a-z0-9])/g;function Ne(n){return n.replace(_s,(...e)=>e[1].toUpperCase())}function Ss(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function it(n,e){return 0===n||0===e}function R(n,e,t){switch(e.type){case d.If.Trigger:return n.visitTrigger(e,t);case d.If.State:return n.visitState(e,t);case d.If.Transition:return n.visitTransition(e,t);case d.If.Sequence:return n.visitSequence(e,t);case d.If.Group:return n.visitGroup(e,t);case d.If.Animate:return n.visitAnimate(e,t);case d.If.Keyframes:return n.visitKeyframes(e,t);case d.If.Style:return n.visitStyle(e,t);case d.If.Reference:return n.visitReference(e,t);case d.If.AnimateChild:return n.visitAnimateChild(e,t);case d.If.AnimateRef:return n.visitAnimateRef(e,t);case d.If.Query:return n.visitQuery(e,t);case d.If.Stagger:return n.visitStagger(e,t);default:throw function Rt(){return new E.buA(3004,!1)}()}}function Me(n,e){return window.getComputedStyle(n)[e]}let ke=(()=>{class n{validateStyleProperty(t){return Ze(t)}containsElement(t,s){return be(t,s)}getParentElement(t){return ne(t)}query(t,s,i){return ve(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new d.sf(i,r)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=E.jDH({token:n,factory:n.\u0275fac})}return n})();class Ts{static NOOP=new ke}class nt{}class rt{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}}const bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class at extends nt{normalizePropertyName(e,t){return Ne(e)}normalizeStyleValue(e,t,s,i){let r="";const a=s.toString().trim();if(bs.has(t)&&0!==s&&"0"!==s)if("number"==typeof s)r="px";else{const o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push(function Ft(){return new E.buA(3005,!1)}())}return a+r}}const ce=new Set(["true","1"]),he=new Set(["false","0"]);function ot(n,e){const t=ce.has(n)||he.has(n),s=ce.has(e)||he.has(e);return(i,r)=>{let a="*"==n||n==i,o="*"==e||e==r;return!a&&t&&"boolean"==typeof i&&(a=i?ce.has(n):he.has(n)),!o&&s&&"boolean"==typeof r&&(o=r?ce.has(e):he.has(e)),a&&o}}const Ps=new RegExp("s*:selfs*,?","g");function De(n,e,t,s){return new Ns(n).build(e,t,s)}class Ns{_driver;constructor(e){this._driver=e}build(e,t,s){const i=new Cs(t);return this._resetContextStyleTimingState(i),R(this,ee(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0;const r=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push(function Ot(){return new E.buA(3006,!1)}()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==d.If.State){const l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==d.If.Transition){const l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(function Lt(){return new E.buA(3007,!1)}())}),{type:d.If.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){const s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){const r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{st(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(function zt(){return new E.buA(3008,!1)}(0,r.values()))}return{type:d.If.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const s=R(this,ee(e.animation),t),i=function vs(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(s=>function ws(n,e,t){if(":"==n[0]){const l=function As(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(function Gt(){return new E.buA(3016,!1)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return t.push(function jt(){return new E.buA(3015,!1)}()),e;const i=s[1],r=s[2],a=s[3];e.push(ot(i,a)),"<"==r[0]&&("*"!=i||"*"!=a)&&e.push(ot(a,i))}(s,t,e)):t.push(n),t}(e.expr,t.errors);return{type:d.If.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:j(e.options)}}visitSequence(e,t){return{type:d.If.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:j(e.options)}}visitGroup(e,t){const s=t.currentTime;let i=0;const r=e.steps.map(a=>{t.currentTime=s;const o=R(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:d.If.Group,steps:r,options:j(e.options)}}visitAnimate(e,t){const s=function Is(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Ie(le(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Ie(0,0,"");return r.dynamic=!0,r.strValue=t,r}const i=le(t,e);return Ie(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:(0,d.iF)({});if(r.type==d.If.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;const u={};s.easing&&(u.easing=s.easing),a=(0,d.iF)(u)}t.currentTime+=s.duration+s.delay;const l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:d.If.Animate,timings:s,style:i,options:null}}visitStyle(e,t){const s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){const s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)"string"==typeof o?o===d.kp?s.push(o):t.errors.push(Kt()):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r))for(let l of o.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:d.If.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const s=t.currentAnimateTimings;let i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{"string"!=typeof a&&a.forEach((o,l)=>{const u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l);let h=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(function Bt(){return new E.buA(3010,!1)}()),h=!1),r=c.startTime),h&&u.set(l,{startTime:r,endTime:i}),t.options&&function ys(n,e,t){const s=e.params||{},i=st(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(function Dt(){return new E.buA(3001,!1)}())})}(o,t.options,t.errors)})})}visitKeyframes(e,t){const s={type:d.If.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function qt(){return new E.buA(3011,!1)}()),s;let r=0;const a=[];let o=!1,l=!1,u=0;const c=e.steps.map(w=>{const A=this._makeStyleAst(w,t);let k=null!=A.offset?A.offset:function Ds(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(A.styles),N=0;return null!=k&&(r++,N=A.offset=k),l=l||N<0||N>1,o=o||N<u,u=N,a.push(N),A});l&&t.errors.push(function Qt(){return new E.buA(3012,!1)}()),o&&t.errors.push(function Vt(){return new E.buA(3200,!1)}());const h=e.steps.length;let S=0;r>0&&r<h?t.errors.push(function $t(){return new E.buA(3202,!1)}()):0==r&&(S=1/(h-1));const _=h-1,m=t.currentTime,y=t.currentAnimateTimings,b=y.duration;return c.forEach((w,A)=>{const k=S>0?A==_?1:S*A:a[A],N=k*b;t.currentTime=m+y.delay+N,y.duration=N,this._validateStyleAst(w,t),w.offset=k,s.styles.push(w)}),s}visitReference(e,t){return{type:d.If.Reference,animation:R(this,ee(e.animation),t),options:j(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:d.If.AnimateChild,options:j(e.options)}}visitAnimateRef(e,t){return{type:d.If.AnimateRef,animation:this.visitReference(e.animation,t),options:j(e.options)}}visitQuery(e,t){const s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[r,a]=function Ms(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(Ps,"")),n=n.replace(/@\*/g,oe).replace(/@\w+/g,t=>oe+"-"+t.slice(1)).replace(/:animating/g,we),[n,e]}(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,I(t.collectedStyles,t.currentQuerySelector,new Map);const o=R(this,ee(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:d.If.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:j(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Ut(){return new E.buA(3013,!1)}());const s="full"===e.timings?{duration:0,delay:0,easing:"full"}:le(e.timings,t.errors,!0);return{type:d.If.Stagger,animation:R(this,ee(e.animation),t),timings:s,options:null}}}class Cs{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}}function j(n){return n?(n={...n}).params&&(n.params=function ks(n){return n?{...n}:null}(n.params)):n={},n}function Ie(n,e,t){return{duration:n,delay:e,easing:t}}function Re(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}class fe{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Os=new RegExp(":enter","g"),zs=new RegExp(":leave","g");function Fe(n,e,t,s,i,r=new Map,a=new Map,o,l,u=[]){return(new Ks).buildKeyframes(n,e,t,s,i,r,a,o,l,u)}class Ks{buildKeyframes(e,t,s,i,r,a,o,l,u,c=[]){u=u||new fe;const h=new Oe(e,t,u,i,r,c,[]);h.options=l;const S=l.delay?Q(l.delay):0;h.currentTimeline.delayNextStep(S),h.currentTimeline.setStyles([a],null,h.errors,l),R(this,s,h);const _=h.timelines.filter(m=>m.containsAnimation());if(_.length&&o.size){let m;for(let y=_.length-1;y>=0;y--){const b=_[y];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,h.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[Re(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const s=t.subInstructions.get(t.element);if(s){const i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){const s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(const i of e){const r=i?.delay;if(r){const a="number"==typeof r?r:Q(te(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime;const a=null!=s.duration?Q(s.duration):null,o=null!=s.delay?Q(s.delay):null;return 0!==a&&e.forEach(l=>{const u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const s=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){i.previousNode.type==d.If.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=de);const a=Q(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>R(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const s=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Q(e.options.delay):0;e.steps.forEach(a=>{const o=t.createSubContext(e.options);r&&o.delayNextStep(r),R(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const s=e.strValue;return le(t.params?te(s,t.params,t.errors):s,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());const r=e.style;r.type==d.If.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();const r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{o.forwardTime((l.offset||0)*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){const s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Q(i.delay):0;r&&(t.previousNode.type===d.If.Style||0==s&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=de);let a=s;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,c)=>{t.currentQueryIndex=c;const h=t.createSubContext(e.options,u);r&&h.delayNextStep(r),u===t.element&&(l=h.currentTimeline),R(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,h.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1);let l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime}const c=t.currentTimeline;l&&c.delayNextStep(l);const h=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-h+(i.startTime-s.currentTimeline.startTime)}}const de={};class Oe{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=de;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new me(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const s=e;let i=this.options;null!=s.duration&&(i.duration=Q(s.duration)),null!=s.delay&&(i.delay=Q(s.delay));const r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=te(r[o],a,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){const i=t||this.element,r=new Oe(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=de,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Bs(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(Os,"."+this._enterClassName)).replace(zs,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=s);0!==s&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&0==o.length&&a.push(function Wt(){return new E.buA(3014,!1)}()),o}}class me{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new me(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||d.kp),this._currentKeyframe.set(t,d.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);const r=i&&i.params||{},a=function qs(n,e){const t=new Map;let s;return n.forEach(i=>{if("*"===i){s??=e.keys();for(let r of s)t.set(r,d.kp)}else for(let[r,a]of i)t.set(r,a)}),t}(e,this._globalTimelineStyles);for(let[o,l]of a){const u=te(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??d.kp),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{const i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,s=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((o,l)=>{const u=new Map([...this._backFill,...o]);u.forEach((c,h)=>{c===d.FX?e.add(h):c===d.kp&&t.add(h)}),s||u.set("offset",l/this.duration),i.push(u)});const r=[...e.values()],a=[...t.values()];if(s){const o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return Re(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}}class Bs extends me{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);const u=new Map(e[0]);u.set("offset",ct(o)),r.push(u);const c=e.length-1;for(let h=1;h<=c;h++){let S=new Map(e[h]);const _=S.get("offset");S.set("offset",ct((t+_*s)/a)),r.push(S)}s=a,t=0,i="",e=r}return Re(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}}function ct(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}function ht(n,e,t,s,i,r,a,o,l,u,c,h,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:S}}const Le={};class ft{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return function Qs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,u,c){const h=[],S=this.ast.options&&this.ast.options.params||Le,m=this.buildStyles(s,o&&o.params||Le,h),y=l&&l.params||Le,b=this.buildStyles(i,y,h),w=new Set,A=new Map,k=new Map,N="void"===i,Z={params:dt(y,S),delay:this.ast.options?.delay},B=c?[]:Fe(e,t,this.ast.animation,r,a,m,b,Z,u,h);let C=0;return B.forEach(D=>{C=Math.max(D.duration+D.delay,C)}),h.length?ht(t,this._triggerName,s,i,N,m,b,[],[],A,k,C,h):(B.forEach(D=>{const G=D.element,J=I(A,G,new Set);D.preStyleProps.forEach(H=>J.add(H));const At=I(k,G,new Set);D.postStyleProps.forEach(H=>At.add(H)),G!==t&&w.add(G)}),ht(t,this._triggerName,s,i,N,m,b,B,[...w.values()],A,k,C))}}function dt(n,e){const t={...e};return Object.entries(n).forEach(([s,i])=>{null!=i&&(t[s]=i)}),t}class Vs{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){const s=new Map,i=dt(e,this.defaultParams);return this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,o)=>{a&&(a=te(a,i,t));const l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}}class Us{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{this.states.set(i.name,new Vs(i.style,i.options&&i.options.params||{},s))}),mt(this.states,"true","1"),mt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new ft(e,i,this.states))}),this.fallbackTransition=function Ws(n,e){return new ft(n,{type:d.If.Transition,animation:{type:d.If.Sequence,steps:[],options:null},matchers:[(a,o)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}}function mt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const js=new fe;class Gs{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){const s=[],r=De(this._driver,t,s,[]);if(s.length)throw function Jt(){return new E.buA(3503,!1)}();this._animations.set(e,r)}_buildPlayer(e,t,s){const i=e.element,r=He(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){const i=[],r=this._animations.get(e);let a;const o=new Map;if(r?(a=Fe(this._driver,t,r,re,x,new Map,new Map,s,js,i),a.forEach(c=>{const h=I(o,c.element,new Map);c.postStyleProps.forEach(S=>h.set(S,null))})):(i.push(function xt(){return new E.buA(3300,!1)}()),a=[]),i.length)throw function es(){return new E.buA(3504,!1)}();o.forEach((c,h)=>{c.forEach((S,_)=>{c.set(_,this._driver.computeStyle(h,_,d.kp))})});const u=V(a.map(c=>{const h=o.get(c.element);return this._buildPlayer(c,new Map,h)}));return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function ts(){return new E.buA(3301,!1)}();return t}listen(e,t,s,i){const r=Te(t,"","","");return Se(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if("register"==s)return void this.register(e,i[0]);if("create"==s)return void this.create(e,t,i[0]||{});const r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const pt="ng-animate-queued",ze="ng-animate-disabled",Js=[],gt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed";class Ke{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const s=e&&e.hasOwnProperty("value");if(this.value=function ii(n){return n??null}(s?e.value:e),s){const{value:r,...a}=e;this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const s=this.options.params;Object.keys(t).forEach(i=>{null==s[i]&&(s[i]=t[i])})}}}const se="void",Be=new Ke(se);class ei{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,O(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw function ss(){return new E.buA(3302,!1)}();if(null==s||0==s.length)throw function is(){return new E.buA(3303,!1)}();if(!function ni(n){return"start"==n||"done"==n}(s))throw function ns(){return new E.buA(3400,!1)}();const r=I(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);const o=I(this._engine.statesByElement,e,new Map);return o.has(t)||(O(e,ae),O(e,ae+"-"+t),o.set(t,Be)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function rs(){return new E.buA(3401,!1)}();return t}trigger(e,t,s,i=!0){const r=this._getTrigger(t),a=new pe(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(O(e,ae),O(e,ae+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t);const u=new Ke(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Be),u.value!==se&&l.value===u.value){if(!function oi(n,e){const t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let i=0;i<t.length;i++){const r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}(l.params,u.params)){const y=[],b=r.matchStyles(l.value,l.params,y),w=r.matchStyles(u.value,u.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{W(e,b),K(e,w)})}return}const S=I(this._engine.playersByElement,e,[]);S.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let _=r.matchTransition(l.value,u.value,e,u.params),m=!1;if(!_){if(!i)return;_=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:_,fromState:l,toState:u,player:a,isFallbackTransition:m}),m||(O(e,pt),a.onStart(()=>{Y(e,pt)})),a.onDone(()=>{let y=this.players.indexOf(a);y>=0&&this.players.splice(y,1);const b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1)}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const s=this._engine.driver.query(e,oe,!0);s.forEach(i=>{if(i[z])return;const r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){const r=this._engine.statesByElement.get(e),a=new Map;if(r){const o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){const c=this.trigger(e,u,se,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&V(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){const i=new Set;t.forEach(r=>{const a=r.name;if(i.has(a))return;i.add(a);const l=this._triggers.get(a).fallbackTransition,u=s.get(a)||Be,c=new Ke(se),h=new pe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:c,player:h,isFallbackTransition:!0})})}}removeNode(e,t){const s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){const r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{const r=e[z];(!r||r===gt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){O(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(s=>{const i=s.player;if(i.destroyed)return;const r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){const l=Te(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Se(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{const r=s.transition.ast.depCount,a=i.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class ti{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){const s=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){const s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){const l=i.get(o);if(l){const u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);const i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,s=this.statesByElement.get(e);if(s)for(let i of s.values())if(i.namespaceId){const r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}return t}trigger(e,t,s,i){if(ge(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!ge(t))return;const r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){const a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),O(e,ze)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Y(e,ze))}removeNode(e,t,s){if(ge(t)){const i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);const r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return ge(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,oe,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,we,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[z];if(t&&t.setForRemoval){if(e[z]=gt,t.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ze)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++)O(this.collectedEnterElements[s],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const s=[];try{t=this._flushAnimations(s,e)}finally{for(let i=0;i<s.length;i++)s[i]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++)this.processLeaveNode(this.collectedLeaveElements[s]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){const s=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw function as(){return new E.buA(3402,!1)}()}_flushAnimations(e,t){const s=new fe,i=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);const p=this.driver.query(f,".ng-animate-queued",!0);for(let g=0;g<p.length;g++)c.add(p[g])});const h=this.bodyNode,S=Array.from(this.statesByElement.keys()),_=St(S,this.collectedEnterElements),m=new Map;let y=0;_.forEach((f,p)=>{const g=re+y++;m.set(p,g),f.forEach(T=>O(T,g))});const b=[],w=new Set,A=new Set;for(let f=0;f<this.collectedLeaveElements.length;f++){const p=this.collectedLeaveElements[f],g=p[z];g&&g.setForRemoval&&(b.push(p),w.add(p),g.hasAnimation?this.driver.query(p,".ng-star-inserted",!0).forEach(T=>w.add(T)):A.add(p))}const k=new Map,N=St(S,Array.from(w));N.forEach((f,p)=>{const g=x+y++;k.set(p,g),f.forEach(T=>O(T,g))}),e.push(()=>{_.forEach((f,p)=>{const g=m.get(p);f.forEach(T=>Y(T,g))}),N.forEach((f,p)=>{const g=k.get(p);f.forEach(T=>Y(T,g))}),b.forEach(f=>{this.processLeaveNode(f)})});const Z=[],B=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(g=>{const T=g.player,P=g.element;if(Z.push(T),this.collectedEnterElements.length){const M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(g.triggerName)){const X=M.previousTriggersValues.get(g.triggerName),L=this.statesByElement.get(g.element);if(L&&L.has(g.triggerName)){const _e=L.get(g.triggerName);_e.value=X,L.set(g.triggerName,_e)}}return void T.destroy()}}const q=!h||!this.driver.containsElement(h,P),F=k.get(P),$=m.get(P),v=this._buildInstruction(g,s,$,F,q);if(v.errors&&v.errors.length)return void B.push(v);if(q)return T.onStart(()=>W(P,v.fromStyles)),T.onDestroy(()=>K(P,v.toStyles)),void i.push(T);if(g.isFallbackTransition)return T.onStart(()=>W(P,v.fromStyles)),T.onDestroy(()=>K(P,v.toStyles)),void i.push(T);const Mt=[];v.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||Mt.push(M)}),v.timelines=Mt,s.append(P,v.timelines),a.push({instruction:v,player:T,element:P}),v.queriedElements.forEach(M=>I(o,M,[]).push(T)),v.preStyleProps.forEach((M,X)=>{if(M.size){let L=l.get(X);L||l.set(X,L=new Set),M.forEach((_e,We)=>L.add(We))}}),v.postStyleProps.forEach((M,X)=>{let L=u.get(X);L||u.set(X,L=new Set),M.forEach((_e,We)=>L.add(We))})});if(B.length){const f=[];B.forEach(p=>{f.push(function os(){return new E.buA(3505,!1)}())}),Z.forEach(p=>p.destroy()),this.reportError(f)}const C=new Map,D=new Map;a.forEach(f=>{const p=f.element;s.has(p)&&(D.set(p,p),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{const p=f.element;this._getPreviousPlayers(p,!1,f.namespaceId,f.triggerName,null).forEach(T=>{I(C,p,[]).push(T),T.destroy()})});const G=b.filter(f=>Tt(f,l,u)),J=new Map;_t(J,this.driver,A,u,d.kp).forEach(f=>{Tt(f,l,u)&&G.push(f)});const H=new Map;_.forEach((f,p)=>{_t(H,this.driver,new Set(f),l,d.FX)}),G.forEach(f=>{const p=J.get(f),g=H.get(f);J.set(f,new Map([...p?.entries()??[],...g?.entries()??[]]))});const Ue=[],Pt=[],Nt={};a.forEach(f=>{const{element:p,player:g,instruction:T}=f;if(s.has(p)){if(c.has(p))return g.onDestroy(()=>K(p,T.toStyles)),g.disabled=!0,g.overrideTotalTime(T.totalTime),void i.push(g);let P=Nt;if(D.size>1){let F=p;const $=[];for(;F=F.parentNode;){const v=D.get(F);if(v){P=v;break}$.push(F)}$.forEach(v=>D.set(v,P))}const q=this._buildAnimation(g.namespaceId,T,C,r,H,J);if(g.setRealPlayer(q),P===Nt)Ue.push(g);else{const F=this.playersByElement.get(P);F&&F.length&&(g.parentPlayer=V(F)),i.push(g)}}else W(p,T.fromStyles),g.onDestroy(()=>K(p,T.toStyles)),Pt.push(g),c.has(p)&&i.push(g)}),Pt.forEach(f=>{const p=r.get(f.element);if(p&&p.length){const g=V(p);f.setRealPlayer(g)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f<b.length;f++){const p=b[f],g=p[z];if(Y(p,x),g&&g.hasAnimation)continue;let T=[];if(o.size){let q=o.get(p);q&&q.length&&T.push(...q);let F=this.driver.query(p,we,!0);for(let $=0;$<F.length;$++){let v=o.get(F[$]);v&&v.length&&T.push(...v)}}const P=T.filter(q=>!q.destroyed);P.length?ri(this,p,P):this.processLeaveNode(p)}return b.length=0,Ue.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();const p=this.players.indexOf(f);this.players.splice(p,1)}),f.play()}),Ue}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){const o=this.playersByQueriedElement.get(e);o&&(a=o)}else{const o=this.playersByElement.get(e);if(o){const l=!r||r==se;o.forEach(u=>{u.queued||!l&&u.triggerName!=i||a.push(u)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){const r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,c=u!==r,h=I(s,u,[]);this._getPreviousPlayers(u,c,a,o,t.toState).forEach(_=>{const m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),h.push(_)})}W(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){const o=t.triggerName,l=t.element,u=[],c=new Set,h=new Set,S=t.timelines.map(m=>{const y=m.element;c.add(y);const b=y[z];if(b&&b.removedBeforeQueried)return new d.sf(m.duration,m.delay);const w=y!==l,A=function ai(n){const e=[];return Et(n,e),e}((s.get(y)||Js).map(C=>C.getRealPlayer())).filter(C=>!!C.element&&C.element===y),k=r.get(y),N=a.get(y),Z=He(this._normalizer,m.keyframes,k,N),B=this._buildPlayer(m,Z,A);if(m.subTimeline&&i&&h.add(y),w){const C=new pe(e,o,y);C.setRealPlayer(B),u.push(C)}return B});u.forEach(m=>{I(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function si(n,e,t){let s=n.get(e);if(s){if(s.length){const i=s.indexOf(t);s.splice(i,1)}0==s.length&&n.delete(e)}return s}(this.playersByQueriedElement,m.element,m))}),c.forEach(m=>O(m,xe));const _=V(S);return _.onDestroy(()=>{c.forEach(m=>Y(m,xe)),K(l,t.toStyles)}),h.forEach(m=>{I(i,m,[]).push(_)}),_}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new d.sf(e.duration,e.delay)}}class pe{namespaceId;triggerName;element;_player=new d.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>Se(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){I(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ge(n){return n&&1===n.nodeType}function yt(n,e){const t=n.style.display;return n.style.display=e??"none",t}function _t(n,e,t,s,i){const r=[];t.forEach(l=>r.push(yt(l)));const a=[];s.forEach((l,u)=>{const c=new Map;l.forEach(h=>{const S=e.computeStyle(u,h,i);c.set(h,S),(!S||0==S.length)&&(u[z]=xs,a.push(u))}),n.set(u,c)});let o=0;return t.forEach(l=>yt(l,r[o++])),a}function St(n,e){const t=new Map;if(n.forEach(o=>t.set(o,[])),0==e.length)return t;const i=new Set(e),r=new Map;function a(o){if(!o)return 1;let l=r.get(o);if(l)return l;const u=o.parentNode;return l=t.has(u)?u:i.has(u)?1:a(u),r.set(o,l),l}return e.forEach(o=>{const l=a(o);1!==l&&t.get(l).push(o)}),t}function O(n,e){n.classList?.add(e)}function Y(n,e){n.classList?.remove(e)}function ri(n,e,t){V(t).onDone(()=>n.processLeaveNode(e))}function Et(n,e){for(let t=0;t<n.length;t++){const s=n[t];s instanceof d.PZ?Et(s.players,e):e.push(s)}}function Tt(n,e,t){const s=t.get(n);if(!s)return!1;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),!0}class qe{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new ti(e.body,t,s),this._timelineEngine=new Gs(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){const a=e+"-"+i;let o=this._triggerCache[a];if(!o){const l=[],c=De(this._driver,r,l,[]);if(l.length)throw function Yt(){return new E.buA(3404,!1)}();o=function $s(n,e,t){return new Us(n,e,t)}(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if("@"==s.charAt(0)){const[r,a]=Xe(s);this._timelineEngine.command(r,t,a,i)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if("@"==s.charAt(0)){const[a,o]=Xe(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}let ui=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,i){this._element=t,this._startStyles=s,this._endStyles=i;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}}return n})();function Qe(n){let e=null;return n.forEach((t,s)=>{(function ci(n){return"display"===n||"position"===n})(s)&&(e=e||new Map,e.set(s,t))}),e}class Ve{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;const s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){const i=this._convertKeyframesToObject(t);try{return e.animate(i,s)}catch{return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){const e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{"offset"!==i&&e.set(i,this._finished?s:Me(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}}class bt{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return be(e,t)}getParentElement(e){return ne(e)}query(e,t,s){return ve(e,t,s)}computeStyle(e,t,s){return Me(e,t)}animate(e,t,s,i,r,a=[]){const l={duration:s,delay:i,fill:0==i?"both":"forwards"};r&&(l.easing=r);const u=new Map,c=a.filter(_=>_ instanceof Ve);it(s,i)&&c.forEach(_=>{_.currentSnapshot.forEach((m,y)=>u.set(y,m))});let h=et(t).map(_=>new Map(_));h=function Es(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,Me(n,o)))}}return e}(e,h,u);const S=function li(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Qe(e[0]),e.length>1&&(s=Qe(e[e.length-1]))):e instanceof Map&&(t=Qe(e)),t||s?new ui(n,t,s):null}(e,h);return new Ve(e,h,l,S)}}function hi(n,e){return"noop"===n?new qe(e,new ke,new rt):new qe(e,new bt,new at)}class fi{_driver;_animationAst;constructor(e,t){this._driver=e;const s=[],r=De(e,t,s,[]);if(s.length)throw function Ht(){return new E.buA(3500,!1)}();this._animationAst=r}buildTimelines(e,t,s,i,r){const a=Array.isArray(t)?tt(t):t,o=Array.isArray(s)?tt(s):s,l=[];r=r||new fe;const u=Fe(this._driver,e,this._animationAst,re,x,a,o,i,r,l);if(l.length)throw function Xt(){return new E.buA(3501,!1)}();return u}}const vt="@.disabled";class $e{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s,i){i?this.delegate.removeChild(e,t,s,i):this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){"@"==t.charAt(0)&&t==vt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class wt extends $e{factory;constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){"@"==t.charAt(0)?"."==t.charAt(1)&&t==vt?this.disableAnimations(e,s=void 0===s||!!s):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,i){if("@"==t.charAt(0)){const r=function di(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let a=t.slice(1),o="";return"@"!=a.charAt(0)&&([a,o]=function mi(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{this.factory.scheduleListenerCallback(l._data||-1,s,l)})}return this.delegate.listen(e,t,s,i)}}class pi{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){const i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const u=this._rendererCache;let c=u.get(i);return c||(c=new $e("",i,this.engine,()=>u.delete(i)),u.set(i,c)),c}const r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new wt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId)return void this._zone.run(()=>t(s));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{const[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}}}}]);
|