@drayman/elements 1.58.0 → 1.60.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.
@@ -0,0 +1 @@
1
+ (()=>{"use strict";function Hr(t){return"function"==typeof t}let Go=!1;const pt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Go&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Go=t},get useDeprecatedSynchronousErrorHandling(){return Go}};function Hn(t){setTimeout(()=>{throw t},0)}const $r={closed:!0,next(t){},error(t){if(pt.useDeprecatedSynchronousErrorHandling)throw t;Hn(t)},complete(){}},qo=Array.isArray||(t=>t&&"number"==typeof t.length);function Ru(t){return null!==t&&"object"==typeof t}const zr=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,i)=>`${i+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class ee{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof ee)n.remove(this);else if(null!==n)for(let o=0;o<n.length;++o)n[o].remove(this);if(Hr(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof zr?Ou(o.errors):[o]}}if(qo(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ru(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof zr?e=e.concat(Ou(c.errors)):e.push(c)}}}if(e)throw new zr(e)}add(e){let n=e;if(!e)return ee.EMPTY;switch(typeof e){case"function":n=new ee(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof ee)){const s=n;n=new ee,n._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof ee){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(e){const n=this._subscriptions;if(n){const i=n.indexOf(e);-1!==i&&n.splice(i,1)}}}var t;function Ou(t){return t.reduce((e,n)=>e.concat(n instanceof zr?n.errors:n),[])}ee.EMPTY=((t=new ee).closed=!0,t);const Ur="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Me extends ee{constructor(e,n,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=$r;break;case 1:if(!e){this.destination=$r;break}if("object"==typeof e){e instanceof Me?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new xu(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new xu(this,e,n,i)}}[Ur](){return this}static create(e,n,i){const r=new Me(e,n,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class xu extends Me{constructor(e,n,i,r){super(),this._parentSubscriber=e;let s,o=this;Hr(n)?s=n:n&&(s=n.next,i=n.error,r=n.complete,n!==$r&&(o=Object.create(n),Hr(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;pt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:i}=pt;if(this._error)i&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=e,n.syncErrorThrown=!0):Hn(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Hn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);pt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(i){if(this.unsubscribe(),pt.useDeprecatedSynchronousErrorHandling)throw i;Hn(i)}}__tryOrSetError(e,n,i){if(!pt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i)}catch(r){return pt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Hn(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Bi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Nu(t){return t}let de=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const i=new t;return i.source=this,i.operator=n,i}subscribe(n,i,r){const{operator:s}=this,o=function R_(t,e,n){if(t){if(t instanceof Me)return t;if(t[Ur])return t[Ur]()}return t||e||n?new Me(t,e,n):new Me($r)}(n,i,r);if(o.add(s?s.call(o,this.source):this.source||pt.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),pt.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(n){try{return this._subscribe(n)}catch(i){pt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=i),function P_(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof Me?n:null}return!0}(n)?n.error(i):console.warn(i)}}forEach(n,i){return new(i=ku(i))((r,s)=>{let o;o=this.subscribe(a=>{try{n(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(n){const{source:i}=this;return i&&i.subscribe(n)}[Bi](){return this}pipe(...n){return 0===n.length?this:function Fu(t){return 0===t.length?Nu:1===t.length?t[0]:function(n){return t.reduce((i,r)=>r(i),n)}}(n)(this)}toPromise(n){return new(n=ku(n))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=e=>new t(e),t})();function ku(t){if(t||(t=pt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const $n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Lu extends ee{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const i=n.indexOf(this.subscriber);-1!==i&&n.splice(i,1)}}class Bu extends Me{constructor(e){super(e),this.destination=e}}let nt=(()=>{class t extends de{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ur](){return new Bu(this)}lift(n){const i=new Vu(this,this);return i.operator=n,i}next(n){if(this.closed)throw new $n;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(n)}}error(n){if(this.closed)throw new $n;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(n);this.observers.length=0}complete(){if(this.closed)throw new $n;this.isStopped=!0;const{observers:n}=this,i=n.length,r=n.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new $n;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new $n;return this.hasError?(n.error(this.thrownError),ee.EMPTY):this.isStopped?(n.complete(),ee.EMPTY):(this.observers.push(n),new Lu(this,n))}asObservable(){const n=new de;return n.source=this,n}}return t.create=(e,n)=>new Vu(e,n),t})();class Vu extends nt{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):ee.EMPTY}}function Wr(t){return t&&"function"==typeof t.schedule}function Gr(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new O_(t,e))}}class O_{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new x_(e,this.project,this.thisArg))}}class x_ extends Me{constructor(e,n,i){super(e),this.project=n,this.count=0,this.thisArg=i||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(n)}}const ju=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()},qr=function F_(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Hu=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function $u(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const zu=t=>{if(t&&"function"==typeof t[Bi])return(t=>e=>{const n=t[Bi]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(Hu(t))return ju(t);if($u(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Hn),e))(t);if(t&&"function"==typeof t[qr])return(t=>e=>{const n=t[qr]();for(;;){let i;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Ru(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Yo(t,e){return new de(n=>{const i=new ee;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function Uu(t,e){return e?function z_(t,e){if(null!=t){if(function H_(t){return t&&"function"==typeof t[Bi]}(t))return function B_(t,e){return new de(n=>{const i=new ee;return i.add(e.schedule(()=>{const r=t[Bi]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>n.next(s)))},error(s){i.add(e.schedule(()=>n.error(s)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if($u(t))return function V_(t,e){return new de(n=>{const i=new ee;return i.add(e.schedule(()=>t.then(r=>{i.add(e.schedule(()=>{n.next(r),i.add(e.schedule(()=>n.complete()))}))},r=>{i.add(e.schedule(()=>n.error(r)))}))),i})}(t,e);if(Hu(t))return Yo(t,e);if(function $_(t){return t&&"function"==typeof t[qr]}(t)||"string"==typeof t)return function j_(t,e){if(!t)throw new Error("Iterable cannot be null");return new de(n=>{const i=new ee;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[qr](),i.add(e.schedule(function(){if(n.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void n.error(a)}o?n.complete():(n.next(s),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof de?t:new de(zu(t))}class Yr extends Me{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Kr extends Me{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Qr(t,e){if(!e.closed)return t instanceof de?t.subscribe(e):zu(t)(e)}function Wu(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Wu((r,s)=>Uu(t(r,s)).pipe(Gr((o,a)=>e(r,o,s,a))),n)):("number"==typeof e&&(n=e),i=>i.lift(new U_(t,n)))}class U_{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new W_(e,this.project,this.concurrent))}}class W_ extends Kr{constructor(e,n,i=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const i=this.index++;try{n=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Yr(this),i=this.destination;i.add(n);const r=Qr(e,n);r!==n&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function G_(t=Number.POSITIVE_INFINITY){return Wu(Nu,t)}function Gu(t,e){return e?Yo(t,e):new de(ju(t))}function Ko(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return Wr(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof de?t[0]:G_(e)(Gu(t,n))}function qu(){return function(e){return e.lift(new q_(e))}}class q_{constructor(e){this.connectable=e}call(e,n){const{connectable:i}=this;i._refCount++;const r=new Y_(e,i),s=n.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class Y_ extends Me{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class K_ extends de{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new ee,e.add(this.source.subscribe(new Z_(this.getSubject(),this))),e.closed&&(this._connection=null,e=ee.EMPTY)),e}refCount(){return qu()(this)}}const Q_=(()=>{const t=K_.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Z_ extends Bu{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class ev{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(n.subscribe(r)),s}}function tv(){return new nt}function Q(t){for(let e in t)if(t[e]===Q)return e;throw Error("Could not find renamed property on target object.")}function q(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(q).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Zo(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const iv=Q({__forward_ref__:Q});function Xo(t){return t.__forward_ref__=Xo,t.toString=function(){return q(this())},t}function L(t){return function Yu(t){return"function"==typeof t&&t.hasOwnProperty(iv)&&t.__forward_ref__===Xo}(t)?t():t}class b extends Error{constructor(e,n){super(function Jo(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function R(t){return"string"==typeof t?t:null==t?"":String(t)}function Te(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function Zr(t,e){const n=e?` in ${e}`:"";throw new b(-201,`No provider for ${Te(t)} found${n}`)}function $e(t,e){null==t&&function Y(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _n(t){return{providers:t.providers||[],imports:t.imports||[]}}function ea(t){return Ku(t,Xr)||Ku(t,Zu)}function Ku(t,e){return t.hasOwnProperty(e)?t[e]:null}function Qu(t){return t&&(t.hasOwnProperty(ta)||t.hasOwnProperty(uv))?t[ta]:null}const Xr=Q({\u0275prov:Q}),ta=Q({\u0275inj:Q}),Zu=Q({ngInjectableDef:Q}),uv=Q({ngInjectorDef:Q});var F=(()=>((F=F||{})[F.Default=0]="Default",F[F.Host=1]="Host",F[F.Self=2]="Self",F[F.SkipSelf=4]="SkipSelf",F[F.Optional=8]="Optional",F))();let na;function en(t){const e=na;return na=t,e}function Xu(t,e,n){const i=ea(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&F.Optional?null:void 0!==e?e:void Zr(q(t),"Injector")}function tn(t){return{toString:t}.toString()}var gt=(()=>((gt=gt||{})[gt.OnPush=0]="OnPush",gt[gt.Default=1]="Default",gt))(),mt=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(mt||(mt={})),mt))();const fv="undefined"!=typeof globalThis&&globalThis,hv="undefined"!=typeof window&&window,pv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,K=fv||"undefined"!=typeof global&&global||hv||pv,zn={},Z=[],Jr=Q({\u0275cmp:Q}),ia=Q({\u0275dir:Q}),ra=Q({\u0275pipe:Q}),Ju=Q({\u0275mod:Q}),zt=Q({\u0275fac:Q}),Vi=Q({__NG_ELEMENT_ID__:Q});let gv=0;function sa(t){return tn(()=>{const n={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||mt.Emulated,id:"c",styles:t.styles||Z,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,o=t.pipes;return i.id+=gv++,i.inputs=id(t.inputs,n),i.outputs=id(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(ed):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(td):null,i})}function ed(t){return Ie(t)||function nn(t){return t[ia]||null}(t)}function td(t){return function vn(t){return t[ra]||null}(t)}const nd={};function Un(t){return tn(()=>{const e={type:t.type,bootstrap:t.bootstrap||Z,declarations:t.declarations||Z,imports:t.imports||Z,exports:t.exports||Z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(nd[t.id]=t.type),e})}function id(t,e){if(null==t)return zn;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const it=sa;function Ie(t){return t[Jr]||null}function rt(t,e){const n=t[Ju]||null;if(!n&&!0===e)throw new Error(`Type ${q(t)} does not have '\u0275mod' property.`);return n}const k=11,X=20;function Pt(t){return Array.isArray(t)&&"object"==typeof t[1]}function _t(t){return Array.isArray(t)&&!0===t[1]}function la(t){return 0!=(8&t.flags)}function is(t){return 2==(2&t.flags)}function rs(t){return 1==(1&t.flags)}function vt(t){return null!==t.template}function wv(t){return 0!=(512&t[2])}function Cn(t,e){return t.hasOwnProperty(zt)?t[zt]:null}class sd{constructor(e,n,i){this.previousValue=e,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return od}function od(t){return t.type.prototype.ngOnChanges&&(t.setInput=Sv),bv}function bv(){const t=ld(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===zn)t.previous=e;else for(let i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Sv(t,e,n,i){const r=ld(t)||function Tv(t,e){return t[ad]=e}(t,{previous:zn,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new sd(l&&l.currentValue,e,o===zn),t[i]=e}zi.ngInherit=!0;const ad="__ngSimpleChanges__";function ld(t){return t[ad]||null}let ha;function ce(t){return!!t.listen}const cd={createRenderer:(t,e)=>function pa(){return void 0!==ha?ha:"undefined"!=typeof document?document:void 0}()};function ge(t){for(;Array.isArray(t);)t=t[0];return t}function ss(t,e){return ge(e[t])}function Ue(t,e){return ge(e[t.index])}function ga(t,e){return t.data[e]}function We(t,e){const n=e[t];return Pt(n)?n:n[0]}function ma(t){return 128==(128&t[2])}function rn(t,e){return null==e?null:t[e]}function dd(t){t[18]=0}function ya(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const x={lFrame:wd(null),bindingsEnabled:!0};function hd(){return x.bindingsEnabled}function _(){return x.lFrame.lView}function W(){return x.lFrame.tView}function De(){let t=gd();for(;null!==t&&64===t.type;)t=t.parent;return t}function gd(){return x.lFrame.currentTNode}function Rt(t,e){const n=x.lFrame;n.currentTNode=t,n.isParent=e}function _a(){return x.lFrame.isParent}function va(){x.lFrame.isParent=!1}function Qn(){return x.lFrame.bindingIndex++}function zv(t,e){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,Da(e)}function Da(t){x.lFrame.currentDirectiveIndex=t}function Ea(t){x.lFrame.currentQueryIndex=t}function Wv(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function vd(t,e,n){if(n&F.SkipSelf){let r=e,s=t;for(;!(r=r.parent,null!==r||n&F.Host||(r=Wv(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,t=s}const i=x.lFrame=Dd();return i.currentTNode=e,i.lView=t,!0}function as(t){const e=Dd(),n=t[1];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Dd(){const t=x.lFrame,e=null===t?null:t.child;return null===e?wd(t):e}function wd(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ed(){const t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Cd=Ed;function ls(){const t=Ed();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ne(){return x.lFrame.selectedIndex}function sn(t){x.lFrame.selectedIndex=t}function cs(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const s=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-n,l),c&&((t.viewHooks||(t.viewHooks=[])).push(n,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(n,u)}}function us(t,e,n){bd(t,e,3,n)}function ds(t,e,n,i){(3&t[2])===n&&bd(t,e,n,i)}function Ca(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function bd(t,e,n,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(eD(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function eD(t,e,n,i){const r=n[i]<0,s=n[i+1],a=t[r?-n[i]:n[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Wi{constructor(e,n,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function fs(t,e,n){const i=ce(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],l=n[r++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++r];Sa(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Sd(t){return 3===t||4===t||6===t}function Sa(t){return 64===t.charCodeAt(0)}function hs(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Td(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Td(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Id(t){return-1!==t}function Zn(t){return 32767&t}function Xn(t,e){let n=function sD(t){return t>>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Ta=!0;function ps(t){const e=Ta;return Ta=t,e}let oD=0;function qi(t,e){const n=Ma(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ia(i.data,t),Ia(e,null),Ia(i.blueprint,null));const r=gs(t,e),s=t.injectorIndex;if(Id(r)){const o=Zn(r),a=Xn(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Ia(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ma(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function gs(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ms(t,e,n){!function aD(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Vi)&&(i=n[Vi]),null==i&&(i=n[Vi]=oD++);const r=255&i;e.data[t+(r>>5)]|=1<<r}(t,e,n)}function Pd(t,e,n){if(n&F.Optional)return t;Zr(e,"NodeInjector")}function Rd(t,e,n,i){if(n&F.Optional&&void 0===i&&(i=null),0==(n&(F.Self|F.Host))){const r=t[9],s=en(void 0);try{return r?r.get(e,i,n&F.Optional):Xu(e,i,n&F.Optional)}finally{en(s)}}return Pd(i,e,n)}function Od(t,e,n,i=F.Default,r){if(null!==t){const s=function dD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Vi)?t[Vi]:void 0;return"number"==typeof e?e>=0?255&e:cD:e}(n);if("function"==typeof s){if(!vd(e,t,i))return i&F.Host?Pd(r,n,i):Rd(e,n,i,r);try{const o=s(i);if(null!=o||i&F.Optional)return o;Zr(n)}finally{Cd()}}else if("number"==typeof s){let o=null,a=Ma(t,e),l=-1,c=i&F.Host?e[16][6]:null;for((-1===a||i&F.SkipSelf)&&(l=-1===a?gs(t,e):e[a+8],-1!==l&&Fd(i,!1)?(o=e[1],a=Zn(l),e=Xn(l,e)):a=-1);-1!==a;){const u=e[1];if(Nd(s,a,u.data)){const d=uD(a,e,n,o,i,c);if(d!==xd)return d}l=e[a+8],-1!==l&&Fd(i,e[1].data[a+8]===c)&&Nd(s,a,e)?(o=u,a=Zn(l),e=Xn(l,e)):a=-1}}}return Rd(e,n,i,r)}const xd={};function cD(){return new Jn(De(),_())}function uD(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],u=function ys(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,u=s>>20,f=r?a+u:t.directiveEnd;for(let h=i?a:a+u;h<f;h++){const p=o[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(r){const h=o[l];if(h&&vt(h)&&h.type===n)return l}return null}(a,o,n,null==i?is(a)&&Ta:i!=o&&0!=(3&a.type),r&F.Host&&s===a);return null!==u?Yi(e,o,u,a):xd}function Yi(t,e,n,i){let r=t[n];const s=e.data;if(function tD(t){return t instanceof Wi}(r)){const o=r;o.resolving&&function rv(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,`Circular dependency in DI detected for ${t}${n}`)}(Te(s[n]));const a=ps(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?en(o.injectImpl):null;vd(t,i,F.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function Jv(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=od(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&en(l),ps(a),o.resolving=!1,Cd()}}return r}function Nd(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Fd(t,e){return!(t&F.Self||t&F.Host&&e)}class Jn{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,i){return Od(this._tNode,this._lView,e,i,n)}}const ti="__parameters__";function ii(t,e,n){return tn(()=>{const i=function Ra(t){return function(...n){if(t){const i=t(...n);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(ti)?l[ti]:Object.defineProperty(l,ti,{value:[]})[ti];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class H{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ot(t,e){t.forEach(n=>Array.isArray(n)?Ot(n,e):e(n))}function Ld(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function _s(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ge(t,e,n){let i=ri(t,e);return i>=0?t[1|i]=n:(i=~i,function mD(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function xa(t,e){const n=ri(t,e);if(n>=0)return t[1|n]}function ri(t,e){return function jd(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<n];if(e===o)return s<<n;o>e?r=s:i=s+1}return~(r<<n)}(t,e,1)}const Xi={},Fa="__NG_DI_FLAG__",Ds="ngTempTokenPath",CD=/\n/gm,$d="__source",SD=Q({provide:String,useValue:Q});let Ji;function zd(t){const e=Ji;return Ji=t,e}function TD(t,e=F.Default){if(void 0===Ji)throw new b(203,"");return null===Ji?Xu(t,void 0,e):Ji.get(t,e&F.Optional?null:void 0,e)}function D(t,e=F.Default){return(function dv(){return na}()||TD)(L(t),e)}const Wd=D;function ka(t){const e=[];for(let n=0;n<t.length;n++){const i=L(t[n]);if(Array.isArray(i)){if(0===i.length)throw new b(900,"");let r,s=F.Default;for(let o=0;o<i.length;o++){const a=i[o],l=ID(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(D(r,s))}else e.push(D(i))}return e}function er(t,e){return t[Fa]=e,t.prototype[Fa]=e,t}function ID(t){return t[Fa]}const ws=er(ii("Optional"),8),Es=er(ii("SkipSelf"),4);var qe=(()=>((qe=qe||{})[qe.Important=1]="Important",qe[qe.DashCase=2]="DashCase",qe))();const Xd="__ngContext__";function Pe(t,e){t[Xd]=e}function ja(t){const e=function nr(t){return t[Xd]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function $a(t,e){return undefined(t,e)}function ir(t){const e=t[3];return _t(e)?e[3]:e}function za(t){return af(t[13])}function Ua(t){return af(t[4])}function af(t){for(;null!==t&&!_t(t);)t=t[4];return t}function oi(t,e,n,i,r){if(null!=i){let s,o=!1;_t(i)?s=i:Pt(i)&&(o=!0,i=i[0]);const a=ge(i);0===t&&null!==n?null==r?hf(e,n,a):bn(e,n,a,r||null,!0):1===t&&null!==n?bn(e,n,a,r||null,!0):2===t?function Za(t,e,n){const i=bs(t,e);i&&function rw(t,e,n,i){ce(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function aw(t,e,n,i,r){const s=n[7];s!==ge(n)&&oi(e,t,i,s,r);for(let a=10;a<n.length;a++){const l=n[a];rr(l[1],l,t,e,i,s)}}(e,t,s,n,r)}}function Ga(t,e,n){if(ce(t))return t.createElement(e,n);{const i=null!==n?function Pv(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===i?t.createElement(e):t.createElementNS(i,e)}}function cf(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,ya(r,-1)),n.splice(i,1)}function qa(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&cf(r,i),e>0&&(t[n-1][4]=i[4]);const s=_s(t,10+e);!function QD(t,e){rr(t,e,e[k],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function uf(t,e){if(!(256&e[2])){const n=e[k];ce(n)&&n.destroyNode&&rr(t,e,n,3,null,null),function JD(t){let e=t[13];if(!e)return Ya(t[1],t);for(;e;){let n=null;if(Pt(e))n=e[13];else{const i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Pt(e)&&Ya(e[1],e),e=e[3];null===e&&(e=t),Pt(e)&&Ya(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ya(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function iw(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const r=e[n[i]];if(!(r instanceof Wi)){const s=n[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(t,e),function nw(t,e){const n=t.cleanup,i=e[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const o=n[s+1],a="function"==typeof o?o(e):ge(e[o]),l=i[r=n[s+2]],c=n[s+3];"boolean"==typeof c?a.removeEventListener(n[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=n[s+1]];n[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(t,e),1===e[1].type&&ce(e[k])&&e[k].destroy();const n=e[17];if(null!==n&&_t(e[3])){n!==e[3]&&cf(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function df(t,e,n){return function ff(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const r=t.data[i.directiveStart].encapsulation;if(r===mt.None||r===mt.Emulated)return null}return Ue(i,n)}(t,e.parent,n)}function bn(t,e,n,i,r){ce(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function hf(t,e,n){ce(t)?t.appendChild(e,n):e.appendChild(n)}function pf(t,e,n,i,r){null!==i?bn(t,e,n,i,r):hf(t,e,n)}function bs(t,e){return ce(t)?t.parentNode(e):e.parentNode}let yf=function mf(t,e,n){return 40&t.type?Ue(t,n):null};function Ss(t,e,n,i){const r=df(t,i,e),s=e[k],a=function gf(t,e,n){return yf(t,e,n)}(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let l=0;l<n.length;l++)pf(s,r,n[l],a,!1);else pf(s,r,n,a,!1)}function Ts(t,e){if(null!==e){const n=e.type;if(3&n)return Ue(e,t);if(4&n)return Qa(-1,t[e.index]);if(8&n){const i=e.child;if(null!==i)return Ts(t,i);{const r=t[e.index];return _t(r)?Qa(-1,r):ge(r)}}if(32&n)return $a(e,t)()||ge(t[e.index]);{const i=vf(t,e);return null!==i?Array.isArray(i)?i[0]:Ts(ir(t[16]),i):Ts(t,e.next)}}return null}function vf(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Qa(t,e){const n=10+t+1;if(n<e.length){const i=e[n],r=i[1].firstChild;if(null!==r)return Ts(i,r)}return e[7]}function Xa(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&Pe(ge(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Xa(t,e,n.child,i,r,s,!1),oi(e,t,r,a,s);else if(32&l){const c=$a(n,i);let u;for(;u=c();)oi(e,t,r,u,s);oi(e,t,r,a,s)}else 16&l?Df(t,e,i,n,r,s):oi(e,t,r,a,s);n=o?n.projectionNext:n.next}}function rr(t,e,n,i,r,s){Xa(n,i,t.firstChild,e,r,s,!1)}function Df(t,e,n,i,r,s){const o=n[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)oi(e,t,r,l[c],s);else Xa(t,e,l,o[3],r,s,!0)}function wf(t,e,n){ce(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Ja(t,e,n){ce(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function al(t){return t.ngOriginalError}function Vw(t,...e){t.error(...e)}class lr{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),i=function Bw(t){return t&&t.ngErrorLogger||Vw}(e);i(this._console,"ERROR",e),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&al(e);for(;n&&al(n);)n=al(n);return n||null}}const Gw=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(K))();function Nt(t){return t instanceof Function?t():t}function kf(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}n=r+1}}const Lf="ng-template";function Qw(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==kf(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Bf(t){return 4===t.type&&t.value!==Lf}function Zw(t,e,n){return e===(4!==t.type||n?t.value:Lf)}function Xw(t,e,n){let i=4;const r=t.attrs||[],s=function tE(t){for(let e=0;e<t.length;e++)if(Sd(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Zw(t,l,n)||""===l&&1===e.length){if(Dt(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!Qw(t.attrs,c,n)){if(Dt(i))return!1;o=!0}continue}const d=Jw(8&i?"class":l,r,Bf(t),n);if(-1===d){if(Dt(i))return!1;o=!0;continue}if(""!==c){let f;f=d>s?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==kf(h,c,0)||2&i&&c!==f){if(Dt(i))return!1;o=!0}}}}else{if(!o&&!Dt(i)&&!Dt(l))return!1;if(o&&Dt(l))continue;o=!1,i=l|1&i}}return Dt(i)||o}function Dt(t){return 0==(1&t)}function Jw(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let s=!1;for(;r<e.length;){const o=e[r];if(o===t)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function nE(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Vf(t,e,n=!1){for(let i=0;i<e.length;i++)if(Xw(t,e[i],n))return!0;return!1}function jf(t,e){return t?":not("+e.trim()+")":e}function rE(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const a=t[++n];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Dt(o)&&(e+=jf(s,r),r=""),i=o,s=s||!Dt(i);n++}return""!==r&&(e+=jf(s,r)),e}const N={};function Gt(t){Hf(W(),_(),Ne()+t,!1)}function Hf(t,e,n,i){if(!i)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&us(e,s,n)}else{const s=t.preOrderHooks;null!==s&&ds(e,s,0,n)}sn(n)}function Rs(t,e){return t<<17|e<<2}function wt(t){return t>>17&32767}function ll(t){return 2|t}function qt(t){return(131068&t)>>2}function cl(t,e){return-131069&t|e<<2}function ul(t){return 1|t}function Xf(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const o=t.data[s];Ea(r),o.contentQueries(2,e[s],s)}}}function cr(t,e,n,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,dd(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[k]=a||t&&t[k],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=s,u[16]=2==e.type?t[16]:u,u}function li(t,e,n,i,r){let s=t.data[e];if(null===s)s=function vl(t,e,n,i,r){const s=gd(),o=_a(),l=t.data[e]=function EE(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(t,e,n,i,r),function $v(){return x.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const o=function Ui(){const t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Rt(s,!0),s}function ci(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function ur(t,e,n){as(e);try{const i=t.viewQuery;null!==i&&Ml(1,i,n);const r=t.template;null!==r&&Jf(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Xf(t,e),t.staticViewQueries&&Ml(2,t.viewQuery,n);const s=t.components;null!==s&&function vE(t,e){for(let n=0;n<e.length;n++)jE(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[2]&=-5,ls()}}function ui(t,e,n,i){const r=e[2];if(256!=(256&r)){as(e);try{dd(e),function md(t){return x.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Jf(t,e,n,2,i);const o=3==(3&r);if(o){const c=t.preOrderCheckHooks;null!==c&&us(e,c,null)}else{const c=t.preOrderHooks;null!==c&&ds(e,c,0,null),Ca(e,0)}if(function BE(t){for(let e=za(t);null!==e;e=Ua(e)){if(!e[2])continue;const n=e[9];for(let i=0;i<n.length;i++){const r=n[i],s=r[3];0==(1024&r[2])&&ya(s,1),r[2]|=1024}}}(e),function LE(t){for(let e=za(t);null!==e;e=Ua(e))for(let n=10;n<e.length;n++){const i=e[n],r=i[1];ma(i)&&ui(r,i,r.template,i[8])}}(e),null!==t.contentQueries&&Xf(t,e),o){const c=t.contentCheckHooks;null!==c&&us(e,c)}else{const c=t.contentHooks;null!==c&&ds(e,c,1),Ca(e,1)}!function yE(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)sn(~r);else{const s=r,o=n[++i],a=n[++i];zv(o,s),a(2,e[s])}}}finally{sn(-1)}}(t,e);const a=t.components;null!==a&&function _E(t,e){for(let n=0;n<e.length;n++)VE(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Ml(2,l,i),o){const c=t.viewCheckHooks;null!==c&&us(e,c)}else{const c=t.viewHooks;null!==c&&ds(e,c,2),Ca(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,ya(e[3],-1))}finally{ls()}}}function DE(t,e,n,i){const r=e[10],o=function ud(t){return 4==(4&t[2])}(e);try{!o&&r.begin&&r.begin(),o&&ur(t,e,i),ui(t,e,n,i)}finally{!o&&r.end&&r.end()}}function Jf(t,e,n,i,r){const s=Ne(),o=2&i;try{sn(-1),o&&e.length>X&&Hf(t,e,X,!1),n(i,r)}finally{sn(s)}}function eh(t,e,n){if(la(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,n[s],s)}}}function Dl(t,e,n){!hd()||(function AE(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||qi(n,e),Pe(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const l=t.data[a],c=vt(l);c&&NE(e,n,l);const u=Yi(e,t,a,n);Pe(u,e),null!==o&&FE(0,a-r,u,l,0,o),c&&(We(n.index,e)[8]=u)}}(t,e,n,Ue(n,e)),128==(128&n.flags)&&function PE(t,e,n){const i=n.directiveStart,r=n.directiveEnd,o=n.index,a=function Uv(){return x.lFrame.currentDirectiveIndex}();try{sn(o);for(let l=i;l<r;l++){const c=t.data[l],u=e[l];Da(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&lh(c,u)}}finally{sn(-1),Da(a)}}(t,e,n))}function wl(t,e,n=Ue){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function th(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Ns(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Ns(t,e,n,i,r,s,o,a,l,c){const u=X+i,d=u+r,f=function wE(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:N);return n}(u,d),h="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function sh(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function El(t,e,n,i){let r=!1;if(hd()){const s=function RE(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vf(n,o.selectors,!1)&&(r||(r=[]),ms(qi(n,e),t,o.type),vt(o)?(ch(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,uh(n,t.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ci(t,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];n.mergedAttrs=hs(n.mergedAttrs,d.hostAttrs),dh(t,n,e,c,d),xE(c,d,o),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),c++}!function CE(t,e){const i=e.directiveEnd,r=t.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,f=null===s||Bf(e)?null:kE(d,s);o.push(f),a=sh(d,c,a),l=sh(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(t,n)}o&&function OE(t,e,n){if(e){const i=t.localNames=[];for(let r=0;r<e.length;r+=2){const s=n[e[r+1]];if(null==s)throw new b(-301,!1);i.push(e[r],s)}}}(n,i,o)}return n.mergedAttrs=hs(n.mergedAttrs,n.attrs),r}function ah(t,e,n,i,r,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~e.index;(function ME(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function lh(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ch(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function xE(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;vt(e)&&(n[""]=t)}}function uh(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function dh(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=Cn(r.type)),o=new Wi(s,vt(r),null);t.blueprint[i]=o,n[i]=o,ah(t,e,0,i,ci(t,n,r.hostVars,N),r)}function NE(t,e,n){const i=Ue(e,t),r=th(n),s=t[10],o=Fs(t,cr(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function FE(t,e,n,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(n,d,c,u):n[u]=d}}}function kE(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function fh(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function VE(t,e){const n=We(e,t);if(ma(n)){const i=n[1];80&n[2]?ui(i,n,i.template,n[8]):n[5]>0&&bl(n)}}function bl(t){for(let i=za(t);null!==i;i=Ua(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];ui(o,s,o.template,s[8])}else s[5]>0&&bl(s)}const n=t[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=We(n[i],t);ma(r)&&r[5]>0&&bl(r)}}function jE(t,e){const n=We(e,t),i=n[1];(function HE(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(i,n),ur(i,n,n[8])}function Fs(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Sl(t){for(;t;){t[2]|=64;const e=ir(t);if(wv(t)&&!e)return t;t=e}return null}function hh(t){!function Tl(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=ja(n),r=i[1];DE(r,i,r.template,n)}}(t[8])}function Ml(t,e,n){Ea(0),e(t,n)}const zE=(()=>Promise.resolve(null))();function ph(t){return t[7]||(t[7]=[])}function gh(t){return t.cleanup||(t.cleanup=[])}function yh(t,e){const n=t[9],i=n?n.get(lr,null):null;i&&i.handleError(e)}function _h(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Yt(t,e,n){const i=ss(e,t);!function lf(t,e,n){ce(t)?t.setValue(e,n):e.textContent=n}(t[k],i,n)}function ks(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=Zo(r,a):2==s&&(i=Zo(i,a+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const Al=new H("INJECTOR",-1);class vh{get(e,n=Xi){if(n===Xi){const i=new Error(`NullInjectorError: No provider for ${q(e)}!`);throw i.name="NullInjectorError",i}return n}}const Pl=new H("Set Injector scope."),dr={},GE={};let Rl;function Dh(){return void 0===Rl&&(Rl=new vh),Rl}function wh(t,e=null,n=null,i){const r=Eh(t,e,n,i);return r._resolveInjectorDefTypes(),r}function Eh(t,e=null,n=null,i){return new qE(t,n,e||Dh(),i)}class qE{constructor(e,n,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&Ot(n,a=>this.processProvider(a,e,n)),Ot([e],a=>this.processInjectorType(a,[],s)),this.records.set(Al,di(void 0,this));const o=this.records.get(Pl);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:q(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Xi,i=F.Default){this.assertNotDestroyed();const r=zd(this),s=en(void 0);try{if(!(i&F.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function tC(t){return"function"==typeof t||"object"==typeof t&&t instanceof H}(e)&&ea(e);a=l&&this.injectableDefInScope(l)?di(Ol(e),dr):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&F.Self?Dh():this.parent).get(e,n=i&F.Optional&&n===Xi?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[Ds]=o[Ds]||[]).unshift(q(e)),r)throw o;return function MD(t,e,n,i){const r=t[Ds];throw e[$d]&&r.unshift(e[$d]),t.message=function AD(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=q(e);if(Array.isArray(e))r=e.map(q).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):q(a)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(CD,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[Ds]=null,t}(o,e,"R3InjectorError",this.source)}throw o}finally{en(s),zd(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(q(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processInjectorType(e,n,i){if(!(e=L(e)))return!1;let r=Qu(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Qu(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Ot(r.imports,d=>{this.processInjectorType(d,n,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:h}=u[d];Ot(h,p=>this.processProvider(p,f,h||Z))}}this.injectorDefTypes.add(o);const l=Cn(o)||(()=>new o);this.records.set(o,di(l,dr));const c=r.providers;if(null!=c&&!a){const u=e;Ot(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,n,i){let r=fi(e=L(e))?e:L(e&&e.provide);const s=function KE(t,e,n){return bh(t)?di(void 0,t.useValue):di(function Ch(t,e,n){let i;if(fi(t)){const r=L(t);return Cn(r)||Ol(r)}if(bh(t))i=()=>L(t.useValue);else if(function ZE(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...ka(t.deps||[]));else if(function QE(t){return!(!t||!t.useExisting)}(t))i=()=>D(L(t.useExisting));else{const r=L(t&&(t.useClass||t.provide));if(!function JE(t){return!!t.deps}(t))return Cn(r)||Ol(r);i=()=>new r(...ka(t.deps))}return i}(t),dr)}(e);if(fi(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=di(void 0,dr,!0),o.factory=()=>ka(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,n){return n.value===dr&&(n.value=GE,n.value=n.factory()),"object"==typeof n.value&&n.value&&function eC(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=L(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Ol(t){const e=ea(t),n=null!==e?e.factory:Cn(t);if(null!==n)return n;if(t instanceof H)throw new b(204,!1);if(t instanceof Function)return function YE(t){const e=t.length;if(e>0)throw function Zi(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}(e,"?"),new b(204,!1);const n=function lv(t){const e=t&&(t[Xr]||t[Zu]);if(e){const n=function cv(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new b(204,!1)}function di(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function bh(t){return null!==t&&"object"==typeof t&&SD in t}function fi(t){return"function"==typeof t}let Ke=(()=>{class t{static create(n,i){var r;if(Array.isArray(n))return wh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return wh({name:s},n.parent,n.providers,s)}}}return t.THROW_IF_NOT_FOUND=Xi,t.NULL=new vh,t.\u0275prov=O({token:t,providedIn:"any",factory:()=>D(Al)}),t.__NG_ELEMENT_ID__=-1,t})();function cC(t,e){cs(ja(t)[1],De())}let Ls=null;function hi(){if(!Ls){const t=K.Symbol;if(t&&t.iterator)Ls=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ls=i)}}}return Ls}function fr(t){return!!function kl(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&hi()in t)}function Re(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function pr(t,e,n,i,r,s,o,a){const l=_(),c=W(),u=t+X,d=c.firstCreatePass?function DC(t,e,n,i,r,s,o,a,l){const c=e.consts,u=li(e,t,4,o||null,rn(c,a));El(e,n,u,rn(c,l)),cs(e,u);const d=u.tViews=Ns(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,i,r,s,o):c.data[u];Rt(d,!1);const f=l[k].createComment("");Ss(c,l,f,d),Pe(f,l),Fs(l,l[u]=fh(f,l,f,d)),rs(d)&&Dl(c,l,d),null!=o&&wl(l,d,a)}function $(t,e=F.Default){const n=_();return null===n?D(t,e):Od(De(),n,L(t),e)}function bi(t,e,n){const i=_();return Re(i,Qn(),e)&&function Ye(t,e,n,i,r,s,o,a){const l=Ue(e,n);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(_h(t,n,u,i,r),is(e)&&function SE(t,e){const n=We(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i=function bE(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,e.value||"",i):r,ce(s)?s.setProperty(l,i,r):Sa(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(W(),function re(){const t=x.lFrame;return ga(t.tView,t.selectedIndex)}(),i,t,e,i[k],n,!1),bi}function Hl(t,e,n,i,r){const o=r?"class":"style";_h(t,n,e.inputs[o],o,i)}function In(t,e,n,i){const r=_(),s=W(),o=X+t,a=r[k],l=r[o]=Ga(a,e,function Xv(){return x.lFrame.currentNamespace}()),c=s.firstCreatePass?function zC(t,e,n,i,r,s,o){const a=e.consts,c=li(e,t,2,r,rn(a,s));return El(e,n,c,rn(a,o)),null!==c.attrs&&ks(c,c.attrs,!1),null!==c.mergedAttrs&&ks(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,n,i):s.data[o];Rt(c,!0);const u=c.mergedAttrs;null!==u&&fs(a,l,u);const d=c.classes;null!==d&&Ja(a,l,d);const f=c.styles;return null!==f&&wf(a,l,f),64!=(64&c.flags)&&Ss(s,r,l,c),0===function kv(){return x.lFrame.elementDepthCount}()&&Pe(l,r),function Lv(){x.lFrame.elementDepthCount++}(),rs(c)&&(Dl(s,r,c),eh(s,c,r)),null!==i&&wl(r,c),In}function un(){let t=De();_a()?va():(t=t.parent,Rt(t,!1));const e=t;!function Bv(){x.lFrame.elementDepthCount--}();const n=W();return n.firstCreatePass&&(cs(n,t),la(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function iD(t){return 0!=(16&t.flags)}(e)&&Hl(n,e,_(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function rD(t){return 0!=(32&t.flags)}(e)&&Hl(n,e,_(),e.stylesWithoutHost,!1),un}function gr(t,e,n){const i=_(),r=W(),s=t+X,o=r.firstCreatePass?function UC(t,e,n,i,r){const s=e.consts,o=rn(s,i),a=li(e,t,8,"ng-container",o);return null!==o&&ks(a,o,!0),El(e,n,a,rn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];Rt(o,!0);const a=i[s]=i[k].createComment("");return Ss(r,i,a,o),Pe(a,i),rs(o)&&(Dl(r,i,o),eh(r,o,i)),null!=n&&wl(i,o),gr}function mr(){let t=De();const e=W();return _a()?va():(t=t.parent,Rt(t,!1)),e.firstCreatePass&&(cs(e,t),la(t)&&e.queries.elementEnd(t)),mr}function $l(t){return!!t&&"function"==typeof t.then}const WC=function ap(t){return!!t&&"function"==typeof t.subscribe};function zl(t,e,n,i){const r=_(),s=W(),o=De();return function cp(t,e,n,i,r,s,o,a){const l=rs(i),u=t.firstCreatePass&&gh(t),d=e[8],f=ph(e);let h=!0;if(3&i.type||a){const y=Ue(i,e),v=a?a(y):y,m=f.length,w=a?T=>a(ge(T[i.index])):i.index;if(ce(n)){let T=null;if(!a&&l&&(T=function GC(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===n&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,h=!1;else{s=Ul(i,e,d,s,!1);const V=n.listen(v,r,s);f.push(s,V),u&&u.push(r,w,m,m+1)}}else s=Ul(i,e,d,s,!0),v.addEventListener(r,s,o),f.push(s),u&&u.push(r,w,m,o)}else s=Ul(i,e,d,s,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[r])){const y=g.length;if(y)for(let v=0;v<y;v+=2){const ie=e[g[v]][g[v+1]].subscribe(s),oe=f.length;f.push(s,ie),u&&u.push(r,i.index,oe,-(oe+1))}}}(s,r,r[k],o,t,e,!!n,i),zl}function up(t,e,n,i){try{return!1!==n(i)}catch(r){return yh(t,r),!1}}function Ul(t,e,n,i,r){return function s(o){if(o===Function)return i;const a=2&t.flags?We(t.index,e):e;0==(32&e[2])&&Sl(a);let l=up(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=up(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function js(t=1){return function Gv(t){return(x.lFrame.contextLView=function qv(t,e){for(;t>0;)e=e[15],t--;return e}(t,x.lFrame.contextLView))[8]}(t)}function Dp(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?wt(s):qt(s),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];XC(t[a],e)&&(l=!0,t[a+1]=i?ul(u):ll(u)),a=i?wt(u):qt(u)}l&&(t[n+1]=i?ll(s):ul(s))}function XC(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ri(t,e)>=0}function Gl(t,e){return function Ct(t,e,n,i){const r=_(),s=W(),o=function Wt(t){const e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);s.firstUpdatePass&&function Ap(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[Ne()],o=function Mp(t,e){return e>=t.expandoStartIndex}(t,n);(function xp(t,e){return 0!=(t.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function ab(t,e,n,i){const r=function wa(t){const e=x.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=yr(n=ql(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=ql(r,t,e,n,i),null===s){let l=function lb(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==qt(i))return t[wt(i)]}(t,e,i);void 0!==l&&Array.isArray(l)&&(l=ql(null,t,e,l[1],i),l=yr(l,e.attrs,i),function cb(t,e,n,i){t[wt(n?e.classBindings:e.styleBindings)]=i}(t,e,i,l))}else s=function ub(t,e,n){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=yr(i,t[s].hostAttrs,n);return yr(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function QC(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=wt(o),l=qt(o);t[i]=n;let u,c=!1;if(Array.isArray(n)){const d=n;u=d[1],(null===u||ri(d,u)>0)&&(c=!0)}else u=n;if(r)if(0!==l){const f=wt(t[a+1]);t[i+1]=Rs(f,a),0!==f&&(t[f+1]=cl(t[f+1],i)),t[a+1]=function aE(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Rs(a,0),0!==a&&(t[a+1]=cl(t[a+1],i)),a=i;else t[i+1]=Rs(l,0),0===a?a=i:t[l+1]=cl(t[l+1],i),l=i;c&&(t[i+1]=ll(t[i+1])),Dp(t,u,i,!0),Dp(t,u,i,!1),function ZC(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ri(s,e)>=0&&(n[i+1]=ul(n[i+1]))}(e,u,t,i,s),o=Rs(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}(s,t,o,i),e!==N&&Re(r,o,e)&&function Rp(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Hs(function Uf(t){return 1==(1&t)}(c)?Op(l,e,n,r,qt(c),o):void 0)||(Hs(s)||function zf(t){return 2==(2&t)}(c)&&(s=Op(l,null,n,r,a,o)),function lw(t,e,n,i,r){const s=ce(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:qe.DashCase;if(null==r)s?t.removeStyle(n,i,o):n.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=qe.Important),s?t.setStyle(n,i,r,o):n.style.setProperty(i,r,a?"important":"")}}}(i,o,ss(Ne(),n),r,s))}(s,s.data[Ne()],r,r[k],t,r[o+1]=function hb(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=q(function an(t){return t instanceof class Sf{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?t.changingThisBreaksApplicationSecurity:t}(t)))),t}(e,n),i,o)}(t,e,null,!0),Gl}function ql(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=yr(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function yr(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Ge(t,o,!!n||e[++s]))}return void 0===t?null:t}function Op(t,e,n,i,r,s){const o=null===e;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=n[r+1];f===N&&(f=d?Z:void 0);let h=d?xa(f,i):u===i?f:void 0;if(c&&!Hs(h)&&(h=xa(l,i)),Hs(h)&&(a=h,o))return a;const p=t[r+1];r=o?wt(p):qt(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=xa(l,i))}return a}function Hs(t){return void 0!==t}function $s(t,e=""){const n=_(),i=W(),r=t+X,s=i.firstCreatePass?li(i,r,1,e,null):i.data[r],o=n[r]=function Wa(t,e){return ce(t)?t.createText(e):t.createTextNode(e)}(n[k],e);Ss(i,n,o,s),Rt(s,!1)}function Yl(t){return _r("",t,""),Yl}function _r(t,e,n){const i=_(),r=function gi(t,e,n,i){return Re(t,Qn(),n)?e+R(n)+i:N}(i,t,e,n);return r!==N&&Yt(i,Ne(),r),_r}const zs="en-US";let tg=zs;class Tg{}class kS{resolveComponentFactory(e){throw function FS(t){const e=Error(`No component factory found for ${q(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let An=(()=>{class t{}return t.NULL=new kS,t})();function LS(){return Mi(De(),_())}function Mi(t,e){return new Kt(Ue(t,e))}let Kt=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=LS,t})();class Cr{}let HS=(()=>{class t{}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>null}),t})();class Ys{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const $S=new Ys("13.4.0"),tc={};function Ks(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(ge(s)),_t(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Ks(l[1],l,c,i)}const o=n.type;if(8&o)Ks(t,e,n.child,i);else if(32&o){const a=$a(n,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=vf(e,n);if(Array.isArray(a))i.push(...a);else{const l=ir(e[16]);Ks(l[1],l,a,i,!0)}}n=r?n.projectionNext:n.next}return i}class br{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Ks(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(_t(e)){const n=e[8],i=n?n.indexOf(this):-1;i>-1&&(qa(e,i),_s(n,i))}this._attachedToViewContainer=!1}uf(this._lView[1],this._lView)}onDestroy(e){!function rh(t,e,n,i){const r=ph(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&gh(t).push(i,r.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){Sl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Il(t,e,n){const i=e[10];i.begin&&i.begin();try{ui(t,e,t.template,n)}catch(r){throw yh(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XD(t,e){rr(t,e,e[k],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,"");this._appRef=e}}class zS extends br{constructor(e){super(e),this._view=e}detectChanges(){hh(this._view)}checkNoChanges(){}get context(){return null}}class Ag extends An{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ie(e);return new nc(n,this.ngModule)}}function Pg(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class nc extends Tg{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function sE(t){return t.map(rE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Pg(this.componentDef.inputs)}get outputs(){return Pg(this.componentDef.outputs)}create(e,n,i,r){const s=(r=r||this.ngModule)?function WS(t,e){return{get:(n,i,r)=>{const s=t.get(n,tc,r);return s!==tc||i===tc?s:e.get(n,i,r)}}}(e,r.injector):e,o=s.get(Cr,cd),a=s.get(HS,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function ih(t,e,n){if(ce(t))return t.selectRootElement(e,n===mt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Ga(o.createRenderer(null,this.componentDef),c,function US(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,f=function Fh(t,e){return{components:[],scheduler:t||Gw,clean:zE,playerHandler:e||null,flags:0}}(),h=Ns(0,null,null,1,0,null,null,null,null,null),p=cr(null,h,f,d,null,null,o,l,a,s);let g,y;as(p);try{const v=function xh(t,e,n,i,r,s){const o=n[1];n[20]=t;const l=li(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(ks(l,c,!0),null!==t&&(fs(r,t,c),null!==l.classes&&Ja(r,t,l.classes),null!==l.styles&&wf(r,t,l.styles)));const u=i.createRenderer(t,e),d=cr(n,th(e),null,e.onPush?64:16,n[20],l,i,u,s||null,null);return o.firstCreatePass&&(ms(qi(l,n),o,e.type),ch(o,l),uh(l,n.length,1)),Fs(n,d),n[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)fs(l,u,["ng-version",$S.full]);else{const{attrs:m,classes:w}=function oE(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!Dt(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);m&&fs(l,u,m),w&&w.length>0&&Ja(l,u,w.join(" "))}if(y=ga(h,X),void 0!==n){const m=y.projection=[];for(let w=0;w<this.ngContentSelectors.length;w++){const T=n[w];m.push(null!=T?Array.from(T):null)}}g=function Nh(t,e,n,i,r){const s=n[1],o=function IE(t,e,n){const i=De();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),dh(t,i,e,ci(t,e,1,null),n));const r=Yi(e,t,i.directiveStart,i);Pe(r,e);const s=Ue(i,e);return s&&Pe(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=De();e.contentQueries(1,o,l.directiveStart)}const a=De();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(sn(a.index),ah(n[1],a,0,a.directiveStart,a.directiveEnd,e),lh(e,o)),o}(v,this.componentDef,p,f,[cC]),ur(h,p,null)}finally{ls()}return new qS(this.componentType,g,Mi(y,p),p,y)}}class qS extends class NS{}{constructor(e,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new zS(r),this.componentType=e}get injector(){return new Jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Ai{}const Pi=new Map;class xg extends Ai{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ag(this);const i=rt(e);this._bootstrapComponents=Nt(i.bootstrap),this._r3Injector=Eh(e,n,[{provide:Ai,useValue:this},{provide:An,useValue:this.componentFactoryResolver}],q(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Ke.THROW_IF_NOT_FOUND,i=F.Default){return e===Ke||e===Ai||e===Al?this:this._r3Injector.get(e,n,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ic extends class KS{}{constructor(e){super(),this.moduleType=e,null!==rt(e)&&function QS(t){const e=new Set;!function n(i){const r=rt(i,!0),s=r.id;null!==s&&(function Rg(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${q(e)} vs ${q(e.name)}`)}(s,Pi.get(s),i),Pi.set(s,i));const o=Nt(r.imports);for(const a of o)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new xg(this.moduleType,e)}}function rc(t){return e=>{setTimeout(t,void 0,e)}}const St=class g0 extends nt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,i){var r,s,o;let a=e,l=n||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=rc(l),a&&(a=rc(a)),c&&(c=rc(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof ee&&e.add(u),u}};Symbol;let Qt=(()=>{class t{}return t.__NG_ELEMENT_ID__=v0,t})();const y0=Qt,_0=class extends y0{constructor(e,n,i){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(e){const n=this._declarationTContainer.tViews,i=cr(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),ur(n,i,e),new br(i)}};function v0(){return function Qs(t,e){return 4&t.type?new _0(e,t,Mi(t,e)):null}(De(),_())}let Vt=(()=>{class t{}return t.__NG_ELEMENT_ID__=D0,t})();function D0(){return function Hg(t,e){let n;const i=e[t.index];if(_t(i))n=i;else{let r;if(8&t.type)r=ge(i);else{const s=e[k];r=s.createComment("");const o=Ue(t,e);bn(s,bs(s,o),r,function sw(t,e){return ce(t)?t.nextSibling(e):e.nextSibling}(s,o),!1)}e[t.index]=n=fh(i,e,r,t),Fs(e,n)}return new Vg(n,t,e)}(De(),_())}const w0=Vt,Vg=class extends w0{constructor(e,n,i){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=i}get element(){return Mi(this._hostTNode,this._hostLView)}get injector(){return new Jn(this._hostTNode,this._hostLView)}get parentInjector(){const e=gs(this._hostTNode,this._hostLView);if(Id(e)){const n=Xn(e,this._hostLView),i=Zn(e);return new Jn(n[1].data[i+8],n)}return new Jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=jg(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,i){const r=e.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(e,n,i,r,s){const o=e&&!function Qi(t){return"function"==typeof t}(e);let a;if(o)a=n;else{const d=n||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new nc(Ie(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const f=(o?c:this.parentInjector).get(Ai,null);f&&(s=f)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,n){const i=e._lView,r=i[1];if(function Fv(t){return _t(t[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],f=new Vg(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(n),o=this._lContainer;!function ew(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],Ld(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function tw(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,i,o,s);const a=Qa(s,o),l=i[k],c=bs(l,o[7]);return null!==c&&function ZD(t,e,n,i,r,s){i[0]=r,i[6]=e,rr(t,i,n,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Ld(oc(o),s,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=jg(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),i=qa(this._lContainer,n);i&&(_s(oc(this._lContainer),n),uf(i[1],i))}detach(e){const n=this._adjustIndex(e,-1),i=qa(this._lContainer,n);return i&&null!=_s(oc(this._lContainer),n)?new br(i):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function jg(t){return t[8]}function oc(t){return t[8]||(t[8]=[])}function Js(...t){}const cm=new H("Application Initializer");let yc=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Js,this.reject=Js,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if($l(s))n.push(s);else if(WC(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(D(cm,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Mr=new H("AppId",{providedIn:"root",factory:function um(){return`${_c()}${_c()}${_c()}`}});function _c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dm=new H("Platform Initializer"),vc=new H("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Z0=new H("appBootstrapListener"),dn=new H("LocaleId",{providedIn:"root",factory:()=>Wd(dn,F.Optional|F.SkipSelf)||function X0(){return"undefined"!=typeof $localize&&$localize.locale||zs}()}),nT=(()=>Promise.resolve(0))();function Dc(t){"undefined"==typeof Zone?nT.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new St(!1),this.onMicrotaskEmpty=new St(!1),this.onStable=new St(!1),this.onError=new St(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function iT(){let t=K.requestAnimationFrame,e=K.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function oT(t){const e=()=>{!function sT(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(K,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ec(t),t.isCheckStableRunning=!0,wc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ec(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,o,a)=>{try{return fm(t),n.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),hm(t)}},onInvoke:(n,i,r,s,o,a,l)=>{try{return fm(t),n.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),hm(t)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Ec(t),wc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,i){return this._inner.run(e,n,i)}runTask(e,n,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,rT,Js,Js);try{return s.runTask(o,n,i)}finally{s.cancelTask(o)}}runGuarded(e,n,i){return this._inner.runGuarded(e,n,i)}runOutsideAngular(e){return this._outer.run(e)}}const rT={};function wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ec(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function fm(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function hm(t){t._nesting--,wc(t)}class aT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new St,this.onMicrotaskEmpty=new St,this.onStable=new St,this.onError=new St}run(e,n,i){return e.apply(n,i)}runGuarded(e,n,i){return e.apply(n,i)}runOutsideAngular(e){return e()}runTask(e,n,i,r){return e.apply(n,i)}}let Cc=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fe.assertNotInAngularZone(),Dc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return t.\u0275fac=function(n){return new(n||t)(D(fe))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),lT=(()=>{class t{constructor(){this._applications=new Map,bc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return bc.findTestabilityInTree(this,n,i)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class cT{addToWindow(e){}findTestabilityInTree(e,n,i){return null}}let bc=new cT,Pn=null;const pm=new H("AllowMultipleToken"),gm=new H("PlatformOnDestroy");function mm(t,e,n=[]){const i=`Platform: ${e}`,r=new H(i);return(s=[])=>{let o=Sc();if(!o||o.injector.get(pm,!1)){const a=[...n,...s,{provide:r,useValue:!0}];t?t(a):function hT(t){if(Pn&&!Pn.get(pm,!1))throw new b(400,"");Pn=t;const e=t.get(ym),n=t.get(dm,null);n&&n.forEach(i=>i())}(function gT(t=[],e){return Ke.create({name:e,providers:[{provide:Pl,useValue:"platform"},{provide:gm,useValue:()=>Pn=null},...t]})}(a,i))}return function pT(t){const e=Sc();if(!e)throw new b(401,"");return e}()}}function Sc(){var t;return null!==(t=null==Pn?void 0:Pn.get(ym))&&void 0!==t?t:null}let ym=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const a=function mT(t,e){let n;return n="noop"===t?new aT:("zone.js"===t?void 0:t)||new fe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:fe,useValue:a}];return a.run(()=>{const c=Ke.create({providers:l,parent:this.injector,name:n.moduleType.name}),u=n.create(c),d=u.injector.get(lr,null);if(!d)throw new b(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});u.onDestroy(()=>{Tc(this._modules,u),f.unsubscribe()})}),function yT(t,e,n){try{const i=n();return $l(i)?i.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(d,a,()=>{const f=u.injector.get(yc);return f.runInitializers(),f.donePromise.then(()=>(function Bb(t){$e(t,"Expected localeId to be defined"),"string"==typeof t&&(tg=t.toLowerCase().replace(/_/g,"-"))}(u.injector.get(dn,zs)||zs),this._moduleDoBootstrap(u),u))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function dT(t,e,n){const i=new ic(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(eo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new b(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(gm,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(D(Ke))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function _m(t,e){return Array.isArray(e)?e.reduce(_m,t):Object.assign(Object.assign({},t),e)}let eo=(()=>{class t{constructor(n,i,r,s){this._zone=n,this._injector=i,this._exceptionHandler=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new de(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new de(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),Dc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Ko(o,a.pipe(function nv(){return t=>qu()(function J_(t,e){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new ev(r,e));const s=Object.create(i,Q_);return s.source=i,s.subjectFactory=r,s}}(tv)(t))}()))}bootstrap(n,i){if(!this._initStatus.done)throw new b(405,"");let r;r=n instanceof Tg?n:this._injector.get(An).resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function fT(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Ai),a=r.create(Ke.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Cc,null),u=c&&a.injector.get(lT);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Tc(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new b(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Tc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Z0,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(D(fe),D(Ke),D(lr),D(yc))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Tc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let Dm=!0,Cm=(()=>{class t{}return t.__NG_ELEMENT_ID__=DT,t})();function DT(t){return function wT(t,e,n){if(is(t)&&!n){const i=We(t.index,e);return new br(i,i)}return 47&t.type?new br(e[16],e):null}(De(),_(),16==(16&t))}class Tm{constructor(){}supports(e){return fr(e)}create(e){return new IT(e)}}const TT=(t,e)=>e;class IT{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||TT}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const o=!i||n&&n.currentIndex<Mm(i,r,s)?n:i,a=Mm(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(n=n._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let f=0;f<c;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;u<=p&&p<c&&(s[f]=h+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!fr(e))throw new b(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,n=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==n&&Object.is(n.trackById,o)?(i&&(n=this._verifyReinsertion(n,s,o,a)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,o,a),i=!0),n=n._next}else r=0,function vC(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[hi()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==n&&Object.is(n.trackById,o)?(i&&(n=this._verifyReinsertion(n,a,o,r)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,o,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,s,r)):e=this._addAfter(new MT(n,i),s,r),e}_verifyReinsertion(e,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,n,i),this._addToMoves(e,i),e}_moveAfter(e,n,i){return this._unlink(e),this._insertAfter(e,n,i),this._addToMoves(e,i),e}_addAfter(e,n,i){return this._insertAfter(e,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,i){const r=null===n?this._itHead:n._next;return e._next=r,e._prev=n,null===r?this._itTail=e:r._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new Im),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,i=e._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Im),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class MT{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class AT{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const n=e._prevDup,i=e._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Im{constructor(){this.map=new Map}put(e){const n=e.trackById;let i=this.map.get(n);i||(i=new AT,this.map.set(n,i)),i.add(e)}get(e,n){const r=this.map.get(e);return r?r.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mm(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}function Pm(){return new io([new Tm])}let io=(()=>{class t{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||Pm()),deps:[[t,new Es,new ws]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new b(901,"")}}return t.\u0275prov=O({token:t,providedIn:"root",factory:Pm}),t})();const NT=mm(null,"core",[]);let FT=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(D(eo))},t.\u0275mod=Un({type:t}),t.\u0275inj=_n({}),t})(),ro=null;function fn(){return ro}const ne=new H("DocumentToken");class RI{constructor(e,n,i,r){this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Gm=(()=>{class t{constructor(n,i,r){this._viewContainer=n,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const i=this._viewContainer;n.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new RI(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),qm(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}n.forEachIdentityChange(r=>{qm(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(n,i){return!0}}return t.\u0275fac=function(n){return new(n||t)($(Vt),$(Qt),$(io))},t.\u0275dir=it({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function qm(t,e){t.context.$implicit=e.item}const Km="browser";let FM=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Un({type:t}),t.\u0275inj=_n({}),t})();class qc extends class VM extends class BT{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function LT(t){ro||(ro=t)}(new qc)}onAndCancel(e,n,i){return e.addEventListener(n,i,!1),()=>{e.removeEventListener(n,i,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function jM(){return Nr=Nr||document.querySelector("base"),Nr?Nr.getAttribute("href"):null}();return null==n?null:function HM(t){yo=yo||document.createElement("a"),yo.setAttribute("href",t);const e=yo.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Nr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function MI(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const i=n.indexOf("="),[r,s]=-1==i?[n,""]:[n.slice(0,i),n.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let yo,Nr=null;const iy=new H("TRANSITION_ID"),zM=[{provide:cm,useFactory:function $M(t,e,n){return()=>{n.get(yc).donePromise.then(()=>{const i=fn(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[iy,ne,Ke],multi:!0}];class Yc{static init(){!function uT(t){bc=t}(new Yc)}addToWindow(e){K.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},K.getAllAngularTestabilities=()=>e.getAllTestabilities(),K.getAllAngularRootElements=()=>e.getAllRootElements(),K.frameworkStabilizers||(K.frameworkStabilizers=[]),K.frameworkStabilizers.push(i=>{const r=K.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,i){if(null==n)return null;const r=e.getTestability(n);return null!=r?r:i?fn().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let UM=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const _o=new H("EventManagerPlugins");let vo=(()=>{class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(r=>r.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,i,r){return this._findPluginFor(i).addEventListener(n,i,r)}addGlobalEventListener(n,i,r){return this._findPluginFor(i).addGlobalEventListener(n,i,r)}getZone(){return this._zone}_findPluginFor(n){const i=this._eventNameToPlugin.get(n);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(n))return this._eventNameToPlugin.set(n,o),o}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(D(_o),D(fe))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class ry{constructor(e){this._doc=e}addGlobalEventListener(e,n,i){const r=fn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${n}`);return this.addEventListener(r,n,i)}}let sy=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const i=new Set;n.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),Fr=(()=>{class t extends sy{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,i,r){n.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(n){const i=[];this._addStylesToHost(this._stylesSet,n,i),this._hostNodes.set(n,i)}removeHost(n){const i=this._hostNodes.get(n);i&&i.forEach(oy),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(n,r,i)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(oy))}}return t.\u0275fac=function(n){return new(n||t)(D(ne))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function oy(t){fn().remove(t)}const Kc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Qc=/%COMP%/g;function Do(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Do(t,r,n):(r=r.replace(Qc,t),n.push(r))}return n}function cy(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let wo=(()=>{class t{constructor(n,i,r){this.eventManager=n,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Zc(n)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;switch(i.encapsulation){case mt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new QM(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(n),r}case 1:case mt.ShadowDom:return new ZM(this.eventManager,this.sharedStylesHost,n,i);default:if(!this.rendererByCompId.has(i.id)){const r=Do(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(D(vo),D(Fr),D(Mr))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class Zc{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Kc[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,i){e&&e.insertBefore(n,i)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return n||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,i,r){if(r){n=r+":"+n;const s=Kc[r];s?e.setAttributeNS(s,n,i):e.setAttribute(n,i)}else e.setAttribute(n,i)}removeAttribute(e,n,i){if(i){const r=Kc[i];r?e.removeAttributeNS(r,n):e.removeAttribute(`${i}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,i,r){r&(qe.DashCase|qe.Important)?e.style.setProperty(n,i,r&qe.Important?"important":""):e.style[n]=i}removeStyle(e,n,i){i&qe.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,i){e[n]=i}setValue(e,n){e.nodeValue=n}listen(e,n,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,cy(i)):this.eventManager.addEventListener(e,n,cy(i))}}class QM extends Zc{constructor(e,n,i,r){super(e),this.component=i;const s=Do(r+"-"+i.id,i.styles,[]);n.addStyles(s),this.contentAttr=function qM(t){return"_ngcontent-%COMP%".replace(Qc,t)}(r+"-"+i.id),this.hostAttr=function YM(t){return"_nghost-%COMP%".replace(Qc,t)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const i=super.createElement(e,n);return super.setAttribute(i,this.contentAttr,""),i}}class ZM extends Zc{constructor(e,n,i,r){super(e),this.sharedStylesHost=n,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Do(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,i){return super.insertBefore(this.nodeOrShadowRoot(e),n,i)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let XM=(()=>{class t extends ry{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,r){return n.addEventListener(i,r,!1),()=>this.removeEventListener(n,i,r)}removeEventListener(n,i,r){return n.removeEventListener(i,r)}}return t.\u0275fac=function(n){return new(n||t)(D(ne))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const dy=["alt","control","meta","shift"],eA={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fy={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},tA={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let nA=(()=>{class t extends ry{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fn().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const i=n.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(i.pop());let o="";if(dy.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(n){let i="",r=function iA(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&fy.hasOwnProperty(e)&&(e=fy[e]))}return eA[e]||e}(n);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),dy.forEach(s=>{s!=r&&tA[s](n)&&(i+=s+".")}),i+=r,i}static eventCallback(n,i,r){return s=>{t.getEventFullKey(s)===n&&r.runGuarded(()=>i(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(D(ne))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const aA=mm(NT,"browser",[{provide:vc,useValue:Km},{provide:dm,useValue:function rA(){qc.makeCurrent(),Yc.init()},multi:!0},{provide:ne,useFactory:function oA(){return function Rv(t){ha=t}(document),document},deps:[]}]),lA=[{provide:Pl,useValue:"root"},{provide:lr,useFactory:function sA(){return new lr},deps:[]},{provide:_o,useClass:XM,multi:!0,deps:[ne,fe,vc]},{provide:_o,useClass:nA,multi:!0,deps:[ne]},{provide:wo,useClass:wo,deps:[vo,Fr,Mr]},{provide:Cr,useExisting:wo},{provide:sy,useExisting:Fr},{provide:Fr,useClass:Fr,deps:[ne]},{provide:Cc,useClass:Cc,deps:[fe]},{provide:vo,useClass:vo,deps:[_o,fe]},{provide:class LM{},useClass:UM,deps:[]}];let hy=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Mr,useValue:n.appId},{provide:iy,useExisting:Mr},zM]}}}return t.\u0275fac=function(n){return new(n||t)(D(t,12))},t.\u0275mod=Un({type:t}),t.\u0275inj=_n({providers:lA,imports:[FM,FT]}),t})();"undefined"!=typeof window&&window;class bA extends ee{constructor(e,n){super()}schedule(e,n=0){return this}}class Eo extends bA{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this}requestAsyncId(e,n,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,n,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,n);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,n=this.scheduler,i=n.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let Dy=(()=>{class t{constructor(n,i=t.now){this.SchedulerAction=n,this.now=i}schedule(n,i=0,r){return new this.SchedulerAction(this,n).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Mt extends Dy{constructor(e,n=Dy.now){super(e,()=>Mt.delegate&&Mt.delegate!==this?Mt.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,i){return Mt.delegate&&Mt.delegate!==this?Mt.delegate.schedule(e,n,i):super.schedule(e,n,i)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}}}new class TA extends Mt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let i,r=-1,s=n.length;e=e||n.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=n.shift()));if(this.active=!1,i){for(;++r<s&&(e=n.shift());)e.unsubscribe();throw i}}}(class SA extends Eo{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,i=0){return null!==i&&i>0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,n,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,n,i);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}});let MA=1;const AA=Promise.resolve(),Co={};function wy(t){return t in Co&&(delete Co[t],!0)}const Ey={setImmediate(t){const e=MA++;return Co[e]=!0,AA.then(()=>wy(e)&&t()),e},clearImmediate(t){wy(t)}};new class RA extends Mt{flush(e){this.active=!0,this.scheduled=void 0;const{actions:n}=this;let i,r=-1,s=n.length;e=e||n.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=n.shift()));if(this.active=!1,i){for(;++r<s&&(e=n.shift());)e.unsubscribe();throw i}}}(class PA extends Eo{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,i=0){return null!==i&&i>0?super.requestAsyncId(e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=Ey.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,n,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,n,i);0===e.actions.length&&(Ey.clearImmediate(n),e.scheduled=void 0)}});let Jc;new Mt(Eo);try{Jc="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){Jc=!1}let kr=(()=>{class t{constructor(n){this._platformId=n,this.isBrowser=this._platformId?function LI(t){return t===Km}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Jc)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(n){return new(n||t)(D(vc))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function My(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}Object.create(Error.prototype);const rP=new de(t=>t.complete());let iu=(()=>{class t{constructor(n,i){this._platform=i,this._document=n}ngOnDestroy(){var n;null===(n=this._containerElement)||void 0===n||n.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container";if(this._platform.isBrowser||My()){const r=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(n),My()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(n){return new(n||t)(D(ne),D(kr))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const RP=new class PP extends Mt{}(class AP extends Eo{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,n,i):e.flush(this)}});function xP({error:t,subscriber:e}){e.error(t)}class dt{constructor(e,n,i){this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return i&&i()}}accept(e,n,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,i)}toObservable(){switch(this.kind){case"N":return function yy(...t){let e=t[t.length-1];return Wr(e)?(t.pop(),Yo(t,e)):Gu(t)}(this.value);case"E":return function OP(t,e){return new de(e?n=>e.schedule(xP,0,{error:t,subscriber:n}):n=>n.error(t))}(this.error);case"C":return function Py(t){return t?function sP(t){return new de(e=>t.schedule(()=>e.complete()))}(t):rP}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new dt("N",e):dt.undefinedValueNotification}static createError(e){return new dt("E",void 0,e)}static createComplete(){return dt.completeNotification}}dt.completeNotification=new dt("C"),dt.undefinedValueNotification=new dt("N",void 0);class So extends Me{constructor(e,n,i=0){super(e),this.scheduler=n,this.delay=i}static dispatch(e){const{notification:n,destination:i}=e;n.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(So.dispatch,this.delay,new FP(e,this.destination)))}_next(e){this.scheduleMessage(dt.createNext(e))}_error(e){this.scheduleMessage(dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(dt.createComplete()),this.unsubscribe()}}class FP{constructor(e,n){this.notification=e,this.destination=n}}class kP extends nt{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new LP(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new $n;if(this.isStopped||this.hasError?o=ee.EMPTY:(this.observers.push(e),o=new Lu(this,e)),r&&e.add(e=new So(e,r)),n)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||RP).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>n&&(o=Math.max(o,s-n)),o>0&&r.splice(0,o),r}}class LP{constructor(e,n){this.time=e,this.value=n}}function Vy(t,e){return"function"==typeof e?n=>n.pipe(Vy((i,r)=>Uu(t(i,r)).pipe(Gr((s,o)=>e(i,s,r,o))))):n=>n.lift(new BP(t))}class BP{constructor(e){this.project=e}call(e,n){return n.subscribe(new VP(e,this.project))}}class VP extends Kr{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const i=this.index++;try{n=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const i=new Yr(this),r=this.destination;r.add(i),this.innerSubscription=Qr(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const To={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return To.schedule(t,0);if(void 0===window.requestAnimationFrame)return To.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let ru;function YP(t,e,n){let i=n;return function HP(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((r,s)=>!("*"===r||!function zP(t,e){if(!ru){const n=Element.prototype;ru=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&ru.call(t,e)}(t,r)||(i=s,0))),i}class QP{constructor(e,n){this.componentFactory=n.get(An).resolveComponentFactory(e)}create(e){return new ZP(this.componentFactory,e)}}class ZP{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new kP(1),this.events=this.eventEmitters.pipe(Vy(i=>Ko(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(fe),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=To.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function UP(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=Ke.create({providers:[],parent:this.injector}),i=function qP(t,e){const n=t.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=n.length;s<o;++s){const a=n[s],l=YP(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Cm),this.implementsOnChanges=function $P(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(eo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe(Gr(o=>({name:r,value:o}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=To.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=n);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new sd(s,n,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class XP extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class jy{}const Xt="*";function Hy(t,e=null){return{type:2,steps:t,options:e}}function $y(t){return{type:6,styles:t,offset:null}}function zy(t){Promise.resolve(null).then(t)}class Br{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){zy(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}class Uy{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,i=0,r=0;const s=this.players.length;0==s?zy(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((n,i)=>null===n||i.totalTime>n.totalTime?i:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}const U=!1;function Wy(t){return new b(3e3,U)}function NR(){return"undefined"!=typeof window&&void 0!==window.document}function ou(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pn(t){switch(t.length){case 0:return new Br;case 1:return t[0];default:return new Uy(t)}}function Gy(t,e,n,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,f=d==l,h=f&&c||{};Object.keys(u).forEach(p=>{let g=p,y=u[p];if("offset"!==p)switch(g=e.normalizePropertyName(g,o),y){case"!":y=r[p];break;case Xt:y=s[p];break;default:y=e.normalizeStyleValue(p,g,y,o)}h[g]=y}),f||a.push(h),c=h,l=d}),o.length)throw function CR(t){return new b(3502,U)}();return a}function au(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&lu(n,"start",t)));break;case"done":t.onDone(()=>i(n&&lu(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&lu(n,"destroy",t)))}}function lu(t,e,n){const i=n.totalTime,s=cu(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(s._data=o),s}function cu(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Qe(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function qy(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let uu=(t,e)=>!1,Yy=(t,e,n)=>[],Ky=null;function du(t){const e=t.parentNode||t.host;return e===Ky?null:e}(ou()||"undefined"!=typeof Element)&&(NR()?(Ky=(()=>document.documentElement)(),uu=(t,e)=>{for(;e;){if(e===t)return!0;e=du(e)}return!1}):uu=(t,e)=>t.contains(e),Yy=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const i=t.querySelector(e);return i?[i]:[]});let Fn=null,Qy=!1;function Zy(t){Fn||(Fn=function kR(){return"undefined"!=typeof document?document.body:null}()||{},Qy=!!Fn.style&&"WebkitAppearance"in Fn.style);let e=!0;return Fn.style&&!function FR(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Fn.style,!e&&Qy&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Fn.style)),e}const Xy=uu,Jy=Yy;let e_=(()=>{class t{validateStyleProperty(n){return Zy(n)}matchesElement(n,i){return!1}containsElement(n,i){return Xy(n,i)}getParentElement(n){return du(n)}query(n,i,r){return Jy(n,i,r)}computeStyle(n,i,r){return r||""}animate(n,i,r,s,o,a=[],l){return new Br(r,s)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),fu=(()=>{class t{}return t.NOOP=new e_,t})();const hu="ng-enter",Mo="ng-leave",Ao="ng-trigger",Po=".ng-trigger",n_="ng-animating",pu=".ng-animating";function kn(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:gu(parseFloat(e[1]),e[2])}function gu(t,e){return"s"===e?1e3*t:t}function Ro(t,e,n){return t.hasOwnProperty("duration")?t:function VR(t,e,n){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(Wy()),{duration:0,delay:0,easing:""};r=gu(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=gu(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=t;if(!n){let a=!1,l=e.length;r<0&&(e.push(function tR(){return new b(3100,U)}()),a=!0),s<0&&(e.push(function nR(){return new b(3101,U)}()),a=!0),a&&e.splice(l,0,Wy())}return{duration:r,delay:s,easing:o}}(t,e,n)}function xi(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function gn(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else xi(t,n);return n}function r_(t,e,n){return n?e+":"+n+";":""}function s_(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=r_(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=r_(0,$R(n),t.style[n]));t.setAttribute("style",e)}function jt(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=yu(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),ou()&&s_(t))}function Ln(t,e){t.style&&(Object.keys(e).forEach(n=>{const i=yu(n);t.style[i]=""}),ou()&&s_(t))}function Vr(t){return Array.isArray(t)?1==t.length?t[0]:Hy(t):t}const mu=new RegExp("{{\\s*(.+?)\\s*}}","g");function o_(t){let e=[];if("string"==typeof t){let n;for(;n=mu.exec(t);)e.push(n[1]);mu.lastIndex=0}return e}function Oo(t,e,n){const i=t.toString(),r=i.replace(mu,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(n.push(function rR(t){return new b(3003,U)}()),a=""),a.toString()});return r==i?t:r}function xo(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const HR=/-+([a-z0-9])/g;function yu(t){return t.replace(HR,(...e)=>e[1].toUpperCase())}function $R(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ze(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function sR(t){return new b(3004,U)}()}}function a_(t,e){return window.getComputedStyle(t)[e]}function YR(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function KR(t,e,n){if(":"==t[0]){const l=function QR(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,i)=>parseFloat(i)>parseFloat(n);case":decrement":return(n,i)=>parseFloat(i)<parseFloat(n);default:return e.push(function vR(t){return new b(3016,U)}()),"* => *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(function _R(t){return new b(3015,U)}()),e;const r=i[1],s=i[2],o=i[3];e.push(l_(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(l_(o,r))}(i,n,e)):n.push(t),n}const Lo=new Set(["true","1"]),Bo=new Set(["false","0"]);function l_(t,e){const n=Lo.has(t)||Bo.has(t),i=Lo.has(e)||Bo.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?Lo.has(t):Bo.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?Lo.has(e):Bo.has(e)),o&&a}}const ZR=new RegExp("s*:selfs*,?","g");function _u(t,e,n,i){return new XR(t).build(e,n,i)}class XR{constructor(e){this._driver=e}build(e,n,i){const r=new tO(n);this._resetContextStyleTimingState(r);const s=Ze(this,Vr(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let i=n.queryCount=0,r=n.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&n.errors.push(function aR(){return new b(3006,U)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,n))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,n);i+=l.queryCount,r+=l.depCount,o.push(l)}else n.errors.push(function lR(){return new b(3007,U)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,n){const i=this.visitStyle(e.styles,n),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Vo(a)){const l=a;Object.keys(l).forEach(c=>{o_(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(xo(s.values()),n.errors.push(function cR(t,e){return new b(3008,U)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const i=Ze(this,Vr(e.animation),n);return{type:1,matchers:YR(e.expr,n.errors),animation:i,queryCount:n.queryCount,depCount:n.depCount,options:Bn(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(i=>Ze(this,i,n)),options:Bn(e.options)}}visitGroup(e,n){const i=n.currentTime;let r=0;const s=e.steps.map(o=>{n.currentTime=i;const a=Ze(this,o,n);return r=Math.max(r,n.currentTime),a});return n.currentTime=r,{type:3,steps:s,options:Bn(e.options)}}visitAnimate(e,n){const i=function iO(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return vu(Ro(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=vu(0,0,"");return s.dynamic=!0,s.strValue=n,s}const r=Ro(n,e);return vu(r.duration,r.delay,r.easing)}(e.timings,n.errors);n.currentAnimateTimings=i;let r,s=e.styles?e.styles:$y({});if(5==s.type)r=this.visitKeyframes(s,n);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=$y(c)}n.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,n);l.isEmptyStep=a,r=l}return n.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,n){const i=this._makeStyleAst(e,n);return this._validateStyleAst(i,n),i}_makeStyleAst(e,n){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Xt?i.push(o):n.errors.push(function uR(t){return new b(3002,U)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Vo(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,n){const i=n.currentAnimateTimings;let r=n.currentTime,s=n.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void n.unsupportedCSSPropertiesFound.add(a);const l=n.collectedStyles[n.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(n.errors.push(function dR(t,e,n,i,r){return new b(3010,U)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),n.options&&function jR(t,e,n){const i=e.params||{},r=o_(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||n.push(function iR(t){return new b(3001,U)}())})}(o[a],n.options,n.errors)})})}visitKeyframes(e,n){const i={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function fR(){return new b(3011,U)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(v=>{const m=this._makeStyleAst(v,n);let w=null!=m.offset?m.offset:function nO(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(Vo(n)&&n.hasOwnProperty("offset")){const i=n;e=parseFloat(i.offset),delete i.offset}});else if(Vo(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(m.styles),T=0;return null!=w&&(s++,T=m.offset=w),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),m});l&&n.errors.push(function hR(){return new b(3012,U)}()),a&&n.errors.push(function pR(){return new b(3200,U)}());const d=e.steps.length;let f=0;s>0&&s<d?n.errors.push(function gR(){return new b(3202,U)}()):0==s&&(f=1/(d-1));const h=d-1,p=n.currentTime,g=n.currentAnimateTimings,y=g.duration;return u.forEach((v,m)=>{const w=f>0?m==h?1:f*m:o[m],T=w*y;n.currentTime=p+g.delay+T,g.duration=T,this._validateStyleAst(v,n),v.offset=w,i.styles.push(v)}),i}visitReference(e,n){return{type:8,animation:Ze(this,Vr(e.animation),n),options:Bn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:Bn(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:Bn(e.options)}}visitQuery(e,n){const i=n.currentQuerySelector,r=e.options||{};n.queryCount++,n.currentQuery=e;const[s,o]=function JR(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(ZR,"")),t=t.replace(/@\*/g,Po).replace(/@\w+/g,n=>Po+"-"+n.substr(1)).replace(/:animating/g,pu),[t,e]}(e.selector);n.currentQuerySelector=i.length?i+" "+s:s,Qe(n.collectedStyles,n.currentQuerySelector,{});const a=Ze(this,Vr(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Bn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function mR(){return new b(3013,U)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ro(e.timings,n.errors,!0);return{type:12,animation:Ze(this,Vr(e.animation),n),timings:i,options:null}}}class tO{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Vo(t){return!Array.isArray(t)&&"object"==typeof t}function Bn(t){return t?(t=xi(t)).params&&(t.params=function eO(t){return t?xi(t):null}(t.params)):t={},t}function vu(t,e,n){return{duration:t,delay:e,easing:n}}function Du(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class jo{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const oO=new RegExp(":enter","g"),lO=new RegExp(":leave","g");function wu(t,e,n,i,r,s={},o={},a,l,c=[]){return(new cO).buildKeyframes(t,e,n,i,r,s,o,a,l,c)}class cO{buildKeyframes(e,n,i,r,s,o,a,l,c,u=[]){c=c||new jo;const d=new Eu(e,n,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Ze(this,i,d);const f=d.timelines.filter(h=>h.containsAnimation());if(Object.keys(a).length){let h;for(let p=f.length-1;p>=0;p--){const g=f[p];if(g.element===n){h=g;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[Du(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const i=n.subInstructions.get(n.element);if(i){const r=n.createSubContext(e.options),s=n.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&n.transformIntoNewTimeline(o)}n.previousNode=e}visitAnimateRef(e,n){const i=n.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),n.transformIntoNewTimeline(i.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,i){let s=n.currentTimeline.currentTime;const o=null!=i.duration?kn(i.duration):null,a=null!=i.delay?kn(i.delay):null;return 0!==o&&e.forEach(l=>{const c=n.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,n){n.updateOptions(e.options,!0),Ze(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const i=n.subContextCount;let r=n;const s=e.options;if(s&&(s.params||s.delay)&&(r=n.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ho);const o=kn(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Ze(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const i=[];let r=n.currentTimeline.currentTime;const s=e.options&&e.options.delay?kn(e.options.delay):0;e.steps.forEach(o=>{const a=n.createSubContext(e.options);s&&a.delayNextStep(s),Ze(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>n.currentTimeline.mergeTimelineCollectedStyles(o)),n.transformIntoNewTimeline(r),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const i=e.strValue;return Ro(n.params?Oo(i,n.params,n.errors):i,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const i=n.currentAnimateTimings=this._visitTiming(e.timings,n),r=n.currentTimeline;i.delay&&(n.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,n):(n.incrementTime(i.duration),this.visitStyle(s,n),r.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const i=n.currentTimeline,r=n.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const i=n.currentAnimateTimings,r=n.currentTimeline.duration,s=i.duration,a=n.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(r+s),n.previousNode=e}visitQuery(e,n){const i=n.currentTimeline.currentTime,r=e.options||{},s=r.delay?kn(r.delay):0;s&&(6===n.previousNode.type||0==i&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ho);let o=i;const a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{n.currentQueryIndex=u;const d=n.createSubContext(e.options,c);s&&d.delayNextStep(s),c===n.element&&(l=d.currentTimeline),Ze(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(o),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const i=n.parentContext,r=n.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(n.currentQueryTotal-1);let l=o*n.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=n.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Ze(this,e.animation,n),n.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Ho={};class Eu{constructor(e,n,i,r,s,o,a,l){this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ho,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $o(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=kn(i.duration)),null!=i.delay&&(r.delay=kn(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!n||!o.hasOwnProperty(a))&&(o[a]=Oo(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const i=e.params={};Object.keys(n).forEach(r=>{i[r]=n[r]})}}return e}createSubContext(e=null,n,i){const r=n||this.element,s=new Eu(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ho,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,i){const r={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new uO(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(oO,"."+this._enterClassName)).replace(lO,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function yR(t){return new b(3014,U)}()),a}}class $o{constructor(e,n,i,r){this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new $o(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||Xt,this._currentKeyframe[n]=Xt}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,i,r){n&&(this._previousKeyframe.easing=n);const s=r&&r.params||{},o=function dO(t,e){const n={};let i;return t.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{n[s]=Xt})):gn(r,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Oo(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Xt),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const i=this._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=gn(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Xt&&n.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?xo(e.values()):[],o=n.size?xo(n.values()):[];if(i){const a=r[0],l=xi(a);a.offset=0,l.offset=1,r=[a,l]}return Du(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class uO extends $o{constructor(e,n,i,r,s,o,a=!1){super(e,n,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&n){const s=[],o=i+n,a=n/o,l=gn(e[0],!1);l.offset=0,s.push(l);const c=gn(e[0],!1);c.offset=d_(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let f=gn(e[d],!1);f.offset=d_((n+f.offset*i)/o),s.push(f)}i=o,n=0,r="",e=s}return Du(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}function d_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Cu{}class fO extends Cu{normalizePropertyName(e,n){return yu(e)}normalizeStyleValue(e,n,i,r){let s="";const o=i.toString().trim();if(hO[n]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function oR(t,e){return new b(3005,U)}())}return o+s}}const hO=(()=>function pO(t){const e={};return t.forEach(n=>e[n]=!0),e}("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".split(",")))();function f_(t,e,n,i,r,s,o,a,l,c,u,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const bu={};class h_{constructor(e,n,i){this._triggerName=e,this.ast=n,this._stateStyles=i}match(e,n,i,r){return function gO(t,e,n,i,r){return t.some(s=>s(e,n,i,r))}(this.ast.matchers,e,n,i,r)}buildStyles(e,n,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(n,i):{};return s?s.buildStyles(n,i):o}build(e,n,i,r,s,o,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||bu,p=this.buildStyles(i,a&&a.params||bu,d),g=l&&l.params||bu,y=this.buildStyles(r,g,d),v=new Set,m=new Map,w=new Map,T="void"===r,V={params:Object.assign(Object.assign({},f),g)},ie=u?[]:wu(e,n,this.ast.animation,s,o,p,y,V,c,d);let oe=0;if(ie.forEach(Je=>{oe=Math.max(Je.duration+Je.delay,oe)}),d.length)return f_(n,this._triggerName,i,r,T,p,y,[],[],m,w,oe,d);ie.forEach(Je=>{const et=Je.element,Fi=Qe(m,et,{});Je.preStyleProps.forEach(At=>Fi[At]=!0);const Jt=Qe(w,et,{});Je.postStyleProps.forEach(At=>Jt[At]=!0),et!==n&&v.add(et)});const Xe=xo(v.values());return f_(n,this._triggerName,i,r,T,p,y,ie,Xe,m,w,oe)}}class mO{constructor(e,n,i){this.styles=e,this.defaultParams=n,this.normalizer=i}buildStyles(e,n){const i={},r=xi(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Oo(l,r,n));const c=this.normalizer.normalizePropertyName(a,n);l=this.normalizer.normalizeStyleValue(a,c,l,n),i[c]=l})}}),i}}class _O{constructor(e,n,i){this.name=e,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(r=>{this.states[r.name]=new mO(r.style,r.options&&r.options.params||{},i)}),p_(this.states,"true","1"),p_(this.states,"false","0"),n.transitions.forEach(r=>{this.transitionFactories.push(new h_(e,r,this.states))}),this.fallbackTransition=function vO(t,e,n){return new h_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,i,r){return this.transitionFactories.find(o=>o.match(e,n,i,r))||null}matchStyles(e,n,i){return this.fallbackTransition.buildStyles(e,n,i)}}function p_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const DO=new jo;class wO{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,n){const i=[],s=_u(this._driver,n,i,[]);if(i.length)throw function bR(t){return new b(3503,U)}();this._animations[e]=s}_buildPlayer(e,n,i){const r=e.element,s=Gy(0,this._normalizer,0,e.keyframes,n,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,n,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=wu(this._driver,n,s,hu,Mo,{},{},i,DO,r),o.forEach(u=>{const d=Qe(a,u.element,{});u.postStyleProps.forEach(f=>d[f]=null)})):(r.push(function SR(){return new b(3300,U)}()),o=[]),r.length)throw function TR(t){return new b(3504,U)}();a.forEach((u,d)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(d,f,Xt)})});const c=pn(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const i=this.players.indexOf(n);i>=0&&this.players.splice(i,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function IR(t){return new b(3301,U)}();return n}listen(e,n,i,r){const s=cu(n,"","","");return au(this._getPlayer(e),i,s,r),()=>{}}command(e,n,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,n,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const g_="ng-animate-queued",Su="ng-animate-disabled",TO=[],m_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ft="__ng_removed";class Tu{constructor(e,n=""){this.namespaceId=n;const i=e&&e.hasOwnProperty("value");if(this.value=function RO(t){return null!=t?t:null}(i?e.value:e),i){const s=xi(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const i=this.options.params;Object.keys(n).forEach(r=>{null==i[r]&&(i[r]=n[r])})}}}const jr="void",Iu=new Tu(jr);class MO{constructor(e,n,i){this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ht(n,this._hostClassName)}listen(e,n,i,r){if(!this._triggers.hasOwnProperty(n))throw function MR(t,e){return new b(3302,U)}();if(null==i||0==i.length)throw function AR(t){return new b(3303,U)}();if(!function OO(t){return"start"==t||"done"==t}(i))throw function PR(t,e){return new b(3400,U)}();const s=Qe(this._elementListeners,e,[]),o={name:n,phase:i,callback:r};s.push(o);const a=Qe(this._engine.statesByElement,e,{});return a.hasOwnProperty(n)||(ht(e,Ao),ht(e,Ao+"-"+n),a[n]=Iu),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[n]||delete a[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function RR(t){return new b(3401,U)}();return n}trigger(e,n,i,r=!0){const s=this._getTrigger(n),o=new Mu(this.id,n,e);let a=this._engine.statesByElement.get(e);a||(ht(e,Ao),ht(e,Ao+"-"+n),this._engine.statesByElement.set(e,a={}));let l=a[n];const c=new Tu(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[n]=c,l||(l=Iu),c.value!==jr&&l.value===c.value){if(!function FO(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(l.params,c.params)){const g=[],y=s.matchStyles(l.value,l.params,g),v=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Ln(e,y),jt(e,v)})}return}const f=Qe(this._engine.playersByElement,e,[]);f.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let h=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!h){if(!r)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(ht(e,g_),o.onStart(()=>{Ni(e,g_)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(e);if(y){let v=y.indexOf(o);v>=0&&y.splice(v,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,i)=>{delete n[e]}),this._elementListeners.forEach((n,i)=>{this._elementListeners.set(i,n.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const i=this._engine.driver.query(e,Po,!0);i.forEach(r=>{if(r[ft])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,n,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,n,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,jr,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,o),i&&pn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){const r=new Set;n.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Iu,u=new Tu(jr),d=new Mu(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,n);else{const s=e[ft];(!s||s===m_)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,n))}}insertNode(e,n){ht(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=cu(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,au(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):n.push(i)}),this._queue=[],n.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(i=>i.element===e)||n,n}}class AO{constructor(e,n,i){this.bodyNode=e,this.driver=n,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,n){const i=new MO(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(i,n):(this.newHostElements.set(n,i),this.collectEnterElement(n)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,n){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(n);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,n)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(n,e),e}register(e,n){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,n)),i}registerTrigger(e,n,i){let r=this._namespaceLookup[e];r&&r.register(n,i)&&this.totalAnimations++}destroy(e,n){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&n.add(a)}}}return n}trigger(e,n,i,r){if(zo(n)){const s=this._fetchNamespace(e);if(s)return s.trigger(n,i,r),!0}return!1}insertNode(e,n,i,r){if(!zo(n))return;const s=n[ft];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(n);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(n,i)}r&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ht(e,Su)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ni(e,Su))}removeNode(e,n,i,r){if(zo(n)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r),i){const o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,i,r,s){this.collectedLeaveElements.push(n),n[ft]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,n,i,r,s){return zo(n)?this._fetchNamespace(e).listen(n,i,r,s):()=>{}}_buildInstruction(e,n,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,n,s)}destroyInnerAnimations(e){let n=this.driver.query(e,Po,!0);n.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,pu,!0),n.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pn(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const i=e[ft];if(i&&i.setForRemoval){if(e[ft]=m_,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(Su))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ht(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{n=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],n.length?pn(n).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function OR(t){return new b(3402,U)}()}_flushAnimations(e,n){const i=new jo,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);const I=this.driver.query(S,".ng-animate-queued",!0);for(let P=0;P<I.length;P++)u.add(I[P])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=v_(f,this.collectedEnterElements),p=new Map;let g=0;h.forEach((S,I)=>{const P=hu+g++;p.set(I,P),S.forEach(G=>ht(G,P))});const y=[],v=new Set,m=new Set;for(let S=0;S<this.collectedLeaveElements.length;S++){const I=this.collectedLeaveElements[S],P=I[ft];P&&P.setForRemoval&&(y.push(I),v.add(I),P.hasAnimation?this.driver.query(I,".ng-star-inserted",!0).forEach(G=>v.add(G)):m.add(I))}const w=new Map,T=v_(f,Array.from(v));T.forEach((S,I)=>{const P=Mo+g++;w.set(I,P),S.forEach(G=>ht(G,P))}),e.push(()=>{h.forEach((S,I)=>{const P=p.get(I);S.forEach(G=>Ni(G,P))}),T.forEach((S,I)=>{const P=w.get(I);S.forEach(G=>Ni(G,P))}),y.forEach(S=>{this.processLeaveNode(S)})});const V=[],ie=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(n).forEach(P=>{const G=P.player,Se=P.element;if(V.push(G),this.collectedEnterElements.length){const Be=Se[ft];if(Be&&Be.setForMove){if(Be.previousTriggersValues&&Be.previousTriggersValues.has(P.triggerName)){const Vn=Be.previousTriggersValues.get(P.triggerName),yn=this.statesByElement.get(P.element);yn&&yn[P.triggerName]&&(yn[P.triggerName].value=Vn)}return void G.destroy()}}const Ht=!d||!this.driver.containsElement(d,Se),tt=w.get(Se),mn=p.get(Se),ae=this._buildInstruction(P,i,mn,tt,Ht);if(ae.errors&&ae.errors.length)return void ie.push(ae);if(Ht)return G.onStart(()=>Ln(Se,ae.fromStyles)),G.onDestroy(()=>jt(Se,ae.toStyles)),void r.push(G);if(P.isFallbackTransition)return G.onStart(()=>Ln(Se,ae.fromStyles)),G.onDestroy(()=>jt(Se,ae.toStyles)),void r.push(G);const A_=[];ae.timelines.forEach(Be=>{Be.stretchStartingKeyframe=!0,this.disabledNodes.has(Be.element)||A_.push(Be)}),ae.timelines=A_,i.append(Se,ae.timelines),o.push({instruction:ae,player:G,element:Se}),ae.queriedElements.forEach(Be=>Qe(a,Be,[]).push(G)),ae.preStyleProps.forEach((Be,Vn)=>{const yn=Object.keys(Be);if(yn.length){let jn=l.get(Vn);jn||l.set(Vn,jn=new Set),yn.forEach(Pu=>jn.add(Pu))}}),ae.postStyleProps.forEach((Be,Vn)=>{const yn=Object.keys(Be);let jn=c.get(Vn);jn||c.set(Vn,jn=new Set),yn.forEach(Pu=>jn.add(Pu))})});if(ie.length){const S=[];ie.forEach(I=>{S.push(function xR(t,e){return new b(3505,U)}())}),V.forEach(I=>I.destroy()),this.reportError(S)}const oe=new Map,Xe=new Map;o.forEach(S=>{const I=S.element;i.has(I)&&(Xe.set(I,I),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,oe))}),r.forEach(S=>{const I=S.element;this._getPreviousPlayers(I,!1,S.namespaceId,S.triggerName,null).forEach(G=>{Qe(oe,I,[]).push(G),G.destroy()})});const Je=y.filter(S=>w_(S,l,c)),et=new Map;__(et,this.driver,m,c,Xt).forEach(S=>{w_(S,l,c)&&Je.push(S)});const Jt=new Map;h.forEach((S,I)=>{__(Jt,this.driver,new Set(S),l,"!")}),Je.forEach(S=>{const I=et.get(S),P=Jt.get(S);et.set(S,Object.assign(Object.assign({},I),P))});const At=[],ki=[],Li={};o.forEach(S=>{const{element:I,player:P,instruction:G}=S;if(i.has(I)){if(u.has(I))return P.onDestroy(()=>jt(I,G.toStyles)),P.disabled=!0,P.overrideTotalTime(G.totalTime),void r.push(P);let Se=Li;if(Xe.size>1){let tt=I;const mn=[];for(;tt=tt.parentNode;){const ae=Xe.get(tt);if(ae){Se=ae;break}mn.push(tt)}mn.forEach(ae=>Xe.set(ae,Se))}const Ht=this._buildAnimation(P.namespaceId,G,oe,s,Jt,et);if(P.setRealPlayer(Ht),Se===Li)At.push(P);else{const tt=this.playersByElement.get(Se);tt&&tt.length&&(P.parentPlayer=pn(tt)),r.push(P)}}else Ln(I,G.fromStyles),P.onDestroy(()=>jt(I,G.toStyles)),ki.push(P),u.has(I)&&r.push(P)}),ki.forEach(S=>{const I=s.get(S.element);if(I&&I.length){const P=pn(I);S.setRealPlayer(P)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S<y.length;S++){const I=y[S],P=I[ft];if(Ni(I,Mo),P&&P.hasAnimation)continue;let G=[];if(a.size){let Ht=a.get(I);Ht&&Ht.length&&G.push(...Ht);let tt=this.driver.query(I,pu,!0);for(let mn=0;mn<tt.length;mn++){let ae=a.get(tt[mn]);ae&&ae.length&&G.push(...ae)}}const Se=G.filter(Ht=>!Ht.destroyed);Se.length?xO(this,I,Se):this.processLeaveNode(I)}return y.length=0,At.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();const I=this.players.indexOf(S);this.players.splice(I,1)}),S.play()}),At}elementContainsData(e,n){let i=!1;const r=n[ft];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(n)&&(i=!0),this.playersByQueriedElement.has(n)&&(i=!0),this.statesByElement.has(n)&&(i=!0),this._fetchNamespace(e).elementContainsData(n)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,i,r,s){let o=[];if(n){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==jr;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,n,i){const s=n.element,o=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const c=l.element,u=c!==s,d=Qe(i,c,[]);this._getPreviousPlayers(c,u,o,a,n.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Ln(s,n.fromStyles)}_buildAnimation(e,n,i,r,s,o){const a=n.triggerName,l=n.element,c=[],u=new Set,d=new Set,f=n.timelines.map(p=>{const g=p.element;u.add(g);const y=g[ft];if(y&&y.removedBeforeQueried)return new Br(p.duration,p.delay);const v=g!==l,m=function NO(t){const e=[];return D_(t,e),e}((i.get(g)||TO).map(oe=>oe.getRealPlayer())).filter(oe=>!!oe.element&&oe.element===g),w=s.get(g),T=o.get(g),V=Gy(0,this._normalizer,0,p.keyframes,w,T),ie=this._buildPlayer(p,V,m);if(p.subTimeline&&r&&d.add(g),v){const oe=new Mu(e,a,g);oe.setRealPlayer(ie),c.push(oe)}return ie});c.forEach(p=>{Qe(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function PO(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const r=i.indexOf(n);i.splice(r,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const r=i.indexOf(n);i.splice(r,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>ht(p,n_));const h=pn(f);return h.onDestroy(()=>{u.forEach(p=>Ni(p,n_)),jt(l,n.toStyles)}),d.forEach(p=>{Qe(r,p,[]).push(h)}),h}_buildPlayer(e,n,i){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,i):new Br(e.duration,e.delay)}}class Mu{constructor(e,n,i){this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Br,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(i=>au(e,n,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Qe(this._queuedCallbacks,e,[]).push(n)}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 n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function zo(t){return t&&1===t.nodeType}function y_(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function __(t,e,n,i,r){const s=[];n.forEach(l=>s.push(y_(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const f=u[d]=e.computeStyle(c,d,r);(!f||0==f.length)&&(c[ft]=IO,o.push(c))}),t.set(c,u)});let a=0;return n.forEach(l=>y_(l,s[a++])),o}function v_(t,e){const n=new Map;if(t.forEach(a=>n.set(a,[])),0==e.length)return n;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=n.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&n.get(l).push(a)}),n}function ht(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Ni(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function xO(t,e,n){pn(n).onDone(()=>t.processLeaveNode(e))}function D_(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof Uy?D_(i.players,e):e.push(i)}}function w_(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(s=>r.add(s)):e.set(t,i),n.delete(t),!0}class Uo{constructor(e,n,i){this.bodyNode=e,this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new AO(e,n,i),this._timelineEngine=new wO(e,n,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,n,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=_u(this._driver,s,l,[]);if(l.length)throw function ER(t,e){return new b(3404,U)}();a=function yO(t,e,n){return new _O(t,e,n)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(n,r,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,i,r){this._transitionEngine.insertNode(e,n,i,r)}onRemove(e,n,i,r){this._transitionEngine.removeNode(e,n,r||!1,i)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,i,r){if("@"==i.charAt(0)){const[s,o]=qy(i);this._timelineEngine.command(s,n,o,r)}else this._transitionEngine.trigger(e,n,i,r)}listen(e,n,i,r,s){if("@"==i.charAt(0)){const[o,a]=qy(i);return this._timelineEngine.listen(o,n,a,s)}return this._transitionEngine.listen(e,n,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let LO=(()=>{class t{constructor(n,i,r){this._element=n,this._startStyles=i,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(n);s||t.initialStylesByElement.set(n,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&jt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jt(this._element,this._initialStyles),this._endStyles&&(jt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ln(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ln(this._element,this._endStyles),this._endStyles=null),jt(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Au(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];BO(r)&&(e=e||{},e[r]=t[r])}return e}function BO(t){return"display"===t||"position"===t}class E_{constructor(e,n,i,r){this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.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._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,i){return e.animate(n,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(i=>{"offset"!=i&&(e[i]=this._finished?n[i]:a_(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}}class VO{validateStyleProperty(e){return Zy(e)}matchesElement(e,n){return!1}containsElement(e,n){return Xy(e,n)}getParentElement(e){return du(e)}query(e,n,i){return Jy(e,n,i)}computeStyle(e,n,i){return window.getComputedStyle(e)[n]}animate(e,n,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(f=>f instanceof E_);(function zR(t,e){return 0===t||0===e})(i,r)&&u.forEach(f=>{let h=f.currentSnapshot;Object.keys(h).forEach(p=>c[p]=h[p])}),n=function UR(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=n[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=a_(t,l)})}}return e}(e,n=n.map(f=>gn(f,!1)),c);const d=function kO(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Au(e[0]),e.length>1&&(i=Au(e[e.length-1]))):e&&(n=Au(e)),n||i?new LO(t,n,i):null}(e,n);return new E_(e,n,l,d)}}let jO=(()=>{class t extends jy{constructor(n,i){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(i.body,{id:"0",encapsulation:mt.None,styles:[],data:{animation:[]}})}build(n){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(n)?Hy(n):n;return C_(this._renderer,null,i,"register",[r]),new HO(i,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(D(Cr),D(ne))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class HO extends class eR{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new $O(this._id,e,n||{},this._renderer)}}class $O{constructor(e,n,i,r){this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return C_(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function C_(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const b_="@.disabled";let zO=(()=>{class t{constructor(n,i,r){this.delegate=n,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(n,i){const s=this.delegate.createRenderer(n,i);if(!(n&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new S_("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,n,u.name,u)};return i.data.animation.forEach(l),new UO(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,i,r){n>=0&&n<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return t.\u0275fac=function(n){return new(n||t)(D(Cr),D(Uo),D(fe))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class S_{constructor(e,n,i){this.namespaceId=e,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>n.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,i,r=!0){this.delegate.insertBefore(e,n,i),this.engine.onInsert(this.namespaceId,n,e,r)}removeChild(e,n,i){this.engine.onRemove(this.namespaceId,n,this.delegate,i)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,i,r){this.delegate.setAttribute(e,n,i,r)}removeAttribute(e,n,i){this.delegate.removeAttribute(e,n,i)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,i,r){this.delegate.setStyle(e,n,i,r)}removeStyle(e,n,i){this.delegate.removeStyle(e,n,i)}setProperty(e,n,i){"@"==n.charAt(0)&&n==b_?this.disableAnimations(e,!!i):this.delegate.setProperty(e,n,i)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,i){return this.delegate.listen(e,n,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class UO extends S_{constructor(e,n,i,r){super(n,i,r),this.factory=e,this.namespaceId=n}setProperty(e,n,i){"@"==n.charAt(0)?"."==n.charAt(1)&&n==b_?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,n.substr(1),i):this.delegate.setProperty(e,n,i)}listen(e,n,i){if("@"==n.charAt(0)){const r=function WO(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let s=n.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function GO(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,n,i)}}let qO=(()=>{class t extends Uo{constructor(n,i,r){super(n.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(D(ne),D(fu),D(Cu))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const T_=new H("AnimationModuleType"),I_=[{provide:jy,useClass:jO},{provide:Cu,useFactory:function YO(){return new fO}},{provide:Uo,useClass:qO},{provide:Cr,useFactory:function KO(t,e,n){return new zO(t,e,n)},deps:[wo,Uo,fe]}],M_=[{provide:fu,useFactory:()=>new VO},{provide:T_,useValue:"BrowserAnimations"},...I_],QO=[{provide:fu,useClass:e_},{provide:T_,useValue:"NoopAnimations"},...I_];let ZO=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?QO:M_}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Un({type:t}),t.\u0275inj=_n({providers:M_,imports:[hy]}),t})(),XO=(()=>{class t{constructor(n){this._document=n}ngOnDestroy(){const n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const n="cdk-overlay-container",i=this._document.querySelectorAll(`.${n}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(n),this._document.body.appendChild(r),this._containerElement=r}}}return t.\u0275fac=function(n){return new(n||t)(D(ne))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function JO(t,e){if(1&t&&(In(0,"div",6),$s(1),un()),2&t){const n=e.$implicit;Gt(1),_r(" ",n," ")}}function ex(t,e){if(1&t){const n=function op(){return _()}();gr(0),In(1,"div",7),zl("click",function(){const s=function pd(t){return x.lFrame.contextLView=t,t[8]}(n).$implicit;return js(3).onCellClick(s)}),$s(2),un(),mr()}if(2&t){const n=e.$implicit;Gt(1),Gl("clickable",n.inMonth)("selected",n.selected),Gt(1),_r(" ",n.label," ")}}function tx(t,e){if(1&t&&(gr(0),pr(1,ex,3,5,"ng-container",5),mr()),2&t){const n=e.$implicit,i=js(2);Gt(1),bi("ngForOf",n)("ngForTrackBy",i.trackByCell)}}function nx(t,e){if(1&t&&(In(0,"div",2)(1,"div",3),$s(2),un(),pr(3,JO,2,1,"div",4),pr(4,tx,2,2,"ng-container",5),un()),2&t){const n=e.$implicit,i=js();Gt(2),Yl(n.name),Gt(1),bi("ngForOf",i.daysOfWeek),Gt(1),bi("ngForOf",n.weeks)("ngForTrackBy",i.trackByWeek)}}let ix=(()=>{class t{constructor(){this.year=(new Date).getFullYear(),this.selectedDates=[],this.setSelectedDates=({selectedDates:n})=>{this.selectedDates=n,this.generateCalendar()},this.daysOfWeek=["Mo","Tu","We","Th","Fr","Sa","Su"],this.months=[]}ngOnInit(){this.generateCalendar()}ngOnChanges(n){n.year&&this.generateCalendar()}generateCalendar(){this.months=[];for(let n=0;n<12;n++){const i=new Date(this.year,n,1),r=i.toLocaleString("default",{month:"long"}),s=new Date(this.year,n+1,0).getDate(),o=(i.getDay()+6)%7,a=[];let l=[],c=1;for(let u=0;u<42;u++){const d=u>=o&&c<=s;let f="",h="",p=!1;if(d){const g=String(c).padStart(2,"0"),y=String(n+1).padStart(2,"0");f=`${this.year}-${y}-${g}`,h=`${c}`,p=this.selectedDates.includes(f),c++}l.push({date:f,label:h,inMonth:d,selected:p}),7===l.length&&(a.push(l),l=[])}this.months.push({name:r,weeks:a})}}onCellClick(n){var i;if(!n.inMonth)return;const r=this.selectedDates.indexOf(n.date);r>-1?(this.selectedDates.splice(r,1),n.selected=!1):(this.selectedDates.push(n.date),n.selected=!0),null===(i=this.onDayClick)||void 0===i||i.call(this,{date:n.date})}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=sa({type:t,selectors:[["drayman-year-calendar-internal"]],inputs:{year:"year",selectedDates:"selectedDates",onDayClick:"onDayClick",setSelectedDates:"setSelectedDates"},features:[zi],decls:2,vars:1,consts:[[1,"calendar"],["class","month",4,"ngFor","ngForOf"],[1,"month"],[1,"cell","header"],["class","cell weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"cell","weekday"],[1,"cell",3,"click"]],template:function(n,i){1&n&&(In(0,"div",0),pr(1,nx,5,4,"div",1),un()),2&n&&(Gt(1),bi("ngForOf",i.months))},directives:[Gm],styles:[".calendar[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,auto);gap:1rem}.month[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,40px);grid-template-rows:auto auto repeat(6,20px);gap:1px}.cell[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:20px;box-sizing:border-box}.clickable[_ngcontent-%COMP%]{cursor:pointer}.header[_ngcontent-%COMP%]{grid-column:span 7;font-weight:700;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.weekday[_ngcontent-%COMP%]{font-weight:700;background-color:#f0f0f0;border-bottom:1px solid #000}.selected[_ngcontent-%COMP%]{background-color:red}"]}),t})(),rx=(()=>{class t{constructor(n){this.injector=n}ngDoBootstrap(){const n=function JP(t,e){const n=function GP(t,e){return e.get(An).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new QP(t,e.injector),r=function WP(t){const e={};return t.forEach(({propName:n,templateName:i})=>{e[function jP(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=n}),e}(n);class s extends XP{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);n.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),n.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(ix,{injector:this.injector});customElements.define("drayman-year-calendar",n)}}return t.\u0275fac=function(n){return new(n||t)(D(Ke))},t.\u0275mod=Un({type:t}),t.\u0275inj=_n({providers:[{provide:iu,useClass:XO}],imports:[[hy,ZO]]}),t})();(function vT(){Dm=!1})(),aA().bootstrapModule(rx).catch(t=>console.error(t))})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var ct={583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==ce.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 t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ie}static __load_patch(t,r,k=!1){if(ce.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),ce[t]=r(e,M,Y),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch(K){if(this._zoneDelegate.handleError(this,K))throw K}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===te||t.type===w))return;const C=t.state!=p;C&&t._transitionTo(p,j),t.runCount++;const K=ie;ie=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==te||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,p):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,p,x))),U=U.parent,ie=K}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(z,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,z,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(j,z),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,K){return this.scheduleTask(new m(w,t,r,k,C,K))}scheduleEventTask(t,r,k,C,K){return this.scheduleTask(new m(te,t,r,k,C,K))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||Q).name+"; Execution: "+this.name+")");t._transitionTo(G,j,p);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,E,t,r)=>M.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,K){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=K,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===te&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ne++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ne&&_(),ne--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,z)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?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 L=a("setTimeout"),Z=a("Promise"),N=a("then");let ee,B=[],H=!1;function X(M){if(ee||e[Z]&&(ee=e[Z].resolve(0)),ee){let E=ee[N];E||(E=ee.then),E.call(ee,M)}else e[L](M,0)}function R(M){0===ne&&0===B.length&&X(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;E<M.length;E++){const t=M[E];try{t.zone.runTask(t,null,null)}catch(r){Y.onUnhandledError(r)}}}Y.microtaskDrainDone(),H=!1}}const Q={name:"NO ZONE"},x="notScheduled",z="scheduling",j="scheduled",p="running",G="canceling",h="unknown",I="microTask",w="macroTask",te="eventTask",ce={},Y={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:X};let U={parent:null,zone:new d(null,null)},ie=null,ne=0;function W(){}o("Zone","Zone"),e.Zone=d}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const q=Object.getOwnPropertyDescriptor,J=Object.defineProperty,re=Object.getPrototypeOf,at=Object.create,lt=Array.prototype.slice,De="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(De),Ne=Zone.__symbol__(Se),ue="true",fe="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe="undefined"!=typeof window,ye=Pe?window:void 0,$=Pe&&ye||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const Be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&void 0!==$.process&&"[object process]"==={}.toString.call($.process),je=!we&&!Be&&!(!Pe||!ye.HTMLElement),Ue=void 0!==$.process&&"[object process]"==={}.toString.call($.process)&&!Be&&!(!Pe||!ye.HTMLElement),Re={},We=function(e){if(!(e=e||$.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||$,o=i[n];let c;if(je&&i===ye&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=q(e,n);if(!o&&i&&q(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===$&&(m=$),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),y&&y.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},J(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;o<n.length;o++)qe(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(e,o[c],i)}}const se=A("originalInstance");function ve(e){const n=$[e];if(!n)return;$[A(e)]=n,$[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[se]=new n;break;case 1:this[se]=new n(c[0]);break;case 2:this[se]=new n(c[0],c[1]);break;case 3:this[se]=new n(c[0],c[1],c[2]);break;case 4:this[se]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},de($[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?$[e].prototype[c]=function(){return this[se][c].apply(this[se],arguments)}:J($[e].prototype,c,{set:function(a){"function"==typeof a?(this[se][c]=Ie(a,e+"."+c),de(this[se][c],a)):this[se][c]=a},get:function(){return this[se][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&($[e][o]=n[o])}function he(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=re(o);!o&&e[n]&&(o=e);const c=A(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&q(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},de(o[n],a)}return a}function ht(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=he(e,n,a=>function(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function de(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function _t(){if(ze)return Ae;ze=!0;try{const e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch(e){}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch(u){}}function B(l){return l&&l.then}function H(l){return l}function ee(l){return t.reject(l)}const X=y("state"),R=y("value"),_=y("finally"),Q=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,p=!0,G=!1;function I(l,u){return s=>{try{Y(l,u,s)}catch(f){Y(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},ce=y("currentTaskTrace");function Y(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[X]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{Y(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(X)&&s.hasOwnProperty(R)&&s[X]!==j)ie(s),Y(l,s[X],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{Y(l,!1,b)})()}else{l[X]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===p&&(l[X]=l[x],l[R]=l[Q]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,ce,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T<b.length;)ne(l,b[T++],b[T++],b[T++],b[T++]);if(0==b.length&&u==G){l[X]=0;let T=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(O){T=O}P&&(T.throwOriginal=!0),T.rejection=s,T.promise=l,T.zone=n.current,T.task=n.currentTask,d.push(T),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function ie(l){if(0===l[X]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch(u){}l[X]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ne(l,u,s,f,g){ie(l);const b=l[X],T=b?"function"==typeof f?f:H:"function"==typeof g?g:ee;u.scheduleMicroTask("Promise.then",()=>{try{const O=l[R],D=!!s&&_===s[_];D&&(s[Q]=O,s[x]=b);const S=u.run(T,void 0,D&&T!==ee&&T!==H?[]:[O]);Y(s,!0,S)}catch(O){Y(s,!1,O)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return Y(new this(null),p,u)}static reject(u){return Y(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch(T){return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,O)=>{for(let D=0;D<s.length;D++)s[D].then(S=>{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,O(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((O,D)=>{s=O,f=D});function b(O){s(O)}function T(O){f(O)}for(let O of u)B(O)||(O=this.resolve(O)),O.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,O=0;const D=[];for(let S of u){B(S)||(S=this.resolve(S));const V=O;try{S.then(F=>{D[V]=s?s.thenCallback(F):F,T--,0===T&&f(D)},F=>{s?(D[V]=s.errorCallback(F),T--,0===T&&f(D)):g(F)})}catch(F){g(F)}T++,O++}return T-=2,0===T&&f(D),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[X]=j,s[R]=[];try{const f=w();u&&u(f(I(s,p)),f(I(s,G)))}catch(f){Y(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[X]==j?this[R].push(T,b,u,s):ne(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[X]==j?this[R].push(b,g,u,u):ne(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new t((O,D)=>{f.call(this,O,D)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),he(e,"fetch",l=>function K(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let pe=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){pe=!1}const Et={useG:!0},oe={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+fe,o=(n?n(e):e)+ue,c=ke+i,a=ke+o;oe[e]={},oe[e][fe]=c,oe[e][ue]=a}function Tt(e,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,Q){if(R.isRemoved)return;const x=R.callback;let z;"object"==typeof x&&x.handleEvent&&(R.callback=p=>x.handleEvent(p),R.originalDelegate=x);try{R.invoke(R,_,[Q])}catch(p){z=p}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,Q.type,R.originalDelegate?R.originalDelegate:R.callback,j),z};function N(R,_,Q){if(!(_=_||e.event))return;const x=R||_.target||e,z=x[oe[_.type][Q?ue:fe]];if(z){const j=[];if(1===z.length){const p=Z(z[0],x,_);p&&j.push(p)}else{const p=z.slice();for(let G=0;G<p.length&&(!_||!0!==_[Ke]);G++){const h=Z(p[G],x,_);h&&j.push(h)}}if(1===j.length)throw j[0];for(let p=0;p<j.length;p++){const G=j[p];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function ee(R,_){if(!R)return!1;let Q=!0;_&&void 0!==_.useG&&(Q=_.useG);const x=_&&_.vh;let z=!0;_&&void 0!==_.chkDup&&(z=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let p=R;for(;p&&!p.hasOwnProperty(c);)p=re(p);if(!p&&R[c]&&(p=R),!p||p[P])return!1;const G=_&&_.eventNameToString,h={},I=p[P]=p[c],w=p[A(a)]=p[a],te=p[A(y)]=p[y],ce=p[A(d)]=p[d];let Y;function U(s,f){return!pe&&"object"==typeof s&&s?!!s.capture:pe&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(Y=p[A(_.prepend)]=p[_.prepend]);const t=Q?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=Q?function(s){if(!s.isRemoved){const f=oe[s.eventName];let g;f&&(g=f[s.capture?ue:fe]);const b=g&&s.target[g];if(b)for(let T=0;T<b.length;T++)if(b[T]===s){b.splice(T,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},K=Zone[A("UNPATCHED_EVENTS")],l=e[A("PASSIVE_EVENTS")],u=function(s,f,g,b,T=!1,O=!1){return function(){const D=this||e;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,D,arguments))return;const _e=pe&&!!l&&-1!==l.indexOf(S),ae=U(arguments[2],_e);if(K)for(let Te=0;Te<K.length;Te++)if(S===K[Te])return _e?s.call(D,S,V,ae):s.apply(this,arguments);const xe=!!ae&&("boolean"==typeof ae||ae.capture),nt=!(!ae||"object"!=typeof ae)&&ae.once,bt=Zone.current;let Ge=oe[S];Ge||(Je(S,G),Ge=oe[S]);const rt=Ge[xe?ue:fe];let Oe,ge=D[rt],ot=!1;if(ge){if(ot=!0,z)for(let Te=0;Te<ge.length;Te++)if(C(ge[Te],V))return}else ge=D[rt]=[];const st=D.constructor.name,it=Ye[st];it&&(Oe=it[S]),Oe||(Oe=st+f+(G?G(S):S)),h.options=ae,nt&&(h.options.once=!1),h.target=D,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=Q?Et:void 0;be&&(be.taskData=h);const Ee=bt.scheduleEventTask(Oe,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(ae.once=!0),!pe&&"boolean"==typeof Ee.options||(Ee.options=ae),Ee.target=D,Ee.capture=xe,Ee.eventName=S,F&&(Ee.originalDelegate=V),O?ge.unshift(Ee):ge.push(Ee),T?D:void 0}};return p[c]=u(I,v,t,r,j),Y&&(p.prependListener=u(Y,".prependListener:",function(s){return Y.call(h.target,h.eventName,s.invoke,h.options)},r,j,!0)),p[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),T=arguments[1];if(!T)return w.apply(this,arguments);if(x&&!x(w,T,s,arguments))return;const O=oe[f];let D;O&&(D=O[b?ue:fe]);const S=D&&s[D];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,T))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[D]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),j?s:void 0}return w.apply(this,arguments)},p[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let T=0;T<b.length;T++){const O=b[T];g.push(O.originalDelegate?O.originalDelegate:O.callback)}return g},p[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=oe[f];if(g){const O=s[g[fe]],D=s[g[ue]];if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const O=$e.exec(g[b]);let D=O&&O[1];D&&"removeListener"!==D&&this[d].call(this,D)}this[d].call(this,"removeListener")}if(j)return this},de(p[c],I),de(p[a],w),ce&&de(p[d],ce),te&&de(p[y],te),!0}let X=[];for(let R=0;R<i.length;R++)X[R]=ee(i[R],o);return X}function Qe(e,n){if(!n){const a=[];for(let y in e){const d=$e.exec(y);let P=d&&d[1];if(P&&(!n||P===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=oe[n];i||(Je(n),i=oe[n]);const o=e[i[fe]],c=e[i[ue]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function yt(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function pt(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}catch(N){}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=he,i.bindArguments=Le,i.patchMacroTask=ht;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=yt,i.patchEventTarget=Tt,i.isIEOrEdge=_t,i.ObjectDefineProperty=J,i.ObjectGetOwnPropertyDescriptor=q,i.ObjectCreate=at,i.ArraySlice=lt,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=de,i._redefineProperty=Object.defineProperty,i.patchCallbacks=pt,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:oe,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function me(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function P(v){return a.call(e,v.data.handleId)}c=he(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=he(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";me(e,n,i,"Timeout"),me(e,n,i,"Interval"),me(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{me(e,"request","cancel","AnimationFrame"),me(e,"mozRequest","mozCancel","AnimationFrame"),me(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)he(e,i[o],(a,y,d)=>function(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function vt(e,n){n.patchEventPrototype(e,n)})(e,i),function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function mt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function dt(){try{const e=ye.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),re(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function gt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",ee="scheduled";function X(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const te=w[c];N||(N=w[Ze],B=w[Ne]),te&&B.call(w,H,te);const ce=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===ee){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const ie=h.invoke;h.invoke=function(){const ne=w[n.__symbol__("loadfalse")];for(let W=0;W<ne.length;W++)ne[W]===h&&ne.splice(W,1);!I.aborted&&h.state===ee&&ie.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,ce),w[i]||(w[i]=h),p.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const Q=he(L,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],Q.apply(h,I)}),z=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),p=he(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return p.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},te=Me("XMLHttpRequest.send",R,w,X,_);h&&!0===h[d]&&!w.aborted&&te.state===ee&&te.invoke()}}),G=he(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[z])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function ft(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Fe(q(e,c)))continue;e[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return de(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},Ve={};function le(q){var J=Ve[q];if(void 0!==J)return J.exports;var re=Ve[q]={exports:{}};return ct[q](re,re.exports,le),re.exports}le.n=q=>{var J=q&&q.__esModule?()=>q.default:()=>q;return le.d(J,{a:J}),J},le.d=(q,J)=>{for(var re in J)le.o(J,re)&&!le.o(q,re)&&Object.defineProperty(q,re,{enumerable:!0,get:J[re]})},le.o=(q,J)=>Object.prototype.hasOwnProperty.call(q,J),le(583)})();
File without changes