-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.5b56ba80a259b93b.js
1 lines (1 loc) · 950 KB
/
main.5b56ba80a259b93b.js
1
"use strict";(self.webpackChunkMDS=self.webpackChunkMDS||[]).push([[179],{63:()=>{function Ge(n){return"function"==typeof n}function Ca(n){const e=n(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Nu=Ca(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function wa(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class Yn{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(Ge(r))try{r()}catch(o){t=o instanceof Nu?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Y0(o)}catch(s){t=t??[],s instanceof Nu?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Nu(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Y0(t);else{if(t instanceof Yn){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&wa(e,t)}remove(t){const{_finalizers:e}=this;e&&wa(e,t),t instanceof Yn&&t._removeParent(this)}}Yn.EMPTY=(()=>{const n=new Yn;return n.closed=!0,n})();const W0=Yn.EMPTY;function G0(n){return n instanceof Yn||n&&"closed"in n&&Ge(n.remove)&&Ge(n.add)&&Ge(n.unsubscribe)}function Y0(n){Ge(n)?n():n.unsubscribe()}const lo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Lu={setTimeout(n,t,...e){const{delegate:r}=Lu;return r?.setTimeout?r.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Lu;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Q0(n){Lu.setTimeout(()=>{const{onUnhandledError:t}=lo;if(!t)throw n;t(n)})}function K0(){}const jF=Op("C",void 0,void 0);function Op(n,t,e){return{kind:n,value:t,error:e}}let uo=null;function Bu(n){if(lo.useDeprecatedSynchronousErrorHandling){const t=!uo;if(t&&(uo={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:r}=uo;if(uo=null,e)throw r}}else n()}class Ep extends Yn{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,G0(t)&&t.add(this)):this.destination=YF}static create(t,e,r){return new Pa(t,e,r)}next(t){this.isStopped?Ip(function $F(n){return Op("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ip(function HF(n){return Op("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ip(jF,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const qF=Function.prototype.bind;function Ap(n,t){return qF.call(n,t)}class WF{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(r){Vu(r)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(r){Vu(r)}else Vu(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Vu(e)}}}class Pa extends Ep{constructor(t,e,r){let i;if(super(),Ge(t)||!t)i={next:t??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&lo.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ap(t.next,o),error:t.error&&Ap(t.error,o),complete:t.complete&&Ap(t.complete,o)}):i=t}this.destination=new WF(i)}}function Vu(n){lo.useDeprecatedSynchronousErrorHandling?function zF(n){lo.useDeprecatedSynchronousErrorHandling&&uo&&(uo.errorThrown=!0,uo.error=n)}(n):Q0(n)}function Ip(n,t){const{onStoppedNotification:e}=lo;e&&Lu.setTimeout(()=>e(n,t))}const YF={closed:!0,next:K0,error:function GF(n){throw n},complete:K0},kp="function"==typeof Symbol&&Symbol.observable||"@@observable";function Mi(n){return n}function X0(n){return 0===n.length?Mi:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}let vt=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const o=function XF(n){return n&&n instanceof Ep||function KF(n){return n&&Ge(n.next)&&Ge(n.error)&&Ge(n.complete)}(n)&&G0(n)}(e)?e:new Pa(e,r,i);return Bu(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=Z0(r))((i,o)=>{const s=new Pa({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[kp](){return this}pipe(...e){return X0(e)(this)}toPromise(e){return new(e=Z0(e))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=t=>new n(t),n})();function Z0(n){var t;return null!==(t=n??lo.Promise)&&void 0!==t?t:Promise}const ZF=Ca(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let sn=(()=>{class n extends vt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new J0(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new ZF}next(e){Bu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){Bu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Bu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:i,observers:o}=this;return r||i?W0:(this.currentObservers=null,o.push(e),new Yn(()=>{this.currentObservers=null,wa(o,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){const e=new vt;return e.source=this,e}}return n.create=(t,e)=>new J0(t,e),n})();class J0 extends sn{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)}error(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:W0}}function eC(n){return Ge(n?.lift)}function Bt(n){return t=>{if(eC(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ot(n,t,e,r,i){return new JF(n,t,e,r,i)}class JF extends Ep{constructor(t,e,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function de(n,t){return Bt((e,r)=>{let i=0;e.subscribe(Ot(r,o=>{r.next(n.call(t,o,i++))}))})}function co(n){return this instanceof co?(this.v=n,this):new co(n)}function nR(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=e.apply(n,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(m){return new Promise(function(_,v){o.push([p,m,_,v])>1||a(p,m)})})}function a(p,m){try{!function l(p){p.value instanceof co?Promise.resolve(p.value.v).then(u,c):d(o[0][2],p)}(r[p](m))}catch(_){d(o[0][3],_)}}function u(p){a("next",p)}function c(p){a("throw",p)}function d(p,m){p(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function rR(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function rC(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}const iC=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function oC(n){return Ge(n?.then)}function sC(n){return Ge(n[kp])}function aC(n){return Symbol.asyncIterator&&Ge(n?.[Symbol.asyncIterator])}function lC(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const uC=function oR(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function cC(n){return Ge(n?.[uC])}function dC(n){return nR(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:r,done:i}=yield co(e.read());if(i)return yield co(void 0);yield yield co(r)}}finally{e.releaseLock()}})}function fC(n){return Ge(n?.getReader)}function Qn(n){if(n instanceof vt)return n;if(null!=n){if(sC(n))return function sR(n){return new vt(t=>{const e=n[kp]();if(Ge(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(iC(n))return function aR(n){return new vt(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(oC(n))return function lR(n){return new vt(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Q0)})}(n);if(aC(n))return hC(n);if(cC(n))return function uR(n){return new vt(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(fC(n))return function cR(n){return hC(dC(n))}(n)}throw lC(n)}function hC(n){return new vt(t=>{(function dR(n,t){var e,r,i,o;return function eR(n,t,e,r){return new(e||(e=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):function i(o){return o instanceof e?o:new e(function(s){s(o)})}(c.value).then(a,l)}u((r=r.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=rR(n);!(r=yield e.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Gr(n,t,e,r=0,i=!1){const o=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(o),!i)return o}function Vt(n,t,e=1/0){return Ge(t)?Vt((r,i)=>de((o,s)=>t(r,o,i,s))(Qn(n(r,i))),e):("number"==typeof t&&(e=t),Bt((r,i)=>function fR(n,t,e,r,i,o,s,a){const l=[];let u=0,c=0,d=!1;const p=()=>{d&&!l.length&&!u&&t.complete()},m=v=>u<r?_(v):l.push(v),_=v=>{o&&t.next(v),u++;let b=!1;Qn(e(v,c++)).subscribe(Ot(t,w=>{i?.(w),o?m(w):t.next(w)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;l.length&&u<r;){const w=l.shift();s?Gr(t,s,()=>_(w)):_(w)}p()}catch(w){t.error(w)}}))};return n.subscribe(Ot(t,m,()=>{d=!0,p()})),()=>{a?.()}}(r,i,n,e)))}function Xo(n=1/0){return Vt(Mi,n)}const Yr=new vt(n=>n.complete());function Rp(n){return n[n.length-1]}function pC(n){return Ge(Rp(n))?n.pop():void 0}function Ma(n){return function pR(n){return n&&Ge(n.schedule)}(Rp(n))?n.pop():void 0}function gC(n,t=0){return Bt((e,r)=>{e.subscribe(Ot(r,i=>Gr(r,n,()=>r.next(i),t),()=>Gr(r,n,()=>r.complete(),t),i=>Gr(r,n,()=>r.error(i),t)))})}function mC(n,t=0){return Bt((e,r)=>{r.add(n.schedule(()=>e.subscribe(r),t))})}function _C(n,t){if(!n)throw new Error("Iterable cannot be null");return new vt(e=>{Gr(e,t,()=>{const r=n[Symbol.asyncIterator]();Gr(e,t,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function Et(n,t){return t?function CR(n,t){if(null!=n){if(sC(n))return function mR(n,t){return Qn(n).pipe(mC(t),gC(t))}(n,t);if(iC(n))return function yR(n,t){return new vt(e=>{let r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}(n,t);if(oC(n))return function _R(n,t){return Qn(n).pipe(mC(t),gC(t))}(n,t);if(aC(n))return _C(n,t);if(cC(n))return function vR(n,t){return new vt(e=>{let r;return Gr(e,t,()=>{r=n[uC](),Gr(e,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void e.error(s)}o?e.complete():e.next(i)},0,!0)}),()=>Ge(r?.return)&&r.return()})}(n,t);if(fC(n))return function bR(n,t){return _C(dC(n),t)}(n,t)}throw lC(n)}(n,t):Qn(n)}function Np(n,t,...e){if(!0===t)return void n();if(!1===t)return;const r=new Pa({next:()=>{r.unsubscribe(),n()}});return Qn(t(...e)).subscribe(r)}function je(n){for(let t in n)if(n[t]===je)return t;throw Error("Could not find renamed property on target object.")}function Lp(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function He(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(He).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Bp(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const MR=je({__forward_ref__:je});function Ye(n){return n.__forward_ref__=Ye,n.toString=function(){return He(this())},n}function re(n){return Vp(n)?n():n}function Vp(n){return"function"==typeof n&&n.hasOwnProperty(MR)&&n.__forward_ref__===Ye}function Up(n){return n&&!!n.\u0275providers}const Uu="https://g.co/ng/security#xss";class N extends Error{constructor(t,e){super(function ju(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function le(n){return"string"==typeof n?n:null==n?"":String(n)}function Hu(n,t){throw new N(-201,!1)}function Kn(n,t){null==n&&function ke(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function q(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function bt(n){return{providers:n.providers||[],imports:n.imports||[]}}function $u(n){return yC(n,zu)||yC(n,bC)}function yC(n,t){return n.hasOwnProperty(t)?n[t]:null}function vC(n){return n&&(n.hasOwnProperty(jp)||n.hasOwnProperty(kR))?n[jp]:null}const zu=je({\u0275prov:je}),jp=je({\u0275inj:je}),bC=je({ngInjectableDef:je}),kR=je({ngInjectorDef:je});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let Hp;function Xn(n){const t=Hp;return Hp=n,t}function CC(n,t,e){const r=$u(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&ie.Optional?null:void 0!==t?t:void Hu(He(n))}const Qe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Da={},$p="__NG_DI_FLAG__",qu="ngTempTokenPath",NR=/\n/gm,wC="__source";let xa;function Zo(n){const t=xa;return xa=n,t}function BR(n,t=ie.Default){if(void 0===xa)throw new N(-203,!1);return null===xa?CC(n,void 0,t):xa.get(n,t&ie.Optional?null:void 0,t)}function V(n,t=ie.Default){return(function FR(){return Hp}()||BR)(re(n),t)}function be(n,t=ie.Default){return V(n,Wu(t))}function Wu(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function zp(n){const t=[];for(let e=0;e<n.length;e++){const r=re(n[e]);if(Array.isArray(r)){if(0===r.length)throw new N(900,!1);let i,o=ie.Default;for(let s=0;s<r.length;s++){const a=r[s],l=VR(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}t.push(V(i,o))}else t.push(V(r))}return t}function Sa(n,t){return n[$p]=t,n.prototype[$p]=t,n}function VR(n){return n[$p]}function xi(n){return{toString:n}.toString()}var dr=(()=>((dr=dr||{})[dr.OnPush=0]="OnPush",dr[dr.Default=1]="Default",dr))(),fr=(()=>{return(n=fr||(fr={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",fr;var n})();const Qr={},Oe=[],Gu=je({\u0275cmp:je}),qp=je({\u0275dir:je}),Wp=je({\u0275pipe:je}),MC=je({\u0275mod:je}),Kr=je({\u0275fac:je}),Ta=je({__NG_ELEMENT_ID__:je});let HR=0;function Fe(n){return xi(()=>{const e=!0===n.standalone,r={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===dr.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Oe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||fr.Emulated,id:"c"+HR++,styles:n.styles||Oe,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,s=n.features;return i.inputs=SC(n.inputs,r),i.outputs=SC(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(DC).filter(xC):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(_n).filter(xC):null,i})}function DC(n){return Re(n)||an(n)}function xC(n){return null!==n}function At(n){return xi(()=>({type:n.type,bootstrap:n.bootstrap||Oe,declarations:n.declarations||Oe,imports:n.imports||Oe,exports:n.exports||Oe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function SC(n,t){if(null==n)return Qr;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,t&&(t[i]=o)}return e}const se=Fe;function xn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Re(n){return n[Gu]||null}function an(n){return n[qp]||null}function _n(n){return n[Wp]||null}function Rn(n,t){const e=n[MC]||null;if(!e&&!0===t)throw new Error(`Type ${He(n)} does not have '\u0275mod' property.`);return e}function Nn(n){return Array.isArray(n)&&"object"==typeof n[1]}function pr(n){return Array.isArray(n)&&!0===n[1]}function Qp(n){return 0!=(4&n.flags)}function Ia(n){return n.componentOffset>-1}function Zu(n){return 1==(1&n.flags)}function gr(n){return null!==n.template}function qR(n){return 0!=(256&n[2])}function ho(n,t){return n.hasOwnProperty(Kr)?n[Kr]:null}class YR{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ln(){return kC}function kC(n){return n.type.prototype.ngOnChanges&&(n.setInput=KR),QR}function QR(){const n=RC(this),t=n?.current;if(t){const e=n.previous;if(e===Qr)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function KR(n,t,e,r){const i=this.declaredInputs[e],o=RC(n)||function XR(n,t){return n[FC]=t}(n,{previous:Qr,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[i];s[i]=new YR(l&&l.currentValue,t,a===Qr),n[r]=t}Ln.ngInherit=!0;const FC="__ngSimpleChanges__";function RC(n){return n[FC]||null}function Xt(n){for(;Array.isArray(n);)n=n[0];return n}function Ju(n,t){return Xt(t[n])}function Bn(n,t){return Xt(t[n.index])}function BC(n,t){return n.data[t]}function Vn(n,t){const e=t[n];return Nn(e)?e:e[0]}function ec(n){return 64==(64&n[2])}function Si(n,t){return null==t?null:n[t]}function VC(n){n[18]=0}function Xp(n,t){n[5]+=t;let e=n,r=n[3];for(;null!==r&&(1===t&&1===e[5]||-1===t&&0===e[5]);)r[5]+=t,e=r,r=r[3]}const ue={lFrame:QC(null),bindingsEnabled:!0};function jC(){return ue.bindingsEnabled}function L(){return ue.lFrame.lView}function De(){return ue.lFrame.tView}function T(n){return ue.lFrame.contextLView=n,n[8]}function O(n){return ue.lFrame.contextLView=null,n}function Zt(){let n=HC();for(;null!==n&&64===n.type;)n=n.parent;return n}function HC(){return ue.lFrame.currentTNode}function Dr(n,t){const e=ue.lFrame;e.currentTNode=n,e.isParent=t}function Zp(){return ue.lFrame.isParent}function Jp(){ue.lFrame.isParent=!1}function vn(){const n=ue.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Zr(){return ue.lFrame.bindingIndex}function os(){return ue.lFrame.bindingIndex++}function Jr(n){const t=ue.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function cN(n,t){const e=ue.lFrame;e.bindingIndex=e.bindingRootIndex=n,eg(t)}function eg(n){ue.lFrame.currentDirectiveIndex=n}function tg(n){const t=ue.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function WC(){return ue.lFrame.currentQueryIndex}function ng(n){ue.lFrame.currentQueryIndex=n}function fN(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function GC(n,t,e){if(e&ie.SkipSelf){let i=t,o=n;for(;!(i=i.parent,null!==i||e&ie.Host||(i=fN(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,n=o}const r=ue.lFrame=YC();return r.currentTNode=t,r.lView=n,!0}function rg(n){const t=YC(),e=n[1];ue.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function YC(){const n=ue.lFrame,t=null===n?null:n.child;return null===t?QC(n):t}function QC(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function KC(){const n=ue.lFrame;return ue.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const XC=KC;function ig(){const n=KC();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function bn(){return ue.lFrame.selectedIndex}function po(n){ue.lFrame.selectedIndex=n}function at(){const n=ue.lFrame;return BC(n.tView,n.selectedIndex)}function tc(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),u&&((n.viewHooks||(n.viewHooks=[])).push(e,u),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,u)),null!=c&&(n.destroyHooks||(n.destroyHooks=[])).push(e,c)}}function nc(n,t,e){ZC(n,t,3,e)}function rc(n,t,e,r){(3&n[2])===e&&ZC(n,t,e,r)}function og(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function ZC(n,t,e,r){const o=r??-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(CN(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function CN(n,t,e,r){const i=e[r]<0,o=e[r+1],a=n[i?-e[r]:e[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Fa{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function ag(n,t,e){let r=0;for(;r<e.length;){const i=e[r];if("number"==typeof i){if(0!==i)break;r++;const o=e[r++],s=e[r++],a=e[r++];n.setAttribute(t,s,a,o)}else{const o=i,s=e[++r];e1(o)?n.setProperty(t,o,s):n.setAttribute(t,o,s),r++}}return r}function JC(n){return 3===n||4===n||6===n}function e1(n){return 64===n.charCodeAt(0)}function Ra(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?e=i:0===e||t1(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function t1(n,t,e,r,i){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[o+1]=i));if(r===n[o+1])return void(n[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==r&&n.splice(o++,0,r),null!==i&&n.splice(o++,0,i)}function n1(n){return-1!==n}function ic(n){return 32767&n}function oc(n,t){let e=function DN(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let lg=!0;function sc(n){const t=lg;return lg=n,t}let xN=0;const xr={};function ac(n,t){const e=o1(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,ug(r.data,n),ug(t,null),ug(r.blueprint,null));const i=cg(n,t),o=n.injectorIndex;if(n1(i)){const s=ic(i),a=oc(i,t),l=a[1].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u]}return t[o+8]=i,o}function ug(n,t){n.push(0,0,0,0,0,0,0,0,t)}function o1(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function cg(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){if(r=f1(i),null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function dg(n,t,e){!function SN(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Ta)&&(r=e[Ta]),null==r&&(r=e[Ta]=xN++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function s1(n,t,e){if(e&ie.Optional||void 0!==n)return n;Hu()}function a1(n,t,e,r){if(e&ie.Optional&&void 0===r&&(r=null),0==(e&(ie.Self|ie.Host))){const i=n[9],o=Xn(void 0);try{return i?i.get(t,r,e&ie.Optional):CC(t,r,e&ie.Optional)}finally{Xn(o)}}return s1(r,0,e)}function l1(n,t,e,r=ie.Default,i){if(null!==n){if(1024&t[2]){const s=function IN(n,t,e,r,i){let o=n,s=t;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=u1(o,s,e,r|ie.Self,xr);if(a!==xr)return a;let l=o.parent;if(!l){const u=s[21];if(u){const c=u.get(e,xr,r);if(c!==xr)return c}l=f1(s),s=s[15]}o=l}return i}(n,t,e,r,xr);if(s!==xr)return s}const o=u1(n,t,e,r,xr);if(o!==xr)return o}return a1(t,e,r,i)}function u1(n,t,e,r,i){const o=function EN(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Ta)?n[Ta]:void 0;return"number"==typeof t?t>=0?255&t:AN:t}(e);if("function"==typeof o){if(!GC(t,n,r))return r&ie.Host?s1(i,0,r):a1(t,e,r,i);try{const s=o(r);if(null!=s||r&ie.Optional)return s;Hu()}finally{XC()}}else if("number"==typeof o){let s=null,a=o1(n,t),l=-1,u=r&ie.Host?t[16][6]:null;for((-1===a||r&ie.SkipSelf)&&(l=-1===a?cg(n,t):t[a+8],-1!==l&&d1(r,!1)?(s=t[1],a=ic(l),t=oc(l,t)):a=-1);-1!==a;){const c=t[1];if(c1(o,a,c.data)){const d=ON(a,t,e,s,r,u);if(d!==xr)return d}l=t[a+8],-1!==l&&d1(r,t[1].data[a+8]===u)&&c1(o,a,t)?(s=c,a=ic(l),t=oc(l,t)):a=-1}}return i}function ON(n,t,e,r,i,o){const s=t[1],a=s.data[n+8],c=lc(a,s,e,null==r?Ia(a)&&lg:r!=s&&0!=(3&a.type),i&ie.Host&&o===a);return null!==c?go(t,s,c,a):xr}function lc(n,t,e,r,i){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,c=o>>20,p=i?a+c:n.directiveEnd;for(let m=r?a:a+c;m<p;m++){const _=s[m];if(m<l&&e===_||m>=l&&_.type===e)return m}if(i){const m=s[l];if(m&&gr(m)&&m.type===e)return l}return null}function go(n,t,e,r){let i=n[e];const o=t.data;if(function wN(n){return n instanceof Fa}(i)){const s=i;s.resolving&&function DR(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new N(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Ie(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():le(n)}(o[e]));const a=sc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Xn(s.injectImpl):null;GC(n,r,ie.Default);try{i=n[e]=s.factory(void 0,o,n,r),t.firstCreatePass&&e>=r.directiveStart&&function bN(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=kC(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Xn(l),sc(a),s.resolving=!1,XC()}}return i}function c1(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function d1(n,t){return!(n&ie.Self||n&ie.Host&&t)}class as{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return l1(this._tNode,this._lView,t,Wu(r),e)}}function AN(){return new as(Zt(),L())}function Jt(n){return xi(()=>{const t=n.prototype.constructor,e=t[Kr]||fg(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[Kr]||fg(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function fg(n){return Vp(n)?()=>{const t=fg(re(n));return t&&t()}:ho(n)}function f1(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const us="__parameters__";function ds(n,t,e){return xi(()=>{const r=function hg(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(us)?l[us]:Object.defineProperty(l,us,{value:[]})[us];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class Q{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=q({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mo(n,t){n.forEach(e=>Array.isArray(e)?mo(e,t):t(e))}function p1(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function cc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Un(n,t,e){let r=fs(n,t);return r>=0?n[1|r]=e:(r=~r,function NN(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function gg(n,t){const e=fs(n,t);if(e>=0)return n[1|e]}function fs(n,t){return function g1(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const o=r+(i-r>>1),s=n[o<<e];if(t===s)return o<<e;s>t?i=o:r=o+1}return~(i<<e)}(n,t,1)}const Va=Sa(ds("Optional"),8),Ua=Sa(ds("SkipSelf"),4);var Sn=(()=>((Sn=Sn||{})[Sn.Important=1]="Important",Sn[Sn.DashCase=2]="DashCase",Sn))();const Cg=new Map;let iL=0;const Pg="__ngContext__";function cn(n,t){Nn(t)?(n[Pg]=t[20],function sL(n){Cg.set(n[20],n)}(t)):n[Pg]=t}function Dg(n,t){return undefined(n,t)}function za(n){const t=n[3];return pr(t)?t[3]:t}function xg(n){return R1(n[13])}function Sg(n){return R1(n[4])}function R1(n){for(;null!==n&&!pr(n);)n=n[4];return n}function ps(n,t,e,r,i){if(null!=r){let o,s=!1;pr(r)?o=r:Nn(r)&&(s=!0,r=r[0]);const a=Xt(r);0===n&&null!==e?null==i?j1(t,e,a):_o(t,e,a,i||null,!0):1===n&&null!==e?_o(t,e,a,i||null,!0):2===n?function Fg(n,t,e){const r=pc(n,t);r&&function xL(n,t,e,r){n.removeChild(t,e,r)}(n,r,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function OL(n,t,e,r,i){const o=e[7];o!==Xt(e)&&ps(t,n,r,o,i);for(let a=10;a<e.length;a++){const l=e[a];qa(l[1],l,n,t,r,o)}}(t,n,o,e,i)}}function Og(n,t,e){return n.createElement(t,e)}function L1(n,t){const e=n[9],r=e.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,Xp(i,-1)),e.splice(r,1)}function Eg(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&L1(i,r),t>0&&(n[e-1][4]=r[4]);const o=cc(n,10+t);!function yL(n,t){qa(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function B1(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&qa(n,t,e,3,null,null),function CL(n){let t=n[13];if(!t)return Ag(n[1],n);for(;t;){let e=null;if(Nn(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Nn(t)&&Ag(t[1],t),t=t[3];null===t&&(t=n),Nn(t)&&Ag(t[1],t),e=t&&t[4]}t=e}}(t)}}function Ag(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function DL(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r<e.length;r+=2){const i=t[e[r]];if(!(i instanceof Fa)){const o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(n,t),function ML(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+3];s>=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=e[o+1]];e[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();t[7]=null}}(n,t),1===t[1].type&&t[11].destroy();const e=t[17];if(null!==e&&pr(t[3])){e!==t[3]&&L1(e,t);const r=t[19];null!==r&&r.detachView(n)}!function aL(n){Cg.delete(n[20])}(t)}}function V1(n,t,e){return function U1(n,t,e){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return e[0];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=n.data[r.directiveStart+i];if(o===fr.None||o===fr.Emulated)return null}return Bn(r,e)}}(n,t.parent,e)}function _o(n,t,e,r,i){n.insertBefore(t,e,r,i)}function j1(n,t,e){n.appendChild(t,e)}function H1(n,t,e,r,i){null!==r?_o(n,t,e,r,i):j1(n,t,e)}function pc(n,t){return n.parentNode(t)}let _c,Lg,yc,q1=function z1(n,t,e){return 40&n.type?Bn(n,e):null};function gc(n,t,e,r){const i=V1(n,r,t),o=t[11],a=function $1(n,t,e){return q1(n,t,e)}(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)H1(o,i,e[l],a,!1);else H1(o,i,e,a,!1)}function mc(n,t){if(null!==t){const e=t.type;if(3&e)return Bn(t,n);if(4&e)return kg(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return mc(n,r);{const i=n[t.index];return pr(i)?kg(-1,i):Xt(i)}}if(32&e)return Dg(t,n)()||Xt(n[t.index]);{const r=G1(n,t);return null!==r?Array.isArray(r)?r[0]:mc(za(n[16]),r):mc(n,t.next)}}return null}function G1(n,t){return null!==t?n[16][6].projection[t.projection]:null}function kg(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return mc(r,i)}return t[7]}function Rg(n,t,e,r,i,o,s){for(;null!=e;){const a=r[e.index],l=e.type;if(s&&0===t&&(a&&cn(Xt(a),r),e.flags|=2),32!=(32&e.flags))if(8&l)Rg(n,t,e.child,r,i,o,!1),ps(t,n,i,a,o);else if(32&l){const u=Dg(e,r);let c;for(;c=u();)ps(t,n,i,c,o);ps(t,n,i,a,o)}else 16&l?Y1(n,t,r,e,i,o):ps(t,n,i,a,o);e=s?e.projectionNext:e.next}}function qa(n,t,e,r,i,o){Rg(e,r,n.firstChild,t,i,o,!1)}function Y1(n,t,e,r,i,o){const s=e[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)ps(t,n,i,l[u],o);else Rg(n,t,l,s[3],i,o,!0)}function Q1(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function K1(n,t,e){const{mergedAttrs:r,classes:i,styles:o}=e;null!==r&&ag(n,t,r),null!==i&&Q1(n,t,i),null!==o&&function AL(n,t,e){n.setAttribute(t,"style",e)}(n,t,o)}function yo(n){return function Ng(){if(void 0===_c&&(_c=null,Qe.trustedTypes))try{_c=Qe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return _c}()?.createHTML(n)||n}function Bg(){if(void 0===yc&&(yc=null,Qe.trustedTypes))try{yc=Qe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return yc}function Z1(n){return Bg()?.createHTML(n)||n}function ew(n){return Bg()?.createScriptURL(n)||n}class vo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Uu})`}}class NL extends vo{getTypeName(){return"HTML"}}class LL extends vo{getTypeName(){return"Style"}}class BL extends vo{getTypeName(){return"Script"}}class VL extends vo{getTypeName(){return"URL"}}class UL extends vo{getTypeName(){return"ResourceURL"}}function jn(n){return n instanceof vo?n.changingThisBreaksApplicationSecurity:n}function Sr(n,t){const e=function jL(n){return n instanceof vo&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Uu})`)}return e===t}class GL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(yo(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class YL{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=yo(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=yo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const s=e.item(i).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const KL=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function vc(n){return(n=String(n)).match(KL)?n:"unsafe:"+n}function ei(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Wa(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const nw=ei("area,br,col,hr,img,wbr"),rw=ei("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iw=ei("rp,rt"),Vg=Wa(nw,Wa(rw,ei("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Wa(iw,ei("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wa(iw,rw)),Ug=ei("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ow=Wa(Ug,ei("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ei("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),XL=ei("script,style,template");class ZL{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Vg.hasOwnProperty(e))return this.sanitizedSomething=!0,!XL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,a=s.toLowerCase();if(!ow.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Ug[a]&&(l=vc(l)),this.buf.push(" ",s,'="',sw(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Vg.hasOwnProperty(e)&&!nw.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(sw(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const JL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e5=/([^\#-~ |!])/g;function sw(n){return n.replace(/&/g,"&").replace(JL,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(e5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let bc;function aw(n,t){let e=null;try{bc=bc||function tw(n){const t=new YL(n);return function QL(){try{return!!(new window.DOMParser).parseFromString(yo(""),"text/html")}catch{return!1}}()?new GL(t):t}(n);let r=t?String(t):"";e=bc.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=e.innerHTML,e=bc.getInertBodyElement(r)}while(r!==o);return yo((new ZL).sanitizeChildren(jg(e)||e))}finally{if(e){const r=jg(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function jg(n){return"content"in n&&function t5(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var $e=(()=>(($e=$e||{})[$e.NONE=0]="NONE",$e[$e.HTML=1]="HTML",$e[$e.STYLE=2]="STYLE",$e[$e.SCRIPT=3]="SCRIPT",$e[$e.URL=4]="URL",$e[$e.RESOURCE_URL=5]="RESOURCE_URL",$e))();function Ga(n){const t=Ya();return t?Z1(t.sanitize($e.HTML,n)||""):Sr(n,"HTML")?Z1(jn(n)):aw(function X1(){return void 0!==Lg?Lg:typeof document<"u"?document:void 0}(),le(n))}function Ti(n){const t=Ya();return t?t.sanitize($e.URL,n)||"":Sr(n,"URL")?jn(n):vc(le(n))}function lw(n){const t=Ya();if(t)return ew(t.sanitize($e.RESOURCE_URL,n)||"");if(Sr(n,"ResourceURL"))return ew(jn(n));throw new N(904,!1)}function Ya(){const n=L();return n&&n[12]}const Cc=new Q("ENVIRONMENT_INITIALIZER"),cw=new Q("INJECTOR",-1),dw=new Q("INJECTOR_DEF_TYPES");class fw{get(t,e=Da){if(e===Da){const r=new Error(`NullInjectorError: No provider for ${He(t)}!`);throw r.name="NullInjectorError",r}return e}}function l5(...n){return{\u0275providers:hw(0,n),\u0275fromNgModule:!0}}function hw(n,...t){const e=[],r=new Set;let i;return mo(t,o=>{const s=o;Hg(s,e,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&pw(i,e),e}function pw(n,t){for(let e=0;e<n.length;e++){const{providers:i}=n[e];$g(i,o=>{t.push(o)})}}function Hg(n,t,e,r){if(!(n=re(n)))return!1;let i=null,o=vC(n);const s=!o&&Re(n);if(o||s){if(s&&!s.standalone)return!1;i=n}else{const l=n.ngModule;if(o=vC(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Hg(u,t,e,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{mo(o.imports,c=>{Hg(c,t,e,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&pw(u,t)}if(!a){const u=ho(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:Oe},{provide:dw,useValue:i,multi:!0},{provide:Cc,useValue:()=>V(i),multi:!0})}const l=o.providers;null==l||a||$g(l,c=>{t.push(c)})}}return i!==n&&void 0!==n.providers}function $g(n,t){for(let e of n)Up(e)&&(e=e.\u0275providers),Array.isArray(e)?$g(e,t):t(e)}const u5=je({provide:String,useValue:je});function zg(n){return null!==n&&"object"==typeof n&&u5 in n}function bo(n){return"function"==typeof n}const qg=new Q("Set Injector scope."),wc={},d5={};let Wg;function Pc(){return void 0===Wg&&(Wg=new fw),Wg}class Tr{}class _w extends Tr{constructor(t,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yg(t,s=>this.processProvider(s)),this.records.set(cw,gs(void 0,this)),i.has("environment")&&this.records.set(Tr,gs(void 0,this));const o=this.records.get(qg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dw.multi,Oe,ie.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=Zo(this),r=Xn(void 0);try{return t()}finally{Zo(e),Xn(r)}}get(t,e=Da,r=ie.Default){this.assertNotDestroyed(),r=Wu(r);const i=Zo(this),o=Xn(void 0);try{if(!(r&ie.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function m5(n){return"function"==typeof n||"object"==typeof n&&n instanceof Q}(t)&&$u(t);a=l&&this.injectableDefInScope(l)?gs(Gg(t),wc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&ie.Self?Pc():this.parent).get(t,e=r&ie.Optional&&e===Da?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[qu]=s[qu]||[]).unshift(He(t)),i)throw s;return function UR(n,t,e,r){const i=n[qu];throw t[wC]&&i.unshift(t[wC]),n.message=function jR(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let i=He(t);if(Array.isArray(t))i=t.map(He).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):He(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(NR,"\n ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[qu]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Xn(o),Zo(i)}}resolveInjectorInitializers(){const t=Zo(this),e=Xn(void 0);try{const r=this.get(Cc.multi,Oe,ie.Self);for(const i of r)i()}finally{Zo(t),Xn(e)}}toString(){const t=[],e=this.records;for(const r of e.keys())t.push(He(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(t){let e=bo(t=re(t))?t:re(t&&t.provide);const r=function h5(n){return zg(n)?gs(void 0,n.useValue):gs(yw(n),wc)}(t);if(bo(t)||!0!==t.multi)this.records.get(e);else{let i=this.records.get(e);i||(i=gs(void 0,wc,!0),i.factory=()=>zp(i.multi),this.records.set(e,i)),e=t,i.multi.push(t)}this.records.set(e,r)}hydrate(t,e){return e.value===wc&&(e.value=d5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function g5(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=re(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Gg(n){const t=$u(n),e=null!==t?t.factory:ho(n);if(null!==e)return e;if(n instanceof Q)throw new N(204,!1);if(n instanceof Function)return function f5(n){const t=n.length;if(t>0)throw function Ba(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}(t,"?"),new N(204,!1);const e=function AR(n){const t=n&&(n[zu]||n[bC]);if(t){const e=function IR(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new N(204,!1)}function yw(n,t,e){let r;if(bo(n)){const i=re(n);return ho(i)||Gg(i)}if(zg(n))r=()=>re(n.useValue);else if(function mw(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...zp(n.deps||[]));else if(function gw(n){return!(!n||!n.useExisting)}(n))r=()=>V(re(n.useExisting));else{const i=re(n&&(n.useClass||n.provide));if(!function p5(n){return!!n.deps}(n))return ho(i)||Gg(i);r=()=>new i(...zp(n.deps))}return r}function gs(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Yg(n,t){for(const e of n)Array.isArray(e)?Yg(e,t):e&&Up(e)?Yg(e.\u0275providers,t):t(e)}class _5{}class vw{}class v5{resolveComponentFactory(t){throw function y5(n){const t=Error(`No component factory found for ${He(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ms=(()=>{class n{}return n.NULL=new v5,n})();function b5(){return _s(Zt(),L())}function _s(n,t){return new On(Bn(n,t))}let On=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=b5,n})();function C5(n){return n instanceof On?n.nativeElement:n}class Qa{}let ti=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function w5(){const n=L(),e=Vn(Zt().index,n);return(Nn(e)?e:n)[11]}(),n})(),P5=(()=>{class n{}return n.\u0275prov=q({token:n,providedIn:"root",factory:()=>null}),n})();class Ka{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const M5=new Ka("15.0.4"),Qg={};function Xg(n){return n.ngOriginalError}class ys{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Xg(t);for(;e&&Xg(e);)e=Xg(e);return e||null}}function ni(n){return n instanceof Function?n():n}function ww(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}e=i+1}}const Pw="ng-template";function R5(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==ww(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Mw(n){return 4===n.type&&n.value!==Pw}function N5(n,t,e){return t===(4!==n.type||e?n.value:Pw)}function L5(n,t,e){let r=4;const i=n.attrs||[],o=function U5(n){for(let t=0;t<n.length;t++)if(JC(n[t]))return t;return n.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!N5(n,l,e)||""===l&&1===t.length){if(mr(r))return!1;s=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!R5(n.attrs,u,e)){if(mr(r))return!1;s=!0}continue}const d=B5(8&r?"class":l,i,Mw(n),e);if(-1===d){if(mr(r))return!1;s=!0;continue}if(""!==u){let p;p=d>o?"":i[d+1].toLowerCase();const m=8&r?p:null;if(m&&-1!==ww(m,u,0)||2&r&&u!==p){if(mr(r))return!1;s=!0}}}}else{if(!s&&!mr(r)&&!mr(l))return!1;if(s&&mr(l))continue;s=!1,r=l|1&r}}return mr(r)||s}function mr(n){return 0==(1&n)}function B5(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let o=!1;for(;i<t.length;){const s=t[i];if(s===n)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function j5(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const r=n[e];if("number"==typeof r)return-1;if(r===t)return e;e++}return-1}(t,n)}function Dw(n,t,e=!1){for(let r=0;r<t.length;r++)if(L5(n,t[r],e))return!0;return!1}function xw(n,t){return n?":not("+t.trim()+")":t}function $5(n){let t=n[0],e=1,r=2,i="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&r){const a=n[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!mr(s)&&(t+=xw(o,i),i=""),r=s,o=o||!mr(r);e++}return""!==i&&(t+=xw(o,i)),t}const ce={};function y(n){Sw(De(),L(),bn()+n,!1)}function Sw(n,t,e,r){if(!r)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&nc(t,o,e)}else{const o=n.preOrderHooks;null!==o&&rc(t,o,0,e)}po(e)}function Aw(n,t=null,e=null,r){const i=Iw(n,t,e,r);return i.resolveInjectorInitializers(),i}function Iw(n,t=null,e=null,r,i=new Set){const o=[e||Oe,l5(n)];return r=r||("object"==typeof n?void 0:He(n)),new _w(o,t||Pc(),r||null,i)}let En=(()=>{class n{static create(e,r){if(Array.isArray(e))return Aw({name:""},r,e,"");{const i=e.name??"";return Aw({name:i},e.parent,e.providers,i)}}}return n.THROW_IF_NOT_FOUND=Da,n.NULL=new fw,n.\u0275prov=q({token:n,providedIn:"any",factory:()=>V(cw)}),n.__NG_ELEMENT_ID__=-1,n})();function S(n,t=ie.Default){const e=L();return null===e?V(n,t):l1(Zt(),e,re(n),t)}function Uw(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(-1!==o){const s=n.data[o];ng(i),s.contentQueries(2,t[o],o)}}}function Dc(n,t,e,r,i,o,s,a,l,u,c){const d=t.blueprint.slice();return d[0]=i,d[2]=76|r,(null!==c||n&&1024&n[2])&&(d[2]|=1024),VC(d),d[3]=d[15]=n,d[8]=e,d[10]=s||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=u||n&&n[9]||null,d[6]=o,d[20]=function oL(){return iL++}(),d[21]=c,d[16]=2==t.type?n[16]:d,d}function Cs(n,t,e,r,i){let o=n.data[t];if(null===o)o=function nm(n,t,e,r,i){const o=HC(),s=Zp(),l=n.data[t]=function g3(n,t,e,r,i,o){return{type:e,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,r,i),function uN(){return ue.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=r,o.attrs=i;const s=function ka(){const n=ue.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Dr(o,!0),o}function Xa(n,t,e,r){if(0===e)return-1;const i=t.length;for(let o=0;o<e;o++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function rm(n,t,e){rg(t);try{const r=n.viewQuery;null!==r&&hm(1,r,e);const i=n.template;null!==i&&jw(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Uw(n,t),n.staticViewQueries&&hm(2,n.viewQuery,e);const o=n.components;null!==o&&function f3(n,t){for(let e=0;e<t.length;e++)F3(n,t[e])}(t,o)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,ig()}}function xc(n,t,e,r){const i=t[2];if(128!=(128&i)){rg(t);try{VC(t),function zC(n){return ue.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&jw(n,t,e,2,r);const s=3==(3&i);if(s){const u=n.preOrderCheckHooks;null!==u&&nc(t,u,null)}else{const u=n.preOrderHooks;null!==u&&rc(t,u,0,null),og(t,0)}if(function I3(n){for(let t=xg(n);null!==t;t=Sg(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],o=i[3];0==(512&i[2])&&Xp(o,1),i[2]|=512}}}(t),function A3(n){for(let t=xg(n);null!==t;t=Sg(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];ec(r)&&xc(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&Uw(n,t),s){const u=n.contentCheckHooks;null!==u&&nc(t,u)}else{const u=n.contentHooks;null!==u&&rc(t,u,1),og(t,1)}!function c3(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)po(~i);else{const o=i,s=e[++r],a=e[++r];cN(s,o),a(2,t[o])}}}finally{po(-1)}}(n,t);const a=n.components;null!==a&&function d3(n,t){for(let e=0;e<t.length;e++)k3(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&hm(2,l,r),s){const u=n.viewCheckHooks;null!==u&&nc(t,u)}else{const u=n.viewHooks;null!==u&&rc(t,u,2),og(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Xp(t[3],-1))}finally{ig()}}}function jw(n,t,e,r,i){const o=bn(),s=2&r;try{po(-1),s&&t.length>22&&Sw(n,t,22,!1),e(r,i)}finally{po(o)}}function im(n,t,e){if(Qp(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function om(n,t,e){!jC()||(function C3(n,t,e,r){const i=e.directiveStart,o=e.directiveEnd;Ia(e)&&function T3(n,t,e){const r=Bn(t,n),i=Hw(e),o=n[10],s=Sc(n,Dc(n,i,null,e.onPush?32:16,r,t,o,o.createRenderer(r,e),null,null,null));n[t.index]=s}(t,e,n.data[i+e.componentOffset]),n.firstCreatePass||ac(e,t),cn(r,t);const s=e.initialInputs;for(let a=i;a<o;a++){const l=n.data[a],u=go(t,n,a,e);cn(u,t),null!==s&&O3(0,a-i,u,l,0,s),gr(l)&&(Vn(e.index,t)[8]=go(t,n,a,e))}}(n,t,e,Bn(e,t)),64==(64&e.flags)&&Yw(n,t,e))}function sm(n,t,e=Bn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?e(t,n):n[s];n[i++]=a}}}function Hw(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=am(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function am(n,t,e,r,i,o,s,a,l,u){const c=22+r,d=c+i,p=function h3(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:ce);return e}(c,d),m="function"==typeof u?u():u;return p[1]={type:n,blueprint:p,template:e,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,c),bindingStartIndex:c,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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1}}function $w(n,t,e,r){const i=Kw(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&Xw(n).push(r,i.length-1))}function zw(n,t,e,r){for(let i in n)if(n.hasOwnProperty(i)){e=null===e?{}:e;const o=n[i];null===r?qw(e,t,i,o):r.hasOwnProperty(i)&&qw(e,t,r[i],o)}return e}function qw(n,t,e,r){n.hasOwnProperty(e)?n[e].push(t,r):n[e]=[t,r]}function Hn(n,t,e,r,i,o,s,a){const l=Bn(t,e);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(pm(n,e,c,r,i),Ia(t)&&Ww(e,t.index)):3&t.type&&(r=function _3(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,t.value||"",r):i,o.setProperty(l,r,i))}function Ww(n,t){const e=Vn(t,n);16&e[2]||(e[2]|=32)}function lm(n,t,e,r){let i=!1;if(jC()){const o=null===r?null:{"":-1},s=function P3(n,t){const e=n.directiveRegistry;let r=null,i=null;if(e)for(let o=0;o<e.length;o++){const s=e[o];if(Dw(t,s.selectors,!1))if(r||(r=[]),gr(s))if(null!==s.findHostDirectiveDefs){const a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s),um(n,t,a.length)}else r.unshift(s),um(n,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return null===r?null:[r,i]}(n,e);let a,l;null===s?a=l=null:[a,l]=s,null!==a&&(i=!0,Gw(n,t,e,a,o,l)),o&&function M3(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const o=e[t[i+1]];if(null==o)throw new N(-301,!1);r.push(t[i],o)}}}(e,r,o)}return e.mergedAttrs=Ra(e.mergedAttrs,e.attrs),i}function Gw(n,t,e,r,i,o){for(let u=0;u<r.length;u++)dg(ac(e,t),n,r[u].type);!function x3(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}(e,n.data.length,r.length);for(let u=0;u<r.length;u++){const c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=Xa(n,t,r.length,null);for(let u=0;u<r.length;u++){const c=r[u];e.mergedAttrs=Ra(e.mergedAttrs,c.hostAttrs),S3(n,e,t,l,c),D3(l,c,i),null!==c.contentQueries&&(e.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(e.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),a=!0),l++}!function m3(n,t,e){const i=t.directiveEnd,o=n.data,s=t.attrs,a=[];let l=null,u=null;for(let c=t.directiveStart;c<i;c++){const d=o[c],p=e?e.get(d):null,_=p?p.outputs:null;l=zw(d.inputs,c,l,p?p.inputs:null),u=zw(d.outputs,c,u,_);const v=null===l||null===s||Mw(t)?null:E3(l,c,s);a.push(v)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}(n,e,o)}function Yw(n,t,e){const r=e.directiveStart,i=e.directiveEnd,o=e.index,s=function dN(){return ue.lFrame.currentDirectiveIndex}();try{po(o);for(let a=r;a<i;a++){const l=n.data[a],u=t[a];eg(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&w3(l,u)}}finally{po(-1),eg(s)}}function w3(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function um(n,t,e){t.componentOffset=e,(n.components||(n.components=[])).push(t.index)}function D3(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;gr(t)&&(e[""]=n)}}function S3(n,t,e,r,i){n.data[r]=i;const o=i.factory||(i.factory=ho(i.type)),s=new Fa(o,gr(i),S);n.blueprint[r]=s,e[r]=s,function v3(n,t,e,r,i){const o=i.hostBindings;if(o){let s=n.hostBindingOpCodes;null===s&&(s=n.hostBindingOpCodes=[]);const a=~t.index;(function b3(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,r,o)}}(n,t,r,Xa(n,e,i.hostVars,ce),i)}function Or(n,t,e,r,i,o){const s=Bn(n,t);!function cm(n,t,e,r,i,o,s){if(null==o)n.removeAttribute(t,i,e);else{const a=null==s?le(o):s(o,r||"",i);n.setAttribute(t,i,a,e)}}(t[11],s,o,n.value,e,r,i)}function O3(n,t,e,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const u=s[l++],c=s[l++],d=s[l++];null!==a?r.setInput(e,d,u,c):e[c]=d}}}function E3(n,t,e){let r=null,i=0;for(;i<e.length;){const o=e[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(n.hasOwnProperty(o)){null===r&&(r=[]);const s=n[o];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(o,s[a+1],e[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Qw(n,t,e,r){return[n,!0,!1,t,null,0,r,e,null,null]}function k3(n,t){const e=Vn(t,n);if(ec(e)){const r=e[1];48&e[2]?xc(r,e,r.template,e[8]):e[5]>0&&dm(e)}}function dm(n){for(let r=xg(n);null!==r;r=Sg(r))for(let i=10;i<r.length;i++){const o=r[i];if(ec(o))if(512&o[2]){const s=o[1];xc(s,o,s.template,o[8])}else o[5]>0&&dm(o)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Vn(e[r],n);ec(i)&&i[5]>0&&dm(i)}}function F3(n,t){const e=Vn(t,n),r=e[1];(function R3(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),rm(r,e,e[8])}function Sc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function fm(n){for(;n;){n[2]|=32;const t=za(n);if(qR(n)&&!t)return n;n=t}return null}function Tc(n,t,e,r=!0){const i=t[10];i.begin&&i.begin();try{xc(n,t,n.template,e)}catch(s){throw r&&Jw(t,s),s}finally{i.end&&i.end()}}function hm(n,t,e){ng(0),t(n,e)}function Kw(n){return n[7]||(n[7]=[])}function Xw(n){return n.cleanup||(n.cleanup=[])}function Jw(n,t){const e=n[9],r=e?e.get(ys,null):null;r&&r.handleError(t)}function pm(n,t,e,r,i){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],u=n.data[s];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}function ri(n,t,e){const r=Ju(t,n);!function N1(n,t,e){n.setValue(t,e)}(n[11],r,e)}function Oc(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=Bp(i,a):2==o&&(r=Bp(r,a+": "+t[++s]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}function Ec(n,t,e,r,i=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&r.push(Xt(o)),pr(o))for(let a=10;a<o.length;a++){const l=o[a],u=l[1].firstChild;null!==u&&Ec(l[1],l,u,r)}const s=e.type;if(8&s)Ec(n,t,e.child,r);else if(32&s){const a=Dg(e,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=G1(t,e);if(Array.isArray(a))r.push(...a);else{const l=za(t[16]);Ec(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class Za{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Ec(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pr(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(Eg(t,r),cc(e,r))}this._attachedToViewContainer=!1}B1(this._lView[1],this._lView)}onDestroy(t){$w(this._lView[1],this._lView,null,t)}markForCheck(){fm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Tc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function bL(n,t){qa(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=t}}class N3 extends Za{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Tc(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class eP extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Re(t);return new Ja(e,this.ngModule)}}function tP(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class B3{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,r){r=Wu(r);const i=this.injector.get(t,Qg,r);return i!==Qg||e===Qg?i:this.parentInjector.get(t,e,r)}}class Ja extends vw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function z5(n){return n.map($5).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return tP(this.componentDef.inputs)}get outputs(){return tP(this.componentDef.outputs)}create(t,e,r,i){let o=(i=i||this.ngModule)instanceof Tr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new B3(t,o):t,a=s.get(Qa,null);if(null===a)throw new N(407,!1);const l=s.get(P5,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function p3(n,t,e){return n.selectRootElement(t,e===fr.ShadowDom)}(u,r,this.componentDef.encapsulation):Og(u,c,function L3(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),p=this.componentDef.onPush?288:272,m=am(0,null,null,1,0,null,null,null,null,null),_=Dc(null,m,null,p,null,null,a,u,l,s,null);let v,b;rg(_);try{const w=this.componentDef;let D,x=null;w.findHostDirectiveDefs?(D=[],x=new Map,w.findHostDirectiveDefs(w,D,x),D.push(w)):D=[w];const E=function U3(n,t){const e=n[1];return n[22]=t,Cs(e,22,2,"#host",null)}(_,d),I=function j3(n,t,e,r,i,o,s,a){const l=i[1];!function H3(n,t,e,r){for(const i of n)t.mergedAttrs=Ra(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Oc(t,t.mergedAttrs,!0),null!==e&&K1(r,e,t))}(r,n,t,s);const u=o.createRenderer(t,e),c=Dc(i,Hw(e),null,e.onPush?32:16,i[n.index],n,o,u,a||null,null,null);return l.firstCreatePass&&um(l,n,r.length-1),Sc(i,c),i[n.index]=c}(E,d,w,D,_,a,u);b=BC(m,22),d&&function z3(n,t,e,r){if(r)ag(n,e,["ng-version",M5.full]);else{const{attrs:i,classes:o}=function q5(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let o=n[r];if("string"==typeof o)2===i?""!==o&&t.push(o,n[++r]):8===i&&e.push(o);else{if(!mr(i))break;i=o}r++}return{attrs:t,classes:e}}(t.selectors[0]);i&&ag(n,e,i),o&&o.length>0&&Q1(n,e,o.join(" "))}}(u,w,d,r),void 0!==e&&function q3(n,t,e){const r=n.projection=[];for(let i=0;i<t.length;i++){const o=e[i];r.push(null!=o?Array.from(o):null)}}(b,this.ngContentSelectors,e),v=function $3(n,t,e,r,i,o){const s=Zt(),a=i[1],l=Bn(s,i);Gw(a,i,s,e,null,r);for(let c=0;c<e.length;c++)cn(go(i,a,s.directiveStart+c,s),i);Yw(a,i,s),l&&cn(l,i);const u=go(i,a,s.directiveStart+s.componentOffset,s);if(n[8]=i[8]=u,null!==o)for(const c of o)c(u,t);return im(a,s,n),u}(I,w,D,x,_,[W3]),rm(m,_,null)}finally{ig()}return new V3(this.componentType,v,_s(b,_),_,b)}}class V3 extends _5{constructor(t,e,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new N3(i),this.componentType=t}setInput(t,e){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){const o=this._rootLView;pm(o[1],o,i,t,e),Ww(o,this._tNode.index)}}get injector(){return new as(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function W3(){const n=Zt();tc(L()[1],n)}function Ne(n){let t=function nP(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(gr(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new N(903,!1);i=t.\u0275dir}if(i){if(e){r.push(i);const s=n;s.inputs=gm(n.inputs),s.declaredInputs=gm(n.declaredInputs),s.outputs=gm(n.outputs);const a=i.hostBindings;a&&K3(n,a);const l=i.viewQuery,u=i.contentQueries;if(l&&Y3(n,l),u&&Q3(n,u),Lp(n.inputs,i.inputs),Lp(n.declaredInputs,i.declaredInputs),Lp(n.outputs,i.outputs),gr(i)&&i.data.animation){const c=n.data;c.animation=(c.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===Ne&&(e=!1)}}t=Object.getPrototypeOf(t)}!function G3(n){let t=0,e=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ra(i.hostAttrs,e=Ra(e,i.hostAttrs))}}(r)}function gm(n){return n===Qr?{}:n===Oe?[]:n}function Y3(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function Q3(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,o)=>{t(r,i,o),e(r,i,o)}:t}function K3(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let Ac=null;function Co(){if(!Ac){const n=Qe.Symbol;if(n&&n.iterator)Ac=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ac=r)}}}return Ac}function el(n){return!!mm(n)&&(Array.isArray(n)||!(n instanceof Map)&&Co()in n)}function mm(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Er(n,t,e){return n[t]=e}function dn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function wo(n,t,e,r){const i=dn(n,t,e);return dn(n,t+1,r)||i}function An(n,t,e,r){const i=L();return dn(i,os(),t)&&(De(),Or(at(),i,n,t,e,r)),An}function Ps(n,t,e,r){return dn(n,os(),e)?t+le(e)+r:ce}function Ds(n,t,e,r,i,o,s,a){const u=function Ic(n,t,e,r,i){const o=wo(n,t,e,r);return dn(n,t+2,i)||o}(n,Zr(),e,i,s);return Jr(3),u?t+le(e)+r+le(i)+o+le(s)+a:ce}function xs(n,t,e,r,i,o,s,a,l,u){const d=function er(n,t,e,r,i,o){const s=wo(n,t,e,r);return wo(n,t+2,i,o)||s}(n,Zr(),e,i,s,l);return Jr(4),d?t+le(e)+r+le(i)+o+le(s)+a+le(l)+u:ce}function A(n,t,e,r,i,o,s,a){const l=L(),u=De(),c=n+22,d=u.firstCreatePass?function sB(n,t,e,r,i,o,s,a,l){const u=t.consts,c=Cs(t,n,4,s||null,Si(u,a));lm(t,e,c,Si(u,l)),tc(t,c);const d=c.tViews=am(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,e,r,i,o,s):u.data[c];Dr(d,!1);const p=l[11].createComment("");gc(u,l,p,d),cn(p,l),Sc(l,l[c]=Qw(p,l,p,d)),Zu(d)&&om(u,l,d),null!=s&&sm(l,d,a)}function C(n,t,e){const r=L();return dn(r,os(),t)&&Hn(De(),at(),r,n,t,r[11],e,!1),C}function _m(n,t,e,r,i){const s=i?"class":"style";pm(n,e,t.inputs[s],s,r)}function f(n,t,e,r){const i=L(),o=De(),s=22+n,a=i[11],l=i[s]=Og(a,t,function vN(){return ue.lFrame.currentNamespace}()),u=o.firstCreatePass?function uB(n,t,e,r,i,o,s){const a=t.consts,u=Cs(t,n,2,i,Si(a,o));return lm(t,e,u,Si(a,s)),null!==u.attrs&&Oc(u,u.attrs,!1),null!==u.mergedAttrs&&Oc(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,o,i,0,t,e,r):o.data[s];return Dr(u,!0),K1(a,l,u),32!=(32&u.flags)&&gc(o,i,l,u),0===function rN(){return ue.lFrame.elementDepthCount}()&&cn(l,i),function iN(){ue.lFrame.elementDepthCount++}(),Zu(u)&&(om(o,i,u),im(o,u,i)),null!==r&&sm(i,u),f}function h(){let n=Zt();Zp()?Jp():(n=n.parent,Dr(n,!1));const t=n;!function oN(){ue.lFrame.elementDepthCount--}();const e=De();return e.firstCreatePass&&(tc(e,n),Qp(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function PN(n){return 0!=(8&n.flags)}(t)&&_m(e,t,L(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function MN(n){return 0!=(16&n.flags)}(t)&&_m(e,t,L(),t.stylesWithoutHost,!1),h}function k(n,t,e,r){return f(n,t,e,r),h(),k}function nl(n,t,e){const r=L(),i=De(),o=n+22,s=i.firstCreatePass?function cB(n,t,e,r,i){const o=t.consts,s=Si(o,r),a=Cs(t,n,8,"ng-container",s);return null!==s&&Oc(a,s,!0),lm(t,e,a,Si(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,e):i.data[o];Dr(s,!0);const a=r[o]=r[11].createComment("");return gc(i,r,a,s),cn(a,r),Zu(s)&&(om(i,r,s),im(i,s,r)),null!=e&&sm(r,s),nl}function rl(){let n=Zt();const t=De();return Zp()?Jp():(n=n.parent,Dr(n,!1)),t.firstCreatePass&&(tc(t,n),Qp(n)&&t.queries.elementEnd(n)),rl}function j(){return L()}function il(n){return!!n&&"function"==typeof n.then}const ym=function mP(n){return!!n&&"function"==typeof n.subscribe};function M(n,t,e,r){const i=L(),o=De(),s=Zt();return function yP(n,t,e,r,i,o,s){const a=Zu(r),u=n.firstCreatePass&&Xw(n),c=t[8],d=Kw(t);let p=!0;if(3&r.type||s){const v=Bn(r,t),b=s?s(v):v,w=d.length,D=s?E=>s(Xt(E[r.index])):r.index;let x=null;if(!s&&a&&(x=function dB(n,t,e,r){const i=n.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===e&&i[o+1]===r){const a=t[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,i,r.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,p=!1;else{o=bP(r,t,c,o,!1);const E=e.listen(b,i,o);d.push(o,E),u&&u.push(i,D,w,w+1)}}else o=bP(r,t,c,o,!1);const m=r.outputs;let _;if(p&&null!==m&&(_=m[i])){const v=_.length;if(v)for(let b=0;b<v;b+=2){const I=t[_[b]][_[b+1]].subscribe(o),R=d.length;d.push(o,I),u&&u.push(i,r.index,R,-(R+1))}}}(o,i,i[11],s,n,t,r),M}function vP(n,t,e,r){try{return!1!==e(r)}catch(i){return Jw(n,i),!1}}function bP(n,t,e,r,i){return function o(s){if(s===Function)return r;fm(n.componentOffset>-1?Vn(n.index,t):t);let l=vP(t,0,r,s),u=o.__ngNextListenerFn__;for(;u;)l=vP(t,0,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function P(n=1){return function hN(n){return(ue.lFrame.contextLView=function pN(n,t){for(;n>0;)t=t[15],n--;return t}(n,ue.lFrame.contextLView))[8]}(n)}function Wt(n,t,e){return vm(n,"",t,"",e),Wt}function vm(n,t,e,r,i){const o=L(),s=Ps(o,t,e,r);return s!==ce&&Hn(De(),at(),o,n,s,o[11],i,!1),vm}function kc(n,t){return n<<17|t<<2}function Oi(n){return n>>17&32767}function bm(n){return 2|n}function Po(n){return(131068&n)>>2}function Cm(n,t){return-131069&n|t<<2}function wm(n){return 1|n}function OP(n,t,e,r,i){const o=n[e+1],s=null===t;let a=r?Oi(o):Po(o),l=!1;for(;0!==a&&(!1===l||s);){const c=n[a+1];bB(n[a],t)&&(l=!0,n[a+1]=r?wm(c):bm(c)),a=r?Oi(c):Po(c)}l&&(n[e+1]=r?bm(o):wm(o))}function bB(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&fs(n,t)>=0}const jt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function EP(n){return n.substring(jt.key,jt.keyEnd)}function AP(n,t){const e=jt.textEnd;return e===t?-1:(t=jt.keyEnd=function MB(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,jt.key=t,e),As(n,t,e))}function As(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function Is(n,t,e){return _r(n,t,e,!1),Is}function Fc(n,t){return _r(n,t,null,!0),Fc}function Ir(n){!function yr(n,t,e,r){const i=De(),o=Jr(2);i.firstUpdatePass&&LP(i,null,o,r);const s=L();if(e!==ce&&dn(s,o,e)){const a=i.data[bn()];if(jP(a,r)&&!NP(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Bp(l,e||"")),_m(i,a,s,e,r)}else!function kB(n,t,e,r,i,o,s,a){i===ce&&(i=Oe);let l=0,u=0,c=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==c||null!==d;){const p=l<i.length?i[l+1]:void 0,m=u<o.length?o[u+1]:void 0;let v,_=null;c===d?(l+=2,u+=2,p!==m&&(_=d,v=m)):null===d||null!==c&&c<d?(l+=2,_=c):(u+=2,_=d,v=m),null!==_&&VP(n,t,e,r,_,v,s,a),c=l<i.length?i[l]:null,d=u<o.length?o[u]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function IB(n,t,e){if(null==e||""===e)return Oe;const r=[],i=jn(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)n(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&n(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,o)}}(Un,kr,n,!0)}function kr(n,t){for(let e=function wB(n){return function kP(n){jt.key=0,jt.keyEnd=0,jt.value=0,jt.valueEnd=0,jt.textEnd=n.length}(n),AP(n,As(n,0,jt.textEnd))}(t);e>=0;e=AP(t,e))Un(n,EP(t),!0)}function _r(n,t,e,r){const i=L(),o=De(),s=Jr(2);o.firstUpdatePass&&LP(o,n,s,r),t!==ce&&dn(i,s,t)&&VP(o,o.data[bn()],i,i[11],n,i[s+1]=function FB(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=He(jn(n)))),n}(t,e),r,s)}function NP(n,t){return t>=n.expandoStartIndex}function LP(n,t,e,r){const i=n.data;if(null===i[e+1]){const o=i[bn()],s=NP(n,e);jP(o,r)&&null===t&&!s&&(t=!1),t=function TB(n,t,e,r){const i=tg(n);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=ol(e=Pm(null,n,t,e,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==i)if(e=Pm(i,n,t,e,r),null===o){let l=function OB(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==Po(r))return n[Oi(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=Pm(null,n,t,l[1],r),l=ol(l,t.attrs,r),function EB(n,t,e,r){n[Oi(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else o=function AB(n,t,e){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=ol(r,n[o].hostAttrs,e);return ol(r,t.attrs,e)}(n,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),e}(i,o,t,r),function yB(n,t,e,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Oi(s),l=Po(s);n[r]=e;let c,u=!1;if(Array.isArray(e)){const d=e;c=d[1],(null===c||fs(d,c)>0)&&(u=!0)}else c=e;if(i)if(0!==l){const p=Oi(n[a+1]);n[r+1]=kc(p,a),0!==p&&(n[p+1]=Cm(n[p+1],r)),n[a+1]=function mB(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=kc(a,0),0!==a&&(n[a+1]=Cm(n[a+1],r)),a=r;else n[r+1]=kc(l,0),0===a?a=r:n[l+1]=Cm(n[l+1],r),l=r;u&&(n[r+1]=bm(n[r+1])),OP(n,c,r,!0),OP(n,c,r,!1),function vB(n,t,e,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&fs(o,t)>=0&&(e[r+1]=wm(e[r+1]))}(t,c,n,r,o),s=kc(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,e,s,r)}}function Pm(n,t,e,r,i){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],r=ol(r,o.hostAttrs,i),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function ol(n,t,e){const r=e?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Un(n,s,!!e||t[++o]))}return void 0===n?null:n}function VP(n,t,e,r,i,o,s,a){if(!(3&t.type))return;const l=n.data,u=l[a+1],c=function _B(n){return 1==(1&n)}(u)?UP(l,t,e,i,Po(u),s):void 0;Rc(c)||(Rc(o)||function gB(n){return 2==(2&n)}(u)&&(o=UP(l,null,e,i,a,s)),function EL(n,t,e,r,i){if(t)i?n.addClass(e,r):n.removeClass(e,r);else{let o=-1===r.indexOf("-")?void 0:Sn.DashCase;null==i?n.removeStyle(e,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Sn.Important),n.setStyle(e,r,i,o))}}(r,s,Ju(bn(),e),i,o))}function UP(n,t,e,r,i,o){const s=null===t;let a;for(;i>0;){const l=n[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let p=e[i+1];p===ce&&(p=d?Oe:void 0);let m=d?gg(p,r):c===r?p:void 0;if(u&&!Rc(m)&&(m=gg(l,r)),Rc(m)&&(a=m,s))return a;const _=n[i+1];i=s?Oi(_):Po(_)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=gg(l,r))}return a}function Rc(n){return void 0!==n}function jP(n,t){return 0!=(n.flags&(t?8:16))}function g(n,t=""){const e=L(),r=De(),i=n+22,o=r.firstCreatePass?Cs(r,i,1,t,null):r.data[i],s=e[i]=function Tg(n,t){return n.createText(t)}(e[11],t);gc(r,e,s,o),Dr(o,!1)}function F(n){return ze("",n,""),F}function ze(n,t,e){const r=L(),i=Ps(r,n,t,e);return i!==ce&&ri(r,bn(),i),ze}function Gt(n,t,e,r,i){const o=L(),s=function Ms(n,t,e,r,i,o){const a=wo(n,Zr(),e,i);return Jr(2),a?t+le(e)+r+le(i)+o:ce}(o,n,t,e,r,i);return s!==ce&&ri(o,bn(),s),Gt}function Ei(n,t,e,r,i,o,s){const a=L(),l=Ds(a,n,t,e,r,i,o,s);return l!==ce&&ri(a,bn(),l),Ei}function Nc(n,t,e,r,i,o,s,a,l){const u=L(),c=xs(u,n,t,e,r,i,o,s,a,l);return c!==ce&&ri(u,bn(),c),Nc}function Mm(n,t,e){const r=L();if(dn(r,os(),t)){const o=De(),s=at();Hn(o,s,r,n,t,function Zw(n,t,e){return(null===n||gr(n))&&(e=function JR(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}(tg(o.data),s,r),e,!0)}return Mm}const Mo=void 0;var e4=["en",[["a","p"],["AM","PM"],Mo],[["AM","PM"],Mo,Mo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Mo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Mo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Mo,"{1} 'at' {0}",Mo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function JB(n){const e=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===r?1:5}];let ks={};function Cn(n){const t=function t4(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=iM(t);if(e)return e;const r=t.split("-")[0];if(e=iM(r),e)return e;if("en"===r)return e4;throw new N(701,!1)}function iM(n){return n in ks||(ks[n]=Qe.ng&&Qe.ng.common&&Qe.ng.common.locales&&Qe.ng.common.locales[n]),ks[n]}var W=(()=>((W=W||{})[W.LocaleId=0]="LocaleId",W[W.DayPeriodsFormat=1]="DayPeriodsFormat",W[W.DayPeriodsStandalone=2]="DayPeriodsStandalone",W[W.DaysFormat=3]="DaysFormat",W[W.DaysStandalone=4]="DaysStandalone",W[W.MonthsFormat=5]="MonthsFormat",W[W.MonthsStandalone=6]="MonthsStandalone",W[W.Eras=7]="Eras",W[W.FirstDayOfWeek=8]="FirstDayOfWeek",W[W.WeekendRange=9]="WeekendRange",W[W.DateFormat=10]="DateFormat",W[W.TimeFormat=11]="TimeFormat",W[W.DateTimeFormat=12]="DateTimeFormat",W[W.NumberSymbols=13]="NumberSymbols",W[W.NumberFormats=14]="NumberFormats",W[W.CurrencyCode=15]="CurrencyCode",W[W.CurrencySymbol=16]="CurrencySymbol",W[W.CurrencyName=17]="CurrencyName",W[W.Currencies=18]="Currencies",W[W.Directionality=19]="Directionality",W[W.PluralCase=20]="PluralCase",W[W.ExtraData=21]="ExtraData",W))();const Fs="en-US";let oM=Fs;function Sm(n,t,e,r,i){if(n=re(n),Array.isArray(n))for(let o=0;o<n.length;o++)Sm(n[o],t,e,r,i);else{const o=De(),s=L();let a=bo(n)?n:re(n.provide),l=yw(n);const u=Zt(),c=1048575&u.providerIndexes,d=u.directiveStart,p=u.providerIndexes>>20;if(bo(n)||!n.multi){const m=new Fa(l,i,S),_=Om(a,t,i?c:c+p,d);-1===_?(dg(ac(u,s),o,a),Tm(o,n,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(m),s.push(m)):(e[_]=m,s[_]=m)}else{const m=Om(a,t,c+p,d),_=Om(a,t,c,c+p),v=m>=0&&e[m],b=_>=0&&e[_];if(i&&!b||!i&&!v){dg(ac(u,s),o,a);const w=function Z4(n,t,e,r,i){const o=new Fa(n,e,S);return o.multi=[],o.index=t,o.componentProviders=0,EM(o,i,r&&!e),o}(i?X4:K4,e.length,i,r,l);!i&&b&&(e[_].providerFactory=w),Tm(o,n,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(w),s.push(w)}else Tm(o,n,m>-1?m:_,EM(e[i?_:m],l,!i&&r));!i&&r&&b&&e[_].componentProviders++}}}function Tm(n,t,e,r){const i=bo(t),o=function c5(n){return!!n.useClass}(t);if(i||o){const l=(o?re(t.useClass):t).prototype.ngOnDestroy;if(l){const u=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const c=u.indexOf(e);-1===c?u.push(e,[r,l]):u[c+1].push(r,l)}else u.push(e,l)}}}function EM(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Om(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function K4(n,t,e,r){return Em(this.multi,[])}function X4(n,t,e,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=go(e,e[1],this.providerFactory.index,r);o=a.slice(0,s),Em(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Em(i,o);return o}function Em(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function ot(n,t=[]){return e=>{e.providersResolver=(r,i)=>function Q4(n,t,e){const r=De();if(r.firstCreatePass){const i=gr(n);Sm(e,r.data,r.blueprint,i,!0),Sm(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class Rs{}class AM{}class IM extends Rs{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new eP(this);const r=Rn(t);this._bootstrapComponents=ni(r.bootstrap),this._r3Injector=Iw(t,e,[{provide:Rs,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],He(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Am extends AM{constructor(t){super(),this.moduleType=t}create(t){return new IM(this.moduleType,t)}}class eV extends Rs{constructor(t,e,r){super(),this.componentFactoryResolver=new eP(this),this.instance=null;const i=new _w([...t,{provide:Rs,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],e||Pc(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function jc(n,t,e=null){return new eV(n,t,e).injector}let tV=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=hw(0,e.type),i=r.length>0?jc([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,i)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=q({token:n,providedIn:"environment",factory:()=>new n(V(Tr))}),n})();function kM(n){n.getStandaloneInjector=t=>t.get(tV).getOrCreateStandaloneInjector(n)}function et(n,t,e){const r=vn()+n,i=L();return i[r]===ce?Er(i,r,e?t.call(e):t()):function tl(n,t){return n[t]}(i,r)}function jM(n,t,e,r,i,o,s){const a=t+e;return wo(n,a,i,o)?Er(n,a+2,s?r.call(s,i,o):r(i,o)):function dl(n,t){const e=n[t];return e===ce?void 0:e}(n,a+2)}function ii(n,t){const e=De();let r;const i=n+22;e.firstCreatePass?(r=function vV(n,t){if(t)for(let e=t.length-1;e>=0;e--){const r=t[e];if(n===r.name)return r}}(t,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const o=r.factory||(r.factory=ho(r.type)),s=Xn(S);try{const a=sc(!1),l=o();return sc(a),function aB(n,t,e,r){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=r}(e,L(),i,l),l}finally{Xn(s)}}function oi(n,t,e,r){const i=n+22,o=L(),s=function is(n,t){return n[t]}(o,i);return function fl(n,t){return n[1].data[t].pure}(o,i)?jM(o,vn(),t,s.transform,e,r,s):s.transform(e,r)}function km(n){return t=>{setTimeout(n,void 0,t)}}const st=class MV extends sn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){let i=t,o=e||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=km(o),i&&(i=km(i)),s&&(s=km(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof Yn&&t.add(a),a}};function DV(){return this._results[Co()]()}class Fm{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Co(),r=Fm.prototype;r[e]||(r[e]=DV)}get changes(){return this._changes||(this._changes=new st)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=function Jn(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function FN(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],o=t[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let si=(()=>{class n{}return n.__NG_ELEMENT_ID__=TV,n})();const xV=si,SV=class extends xV{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t,e){const r=this._declarationTContainer.tViews,i=Dc(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,e||null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(r)),rm(r,i,t),new Za(i)}};function TV(){return Hc(Zt(),L())}function Hc(n,t){return 4&n.type?new SV(t,n,_s(n,t)):null}let vr=(()=>{class n{}return n.__NG_ELEMENT_ID__=OV,n})();function OV(){return GM(Zt(),L())}const EV=vr,qM=class extends EV{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return _s(this._hostTNode,this._hostLView)}get injector(){return new as(this._hostTNode,this._hostLView)}get parentInjector(){const t=cg(this._hostTNode,this._hostLView);if(n1(t)){const e=oc(t,this._hostLView),r=ic(t);return new as(e[1].data[r+8],e)}return new as(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=WM(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,i),s}createComponent(t,e,r,i,o){const s=t&&!function La(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Ja(Re(t)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const p=(s?u:this.parentInjector).get(Tr,null);p&&(o=p)}const c=l.create(u,i,void 0,o);return this.insert(c.hostView,a),c}insert(t,e){const r=t._lView,i=r[1];if(function nN(n){return pr(n[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],p=new qM(d,d[6],d[3]);p.detach(p.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function wL(n,t,e,r){const i=10+r,o=e.length;r>0&&(e[i-1][4]=t),r<o-10?(t[4]=e[i],p1(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function PL(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=64}(i,r,s,o);const a=kg(o,s),l=r[11],u=pc(l,s[7]);return null!==u&&function vL(n,t,e,r,i,o){r[0]=i,r[6]=t,qa(n,r,e,1,i,o)}(i,s[6],l,r,u,a),t.attachToViewContainerRef(),p1(Rm(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=WM(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=Eg(this._lContainer,e);r&&(cc(Rm(this._lContainer),e),B1(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=Eg(this._lContainer,e);return r&&null!=cc(Rm(this._lContainer),e)?new Za(r):null}_adjustIndex(t,e=0){return t??this.length+e}};function WM(n){return n[8]}function Rm(n){return n[8]||(n[8]=[])}function GM(n,t){let e;const r=t[n.index];if(pr(r))e=r;else{let i;if(8&n.type)i=Xt(r);else{const o=t[11];i=o.createComment("");const s=Bn(n,t);_o(o,pc(o,s),i,function SL(n,t){return n.nextSibling(t)}(o,s),!1)}t[n.index]=e=Qw(r,t,i,n),Sc(t,e)}return new qM(e,n,t)}class Nm{constructor(t){this.queryList=t,this.matches=null}clone(){return new Nm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lm{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){const s=e.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new Lm(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==JM(t,e).matches&&this.queries[e].setDirty()}}class YM{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class Bm{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==e?e.push(o):e=[o])}return null!==e?new Bm(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Vm{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Vm(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,e,AV(e,o)),this.matchTNodeWithReadOption(t,e,lc(e,t,o,!1,!1))}else r===si?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,lc(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===On||i===vr||i===si&&4&e.type)this.addMatch(e.index,-2);else{const o=lc(e,t,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function AV(n,t){const e=n.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===t)return e[r+1];return null}function kV(n,t,e,r){return-1===e?function IV(n,t){return 11&n.type?_s(n,t):4&n.type?Hc(n,t):null}(t,n):-2===e?function FV(n,t,e){return e===On?_s(t,n):e===si?Hc(t,n):e===vr?GM(t,n):void 0}(n,t,r):go(n,n[1],e,t)}function QM(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:kV(t,o[u],s[l+1],e.metadata.read))}i.matches=a}return i.matches}function Um(n,t,e,r){const i=n.queries.getByIndex(e),o=i.matches;if(null!==o){const s=QM(n,t,i,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const u=o[a+1],c=t[-l];for(let d=10;d<c.length;d++){const p=c[d];p[17]===p[3]&&Um(p[1],p,u,r)}if(null!==c[9]){const d=c[9];for(let p=0;p<d.length;p++){const m=d[p];Um(m[1],m,u,r)}}}}}return r}function hl(n){const t=L(),e=De(),r=WC();ng(r+1);const i=JM(e,r);if(n.dirty&&function tN(n){return 4==(4&n[2])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const o=i.crossesNgTemplate?Um(e,t,r,[]):QM(e,t,i,r);n.reset(o,C5),n.notifyOnChanges()}return!0}return!1}function $c(n,t,e){const r=De();r.firstCreatePass&&(function ZM(n,t,e){null===n.queries&&(n.queries=new Bm),n.queries.track(new Vm(t,e))}(r,new YM(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function XM(n,t,e){const r=new Fm(4==(4&e));$w(n,t,r,r.destroy),null===t[19]&&(t[19]=new Lm),t[19].queries.push(new Nm(r))}(r,L(),t)}function pl(){return function RV(n,t){return n[19].queries[t].queryList}(L(),WC())}function JM(n,t){return n.queries.getByIndex(t)}function qc(...n){}const Wc=new Q("Application Initializer");let Gc=(()=>{class n{constructor(e){this.appInits=e,this.resolve=qc,this.reject=qc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(il(o))e.push(o);else if(ym(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(V(Wc,8))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ml=new Q("AppId",{providedIn:"root",factory:function yD(){return`${qm()}${qm()}${qm()}`}});function qm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const vD=new Q("Platform Initializer"),Yc=new Q("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bD=new Q("appBootstrapListener"),CD=new Q("AnimationModuleType");let r8=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const ai=new Q("LocaleId",{providedIn:"root",factory:()=>be(ai,ie.Optional|ie.SkipSelf)||function i8(){return typeof $localize<"u"&&$localize.locale||Fs}()});class s8{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let wD=(()=>{class n{compileModuleSync(e){return new Am(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),o=ni(Rn(e).declarations).reduce((s,a)=>{const l=Re(a);return l&&s.push(new Ja(l)),s},[]);return new s8(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const u8=(()=>Promise.resolve(0))();function Wm(n){typeof Zone>"u"?u8.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class tt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!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),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function c8(){let n=Qe.requestAnimationFrame,t=Qe.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function h8(n){const t=()=>{!function f8(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Qe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Ym(n),n.isCheckStableRunning=!0,Gm(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Ym(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,s,a)=>{try{return DD(n),e.invokeTask(i,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),xD(n)}},onInvoke:(e,r,i,o,s,a,l)=>{try{return DD(n),e.invoke(i,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),xD(n)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Ym(n),Gm(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tt.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(tt.isInAngularZone())throw new N(909,!1)}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,d8,qc,qc);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const d8={};function Gm(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Ym(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function DD(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xD(n){n._nesting--,Gm(n)}class p8{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(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}const SD=new Q(""),Qc=new Q("");let Xm,Qm=(()=>{class n{constructor(e,r,i){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Xm||(function g8(n){Xm=n}(i),i.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{tt.assertNotInAngularZone(),Wm(()=>{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())Wm(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!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(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(V(tt),V(Km),V(Qc))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),Km=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Xm?.findTestabilityInTree(this,e,r)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ai=null;const TD=new Q("AllowMultipleToken"),Zm=new Q("PlatformDestroyListeners");class OD{constructor(t,e){this.name=t,this.token=e}}function AD(n,t,e=[]){const r=`Platform: ${t}`,i=new Q(r);return(o=[])=>{let s=Jm();if(!s||s.injector.get(TD,!1)){const a=[...e,...o,{provide:i,useValue:!0}];n?n(a):function y8(n){if(Ai&&!Ai.get(TD,!1))throw new N(400,!1);Ai=n;const t=n.get(kD);(function ED(n){const t=n.get(vD,null);t&&t.forEach(e=>e())})(n)}(function ID(n=[],t){return En.create({name:t,providers:[{provide:qg,useValue:"platform"},{provide:Zm,useValue:new Set([()=>Ai=null])},...n]})}(a,r))}return function b8(n){const t=Jm();if(!t)throw new N(401,!1);return t}()}}function Jm(){return Ai?.get(kD)??null}let kD=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const i=function RD(n,t){let e;return e="noop"===n?new p8:("zone.js"===n?void 0:n)||new tt(t),e}(r?.ngZone,function FD(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:tt,useValue:i}];return i.run(()=>{const s=En.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(ys,null);if(!l)throw new N(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Kc(this._modules,a),u.unsubscribe()})}),function ND(n,t,e){try{const r=e();return il(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(l,i,()=>{const u=a.injector.get(Gc);return u.runInitializers(),u.donePromise.then(()=>(function sM(n){Kn(n,"Expected localeId to be defined"),"string"==typeof n&&(oM=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(ai,Fs)||Fs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,r=[]){const i=LD({},r);return function m8(n,t,e){const r=new Am(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(Do);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new N(403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(Zm,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(V(En))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function LD(n,t){return Array.isArray(t)?t.reduce(LD,n):{...n,...t}}let Do=(()=>{class n{constructor(e,r,i){this._zone=e,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new vt(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new vt(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{tt.assertNotInAngularZone(),Wm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{tt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function wR(...n){const t=Ma(n),e=function gR(n,t){return"number"==typeof Rp(n)?n.pop():t}(n,1/0),r=n;return r.length?1===r.length?Qn(r[0]):Xo(e)(Et(r,t)):Yr}(o,s.pipe(function PR(n={}){const{connector:t=(()=>new sn),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return o=>{let s,a,l,u=0,c=!1,d=!1;const p=()=>{a?.unsubscribe(),a=void 0},m=()=>{p(),s=l=void 0,c=d=!1},_=()=>{const v=s;m(),v?.unsubscribe()};return Bt((v,b)=>{u++,!d&&!c&&p();const w=l=l??t();b.add(()=>{u--,0===u&&!d&&!c&&(a=Np(_,i))}),w.subscribe(b),!s&&u>0&&(s=new Pa({next:D=>w.next(D),error:D=>{d=!0,p(),a=Np(m,e,D),w.error(D)},complete:()=>{c=!0,p(),a=Np(m,r),w.complete()}}),Qn(v).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const i=e instanceof vw;if(!this._injector.get(Gc).done)throw!i&&function Jo(n){const t=Re(n)||an(n)||_n(n);return null!==t&&t.standalone}(e),new N(405,false);let s;s=i?e:this._injector.get(ms).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function _8(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Rs),u=s.create(En.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(SD,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Kc(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new N(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Kc(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(bD,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Kc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new N(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(V(tt),V(Tr),V(ys))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kc(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Xc=(()=>{class n{}return n.__NG_ELEMENT_ID__=w8,n})();function w8(n){return function P8(n,t,e){if(Ia(n)&&!e){const r=Vn(n.index,t);return new Za(r,r)}return 47&n.type?new Za(t[16],t):null}(Zt(),L(),16==(16&n))}class HD{constructor(){}supports(t){return el(t)}create(t){return new O8(t)}}const T8=(n,t)=>t;class O8{constructor(t){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=t||T8}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const s=!r||e&&e.currentIndex<zD(r,i,o)?e:r,a=zD(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{o||(o=[]);const u=a-i,c=l-i;if(u!=c){for(let p=0;p<u;p++){const m=p<o.length?o[p]:o[p]=0,_=m+p;c<=_&&_<u&&(o[p]=m+1)}o[s.previousIndex]=c-u}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!el(t))throw new N(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,s,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),r=!0),e=e._next}else i=0,function rB(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Co()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new E8(e,r),o,i),t}_verifyReinsertion(t,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new $D),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new $D),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class E8{constructor(t,e){this.item=t,this.trackById=e,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 A8{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class $D{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new A8,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zD(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+t+i}class qD{constructor(){}supports(t){return t instanceof Map||mm(t)}create(){return new I8}}class I8{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||mm(t)))throw new N(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new k8(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(r=>e(t[r],r))}}class k8{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function WD(){return new ed([new HD])}let ed=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||WD()),deps:[[n,new Ua,new Va]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new N(901,!1)}}return n.\u0275prov=q({token:n,providedIn:"root",factory:WD}),n})();function GD(){return new _l([new qD])}let _l=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||GD()),deps:[[n,new Ua,new Va]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(r)return r;throw new N(901,!1)}}return n.\u0275prov=q({token:n,providedIn:"root",factory:GD}),n})();const N8=AD(null,"core",[]);let L8=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(V(Do))},n.\u0275mod=At({type:n}),n.\u0275inj=bt({}),n})();function Bs(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let i_=null;function Fr(){return i_}class U8{}const lt=new Q("DocumentToken");let o_=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return function j8(){return V(YD)}()},providedIn:"platform"}),n})();const H8=new Q("Location Initialized");let YD=(()=>{class n extends o_{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Fr().getBaseHref(this._doc)}onPopState(e){const r=Fr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Fr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,r,i){QD()?this._history.pushState(e,r,i):this.location.hash=i}replaceState(e,r,i){QD()?this._history.replaceState(e,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:function(){return function $8(){return new YD(V(lt))}()},providedIn:"platform"}),n})();function QD(){return!!window.history.pushState}function s_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function KD(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ui(n){return n&&"?"!==n[0]?"?"+n:n}let So=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return be(ZD)},providedIn:"root"}),n})();const XD=new Q("appBaseHref");let ZD=(()=>{class n extends So{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??be(lt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return s_(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+ui(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){const s=this.prepareExternalUrl(i+ui(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){const s=this.prepareExternalUrl(i+ui(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(V(o_),V(XD,8))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),z8=(()=>{class n extends So{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=s_(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+ui(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+ui(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(V(o_),V(XD,8))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),a_=(()=>{class n{constructor(e){this._subject=new st,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function G8(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(KD(JD(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+ui(r))}normalize(e){return n.stripTrailingSlash(function W8(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._basePath,JD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ui(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ui(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r,complete:i})}}return n.normalizeQueryParams=ui,n.joinWithSlash=s_,n.stripTrailingSlash=KD,n.\u0275fac=function(e){return new(e||n)(V(So))},n.\u0275prov=q({token:n,factory:function(){return function q8(){return new a_(V(So))}()},providedIn:"root"}),n})();function JD(n){return n.replace(/\/index.html$/,"")}var wt=(()=>((wt=wt||{})[wt.Format=0]="Format",wt[wt.Standalone=1]="Standalone",wt))(),Pe=(()=>((Pe=Pe||{})[Pe.Narrow=0]="Narrow",Pe[Pe.Abbreviated=1]="Abbreviated",Pe[Pe.Wide=2]="Wide",Pe[Pe.Short=3]="Short",Pe))(),ut=(()=>((ut=ut||{})[ut.Short=0]="Short",ut[ut.Medium=1]="Medium",ut[ut.Long=2]="Long",ut[ut.Full=3]="Full",ut))(),te=(()=>((te=te||{})[te.Decimal=0]="Decimal",te[te.Group=1]="Group",te[te.List=2]="List",te[te.PercentSign=3]="PercentSign",te[te.PlusSign=4]="PlusSign",te[te.MinusSign=5]="MinusSign",te[te.Exponential=6]="Exponential",te[te.SuperscriptingExponent=7]="SuperscriptingExponent",te[te.PerMille=8]="PerMille",te[te.Infinity=9]="Infinity",te[te.NaN=10]="NaN",te[te.TimeSeparator=11]="TimeSeparator",te[te.CurrencyDecimal=12]="CurrencyDecimal",te[te.CurrencyGroup=13]="CurrencyGroup",te))();function td(n,t){return nr(Cn(n)[W.DateFormat],t)}function nd(n,t){return nr(Cn(n)[W.TimeFormat],t)}function rd(n,t){return nr(Cn(n)[W.DateTimeFormat],t)}function tr(n,t){const e=Cn(n),r=e[W.NumberSymbols][t];if(typeof r>"u"){if(t===te.CurrencyDecimal)return e[W.NumberSymbols][te.Decimal];if(t===te.CurrencyGroup)return e[W.NumberSymbols][te.Group]}return r}function tx(n){if(!n[W.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[W.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function u_(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const s6=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,yl={},a6=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ht=(()=>((Ht=Ht||{})[Ht.Short=0]="Short",Ht[Ht.ShortGMT=1]="ShortGMT",Ht[Ht.Long=2]="Long",Ht[Ht.Extended=3]="Extended",Ht))(),oe=(()=>((oe=oe||{})[oe.FullYear=0]="FullYear",oe[oe.Month=1]="Month",oe[oe.Date=2]="Date",oe[oe.Hours=3]="Hours",oe[oe.Minutes=4]="Minutes",oe[oe.Seconds=5]="Seconds",oe[oe.FractionalSeconds=6]="FractionalSeconds",oe[oe.Day=7]="Day",oe))(),pe=(()=>((pe=pe||{})[pe.DayPeriods=0]="DayPeriods",pe[pe.Days=1]="Days",pe[pe.Months=2]="Months",pe[pe.Eras=3]="Eras",pe))();function l6(n,t,e,r){let i=function _6(n){if(ix(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[i,o=1,s=1]=n.split("-").map(a=>+a);return id(i,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let r;if(r=n.match(s6))return function y6(n){const t=new Date(0);let e=0,r=0;const i=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),r=Number(n[9]+n[11])),i.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-r,l=Number(n[6]||0),u=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,u),t}(r)}const t=new Date(n);if(!ix(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=ci(e,t)||t;let a,s=[];for(;t;){if(a=a6.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=i.getTimezoneOffset();r&&(l=rx(r,l),i=function m6(n,t,e){const r=e?-1:1,i=n.getTimezoneOffset();return function g6(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,r*(rx(t,i)-i))}(i,r,!0));let u="";return s.forEach(c=>{const d=function p6(n){if(d_[n])return d_[n];let t;switch(n){case"G":case"GG":case"GGG":t=Ke(pe.Eras,Pe.Abbreviated);break;case"GGGG":t=Ke(pe.Eras,Pe.Wide);break;case"GGGGG":t=Ke(pe.Eras,Pe.Narrow);break;case"y":t=kt(oe.FullYear,1,0,!1,!0);break;case"yy":t=kt(oe.FullYear,2,0,!0,!0);break;case"yyy":t=kt(oe.FullYear,3,0,!1,!0);break;case"yyyy":t=kt(oe.FullYear,4,0,!1,!0);break;case"Y":t=ld(1);break;case"YY":t=ld(2,!0);break;case"YYY":t=ld(3);break;case"YYYY":t=ld(4);break;case"M":case"L":t=kt(oe.Month,1,1);break;case"MM":case"LL":t=kt(oe.Month,2,1);break;case"MMM":t=Ke(pe.Months,Pe.Abbreviated);break;case"MMMM":t=Ke(pe.Months,Pe.Wide);break;case"MMMMM":t=Ke(pe.Months,Pe.Narrow);break;case"LLL":t=Ke(pe.Months,Pe.Abbreviated,wt.Standalone);break;case"LLLL":t=Ke(pe.Months,Pe.Wide,wt.Standalone);break;case"LLLLL":t=Ke(pe.Months,Pe.Narrow,wt.Standalone);break;case"w":t=c_(1);break;case"ww":t=c_(2);break;case"W":t=c_(1,!0);break;case"d":t=kt(oe.Date,1);break;case"dd":t=kt(oe.Date,2);break;case"c":case"cc":t=kt(oe.Day,1);break;case"ccc":t=Ke(pe.Days,Pe.Abbreviated,wt.Standalone);break;case"cccc":t=Ke(pe.Days,Pe.Wide,wt.Standalone);break;case"ccccc":t=Ke(pe.Days,Pe.Narrow,wt.Standalone);break;case"cccccc":t=Ke(pe.Days,Pe.Short,wt.Standalone);break;case"E":case"EE":case"EEE":t=Ke(pe.Days,Pe.Abbreviated);break;case"EEEE":t=Ke(pe.Days,Pe.Wide);break;case"EEEEE":t=Ke(pe.Days,Pe.Narrow);break;case"EEEEEE":t=Ke(pe.Days,Pe.Short);break;case"a":case"aa":case"aaa":t=Ke(pe.DayPeriods,Pe.Abbreviated);break;case"aaaa":t=Ke(pe.DayPeriods,Pe.Wide);break;case"aaaaa":t=Ke(pe.DayPeriods,Pe.Narrow);break;case"b":case"bb":case"bbb":t=Ke(pe.DayPeriods,Pe.Abbreviated,wt.Standalone,!0);break;case"bbbb":t=Ke(pe.DayPeriods,Pe.Wide,wt.Standalone,!0);break;case"bbbbb":t=Ke(pe.DayPeriods,Pe.Narrow,wt.Standalone,!0);break;case"B":case"BB":case"BBB":t=Ke(pe.DayPeriods,Pe.Abbreviated,wt.Format,!0);break;case"BBBB":t=Ke(pe.DayPeriods,Pe.Wide,wt.Format,!0);break;case"BBBBB":t=Ke(pe.DayPeriods,Pe.Narrow,wt.Format,!0);break;case"h":t=kt(oe.Hours,1,-12);break;case"hh":t=kt(oe.Hours,2,-12);break;case"H":t=kt(oe.Hours,1);break;case"HH":t=kt(oe.Hours,2);break;case"m":t=kt(oe.Minutes,1);break;case"mm":t=kt(oe.Minutes,2);break;case"s":t=kt(oe.Seconds,1);break;case"ss":t=kt(oe.Seconds,2);break;case"S":t=kt(oe.FractionalSeconds,1);break;case"SS":t=kt(oe.FractionalSeconds,2);break;case"SSS":t=kt(oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=sd(Ht.Short);break;case"ZZZZZ":t=sd(Ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=sd(Ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=sd(Ht.Long);break;default:return null}return d_[n]=t,t}(c);u+=d?d(i,e,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function id(n,t,e){const r=new Date(0);return r.setFullYear(n,t,e),r.setHours(0,0,0),r}function ci(n,t){const e=function Y8(n){return Cn(n)[W.LocaleId]}(n);if(yl[e]=yl[e]||{},yl[e][t])return yl[e][t];let r="";switch(t){case"shortDate":r=td(n,ut.Short);break;case"mediumDate":r=td(n,ut.Medium);break;case"longDate":r=td(n,ut.Long);break;case"fullDate":r=td(n,ut.Full);break;case"shortTime":r=nd(n,ut.Short);break;case"mediumTime":r=nd(n,ut.Medium);break;case"longTime":r=nd(n,ut.Long);break;case"fullTime":r=nd(n,ut.Full);break;case"short":const i=ci(n,"shortTime"),o=ci(n,"shortDate");r=od(rd(n,ut.Short),[i,o]);break;case"medium":const s=ci(n,"mediumTime"),a=ci(n,"mediumDate");r=od(rd(n,ut.Medium),[s,a]);break;case"long":const l=ci(n,"longTime"),u=ci(n,"longDate");r=od(rd(n,ut.Long),[l,u]);break;case"full":const c=ci(n,"fullTime"),d=ci(n,"fullDate");r=od(rd(n,ut.Full),[c,d])}return r&&(yl[e][t]=r),r}function od(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,r){return null!=t&&r in t?t[r]:e})),n}function Cr(n,t,e="-",r,i){let o="";(n<0||i&&n<=0)&&(i?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function kt(n,t,e=0,r=!1,i=!1){return function(o,s){let a=function c6(n,t){switch(n){case oe.FullYear:return t.getFullYear();case oe.Month:return t.getMonth();case oe.Date:return t.getDate();case oe.Hours:return t.getHours();case oe.Minutes:return t.getMinutes();case oe.Seconds:return t.getSeconds();case oe.FractionalSeconds:return t.getMilliseconds();case oe.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,o);if((e>0||a>-e)&&(a+=e),n===oe.Hours)0===a&&-12===e&&(a=12);else if(n===oe.FractionalSeconds)return function u6(n,t){return Cr(n,3).substring(0,t)}(a,t);const l=tr(s,te.MinusSign);return Cr(a,t,l,r,i)}}function Ke(n,t,e=wt.Format,r=!1){return function(i,o){return function d6(n,t,e,r,i,o){switch(e){case pe.Months:return function X8(n,t,e){const r=Cn(n),o=nr([r[W.MonthsFormat],r[W.MonthsStandalone]],t);return nr(o,e)}(t,i,r)[n.getMonth()];case pe.Days:return function K8(n,t,e){const r=Cn(n),o=nr([r[W.DaysFormat],r[W.DaysStandalone]],t);return nr(o,e)}(t,i,r)[n.getDay()];case pe.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const u=function t6(n){const t=Cn(n);return tx(t),(t[W.ExtraData][2]||[]).map(r=>"string"==typeof r?u_(r):[u_(r[0]),u_(r[1])])}(t),c=function n6(n,t,e){const r=Cn(n);tx(r);const o=nr([r[W.ExtraData][0],r[W.ExtraData][1]],t)||[];return nr(o,e)||[]}(t,i,r),d=u.findIndex(p=>{if(Array.isArray(p)){const[m,_]=p,v=s>=m.hours&&a>=m.minutes,b=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(v&&b)return!0}else if(v||b)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(-1!==d)return c[d]}return function Q8(n,t,e){const r=Cn(n),o=nr([r[W.DayPeriodsFormat],r[W.DayPeriodsStandalone]],t);return nr(o,e)}(t,i,r)[s<12?0:1];case pe.Eras:return function Z8(n,t){return nr(Cn(n)[W.Eras],t)}(t,r)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(i,o,n,t,e,r)}}function sd(n){return function(t,e,r){const i=-1*r,o=tr(e,te.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(n){case Ht.Short:return(i>=0?"+":"")+Cr(s,2,o)+Cr(Math.abs(i%60),2,o);case Ht.ShortGMT:return"GMT"+(i>=0?"+":"")+Cr(s,1,o);case Ht.Long:return"GMT"+(i>=0?"+":"")+Cr(s,2,o)+":"+Cr(Math.abs(i%60),2,o);case Ht.Extended:return 0===r?"Z":(i>=0?"+":"")+Cr(s,2,o)+":"+Cr(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function nx(n){return id(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function c_(n,t=!1){return function(e,r){let i;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();i=1+Math.floor((s+o)/7)}else{const o=nx(e),s=function h6(n){const t=id(n,0,1).getDay();return id(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Cr(i,n,tr(r,te.MinusSign))}}function ld(n,t=!1){return function(e,r){return Cr(nx(e).getFullYear(),n,tr(r,te.MinusSign),t)}}const d_={};function rx(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function ix(n){return n instanceof Date&&!isNaN(n.valueOf())}function lx(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,o]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let Ii=(()=>{class n{constructor(e,r,i,o){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(el(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${He(r.item)}`);this._toggleClass(r.item,!0)}),e.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!0)):Object.keys(e).forEach(r=>this._toggleClass(r,!!e[r])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!1)):Object.keys(e).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(e,r){(e=e.trim())&&e.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(e){return new(e||n)(S(ed),S(_l),S(On),S(ti))},n.\u0275dir=se({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class A6{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}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 fn=(()=>{class n{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new A6(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),dx(a,i)}});for(let i=0,o=r.length;i<o;i++){const a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{dx(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(S(vr),S(si),S(ed))},n.\u0275dir=se({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function dx(n,t){n.context.$implicit=t.item}let Yt=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new k6,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fx("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fx("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(S(vr),S(si))},n.\u0275dir=se({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class k6{constructor(){this.$implicit=null,this.ngIf=null}}function fx(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${He(t)}'.`)}const Q6=new Q("DATE_PIPE_DEFAULT_TIMEZONE"),K6=new Q("DATE_PIPE_DEFAULT_OPTIONS");let rr=(()=>{class n{constructor(e,r,i){this.locale=e,this.defaultTimezone=r,this.defaultOptions=i}transform(e,r,i,o){if(null==e||""===e||e!=e)return null;try{return l6(e,r??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,i??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function wr(n,t){return new N(2100,!1)}()}}}return n.\u0275fac=function(e){return new(e||n)(S(ai,16),S(Q6,24),S(K6,24))},n.\u0275pipe=xn({name:"date",type:n,pure:!0,standalone:!0}),n})(),cd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({}),n})();const gx="browser";let dU=(()=>{class n{}return n.\u0275prov=q({token:n,providedIn:"root",factory:()=>new fU(V(lt),window)}),n})();class fU{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function hU(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=mx(this.window.history)||mx(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function mx(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class _x{}class UU extends U8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class P_ extends UU{static makeCurrent(){!function V8(n){i_||(i_=n)}(new P_)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function jU(){return Cl=Cl||document.querySelector("base"),Cl?Cl.getAttribute("href"):null}();return null==e?null:function HU(n){fd=fd||document.createElement("a"),fd.setAttribute("href",n);const t=fd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Cl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return lx(document.cookie,t)}}let fd,Cl=null;const Px=new Q("TRANSITION_ID"),zU=[{provide:Wc,useFactory:function $U(n,t,e){return()=>{e.get(Gc).donePromise.then(()=>{const r=Fr(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[Px,lt,En],multi:!0}];let WU=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const hd=new Q("EventManagerPlugins");let pd=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(V(hd),V(tt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();class Mx{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=Fr().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let Dx=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),wl=(()=>{class n extends Dx{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(xx),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(xx))}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();function xx(n){Fr().remove(n)}const M_={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/"},D_=/%COMP%/g;function x_(n,t){return t.flat(100).map(e=>e.replace(D_,n))}function Ox(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let gd=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new S_(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case fr.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new ZU(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case fr.ShadowDom:return new JU(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=x_(r.id,r.styles);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(V(pd),V(wl),V(ml))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();class S_{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(M_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(Ax(t)?t.content:t).appendChild(e)}insertBefore(t,e,r){t&&(Ax(t)?t.content:t).insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const o=M_[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=M_[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(Sn.DashCase|Sn.Important)?t.style.setProperty(e,r,i&Sn.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Sn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Ox(r)):this.eventManager.addEventListener(t,e,Ox(r))}}function Ax(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ZU extends S_{constructor(t,e,r,i){super(t),this.component=r;const o=x_(i+"-"+r.id,r.styles);e.addStyles(o),this.contentAttr=function QU(n){return"_ngcontent-%COMP%".replace(D_,n)}(i+"-"+r.id),this.hostAttr=function KU(n){return"_nghost-%COMP%".replace(D_,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class JU extends S_{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=x_(i.id,i.styles);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let ej=(()=>{class n extends Mx{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const Ix=["alt","control","meta","shift"],tj={"\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"},nj={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let rj=(()=>{class n extends Mx{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fr().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ix.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(e,r){let i=tj[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Ix.forEach(s=>{s!==i&&(0,nj[s])(e)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const Fx=[{provide:Yc,useValue:gx},{provide:vD,useValue:function ij(){P_.makeCurrent()},multi:!0},{provide:lt,useFactory:function sj(){return function RL(n){Lg=n}(document),document},deps:[]}],aj=AD(N8,"browser",Fx),Rx=new Q(""),Nx=[{provide:Qc,useClass:class qU{addToWindow(t){Qe.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Qe.getAllAngularTestabilities=()=>t.getAllTestabilities(),Qe.getAllAngularRootElements=()=>t.getAllRootElements(),Qe.frameworkStabilizers||(Qe.frameworkStabilizers=[]),Qe.frameworkStabilizers.push(r=>{const i=Qe.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,r){return null==e?null:t.getTestability(e)??(r?Fr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:SD,useClass:Qm,deps:[tt,Km,Qc]},{provide:Qm,useClass:Qm,deps:[tt,Km,Qc]}],Lx=[{provide:qg,useValue:"root"},{provide:ys,useFactory:function oj(){return new ys},deps:[]},{provide:hd,useClass:ej,multi:!0,deps:[lt,tt,Yc]},{provide:hd,useClass:rj,multi:!0,deps:[lt]},{provide:gd,useClass:gd,deps:[pd,wl,ml]},{provide:Qa,useExisting:gd},{provide:Dx,useExisting:wl},{provide:wl,useClass:wl,deps:[lt]},{provide:pd,useClass:pd,deps:[hd,tt]},{provide:_x,useClass:WU,deps:[]},[]];let Bx=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:ml,useValue:e.appId},{provide:Px,useExisting:ml},zU]}}}return n.\u0275fac=function(e){return new(e||n)(V(Rx,12))},n.\u0275mod=At({type:n}),n.\u0275inj=bt({providers:[...Lx,...Nx],imports:[cd,L8]}),n})(),Vx=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:function(e){let r=null;return r=e?new e:function uj(){return new Vx(V(lt))}(),r},providedIn:"root"}),n})();typeof window<"u"&&window;let E_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(e){let r=null;return r=e?new(e||n):V(Hx),r},providedIn:"root"}),n})(),Hx=(()=>{class n extends E_{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case $e.NONE:return r;case $e.HTML:return Sr(r,"HTML")?jn(r):aw(this._doc,String(r)).toString();case $e.STYLE:return Sr(r,"Style")?jn(r):r;case $e.SCRIPT:if(Sr(r,"Script"))return jn(r);throw new Error("unsafe value used in a script context");case $e.URL:return Sr(r,"URL")?jn(r):vc(String(r));case $e.RESOURCE_URL:if(Sr(r,"ResourceURL"))return jn(r);throw new Error(`unsafe value used in a resource URL context (see ${Uu})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Uu})`)}}bypassSecurityTrustHtml(e){return function HL(n){return new NL(n)}(e)}bypassSecurityTrustStyle(e){return function $L(n){return new LL(n)}(e)}bypassSecurityTrustScript(e){return function zL(n){return new BL(n)}(e)}bypassSecurityTrustUrl(e){return function qL(n){return new VL(n)}(e)}bypassSecurityTrustResourceUrl(e){return function WL(n){return new UL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:function(e){let r=null;return r=e?new e:function mj(n){return new Hx(n.get(lt))}(V(En)),r},providedIn:"root"}),n})();const{isArray:_j}=Array,{getPrototypeOf:yj,prototype:vj,keys:bj}=Object;function $x(n){if(1===n.length){const t=n[0];if(_j(t))return{args:t,keys:null};if(function Cj(n){return n&&"object"==typeof n&&yj(n)===vj}(t)){const e=bj(t);return{args:e.map(r=>t[r]),keys:e}}}return{args:n,keys:null}}const{isArray:wj}=Array;function zx(n){return de(t=>function Pj(n,t){return wj(t)?n(...t):n(t)}(n,t))}function qx(n,t){return n.reduce((e,r,i)=>(e[r]=t[i],e),{})}let Wx=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(S(ti),S(On))},n.\u0275dir=se({type:n}),n})(),To=(()=>{class n extends Wx{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=se({type:n,features:[Ne]}),n})();const Rr=new Q("NgValueAccessor"),Dj={provide:Rr,useExisting:Ye(()=>Pl),multi:!0};let Pl=(()=>{class n extends To{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=se({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&M("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[ot([Dj]),Ne]}),n})();const xj={provide:Rr,useExisting:Ye(()=>en),multi:!0},Tj=new Q("CompositionEventMode");let en=(()=>{class n extends Wx{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Sj(){const n=Fr()?Fr().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(S(ti),S(On),S(Tj,8))},n.\u0275dir=se({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,r){1&e&&M("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[ot([xj]),Ne]}),n})();function Fi(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Gx(n){return null!=n&&"number"==typeof n.length}const hn=new Q("NgValidators"),Ri=new Q("NgAsyncValidators"),Ej=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Yx{static min(t){return function Qx(n){return t=>{if(Fi(t.value)||Fi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function Kx(n){return t=>{if(Fi(t.value)||Fi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Xx(n){return Fi(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Zx(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function Jx(n){return Fi(n.value)||Ej.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function eS(n){return t=>Fi(t.value)||!Gx(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function tS(n){return t=>Gx(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function nS(n){if(!n)return md;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),r=>{if(Fi(r.value))return null;const i=r.value;return t.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}(t)}static nullValidator(t){return null}static compose(t){return lS(t)}static composeAsync(t){return uS(t)}}function md(n){return null}function rS(n){return null!=n}function iS(n){return il(n)?Et(n):n}function oS(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function sS(n,t){return t.map(e=>e(n))}function aS(n){return n.map(t=>function Aj(n){return!n.validate}(t)?t:e=>t.validate(e))}function lS(n){if(!n)return null;const t=n.filter(rS);return 0==t.length?null:function(e){return oS(sS(e,t))}}function A_(n){return null!=n?lS(aS(n)):null}function uS(n){if(!n)return null;const t=n.filter(rS);return 0==t.length?null:function(e){return function Mj(...n){const t=pC(n),{args:e,keys:r}=$x(n),i=new vt(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c<s;c++){let d=!1;Qn(e[c]).subscribe(Ot(o,p=>{d||(d=!0,u--),a[c]=p},()=>l--,void 0,()=>{(!l||!d)&&(u||o.next(r?qx(r,a):a),o.complete())}))}});return t?i.pipe(zx(t)):i}(sS(e,t).map(iS)).pipe(de(oS))}}function I_(n){return null!=n?uS(aS(n)):null}function cS(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function dS(n){return n._rawValidators}function fS(n){return n._rawAsyncValidators}function k_(n){return n?Array.isArray(n)?n:[n]:[]}function _d(n,t){return Array.isArray(n)?n.includes(t):n===t}function hS(n,t){const e=k_(t);return k_(n).forEach(i=>{_d(e,i)||e.push(i)}),e}function pS(n,t){return k_(t).filter(e=>!_d(n,e))}class gS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=A_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=I_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Pn extends gS{get formDirective(){return null}get path(){return null}}class Ni extends gS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class mS{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let zt=(()=>{class n extends mS{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(S(Ni,2))},n.\u0275dir=se({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Fc("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ne]}),n})(),_S=(()=>{class n extends mS{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(S(Pn,10))},n.\u0275dir=se({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&Fc("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Ne]}),n})();const Ml="VALID",vd="INVALID",Vs="PENDING",Dl="DISABLED";function L_(n){return(bd(n)?n.validators:n)||null}function B_(n,t){return(bd(t)?t.asyncValidators:n)||null}function bd(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function vS(n,t,e){const r=n.controls;if(!(t?Object.keys(r):r).length)throw new N(1e3,"");if(!r[e])throw new N(1001,"")}function bS(n,t,e){n._forEachChild((r,i)=>{if(void 0===e[i])throw new N(1002,"")})}class Cd{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ml}get invalid(){return this.status===vd}get pending(){return this.status==Vs}get disabled(){return this.status===Dl}get enabled(){return this.status!==Dl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(hS(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(hS(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(pS(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(pS(t,this._rawAsyncValidators))}hasValidator(t){return _d(this._rawValidators,t)}hasAsyncValidator(t){return _d(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Vs,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Dl,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ml,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ml||this.status===Vs)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dl:Ml}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Vs,this._hasOwnPendingAsyncValidator=!0;const e=iS(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new st,this.statusChanges=new st}_calculateStatus(){return this._allControlsDisabled()?Dl:this.errors?vd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vs)?Vs:this._anyControlsHaveStatus(vd)?vd:Ml}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){bd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function Bj(n){return Array.isArray(n)?A_(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Vj(n){return Array.isArray(n)?I_(n):n||null}(this._rawAsyncValidators)}}class xl extends Cd{constructor(t,e,r){super(L_(e),B_(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){bS(this,0,t),Object.keys(t).forEach(r=>{vS(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{const i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class CS extends xl{}const Us=new Q("CallSetDisabledState",{providedIn:"root",factory:()=>wd}),wd="always";function Pd(n,t){return[...t.path,n]}function Sl(n,t,e=wd){V_(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function jj(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&wS(n,t)})}(n,t),function $j(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function Hj(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&wS(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function Uj(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Md(n,t,e=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),xd(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Dd(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function V_(n,t){const e=dS(n);null!==t.validator?n.setValidators(cS(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=fS(n);null!==t.asyncValidator?n.setAsyncValidators(cS(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();Dd(t._rawValidators,i),Dd(t._rawAsyncValidators,i)}function xd(n,t){let e=!1;if(null!==n){if(null!==t.validator){const i=dS(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.validator);o.length!==i.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const i=fS(n);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(e=!0,n.setAsyncValidators(o))}}}const r=()=>{};return Dd(t._rawValidators,r),Dd(t._rawAsyncValidators,r),e}function wS(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function j_(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function H_(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===en?e=o:function Wj(n){return Object.getPrototypeOf(n.constructor)===To}(o)?r=o:i=o}),i||r||e||null}function DS(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function xS(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ol=class extends Cd{constructor(t=null,e,r){super(L_(e),B_(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=xS(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){DS(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){DS(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){xS(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Xj={provide:Ni,useExisting:Ye(()=>Ft)},OS=(()=>Promise.resolve())();let Ft=(()=>{class n extends Ni{constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Ol,this._registered=!1,this.update=new st,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=H_(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),j_(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Sl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){OS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=0!==r&&Bs(r);OS.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Pd(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(S(Pn,9),S(hn,10),S(Ri,10),S(Rr,10),S(Xc,8),S(Us,8))},n.\u0275dir=se({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ot([Xj]),Ne,Ln]}),n})(),ES=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=se({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const Zj={provide:Rr,useExisting:Ye(()=>z_),multi:!0};let z_=(()=>{class n extends To{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=se({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&M("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[ot([Zj]),Ne]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({}),n})();const q_=new Q("NgModelWithFormControlWarning"),rH={provide:Pn,useExisting:Ye(()=>Sd)};let Sd=(()=>{class n extends Pn{constructor(e,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new st,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return Sl(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Md(e.control||null,e,!1),function Gj(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function MS(n,t){n._syncPendingControls(),t.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(Md(r||null,e),(n=>n instanceof Ol)(i)&&(Sl(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function PS(n,t){V_(n,t)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function zj(n,t){return xd(n,t)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){V_(this.form,this),this._oldForm&&xd(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(S(hn,10),S(Ri,10),S(Us,8))},n.\u0275dir=se({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&M("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([rH]),Ne,Ln]}),n})();const sH={provide:Ni,useExisting:Ye(()=>Y_)};let Y_=(()=>{class n extends Ni{constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new st,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=H_(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),j_(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Pd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(S(Pn,13),S(hn,10),S(Ri,10),S(Rr,10),S(q_,8))},n.\u0275dir=se({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ot([sH]),Ne,Ln]}),n})();const aH={provide:Rr,useExisting:Ye(()=>Mn),multi:!0};function NS(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let Mn=(()=>{class n extends To{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const i=NS(this._getOptionId(e),e);this.setProperty("value",i)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function lH(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=se({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&M("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ot([aH]),Ne]}),n})(),$n=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(NS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(S(On),S(ti),S(Mn,9))},n.\u0275dir=se({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const uH={provide:Rr,useExisting:Ye(()=>Q_),multi:!0};function LS(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let Q_=(()=>{class n extends To{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const i=e.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const u=this._getOptionValue(s[a].value);i.push(u)}}else{const s=r.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const u=this._getOptionValue(l.value);i.push(u)}}}this.value=i,e(i)}}_registerOption(e){const r=(this._idCounter++).toString();return this._optionMap.set(r,e),r}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r)._value,e))return r;return null}_getOptionValue(e){const r=function cH(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r)._value:e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=se({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,r){1&e&&M("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ot([uH]),Ne]}),n})(),zn=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(LS(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(LS(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(S(On),S(ti),S(Q_,9))},n.\u0275dir=se({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})(),GS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[AS]}),n})(),X_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Us,useValue:e.callSetDisabledState??wd}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[GS]}),n})(),YS=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:q_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Us,useValue:e.callSetDisabledState??wd}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[GS]}),n})();class QS extends Cd{constructor(t,e,r){super(L_(e),B_(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){bS(this,0,t),t.forEach((r,i)=>{vS(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function KS(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let vH=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,r=null){const i=this._reduceControls(e);let o={};return KS(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new xl(i,o)}record(e,r=null){const i=this._reduceControls(e);return new CS(i,r)}control(e,r,i){let o={};return this.useNonNullable?(KS(r)?o=r:(o.validators=r,o.asyncValidators=i),new Ol(e,{...o,nonNullable:!0})):new Ol(e,r,i)}array(e,r,i){const o=e.map(s=>this._createControl(s));return new QS(o,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return e instanceof Ol||e instanceof Cd?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:YS}),n})();function J(...n){return Et(n,Ma(n))}class ir extends sn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:r}=this;if(t)throw e;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}const Td=Ca(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function XS(...n){const t=Ma(n),e=pC(n),{args:r,keys:i}=$x(n);if(0===r.length)return Et([],t);const o=new vt(function bH(n,t,e=Mi){return r=>{ZS(t,()=>{const{length:i}=n,o=new Array(i);let s=i,a=i;for(let l=0;l<i;l++)ZS(t,()=>{const u=Et(n[l],t);let c=!1;u.subscribe(Ot(r,d=>{o[l]=d,c||(c=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,i?s=>qx(i,s):Mi));return e?o.pipe(zx(e)):o}function ZS(n,t,e){n?Gr(e,n,t):t()}function Z_(...n){return function CH(){return Xo(1)}()(Et(n,Ma(n)))}function J_(n){return new vt(t=>{Qn(n()).subscribe(t)})}function El(n,t){const e=Ge(n)?n:()=>n,r=i=>i.error(e());return new vt(t?i=>t.schedule(r,0,i):r)}function ey(){return Bt((n,t)=>{let e=null;n._refCount++;const r=Ot(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const i=n._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});n.subscribe(r),r.closed||(e=n.connect())})}class JS extends vt{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,eC(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Yn;const e=this.getSubject();t.add(this.source.subscribe(Ot(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Yn.EMPTY)}return t}refCount(){return ey()(this)}}function Nr(n,t){return Bt((e,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();e.subscribe(Ot(r,l=>{i?.unsubscribe();let u=0;const c=o++;Qn(n(l,c)).subscribe(i=Ot(r,d=>r.next(t?t(l,d,c,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Al(n){return n<=0?()=>Yr:Bt((t,e)=>{let r=0;t.subscribe(Ot(e,i=>{++r<=n&&(e.next(i),n<=r&&e.complete())}))})}function di(n,t){return Bt((e,r)=>{let i=0;e.subscribe(Ot(r,o=>n.call(t,o,i++)&&r.next(o)))})}function Od(n){return Bt((t,e)=>{let r=!1;t.subscribe(Ot(e,i=>{r=!0,e.next(i)},()=>{r||e.next(n),e.complete()}))})}function eT(n=PH){return Bt((t,e)=>{let r=!1;t.subscribe(Ot(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(n())))})}function PH(){return new Td}function Li(n,t){const e=arguments.length>=2;return r=>r.pipe(n?di((i,o)=>n(i,o,r)):Mi,Al(1),e?Od(t):eT(()=>new Td))}function Bi(n,t){return Ge(t)?Vt(n,t,1):Vt(n,1)}function pn(n,t,e){const r=Ge(n)||t||e?{next:n,error:t,complete:e}:n;return r?Bt((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Ot(o,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),o.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):Mi}function Vi(n){return Bt((t,e)=>{let o,r=null,i=!1;r=t.subscribe(Ot(e,void 0,void 0,s=>{o=Qn(n(s,Vi(n)(t))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function MH(n,t,e,r,i){return(o,s)=>{let a=e,l=t,u=0;o.subscribe(Ot(s,c=>{const d=u++;l=a?n(l,c,d):(a=!0,c),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function tT(n,t){return Bt(MH(n,t,arguments.length>=2,!0))}function ty(n){return n<=0?()=>Yr:Bt((t,e)=>{let r=[];t.subscribe(Ot(e,i=>{r.push(i),n<r.length&&r.shift()},()=>{for(const i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function nT(n,t){const e=arguments.length>=2;return r=>r.pipe(n?di((i,o)=>n(i,o,r)):Mi,ty(1),e?Od(t):eT(()=>new Td))}function ny(n){return Bt((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const ye="primary",Il=Symbol("RouteTitle");class SH{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function js(n){return new SH(n)}function TH(n,t,e){const r=e.path.split("/");if(r.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||r.length<n.length))return null;const i={};for(let o=0;o<r.length;o++){const s=r[o],a=n[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,r.length),posParams:i}}function Lr(n,t){const e=n?Object.keys(n):void 0,r=t?Object.keys(t):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!rT(n[i],t[i]))return!1;return!0}function rT(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),r=[...t].sort();return e.every((i,o)=>r[o]===i)}return n===t}function iT(n){return Array.prototype.concat.apply([],n)}function oT(n){return n.length>0?n[n.length-1]:null}function tn(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ui(n){return ym(n)?n:il(n)?Et(Promise.resolve(n)):J(n)}const Ed=!1,EH={exact:function lT(n,t,e){if(!Ao(n.segments,t.segments)||!Ad(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!n.children[r]||!lT(n.children[r],t.children[r],e))return!1;return!0},subset:uT},sT={exact:function AH(n,t){return Lr(n,t)},subset:function IH(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>rT(n[e],t[e]))},ignored:()=>!0};function aT(n,t,e){return EH[e.paths](n.root,t.root,e.matrixParams)&&sT[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function uT(n,t,e){return cT(n,t,t.segments,e)}function cT(n,t,e,r){if(n.segments.length>e.length){const i=n.segments.slice(0,e.length);return!(!Ao(i,e)||t.hasChildren()||!Ad(i,e,r))}if(n.segments.length===e.length){if(!Ao(n.segments,e)||!Ad(n.segments,e,r))return!1;for(const i in t.children)if(!n.children[i]||!uT(n.children[i],t.children[i],r))return!1;return!0}{const i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Ao(n.segments,i)&&Ad(n.segments,i,r)&&n.children[ye])&&cT(n.children[ye],t,o,r)}}function Ad(n,t,e){return t.every((r,i)=>sT[e](n[i].parameters,r.parameters))}class Eo{constructor(t=new Ce([],{}),e={},r=null){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=js(this.queryParams)),this._queryParamMap}toString(){return RH.serialize(this)}}class Ce{constructor(t,e){this.segments=t,this.children=e,this.parent=null,tn(e,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Id(this)}}class kl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=js(this.parameters)),this._parameterMap}toString(){return hT(this)}}function Ao(n,t){return n.length===t.length&&n.every((e,r)=>e.path===t[r].path)}let Fl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return new ry},providedIn:"root"}),n})();class ry{parse(t){const e=new zH(t);return new Eo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Rl(t.root,!0)}`,r=function BH(n){const t=Object.keys(n).map(e=>{const r=n[e];return Array.isArray(r)?r.map(i=>`${kd(e)}=${kd(i)}`).join("&"):`${kd(e)}=${kd(r)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${r}${"string"==typeof t.fragment?`#${function NH(n){return encodeURI(n)}(t.fragment)}`:""}`}}const RH=new ry;function Id(n){return n.segments.map(t=>hT(t)).join("/")}function Rl(n,t){if(!n.hasChildren())return Id(n);if(t){const e=n.children[ye]?Rl(n.children[ye],!1):"",r=[];return tn(n.children,(i,o)=>{o!==ye&&r.push(`${o}:${Rl(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function FH(n,t){let e=[];return tn(n.children,(r,i)=>{i===ye&&(e=e.concat(t(r,i)))}),tn(n.children,(r,i)=>{i!==ye&&(e=e.concat(t(r,i)))}),e}(n,(r,i)=>i===ye?[Rl(n.children[ye],!1)]:[`${i}:${Rl(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ye]?`${Id(n)}/${e[0]}`:`${Id(n)}/(${e.join("//")})`}}function dT(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kd(n){return dT(n).replace(/%3B/gi,";")}function iy(n){return dT(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fd(n){return decodeURIComponent(n)}function fT(n){return Fd(n.replace(/\+/g,"%20"))}function hT(n){return`${iy(n.path)}${function LH(n){return Object.keys(n).map(t=>`;${iy(t)}=${iy(n[t])}`).join("")}(n.parameters)}`}const VH=/^[^\/()?;=#]+/;function Rd(n){const t=n.match(VH);return t?t[0]:""}const UH=/^[^=?&#]+/,HH=/^[^&#]+/;class zH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ce([],{}):new Ce([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[ye]=new Ce(t,e)),r}parseSegment(){const t=Rd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new N(4009,Ed);return this.capture(t),new kl(Fd(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Rd(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const i=Rd(this.remaining);i&&(r=i,this.capture(r))}t[Fd(e)]=Fd(r)}parseQueryParam(t){const e=function jH(n){const t=n.match(UH);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function $H(n){const t=n.match(HH);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=fT(e),o=fT(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Rd(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new N(4010,Ed);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ye);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ye]:new Ce([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new N(4011,Ed)}}function oy(n){return n.segments.length>0?new Ce([],{[ye]:n}):n}function Nd(n){const t={};for(const r of Object.keys(n.children)){const o=Nd(n.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function qH(n){if(1===n.numberOfChildren&&n.children[ye]){const t=n.children[ye];return new Ce(n.segments.concat(t.segments),t.children)}return n}(new Ce(n.segments,t))}function Io(n){return n instanceof Eo}function YH(n,t,e,r,i){if(0===e.length)return Hs(t.root,t.root,t.root,r,i);const o=function mT(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new gT(!0,0,n);let t=0,e=!1;const r=n.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return tn(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new gT(e,t,r)}(e);return o.toRoot()?Hs(t.root,t.root,new Ce([],{}),r,i):function s(l){const u=function KH(n,t,e,r){if(n.isAbsolute)return new $s(t.root,!0,0);if(-1===r)return new $s(e,e===t.root,0);return function _T(n,t,e){let r=n,i=t,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new N(4005,!1);i=r.segments.length}return new $s(r,!1,i-o)}(e,r+(Nl(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),c=u.processChildren?Bl(u.segmentGroup,u.index,o.commands):ay(u.segmentGroup,u.index,o.commands);return Hs(t.root,u.segmentGroup,c,r,i)}(n.snapshot?._lastPathIndex)}function Nl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ll(n){return"object"==typeof n&&null!=n&&n.outlets}function Hs(n,t,e,r,i){let s,o={};r&&tn(r,(l,u)=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=n===t?e:pT(n,t,e);const a=oy(Nd(s));return new Eo(a,o,i)}function pT(n,t,e){const r={};return tn(n.children,(i,o)=>{r[o]=i===t?e:pT(i,t,e)}),new Ce(n.segments,r)}class gT{constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Nl(r[0]))throw new N(4003,!1);const i=r.find(Ll);if(i&&i!==oT(r))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $s{constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}}function ay(n,t,e){if(n||(n=new Ce([],{})),0===n.segments.length&&n.hasChildren())return Bl(n,t,e);const r=function ZH(n,t,e){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(r>=e.length)return o;const s=n.segments[i],a=e[r];if(Ll(a))break;const l=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!vT(l,u,s))return o;r+=2}else{if(!vT(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,t,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<n.segments.length){const o=new Ce(n.segments.slice(0,r.pathIndex),{});return o.children[ye]=new Ce(n.segments.slice(r.pathIndex),n.children),Bl(o,0,i)}return r.match&&0===i.length?new Ce(n.segments,{}):r.match&&!n.hasChildren()?ly(n,t,e):r.match?Bl(n,0,i):ly(n,t,e)}function Bl(n,t,e){if(0===e.length)return new Ce(n.segments,{});{const r=function XH(n){return Ll(n[0])?n[0].outlets:{[ye]:n}}(e),i={};return tn(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=ay(n.children[s],t,o))}),tn(n.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Ce(n.segments,i)}}function ly(n,t,e){const r=n.segments.slice(0,t);let i=0;for(;i<e.length;){const o=e[i];if(Ll(o)){const l=JH(o.outlets);return new Ce(r,l)}if(0===i&&Nl(e[0])){r.push(new kl(n.segments[t].path,yT(e[0]))),i++;continue}const s=Ll(o)?o.outlets[ye]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Nl(a)?(r.push(new kl(s,yT(a))),i+=2):(r.push(new kl(s,{})),i++)}return new Ce(r,{})}function JH(n){const t={};return tn(n,(e,r)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[r]=ly(new Ce([],{}),0,e))}),t}function yT(n){const t={};return tn(n,(e,r)=>t[r]=`${e}`),t}function vT(n,t,e){return n==e.path&&Lr(t,e.parameters)}class fi{constructor(t,e){this.id=t,this.url=e}}class uy extends fi{constructor(t,e,r="imperative",i=null){super(t,e),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ko extends fi{constructor(t,e,r){super(t,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ld extends fi{constructor(t,e,r,i){super(t,e),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bT extends fi{constructor(t,e,r,i){super(t,e),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class e7 extends fi{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class t7 extends fi{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class n7 extends fi{constructor(t,e,r,i,o){super(t,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class r7 extends fi{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class i7 extends fi{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class o7{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class s7{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class a7{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class l7{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class u7{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class c7{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CT{constructor(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let f7=(()=>{class n{createUrlTree(e,r,i,o,s,a){return YH(e||r.root,i,o,s,a)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),h7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(t){return f7.\u0275fac(t)},providedIn:"root"}),n})();class wT{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=cy(t,this._root);return e?e.children.map(r=>r.value):[]}firstChild(t){const e=cy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=dy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return dy(t,this._root).map(e=>e.value)}}function cy(n,t){if(n===t.value)return t;for(const e of t.children){const r=cy(n,e);if(r)return r}return null}function dy(n,t){if(n===t.value)return[t];for(const e of t.children){const r=dy(n,e);if(r.length)return r.unshift(t),r}return[]}class hi{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zs(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class PT extends wT{constructor(t,e){super(t),this.snapshot=e,fy(this,t)}toString(){return this.snapshot.toString()}}function MT(n,t){const e=function p7(n,t){const s=new Bd([],{},{},"",{},ye,t,null,n.root,-1,{});return new xT("",new hi(s,[]))}(n,t),r=new ir([new kl("",{})]),i=new ir({}),o=new ir({}),s=new ir({}),a=new ir(""),l=new nn(r,i,s,a,o,ye,t,e.root);return l.snapshot=e.root,new PT(new hi(l,[]),e)}class nn{constructor(t,e,r,i,o,s,a,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(de(u=>u[Il]))??J(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(de(t=>js(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(de(t=>js(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function DT(n,t="emptyOnly"){const e=n.pathFromRoot;let r=0;if("always"!==t)for(r=e.length-1;r>=1;){const i=e[r],o=e[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function g7(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class Bd{constructor(t,e,r,i,o,s,a,l,u,c,d){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}get title(){return this.data?.[Il]}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=js(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=js(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xT extends wT{constructor(t,e){super(e),this.url=t,fy(this,e)}toString(){return ST(this._root)}}function fy(n,t){t.value._routerState=n,t.children.forEach(e=>fy(n,e))}function ST(n){const t=n.children.length>0?` { ${n.children.map(ST).join(", ")} } `:"";return`${n.value}${t}`}function hy(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Lr(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Lr(t.params,e.params)||n.params.next(e.params),function OH(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Lr(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),Lr(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function py(n,t){const e=Lr(n.params,t.params)&&function kH(n,t){return Ao(n,t)&&n.every((e,r)=>Lr(e.parameters,t[r].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||py(n.parent,t.parent))}function Vl(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=t.value;const i=function _7(n,t,e){return t.children.map(r=>{for(const i of e.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return Vl(n,r,i);return Vl(n,r)})}(n,t,e);return new hi(r,i)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Vl(n,a)),s}}const r=function y7(n){return new nn(new ir(n.url),new ir(n.params),new ir(n.queryParams),new ir(n.fragment),new ir(n.data),n.outlet,n.component,n)}(t.value),i=t.children.map(o=>Vl(n,o));return new hi(r,i)}}const gy="ngNavigationCancelingError";function TT(n,t){const{redirectTo:e,navigationBehaviorOptions:r}=Io(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=OT(!1,0,t);return i.url=e,i.navigationBehaviorOptions=r,i}function OT(n,t,e){const r=new Error("NavigationCancelingError: "+(n||""));return r[gy]=!0,r.cancellationCode=t,e&&(r.url=e),r}function ET(n){return AT(n)&&Io(n.url)}function AT(n){return n&&n[gy]}class v7{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ul,this.attachRef=null}}let Ul=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new v7,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vd=!1;let ji=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=ye,this.activateEvents=new st,this.deactivateEvents=new st,this.attachEvents=new st,this.detachEvents=new st,this.parentContexts=be(Ul),this.location=be(vr),this.changeDetector=be(Xc),this.environmentInjector=be(Tr)}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,Vd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,Vd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,Vd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new N(4013,Vd);this._activatedRoute=e;const i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new b7(e,a,i.injector);if(r&&function C7(n){return!!n.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=i.createComponent(u,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=se({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ln]}),n})();class b7{constructor(t,e,r){this.route=t,this.childContexts=e,this.parent=r}get(t,e){return t===nn?this.route:t===Ul?this.childContexts:this.parent.get(t,e)}}let my=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Fe({type:n,selectors:[["ng-component"]],standalone:!0,features:[kM],decls:1,vars:0,template:function(e,r){1&e&&k(0,"router-outlet")},dependencies:[ji],encapsulation:2}),n})();function IT(n,t){return n.providers&&!n._injector&&(n._injector=jc(n.providers,t,`Route: ${n.path}`)),n._injector??t}function yy(n){const t=n.children&&n.children.map(yy),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==ye&&(e.component=my),e}function or(n){return n.outlet||ye}function kT(n,t){const e=n.filter(r=>or(r)===t);return e.push(...n.filter(r=>or(r)!==t)),e}function jl(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class x7{constructor(t,e,r,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=i}activate(t){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),hy(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){const i=zs(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),tn(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=zs(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=zs(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,e,r){const i=zs(e);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new c7(o.value.snapshot))}),t.children.length&&this.forwardEvent(new l7(t.value.snapshot))}activateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(hy(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),hy(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=jl(i.snapshot),l=a?.get(ms)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class FT{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ud{constructor(t,e){this.component=t,this.route=e}}function S7(n,t,e){const r=n._root;return Hl(r,t?t._root:null,e,[r.value])}function qs(n,t){const e=Symbol(),r=t.get(n,e);return r===e?"function"!=typeof n||function ER(n){return null!==$u(n)}(n)?t.get(n):n:r}function Hl(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=zs(t);return n.children.forEach(s=>{(function O7(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function E7(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ao(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ao(n.url,t.url)||!Lr(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!py(n,t)||!Lr(n.queryParams,t.queryParams);default:return!py(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new FT(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Hl(n,t,o.component?a?a.children:null:e,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ud(a.outlet.component,s))}else s&&$l(t,a,i),i.canActivateChecks.push(new FT(r)),Hl(n,null,o.component?a?a.children:null:e,r,i)})(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),tn(o,(s,a)=>$l(s,e.getContext(a),i)),i}function $l(n,t,e){const r=zs(n),i=n.value;tn(r,(o,s)=>{$l(o,i.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Ud(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}function zl(n){return"function"==typeof n}function vy(n){return n instanceof Td||"EmptyError"===n?.name}const jd=Symbol("INITIAL_VALUE");function Ws(){return Nr(n=>XS(n.map(t=>t.pipe(Al(1),function wH(...n){const t=Ma(n);return Bt((e,r)=>{(t?Z_(n,e,t):Z_(n,e)).subscribe(r)})}(jd)))).pipe(de(t=>{for(const e of t)if(!0!==e){if(e===jd)return jd;if(!1===e||e instanceof Eo)return e}return!0}),di(t=>t!==jd),Al(1)))}function RT(n){return function QF(...n){return X0(n)}(pn(t=>{if(Io(t))throw TT(0,t)}),de(t=>!0===t))}const by={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function NT(n,t,e,r,i){const o=Cy(n,t,e);return o.matched?function G7(n,t,e,r){const i=t.canMatch;return i&&0!==i.length?J(i.map(s=>{const a=qs(s,n);return Ui(function N7(n){return n&&zl(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(Ws(),RT()):J(!0)}(r=IT(t,r),t,e).pipe(de(s=>!0===s?o:{...by})):J(o)}function Cy(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...by}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const i=(t.matcher||TH)(e,n,t);if(!i)return{...by};const o={};tn(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Hd(n,t,e,r){if(e.length>0&&function K7(n,t,e){return e.some(r=>$d(n,t,r)&&or(r)!==ye)}(n,e,r)){const o=new Ce(t,function Q7(n,t,e,r){const i={};i[ye]=r,r._sourceSegment=n,r._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&or(o)!==ye){const s=new Ce([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,i[or(o)]=s}return i}(n,t,r,new Ce(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function X7(n,t,e){return e.some(r=>$d(n,t,r))}(n,e,r)){const o=new Ce(n.segments,function Y7(n,t,e,r,i){const o={};for(const s of r)if($d(n,e,s)&&!i[or(s)]){const a=new Ce([],{});a._sourceSegment=n,a._segmentIndexShift=t.length,o[or(s)]=a}return{...i,...o}}(n,t,e,r,n.children));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const i=new Ce(n.segments,n.children);return i._sourceSegment=n,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:e}}function $d(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function LT(n,t,e,r){return!!(or(n)===r||r!==ye&&$d(t,e,n))&&("**"===n.path||Cy(t,n,e).matched)}function BT(n,t,e){return 0===t.length&&!n.children[e]}const zd=!1;class qd{constructor(t){this.segmentGroup=t||null}}class VT{constructor(t){this.urlTree=t}}function ql(n){return El(new qd(n))}function UT(n){return El(new VT(n))}class t9{constructor(t,e,r,i,o){this.injector=t,this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const t=Hd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ce(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,ye).pipe(de(o=>this.createUrlTree(Nd(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Vi(o=>{if(o instanceof VT)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof qd?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,ye).pipe(de(i=>this.createUrlTree(Nd(i),t.queryParams,t.fragment))).pipe(Vi(i=>{throw i instanceof qd?this.noMatchError(i):i}))}noMatchError(t){return new N(4002,zd)}createUrlTree(t,e,r){const i=oy(t);return new Eo(i,e,r)}expandSegmentGroup(t,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(de(o=>new Ce([],o))):this.expandSegment(t,r,e,r.segments,i,!0)}expandChildren(t,e,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Et(i).pipe(Bi(o=>{const s=r.children[o],a=kT(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(de(l=>({segment:l,outlet:o})))}),tT((o,s)=>(o[s.outlet]=s.segment,o),{}),nT())}expandSegment(t,e,r,i,o,s){return Et(r).pipe(Bi(a=>this.expandSegmentAgainstRoute(t,e,r,a,i,o,s).pipe(Vi(u=>{if(u instanceof qd)return J(null);throw u}))),Li(a=>!!a),Vi((a,l)=>{if(vy(a))return BT(e,i,o)?J(new Ce([],{})):ql(e);throw a}))}expandSegmentAgainstRoute(t,e,r,i,o,s,a){return LT(i,e,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s):ql(e):ql(e)}expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?UT(o):this.lineralizeSegments(r,o).pipe(Vt(s=>{const a=new Ce(s,{});return this.expandSegment(t,a,e,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Cy(e,i,o);if(!a)return ql(e);const d=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?UT(d):this.lineralizeSegments(i,d).pipe(Vt(p=>this.expandSegment(t,e,r,p.concat(u),s,!1)))}matchSegmentAgainstRoute(t,e,r,i,o){return"**"===r.path?(t=IT(r,t),r.loadChildren?(r._loadedRoutes?J({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe(de(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new Ce(i,{})))):J(new Ce(i,{}))):NT(e,r,i,t).pipe(Nr(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=r._injector??t,r,i).pipe(Vt(c=>{const d=c.injector??t,p=c.routes,{segmentGroup:m,slicedSegments:_}=Hd(e,a,l,p),v=new Ce(m.segments,m.children);if(0===_.length&&v.hasChildren())return this.expandChildren(d,p,v).pipe(de(x=>new Ce(a,x)));if(0===p.length&&0===_.length)return J(new Ce(a,{}));const b=or(r)===o;return this.expandSegment(d,v,p,_,b?ye:o,!0).pipe(de(D=>new Ce(a.concat(D.segments),D.children)))})):ql(e)))}getChildConfig(t,e,r){return e.children?J({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?J({routes:e._loadedRoutes,injector:e._loadedInjector}):function W7(n,t,e,r){const i=t.canLoad;return void 0===i||0===i.length?J(!0):J(i.map(s=>{const a=qs(s,n);return Ui(function I7(n){return n&&zl(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(Ws(),RT())}(t,e,r).pipe(Vt(i=>i?this.configLoader.loadChildren(t,e).pipe(pn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function J7(n){return El(OT(zd,3))}())):J({routes:[],injector:t})}lineralizeSegments(t,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return J(r);if(i.numberOfChildren>1||!i.children[ye])return El(new N(4e3,zd));i=i.children[ye]}}applyRedirectCommands(t,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,r)}applyRedirectCreateUrlTree(t,e,r,i){const o=this.createSegmentGroup(t,e.root,r,i);return new Eo(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const r={};return tn(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(t,e,r,i){const o=this.createSegments(t,e.segments,r,i);let s={};return tn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,r,i)}),new Ce(o,s)}createSegments(t,e,r,i){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,e,r){const i=r[e.path.substring(1)];if(!i)throw new N(4001,zd);return i}findOrReturn(t,e){let r=0;for(const i of e){if(i.path===t.path)return e.splice(r),i;r++}return t}}class r9{}class s9{constructor(t,e,r,i,o,s,a){this.injector=t,this.rootComponentType=e,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const t=Hd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,ye).pipe(de(e=>{if(null===e)return null;const r=new Bd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ye,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new hi(r,e),o=new xT(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,r=DT(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,e,r):this.processSegment(t,e,r,r.segments,i)}processChildren(t,e,r){return Et(Object.keys(r.children)).pipe(Bi(i=>{const o=r.children[i],s=kT(e,i);return this.processSegmentGroup(t,s,o,i)}),tT((i,o)=>i&&o?(i.push(...o),i):null),function DH(n,t=!1){return Bt((e,r)=>{let i=0;e.subscribe(Ot(r,o=>{const s=n(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}(i=>null!==i),Od(null),nT(),de(i=>{if(null===i)return null;const o=HT(i);return function a9(n){n.sort((t,e)=>t.value.outlet===ye?-1:e.value.outlet===ye?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,r,i,o){return Et(e).pipe(Bi(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,i,o)),Li(s=>!!s),Vi(s=>{if(vy(s))return BT(r,i,o)?J([]):J(null);throw s}))}processSegmentAgainstRoute(t,e,r,i,o){if(e.redirectTo||!LT(e,r,i,o))return J(null);let s;if("**"===e.path){const a=i.length>0?oT(i).parameters:{},l=zT(r)+i.length;s=J({snapshot:new Bd(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qT(e),or(e),e.component??e._loadedComponent??null,e,$T(r),l,WT(e)),consumedSegments:[],remainingSegments:[]})}else s=NT(r,e,i,t).pipe(de(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const d=zT(r)+l.length;return{snapshot:new Bd(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qT(e),or(e),e.component??e._loadedComponent??null,e,$T(r),d,WT(e)),consumedSegments:l,remainingSegments:u}}));return s.pipe(Nr(a=>{if(null===a)return J(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;t=e._injector??t;const d=e._loadedInjector??t,p=function l9(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:m,slicedSegments:_}=Hd(r,u,c,p.filter(b=>void 0===b.redirectTo));if(0===_.length&&m.hasChildren())return this.processChildren(d,p,m).pipe(de(b=>null===b?null:[new hi(l,b)]));if(0===p.length&&0===_.length)return J([new hi(l,[])]);const v=or(e)===o;return this.processSegment(d,p,m,_,v?ye:o).pipe(de(b=>null===b?null:[new hi(l,b)]))}))}}function u9(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function HT(n){const t=[],e=new Set;for(const r of n){if(!u9(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),e.add(i)):t.push(r)}for(const r of e){const i=HT(r.children);t.push(new hi(r.value,i))}return t.filter(r=>!e.has(r))}function $T(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function zT(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function qT(n){return n.data||{}}function WT(n){return n.resolve||{}}function GT(n){return"string"==typeof n.title||null===n.title}function wy(n){return Nr(t=>{const e=n(t);return e?Et(e).pipe(de(()=>t)):J(t)})}const Gs=new Q("ROUTES");let Py=(()=>{class n{constructor(e,r){this.injector=e,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return J(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Ui(e.loadComponent()).pipe(de(QT),pn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ny(()=>{this.componentLoaders.delete(e)})),i=new JS(r,()=>new sn).pipe(ey());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return J({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(de(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(e).injector,u=iT(l.get(Gs,[],ie.Self|ie.Optional)));return{routes:u.map(yy),injector:l}}),ny(()=>{this.childrenLoaders.delete(r)})),s=new JS(o,()=>new sn).pipe(ey());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Ui(e()).pipe(de(QT),Vt(i=>i instanceof AM||Array.isArray(i)?J(i):Et(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(V(En),V(wD))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function QT(n){return function y9(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let My=(()=>{class n{constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new sn,this.configLoader=be(Py),this.environmentInjector=be(Tr),this.urlSerializer=be(Fl),this.rootContexts=be(Ul),this.navigationId=0,this.configLoader.onLoadEndListener=i=>this.events.next(new s7(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new o7(i))}get hasRequestedNavigation(){return 0!==this.navigationId}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new ir({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(di(r=>0!==r.id),de(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Nr(r=>{let i=!1,o=!1;return J(r).pipe(pn(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Nr(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return XT(s.source)&&(e.browserUrlTree=s.extractedUrl),J(s).pipe(Nr(c=>{const d=this.transitions?.getValue();return this.events.next(new uy(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Yr:Promise.resolve(c)}),function n9(n,t,e,r){return Nr(i=>function e9(n,t,e,r,i){return new t9(n,t,e,r,i).apply()}(n,t,e,i.extractedUrl,r).pipe(de(o=>({...i,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),pn(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function d9(n,t,e,r,i){return Vt(o=>function o9(n,t,e,r,i,o,s="emptyOnly"){return new s9(n,t,e,r,i,s,o).recognize().pipe(Nr(a=>null===a?function i9(n){return new vt(t=>t.error(n))}(new r9):J(a)))}(n,t,e,o.urlAfterRedirects,r.serialize(o.urlAfterRedirects),r,i).pipe(de(s=>({...o,targetSnapshot:s}))))}(this.environmentInjector,e.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),pn(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!c.extras.skipLocationChange){const p=e.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);e.setBrowserUrl(p,c)}e.browserUrlTree=c.urlAfterRedirects}const d=new e7(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:p,source:m,restoredState:_,extras:v}=s,b=new uy(d,this.urlSerializer.serialize(p),m,_);this.events.next(b);const w=MT(p,e.rootComponentType).snapshot;return J(r={...s,targetSnapshot:w,urlAfterRedirects:p,extras:{...v,skipLocationChange:!1,replaceUrl:!1}})}return e.rawUrlTree=s.rawUrl,s.resolve(null),Yr}),pn(s=>{const a=new t7(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),de(s=>r={...s,guards:S7(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function B7(n,t){return Vt(e=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?J({...e,guardsResult:!0}):function V7(n,t,e,r){return Et(n).pipe(Vt(i=>function q7(n,t,e,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?J(o.map(a=>{const l=jl(t)??i,u=qs(a,l);return Ui(function R7(n){return n&&zl(n.canDeactivate)}(u)?u.canDeactivate(n,t,e,r):l.runInContext(()=>u(n,t,e,r))).pipe(Li())})).pipe(Ws()):J(!0)}(i.component,i.route,e,t,r)),Li(i=>!0!==i,!0))}(s,r,i,n).pipe(Vt(a=>a&&function A7(n){return"boolean"==typeof n}(a)?function U7(n,t,e,r){return Et(t).pipe(Bi(i=>Z_(function H7(n,t){return null!==n&&t&&t(new a7(n)),J(!0)}(i.route.parent,r),function j7(n,t){return null!==n&&t&&t(new u7(n)),J(!0)}(i.route,r),function z7(n,t,e){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function T7(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>J_(()=>J(s.guards.map(l=>{const u=jl(s.node)??e,c=qs(l,u);return Ui(function F7(n){return n&&zl(n.canActivateChild)}(c)?c.canActivateChild(r,n):u.runInContext(()=>c(r,n))).pipe(Li())})).pipe(Ws())));return J(o).pipe(Ws())}(n,i.path,e),function $7(n,t,e){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return J(!0);const i=r.map(o=>J_(()=>{const s=jl(t)??e,a=qs(o,s);return Ui(function k7(n){return n&&zl(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(Li())}));return J(i).pipe(Ws())}(n,i.route,e))),Li(i=>!0!==i,!0))}(r,o,n,t):J(a)),de(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),pn(s=>{if(r.guardsResult=s.guardsResult,Io(s.guardsResult))throw TT(0,s.guardsResult);const a=new n7(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),di(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3,e),!1)),wy(s=>{if(s.guards.canActivateChecks.length)return J(s).pipe(pn(a=>{const l=new r7(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Nr(a=>{let l=!1;return J(a).pipe(function f9(n,t){return Vt(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return J(e);let o=0;return Et(i).pipe(Bi(s=>function h9(n,t,e,r){const i=n.routeConfig,o=n._resolve;return void 0!==i?.title&&!GT(i)&&(o[Il]=i.title),function p9(n,t,e,r){const i=function g9(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===i.length)return J({});const o={};return Et(i).pipe(Vt(s=>function m9(n,t,e,r){const i=jl(t)??r,o=qs(n,i);return Ui(o.resolve?o.resolve(t,e):i.runInContext(()=>o(t,e)))}(n[s],t,e,r).pipe(Li(),pn(a=>{o[s]=a}))),ty(1),function xH(n){return de(()=>n)}(o),Vi(s=>vy(s)?Yr:El(s)))}(o,n,t,r).pipe(de(s=>(n._resolvedData=s,n.data=DT(n,e).resolve,i&>(i)&&(n.data[Il]=i.title),null)))}(s.route,r,n,t)),pn(()=>o++),ty(1),Vt(s=>o===i.length?J(e):Yr))})}(e.paramsInheritanceStrategy,this.environmentInjector),pn({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2,e))}}))}),pn(a=>{const l=new i7(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),wy(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(pn(c=>{l.component=c}),de(()=>{})));for(const c of l.children)u.push(...a(c));return u};return XS(a(s.targetSnapshot.root)).pipe(Od(),Al(1))}),wy(()=>e.afterPreactivation()),de(s=>{const a=function m7(n,t,e){const r=Vl(n,t._root,e?e._root:void 0);return new PT(r,t)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),pn(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((n,t,e)=>de(r=>(new x7(t,r.targetRouterState,r.currentRouterState,e).activate(n),r)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s)),pn({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new ko(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),ny(()=>{i||o||this.cancelNavigationTransition(r,"",1,e),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Vi(s=>{if(o=!0,AT(s)){ET(s)||(e.navigated=!0,e.restoreHistory(r,!0));const a=new Ld(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),ET(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||XT(r.source)};e.scheduleNavigation(l,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const a=new bT(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(e.errorHandler(s))}catch(l){r.reject(l)}}return Yr}))}))}cancelNavigationTransition(e,r,i,o){const s=new Ld(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XT(n){return"imperative"!==n}let ZT=(()=>{class n{buildTitle(e){let r,i=e.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===ye);return r}getResolvedTitleForRoute(e){return e.data[Il]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return be(v9)},providedIn:"root"}),n})(),v9=(()=>{class n extends ZT{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return n.\u0275fac=function(e){return new(e||n)(V(Vx))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return be(w9)},providedIn:"root"}),n})();class C9{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let w9=(()=>{class n extends C9{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wd=new Q("",{providedIn:"root",factory:()=>({})});let M9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:function(){return be(D9)},providedIn:"root"}),n})(),D9=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function x9(n){throw n}function S9(n,t,e){return t.parse("/")}const T9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},O9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Me=(()=>{class n{constructor(){this.disposed=!1,this.currentPageId=0,this.console=be(r8),this.isNgZoneEnabled=!1,this.options=be(Wd,{optional:!0})||{},this.errorHandler=this.options.errorHandler||x9,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||S9,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>J(void 0),this.urlHandlingStrategy=be(M9),this.routeReuseStrategy=be(b9),this.urlCreationStrategy=be(h7),this.titleStrategy=be(ZT),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=iT(be(Gs,{optional:!0})??[]),this.navigationTransitions=be(My),this.urlSerializer=be(Fl),this.location=be(a_),this.rootComponentType=null,this.isNgZoneEnabled=be(tt)instanceof tt&&tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Eo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=MT(this.currentUrlTree,this.rootComponentType),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const i={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(e.state){const a={...e.state};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(i.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,r,o,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(yy),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...o};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=o||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(i,this.routerState,this.currentUrlTree,e,c,u??null)}navigateByUrl(e,r={skipLocationChange:!1}){const i=Io(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(e,r={skipLocationChange:!1}){return function E9(n){for(let t=0;t<n.length;t++){if(null==n[t])throw new N(4008,!1)}}(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let r;try{r=this.urlSerializer.parse(e)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,e)}return r}isActive(e,r){let i;if(i=!0===r?{...T9}:!1===r?{...O9}:r,Io(e))return aT(this.currentUrlTree,e,i);const o=this.parseUrl(e);return aT(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.keys(e).reduce((r,i)=>{const o=e[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u,c;return s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,p)=>{a=d,l=p}),"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),c=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):c=0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(e,r){const i=this.urlSerializer.serialize(e),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===i?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Br=(()=>{class n{constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new sn;const l=s.nativeElement.tagName;this.isAnchorElement="A"===l||"AREA"===l,this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof ko&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Bs(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Bs(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Bs(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function uw(n,t,e){return function s5(n,t){return"src"===t&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===t&&("base"===n||"link"===n)?lw:Ti}(t,e)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(S(Me),S(nn),function uc(n){return function TN(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const r=e.length;let i=0;for(;i<r;){const o=e[i];if(JC(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof e[i];)i++;else{if(o===t)return e[i+1];i+=2}}}return null}(Zt(),n)}("tabindex"),S(ti),S(On),S(So))},n.\u0275dir=se({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,r){1&e&&M("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&An("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Ln]}),n})();class eO{}let k9=(()=>{class n{constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(di(e=>e instanceof ko),Bi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=jc(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?i.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Et(i).pipe(Xo())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):J(null);const o=i.pipe(Vt(s=>null===s?J(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return r.loadComponent&&!r._loadedComponent?Et([o,this.loader.loadComponent(r)]).pipe(Xo()):o})}}return n.\u0275fac=function(e){return new(e||n)(V(Me),V(wD),V(Tr),V(eO),V(Py))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Dy=new Q("");let tO=(()=>{class n{constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof uy?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ko&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof CT&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new CT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(e){!function Vw(){throw new Error("invalid")}()},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();function Qs(n,t){return{\u0275kind:n,\u0275providers:t}}function rO(){const n=be(En);return t=>{const e=n.get(Do);if(t!==e.components[0])return;const r=n.get(Me),i=n.get(iO);1===n.get(Sy)&&r.initialNavigation(),n.get(oO,null,ie.Optional)?.setUpPreloading(),n.get(Dy,null,ie.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.unsubscribe())}}const iO=new Q("",{factory:()=>new sn}),Sy=new Q("",{providedIn:"root",factory:()=>1});const oO=new Q("");function B9(n){return Qs(0,[{provide:oO,useExisting:k9},{provide:eO,useExisting:n}])}const sO=new Q("ROUTER_FORROOT_GUARD"),V9=[a_,{provide:Fl,useClass:ry},Me,Ul,{provide:nn,useFactory:function nO(n){return n.routerState.root},deps:[Me]},Py,[]];function U9(){return new OD("Router",Me)}let Ks=(()=>{class n{constructor(e){}static forRoot(e,r){return{ngModule:n,providers:[V9,[],{provide:Gs,multi:!0,useValue:e},{provide:sO,useFactory:z9,deps:[[Me,new Va,new Ua]]},{provide:Wd,useValue:r||{}},r?.useHash?{provide:So,useClass:z8}:{provide:So,useClass:ZD},{provide:Dy,useFactory:()=>{const n=be(dU),t=be(tt),e=be(Wd),r=be(My),i=be(Fl);return e.scrollOffset&&n.setOffset(e.scrollOffset),new tO(i,r,n,t,e)}},r?.preloadingStrategy?B9(r.preloadingStrategy).\u0275providers:[],{provide:OD,multi:!0,useFactory:U9},r?.initialNavigation?q9(r):[],[{provide:aO,useFactory:rO},{provide:bD,multi:!0,useExisting:aO}]]}}static forChild(e){return{ngModule:n,providers:[{provide:Gs,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(V(sO,8))},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[my]}),n})();function z9(n){return"guarded"}function q9(n){return["disabled"===n.initialNavigation?Qs(3,[{provide:Wc,multi:!0,useFactory:()=>{const t=be(Me);return()=>{t.setUpLocationChangeListener()}}},{provide:Sy,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Qs(2,[{provide:Sy,useValue:0},{provide:Wc,multi:!0,deps:[En],useFactory:t=>{const e=t.get(H8,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=t.get(Me),s=t.get(iO);(function r(i){t.get(Me).events.pipe(di(s=>s instanceof ko||s instanceof Ld||s instanceof bT),de(s=>s instanceof ko||s instanceof Ld&&(0===s.code||1===s.code)&&null),di(s=>null!==s),Al(1)).subscribe(()=>{i()})})(()=>{i(!0)}),o.afterPreactivation=()=>(i(!0),s.closed?J(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const aO=new Q("");class Gd{}class Ty{}class Pr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Pr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Pr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Pr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class G9{encodeKey(t){return lO(t)}encodeValue(t){return lO(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Q9=/%(\d[a-f0-9])/gi,K9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lO(n){return encodeURIComponent(n).replace(Q9,(t,e)=>K9[e]??t)}function Yd(n){return`${n}`}class Hi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new G9,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Y9(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e],i=Array.isArray(r)?r.map(Yd):[Yd(r)];this.map.set(e,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Hi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Yd(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(Yd(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class X9{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function uO(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function cO(n){return typeof Blob<"u"&&n instanceof Blob}function dO(n){return typeof FormData<"u"&&n instanceof FormData}class Gl{constructor(t,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Z9(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Pr),this.context||(this.context=new X9),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new Hi,this.urlWithParams=e}serializeBody(){return null===this.body?null:uO(this.body)||cO(this.body)||dO(this.body)||function J9(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Hi?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||dO(this.body)?null:cO(this.body)?this.body.type||null:uO(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Hi?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,u=t.params||this.params;const c=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,p)=>d.set(p,t.setHeaders[p]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,p)=>d.set(p,t.setParams[p]),u)),new Gl(e,r,o,{params:u,headers:l,context:c,reportProgress:a,responseType:i,withCredentials:s})}}var Rt=(()=>((Rt=Rt||{})[Rt.Sent=0]="Sent",Rt[Rt.UploadProgress=1]="UploadProgress",Rt[Rt.ResponseHeader=2]="ResponseHeader",Rt[Rt.DownloadProgress=3]="DownloadProgress",Rt[Rt.Response=4]="Response",Rt[Rt.User=5]="User",Rt))();class Oy{constructor(t,e=200,r="OK"){this.headers=t.headers||new Pr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ey extends Oy{constructor(t={}){super(t),this.type=Rt.ResponseHeader}clone(t={}){return new Ey({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qd extends Oy{constructor(t={}){super(t),this.type=Rt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Qd({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class fO extends Oy{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ay(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Kd=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof Gl)o=e;else{let l,u;l=i.headers instanceof Pr?i.headers:new Pr(i.headers),i.params&&(u=i.params instanceof Hi?i.params:new Hi({fromObject:i.params})),o=new Gl(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=J(o).pipe(Bi(l=>this.handler.handle(l)));if(e instanceof Gl||"events"===i.observe)return s;const a=s.pipe(di(l=>l instanceof Qd));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(de(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(de(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Hi).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,Ay(i,r))}post(e,r,i={}){return this.request("POST",e,Ay(i,r))}put(e,r,i={}){return this.request("PUT",e,Ay(i,r))}}return n.\u0275fac=function(e){return new(e||n)(V(Gd))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();function hO(n,t){return t(n)}function e$(n,t){return(e,r)=>t.intercept(e,{handle:i=>n(i,r)})}const pO=new Q("HTTP_INTERCEPTORS"),Yl=new Q("HTTP_INTERCEPTOR_FNS");function n$(){let n=null;return(t,e)=>(null===n&&(n=(be(pO,{optional:!0})??[]).reduceRight(e$,hO)),n(t,e))}let gO=(()=>{class n extends Gd{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Yl)));this.chain=r.reduceRight((i,o)=>function t$(n,t,e){return(r,i)=>e.runInContext(()=>t(r,o=>n(o,i)))}(i,o,this.injector),hO)}return this.chain(e,r=>this.backend.handle(r))}}return n.\u0275fac=function(e){return new(e||n)(V(Ty),V(Tr))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const s$=/^\)\]\}',?\n/;let _O=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new vt(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((m,_)=>i.setRequestHeader(m,_.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const m=e.detectContentTypeHeader();null!==m&&i.setRequestHeader("Content-Type",m)}if(e.responseType){const m=e.responseType.toLowerCase();i.responseType="json"!==m?m:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=i.statusText||"OK",_=new Pr(i.getAllResponseHeaders()),v=function a$(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Ey({headers:_,status:i.status,statusText:m,url:v}),s},l=()=>{let{headers:m,status:_,statusText:v,url:b}=a(),w=null;204!==_&&(w=typeof i.response>"u"?i.responseText:i.response),0===_&&(_=w?200:0);let D=_>=200&&_<300;if("json"===e.responseType&&"string"==typeof w){const x=w;w=w.replace(s$,"");try{w=""!==w?JSON.parse(w):null}catch(E){w=x,D&&(D=!1,w={error:E,text:w})}}D?(r.next(new Qd({body:w,headers:m,status:_,statusText:v,url:b||void 0})),r.complete()):r.error(new fO({error:w,headers:m,status:_,statusText:v,url:b||void 0}))},u=m=>{const{url:_}=a(),v=new fO({error:m,status:i.status||0,statusText:i.statusText||"Unknown Error",url:_||void 0});r.error(v)};let c=!1;const d=m=>{c||(r.next(a()),c=!0);let _={type:Rt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),"text"===e.responseType&&!!i.responseText&&(_.partialText=i.responseText),r.next(_)},p=m=>{let _={type:Rt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),r.next(_)};return i.addEventListener("load",l),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),r.next({type:Rt.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",l),i.removeEventListener("timeout",u),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(V(_x))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const Iy=new Q("XSRF_ENABLED"),yO="XSRF-TOKEN",vO=new Q("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>yO}),bO="X-XSRF-TOKEN",CO=new Q("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>bO});class wO{}let l$=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=lx(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(V(lt),V(Yc),V(vO))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();function u$(n,t){const e=n.url.toLowerCase();if(!be(Iy)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const r=be(wO).getToken(),i=be(CO);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),t(n)}var Pt=(()=>((Pt=Pt||{})[Pt.Interceptors=0]="Interceptors",Pt[Pt.LegacyInterceptors=1]="LegacyInterceptors",Pt[Pt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Pt[Pt.NoXsrfProtection=3]="NoXsrfProtection",Pt[Pt.JsonpSupport=4]="JsonpSupport",Pt[Pt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Pt))();function Xs(n,t){return{\u0275kind:n,\u0275providers:t}}function c$(...n){const t=[Kd,_O,gO,{provide:Gd,useExisting:gO},{provide:Ty,useExisting:_O},{provide:Yl,useValue:u$,multi:!0},{provide:Iy,useValue:!0},{provide:wO,useClass:l$}];for(const e of n)t.push(...e.\u0275providers);return function a5(n){return{\u0275providers:n}}(t)}const PO=new Q("LEGACY_INTERCEPTOR_FN");function f$({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:vO,useValue:n}),void 0!==t&&e.push({provide:CO,useValue:t}),Xs(Pt.CustomXsrfConfiguration,e)}let h$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({providers:[c$(Xs(Pt.LegacyInterceptors,[{provide:PO,useFactory:n$},{provide:Yl,useExisting:PO,multi:!0}]),f$({cookieName:yO,headerName:bO}))]}),n})(),nt=(()=>{class n{constructor(){this.serverip="https://mdswebapi.onrender.com",this.print=0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();class MO{constructor(){this.UserName="",this.Password=""}}class DO{constructor(){this.UserProfileId=0,this.UserCName="",this.UserTel="",this.ProfitRatio="100"}}class p${constructor(){this.ProductId="",this.LessonDate=""}}class g${constructor(){this.PayType="",this.PayAmount=0}}let xO=(()=>{class n{constructor(e,r){this.document=e,this.platformId=r,this.documentIsAccessible=function cU(n){return n===gx}(this.platformId)}static getCookieRegExp(e){const r=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const i=n.getCookieRegExp(e).exec(this.document.cookie);return i[1]?n.safeDecodeURIComponent(i[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(i=>{const[o,s]=i.split("=");e[n.safeDecodeURIComponent(o.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,r,i,o,s,a,l){if(!this.documentIsAccessible)return;if("number"==typeof i||i instanceof Date||o||s||a||l)return void this.set(e,r,{expires:i,path:o,domain:s,secure:a,sameSite:l||"Lax"});let u=encodeURIComponent(e)+"="+encodeURIComponent(r)+";";const c=i||{};c.expires&&(u+="number"==typeof c.expires?"expires="+new Date((new Date).getTime()+1e3*c.expires*60*60*24).toUTCString()+";":"expires="+c.expires.toUTCString()+";"),c.path&&(u+="path="+c.path+";"),c.domain&&(u+="domain="+c.domain+";"),!1===c.secure&&"None"===c.sameSite&&(c.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),c.secure&&(u+="secure;"),c.sameSite||(c.sameSite="Lax"),u+="sameSite="+c.sameSite+";",this.document.cookie=u}delete(e,r,i,o,s="Lax"){if(!this.documentIsAccessible)return;const a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:r,domain:i,secure:o,sameSite:s})}deleteAll(e,r,i,o="Lax"){if(!this.documentIsAccessible)return;const s=this.getAll();for(const a in s)s.hasOwnProperty(a)&&this.delete(a,e,r,i,o)}}return n.\u0275fac=function(e){return new(e||n)(V(lt),V(Yc))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ct=(()=>{class n{constructor(e,r,i,o){this.myRoute=e,this.global=r,this.http=i,this.cookieService=o,this.cookieValue="UNKNOWN",this.loginQryModel=new MO,this.api=""}getToken(){return localStorage.getItem("access_token")}isLoggedIn(){return null!=this.getToken()}logout(){this.global.access_token="",this.global.refresh_token="",localStorage.removeItem("LoggedInUser"),localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("UserId"),localStorage.removeItem("UserName"),localStorage.removeItem("CName"),this.myRoute.navigate(["login"])}loginCheck(e,r){return this.api=this.global.serverip+"/api/Token/isAuthenticated",this.loginQryModel.UserName=e,this.loginQryModel.Password=r,Promise.resolve(this.do())}do(){let e;return new Promise((r,i)=>{this.api=this.global.serverip+"/api/Token/signin",this.httpDo(this.api,null).then(o=>{e=o,localStorage.setItem("access_token",e),this.global.access_token=e,r(!0)},o=>{i(!1)})})}isTokenAliveCheck(){return Promise.resolve(this.httpDo(this.global.serverip+"/api/Token/GetUserName",null).then(i=>""!=i||(this.logout(),!1),i=>(this.logout(),!1)))}httpDo(e,r){this.global.access_token=localStorage.getItem("access_token"),(null==this.global.access_token||""===this.global.access_token)&&(this.global.access_token="5983742f26264712.HIz4slJSoKNcQQh20J+7H68hNmxErXvJzgcsLp5cYgxdrUPMSp8FAoZstDRgKzCKAUhJTaJj1E6cJ1R0342d9+NB2RIURjiFZIpOlBCAsmKAphistPsUK8WdJCbAZo4hm4SVok4c0tJ5CEK0r7k0A0vmLz0HLlaZPSw025hxHsS4jIZK/j/yMTa6qyhKAaAN.7D8D7E3191F5C1FD015E824EB83C47195E5FFAD31463FEC01B57BE3C0AC6ACC1");const i=new Pr({Authorization:"Bearer "+this.global.access_token,"Content-Type":"text/plain","Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, PUT, POST, DELETE, OPTIONS","Access-Control-Allow-Headers":"Origin, Content-Type, X-Auth-Token,Authorization","Access-Control-Max-Age":"86400"});null===r&&(r=this.loginQryModel);const o={headers:i,params:r};return new Promise((a,l)=>{this.http.post(e,null,o).toPromise().then(u=>{this.httpresult=u,a(u)},u=>{l(u)})})}}return n.\u0275fac=function(e){return new(e||n)(V(Me),V(nt),V(Kd),V(xO))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class SO{}class m${}const pi="*";function _$(n,t){return{type:7,name:n,definitions:t,options:{}}}function TO(n,t=null){return{type:4,styles:t,timings:n}}function OO(n,t=null){return{type:2,steps:n,options:t}}function Ql(n){return{type:6,styles:n,offset:null}}function ky(n,t,e){return{type:0,name:n,styles:t,options:e}}function EO(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function AO(n){Promise.resolve().then(n)}class Kl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){AO(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class IO{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,r=0,i=0;const o=this.players.length;0==o?AO(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){const t=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}const kO=["toast-component",""];function y$(n,t){if(1&n){const e=j();f(0,"button",5),M("click",function(){return T(e),O(P().remove())}),f(1,"span",6),g(2,"\xd7"),h()()}}function v$(n,t){if(1&n&&(nl(0),g(1),rl()),2&n){const e=P(2);y(1),ze("[",e.duplicatesCount+1,"]")}}function b$(n,t){if(1&n&&(f(0,"div"),g(1),A(2,v$,2,1,"ng-container",4),h()),2&n){const e=P();Ir(e.options.titleClass),An("aria-label",e.title),y(1),ze(" ",e.title," "),y(1),C("ngIf",e.duplicatesCount)}}function C$(n,t){if(1&n&&k(0,"div",7),2&n){const e=P();Ir(e.options.messageClass),C("innerHTML",e.message,Ga)}}function w$(n,t){if(1&n&&(f(0,"div",8),g(1),h()),2&n){const e=P();Ir(e.options.messageClass),An("aria-label",e.message),y(1),ze(" ",e.message," ")}}function P$(n,t){if(1&n&&(f(0,"div"),k(1,"div",9),h()),2&n){const e=P();y(1),Is("width",e.width+"%")}}class E${constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class A${attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}class I${constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new sn,this._activate=new sn,this._manualClose=new sn,this._resetTimeout=new sn,this._countDuplicate=new sn}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Xd{constructor(t,e,r,i,o,s){this.toastId=t,this.config=e,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,this._onTap=new sn,this._onAction=new sn,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const RO=new Q("ToastConfig");class k$ extends A${constructor(t,e,r){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(t,e){const r=this._componentFactoryResolver.resolveComponentFactory(t.component);let i;return i=r.create(t.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class F${constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let R$=(()=>{class n{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return n.\u0275fac=function(e){return new(e||n)(V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),N$=(()=>{class n{constructor(e,r,i,o){this._overlayContainer=e,this._componentFactoryResolver=r,this._appRef=i,this._document=o,this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(e),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(e){return new k$(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new F$(this._createPortalHost(e))}}return n.\u0275fac=function(e){return new(e||n)(V(R$),V(ms),V(Do),V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{constructor(e,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,r,i={},o=""){return this._preBuildNotification(o,e,r,this.applyConfig(i))}success(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(i))}error(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(i))}info(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(i))}warning(e,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(i))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(e="",r="",i,o){const{includeTitleDuplicates:s}=this.toastrConfig;for(const a of this.toasts){const l=s&&a.title===e;if((!s||l)&&a.message===r)return a.toastRef.onDuplicate(i,o),a}return null}applyConfig(e={}){return{...this.toastrConfig,...e}}_findToast(e){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===e)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(e,r,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(e,r,i,o)):this._buildNotification(e,r,i,o)}_buildNotification(e,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let u=r;r&&o.enableHtml&&(u=this.sanitizer.sanitize($e.HTML,r));const c=new I$(l),d=new Xd(this.index,o,u,i,e,c),m=En.create({providers:[{provide:Xd,useValue:d}],parent:this._injector}),_=new E$(o.toastComponent,m),v=l.attach(_,o.newestOnTop);c.componentInstance=v.instance;const b={toastId:this.index,title:i||"",message:r||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:v};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{b.toastRef.activate()})),this.toasts.push(b),b}}return n.\u0275fac=function(e){return new(e||n)(V(RO),V(N$),V(En),V(E_),V(tt))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const L$={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null,toastComponent:(()=>{class n{constructor(e,r,i){this.toastrService=e,this.toastPackage=r,this.ngZone=i,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return n.\u0275fac=function(e){return new(e||n)(S(dt),S(Xd),S(tt))},n.\u0275cmp=Fe({type:n,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&M("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(Mm("@flyInOut",r.state),Ir(r.toastClasses),Is("display",r.displayStyle))},attrs:kO,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,r){1&e&&(A(0,y$,3,0,"button",0),A(1,b$,3,5,"div",1),A(2,C$,1,3,"div",2),A(3,w$,2,4,"div",3),A(4,P$,2,2,"div",4)),2&e&&(C("ngIf",r.options.closeButton),y(1),C("ngIf",r.title),y(1),C("ngIf",r.message&&r.options.enableHtml),y(1),C("ngIf",r.message&&!r.options.enableHtml),y(1),C("ngIf",r.options.progressBar))},dependencies:[Yt],encapsulation:2,data:{animation:[_$("flyInOut",[ky("inactive",Ql({opacity:0})),ky("active",Ql({opacity:1})),ky("removed",Ql({opacity:0})),EO("inactive => active",TO("{{ easeTime }}ms {{ easing }}")),EO("active => removed",TO("{{ easeTime }}ms {{ easing }}"))])]}}),n})()};let B$=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:RO,useValue:{default:L$,config:e}}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[cd]}),n})(),Ry=(()=>{class n{constructor(e,r,i,o,s){this.myRoute=e,this.global=r,this.http=i,this.cookieService=o,this.sanitizer=s}getFileType(e){let r=e.split(".").pop();var i="";return".txt"==r&&(i="text/plain"),".pdf"==r&&(i="application/pdf"),".doc"==r&&(i="application/vnd.ms-word"),".docx"==r&&(i="application/vnd.ms-word"),".xls"==r&&(i="application/vnd.ms-excel"),".png"==r&&(i="image/png"),".jpg"==r&&(i="image/jpeg"),".jpeg"==r&&(i="image/jpeg"),".gif"==r&&(i="image/gif"),".csv"==r&&(i="text/csv"),i}DownloadFile(e){return this.http.post(this.global.serverip+"/api/GoogleDriveService/GetFiles",null,{responseType:"blob",observe:"response",params:{FileName:e}}).pipe(de(s=>new Blob([s.body],{type:s.body.type})))}getMedia(e){return new Promise((i,o)=>{this.DownloadFile(e).toPromise().then(s=>{let a=URL.createObjectURL(s);var l=this.sanitizer.bypassSecurityTrustUrl(a);i(l)},s=>{o(s)})})}goUploadFile(e,r,i){var o=this.global.serverip+"/api/Product/UploadImg";const s=new FormData;s.append("file",e,e.name),s.append("ComponentId","345");var a={ProductId:r,PostId:i,myFile:e};const u={headers:new Pr({Authorization:"Bearer "+this.global.access_token,"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, PUT, POST, DELETE, OPTIONS","Access-Control-Allow-Headers":"Origin, Content-Type, X-Auth-Token,Authorization","Access-Control-Max-Age":"86400"}),params:a};return this.http.post(o,s,u).pipe(de(c=>!0))}UploadFile(e,r,i){return new Promise((s,a)=>{this.goUploadFile(e,r,i).toPromise().then(l=>{s(l)},l=>{a(l)})})}}return n.\u0275fac=function(e){return new(e||n)(V(Me),V(nt),V(Kd),V(xO),V(E_))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function V$(n,t){if(1&n){const e=j();f(0,"div",4),M("click",function(){const o=T(e).$implicit;return O(P().gotoPost(o.ProductId))}),f(1,"h1",5),M("click",function(){const o=T(e).$implicit;return O(P().gotoPost(o.ProductId))}),g(2),h(),f(3,"img",6),M("click",function(){const o=T(e).$implicit;return O(P().gotoPost(o.ProductId))}),h(),f(4,"p",7),M("click",function(){const o=T(e).$implicit;return O(P().gotoPost(o.ProductId))}),h()()}if(2&n){const e=t.$implicit;y(2),F(e.ProductName),y(1),C("src",e.ImgFile,Ti),y(1),C("innerHtml",e.ProductContents,Ga)}}let U$=(()=>{class n{constructor(e,r,i,o,s,a){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.media=s,this.router=a}ngOnInit(){this.getPromote()}getPromote(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Product/getPromoteList",{}).then(i=>(this.Products=i,this.getImgFiles(),!0),i=>!1))}getImgFiles(){this.Products.forEach(e=>{this.media.getMedia(e.FileUuid).then(i=>{e.ImgFile=i})})}gotoPost(e){this.router.navigateByUrl("product/"+e)}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Ry),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-home"]],decls:96,vars:1,consts:[[1,"x-center"],[1,"content"],["src","https://picsum.photos/200/300"],["class","content",3,"click",4,"ngFor","ngForOf"],[1,"content",3,"click"],[3,"click"],[3,"src","click"],[3,"innerHtml","click"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"p"),g(2,"home works!"),h(),f(3,"p"),g(4,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(5,"div",1)(6,"h1"),g(7,"This is Title"),h(),k(8,"img",2),f(9,"p"),g(10,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(11,"p"),g(12,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(13,"p"),g(14,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(15,"div",1)(16,"h1"),g(17,"This is Title"),h(),k(18,"img",2),f(19,"p"),g(20,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(21,"p"),g(22,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(23,"p"),g(24,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(25,"div",1)(26,"h1"),g(27,"This is Title"),h(),k(28,"img",2),f(29,"p"),g(30,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(31,"p"),g(32,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(33,"p"),g(34,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(35,"div",1)(36,"h1"),g(37,"This is Title"),h(),k(38,"img",2),f(39,"p"),g(40,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(41,"p"),g(42,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(43,"p"),g(44,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(45,"div",1)(46,"h1"),g(47,"This is Title"),h(),k(48,"img",2),f(49,"p"),g(50,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(51,"p"),g(52,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(53,"p"),g(54,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(55,"div",1)(56,"h1"),g(57,"This is Title"),h(),k(58,"img",2),f(59,"p"),g(60,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(61,"p"),g(62,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(63,"p"),g(64,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(65,"div",1)(66,"h1"),g(67,"This is Title"),h(),k(68,"img",2),f(69,"p"),g(70,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(71,"p"),g(72,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(73,"p"),g(74,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(75,"div",1)(76,"h1"),g(77,"This is Title"),h(),k(78,"img",2),f(79,"p"),g(80,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(81,"p"),g(82,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(83,"p"),g(84,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),f(85,"div",1)(86,"h1"),g(87,"This is Title"),h(),k(88,"img",2),f(89,"p"),g(90,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(91,"p"),g(92,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h(),f(93,"p"),g(94,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui necessitatibus expedita sint, eos quidem molestiae esse illo obcaecati alias non similique neque atque odio? Quo consectetur quas beatae vitae iste."),h()(),A(95,V$,5,3,"div",3),h()),2&e&&(y(95),C("ngForOf",r.Products))},dependencies:[fn],styles:[".x-center[_ngcontent-%COMP%]{margin:auto;width:80%;padding:10px}.y-center[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);padding:10px}.xy-center[_ngcontent-%COMP%]{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);padding:10px}.text-center[_ngcontent-%COMP%]{text-align:center;vertical-align:middle}button[_ngcontent-%COMP%]{padding:5px 20px;background-color:transparent;cursor:pointer;margin:10px;font-size:18px;border:1px solid darkgray;border-radius:5px}.font-small[_ngcontent-%COMP%]{font-size:12px}.marginleft20[_ngcontent-%COMP%], .marginleft40[_ngcontent-%COMP%]{margin-left:20px}.margintop20[_ngcontent-%COMP%]{margin-top:20px}.margintop40[_ngcontent-%COMP%]{margin-top:40px}.vertical_align_bottom[_ngcontent-%COMP%]{vertical-align:text-bottom}.align-right[_ngcontent-%COMP%]{text-align:right}a[_ngcontent-%COMP%]{cursor:pointer;color:#2ea3cc}.content[_ngcontent-%COMP%]{display:block;float:left;text-align:left;max-width:486px;min-width:100px;height:375px;overflow:hidden;text-overflow:ellipsis;margin:10px}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:right;width:150px;height:200px;margin-left:5px;margin-bottom:5px}.content[_ngcontent-%COMP%]:hover{cursor:pointer}@media (max-width: 750px){.x-center[_ngcontent-%COMP%]{width:98%}}"]}),n})();const j$=function(){return["/registration"]};function H$(n,t){if(1&n){const e=j();f(0,"div",7)(1,"h2"),g(2,"\u8acb\u767b\u5165"),h(),f(3,"form",8),M("ngSubmit",function(){return T(e),O(P().login())}),f(4,"div")(5,"label",9),g(6,"\u4f7f\u7528\u8005\u540d\u7a31\uff1a"),h(),k(7,"input",10),h(),f(8,"div")(9,"label",11),g(10,"\u4f7f\u7528\u8005\u5bc6\u78bc\uff1a"),h(),k(11,"input",12),h(),f(12,"div")(13,"button",13),g(14,"\u767b\u5165"),h()()(),f(15,"p",14)(16,"a",15),g(17,"\u4f7f\u7528\u8005\u8a3b\u518a"),h()()()}if(2&n){const e=P();y(3),C("formGroup",e.form),y(13),C("routerLink",et(2,j$))}}const $$=function(){return["/home"]};let Ny=(()=>{class n{constructor(e,r,i,o,s){this.fb=e,this.router=r,this.auth=i,this.toastr=o,this.global=s,this.api="",this.loginAlive=!0,this.PasswordModify=!1,this.UserName="",this.Password="",this.NewPassword="",this.form=e.group({username:["",[Yx.required]],password:["",Yx.required]})}ngOnInit(){this.loginAliveCheck()}login(){this.form.valid&&(this.toastr.info("\u8655\u7406\u4e2d","\u8acb\u7a0d\u5f8c...",{disableTimeOut:!0}),this.auth.loginCheck(null==this.form.value.username?"":this.form.value.username,null==this.form.value.password?"":this.form.value.password).then(i=>{if(!0===i){this.toastr.clear(),this.toastr.info("\u767b\u5165\u6210\u529f"),this.loginAlive=!0;var o=localStorage.getItem("url");(""==o||null==o)&&(o="/users"),this.router.navigateByUrl(o)}}).catch(i=>{this.toastr.clear(),this.toastr.warning("\u767b\u5165\u5931\u6557\uff0c\u8acb\u6aa2\u67e5...")}))}loginAliveCheck(){var e=localStorage.getItem("access_token");this.loginAlive=""!=e&&null!=e}logout(){this.auth.logout(),this.loginAliveCheck()}modifyPwd(){var e=this.global.serverip+"/api/Token/UpdatePassword",r={UserName:this.UserName,Password:this.Password,NewPassword:this.NewPassword};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.info("\u5bc6\u78bc\u4fee\u6539\u6210\u529f"),i(!0)},s=>{o(!1)})})}}return n.\u0275fac=function(e){return new(e||n)(S(vH),S(Me),S(ct),S(dt),S(nt))},n.\u0275cmp=Fe({type:n,selectors:[["app-login"]],decls:26,vars:8,consts:[["class","xy-center flex text-center loginForm",4,"ngIf"],[1,"xy-center","text-center",3,"hidden"],[3,"click"],[2,"margin","50px",3,"click"],["type","text",3,"ngModel","ngModelChange"],["type","password",3,"ngModel","ngModelChange"],[3,"routerLink"],[1,"xy-center","flex","text-center","loginForm"],[3,"formGroup","ngSubmit"],["for","UserName"],["type","text","id","username","formControlName","username"],["for","PWD"],["type","password","id","password","formControlName","password"],[1,"font-medium"],[1,"align-right"],[1,"font-small","marginleft40",3,"routerLink"]],template:function(e,r){1&e&&(A(0,H$,18,3,"div",0),f(1,"div",1)(2,"h2"),g(3,"\u73fe\u5728\u60a8\u5df2\u7d93\u767b\u5165\u7cfb\u7d71"),h(),f(4,"a",2),M("click",function(){return r.PasswordModify=!0}),g(5,"\u4fee\u6539\u5bc6\u78bc"),h(),f(6,"button",3),M("click",function(){return r.logout()}),g(7,"\u767b\u51fa"),h()(),f(8,"div",1)(9,"h2"),g(10,"\u4fee\u6539\u4f7f\u7528\u8005\u5bc6\u78bc"),h(),g(11," \u8acb\u8f38\u5165\u4ee5\u4e0b\u8cc7\u8a0a\uff1a"),k(12,"br"),g(13," \u4f7f\u7528\u8005\u540d\u7a31\uff1a"),f(14,"input",4),M("ngModelChange",function(o){return r.UserName=o}),h(),k(15,"br"),g(16," \u820a\u5bc6\u78bc\uff1a"),f(17,"input",5),M("ngModelChange",function(o){return r.Password=o}),h(),k(18,"br"),g(19," \u65b0\u5bc6\u78bc\uff1a"),f(20,"input",5),M("ngModelChange",function(o){return r.NewPassword=o}),h(),k(21,"br"),f(22,"button",2),M("click",function(){return r.modifyPwd()}),g(23,"\u78ba\u5b9a\u4fee\u6539"),h(),f(24,"button",6),g(25,"\u53d6\u6d88\u4fee\u6539"),h()()),2&e&&(C("ngIf",!r.loginAlive),y(1),C("hidden",!r.loginAlive||r.PasswordModify),y(7),C("hidden",!r.loginAlive||!r.PasswordModify),y(6),C("ngModel",r.UserName),y(3),C("ngModel",r.Password),y(3),C("ngModel",r.NewPassword),y(4),C("routerLink",et(7,$$)))},dependencies:[Yt,ES,en,zt,_S,Ft,Sd,Y_,Br],styles:[".flex[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.text-center[_ngcontent-%COMP%]{text-align:center;vertical-align:middle}button[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer;margin:10px;font-size:18px;border:1px solid darkgray;border-radius:5px}button[_ngcontent-%COMP%]:hover{background-color:#ff0}.font-small[_ngcontent-%COMP%]{font-size:12px}.marginleft20[_ngcontent-%COMP%], .marginleft40[_ngcontent-%COMP%]{margin-left:20px}.margintop20[_ngcontent-%COMP%]{margin-top:20px}.margintop40[_ngcontent-%COMP%]{margin-top:40px}.vertical_align_bottom[_ngcontent-%COMP%]{vertical-align:text-bottom}.align-right[_ngcontent-%COMP%]{text-align:right}a[_ngcontent-%COMP%]{cursor:pointer;color:#2ea3cc}.loginForm[_ngcontent-%COMP%], label[_ngcontent-%COMP%], input[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{font-size:22px;width:150px}"]}),n})();function z$(n,t){1&n&&k(0,"span",17)}function q$(n,t){1&n&&k(0,"img",18)}function W$(n,t){1&n&&k(0,"img",19)}function G$(n,t){1&n&&k(0,"span",17)}function Y$(n,t){1&n&&k(0,"img",18)}function Q$(n,t){1&n&&k(0,"img",19)}let K$=(()=>{class n{constructor(e,r,i,o){this.router=e,this.auth=r,this.toastr=i,this.global=o,this.UserName="",this.Password="",this.Email="",this.CName="",this.Tel="",this.Address="",this.LineId="",this.FBName="",this.UserNameOK=!1,this.EmailOK=!1}ngOnInit(){}chkUserName(){var e=this.global.serverip+"/api/Users/chkUserName",r={UserName:this.UserName};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.UserNameOK=1==s,i(!0)},s=>{o(!1)})})}chkEmail(){var e=this.global.serverip+"/api/Users/chkEmail",r={Email:this.Email};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.EmailOK=1==s,i(!0)},s=>{o(!1)})})}UserRegistration(){var e=this.global.serverip+"/api/Users/UserRegistration";if(""!=this.UserName&&0!=this.UserNameOK&&""!=this.Password&&""!=this.Email&&0!=this.EmailOK){var r={UserName:this.UserName,Password:this.Password,Email:this.Email,CName:this.CName,Tel:this.Tel,Address:this.Address,LineId:this.LineId,FBName:this.FBName};return this.toastr.info("\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{1==s?(this.toastr.info("\u4f7f\u7528\u8005\u8a3b\u518a\u6210\u529f"),this.router.navigate(["/login"])):this.toastr.warning("\u932f\u8aa4\uff01\u8acb\u91cd\u8a66..."),i(!0)},s=>{o(!1)})})}}}return n.\u0275fac=function(e){return new(e||n)(S(Me),S(ct),S(dt),S(nt))},n.\u0275cmp=Fe({type:n,selectors:[["app-registration"]],decls:55,vars:14,consts:[[1,"xy-center","text-center"],[1,"align-right"],["for","UserName"],[1,"mustfill"],["type","text",2,"width","220px",3,"ngModel","ngModelChange","change"],["style","display:inline-block;width:18px;",4,"ngIf"],["style","width:18px;","src","./assets/images/OK.png",4,"ngIf"],["style","width:18px","src","./assets/images/Not_OK.png",4,"ngIf"],["for","PWD"],["type","password",2,"width","220px","margin-right","18px",3,"ngModel","ngModelChange"],["for","Email"],["for","CName"],["type","text",2,"width","220px",3,"ngModel","ngModelChange"],["for","tel"],["type","text",2,"width","250px",3,"ngModel","ngModelChange"],[1,"font-medium",3,"click"],["align","left"],[2,"display","inline-block","width","18px"],["src","./assets/images/OK.png",2,"width","18px"],["src","./assets/images/Not_OK.png",2,"width","18px"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"h2"),g(2,"\u4f7f\u7528\u8005\u8a3b\u518a"),h(),f(3,"div",1)(4,"label",2)(5,"span",3),g(6,"*"),h(),g(7," \u767b\u5165\u540d\u7a31\uff1a"),h(),f(8,"input",4),M("ngModelChange",function(o){return r.UserName=o})("change",function(){return r.chkUserName()}),h(),A(9,z$,1,0,"span",5),A(10,q$,1,0,"img",6),A(11,W$,1,0,"img",7),h(),f(12,"div",1)(13,"label",8)(14,"span",3),g(15,"*"),h(),g(16," \u8a2d\u5b9a\u5bc6\u78bc\uff1a"),h(),f(17,"input",9),M("ngModelChange",function(o){return r.Password=o}),h()(),f(18,"div",1)(19,"label",10)(20,"span",3),g(21,"*"),h(),g(22," Email\uff1a"),h(),f(23,"input",4),M("ngModelChange",function(o){return r.Email=o})("change",function(){return r.chkEmail()}),h(),A(24,G$,1,0,"span",5),A(25,Y$,1,0,"img",6),A(26,Q$,1,0,"img",7),h(),f(27,"div")(28,"p"),g(29,"==================================="),h()(),f(30,"div",1)(31,"label",11),g(32,"\u59d3\u540d\uff1a"),h(),f(33,"input",12),M("ngModelChange",function(o){return r.CName=o}),h()(),f(34,"div",1)(35,"label",13),g(36,"\u96fb\u8a71\uff1a"),h(),f(37,"input",12),M("ngModelChange",function(o){return r.Tel=o}),h()(),f(38,"div",1)(39,"label",10),g(40,"Line Id\uff1a"),h(),f(41,"input",12),M("ngModelChange",function(o){return r.LineId=o}),h()(),f(42,"div",1)(43,"label",10),g(44,"\u81c9\u66f8\u540d\u7a31\uff1a"),h(),f(45,"input",12),M("ngModelChange",function(o){return r.FBName=o}),h()(),f(46,"div",1)(47,"label",10),g(48,"\u90f5\u5bc4\u5730\u5740\uff1a"),h(),f(49,"input",14),M("ngModelChange",function(o){return r.Address=o}),h()(),f(50,"button",15),M("click",function(){return r.UserRegistration()}),g(51,"\u8a3b\u518a"),h(),f(52,"p",16)(53,"span",3),g(54,"* \u70ba\u5fc5\u9808\u586b\u5beb\u8cc7\u6599"),h()()()),2&e&&(y(8),C("ngModel",r.UserName),y(1),C("ngIf",!(""!=r.UserName&&r.UserNameOK||""!=r.UserName&&!r.UserNameOK)),y(1),C("ngIf",""!=r.UserName&&r.UserNameOK),y(1),C("ngIf",""!=r.UserName&&!r.UserNameOK),y(6),C("ngModel",r.Password),y(6),C("ngModel",r.Email),y(1),C("ngIf",!(""!=r.Email&&r.EmailOK||""!=r.Email&&!r.EmailOK)),y(1),C("ngIf",""!=r.Email&&r.EmailOK),y(1),C("ngIf",""!=r.Email&&!r.EmailOK),y(7),C("ngModel",r.CName),y(4),C("ngModel",r.Tel),y(4),C("ngModel",r.LineId),y(4),C("ngModel",r.FBName),y(4),C("ngModel",r.Address))},dependencies:[Yt,en,zt,Ft],styles:[".x-center[_ngcontent-%COMP%]{margin:auto;padding:10px}.y-center[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);padding:10px}.xy-center[_ngcontent-%COMP%]{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);padding:10px}.text-center[_ngcontent-%COMP%]{text-align:center;vertical-align:middle}button[_ngcontent-%COMP%]{padding:5px 20px;background-color:transparent;cursor:pointer;margin:10px;border:1px solid darkgray;border-radius:5px}.font-small[_ngcontent-%COMP%]{font-size:12px}.font-medium[_ngcontent-%COMP%]{font-size:18px}.font-large[_ngcontent-%COMP%]{font-size:24px}.marginleft20[_ngcontent-%COMP%], .marginleft40[_ngcontent-%COMP%]{margin-left:20px}.margintop20[_ngcontent-%COMP%]{margin-top:20px}.margintop40[_ngcontent-%COMP%]{margin-top:40px}.vertical_align_bottom[_ngcontent-%COMP%]{vertical-align:text-bottom}.align-right[_ngcontent-%COMP%]{text-align:right}a[_ngcontent-%COMP%]{cursor:pointer;color:#2ea3cc}"]}),n})(),Ly=(()=>{class n{constructor(e,r,i){this.auth=e,this.router=r,this.login=i}canActivate(e,r){return this.auth.isTokenAliveCheck().then(i=>1==i||(this.login.loginAlive=!1,this.router.navigateByUrl("login"),!1))}}return n.\u0275fac=function(e){return new(e||n)(V(ct),V(Me),V(Ny))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),X$=(()=>{class n{constructor(e,r,i,o,s){this.router=e,this.global=r,this.http=i,this.auth=o,this.toastr=s,this.loginQryModel=new MO,this.api=""}goAddToCart(e,r,i,o){if(localStorage.setItem("url",e),0!=this.auth.isLoggedIn()){e=this.global.serverip+"/api/ShoppingCart/AddToCart";var s={ProductId:r,UnitPrice:i,Qty:o};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((a,l)=>{this.auth.httpDo(e,s).then(u=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u5df2\u52a0\u5165\u8cfc\u7269\u8eca"),a(!0)},u=>{l(!1)})})}this.router.navigateByUrl("login")}}return n.\u0275fac=function(e){return new(e||n)(V(Me),V(nt),V(Kd),V(ct),V(dt))},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Z$(n,t){1&n&&k(0,"img",10),2&n&&C("src",t.$implicit.file,Ti)}let J$=(()=>{class n{constructor(e,r,i,o,s,a,l){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.media=s,this.addtocart=a,this.router=l,this.ProductId="",this.ProductName="",this.Description="",this.ProductContents="",this.ProductSpec="",this.UnitPrice="",this.Qty="1",this.Imgs=[],this.slideIndex=1,this.timer=setTimeout(()=>{this.showSlides(this.slideIndex)},1e3)}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.ProductId=this.id,this.getProductProfile(),this.goDownloadFile(this.ProductId)}offQty(){this.Qty=(parseInt(this.Qty)-1).toString(),0==parseInt(this.Qty)&&(this.Qty="1")}addQty(){this.Qty=(parseInt(this.Qty)+1).toString()}initProd(){this.ProductId=this.Prod.ProductId,this.ProductName=this.Prod.ProdName,this.ProductSpec=this.Prod.ProductSpec,this.ProductContents=this.Prod.ProductContents,this.UnitPrice=this.Prod.StdPrice,this.PImages=this.Prod.ImageUUIDs,this.LoadImage(),setTimeout(()=>{this.showSlides(this.slideIndex)},2e3)}getProductProfile(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Product/GetProductProfile",{ProductId:this.ProductId}).then(i=>(this.Prod=i,this.initProd(),!0),i=>!1))}goDownloadFile(e){this.media.getMedia(e).then(r=>{this.tImage=r})}LoadImage(){this.Imgs=[],this.PImages.forEach(e=>{this.getImgFile(e)})}getImgFile(e){this.media.getMedia(e).then(r=>{this.theImage=r;var i=new ez;return i.file=r,i.filename=e,this.Imgs.push(i),r})}plusSlides(e){this.showSlides(this.slideIndex+=e)}currentSlide(e){this.showSlides(this.slideIndex=e)}showSlides(e){var r,i=Array.from(document.getElementsByClassName("mySlides"));if(0!=i.length){var o=document.getElementsByClassName("dot");for(e>i.length&&(this.slideIndex=1),e<1&&(this.slideIndex=i.length),r=0;r<i.length;r++)i[r].style.display="none";for(r=0;r<o.length;r++)o[r].className=o[r].className.replace(" active","");i[this.slideIndex-1].style.display="block",o[this.slideIndex-1].className+=" active",this.timer=setTimeout(()=>{this.plusSlides(1)},5e3)}}AddToCart(e,r,i){this.addtocart.goAddToCart("/product/"+e,e,Number(r),Number(i))}gotoCart(){this.router.navigateByUrl("users/shoppingcart")}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Ry),S(X$),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-product-view"]],decls:31,vars:8,consts:[[1,"center"],[1,"ProductDetail"],[1,"imageWithParagraph",3,"src"],[1,"ParagraphChangeLineAsTypeIn",3,"innerHtml"],[1,"flex"],["class","BigImage","style","width:100%",3,"src",4,"ngFor","ngForOf"],[1,"bottom-div","addToCart"],[1,"littleBlock"],[1,"button","AddButton",3,"click"],[1,"footer"],[1,"BigImage",2,"width","100%",3,"src"]],template:function(e,r){1&e&&(f(0,"div")(1,"div",0)(2,"div",1)(3,"h1"),g(4),h(),f(5,"p"),g(6),h(),k(7,"img",2)(8,"p",3),f(9,"p"),g(10),h()()(),f(11,"div",4),A(12,Z$,1,1,"img",5),h(),f(13,"div",6)(14,"span",7),g(15),h(),f(16,"span",7),g(17,"\u6578\u91cf:"),h(),f(18,"span",8),M("click",function(){return r.offQty()}),g(19,"-"),h(),f(20,"span",7),g(21),h(),f(22,"span",8),M("click",function(){return r.addQty()}),g(23,"+"),h(),f(24,"span",8),M("click",function(){return r.AddToCart(r.ProductId,r.UnitPrice,r.Qty)}),g(25,"\u52a0\u5165"),k(26,"br"),g(27,"\u83dc\u7c43"),h(),f(28,"span",8),M("click",function(){return r.gotoCart()}),g(29,"\u7d50\u5e33"),h()()(),k(30,"div",9)),2&e&&(y(4),F(r.ProductName),y(2),F(r.Description),y(1),C("src",r.Imgs[0].file,Ti),y(1),C("innerHtml",r.ProductContents,Ga),y(2),F(r.ProductSpec),y(2),C("ngForOf",r.Imgs),y(3),ze("$",r.UnitPrice,""),y(6),F(r.Qty))},dependencies:[fn],styles:['h1[_ngcontent-%COMP%]{font-size:42px}.slideImage[_ngcontent-%COMP%]{width:100%}.ProductDetail[_ngcontent-%COMP%]{max-width:800px;min-width:300px;margin:0 auto;font-size:18px}.ProductDetail[_ngcontent-%COMP%]{*zoom: 1}.ProductDetail[_ngcontent-%COMP%]:before, .ProductDetail[_ngcontent-%COMP%]:after{display:table;line-height:0;content:""}.ProductDetail[_ngcontent-%COMP%]:after{clear:both}.imageWithParagraph[_ngcontent-%COMP%]{max-width:450px;min-width:100px;background:#ccc;margin:10px;float:right}.ParagraphChangeLineAsTypeIn[_ngcontent-%COMP%]{white-space:pre-line}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.flex[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.bottom-div[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0}.addToCart[_ngcontent-%COMP%]{background-color:#f08bc3;margin:5px;display:flex;justify-content:space-around;align-items:center;color:#fff;font-size:2rem}.imgAddToCart[_ngcontent-%COMP%]{width:50px;height:45px;margin-left:20px}.imgAddToCart[_ngcontent-%COMP%]:hover{background-color:orange;cursor:pointer}.BigImage[_ngcontent-%COMP%]{max-width:95%}.footer[_ngcontent-%COMP%]{height:80px}.AddButton[_ngcontent-%COMP%]{color:#fff;background-color:#f08bc3;border:0}.AddButton[_ngcontent-%COMP%]:hover{color:#f08bc3}.littleBlock[_ngcontent-%COMP%]{margin-left:10px}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:700px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 500px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}.addToCart[_ngcontent-%COMP%]{font-size:20px}.imageWithParagraph[_ngcontent-%COMP%]{width:180px}}']}),n})();class ez{constructor(){this.file=null,this.filename=""}}const tz=[{path:"",redirectTo:"/users",pathMatch:"full",title:""},{path:"home",redirectTo:"/users",pathMatch:"full",title:""},{path:"home",component:U$,title:""},{path:"login",component:Ny,title:"\u8acb\u767b\u5165\u7cfb\u7d71"},{path:"registration",component:K$,title:"\u8a3b\u518a\u4f7f\u7528"},{path:"product/:id",component:J$,title:""}];let nz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({providers:[ct,Ly,Ny],imports:[Ks.forRoot(tz,{initialNavigation:"enabledBlocking"}),Ks]}),n})();const NO=function(){return["/users"]},rz=function(){return["/login"]};let iz=(()=>{class n{constructor(){this.lastScrollPosition=0,this.pStart={x:0,y:0},this.pCurrent={x:0,y:0},this.changeY=0,this.main=document.querySelector("#container")}ngOnInit(){}funHideSidebar(){this.varCk1=!1}onScroll(e){this.lastScrollPosition=e.target.scrollTop}onTouchStart(e){e.targetTouches&&(this.pStart={x:e.targetTouches[0].screenX,y:e.targetTouches[0].screenY})}onTouchMove(e){e.targetTouches&&(this.pCurrent={x:e.targetTouches[0].screenX,y:e.targetTouches[0].screenY})}onTouchEnd(e){this.changeY=this.pCurrent.y-this.pStart.y,this.changeY>0&&0==this.lastScrollPosition&&window.location.reload()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-layout"]],hostBindings:function(e,r){1&e&&M("touchstart",function(o){return r.onTouchStart(o)})("touchmove",function(o){return r.onTouchMove(o)})("touchend",function(o){return r.onTouchEnd(o)})},decls:23,vars:8,consts:[[1,"asideList"],[1,"asideAnchor",3,"routerLink","click"],["href","",1,"asideAnchor"],["type","checkbox","id","myInput",3,"checked","ngModel","ngModelChange"],["for","myInput",1,"sidebar"],[1,"bar","top"],[1,"bar","middle"],[1,"bar","bottom"],["id","container",1,"container",3,"scroll"]],template:function(e,r){1&e&&(f(0,"main")(1,"aside")(2,"ul",0)(3,"li")(4,"a",1),M("click",function(){return r.funHideSidebar()}),g(5,"Home"),h()(),f(6,"li")(7,"a",2),g(8,"Link"),h()(),f(9,"li")(10,"a",1),M("click",function(){return r.funHideSidebar()}),g(11,"Users"),h()(),f(12,"li")(13,"a",1),M("click",function(){return r.funHideSidebar()}),g(14,"Login"),h()()()(),f(15,"section")(16,"input",3),M("ngModelChange",function(o){return r.varCk1=o}),h(),f(17,"label",4),k(18,"span",5)(19,"span",6)(20,"span",7),h(),f(21,"div",8),M("scroll",function(o){return r.onScroll(o)}),k(22,"router-outlet"),h()()()),2&e&&(y(4),C("routerLink",et(5,NO)),y(6),C("routerLink",et(6,NO)),y(3),C("routerLink",et(7,rz)),y(3),C("checked",r.varCk1)("ngModel",r.varCk1))},dependencies:[Pl,zt,Ft,ji,Br],styles:['body,html{margin:0;padding:0;height:100%;width:100%;font-family:Open Sans,sans-serif}main{height:100%;width:100%}aside{background-color:#0799d3;position:fixed;top:0;bottom:0;left:0;width:20%;z-index:1}section{position:relative;width:100%;height:100%;background-color:#fff}label.sidebar{display:inline-block;padding:7px 10px;background-color:transparent;cursor:pointer;margin:10px;z-index:3;position:fixed}.bar{display:block;background-color:#0799d3;width:30px;height:3px;border-radius:5px;margin:5px auto;transition:background-color .5s ease-in,transform .5s ease-in,width .5s ease-in}.container{position:absolute;inset:0;background-color:#fff;z-index:2;transition:transform .5s ease-in-out;overflow-x:hidden;width:100%;height:100%}.routeContent{margin:0;position:relative;top:0;left:0;right:0;transform:translateY(-50%)}.asideList{list-style:none;padding:0;margin:100px 0 0;text-align:center;border-top:2px solid rgba(255,255,255,.7)}.asideAnchor{border-bottom:2px solid rgba(255,255,255,.7);padding:20px 0;display:block;color:#fff;text-transform:uppercase;text-decoration:none;font-size:20px;font-weight:500;position:relative;transition:color .3s .15s ease-in}.asideAnchor:after{content:"";position:absolute;left:0;bottom:0;height:100%;background-color:#fff;width:0;transition:width .3s ease-in;z-index:-1}.asideAnchor:hover{color:#0799d3}.asideAnchor:hover:after{width:100%}input[type=checkbox]:checked~.container{transform:translate(20%)}input[type=checkbox]:checked~label.sidebar .bar{background-color:#fff}input[type=checkbox]:checked~label.sidebar .top{transform:translateY(0) rotate(45deg)}input[type=checkbox]:checked~label.sidebar .bottom{transform:translateY(-15px) rotate(-45deg)}input[type=checkbox]:checked~label.sidebar .middle{width:0}.middle{margin:0 auto}.ua{position:absolute;right:20px;bottom:20px;color:#0799d3;font-size:2em;z-index:2}.mustfill{color:red}button{min-width:80px}span.button{cursor:pointer;text-align:center;display:inline-block;border:1px solid #F0F0F0;background-color:#fdffff;padding:3px 7px;border-radius:8px}span.button:hover{background-color:#ff0}.wFree{width:auto}.x-center{position:absolute;left:50%;transform:translate(-50%);padding:10px}.y-center{position:absolute;top:50%;transform:translateY(-50%);padding:10px}.xy-center{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);padding:10px}@media print{body,html,#container{width:100%;height:100%;overflow:visible}}\n'],encapsulation:2}),n})(),oz=(()=>{class n{constructor(){this.title="MDS"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(e,r){1&e&&k(0,"app-layout")},dependencies:[iz]}),n})();const By=new Q("JWT_OPTIONS");let LO=(()=>{class n{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(r)}b64decode(e){let i="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let s,a,o=0,l=0;a=e.charAt(l++);~a&&(s=o%4?64*s+a:a,o++%4)?i+=String.fromCharCode(255&s>>(-2*o&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return i}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(r=>this._decodeToken(r)):this._decodeToken(e)}_decodeToken(e){if(!e||""===e)return null;const r=e.split(".");if(3!==r.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const i=this.urlBase64Decode(r[1]);if(!i)throw new Error("Cannot decode the token.");return JSON.parse(i)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(r=>this._getTokenExpirationDate(r)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let r;if(r=this.decodeToken(e),!r||!r.hasOwnProperty("exp"))return null;const i=new Date(0);return i.setUTCSeconds(r.exp),i}isTokenExpired(e=this.tokenGetter(),r){return e instanceof Promise?e.then(i=>this._isTokenExpired(i,r)):this._isTokenExpired(e,r)}_isTokenExpired(e,r){if(!e||""===e)return!0;const i=this.getTokenExpirationDate(e);return r=r||0,null!==i&&!(i.valueOf()>(new Date).valueOf()+1e3*r)}getAuthScheme(e,r){return"function"==typeof e?e(r):e}}return n.\u0275fac=function(e){return new(e||n)(V(By))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const BO=n=>n instanceof Promise?J_(()=>n):J(n);let sz=(()=>{class n{constructor(e,r,i){this.jwtHelper=r,this.document=i,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||""===e.authScheme?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){const r=new URL(e.url,this.document.location.origin);if(r.host===this.document.location.host)return!0;const i=`${r.hostname}${r.port&&!this.standardPorts.includes(r.port)?":"+r.port:""}`;return this.allowedDomains.findIndex(o=>"string"==typeof o?o===i:o instanceof RegExp&&o.test(i))>-1}isDisallowedRoute(e){const r=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(i=>{if("string"==typeof i){const o=new URL(i,this.document.location.origin);return o.hostname===r.hostname&&o.pathname===r.pathname}return i instanceof RegExp&&i.test(e.url)})>-1}handleInterception(e,r,i){const o=this.jwtHelper.getAuthScheme(this.authScheme,r);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=J(!1);return this.skipWhenExpired&&(s=e?BO(this.jwtHelper.isTokenExpired(e)):J(!0)),e?s.pipe(de(a=>a&&this.skipWhenExpired?r.clone():r.clone({setHeaders:{[this.headerName]:`${o}${e}`}})),Vt(a=>i.handle(a))):i.handle(r)}intercept(e,r){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return r.handle(e);const i=this.tokenGetter(e);return BO(i).pipe(Vt(o=>this.handleInterception(o,e,r)))}}return n.\u0275fac=function(e){return new(e||n)(V(By),V(LO),V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),az=(()=>{class n{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:n,providers:[{provide:pO,useClass:sz,multi:!0},e.jwtOptionsProvider||{provide:By,useValue:e.config},LO]}}}return n.\u0275fac=function(e){return new(e||n)(V(n,12))},n.\u0275mod=At({type:n}),n.\u0275inj=bt({}),n})();function VO(n){return new N(3e3,!1)}function Hz(){return typeof window<"u"&&typeof window.document<"u"}function Vy(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function $i(n){switch(n.length){case 0:return new Kl;case 1:return n[0];default:return new IO(n)}}function UO(n,t,e,r,i=new Map,o=new Map){const s=[],a=[];let l=-1,u=null;if(r.forEach(c=>{const d=c.get("offset"),p=d==l,m=p&&u||new Map;c.forEach((_,v)=>{let b=v,w=_;if("offset"!==v)switch(b=t.normalizePropertyName(b,s),w){case"!":w=i.get(v);break;case pi:w=o.get(v);break;default:w=t.normalizeStyleValue(v,b,w,s)}m.set(b,w)}),p||a.push(m),u=m,l=d}),s.length)throw function Ez(n){return new N(3502,!1)}();return a}function Uy(n,t,e,r){switch(t){case"start":n.onStart(()=>r(e&&jy(e,"start",n)));break;case"done":n.onDone(()=>r(e&&jy(e,"done",n)));break;case"destroy":n.onDestroy(()=>r(e&&jy(e,"destroy",n)))}}function jy(n,t,e){const o=Hy(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Hy(n,t,e,r,i="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function qn(n,t,e){let r=n.get(t);return r||n.set(t,r=e),r}function jO(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let $y=(n,t)=>!1,HO=(n,t,e)=>[],$O=null;function zy(n){const t=n.parentNode||n.host;return t===$O?null:t}(Vy()||typeof Element<"u")&&(Hz()?($O=(()=>document.documentElement)(),$y=(n,t)=>{for(;t;){if(t===n)return!0;t=zy(t)}return!1}):$y=(n,t)=>n.contains(t),HO=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const r=n.querySelector(t);return r?[r]:[]});let Fo=null,zO=!1;const qO=$y,WO=HO;let GO=(()=>{class n{validateStyleProperty(e){return function zz(n){Fo||(Fo=function qz(){return typeof document<"u"?document.body:null}()||{},zO=!!Fo.style&&"WebkitAppearance"in Fo.style);let t=!0;return Fo.style&&!function $z(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Fo.style,!t&&zO&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Fo.style)),t}(e)}matchesElement(e,r){return!1}containsElement(e,r){return qO(e,r)}getParentElement(e){return zy(e)}query(e,r,i){return WO(e,r,i)}computeStyle(e,r,i){return i||""}animate(e,r,i,o,s,a=[],l){return new Kl(i,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})(),qy=(()=>{class n{}return n.NOOP=new GO,n})();const Wy="ng-enter",Zd="ng-leave",Jd="ng-trigger",ef=".ng-trigger",QO="ng-animating",Gy=".ng-animating";function gi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Yy(parseFloat(t[1]),t[2])}function Yy(n,t){return"s"===t?1e3*n:n}function tf(n,t,e){return n.hasOwnProperty("duration")?n:function Yz(n,t,e){let i,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(VO()),{duration:0,delay:0,easing:""};i=Yy(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Yy(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else i=n;if(!e){let a=!1,l=t.length;i<0&&(t.push(function lz(){return new N(3100,!1)}()),a=!0),o<0&&(t.push(function uz(){return new N(3101,!1)}()),a=!0),a&&t.splice(l,0,VO())}return{duration:i,delay:o,easing:s}}(n,t,e)}function Xl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function KO(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function zi(n,t=new Map,e){if(e)for(let[r,i]of e)t.set(r,i);for(let[r,i]of n)t.set(r,i);return t}function ZO(n,t,e){return e?t+":"+e+";":""}function JO(n){let t="";for(let e=0;e<n.style.length;e++){const r=n.style.item(e);t+=ZO(0,r,n.style.getPropertyValue(r))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=ZO(0,Zz(e),n.style[e]));n.setAttribute("style",t)}function Vr(n,t,e){n.style&&(t.forEach((r,i)=>{const o=Ky(i);e&&!e.has(i)&&e.set(i,n.style[o]),n.style[o]=r}),Vy()&&JO(n))}function Ro(n,t){n.style&&(t.forEach((e,r)=>{const i=Ky(r);n.style[i]=""}),Vy()&&JO(n))}function Zl(n){return Array.isArray(n)?1==n.length?n[0]:OO(n):n}const Qy=new RegExp("{{\\s*(.+?)\\s*}}","g");function eE(n){let t=[];if("string"==typeof n){let e;for(;e=Qy.exec(n);)t.push(e[1]);Qy.lastIndex=0}return t}function Jl(n,t,e){const r=n.toString(),i=r.replace(Qy,(o,s)=>{let a=t[s];return null==a&&(e.push(function dz(n){return new N(3003,!1)}()),a=""),a.toString()});return i==r?n:i}function nf(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const Xz=/-+([a-z0-9])/g;function Ky(n){return n.replace(Xz,(...t)=>t[1].toUpperCase())}function Zz(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wn(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function fz(n){return new N(3004,!1)}()}}function tE(n,t){return window.getComputedStyle(n)[t]}function iq(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function oq(n,t,e){if(":"==n[0]){const l=function sq(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r)<parseFloat(e);default:return t.push(function xz(n){return new N(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function Dz(n){return new N(3015,!1)}()),t;const i=r[1],o=r[2],s=r[3];t.push(nE(i,s));"<"==o[0]&&!("*"==i&&"*"==s)&&t.push(nE(s,i))}(r,e,t)):e.push(n),e}const lf=new Set(["true","1"]),uf=new Set(["false","0"]);function nE(n,t){const e=lf.has(n)||uf.has(n),r=lf.has(t)||uf.has(t);return(i,o)=>{let s="*"==n||n==i,a="*"==t||t==o;return!s&&e&&"boolean"==typeof i&&(s=i?lf.has(n):uf.has(n)),!a&&r&&"boolean"==typeof o&&(a=o?lf.has(t):uf.has(t)),s&&a}}const aq=new RegExp("s*:selfs*,?","g");function Xy(n,t,e,r){return new lq(n).build(t,e,r)}class lq{constructor(t){this._driver=t}build(t,e,r){const i=new dq(e);return this._resetContextStyleTimingState(i),Wn(this,Zl(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let r=e.queryCount=0,i=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function pz(){return new N(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,o.push(this.visitState(l,e))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,e);r+=l.queryCount,i+=l.depCount,s.push(l)}else e.errors.push(function gz(){return new N(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,e){const r=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{eE(l).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&(nf(o.values()),e.errors.push(function mz(n,t){return new N(3008,!1)}()))}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const r=Wn(this,Zl(t.animation),e);return{type:1,matchers:iq(t.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:No(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(r=>Wn(this,r,e)),options:No(t.options)}}visitGroup(t,e){const r=e.currentTime;let i=0;const o=t.steps.map(s=>{e.currentTime=r;const a=Wn(this,s,e);return i=Math.max(i,e.currentTime),a});return e.currentTime=i,{type:3,steps:o,options:No(t.options)}}visitAnimate(t,e){const r=function hq(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Zy(tf(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Zy(0,0,"");return o.dynamic=!0,o.strValue=e,o}const i=tf(e,t);return Zy(i.duration,i.delay,i.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;let i,o=t.styles?t.styles:Ql({});if(5==o.type)i=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const u={};r.easing&&(u.easing=r.easing),s=Ql(u)}e.currentTime+=r.duration+r.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,i=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,e){const r=this._makeStyleAst(t,e);return this._validateStyleAst(r,e),r}_makeStyleAst(t,e){const r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)"string"==typeof a?a===pi?r.push(a):e.errors.push(new N(3002,!1)):r.push(KO(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const r=e.currentAnimateTimings;let i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const u=e.collectedStyles.get(e.currentQuerySelector),c=u.get(l);let d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push(function yz(n,t,e,r,i){return new N(3010,!1)}()),d=!1),o=c.startTime),d&&u.set(l,{startTime:o,endTime:i}),e.options&&function Kz(n,t,e){const r=t.params||{},i=eE(n);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||e.push(function cz(n){return new N(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function vz(){return new N(3011,!1)}()),r;let o=0;const s=[];let a=!1,l=!1,u=0;const c=t.steps.map(w=>{const D=this._makeStyleAst(w,e);let x=null!=D.offset?D.offset:function fq(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const r=e;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(D.styles),E=0;return null!=x&&(o++,E=D.offset=x),l=l||E<0||E>1,a=a||E<u,u=E,s.push(E),D});l&&e.errors.push(function bz(){return new N(3012,!1)}()),a&&e.errors.push(function Cz(){return new N(3200,!1)}());const d=t.steps.length;let p=0;o>0&&o<d?e.errors.push(function wz(){return new N(3202,!1)}()):0==o&&(p=1/(d-1));const m=d-1,_=e.currentTime,v=e.currentAnimateTimings,b=v.duration;return c.forEach((w,D)=>{const x=p>0?D==m?1:p*D:s[D],E=x*b;e.currentTime=_+v.delay+E,v.duration=E,this._validateStyleAst(w,e),w.offset=x,r.styles.push(w)}),r}visitReference(t,e){return{type:8,animation:Wn(this,Zl(t.animation),e),options:No(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:No(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:No(t.options)}}visitQuery(t,e){const r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function uq(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(aq,"")),n=n.replace(/@\*/g,ef).replace(/@\w+/g,e=>ef+"-"+e.slice(1)).replace(/:animating/g,Gy),[n,t]}(t.selector);e.currentQuerySelector=r.length?r+" "+o:o,qn(e.collectedStyles,e.currentQuerySelector,new Map);const a=Wn(this,Zl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:No(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function Pz(){return new N(3013,!1)}());const r="full"===t.timings?{duration:0,delay:0,easing:"full"}:tf(t.timings,e.errors,!0);return{type:12,animation:Wn(this,Zl(t.animation),e),timings:r,options:null}}}class dq{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function No(n){return n?(n=Xl(n)).params&&(n.params=function cq(n){return n?Xl(n):null}(n.params)):n={},n}function Zy(n,t,e){return{duration:n,delay:t,easing:e}}function Jy(n,t,e,r,i,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class cf{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const mq=new RegExp(":enter","g"),yq=new RegExp(":leave","g");function ev(n,t,e,r,i,o=new Map,s=new Map,a,l,u=[]){return(new vq).buildKeyframes(n,t,e,r,i,o,s,a,l,u)}class vq{buildKeyframes(t,e,r,i,o,s,a,l,u,c=[]){u=u||new cf;const d=new tv(t,e,u,i,o,c,[]);d.options=l;const p=l.delay?gi(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),Wn(this,r,d);const m=d.timelines.filter(_=>_.containsAnimation());if(m.length&&a.size){let _;for(let v=m.length-1;v>=0;v--){const b=m[v];if(b.element===e){_=b;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,d.errors,l)}return m.length?m.map(_=>_.buildKeyframes()):[Jy(e,[],[],[],0,p,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const r=e.subInstructions.get(e.element);if(r){const i=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const r=e.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,r),this.visitReference(t.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,r){for(const i of t){const o=i?.delay;if(o){const s="number"==typeof o?o:gi(Jl(o,i?.params??{},e.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,e,r){let o=e.currentTimeline.currentTime;const s=null!=r.duration?gi(r.duration):null,a=null!=r.delay?gi(r.delay):null;return 0!==s&&t.forEach(l=>{const u=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Wn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const r=e.subContextCount;let i=e;const o=t.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=df);const s=gi(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Wn(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const r=[];let i=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?gi(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Wn(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const r=t.strValue;return tf(e.params?Jl(r,e.params,e.errors):r,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const r=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),i.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(r.duration),this.visitStyle(o,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const r=e.currentTimeline,i=e.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const r=e.currentAnimateTimings,i=e.currentTimeline.duration,o=r.duration,a=e.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(i+o),e.previousNode=t}visitQuery(t,e){const r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?gi(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=df);let s=r;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{e.currentQueryIndex=c;const d=e.createSubContext(t.options,u);o&&d.delayNextStep(o),u===e.element&&(l=d.currentTimeline),Wn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const r=e.parentContext,i=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=e.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;Wn(this,t.animation,e),e.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const df={};class tv{constructor(t,e,r,i,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=df,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ff(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const r=t;let i=this.options;null!=r.duration&&(i.duration=gi(r.duration)),null!=r.delay&&(i.delay=gi(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Jl(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const r=t.params={};Object.keys(e).forEach(i=>{r[i]=e[i]})}}return t}createSubContext(t=null,e,r){const i=e||this.element,o=new tv(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=df,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,r){const i={duration:e??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},o=new bq(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(mq,"."+this._enterClassName)).replace(yq,"."+this._leaveClassName);let u=this._driver.query(this.element,t,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&0==a.length&&s.push(function Mz(n){return new N(3014,!1)}()),a}}class ff{constructor(t,e,r,i){this._driver=t,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ff(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||pi),this._currentKeyframe.set(e,pi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,r,i){e&&this._previousKeyframe.set("easing",e);const o=i&&i.params||{},s=function Cq(n,t){const e=new Map;let r;return n.forEach(i=>{if("*"===i){r=r||t.keys();for(let o of r)e.set(o,pi)}else zi(i,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const u=Jl(l,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??pi),this._updateStyle(a,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,r)=>{const i=this._styleSummary.get(r);(!i||e.time>i.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=zi(a,new Map,this._backFill);u.forEach((c,d)=>{"!"===c?t.add(d):c===pi&&e.add(d)}),r||u.set("offset",l/this.duration),i.push(u)});const o=t.size?nf(t.values()):[],s=e.size?nf(e.values()):[];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return Jy(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class bq extends ff{constructor(t,e,r,i,o,s,a=!1){super(t,e,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=r+e,a=e/s,l=zi(t[0]);l.set("offset",0),o.push(l);const u=zi(t[0]);u.set("offset",oE(a)),o.push(u);const c=t.length-1;for(let d=1;d<=c;d++){let p=zi(t[d]);const m=p.get("offset");p.set("offset",oE((e+m*r)/s)),o.push(p)}r=s,e=0,i="",t=o}return Jy(this.element,t,this.preStyleProps,this.postStyleProps,r,e,i,!0)}}function oE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class nv{}const wq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Pq extends nv{normalizePropertyName(t,e){return Ky(t)}normalizeStyleValue(t,e,r,i){let o="";const s=r.toString().trim();if(wq.has(e)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function hz(n,t){return new N(3005,!1)}())}return s+o}}function sE(n,t,e,r,i,o,s,a,l,u,c,d,p){return{type:0,element:n,triggerName:t,isRemovalTransition:i,fromState:e,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:p}}const rv={};class aE{constructor(t,e,r){this._triggerName=t,this.ast=e,this._stateStyles=r}match(t,e,r,i){return function Mq(n,t,e,r,i){return n.some(o=>o(t,e,r,i))}(this.ast.matchers,t,e,r,i)}buildStyles(t,e,r){let i=this._stateStyles.get("*");return void 0!==t&&(i=this._stateStyles.get(t?.toString())||i),i?i.buildStyles(e,r):new Map}build(t,e,r,i,o,s,a,l,u,c){const d=[],p=this.ast.options&&this.ast.options.params||rv,_=this.buildStyles(r,a&&a.params||rv,d),v=l&&l.params||rv,b=this.buildStyles(i,v,d),w=new Set,D=new Map,x=new Map,E="void"===i,I={params:Dq(v,p),delay:this.ast.options?.delay},R=c?[]:ev(t,e,this.ast.animation,o,s,_,b,I,u,d);let B=0;if(R.forEach(z=>{B=Math.max(z.duration+z.delay,B)}),d.length)return sE(e,this._triggerName,r,i,E,_,b,[],[],D,x,B,d);R.forEach(z=>{const ee=z.element,fe=qn(D,ee,new Set);z.preStyleProps.forEach(Se=>fe.add(Se));const ae=qn(x,ee,new Set);z.postStyleProps.forEach(Se=>ae.add(Se)),ee!==e&&w.add(ee)});const $=nf(w.values());return sE(e,this._triggerName,r,i,E,_,b,R,$,D,x,B)}}function Dq(n,t){const e=Xl(t);for(const r in n)n.hasOwnProperty(r)&&null!=n[r]&&(e[r]=n[r]);return e}class xq{constructor(t,e,r){this.styles=t,this.defaultParams=e,this.normalizer=r}buildStyles(t,e){const r=new Map,i=Xl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Jl(s,i,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),r.set(a,s)})}),r}}class Tq{constructor(t,e,r){this.name=t,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states=new Map,e.states.forEach(i=>{this.states.set(i.name,new xq(i.style,i.options&&i.options.params||{},r))}),lE(this.states,"true","1"),lE(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new aE(t,i,this.states))}),this.fallbackTransition=function Oq(n,t,e){return new aE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,r,i){return this.transitionFactories.find(s=>s.match(t,e,r,i))||null}matchStyles(t,e,r){return this.fallbackTransition.buildStyles(t,e,r)}}function lE(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const Eq=new cf;class Aq{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const r=[],o=Xy(this._driver,e,r,[]);if(r.length)throw function Az(n){return new N(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,r){const i=t.element,o=UO(0,this._normalizer,0,t.keyframes,e,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,r={}){const i=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=ev(this._driver,e,o,Wy,Zd,new Map,new Map,r,Eq,i),s.forEach(c=>{const d=qn(a,c.element,new Map);c.postStyleProps.forEach(p=>d.set(p,null))})):(i.push(function Iz(){return new N(3300,!1)}()),s=[]),i.length)throw function kz(n){return new N(3504,!1)}();a.forEach((c,d)=>{c.forEach((p,m)=>{c.set(m,this._driver.computeStyle(d,m,pi))})});const u=$i(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,new Map,d)}));return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function Fz(n){return new N(3301,!1)}();return e}listen(t,e,r,i){const o=Hy(e,"","","");return Uy(this._getPlayer(t),r,o,i),()=>{}}command(t,e,r,i){if("register"==r)return void this.register(t,i[0]);if("create"==r)return void this.create(t,e,i[0]||{});const o=this._getPlayer(t);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const uE="ng-animate-queued",iv="ng-animate-disabled",Nq=[],cE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lq={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sr="__ng_removed";class ov{constructor(t,e=""){this.namespaceId=e;const r=t&&t.hasOwnProperty("value");if(this.value=function jq(n){return n??null}(r?t.value:t),r){const o=Xl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const r=this.options.params;Object.keys(e).forEach(i=>{null==r[i]&&(r[i]=e[i])})}}}const eu="void",sv=new ov(eu);class Bq{constructor(t,e,r){this.id=t,this.hostElement=e,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ar(e,this._hostClassName)}listen(t,e,r,i){if(!this._triggers.has(e))throw function Rz(n,t){return new N(3302,!1)}();if(null==r||0==r.length)throw function Nz(n){return new N(3303,!1)}();if(!function Hq(n){return"start"==n||"done"==n}(r))throw function Lz(n,t){return new N(3400,!1)}();const o=qn(this._elementListeners,t,[]),s={name:e,phase:r,callback:i};o.push(s);const a=qn(this._engine.statesByElement,t,new Map);return a.has(e)||(ar(t,Jd),ar(t,Jd+"-"+e),a.set(e,sv)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function Bz(n){return new N(3401,!1)}();return e}trigger(t,e,r,i=!0){const o=this._getTrigger(e),s=new av(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(ar(t,Jd),ar(t,Jd+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const u=new ov(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(e,u),l||(l=sv),u.value!==eu&&l.value===u.value){if(!function qq(n,t){const e=Object.keys(n),r=Object.keys(t);if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(l.params,u.params)){const v=[],b=o.matchStyles(l.value,l.params,v),w=o.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Ro(t,b),Vr(t,w)})}return}const p=qn(this._engine.playersByElement,t,[]);p.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let m=o.matchTransition(l.value,u.value,t,u.params),_=!1;if(!m){if(!i)return;m=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:u,player:s,isFallbackTransition:_}),_||(ar(t,uE),s.onStart(()=>{Zs(t,uE)})),s.onDone(()=>{let v=this.players.indexOf(s);v>=0&&this.players.splice(v,1);const b=this._engine.playersByElement.get(t);if(b){let w=b.indexOf(s);w>=0&&b.splice(w,1)}}),this.players.push(s),p.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const r=this._engine.driver.query(t,ef,!0);r.forEach(i=>{if(i[sr])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,e,r,i){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){const c=this.trigger(t,u,eu,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),r&&$i(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(e&&r){const i=new Set;e.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const l=this._triggers.get(s).fallbackTransition,u=r.get(s)||sv,c=new ov(eu),d=new av(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{const o=t[sr];(!o||o===cE)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}insertNode(t,e){ar(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const l=Hy(o,r.triggerName,r.fromState.value,r.toState.value);l._data=t,Uy(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(r)}),this._queue=[],e.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(r=>r.element===t)||e,e}}class Vq{constructor(t,e,r){this.bodyNode=t,this.driver=e,this._normalizer=r,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=(i,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,e){const r=new Bq(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,e){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=i.get(a);if(l){const u=r.indexOf(l);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(e,t),t}register(t,e){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,e)),r}registerTrigger(t,e,r){let i=this._namespaceLookup[t];i&&i.register(e,r)&&this.totalAnimations++}destroy(t,e){if(!t)return;const r=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[t];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,r=this.statesByElement.get(t);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&e.add(o)}return e}trigger(t,e,r,i){if(hf(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,r,i),!0}return!1}insertNode(t,e,r,i){if(!hf(e))return;const o=e[sr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,r)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ar(t,iv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zs(t,iv))}removeNode(t,e,r,i){if(hf(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),r){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,r,i,o){this.collectedLeaveElements.push(e),e[sr]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,r,i,o){return hf(e)?this._fetchNamespace(t).listen(e,r,i,o):()=>{}}_buildInstruction(t,e,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,ef,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Gy,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return $i(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[sr];if(e&&e.setForRemoval){if(t[sr]=cE,e.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(iv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)ar(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{e=this._flushAnimations(r,t)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],e.length?$i(e).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw function Vz(n){return new N(3402,!1)}()}_flushAnimations(t,e){const r=new cf,i=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(U=>{c.add(U);const H=this.driver.query(U,".ng-animate-queued",!0);for(let Z=0;Z<H.length;Z++)c.add(H[Z])});const d=this.bodyNode,p=Array.from(this.statesByElement.keys()),m=hE(p,this.collectedEnterElements),_=new Map;let v=0;m.forEach((U,H)=>{const Z=Wy+v++;_.set(H,Z),U.forEach(_e=>ar(_e,Z))});const b=[],w=new Set,D=new Set;for(let U=0;U<this.collectedLeaveElements.length;U++){const H=this.collectedLeaveElements[U],Z=H[sr];Z&&Z.setForRemoval&&(b.push(H),w.add(H),Z.hasAnimation?this.driver.query(H,".ng-star-inserted",!0).forEach(_e=>w.add(_e)):D.add(H))}const x=new Map,E=hE(p,Array.from(w));E.forEach((U,H)=>{const Z=Zd+v++;x.set(H,Z),U.forEach(_e=>ar(_e,Z))}),t.push(()=>{m.forEach((U,H)=>{const Z=_.get(H);U.forEach(_e=>Zs(_e,Z))}),E.forEach((U,H)=>{const Z=x.get(H);U.forEach(_e=>Zs(_e,Z))}),b.forEach(U=>{this.processLeaveNode(U)})});const I=[],R=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(Z=>{const _e=Z.player,We=Z.element;if(I.push(_e),this.collectedEnterElements.length){const Tt=We[sr];if(Tt&&Tt.setForMove){if(Tt.previousTriggersValues&&Tt.previousTriggersValues.has(Z.triggerName)){const Ze=Tt.previousTriggersValues.get(Z.triggerName),ve=this.statesByElement.get(Z.element);if(ve&&ve.has(Z.triggerName)){const on=ve.get(Z.triggerName);on.value=Ze,ve.set(Z.triggerName,on)}}return void _e.destroy()}}const qt=!d||!this.driver.containsElement(d,We),Xe=x.get(We),rn=_.get(We),Te=this._buildInstruction(Z,r,rn,Xe,qt);if(Te.errors&&Te.errors.length)return void R.push(Te);if(qt)return _e.onStart(()=>Ro(We,Te.fromStyles)),_e.onDestroy(()=>Vr(We,Te.toStyles)),void i.push(_e);if(Z.isFallbackTransition)return _e.onStart(()=>Ro(We,Te.fromStyles)),_e.onDestroy(()=>Vr(We,Te.toStyles)),void i.push(_e);const Pi=[];Te.timelines.forEach(Tt=>{Tt.stretchStartingKeyframe=!0,this.disabledNodes.has(Tt.element)||Pi.push(Tt)}),Te.timelines=Pi,r.append(We,Te.timelines),s.push({instruction:Te,player:_e,element:We}),Te.queriedElements.forEach(Tt=>qn(a,Tt,[]).push(_e)),Te.preStyleProps.forEach((Tt,Ze)=>{if(Tt.size){let ve=l.get(Ze);ve||l.set(Ze,ve=new Set),Tt.forEach((on,ao)=>ve.add(ao))}}),Te.postStyleProps.forEach((Tt,Ze)=>{let ve=u.get(Ze);ve||u.set(Ze,ve=new Set),Tt.forEach((on,ao)=>ve.add(ao))})});if(R.length){const U=[];R.forEach(H=>{U.push(function Uz(n,t){return new N(3505,!1)}())}),I.forEach(H=>H.destroy()),this.reportError(U)}const B=new Map,$=new Map;s.forEach(U=>{const H=U.element;r.has(H)&&($.set(H,H),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,B))}),i.forEach(U=>{const H=U.element;this._getPreviousPlayers(H,!1,U.namespaceId,U.triggerName,null).forEach(_e=>{qn(B,H,[]).push(_e),_e.destroy()})});const z=b.filter(U=>gE(U,l,u)),ee=new Map;fE(ee,this.driver,D,u,pi).forEach(U=>{gE(U,l,u)&&z.push(U)});const ae=new Map;m.forEach((U,H)=>{fE(ae,this.driver,new Set(U),l,"!")}),z.forEach(U=>{const H=ee.get(U),Z=ae.get(U);ee.set(U,new Map([...Array.from(H?.entries()??[]),...Array.from(Z?.entries()??[])]))});const Se=[],yt=[],Y={};s.forEach(U=>{const{element:H,player:Z,instruction:_e}=U;if(r.has(H)){if(c.has(H))return Z.onDestroy(()=>Vr(H,_e.toStyles)),Z.disabled=!0,Z.overrideTotalTime(_e.totalTime),void i.push(Z);let We=Y;if($.size>1){let Xe=H;const rn=[];for(;Xe=Xe.parentNode;){const Te=$.get(Xe);if(Te){We=Te;break}rn.push(Xe)}rn.forEach(Te=>$.set(Te,We))}const qt=this._buildAnimation(Z.namespaceId,_e,B,o,ae,ee);if(Z.setRealPlayer(qt),We===Y)Se.push(Z);else{const Xe=this.playersByElement.get(We);Xe&&Xe.length&&(Z.parentPlayer=$i(Xe)),i.push(Z)}}else Ro(H,_e.fromStyles),Z.onDestroy(()=>Vr(H,_e.toStyles)),yt.push(Z),c.has(H)&&i.push(Z)}),yt.forEach(U=>{const H=o.get(U.element);if(H&&H.length){const Z=$i(H);U.setRealPlayer(Z)}}),i.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U<b.length;U++){const H=b[U],Z=H[sr];if(Zs(H,Zd),Z&&Z.hasAnimation)continue;let _e=[];if(a.size){let qt=a.get(H);qt&&qt.length&&_e.push(...qt);let Xe=this.driver.query(H,Gy,!0);for(let rn=0;rn<Xe.length;rn++){let Te=a.get(Xe[rn]);Te&&Te.length&&_e.push(...Te)}}const We=_e.filter(qt=>!qt.destroyed);We.length?$q(this,H,We):this.processLeaveNode(H)}return b.length=0,Se.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const H=this.players.indexOf(U);this.players.splice(H,1)}),U.play()}),Se}elementContainsData(t,e){let r=!1;const i=e[sr];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(t).elementContainsData(e)||r}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,r,i,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==eu;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,e,r){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const u=l.element,c=u!==o,d=qn(r,u,[]);this._getPreviousPlayers(u,c,s,a,e.toState).forEach(m=>{const _=m.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),m.destroy(),d.push(m)})}Ro(o,e.fromStyles)}_buildAnimation(t,e,r,i,o,s){const a=e.triggerName,l=e.element,u=[],c=new Set,d=new Set,p=e.timelines.map(_=>{const v=_.element;c.add(v);const b=v[sr];if(b&&b.removedBeforeQueried)return new Kl(_.duration,_.delay);const w=v!==l,D=function zq(n){const t=[];return pE(n,t),t}((r.get(v)||Nq).map(B=>B.getRealPlayer())).filter(B=>!!B.element&&B.element===v),x=o.get(v),E=s.get(v),I=UO(0,this._normalizer,0,_.keyframes,x,E),R=this._buildPlayer(_,I,D);if(_.subTimeline&&i&&d.add(v),w){const B=new av(t,a,v);B.setRealPlayer(R),u.push(B)}return R});u.forEach(_=>{qn(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function Uq(n,t,e){let r=n.get(t);if(r){if(r.length){const i=r.indexOf(e);r.splice(i,1)}0==r.length&&n.delete(t)}return r}(this.playersByQueriedElement,_.element,_))}),c.forEach(_=>ar(_,QO));const m=$i(p);return m.onDestroy(()=>{c.forEach(_=>Zs(_,QO)),Vr(l,e.toStyles)}),d.forEach(_=>{qn(i,_,[]).push(m)}),m}_buildPlayer(t,e,r){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,r):new Kl(t.duration,t.delay)}}class av{constructor(t,e,r){this.namespaceId=t,this.triggerName=e,this.element=r,this._player=new Kl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,r)=>{e.forEach(i=>Uy(t,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){qn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function hf(n){return n&&1===n.nodeType}function dE(n,t){const e=n.style.display;return n.style.display=t??"none",e}function fE(n,t,e,r,i){const o=[];e.forEach(l=>o.push(dE(l)));const s=[];r.forEach((l,u)=>{const c=new Map;l.forEach(d=>{const p=t.computeStyle(u,d,i);c.set(d,p),(!p||0==p.length)&&(u[sr]=Lq,s.push(u))}),n.set(u,c)});let a=0;return e.forEach(l=>dE(l,o[a++])),s}function hE(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const i=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const u=a.parentNode;return l=e.has(u)?u:i.has(u)?1:s(u),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function ar(n,t){n.classList?.add(t)}function Zs(n,t){n.classList?.remove(t)}function $q(n,t,e){$i(e).onDone(()=>n.processLeaveNode(t))}function pE(n,t){for(let e=0;e<n.length;e++){const r=n[e];r instanceof IO?pE(r.players,t):t.push(r)}}function gE(n,t,e){const r=e.get(n);if(!r)return!1;let i=t.get(n);return i?r.forEach(o=>i.add(o)):t.set(n,r),e.delete(n),!0}class pf{constructor(t,e,r){this.bodyNode=t,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new Vq(t,e,r),this._timelineEngine=new Aq(t,e,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,e,r,i,o){const s=t+"-"+i;let a=this._triggerCache[s];if(!a){const l=[],c=Xy(this._driver,o,l,[]);if(l.length)throw function Oz(n,t){return new N(3404,!1)}();a=function Sq(n,t,e){return new Tq(n,t,e)}(i,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,r,i){this._transitionEngine.insertNode(t,e,r,i)}onRemove(t,e,r,i){this._transitionEngine.removeNode(t,e,i||!1,r)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,r,i){if("@"==r.charAt(0)){const[o,s]=jO(r);this._timelineEngine.command(o,e,s,i)}else this._transitionEngine.trigger(t,e,r,i)}listen(t,e,r,i,o){if("@"==r.charAt(0)){const[s,a]=jO(r);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Gq=(()=>{class n{constructor(e,r,i){this._element=e,this._startStyles=r,this._endStyles=i,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Vr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Vr(this._element,this._initialStyles),this._endStyles&&(Vr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ro(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),Vr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function lv(n){let t=null;return n.forEach((e,r)=>{(function Yq(n){return"display"===n||"position"===n})(r)&&(t=t||new Map,t.set(r,e))}),t}class mE{constructor(t,e,r,i){this.element=t,this.keyframes=e,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(t,e,r){return t.animate(this._convertKeyframesToObject(e),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&t.set(i,this._finished?r:tE(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class Qq{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return qO(t,e)}getParentElement(t){return zy(t)}query(t,e,r){return WO(t,e,r)}computeStyle(t,e,r){return window.getComputedStyle(t)[e]}animate(t,e,r,i,o,s=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(l.easing=o);const u=new Map,c=s.filter(m=>m instanceof mE);(function Jz(n,t){return 0===n||0===t})(r,i)&&c.forEach(m=>{m.currentSnapshot.forEach((_,v)=>u.set(v,_))});let d=function Qz(n){return n.length?n[0]instanceof Map?n:n.map(t=>KO(t)):[]}(e).map(m=>zi(m));d=function eq(n,t,e){if(e.size&&t.length){let r=t[0],i=[];if(e.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<t.length;o++){let s=t[o];i.forEach(a=>s.set(a,tE(n,a)))}}return t}(t,d,u);const p=function Wq(n,t){let e=null,r=null;return Array.isArray(t)&&t.length?(e=lv(t[0]),t.length>1&&(r=lv(t[t.length-1]))):t instanceof Map&&(e=lv(t)),e||r?new Gq(n,e,r):null}(t,d);return new mE(t,d,l,p)}}let Kq=(()=>{class n extends SO{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:fr.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(e)?OO(e):e;return _E(this._renderer,null,r,"register",[i]),new Xq(r,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(V(Qa),V(lt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();class Xq extends m${constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Zq(this._id,t,e||{},this._renderer)}}class Zq{constructor(t,e,r,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return _E(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _E(n,t,e,r,i){return n.setProperty(t,`@@${e}:${r}`,i)}const yE="@.disabled";let Jq=(()=>{class n{constructor(e,r,i){this.delegate=e,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,r){const o=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(o);return c||(c=new vE("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,c)),c}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,e,c.name,c)};return r.data.animation.forEach(l),new eW(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,i){e>=0&&e<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}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 n.\u0275fac=function(e){return new(e||n)(V(Qa),V(pf),V(tt))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();class vE{constructor(t,e,r,i){this.namespaceId=t,this.delegate=e,this.engine=r,this._onDestroy=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,r,i=!0){this.delegate.insertBefore(t,e,r),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,i){this.delegate.setAttribute(t,e,r,i)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,i){this.delegate.setStyle(t,e,r,i)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){"@"==e.charAt(0)&&e==yE?this.disableAnimations(t,!!r):this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r){return this.delegate.listen(t,e,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class eW extends vE{constructor(t,e,r,i,o){super(e,r,i,o),this.factory=t,this.namespaceId=e}setProperty(t,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==yE?this.disableAnimations(t,r=void 0===r||!!r):this.engine.process(this.namespaceId,t,e.slice(1),r):this.delegate.setProperty(t,e,r)}listen(t,e,r){if("@"==e.charAt(0)){const i=function tW(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function nW(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(t,e,r)}}let rW=(()=>{class n extends pf{constructor(e,r,i,o){super(e.body,r,i)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(V(lt),V(qy),V(nv),V(Do))},n.\u0275prov=q({token:n,factory:n.\u0275fac}),n})();const bE=[{provide:SO,useClass:Kq},{provide:nv,useFactory:function iW(){return new Pq}},{provide:pf,useClass:rW},{provide:Qa,useFactory:function oW(n,t,e){return new Jq(n,t,e)},deps:[gd,pf,tt]}],uv=[{provide:qy,useFactory:()=>new Qq},{provide:CD,useValue:"BrowserAnimations"},...bE],CE=[{provide:qy,useClass:GO},{provide:CD,useValue:"NoopAnimations"},...bE];let sW=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?CE:uv}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({providers:uv,imports:[Bx]}),n})();const aW=function(){return["/mgnh"]};function lW(n,t){1&n&&(f(0,"li")(1,"a",3),g(2,"\u7ba1\u7406\u9996\u9801"),h()()),2&n&&(y(1),C("routerLink",et(1,aW)))}const uW=function(){return["/home"]},cW=function(){return["/users/userprofile"]};let dW=(()=>{class n{constructor(e,r,i){this.auth=e,this.toastr=r,this.global=i,this.UserName="",this.IsStaff=!1}ngOnInit(){this.getUserName()}getUserName(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Token/GetUserName",null).then(i=>(this.UserName=i,this.chkStaff(),!0),i=>!1))}chkStaff(){var e=this.global.serverip+"/api/Users/chkStaff",r={UserName:this.UserName};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.IsStaff=s,i(!0)},s=>{o(!1)})})}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt))},n.\u0275cmp=Fe({type:n,selectors:[["app-users"]],decls:12,vars:5,consts:[[1,"navbar"],[1,"container-mgnh"],[1,"logo"],[3,"routerLink"],[1,"fas","fa-music"],[1,"menu"],[4,"ngIf"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),k(4,"i",4),g(5,"MDS Home "),h()(),f(6,"ul",5)(7,"li")(8,"a",3),g(9,"\u4fee\u6539\u57fa\u672c\u8cc7\u6599"),h()(),A(10,lW,3,2,"li",6),h()()(),k(11,"router-outlet")),2&e&&(y(3),C("routerLink",et(3,uW)),y(5),C("routerLink",et(4,cW)),y(2),C("ngIf",r.IsStaff))},dependencies:[Yt,ji,Br],styles:[".navbar[_ngcontent-%COMP%]{background-color:#fff;height:50px;margin-top:5px}.container-mgnh[_ngcontent-%COMP%]{width:100%;margin:0 auto}.logo[_ngcontent-%COMP%]{display:inline;margin-left:100px}.logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0a8cbf;margin-top:1em;margin-bottom:1em;text-decoration:none;line-height:50px;font-size:24px}.logo[_ngcontent-%COMP%] .fa-music[_ngcontent-%COMP%]{color:#0a8cbf;margin-right:1em}.menu[_ngcontent-%COMP%]{float:right;margin-top:0}.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;list-style:none}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;margin-right:0;color:#0a8cbf;text-decoration:none;line-height:50px;padding:0 1em}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#0a8cbf;color:#fff}"]}),n})();function fW(n,t){if(1&n){const e=j();f(0,"div",1)(1,"p"),g(2,"\u67e5\u8a62\u4f7f\u7528\u8005\u57fa\u672c\u8cc7\u6599\u9700\u8981\u8f38\u5165\u5e33\u865f\u5bc6\u78bc"),h(),f(3,"p"),g(4,"\u5e33\u865f\uff1a"),f(5,"input",2),M("ngModelChange",function(i){return T(e),O(P().UserName=i)}),h()(),f(6,"p"),g(7,"\u5bc6\u78bc\uff1a"),f(8,"input",3),M("ngModelChange",function(i){return T(e),O(P().Password=i)}),h()(),f(9,"p")(10,"button",4),M("click",function(){return T(e),O(P().GetUserProfile())}),g(11,"\u78ba\u5b9a\u67e5\u8a62"),h()()()}if(2&n){const e=P();y(5),C("ngModel",e.UserName),y(3),C("ngModel",e.Password)}}function hW(n,t){1&n&&k(0,"span",21)}function pW(n,t){1&n&&k(0,"img",22)}function gW(n,t){1&n&&k(0,"img",23)}function mW(n,t){1&n&&k(0,"span",21)}function _W(n,t){1&n&&k(0,"img",22)}function yW(n,t){1&n&&k(0,"img",23)}function vW(n,t){if(1&n){const e=j();f(0,"div",1)(1,"h2"),g(2,"\u4f7f\u7528\u8005\u8cc7\u6599\u4fee\u6539"),h(),f(3,"div",5)(4,"label",6)(5,"span",7),g(6,"*"),h(),g(7," \u767b\u5165\u540d\u7a31\uff1a"),h(),f(8,"input",8),M("ngModelChange",function(i){return T(e),O(P().UserName=i)})("change",function(){return T(e),O(P().chkUserName())}),h(),A(9,hW,1,0,"span",9),A(10,pW,1,0,"img",10),A(11,gW,1,0,"img",11),h(),f(12,"div",5)(13,"label",12)(14,"span",7),g(15,"*"),h(),g(16," \u8a2d\u5b9a\u5bc6\u78bc\uff1a"),h(),f(17,"input",13),M("ngModelChange",function(i){return T(e),O(P().Password=i)}),h()(),f(18,"div",5)(19,"label",14)(20,"span",7),g(21,"*"),h(),g(22," Email\uff1a"),h(),f(23,"input",15),M("ngModelChange",function(i){return T(e),O(P().Email=i)})("change",function(){return T(e),O(P().chkEmailWithUserName())}),h(),A(24,mW,1,0,"span",9),A(25,_W,1,0,"img",10),A(26,yW,1,0,"img",11),h(),f(27,"div")(28,"p"),g(29,"==================================="),h()(),f(30,"div",5)(31,"label",16),g(32,"\u59d3\u540d\uff1a"),h(),f(33,"input",17),M("ngModelChange",function(i){return T(e),O(P().CName=i)}),h()(),f(34,"div",5)(35,"label",18),g(36,"\u96fb\u8a71\uff1a"),h(),f(37,"input",17),M("ngModelChange",function(i){return T(e),O(P().Tel=i)}),h()(),f(38,"div",5)(39,"label",14),g(40,"Line Id\uff1a"),h(),f(41,"input",17),M("ngModelChange",function(i){return T(e),O(P().LineId=i)}),h()(),f(42,"div",5)(43,"label",14),g(44,"\u81c9\u66f8\u540d\u7a31\uff1a"),h(),f(45,"input",17),M("ngModelChange",function(i){return T(e),O(P().FBName=i)}),h()(),f(46,"div",5)(47,"label",14),g(48,"\u90f5\u5bc4\u5730\u5740\uff1a"),h(),f(49,"input",19),M("ngModelChange",function(i){return T(e),O(P().Address=i)}),h()(),f(50,"button",20),M("click",function(){return T(e),O(P().UserProfileUpdate())}),g(51,"\u78ba\u5b9a\u5b58\u6a94"),h()()}if(2&n){const e=P();y(8),C("ngModel",e.UserName),y(1),C("ngIf",!(""!=e.UserName&&e.UserNameOK||""!=e.UserName&&!e.UserNameOK)),y(1),C("ngIf",""!=e.UserName&&e.UserNameOK),y(1),C("ngIf",""!=e.UserName&&!e.UserNameOK),y(6),C("ngModel",e.Password),y(6),C("ngModel",e.Email),y(1),C("ngIf",!(""!=e.Email&&e.EmailOK||""!=e.Email&&!e.EmailOK)),y(1),C("ngIf",""!=e.Email&&e.EmailOK),y(1),C("ngIf",""!=e.Email&&!e.EmailOK),y(7),C("ngModel",e.CName),y(4),C("ngModel",e.Tel),y(4),C("ngModel",e.LineId),y(4),C("ngModel",e.FBName),y(4),C("ngModel",e.Address)}}let bW=(()=>{class n{constructor(e,r,i,o){this.router=e,this.auth=r,this.toastr=i,this.global=o,this.UserName="",this.Password="",this.Email="",this.CName="",this.Tel="",this.Address="",this.LineId="",this.FBName="",this.UserNameOK=!0,this.EmailOK=!0,this.UserProfile=null}ngOnInit(){}chkUserName(){var e=this.global.serverip+"/api/Users/chkUserName",r={UserName:this.UserName};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.UserNameOK=1==s,i(!0)},s=>{o(!1)})})}chkEmailWithUserName(){var e=this.global.serverip+"/api/Users/chkEmail",r={UserName:this.UserName,Email:this.Email};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.EmailOK=1==s,i(!0)},s=>{o(!1)})})}GetUserProfile(){var e=this.global.serverip+"/api/Users/GetUserProfile";if(""!=this.UserName&&""!=this.Password){var r={UserName:this.UserName,Password:this.Password};return this.toastr.info("\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),console.log(s),this.UserProfile=s,this.Email=this.UserProfile.Email,this.CName=this.UserProfile.Cname,this.Tel=this.UserProfile.Tel,this.LineId=this.UserProfile.Lineid,this.FBName=this.UserProfile.Fbname,this.Address=this.UserProfile.Address,i(!0)},s=>{o(!1)})})}}UserProfileUpdate(){var e=this.global.serverip+"/api/Users/UserProfileUpdate";if(""!=this.UserName&&0!=this.UserNameOK&&""!=this.Password&&""!=this.Email&&0!=this.EmailOK){var r={UserName:this.UserName,Password:this.Password,Email:this.Email,CName:this.CName,Tel:this.Tel,Address:this.Address,LineId:this.LineId,FBName:this.FBName};return this.toastr.info("\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{1==s?(this.toastr.info("\u4f7f\u7528\u8005\u8a3b\u518a\u6210\u529f"),this.router.navigate(["/login"])):this.toastr.warning("\u932f\u8aa4\uff01\u8acb\u91cd\u8a66..."),i(!0)},s=>{o(!1)})})}}}return n.\u0275fac=function(e){return new(e||n)(S(Me),S(ct),S(dt),S(nt))},n.\u0275cmp=Fe({type:n,selectors:[["app-user-profile"]],decls:2,vars:2,consts:[["class","xy-center text-center",4,"ngIf"],[1,"xy-center","text-center"],["type","text",3,"ngModel","ngModelChange"],["type","password",3,"ngModel","ngModelChange"],[3,"click"],[1,"align-right"],["for","UserName"],[1,"mustfill"],["type","text","disabled","",2,"width","220px",3,"ngModel","ngModelChange","change"],["style","display:inline-block;width:18px;",4,"ngIf"],["style","width:18px;","src","../../assets/images/OK.png",4,"ngIf"],["style","width:18px","src","../../assets/images/Not_OK.png",4,"ngIf"],["for","PWD"],["type","password",2,"width","220px","margin-right","18px",3,"ngModel","ngModelChange"],["for","Email"],["type","text",2,"width","220px",3,"ngModel","ngModelChange","change"],["for","CName"],["type","text",2,"width","220px",3,"ngModel","ngModelChange"],["for","tel"],["type","text",2,"width","250px",3,"ngModel","ngModelChange"],[1,"font-medium",3,"click"],[2,"display","inline-block","width","18px"],["src","../../assets/images/OK.png",2,"width","18px"],["src","../../assets/images/Not_OK.png",2,"width","18px"]],template:function(e,r){1&e&&(A(0,fW,12,2,"div",0),A(1,vW,52,14,"div",0)),2&e&&(C("ngIf",""==r.UserName||""==r.Password||null==r.UserProfile),y(1),C("ngIf",""!=r.UserName&&""!=r.Password&&null!=r.UserProfile))},dependencies:[Yt,en,zt,Ft],styles:[".text-center[_ngcontent-%COMP%]{text-align:center;vertical-align:middle}button[_ngcontent-%COMP%]{padding:5px 20px;background-color:transparent;cursor:pointer;margin:10px;border:1px solid darkgray;border-radius:5px}.font-small[_ngcontent-%COMP%]{font-size:12px}.font-medium[_ngcontent-%COMP%]{font-size:18px}.font-large[_ngcontent-%COMP%]{font-size:24px}.marginleft20[_ngcontent-%COMP%], .marginleft40[_ngcontent-%COMP%]{margin-left:20px}.margintop20[_ngcontent-%COMP%]{margin-top:20px}.margintop40[_ngcontent-%COMP%]{margin-top:40px}.vertical_align_bottom[_ngcontent-%COMP%]{vertical-align:text-bottom}.align-right[_ngcontent-%COMP%]{text-align:right}a[_ngcontent-%COMP%]{cursor:pointer;color:#2ea3cc}"]}),n})();const CW=["myFormPost"];function wW(n,t){if(1&n){const e=j();f(0,"span",11),M("click",function(){T(e);const i=P().$implicit;return O(P().deleteItem(i.ProductId))}),g(1,"\u522a\u9664"),h()}}function PW(n,t){if(1&n){const e=j();f(0,"tr")(1,"td"),g(2),h(),f(3,"td")(4,"span",9),g(5),h(),f(6,"span",9),g(7),h()(),f(8,"td",1),g(9),h(),f(10,"td",10)(11,"span",11),M("click",function(){const o=T(e).$implicit;return O(P().cutDownItem(o.ProductId))}),g(12,"-"),h(),f(13,"span",12),g(14),h(),f(15,"span",11),M("click",function(){const o=T(e).$implicit;return O(P().addUpItem(o.ProductId))}),g(16,"+"),h()(),f(17,"td",1),g(18),h(),f(19,"td",1),g(20),h(),f(21,"td"),A(22,wW,2,0,"span",13),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(3),F(e.ProductId),y(2),F(e.ProductName),y(2),F(e.UnitPrice),y(5),F(e.Qty),y(4),F(e.Amount),y(2),F(e.TaxAmount),y(2),C("ngIf","Z01"!=e.ProductId)}}function MW(n,t){1&n&&k(0,"div",14)}function DW(n,t){if(1&n&&(f(0,"option",24),g(1),h()),2&n){const e=t.$implicit;C("ngValue",e.key),y(1),F(e.value)}}function xW(n,t){if(1&n){const e=j();f(0,"div",15),k(1,"div",16),f(2,"div",17)(3,"p"),g(4),h(),f(5,"p"),g(6,"\u4ed8\u6b3e\u65b9\u5f0f\uff1a"),h(),f(7,"p",18)(8,"select",19),M("ngModelChange",function(i){return T(e),O(P().payType=i)}),A(9,DW,2,2,"option",20),h()()(),k(10,"div",21),f(11,"div",22)(12,"button",23),M("click",function(){T(e);const i=P();return O(i.showPayForm=!i.showPayForm)}),g(13,"\u53d6\u6d88\u4ed8\u6b3e"),h(),f(14,"button",23),M("click",function(){return T(e),O(P().goPay())}),g(15,"\u78ba\u5b9a\u4ed8\u6b3e"),h()()()}if(2&n){const e=P();y(4),ze("\u4ed8\u6b3e\u91d1\u984d\uff1a",e.ShoppingCart.CustomerOrderMS.TotalAmount,""),y(4),C("ngModel",e.payType),y(1),C("ngForOf",e.payMethod)}}function SW(n,t){if(1&n&&(f(0,"p"),g(1),k(2,"input",27),h()),2&n){const e=t.$implicit;y(1),F(e.Key),y(1),Wt("name",e.Key),Wt("value",e.Value)}}function TW(n,t){if(1&n){const e=j();f(0,"div",15)(1,"h3"),g(2,"Newebpay Form"),h(),f(3,"form",25,26),A(5,SW,3,3,"p",3),f(6,"p")(7,"button",23),M("click",function(){return T(e),O(P().sendPayRequest())}),g(8,"\u4ed8\u6b3e"),h()()()()}if(2&n){const e=P();y(3),Wt("action",e.AuthUrl,Ti),y(2),C("ngForOf",e.tradeinfo)}}let OW=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.showPayForm=!1,this.payType="CREDIT",this.payMethod=[{key:"WEBATM",value:"WebATM\u8f49\u5e33"},{key:"CREDIT",value:"\u4fe1\u7528\u5361"},{key:"LinePay",value:"LinePay"},{key:"ApplePay",value:"ApplePay"},{key:"GooglePay",value:"GooglePay"}],this.AuthUrl="https://ccore.newebpay.com/MPG/mpg_gateway",this.ShowTheForm=!1}ngOnInit(){this.getShoppingCart()}getShoppingCart(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/ShoppingCart/qryShoppingCart",{}).then(i=>(this.ShoppingCart=i,!0),i=>!1))}deleteItem(e){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/ShoppingCart/deleteItem",{ProductId:e}).then(o=>(this.getShoppingCart(),!0),o=>!1))}addUpItem(e){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/ShoppingCart/addUpItem",{ProductId:e}).then(o=>(this.getShoppingCart(),!0),o=>!1))}cutDownItem(e){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/ShoppingCart/cutDownItem",{ProductId:e}).then(o=>(this.getShoppingCart(),!0),o=>!1))}goShowPayForm(){this.showPayForm=!0}goPay(){!confirm("\u60a8\u78ba\u5b9a\u8981\u4ed8\u6b3e\u4e86\u55ce\uff1f")||this.convertShoppingcartToOrder()}convertShoppingcartToOrder(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Orders/ConvertShoppigCartToOrder",{}).then(i=>0!=i&&(this.getTradeinfo(i),!0),i=>!1))}getTradeinfo(e){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Newebpay/NewebpayPayBill",{ordernumber:e,amount:this.ShoppingCart.CustomerOrderMS.TotalAmount,payType:this.payType}).then(o=>(this.tradeinfo=o,this.sendPayRequest(),!0),o=>!1))}sendPayRequest(){this.myFormPost.nativeElement.submit()}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-shopping-cart"]],viewQuery:function(e,r){if(1&e&&$c(CW,5),2&e){let i;hl(i=pl())&&(r.myFormPost=i.first)}},decls:46,vars:7,consts:[[1,"tableContainer"],[1,"alignRight"],[1,"alignCenter"],[4,"ngFor","ngForOf"],["colspan","4",1,"alignRight"],["colspan","2",1,"alignRight"],[1,"bottom-div","addToCart","button",3,"click"],["class","mask",4,"ngIf"],["class","payform",4,"ngIf"],[1,"spaMark"],[1,"alignCenter",2,"width","70px"],[1,"button","AddButton",3,"click"],[1,"littleBlock"],["class","button AddButton",3,"click",4,"ngIf"],[1,"mask"],[1,"payform"],[1,"payForCol1"],[1,"payForCol2","payFormColumn"],[1,"ml50"],[1,"f24",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"payForCol3"],[1,"bottom-div"],[1,"btnPay",3,"click"],[3,"ngValue"],["ngNoForm","","method","post",3,"action"],["myFormPost",""],["type","text",3,"name","value"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"table")(2,"thead")(3,"tr")(4,"td"),g(5,"\u9805\u6b21"),h(),f(6,"td"),g(7,"\u540d\u7a31"),h(),f(8,"td",1),g(9,"\u672a\u7a05"),k(10,"br"),g(11,"\u55ae\u50f9"),h(),f(12,"td",2),g(13,"\u6578\u91cf"),h(),f(14,"td",1),g(15,"\u672a\u7a05"),k(16,"br"),g(17,"\u5c0f\u8a08"),h(),f(18,"td",1),g(19,"\u7a05\u91d1"),h(),k(20,"td"),h()(),f(21,"tbody"),A(22,PW,23,8,"tr",3),f(23,"tr")(24,"td",4),g(25,"\u5408\u8a08"),h(),f(26,"td",5),g(27),h(),k(28,"td"),h(),f(29,"tr")(30,"td",4),g(31,"\u7a05\u91d1"),h(),f(32,"td",5),g(33),h(),k(34,"td"),h(),f(35,"tr")(36,"td",4),g(37,"\u7e3d\u8a08"),h(),f(38,"td",5),g(39),h(),k(40,"td"),h()()()(),f(41,"div",6),M("click",function(){return r.goShowPayForm()}),g(42," \u958b\u59cb\u4ed8\u6b3e\n"),h(),A(43,MW,1,0,"div",7),A(44,xW,16,3,"div",8),A(45,TW,9,2,"div",8)),2&e&&(y(22),C("ngForOf",r.ShoppingCart.CustomerOrderDS),y(5),F(r.ShoppingCart.CustomerOrderMS.Amount),y(6),F(r.ShoppingCart.CustomerOrderMS.TaxAmount),y(6),F(r.ShoppingCart.CustomerOrderMS.TotalAmount),y(4),C("ngIf",r.showPayForm),y(1),C("ngIf",r.showPayForm&&null==r.tradeinfo),y(1),C("ngIf",r.ShowTheForm))},dependencies:[fn,Yt,$n,zn,Mn,zt,Ft],styles:[".AddButton[_ngcontent-%COMP%]{color:#fff;background-color:#f08bc3;border:0}.AddButton[_ngcontent-%COMP%]:hover{color:#f08bc3}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid darkgray;padding:2px}.tableContainer[_ngcontent-%COMP%]{width:99.8%;overflow:auto}.spaMark[_ngcontent-%COMP%]{display:block}.wSmall[_ngcontent-%COMP%]{max-width:70px;width:70px}.alignRight[_ngcontent-%COMP%]{text-align:right}.alignCenter[_ngcontent-%COMP%]{text-align:center}.littleBlock[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.bottom-div[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;min-width:375px}.addToCart[_ngcontent-%COMP%]{background-color:#f08bc3;display:flex;justify-content:space-around;align-items:center;color:#fff;font-size:2rem}.addToCart[_ngcontent-%COMP%]:hover{background-color:#ff0;color:#f08bc3;cursor:pointer}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.payform[_ngcontent-%COMP%]{min-width:375px;z-index:101;position:absolute;inset:0;font-size:24px;display:flex;flex-direction:row;align-items:center;justify-content:center}.payFormColumn[_ngcontent-%COMP%]{flex-direction:column}.payForCol1[_ngcontent-%COMP%]{float:left;max-width:20%}.payForCol2[_ngcontent-%COMP%]{float:left;max-width:60%}.payForCol3[_ngcontent-%COMP%]{float:left;max-width:20%}.btnPay[_ngcontent-%COMP%]{width:50%;background-color:#f08bc3;color:#fff;font-size:2rem}.btnPay[_ngcontent-%COMP%]:hover{background-color:#ff0;color:#f08bc3}.f24[_ngcontent-%COMP%]{font-size:24px}.ml50[_ngcontent-%COMP%]{margin-left:50px}@media only screen and (max-width: 500px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}.addToCart[_ngcontent-%COMP%]{font-size:20px}.imageWithParagraph[_ngcontent-%COMP%]{width:180px}}"]}),n})();function EW(n,t){if(1&n){const e=j();f(0,"button",3),M("click",function(){T(e);const i=P().$implicit;return O(P().goPay(i.CustomerOrderId))}),g(1,"\u958b\u59cb\u4ed8\u6b3e"),h()}}function AW(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),k(3,"br"),g(4),ii(5,"date"),h(),f(6,"td"),g(7),h(),f(8,"td"),g(9),h(),f(10,"td"),A(11,EW,2,0,"button",5),h()()),2&n){const e=t.$implicit;y(2),F(e.CustomerOrderId),y(2),F(oi(5,5,e.OrderDate,"yyyy-MM-dd")),y(3),F(e.TotalAmount),y(2),F(null==e.Status?"\u672a\u4ed8\u6b3e":e.Status),y(2),C("ngIf",null==e.Status)}}let IW=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.EndDate=new Date(Date.now()),this.StartDate=new Date(this.EndDate.setMonth(this.EndDate.getMonth()-6))}ngOnInit(){this.qryOrders()}qryOrders(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Orders/qryOrders",{StartDate:this.StartDate,EndDate:this.EndDate}).then(i=>(this.Orders=i,!0),i=>!1))}goPay(e){this.router.navigateByUrl("users/payform/"+e)}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-orders"]],decls:29,vars:3,consts:[[1,"tableContainer"],[1,"flexCenter"],["type","date",3,"ngModel","ngModelChange"],[3,"click"],[4,"ngFor","ngForOf"],[3,"click",4,"ngIf"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1)(2,"div")(3,"h4"),g(4,"\u67e5\u8a62\u8a02\u55ae"),h()(),f(5,"div"),g(6,"\u5f9e"),f(7,"input",2),M("ngModelChange",function(o){return r.StartDate=o}),h()(),f(8,"div"),g(9,"\u81f3"),f(10,"input",2),M("ngModelChange",function(o){return r.EndDate=o}),h()(),f(11,"div")(12,"button",3),M("click",function(){return r.qryOrders()}),g(13,"\u67e5\u8a62"),h()()(),f(14,"div")(15,"table")(16,"thead")(17,"tr")(18,"td"),g(19,"\u8a02\u55ae\u865f\u78bc"),k(20,"br"),g(21,"\u8a02\u55ae\u65e5\u671f"),h(),f(22,"td"),g(23,"\u91d1\u984d"),h(),f(24,"td"),g(25,"\u4ed8\u6b3e\u72c0\u614b"),h(),k(26,"td"),h()(),f(27,"tbody"),A(28,AW,12,8,"tr",4),h()()()()),2&e&&(y(7),C("ngModel",r.StartDate),y(3),C("ngModel",r.EndDate),y(18),C("ngForOf",r.Orders))},dependencies:[fn,Yt,en,zt,Ft,rr],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid darkgray;padding:2px;text-align:right}.tableContainer[_ngcontent-%COMP%]{width:99.8%;overflow:auto;display:flex;flex-direction:column;justify-content:center;align-items:center}.flexCenter[_ngcontent-%COMP%]{padding:20px;display:flex;flex-direction:row;justify-content:center;align-items:center}.flexCenter[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:5px}@media only screen and (max-width: 500px){.flexCenter[_ngcontent-%COMP%]{padding:20px;display:flex;flex-direction:column;justify-content:center;align-items:center}.flexCenter[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:200px}}"]}),n})();const kW=["myFormPost"];function FW(n,t){1&n&&k(0,"div",3)}function RW(n,t){if(1&n&&(f(0,"option",13),g(1),h()),2&n){const e=t.$implicit;C("ngValue",e.key),y(1),F(e.value)}}function NW(n,t){if(1&n){const e=j();f(0,"div",4),k(1,"div",5),f(2,"div",6)(3,"p"),g(4),h(),f(5,"p"),g(6),h(),f(7,"p"),g(8,"\u4ed8\u6b3e\u65b9\u5f0f\uff1a"),h(),f(9,"p",7)(10,"select",8),M("ngModelChange",function(i){return T(e),O(P().payType=i)}),A(11,RW,2,2,"option",9),h()()(),k(12,"div",10),f(13,"div",11)(14,"button",12),M("click",function(){T(e);const i=P();return O(i.showPayForm=!i.showPayForm)}),g(15,"\u53d6\u6d88\u4ed8\u6b3e"),h(),f(16,"button",12),M("click",function(){return T(e),O(P().getTradeinfo())}),g(17,"\u78ba\u5b9a\u4ed8\u6b3e"),h()()()}if(2&n){const e=P();y(4),ze("\u8a02\u55ae\u7de8\u865f\uff1a",e.order.CustomerOrderId,""),y(2),ze("\u4ed8\u6b3e\u91d1\u984d\uff1a",e.order.TotalAmount,""),y(4),C("ngModel",e.payType),y(1),C("ngForOf",e.payMethod)}}function LW(n,t){if(1&n&&(f(0,"p"),g(1),k(2,"input",18),h()),2&n){const e=t.$implicit;y(1),F(e.Key),y(1),Wt("name",e.Key),Wt("value",e.Value)}}function BW(n,t){if(1&n){const e=j();f(0,"div",14)(1,"h3"),g(2,"Newebpay Form"),h(),f(3,"form",15,16),A(5,LW,3,3,"p",17),f(6,"p")(7,"button",12),M("click",function(){return T(e),O(P().sendPayRequest())}),g(8,"\u4ed8\u6b3e"),h()()()()}if(2&n){const e=P();y(3),Wt("action",e.AuthUrl,Ti),y(2),C("ngForOf",e.tradeinfo)}}const VW=[{path:"users",component:dW,title:"\u611b\u4fd0\u5b89",canActivate:[Ly],children:[{path:"userprofile",component:bW,title:"\u611b\u4fd0\u5b89-\u4f7f\u7528\u8005\u7ba1\u7406"},{path:"shoppingcart",component:OW,title:"\u611b\u4fd0\u5b89-\u8cfc\u7269\u8eca"},{path:"orders",component:IW,title:"\u611b\u4fd0\u5b89-\u8a02\u55ae\u7ba1\u7406"},{path:"payform/:OrderId",component:(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.showPayForm=!0,this.payType="CREDIT",this.payMethod=[{key:"WEBATM",value:"WebATM\u8f49\u5e33"},{key:"CREDIT",value:"\u4fe1\u7528\u5361"},{key:"LinePay",value:"LinePay"},{key:"ApplePay",value:"ApplePay"},{key:"GooglePay",value:"GooglePay"}],this.AuthUrl="https://ccore.newebpay.com/MPG/mpg_gateway",this.ShowTheForm=!1}ngOnInit(){this.OrderId=this.route.snapshot.paramMap.get("OrderId"),this.getOrderInfo()}getOrderInfo(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Orders/qryOrderByOrderId",{qryString:this.OrderId}).then(i=>(this.order=i,!0),i=>!1))}getTradeinfo(){return Promise.resolve(this.auth.httpDo(this.global.serverip+"/api/Newebpay/NewebpayPayBill",{ordernumber:this.OrderId,amount:this.order.TotalAmount,payType:this.payType}).then(i=>(this.tradeinfo=i,this.sendPayRequest(),!0),i=>!1))}sendPayRequest(){setTimeout(()=>{this.myFormPost.nativeElement.submit()},1e3)}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-payform"]],viewQuery:function(e,r){if(1&e&&$c(kW,5),2&e){let i;hl(i=pl())&&(r.myFormPost=i.first)}},decls:3,vars:3,consts:[["class","mask",4,"ngIf"],["class","payform",4,"ngIf"],["class","payform99",4,"ngIf"],[1,"mask"],[1,"payform"],[1,"payForCol1"],[1,"payForCol2","payFormColumn"],[1,"ml50"],[1,"f24",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"payForCol3"],[1,"bottom-div"],[1,"btnPay",3,"click"],[3,"ngValue"],[1,"payform99"],["ngNoForm","","method","post",3,"action"],["myFormPost",""],[4,"ngFor","ngForOf"],["type","text",3,"name","value"]],template:function(e,r){1&e&&(A(0,FW,1,0,"div",0),A(1,NW,18,4,"div",1),A(2,BW,9,2,"div",2)),2&e&&(C("ngIf",r.showPayForm),y(1),C("ngIf",r.showPayForm&&null==r.tradeinfo),y(1),C("ngIf",r.showPayForm&&null!=r.tradeinfo))},dependencies:[fn,Yt,$n,zn,Mn,zt,Ft],styles:[".AddButton[_ngcontent-%COMP%]{color:#fff;background-color:#f08bc3;border:0}.AddButton[_ngcontent-%COMP%]:hover{color:#f08bc3}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid darkgray;padding:2px}.tableContainer[_ngcontent-%COMP%]{width:99.8%;overflow:auto}.spaMark[_ngcontent-%COMP%]{display:block}.wSmall[_ngcontent-%COMP%]{max-width:70px;width:70px}.alignRight[_ngcontent-%COMP%]{text-align:right}.alignCenter[_ngcontent-%COMP%]{text-align:center}.littleBlock[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.bottom-div[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;min-width:375px}.addToCart[_ngcontent-%COMP%]{background-color:#f08bc3;display:flex;justify-content:space-around;align-items:center;color:#fff;font-size:2rem}.addToCart[_ngcontent-%COMP%]:hover{background-color:#ff0;color:#f08bc3;cursor:pointer}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.payform[_ngcontent-%COMP%]{min-width:375px;z-index:101;position:absolute;inset:0;font-size:24px;display:flex;flex-direction:row;align-items:center;justify-content:center}.payform99[_ngcontent-%COMP%]{z-index:99}.payFormColumn[_ngcontent-%COMP%]{flex-direction:column}.payForCol1[_ngcontent-%COMP%]{float:left;max-width:20%}.payForCol2[_ngcontent-%COMP%]{float:left;max-width:60%}.payForCol3[_ngcontent-%COMP%]{float:left;max-width:20%}.btnPay[_ngcontent-%COMP%]{width:50%;background-color:#f08bc3;color:#fff;font-size:2rem}.btnPay[_ngcontent-%COMP%]:hover{background-color:#ff0;color:#f08bc3}.f24[_ngcontent-%COMP%]{font-size:24px}.ml50[_ngcontent-%COMP%]{margin-left:50px}@media only screen and (max-width: 500px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}.addToCart[_ngcontent-%COMP%]{font-size:20px}.imageWithParagraph[_ngcontent-%COMP%]{width:180px}}"]}),n})(),title:"\u611b\u4fd0\u5b89-\u4ed8\u6b3e\u55ae"}]}];let UW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[Ks.forChild(VW),Ks]}),n})(),jW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[cd,UW,X_]}),n})();const HW=function(){return["/mgnh"]},$W=function(){return["/mgnh/checkoutcounter"]},zW=function(){return["/mgnh/coursemanagement"]},qW=function(){return["/mgnh/customerorders"]},WW=function(){return["/mgnh/productprofile"]},GW=function(){return["/mgnh/customermanagement"]},YW=function(){return["/mgnh/finance"]};function QW(n,t){1&n&&(f(0,"div",1)(1,"div",2)(2,"div",3)(3,"a",4),k(4,"i",5),g(5,"\u7ba1\u7406\u529f\u80fd\u9996\u9801 "),h()(),f(6,"ul",6)(7,"li")(8,"a",4),g(9,"\u6536\u9280\u53f0"),h()(),f(10,"li")(11,"a",4),g(12,"\u8ab2\u7a0b\u7ba1\u7406"),h()(),f(13,"li")(14,"a",4),g(15,"\u8a02\u55ae\u7ba1\u7406"),h()(),f(16,"li")(17,"a",4),g(18,"\u5546\u54c1\u57fa\u672c\u8cc7\u6599"),h()(),f(19,"li")(20,"a",4),g(21,"\u6703\u54e1\u7ba1\u7406"),h()(),f(22,"li")(23,"a",4),g(24,"\u8ca1\u52d9"),h()()()()()),2&n&&(y(3),C("routerLink",et(7,HW)),y(5),C("routerLink",et(8,$W)),y(3),C("routerLink",et(9,zW)),y(3),C("routerLink",et(10,qW)),y(3),C("routerLink",et(11,WW)),y(3),C("routerLink",et(12,GW)),y(3),C("routerLink",et(13,YW)))}let KW=(()=>{class n{constructor(e){this.global=e}ngOnInit(){}get print(){return this.global.print}}return n.\u0275fac=function(e){return new(e||n)(S(nt))},n.\u0275cmp=Fe({type:n,selectors:[["app-mgnh"]],decls:2,vars:1,consts:[["class","navbar",4,"ngIf"],[1,"navbar"],[1,"container-mgnh"],[1,"logo"],[3,"routerLink"],[1,"fas","fa-music"],[1,"menu"]],template:function(e,r){1&e&&(A(0,QW,25,14,"div",0),k(1,"router-outlet")),2&e&&C("ngIf",0==r.print)},dependencies:[Yt,ji,Br],styles:[".navbar[_ngcontent-%COMP%]{background-color:#fff;height:50px;margin-top:5px}.container-mgnh[_ngcontent-%COMP%]{width:100%;margin:0 auto}.logo[_ngcontent-%COMP%]{display:inline;margin-left:100px}.logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0a8cbf;margin-top:1em;margin-bottom:1em;text-decoration:none;line-height:50px;font-size:24px}.logo[_ngcontent-%COMP%] .fa-music[_ngcontent-%COMP%]{color:#0a8cbf;margin-right:1em}.menu[_ngcontent-%COMP%]{float:right;margin-top:0}.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;list-style:none}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;margin-right:0;color:#0a8cbf;text-decoration:none;line-height:50px;padding:0 1em}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#0a8cbf;color:#fff}"]}),n})();function XW(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),g(12),h(),k(13,"td"),h()),2&n){const e=t.$implicit;y(2),F(e.AccountNo),y(2),F(e.SubAccountNo),y(2),F(e.AccountName),y(2),F(e.AccountNameEng),y(2),F(e.Note),y(2),F(1==e.StopUse?"\u505c\u7528":"")}}function ZW(n,t){if(1&n&&(f(0,"div",4)(1,"h1"),g(2,"\u6703\u8a08\u79d1\u76ee\u7dad\u8b77"),h(),f(3,"table")(4,"thead")(5,"tr")(6,"td"),g(7,"\u79d1\u76ee\u7de8\u865f"),h(),f(8,"td"),g(9,"\u7d30\u76ee\u7de8\u865f"),h(),f(10,"td"),g(11,"\u79d1\u76ee\u540d\u7a31"),h(),f(12,"td"),g(13,"\u79d1\u76ee\u82f1\u6587\u540d\u7a31"),h(),f(14,"td"),g(15,"\u5099\u8a3b"),h(),f(16,"td"),g(17,"\u72c0\u614b"),h(),k(18,"td"),h()(),f(19,"tbody"),A(20,XW,14,6,"tr",5),h()()()),2&n){const e=P();y(20),C("ngForOf",e.accountlist)}}function JW(n,t){if(1&n){const e=j();f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),ii(7,"date"),h(),f(8,"td")(9,"button",9),M("click",function(){const o=T(e).$implicit;return O(P(3).getAVBill(o.AvbillId))}),g(10,"\u67e5\u770b"),h()()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.AvbillId),y(2),F(oi(7,3,e.Avdate,"yyyy-MM-dd"))}}function eG(n,t){if(1&n&&(f(0,"div")(1,"table")(2,"thead")(3,"tr")(4,"td"),g(5,"\u9805\u6b21"),h(),f(6,"td"),g(7,"\u50b3\u7968\u865f\u78bc"),h(),f(8,"td"),g(9,"\u50b3\u7968\u65e5\u671f"),h(),k(10,"td"),h()(),f(11,"tbody"),A(12,JW,11,6,"tr",5),h()()()),2&n){const e=P(2);y(12),C("ngForOf",e.AVBillList)}}function tG(n,t){if(1&n){const e=j();f(0,"div",12),g(1," \u50b3\u7968\u65e5\u671f\uff1a"),f(2,"input",13),M("ngModelChange",function(i){return T(e),O(P(2).AVDate=i)}),h(),f(3,"button",9),M("click",function(){return T(e),O(P(2).getNewAVId())}),g(4,"\u78ba\u5b9a"),h()()}if(2&n){const e=P(2);y(2),C("ngModel",e.AVDate)}}function nG(n,t){if(1&n){const e=j();f(0,"button",9),M("click",function(){T(e);const i=P(3);return O(i.DeleteAVBill(i.AVBill.AVMS.AvbillId))}),g(1,"\u522a\u9664\u50b3\u7968"),h()}}function rG(n,t){if(1&n){const e=j();f(0,"button",9),M("click",function(){T(e);const i=P(3);return i.AVEdit=!0,O(i.initAVDS())}),g(1,"\u4fee\u6539"),h()}}function iG(n,t){if(1&n){const e=j();f(0,"button",9),M("click",function(){T(e);const i=P(3);return i.AVEdit=!1,O(i.AVBill=null)}),g(1,"\u95dc\u9589\u50b3\u7968"),h()}}function oG(n,t){if(1&n){const e=j();f(0,"button",9),M("click",function(){return T(e),O(P(3).AVEdit=!1)}),g(1,"\u4fee\u6539\u5b8c\u6210"),h()}}function sG(n,t){if(1&n){const e=j();f(0,"tr",12)(1,"td",15),g(2," \u501f\u65b9 / \u8cb8\u65b9 \uff1a "),f(3,"select",23),M("ngModelChange",function(i){return T(e),O(P(3).DorC=i)}),f(4,"option",24),g(5,"\u501f"),h(),f(6,"option",25),g(7,"\u8cb8"),h()()()()}if(2&n){const e=P(3);y(3),C("ngModel",e.DorC)}}function aG(n,t){1&n&&(f(0,"tr",12)(1,"td"),g(2,"\u9806\u5e8f"),h(),f(3,"td"),g(4,"\u79d1\u76ee"),h(),f(5,"td"),g(6,"\u91d1\u984d"),h(),f(7,"td"),g(8,"\u5099\u8a3b"),h(),k(9,"td"),h())}function lG(n,t){if(1&n){const e=j();f(0,"tr",12)(1,"td")(2,"input",26),M("ngModelChange",function(i){return T(e),O(P(3).AVDSSNId=i)}),h()(),f(3,"td")(4,"input",27),M("ngModelChange",function(i){return T(e),O(P(3).AccountNoShow=i)}),h(),f(5,"input",28),M("ngModelChange",function(i){return T(e),O(P(3).AccountName=i)}),h(),f(6,"span",29),M("click",function(){return T(e),O(P(3).getAccountListShort())}),g(7,"\u67e5"),h()(),f(8,"td")(9,"input",30),M("ngModelChange",function(i){return T(e),O(P(3).Amount=i)}),h()(),f(10,"td")(11,"input",30),M("ngModelChange",function(i){return T(e),O(P(3).Note=i)}),h()(),f(12,"td")(13,"button",9),M("click",function(){return T(e),O(P(3).AVDSSave())}),g(14,"\u9001\u51fa"),h(),f(15,"button",9),M("click",function(){return T(e),O(P(3).initAVDS())}),g(16,"\u53d6\u6d88"),h()()()}if(2&n){const e=P(3);y(2),C("ngModel",e.AVDSSNId),y(2),C("ngModel",e.AccountNoShow),y(1),C("ngModel",e.AccountName),y(4),C("ngModel",e.Amount),y(2),C("ngModel",e.Note)}}function uG(n,t){if(1&n){const e=j();f(0,"span")(1,"button",9),M("click",function(){T(e);const i=P().$implicit;return O(P(3).EditAV(i))}),g(2,"\u4fee\u6539"),h(),f(3,"button",9),M("click",function(){T(e);const i=P().$implicit;return O(P(3).DeleteAV(i))}),g(4,"\u522a\u9664"),h()()}}function cG(n,t){if(1&n&&(f(0,"tr",20)(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),A(10,uG,5,0,"span",10),h()()),2&n){const e=t.$implicit,r=P(3);C("ngClass","D"==e.DorC?"AVD":"AVC"),y(2),Gt("",e.Avsnid,"","D"==e.DorC?"\u501f":"\u8cb8",""),y(2),Ei("",e.AccountNo,"-",e.SubAccountNo," ",e.AccountName,""),y(2),F(e.Amount),y(2),F(e.Note),y(2),C("ngIf",1==r.AVEdit)}}function dG(n,t){if(1&n&&(f(0,"div")(1,"table",14)(2,"thead")(3,"tr")(4,"td",15)(5,"p"),g(6),h(),f(7,"p"),g(8),ii(9,"date"),h(),f(10,"p",16),A(11,nG,2,0,"button",17),k(12,"span",18),A(13,rG,2,0,"button",17),A(14,iG,2,0,"button",17),A(15,oG,2,0,"button",17),h()()(),A(16,sG,8,1,"tr",11),A(17,aG,10,0,"tr",11),A(18,lG,17,5,"tr",11),h(),f(19,"tbody"),A(20,cG,11,9,"tr",19),f(21,"tr"),k(22,"td"),f(23,"td")(24,"span",20),g(25),h()(),f(26,"td")(27,"span",21),g(28),h(),f(29,"span",22),g(30),h()(),k(31,"td")(32,"td"),h()()()()),2&n){const e=P(2);y(6),ze("\u50b3\u7968\u7de8\u865f\uff1a",e.AVBill.AVMS.AvbillId,""),y(2),ze("\u50b3\u7968\u65e5\u671f\uff1a",oi(9,14,e.AVBill.AVMS.Avdate,"yyyy-MM-dd"),""),y(3),C("ngIf",0==e.AVEdit),y(2),C("ngIf",0==e.AVEdit),y(1),C("ngIf",0==e.AVEdit),y(1),C("ngIf",0!=e.AVEdit),y(1),C("ngIf",1==e.AVEdit&&null!=e.AVBill),y(1),C("ngIf",1==e.AVEdit&&null!=e.AVBill),y(1),C("ngIf",1==e.AVEdit&&null!=e.AVBill),y(2),C("ngForOf",e.AVBill.AVDS),y(4),C("ngClass",e.AVBill.DSum!=e.AVBill.CSum?"error":"normal"),y(1),F(e.AVBill.DSum==e.AVBill.CSum?"\u501f\u8cb8\u5e73\u8861":"\u501f\u8cb8\u4e0d\u5e73\u8861"),y(3),ze("\u501f\uff1a",e.AVBill.DSum,""),y(2),ze("\u8cb8\uff1a",e.AVBill.CSum,"")}}function fG(n,t){if(1&n&&(f(0,"td"),g(1),h()),2&n){const e=P().$implicit;y(1),Ei("",e.AccountNo,"",null!=e.SubAccountNo?"-"+e.SubAccountNo:""," ",e.AccountName,"")}}function hG(n,t){if(1&n){const e=j();f(0,"td")(1,"button",9),M("click",function(){T(e);const i=P().$implicit;return O(P(3).AccountNoSelect(i))}),g(2,"\u9078\u53d6"),h()()}}function pG(n,t){if(1&n&&(f(0,"tr"),A(1,fG,2,3,"td",10),A(2,hG,3,0,"td",10),h()),2&n){const e=t.$implicit;y(1),C("ngIf",null!=e.SubAccountNo),y(1),C("ngIf",null!=e.SubAccountNo)}}function gG(n,t){if(1&n&&(f(0,"div"),k(1,"div",31),f(2,"div",32)(3,"table")(4,"thead")(5,"tr")(6,"td"),g(7,"\u79d1\u76ee"),h(),k(8,"td"),h()(),f(9,"tbody"),A(10,pG,3,2,"tr",5),h()()()()),2&n){const e=P(2);y(10),C("ngForOf",e.accountlist)}}function mG(n,t){if(1&n){const e=j();f(0,"div",4)(1,"h1"),g(2,"\u50b3\u7968\u4f5c\u696d"),h(),f(3,"div",6)(4,"div")(5,"span",7),M("click",function(){return T(e),O(P().NewAV())}),g(6,"\u65b0\u589e\u50b3\u7968"),h()(),f(7,"div"),g(8," \u67e5\u8a62\u50b3\u7968\uff1a"),f(9,"input",8),M("ngModelChange",function(i){return T(e),O(P().qryString=i)})("keypress",function(i){return T(e),O(P().onKeyPress(i))}),h(),f(10,"button",9),M("click",function(){return T(e),O(P().qryAVBillList())}),g(11,"\u67e5\u8a62"),h()()(),A(12,eG,13,1,"div",10),A(13,tG,5,1,"div",11),A(14,dG,33,17,"div",10),A(15,gG,11,1,"div",10),h()}if(2&n){const e=P();y(9),C("ngModel",e.qryString),y(3),C("ngIf",null!=e.AVBillList&&null==e.AVBill),y(1),C("ngIf",1==e.AVEdit&&null==e.AVBill),y(1),C("ngIf",null!=e.AVBill),y(1),C("ngIf",1==e.AccountListShort)}}function _G(n,t){1&n&&(f(0,"div",4)(1,"h1"),g(2,"\u65e5\u8a18\u5e33"),h()())}function yG(n,t){1&n&&(f(0,"div",4)(1,"h1"),g(2,"\u7e3d\u5206\u985e\u5e33"),h()())}function vG(n,t){1&n&&(f(0,"div",4)(1,"h1"),g(2,"\u660e\u7d30\u5206\u985e"),h()())}const wE=function(){return["/mgnh/accounting/"]},bG=function(){return["/mgnh/accounting/rpt1"]},CG=function(){return["/mgnh/accounting/rpt2"]},wG=function(){return["/mgnh/accounting/rpt3"]};let PE=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.qryString="",this.AccountNoShow="",this.AccountNo="",this.SubAccountNo="",this.AccountName="",this.DorC="",this.Amount="",this.Note="",this.AVEdit=!1,this.AVBillId="",this.AccountListShort=!1,this.AVDSId="",this.AVDSSNId="",this.newAVId=!1}ngOnInit(){this.func=this.route.snapshot.paramMap.get("func"),console.log(this.func),this.doDefaultFunction(),this.AVDate=(new Date).toISOString().split("T")[0]}doDefaultFunction(){"fun1"===this.func&&this.getAccountList()}getAccountList(){var e=this.global.serverip+"/api/Accounting/qryAccountList";return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,{}).then(i=>(this.toastr.clear(),this.accountlist=i,!0),i=>!1))}qryAVBillList(){var e=this.global.serverip+"/api/Accounting/qryAVBillList",r={AVBillId:this.qryString};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.AVBillList=i,!0),i=>!1))}getAVBill(e){var r=this.global.serverip+"/api/Accounting/getAVBill",i={AVBillId:e};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(r,i).then(o=>(this.toastr.clear(),this.AVBill=o,1==this.newAVId&&(this.AVEdit=!0,this.newAVId=!1),!0),o=>!1))}NewAV(){this.AVEdit=!0,this.newAVId=!0,this.initAVDS()}initAVDS(){this.AVDSId="",this.AccountNo="",this.SubAccountNo="",this.AccountNoShow="",this.AccountName="",this.DorC="D",this.Amount="",this.Note="",this.AVDSSNId=""}EditAV(e){this.AVDSId=e.Id,this.AccountNo=e.AccountNo,this.SubAccountNo=e.SubAccountNo,this.AccountNoShow=e.AccountNo+"-"+e.SubAccountNo,this.AccountName=e.AccountName,this.DorC=e.DorC,this.Amount=e.Amount,this.Note=e.Note,this.AVEdit=!0,this.AVDSSNId=e.Avsnid}getNewAVId(){var e=this.global.serverip+"/api/Accounting/getNewAVId",r={AVDate:this.AVDate};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.AVBillId=i,this.getAVBill(this.AVBillId),!0),i=>!1))}getAccountListShort(){this.AccountListShort=!0,null==this.accountlist&&this.getAccountList()}AccountNoSelect(e){this.AccountNo=e.AccountNo,this.SubAccountNo=e.SubAccountNo,this.AccountNoShow=e.AccountNo+"-"+e.SubAccountNo,this.AccountName=e.AccountName,this.AccountListShort=!1}AVDSSave(){var e=this.global.serverip+"/api/Accounting/savdAVDS",r={AVBillId:this.AVBill.AVMS.AvbillId,AVDSId:this.AVDSId,AccountNo:this.AccountNo,SubAccountNo:this.SubAccountNo,DorC:this.DorC,Amount:this.Amount,Note:this.Note,Avsnid:this.AVDSSNId};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.initAVDS(),this.getAVBill(this.AVBill.AVBillId),!0),i=>!1))}DeleteAV(e){if(1==confirm("\u78ba\u5b9a\u8981\u522a\u9664\u8cc7\u6599\u55ce\uff1f")){var i=this.global.serverip+"/api/Accounting/deleteAVDS",o={AVDSId:e.Id};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(i,o).then(s=>(this.toastr.clear(),this.initAVDS(),this.getAVBill(this.AVBill.AVBillId),!0),s=>!1))}}DeleteAVBill(e){if(1==confirm("\u78ba\u5b9a\u8981\u522a\u9664\u8cc7\u6599\u55ce\uff1f")){var i=this.global.serverip+"/api/Accounting/deleteAVBill",o={AVBillId:e};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(i,o).then(s=>(this.toastr.clear(),this.AVBill=null,this.qryAVBillList(),!0),s=>!1))}}onKeyPress(e){"Enter"==e.key&&this.qryAVBillList()}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-accounting"]],decls:19,vars:15,consts:[[1,"all"],[1,"submenu"],[3,"routerLink","click"],["class","main",4,"ngIf"],[1,"main"],[4,"ngFor","ngForOf"],[1,"function_bar"],[1,"span_href",3,"click"],["type","text",3,"ngModel","ngModelChange","keypress"],[3,"click"],[4,"ngIf"],["class","AVInputBar",4,"ngIf"],[1,"AVInputBar"],["type","date",3,"ngModel","ngModelChange"],[1,"AVBill"],["colspan","5"],["align","right"],[3,"click",4,"ngIf"],[1,"w40"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"DorCD"],[1,"DorCC"],[3,"ngModel","ngModelChange"],["value","D"],["value","C"],["type","text",1,"w40",3,"ngModel","ngModelChange"],["type","text",1,"w70",3,"ngModel","ngModelChange"],["type","text",1,"w200",3,"ngModel","ngModelChange"],[1,"button",3,"click"],["type","text",3,"ngModel","ngModelChange"],[1,"mask"],[1,"accountlist"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1)(2,"span",2),M("click",function(){return r.func="fun1",r.doDefaultFunction()}),g(3,"\u6703\u8a08\u79d1\u76ee\u7dad\u8b77"),h(),f(4,"span",2),M("click",function(){return r.func="fun2",r.doDefaultFunction()}),g(5,"\u6703\u8a08\u50b3\u7968\u4f5c\u696d"),h(),f(6,"span",2),M("click",function(){return r.func=""}),g(7,"\u6703\u8a08\u65e5\u8a18\u5e33"),h(),f(8,"span",2),M("click",function(){return r.func=""}),g(9,"\u6703\u8a08\u7e3d\u5206\u985e\u5e33"),h(),f(10,"span",2),M("click",function(){return r.func=""}),g(11,"\u6703\u8a08\u660e\u7d30\u5206\u985e\u5e33"),h()()(),k(12,"router-outlet"),f(13,"div",0),A(14,ZW,21,1,"div",3),A(15,mG,16,5,"div",3),A(16,_G,3,0,"div",3),A(17,yG,3,0,"div",3),A(18,vG,3,0,"div",3),h()),2&e&&(y(2),C("routerLink",et(10,wE)),y(2),C("routerLink",et(11,wE)),y(2),C("routerLink",et(12,bG)),y(2),C("routerLink",et(13,CG)),y(2),C("routerLink",et(14,wG)),y(4),C("ngIf","fun1"==r.func),y(1),C("ngIf","fun2"==r.func),y(1),C("ngIf","fun3"==r.func),y(1),C("ngIf","fun4"==r.func),y(1),C("ngIf","fun5"==r.func))},dependencies:[Ii,fn,Yt,ji,Br,$n,zn,en,Mn,zt,Ft,rr],styles:[".all[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.submenu[_ngcontent-%COMP%]{display:flex;justify-content:left}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;margin:5px;color:#00008b;border-bottom:1px solid darkblue}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-color:#ff0}.span_href[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;color:#00008b;border-bottom:1px solid darkblue}.function_bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px}.main[_ngcontent-%COMP%]{left:0;right:0;bottom:0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid black}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}.AVD[_ngcontent-%COMP%]{text-align:left;background-color:#add8e6}.AVC[_ngcontent-%COMP%]{text-align:right;background-color:#90ee90}.AVInputBar[_ngcontent-%COMP%]{background-color:#feb090}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.accountlist[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:101}.w40[_ngcontent-%COMP%]{width:40px;display:inline-block}.w70[_ngcontent-%COMP%]{width:70px;display:inline-block}.w200[_ngcontent-%COMP%]{width:200px;display:inline-block}.error[_ngcontent-%COMP%]{display:block;text-align:right;color:red;font-size:18px}.normal[_ngcontent-%COMP%]{display:block;text-align:right;color:green;font-size:18px}.DorCD[_ngcontent-%COMP%]{display:block;text-align:left}.DorCC[_ngcontent-%COMP%]{display:block;text-align:right}@media only screen and (max-width: 375px){.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100px}.function_bar[_ngcontent-%COMP%]{flex-direction:column}.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:375px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:35px}}@media only screen and (max-width: 667px){.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:667px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:70px}}"]}),n})();function PG(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),ii(3,"date"),h(),f(4,"td"),g(5),h(),f(6,"td"),g(7),h(),f(8,"td"),g(9),h(),f(10,"td"),g(11),h(),f(12,"td")(13,"span",19),g(14),h()(),f(15,"td"),g(16),h(),f(17,"td"),g(18),h()()),2&n){const e=t.$implicit,r=t.index,i=P();y(2),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.strAVDate:oi(3,9,"","yyyy-MM-dd")),y(3),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.AvbillId:""),y(2),F(e.AccountNo),y(2),F(e.SubAccountNo),y(2),F(e.AccountName),y(2),C("ngClass","\u501f\u8cb8\u4e0d\u5e73\u8861"==e.Note?"error":"normal"),y(1),F(e.Note),y(2),F(e.DAmount),y(2),F(e.CAmount)}}let MG=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.Year=(new Date).getFullYear(),this.Month=(new Date).getMonth()+1}ngOnInit(){this.getMonthlyReport()}getMonthlyReport(){var e=this.global.serverip+"/api/Accounting/getMonthlyReport",r={Year:this.Year,Month:this.Month};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.AVs=i,!0),i=>!1))}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-accounting-rpt1"]],decls:57,vars:5,consts:[[1,"all"],[1,"function_bar"],["type","text",1,"w40",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["value","11"],["value","12"],[3,"click"],["colspan","8","align","center"],[4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1),g(2," \u8cc7\u6599\u67e5\u8a62\uff1a "),f(3,"input",2),M("ngModelChange",function(o){return r.Year=o}),h(),g(4,"\u5e74 "),f(5,"select",3),M("ngModelChange",function(o){return r.Month=o}),f(6,"option",4),g(7,"01"),h(),f(8,"option",5),g(9,"02"),h(),f(10,"option",6),g(11,"03"),h(),f(12,"option",7),g(13,"04"),h(),f(14,"option",8),g(15,"05"),h(),f(16,"option",9),g(17,"06"),h(),f(18,"option",10),g(19,"07"),h(),f(20,"option",11),g(21,"08"),h(),f(22,"option",12),g(23,"09"),h(),f(24,"option",13),g(25,"10"),h(),f(26,"option",14),g(27,"11"),h(),f(28,"option",15),g(29,"12"),h()(),f(30,"button",16),M("click",function(){return r.getMonthlyReport()}),g(31,"\u67e5\u8a62"),h()(),f(32,"div")(33,"table")(34,"thead")(35,"tr")(36,"td",17),g(37),h()(),f(38,"tr")(39,"td"),g(40,"\u65e5\u671f"),h(),f(41,"td"),g(42,"\u50b3\u7968\u7de8\u865f"),h(),f(43,"td"),g(44,"\u7e3d\u5e33\u7de8\u865f"),h(),f(45,"td"),g(46,"\u5b50\u76ee\u7de8\u865f"),h(),f(47,"td"),g(48,"\u6703\u8a08\u79d1\u76ee"),h(),f(49,"td"),g(50,"\u6458\u8981"),h(),f(51,"td"),g(52,"\u501f\u65b9\u91d1\u984d"),h(),f(53,"td"),g(54,"\u8cb8\u65b9\u91d1\u984d"),h()()(),f(55,"tbody"),A(56,PG,19,12,"tr",18),h()()()()),2&e&&(y(3),C("ngModel",r.Year),y(2),C("ngModel",r.Month),y(32),Gt(" ",r.Year," / ",r.Month," \u65e5\u8a18\u5e33 "),y(19),C("ngForOf",r.AVs))},dependencies:[Ii,fn,$n,zn,en,Mn,zt,Ft,rr],styles:[".all[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.submenu[_ngcontent-%COMP%]{display:flex;justify-content:left}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;margin:5px;color:#00008b;border-bottom:1px solid darkblue}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-color:#ff0}.span_href[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;color:#00008b;border-bottom:1px solid darkblue}.function_bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px}.main[_ngcontent-%COMP%]{left:0;right:0;bottom:0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid black}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}.AVD[_ngcontent-%COMP%]{text-align:left;background-color:#add8e6}.AVC[_ngcontent-%COMP%]{text-align:right;background-color:#90ee90}.AVInputBar[_ngcontent-%COMP%]{background-color:#feb090}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.accountlist[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:101}.w40[_ngcontent-%COMP%]{width:40px;display:inline-block}.w70[_ngcontent-%COMP%]{width:70px;display:inline-block}.w200[_ngcontent-%COMP%]{width:200px;display:inline-block}.error[_ngcontent-%COMP%]{display:block;text-align:right;color:red;font-size:18px}.normal[_ngcontent-%COMP%]{display:block;text-align:right;color:green;font-size:18px}.DorCD[_ngcontent-%COMP%]{display:block;text-align:left}.DorCC[_ngcontent-%COMP%]{display:block;text-align:right}@media only screen and (max-width: 375px){.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100px}.function_bar[_ngcontent-%COMP%]{flex-direction:column}.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:375px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:35px}}@media only screen and (max-width: 667px){.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:667px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:70px}}"]}),n})();function DG(n,t){if(1&n&&(f(0,"option",23),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.AccountNo),y(1),Gt("",e.AccountNo,"",e.AccountName,"")}}function xG(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),ii(3,"date"),h(),f(4,"td"),g(5),h(),f(6,"td"),g(7),h(),f(8,"td"),g(9),h(),f(10,"td"),g(11),h(),f(12,"td")(13,"span",24),g(14),h()(),f(15,"td"),g(16),h(),f(17,"td"),g(18),h()()),2&n){const e=t.$implicit,r=t.index,i=P();y(2),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.strAVDate:oi(3,9,"","yyyy-MM-dd")),y(3),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.AvbillId:""),y(2),F(e.AccountNo),y(2),F(e.SubAccountNo),y(2),F(e.AccountName),y(2),C("ngClass","\u501f\u8cb8\u4e0d\u5e73\u8861"==e.Note?"error":"normal"),y(1),F(e.Note),y(2),F(e.DAmount),y(2),F(e.CAmount)}}let SG=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.Year=(new Date).getFullYear(),this.Month=(new Date).getMonth()+1,this.Account="",this.AccountNo="",this.AccountName="",this.qryAll=!1}ngOnInit(){this.getMainAccount(),this.getAccountReport()}getMainAccount(){var e=this.global.serverip+"/api/Accounting/qryMainAccounts";return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,{}).then(i=>(this.toastr.clear(),this.AccountNos=i,!0),i=>!1))}getAccountReport(){var e=this.global.serverip+"/api/Accounting/getAccountReport",r={Year:this.Year,Month:this.Month,AccountNo:this.AccountNo,qryAll:this.qryAll};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.AVs=i,!0),i=>!1))}getAccountName(e){this.AccountNos.forEach(r=>{r.AccountNo==this.AccountNo&&(this.AccountName=r.AccountName)})}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-accounting-rpt2"]],decls:65,vars:10,consts:[[1,"all"],[1,"function_bar"],["type","text",1,"w40",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["value","11"],["value","12"],[3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[1,"w40"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"click"],["colspan","8","align","center"],[4,"ngFor","ngForOf"],[3,"value"],[3,"ngClass"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1),g(2," \u8cc7\u6599\u67e5\u8a62\uff1a "),f(3,"input",2),M("ngModelChange",function(o){return r.Year=o}),h(),g(4,"\u5e74 "),f(5,"select",3),M("ngModelChange",function(o){return r.Month=o}),f(6,"option",4),g(7,"01"),h(),f(8,"option",5),g(9,"02"),h(),f(10,"option",6),g(11,"03"),h(),f(12,"option",7),g(13,"04"),h(),f(14,"option",8),g(15,"05"),h(),f(16,"option",9),g(17,"06"),h(),f(18,"option",10),g(19,"07"),h(),f(20,"option",11),g(21,"08"),h(),f(22,"option",12),g(23,"09"),h(),f(24,"option",13),g(25,"10"),h(),f(26,"option",14),g(27,"11"),h(),f(28,"option",15),g(29,"12"),h()(),g(30," \u7e3d\u5e33\u540d\u7a31\uff1a"),f(31,"select",16),M("ngModelChange",function(o){return r.AccountNo=o})("change",function(o){return r.getAccountName(o)}),A(32,DG,2,3,"option",17),h(),k(33,"span",18),f(34,"input",19),M("ngModelChange",function(o){return r.qryAll=o}),h(),g(35,"\u67e5\u8a62\u5168\u90e8\u8cc7\u6599 "),f(36,"button",20),M("click",function(){return r.getAccountReport()}),g(37,"\u67e5\u8a62"),h()(),f(38,"div")(39,"table")(40,"thead")(41,"tr")(42,"td",21),g(43),k(44,"span",18),g(45),h()(),f(46,"tr")(47,"td"),g(48,"\u65e5\u671f"),h(),f(49,"td"),g(50,"\u50b3\u7968\u7de8\u865f"),h(),f(51,"td"),g(52,"\u7e3d\u5e33\u7de8\u865f"),h(),f(53,"td"),g(54,"\u5b50\u76ee\u7de8\u865f"),h(),f(55,"td"),g(56,"\u6703\u8a08\u79d1\u76ee"),h(),f(57,"td"),g(58,"\u6458\u8981"),h(),f(59,"td"),g(60,"\u501f\u65b9\u91d1\u984d"),h(),f(61,"td"),g(62,"\u8cb8\u65b9\u91d1\u984d"),h()()(),f(63,"tbody"),A(64,xG,19,12,"tr",22),h()()()()),2&e&&(y(3),C("ngModel",r.Year),y(2),C("ngModel",r.Month),y(26),C("ngModel",r.AccountNo),y(1),C("ngForOf",r.AccountNos),y(2),C("ngModel",r.qryAll),y(9),Gt(" ",r.Year," / ",r.Month,""),y(2),Gt("\u7e3d\u5e33\u79d1\u76ee\uff1a",r.AccountNo," ",r.AccountName," \u7e3d\u5206\u985e\u5e33 "),y(19),C("ngForOf",r.AVs))},dependencies:[Ii,fn,$n,zn,en,Pl,Mn,zt,Ft,rr],styles:[".all[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.submenu[_ngcontent-%COMP%]{display:flex;justify-content:left}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;margin:5px;color:#00008b;border-bottom:1px solid darkblue}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-color:#ff0}.span_href[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;color:#00008b;border-bottom:1px solid darkblue}.function_bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px}.main[_ngcontent-%COMP%]{left:0;right:0;bottom:0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid black}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}.AVD[_ngcontent-%COMP%]{text-align:left;background-color:#add8e6}.AVC[_ngcontent-%COMP%]{text-align:right;background-color:#90ee90}.AVInputBar[_ngcontent-%COMP%]{background-color:#feb090}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.accountlist[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:101}.w40[_ngcontent-%COMP%]{width:40px;display:inline-block}.w70[_ngcontent-%COMP%]{width:70px;display:inline-block}.w200[_ngcontent-%COMP%]{width:200px;display:inline-block}.error[_ngcontent-%COMP%]{display:block;text-align:right;color:red;font-size:18px}.normal[_ngcontent-%COMP%]{display:block;text-align:right;color:green;font-size:18px}.DorCD[_ngcontent-%COMP%]{display:block;text-align:left}.DorCC[_ngcontent-%COMP%]{display:block;text-align:right}@media only screen and (max-width: 375px){.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100px}.function_bar[_ngcontent-%COMP%]{flex-direction:column}.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:375px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:35px}}@media only screen and (max-width: 667px){.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:667px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:70px}}"]}),n})();function TG(n,t){if(1&n&&(f(0,"option",23),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.AccountNo),y(1),Gt("",e.AccountNo,"",e.AccountName,"")}}function OG(n,t){if(1&n&&(f(0,"option",23),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.SubAccountNo),y(1),Gt("",e.SubAccountNo,"",e.AccountName,"")}}function EG(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),ii(3,"date"),h(),f(4,"td"),g(5),h(),f(6,"td"),g(7),h(),f(8,"td"),g(9),h(),f(10,"td"),g(11),h(),f(12,"td")(13,"span",24),g(14),h()(),f(15,"td"),g(16),h(),f(17,"td"),g(18),h()()),2&n){const e=t.$implicit,r=t.index,i=P();y(2),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.strAVDate:oi(3,9,"","yyyy-MM-dd")),y(3),F(0==r||e.AvbillId!=i.AVs[r-1>=0?r-1:0].AvbillId?e.AvbillId:""),y(2),F(e.AccountNo),y(2),F(e.SubAccountNo),y(2),F(e.AccountName),y(2),C("ngClass","\u501f\u8cb8\u4e0d\u5e73\u8861"==e.Note?"error":"normal"),y(1),F(e.Note),y(2),F(e.DAmount),y(2),F(e.CAmount)}}let AG=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.Year=(new Date).getFullYear(),this.Month=(new Date).getMonth()+1,this.Account="",this.AccountNo="",this.AccountName="",this.SubAccountNo="001",this.qryAll=!1}ngOnInit(){this.getAccountList(),this.getAccountReport()}getAccountList(){var e=this.global.serverip+"/api/Accounting/qryAccountList";return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,{}).then(i=>{this.toastr.clear(),this.ACList=i,this.AccountNos=[];for(var o=0;o<this.ACList.length;o++){var s=this.ACList[o];(null==s.SubAccountNo||""==s.SubAccountNo)&&this.AccountNos.push(s)}return!0},i=>!1))}getAccountReport(){var e=this.global.serverip+"/api/Accounting/getAccountReport",r={Year:this.Year,Month:this.Month,AccountNo:this.AccountNo,SubAccountNo:this.SubAccountNo,qryAll:this.qryAll};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d..."),Promise.resolve(this.auth.httpDo(e,r).then(i=>(this.toastr.clear(),this.AVs=i,!0),i=>!1))}makeMakeSubAccountNos(e){this.SubAccountNos=[];for(var r=0;r<this.ACList.length;r++)this.ACList[r].AccountNo==this.AccountNo&&this.SubAccountNos.push(this.ACList[r]);this.SubAccountNo="001",this.getAccountName(e)}getAccountName(e){for(var r=0;r<this.SubAccountNos.length;r++){var i=this.SubAccountNos[r];i.AccountNo==this.AccountNo&&i.SubAccountNo==this.SubAccountNo&&(this.AccountName=i.AccountName)}}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-accounting-rpt3"]],decls:67,vars:13,consts:[[1,"all"],[1,"function_bar"],["type","text",1,"w40",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["value","11"],["value","12"],[3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],["type","checkbox",3,"ngModel","ngModelChange"],[3,"click"],["colspan","8","align","center"],[1,"w40"],[4,"ngFor","ngForOf"],[3,"value"],[3,"ngClass"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1),g(2," \u8cc7\u6599\u67e5\u8a62\uff1a "),f(3,"input",2),M("ngModelChange",function(o){return r.Year=o}),h(),g(4,"\u5e74 "),f(5,"select",3),M("ngModelChange",function(o){return r.Month=o}),f(6,"option",4),g(7,"01"),h(),f(8,"option",5),g(9,"02"),h(),f(10,"option",6),g(11,"03"),h(),f(12,"option",7),g(13,"04"),h(),f(14,"option",8),g(15,"05"),h(),f(16,"option",9),g(17,"06"),h(),f(18,"option",10),g(19,"07"),h(),f(20,"option",11),g(21,"08"),h(),f(22,"option",12),g(23,"09"),h(),f(24,"option",13),g(25,"10"),h(),f(26,"option",14),g(27,"11"),h(),f(28,"option",15),g(29,"12"),h()(),g(30," \u7e3d\u5e33\u540d\u7a31\uff1a"),f(31,"select",16),M("ngModelChange",function(o){return r.AccountNo=o})("change",function(o){return r.makeMakeSubAccountNos(o)}),A(32,TG,2,3,"option",17),h(),g(33," \u660e\u7d30\u79d1\u76ee\uff1a"),f(34,"select",16),M("ngModelChange",function(o){return r.SubAccountNo=o})("change",function(o){return r.getAccountName(o)}),A(35,OG,2,3,"option",17),h(),f(36,"input",18),M("ngModelChange",function(o){return r.qryAll=o}),h(),g(37,"\u67e5\u8a62\u5168\u90e8\u8cc7\u6599 "),f(38,"button",19),M("click",function(){return r.getAccountReport()}),g(39,"\u67e5\u8a62"),h()(),f(40,"div")(41,"table")(42,"thead")(43,"tr")(44,"td",20),g(45),k(46,"span",21),g(47),h()(),f(48,"tr")(49,"td"),g(50,"\u65e5\u671f"),h(),f(51,"td"),g(52,"\u50b3\u7968\u7de8\u865f"),h(),f(53,"td"),g(54,"\u7e3d\u5e33\u7de8\u865f"),h(),f(55,"td"),g(56,"\u5b50\u76ee\u7de8\u865f"),h(),f(57,"td"),g(58,"\u6703\u8a08\u79d1\u76ee"),h(),f(59,"td"),g(60,"\u6458\u8981"),h(),f(61,"td"),g(62,"\u501f\u65b9\u91d1\u984d"),h(),f(63,"td"),g(64,"\u8cb8\u65b9\u91d1\u984d"),h()()(),f(65,"tbody"),A(66,EG,19,12,"tr",22),h()()()()),2&e&&(y(3),C("ngModel",r.Year),y(2),C("ngModel",r.Month),y(26),C("ngModel",r.AccountNo),y(1),C("ngForOf",r.AccountNos),y(2),C("ngModel",r.SubAccountNo),y(1),C("ngForOf",r.SubAccountNos),y(1),C("ngModel",r.qryAll),y(9),Gt(" ",r.Year," / ",r.Month,""),y(2),Ei("\u5206\u985e\u5e33\u79d1\u76ee\uff1a",r.AccountNo,"-",r.SubAccountNo," ",r.AccountName," \u7e3d\u5206\u985e\u5e33 "),y(19),C("ngForOf",r.AVs))},dependencies:[Ii,fn,$n,zn,en,Pl,Mn,zt,Ft,rr],styles:[".all[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:100%}.submenu[_ngcontent-%COMP%]{display:flex;justify-content:left}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;margin:5px;color:#00008b;border-bottom:1px solid darkblue}.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{background-color:#ff0}.span_href[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px;color:#00008b;border-bottom:1px solid darkblue}.function_bar[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:5px}.main[_ngcontent-%COMP%]{left:0;right:0;bottom:0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid black}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}.AVD[_ngcontent-%COMP%]{text-align:left;background-color:#add8e6}.AVC[_ngcontent-%COMP%]{text-align:right;background-color:#90ee90}.AVInputBar[_ngcontent-%COMP%]{background-color:#feb090}.mask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:1000%;height:1000%;background-color:#fff;z-index:100}.accountlist[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:101}.w40[_ngcontent-%COMP%]{width:40px;display:inline-block}.w70[_ngcontent-%COMP%]{width:70px;display:inline-block}.w200[_ngcontent-%COMP%]{width:200px;display:inline-block}.error[_ngcontent-%COMP%]{display:block;text-align:right;color:red;font-size:18px}.normal[_ngcontent-%COMP%]{display:block;text-align:right;color:green;font-size:18px}.DorCD[_ngcontent-%COMP%]{display:block;text-align:left}.DorCC[_ngcontent-%COMP%]{display:block;text-align:right}@media only screen and (max-width: 375px){.submenu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100px}.function_bar[_ngcontent-%COMP%]{flex-direction:column}.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:375px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:35px}}@media only screen and (max-width: 667px){.AVBill[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{max-width:667px}.AVBill[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{max-width:70px}}"]}),n})();function IG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(2).NewProduct())}),g(1,"\u65b0\u589e\u5546\u54c1"),h()}}function kG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(2).EditProduct())}),g(1,"\u4fee\u6539\u8cc7\u6599"),h()}}function FG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(2).gotoProductPage())}),g(1,"\u67e5\u770b\u5546\u54c1\u9801"),h()}}function RG(n,t){if(1&n){const e=j();f(0,"tr",14),M("click",function(){const o=T(e).$implicit;return O(P(2).setProduct(o))})("focus",function(){const o=T(e).$implicit;return O(P(2).setProduct(o))})("keyup.arrowdown",function(i){return T(e),O(P(2).onKeydown(i))})("keyup.arrowup",function(i){return T(e),O(P(2).onKeydown(i))}),f(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),g(12),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.ProductId),y(2),F(e.ProdName),y(2),F(e.ProductSpec),y(2),F(e.BrandName),y(2),F(e.Author)}}function NG(n,t){if(1&n){const e=j();f(0,"div",2)(1,"table")(2,"thead")(3,"tr")(4,"th",3),A(5,IG,2,0,"span",4),A(6,kG,2,0,"span",4),A(7,FG,2,0,"span",4),h()(),f(8,"tr")(9,"th",3)(10,"div",5)(11,"span")(12,"select",6),M("ngModelChange",function(i){return T(e),O(P().qryType=i)}),f(13,"option",7),g(14,"\u54c1\u865f"),h(),f(15,"option",8),g(16,"\u54c1\u540d"),h(),f(17,"option",9),g(18,"\u898f\u683c"),h()()(),f(19,"span")(20,"input",10),M("ngModelChange",function(i){return T(e),O(P().qryString=i)}),h()(),f(21,"button",11),M("click",function(){return T(e),O(P().qryProducts())}),g(22,"\u67e5\u8a62"),h()()()(),f(23,"tr")(24,"th"),g(25,"\u9805\u6b21"),h(),f(26,"th"),g(27,"\u54c1\u865f"),h(),f(28,"th"),g(29,"\u54c1\u540d"),h(),f(30,"th"),g(31,"\u898f\u683c"),h(),f(32,"th"),g(33,"\u54c1\u724c"),h(),f(34,"th"),g(35,"\u4f5c\u8005"),h()()(),f(36,"tbody"),A(37,RG,13,6,"tr",12),h()()()}if(2&n){const e=P();C("ngClass",null==e.p?"tableContainerFull":"tableContainerTop"),y(5),C("ngIf",!e.newProduct),y(1),C("ngIf",!e.editProduct),y(1),C("ngIf",e.showProductDetail),y(5),C("ngModel",e.qryType),y(8),C("ngModel",e.qryString),y(17),C("ngForOf",e.Products)}}function LG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(3).NewProduct())}),g(1,"\u65b0\u589e\u5546\u54c1"),h()}}function BG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(3).NewProduct())}),g(1,"\u4fee\u6539\u8cc7\u6599"),h()}}function VG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(3).SaveProduct())}),g(1,"\u8cc7\u6599\u5b58\u6a94"),h()}}function UG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(3).DeleteProduct())}),g(1,"\u522a\u9664\u8cc7\u6599"),h()}}function jG(n,t){if(1&n){const e=j();f(0,"span",13),M("click",function(){return T(e),O(P(3).CancelEdit())}),g(1,"\u7d50\u675f\u4fee\u6539"),h()}}function HG(n,t){if(1&n&&(f(0,"td",30),A(1,LG,2,0,"span",4),A(2,BG,2,0,"span",4),A(3,VG,2,0,"span",4),A(4,UG,2,0,"span",4),A(5,jG,2,0,"span",4),h()),2&n){const e=P(2);y(1),C("ngIf",!e.newProduct),y(1),C("ngIf",!e.editProduct),y(1),C("ngIf",e.editProduct),y(1),C("ngIf",e.editProduct),y(1),C("ngIf",e.editProduct)}}function $G(n,t){if(1&n){const e=j();f(0,"input",31),M("change",function(i){return T(e),O(P(2).handleFileInput(i))}),h()}}function zG(n,t){if(1&n){const e=j();f(0,"button",11),M("click",function(){T(e);const i=P().$implicit;return O(P(2).DeleteProductImage(i.filename))}),g(1,"\u522a\u9664\u7167\u7247"),h()}}function qG(n,t){if(1&n){const e=j();f(0,"div",32)(1,"div",33)(2,"span",34),M("click",function(){const o=T(e).$implicit;return O(P(2).modifyIndex(o.filename,null!=o.showIndex?o.showIndex:""))}),g(3),h(),f(4,"span"),g(5),h(),g(6),h(),k(7,"img",35),f(8,"div",36),g(9),h(),A(10,zG,2,0,"button",37),h()}if(2&n){const e=t.$implicit,r=t.index,i=P(2);y(3),ze("\u8a2d\u5b9a\u64ad\u653e\u9806\u5e8f",e.showIndex,""),y(2),ze("\u7b2c",r+1,"\u5f35"),y(1),ze(" / \u5171",i.Imgs.length,"\u5f35"),y(1),C("src",e.file,Ti),y(2),F(e.filename),y(1),C("ngIf",i.editProduct)}}function WG(n,t){if(1&n){const e=j();f(0,"span",38),M("click",function(){const o=T(e).index;return O(P(2).currentSlide(o))}),h()}}function GG(n,t){if(1&n){const e=j();f(0,"div",15)(1,"table",16)(2,"tr"),A(3,HG,6,5,"td",17),h(),f(4,"tr")(5,"td")(6,"p")(7,"span"),g(8,"\u54c1\u865f\uff1a"),h(),f(9,"input",18),M("ngModelChange",function(i){return T(e),O(P().ProductId=i)}),h(),k(10,"br"),f(11,"span"),g(12,"\u54c1\u540d\uff1a"),h(),f(13,"input",18),M("ngModelChange",function(i){return T(e),O(P().ProdName=i)}),h(),k(14,"br"),f(15,"span"),g(16,"\u898f\u683c\uff1a"),h(),f(17,"input",18),M("ngModelChange",function(i){return T(e),O(P().ProductSpec=i)}),h(),k(18,"br"),f(19,"span"),g(20,"\u5225\u540d\uff1a"),h(),f(21,"input",18),M("ngModelChange",function(i){return T(e),O(P().Alias=i)}),h(),k(22,"br"),f(23,"span"),g(24,"\u54c1\u724c\uff1a"),h(),f(25,"input",18),M("ngModelChange",function(i){return T(e),O(P().BrandName=i)}),h(),k(26,"br"),f(27,"span"),g(28,"\u4f5c\u8005\uff1a"),h(),f(29,"input",18),M("ngModelChange",function(i){return T(e),O(P().Author=i)}),h(),k(30,"br"),f(31,"span"),g(32,"\u7de8\u865f\uff1a"),h(),f(33,"input",18),M("ngModelChange",function(i){return T(e),O(P().ShortId=i)}),h(),k(34,"br"),h()(),f(35,"td")(36,"p")(37,"span"),g(38,"\u6a19\u6e96\u552e\u50f9\uff1a"),h(),f(39,"input",18),M("ngModelChange",function(i){return T(e),O(P().StdPrice=i)}),h(),k(40,"br"),f(41,"span"),g(42,"\u6b64\u552e\u50f9\u662f\u5426\u5df2\u7d93\u542b\u7a05\uff1a"),f(43,"select",6),M("ngModelChange",function(i){return T(e),O(P().StdPriceHadIncludeTax=i)}),f(44,"option",19),g(45,"\u662f"),h(),f(46,"option",19),g(47,"\u5426"),h()()(),k(48,"br")(49,"br"),f(50,"span"),g(51,"\u6a19\u6e96\u6210\u672c\uff1a"),h(),f(52,"input",18),M("ngModelChange",function(i){return T(e),O(P().StdCost=i)}),h(),k(53,"br")(54,"br"),f(55,"span"),g(56,"\u6b64\u552e\u50f9\u662f\u5426\u70ba\u5be6\u9ad4\u5546\u54c1\uff1a"),f(57,"select",6),M("ngModelChange",function(i){return T(e),O(P().PhysicalProduct=i)}),f(58,"option",19),g(59,"\u662f"),h(),f(60,"option",19),g(61,"\u5426"),h()()(),k(62,"br"),h()(),f(63,"td")(64,"p")(65,"span"),g(66,"\u5167\u5bb9\u8aaa\u660e\uff1a"),h(),k(67,"br"),f(68,"textarea",20),M("ngModelChange",function(i){return T(e),O(P().ProductContents=i)}),h()()()()(),f(69,"div",21)(70,"label",22),g(71,"\u4e0a\u50b3\u5546\u54c1\u5ba3\u50b3\u7167\u7247"),h(),A(72,$G,1,0,"input",23),h(),f(73,"div",24),A(74,qG,11,6,"div",25),f(75,"a",26),M("click",function(){return T(e),O(P().plusSlides(-1))}),g(76,"\u276e"),h(),f(77,"a",27),M("click",function(){return T(e),O(P().plusSlides(1))}),g(78,"\u276f"),h()(),k(79,"br"),f(80,"div",28),A(81,WG,1,0,"span",29),h()()}if(2&n){const e=P();C("ngClass",null!=e.p&&1==e.editProduct?"tableContainerFull":"tableContainerBottom"),y(3),C("ngIf",e.editProduct&&e.showProductDetail),y(6),C("ngModel",e.ProductId)("disabled",""!=e.p.ProductId),y(4),C("ngModel",e.ProdName)("disabled",!e.editProduct),y(4),C("ngModel",e.ProductSpec)("disabled",!e.editProduct),y(4),C("ngModel",e.Alias)("disabled",!e.editProduct),y(4),C("ngModel",e.BrandName)("disabled",!e.editProduct),y(4),C("ngModel",e.Author)("disabled",!e.editProduct),y(4),C("ngModel",e.ShortId)("disabled",!e.editProduct),y(6),C("ngModel",e.StdPrice)("disabled",!e.editProduct),y(4),C("ngModel",e.StdPriceHadIncludeTax),y(1),C("value",1),y(2),C("value",0),y(6),C("ngModel",e.StdCost)("disabled",!e.editProduct),y(5),C("ngModel",e.PhysicalProduct),y(1),C("value",1),y(2),C("value",0),y(8),C("ngModel",e.ProductContents)("disabled",!e.editProduct),y(4),C("ngIf",e.editProduct),y(2),C("ngForOf",e.Imgs),y(7),C("ngForOf",e.Imgs)}}let YG=(()=>{class n{constructor(e,r,i,o,s){this.media=e,this.auth=r,this.toastr=i,this.global=o,this.router=s,this.Imgs=[],this.fileToUpload=null,this.GettingProductImage=!1,this.ProductId="",this.ProdName="",this.Alias="",this.BrandName="",this.Author="",this.ShortId="",this.ProductSpec="",this.StdPrice="0",this.StdCost="0",this.ProductContents="",this.StdPriceHadIncludeTax="0",this.PhysicalProduct="0",this.qryType="ProductId",this.qryString="",this.qryProductId="",this.qryProdName="",this.qryProductSpec="",this.showProductDetail=!1,this.newProduct=!1,this.editProduct=!1,this.slideIndex=1,this.timer=setTimeout(()=>{this.showSlides(this.slideIndex)},1e3)}ngOnInit(){this.initial(),this.qryProducts()}handleFileInput(e){var r=e.target.files[0];return this.toastr.info("\u6a94\u6848\u4e0a\u50b3\u8655\u7406\u4e2d"),new Promise((i,o)=>{this.media.UploadFile(r,this.ProductId,"").then(s=>{this.toastr.clear(),1==s?(this.toastr.info("\u6a94\u6848\u4e0a\u50b3\u5b8c\u6210"),this.getProductImageLists()):this.toastr.info("\u4e0a\u50b3\u5931\u6557\uff0c\u8acb\u91cd\u65b0\u5617\u8a66"),i(!0)},s=>{o(!1)})})}setProduct(e){this.p=e,this.showProductDetail=!0,this.ProductId=e.ProductId,this.ProdName=e.ProdName,this.Alias=e.Alias,this.BrandName=e.BrandName,this.Author=e.Author,this.ShortId=e.ShortId,this.ProductSpec=e.ProductSpec,this.StdPrice=e.StdPrice,this.StdCost=e.StdCost,this.ProductContents=e.ProductContents,this.StdPriceHadIncludeTax=e.StdPriceHadIncludeTax,this.PhysicalProduct=e.PhysicalProduct,this.getProductImageLists()}onKeydown(e){console.log(e)}initial(){this.showProductDetail=!1,this.newProduct=!1,this.editProduct=!1,this.p=null,this.ProductId="",this.ProdName="",this.Alias="",this.BrandName="",this.Author="",this.ShortId="",this.ProductSpec="",this.StdPrice="0",this.StdCost="0",this.ProductContents="",this.StdPriceHadIncludeTax="0",this.PhysicalProduct="0"}qryProducts(){switch(this.qryProductId="",this.qryProdName="",this.qryProductSpec="",this.qryType){case"ProductId":this.qryProductId=this.qryString;break;case"ProductName":this.qryProdName=this.qryString;break;case"ProductSpec":this.qryProductSpec=this.qryString}var e=this.global.serverip+"/api/Product/qryProducts",r={ProductId:this.qryProductId,ProdName:this.qryProdName,ProductSpec:this.qryProductSpec};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d"),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),this.Products=s,i(!0)},s=>{o(!1)})})}NewProduct(){1!=this.editProduct||""==this.p.ProductId?(this.initial(),this.newProduct=!0,this.editProduct=!0,this.showProductDetail=!0,this.p=new Object,this.p.ProductId="",this.p.ProdName="",this.p.Alias="",this.p.BrandName="",this.p.Author="",this.p.ShortId="",this.p.ProductSpec="",this.p.StdPrice="0",this.p.StdCos="0",this.p.Content="",this.p.StdPriceHadIncludeTax="0",this.p.PhysicalProduct="0"):this.toastr.warning("\u8acb\u5148\u7d50\u675f\u5546\u54c1\u4fee\u6539\u624d\u80fd\u9032\u884c\u65b0\u589e\u5546\u54c1\u8cc7\u6599\uff01")}EditProduct(){this.editProduct=!0}CancelEdit(){!confirm("\u78ba\u5b9a\u8981\u7d50\u675f\u4fee\u6539\u55ce\uff1f")||this.initial()}SaveProduct(){if(null!=this.ProductId&&""!=this.ProductId){var e=this.global.serverip+"/api/Product/UpdateProduct",r={ProductId:this.ProductId,ProdName:this.ProdName,Alias:this.Alias,BrandName:this.BrandName,Author:this.Author,ShortId:this.ShortId,ProductSpec:this.ProductSpec,StdPrice:this.StdPrice,StdCost:this.StdCost,ProductContents:this.ProductContents,StdPriceHadIncludeTax:this.StdPriceHadIncludeTax,PhysicalProduct:this.PhysicalProduct};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u8cc7\u6599\u66f4\u65b0\u6210\u529f"),this.editProduct=!1,this.newProduct=!1,this.qryProductId=this.ProductId,this.qryProducts(),i(!0)},s=>{o(!1)})})}}DeleteProduct(){if(null!=this.ProductId&&""!=this.ProductId&&confirm("\u78ba\u5b9a\u8981\u522a\u9664\u8cc7\u6599\u55ce\uff1f")){var r=this.global.serverip+"/api/Product/DeleteProduct",i={ProductId:this.ProductId};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((o,s)=>{this.auth.httpDo(r,i).then(a=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u8cc7\u6599\u66f4\u65b0\u6210\u529f"),this.editProduct=!1,this.newProduct=!1,this.initial(),this.qryProducts(),o(!0)},a=>{s(!1)})})}}getImgFile(e){var r=e.FileUuid,i=e.showIndex;this.media.getMedia(r).then(o=>{this.theImage=o;var s=new QG;return s.file=o,s.filename=r,s.showIndex=i,this.Imgs.push(s),o})}getProductImageLists(){if(1!=this.GettingProductImage&&(this.GettingProductImage=!0,null!=this.ProductId&&""!=this.ProductId)){var e=this.global.serverip+"/api/Product/GetProductImageList",r={ProductId:this.ProductId};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.info("\u5546\u54c1\u7167\u7247\u6293\u53d6\u5b8c\u6210"),this.PImages=s,this.GettingProductImage=!1,this.LoadImage(),setTimeout(()=>{this.showSlides(this.slideIndex)},2e3),i(!0)},s=>{o(!1)})})}}LoadImage(){this.Imgs=[],this.PImages.forEach(e=>{setTimeout(()=>{this.getImgFile(e)},500)})}DeleteProductImage(e){if(null!=this.ProductId&&""!=this.ProductId&&null!=e&&""!=e&&confirm("\u78ba\u5b9a\u8981\u522a\u9664\u5546\u54c1\u7167\u7247\u55ce\uff1f")){var i=this.global.serverip+"/api/Product/DeleteProductImage",o={ProductId:this.ProductId,ImageFileName:e};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((s,a)=>{this.auth.httpDo(i,o).then(l=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u8cc7\u6599\u66f4\u65b0\u6210\u529f");var u=this.Imgs.findIndex(c=>c.filename==e);-1!==u&&this.Imgs.splice(u,1),s(!0)},l=>{a(!1)})})}}plusSlides(e){this.showSlides(this.slideIndex+=e)}currentSlide(e){this.showSlides(this.slideIndex=e)}showSlides(e){var r,i=Array.from(document.getElementsByClassName("mySlides")),o=document.getElementsByClassName("dot");for(e>i.length&&(this.slideIndex=1),e<1&&(this.slideIndex=i.length),r=0;r<i.length;r++)i[r].style.display="none";for(r=0;r<o.length;r++)o[r].className=o[r].className.replace(" active","");i[this.slideIndex-1].style.display="block",o[this.slideIndex-1].className+=" active",this.timer=setTimeout(()=>{this.plusSlides(1)},5e3)}gotoProductPage(){const e=this.router.serializeUrl(this.router.createUrlTree(["/product/"+this.p.ProductId],{queryParams:{}}));window.open(e,"_blank")}modifyIndex(e,r){var i=prompt("\u8acb\u8f38\u5165\u65b0\u7684\u7167\u7247\u64ad\u653e\u9806\u5e8f",r.toString());console.log(i);var o=this.global.serverip+"/api/Product/updateImageShowIndex",s={ImageFileName:e,showIndex:i};return new Promise((a,l)=>{this.auth.httpDo(o,s).then(u=>{this.toastr.info("\u5546\u54c1\u7167\u7247\u9806\u5e8f\u66f4\u65b0\u5b8c\u6210"),this.getProductImageLists(),a(!0)},u=>{l(!1)})})}}return n.\u0275fac=function(e){return new(e||n)(S(Ry),S(ct),S(dt),S(nt),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-productprofile"]],decls:2,vars:2,consts:[["class","tableContainer tableTotalList",3,"ngClass",4,"ngIf"],["class","tableContainer tableEdit",3,"ngClass",4,"ngIf"],[1,"tableContainer","tableTotalList",3,"ngClass"],["colspan","6","align","left"],["class","button wFree",3,"click",4,"ngIf"],[1,"qryData"],[3,"ngModel","ngModelChange"],["value","ProductId"],["value","ProductName"],["value","ProductSpec"],["type","text",3,"ngModel","ngModelChange"],[3,"click"],["class","Data",3,"click","focus","keyup.arrowdown","keyup.arrowup",4,"ngFor","ngForOf"],[1,"button","wFree",3,"click"],[1,"Data",3,"click","focus","keyup.arrowdown","keyup.arrowup"],[1,"tableContainer","tableEdit",3,"ngClass"],[1,"ProductDetail"],["colspan","3",4,"ngIf"],["type","text",3,"ngModel","disabled","ngModelChange"],[3,"value"],[3,"ngModel","disabled","ngModelChange"],[1,"form-group"],["for","file"],["type","file","class","file-upload",3,"change",4,"ngIf"],[1,"slideshow-container"],["class","mySlides fade",4,"ngFor","ngForOf"],[1,"prev",3,"click"],[1,"next",3,"click"],[2,"text-align","center"],["class","dot",3,"click",4,"ngFor","ngForOf"],["colspan","3"],["type","file",1,"file-upload",3,"change"],[1,"mySlides","fade"],[1,"numbertext"],[2,"margin-right","20px",3,"click"],[2,"width","100%",3,"src"],[1,"text"],[3,"click",4,"ngIf"],[1,"dot",3,"click"]],template:function(e,r){1&e&&(A(0,NG,38,7,"div",0),A(1,GG,82,31,"div",1)),2&e&&(C("ngIf",!(r.editProduct&&r.showProductDetail)),y(1),C("ngIf",r.showProductDetail))},dependencies:[Ii,fn,Yt,$n,zn,en,Mn,zt,Ft],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%], button[_ngcontent-%COMP%]{font-size:18px}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:80px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();class QG{constructor(){this.file=null,this.filename="",this.showIndex=""}}function KG(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P().NewProduct())}),g(1,"\u65b0\u589e\u8ab2\u7a0b"),h()}}function XG(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P().EditProduct())}),g(1,"\u4fee\u6539\u8cc7\u6599"),h()}}function ZG(n,t){if(1&n&&(f(0,"option",17),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.DepartmentId),y(1),F(e.DepartmentName)}}function JG(n,t){if(1&n){const e=j();f(0,"select",4),M("ngModelChange",function(i){return T(e),O(P().qryString=i)}),A(1,ZG,2,2,"option",16),h()}if(2&n){const e=P();C("ngModel",e.qryString),y(1),C("ngForOf",e.Departments)}}function eY(n,t){if(1&n){const e=j();f(0,"span")(1,"input",18),M("ngModelChange",function(i){return T(e),O(P().qryString=i)})("keydown.enter",function(){return T(e),O(P().qryCourse())}),h()()}if(2&n){const e=P();y(1),C("ngModel",e.qryString)}}function tY(n,t){if(1&n&&(f(0,"option",20),g(1),h()),2&n){const e=t.$implicit;y(1),F(e.CName)}}function nY(n,t){if(1&n){const e=j();f(0,"span")(1,"select",4),M("ngModelChange",function(i){return T(e),O(P().qryString=i)}),A(2,tY,2,1,"option",19),h()()}if(2&n){const e=P();y(1),C("ngModel",e.qryString),y(1),C("ngForOf",e.Teachers)}}function rY(n,t){if(1&n){const e=j();f(0,"span")(1,"input",21),M("ngModelChange",function(i){return T(e),O(P().qryString=i)}),h()()}if(2&n){const e=P();y(1),C("ngModel",e.qryString)}}function iY(n,t){if(1&n&&(f(0,"span"),g(1),h()),2&n){const e=t.$implicit;y(1),F(e.UserCName)}}function oY(n,t){if(1&n){const e=j();f(0,"tr",22),M("click",function(){const o=T(e).$implicit;return O(P().setProduct(o))})("focus",function(){const o=T(e).$implicit;return O(P().setProduct(o))})("keyup.arrowdown",function(i){return T(e),O(P().onKeydown(i))})("keyup.arrowup",function(i){return T(e),O(P().onKeydown(i))}),f(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),A(12,iY,2,1,"span",23),h(),f(13,"td",24),g(14),h(),f(15,"td"),g(16),h(),f(17,"td"),g(18),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.DepartmentName),y(2),F(e.ProductId),y(2),F(e.ProdName),y(2),F(e.Teachers.length),y(2),C("ngForOf",e.Teachers),y(1),C("ngClass",e.QtyOfLessons!=e.LessonDates.length?"Warning":"Normal"),y(1),Gt("",e.QtyOfLessons," / ",e.LessonDates.length,""),y(2),F(e.PricePerLesson),y(2),F(e.PricePerSemester)}}function sY(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P(3).NewProduct())}),g(1,"\u65b0\u589e\u8ab2\u7a0b"),h()}}function aY(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P(3).NewProduct())}),g(1,"\u4fee\u6539\u8cc7\u6599"),h()}}function lY(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P(3).SaveProduct())}),g(1,"\u8cc7\u6599\u5b58\u6a94"),h()}}function uY(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P(3).DeleteProduct())}),g(1,"\u522a\u9664\u8cc7\u6599"),h()}}function cY(n,t){if(1&n){const e=j();f(0,"span",15),M("click",function(){return T(e),O(P(3).CancelEdit())}),g(1,"\u7d50\u675f\u4fee\u6539"),h()}}function dY(n,t){if(1&n&&(f(0,"td",37),A(1,sY,2,0,"span",2),A(2,aY,2,0,"span",2),A(3,lY,2,0,"span",2),A(4,uY,2,0,"span",2),A(5,cY,2,0,"span",2),h()),2&n){const e=P(2);y(1),C("ngIf",!e.newProduct),y(1),C("ngIf",!e.editProduct),y(1),C("ngIf",e.editProduct),y(1),C("ngIf",e.editProduct),y(1),C("ngIf",e.editProduct)}}function fY(n,t){if(1&n&&(f(0,"option",38),g(1),h()),2&n){const e=t.$implicit,r=P(2);Wt("value",e.DepartmentId),C("selected",e.DepartmentId==r.Department),y(1),F(e.DepartmentName)}}function hY(n,t){if(1&n){const e=j();f(0,"div")(1,"span"),g(2),h(),f(3,"button",12),M("click",function(){const o=T(e).$implicit;return O(P(4).AddTeacherToCourse(o))}),g(4,"\u9078\u53d6"),h()()}if(2&n){const e=t.$implicit;y(2),Gt("",e.UserCName," ",e.UserTel,"")}}function pY(n,t){if(1&n&&(f(0,"div"),A(1,hY,5,2,"div",23),h()),2&n){const e=P(3);y(1),C("ngForOf",e.qryTeacherByCNameResult)}}function gY(n,t){if(1&n){const e=j();f(0,"span",42),M("click",function(){const o=T(e).$implicit;return O(P(3).DeleteTheTeacher(o))}),g(1),h()}if(2&n){const e=t.$implicit;y(1),Gt("",e.UserCName,":",e.ProfitRatio,"")}}function mY(n,t){if(1&n){const e=j();f(0,"div")(1,"span"),g(2,"\u8b1b\u5e2b\u4eba\u6578\uff1a"),h(),f(3,"input",39),M("ngModelChange",function(i){return T(e),O(P(2).p.Teachers.length=i)}),h(),k(4,"br"),f(5,"span"),g(6,"\u8b1b\u5e2b\u59d3\u540d\uff1a"),h(),f(7,"input",33),M("ngModelChange",function(i){return T(e),O(P(2).qryTeacherName=i)}),h(),f(8,"button",40),M("click",function(){return T(e),O(P(2).qryTeacherByCName())}),g(9,"\u641c\u5c0b"),h(),k(10,"br"),A(11,pY,2,1,"div",11),A(12,gY,2,2,"span",41),k(13,"br")(14,"br"),h()}if(2&n){const e=P(2);y(3),C("ngModel",e.p.Teachers.length),y(4),C("ngModel",e.qryTeacherName)("disabled",!e.editProduct),y(1),C("disabled",!e.editProduct),y(3),C("ngIf",null!=e.qryTeacherByCNameResult&&1==e.showQryTeachersByCName),y(1),C("ngForOf",e.TeacherInThisCourse)}}function _Y(n,t){if(1&n){const e=j();f(0,"span",45),M("click",function(){const o=T(e).$implicit;return O(P(3).deleteLessonDate(o.LessonDate))}),g(1),h()}if(2&n){const e=t.$implicit;y(1),F(e.LessonDate)}}function yY(n,t){if(1&n){const e=j();f(0,"div")(1,"span"),g(2,"\u5df2\u8a2d\u5b9a\u8ab2\u5802\u6578\uff1a"),h(),f(3,"input",31),M("ngModelChange",function(i){return T(e),O(P(2).LessonDates.length=i)}),h(),k(4,"br"),f(5,"span"),g(6,"\u8ab2\u5802\u65e5\u671f\uff1a"),h(),f(7,"input",43),M("ngModelChange",function(i){return T(e),O(P(2).setLessonDate=i)}),h(),f(8,"button",40),M("click",function(){return T(e),O(P(2).addLessonDate())}),g(9,"\u8a2d\u5b9a"),h(),k(10,"br"),A(11,_Y,2,1,"span",44),k(12,"br")(13,"br"),h()}if(2&n){const e=P(2);y(3),C("ngModel",e.LessonDates.length)("ngClass",e.LessonDates.length!=e.QtyOfLessons?"Warning":"Normal"),y(4),C("ngModel",e.setLessonDate)("disabled",!e.editProduct),y(1),C("disabled",!e.editProduct),y(3),C("ngForOf",e.LessonDates)}}function vY(n,t){if(1&n){const e=j();f(0,"div",25)(1,"table",26)(2,"tr",27),A(3,dY,6,5,"td",28),h(),f(4,"tr")(5,"td")(6,"span"),g(7,"\u958b\u8ab2\u90e8\u9580\uff1a"),h(),f(8,"select",29),M("ngModelChange",function(i){return T(e),O(P().Department=i)}),A(9,fY,2,3,"option",30),h(),f(10,"input",31),M("ngModelChange",function(i){return T(e),O(P().DepartmentName=i)}),h(),k(11,"br"),f(12,"span"),g(13,"\u8ab2\u7a0b\u7de8\u865f\uff1a"),h(),f(14,"input",32),M("ngModelChange",function(i){return T(e),O(P().ProductId=i)}),h(),k(15,"br"),f(16,"span"),g(17,"\u8ab2\u7a0b\u540d\u7a31\uff1a"),h(),f(18,"input",33),M("ngModelChange",function(i){return T(e),O(P().ProdName=i)}),h(),k(19,"br"),f(20,"span"),g(21,"\u5168\u671f\u7e3d\u5802\u6578\uff1a"),h(),f(22,"input",34),M("ngModelChange",function(i){return T(e),O(P().QtyOfLessons=i)})("change",function(){return T(e),O(P().countPricePerSemester())}),h(),k(23,"br"),f(24,"span"),g(25,"\u55ae\u5802\u8ab2\u552e\u50f9\uff1a"),h(),f(26,"input",34),M("ngModelChange",function(i){return T(e),O(P().PricePerLesson=i)})("change",function(){return T(e),O(P().countPricePerSemester())}),h(),g(27,"\u5143 \uff0a\u6b64\u50f9\u9322\u542b\u7a05\uff0c "),f(28,"span"),g(29,"\u6bcf\u5802\u8ab2\u5305\u542b\u6750\u6599\u8cbb\uff1a"),h(),f(30,"input",35),M("ngModelChange",function(i){return T(e),O(P().MaterialCostPerLesson=i)}),h(),g(31,"\u5143 "),k(32,"br"),f(33,"span"),g(34,"\u5168\u671f\u8ab2\u552e\u50f9\uff1a"),h(),f(35,"input",36),M("ngModelChange",function(i){return T(e),O(P().PricePerSemester=i)}),h(),g(36,"\u5143 \uff0a\u6b64\u50f9\u9322\u542b\u7a05"),k(37,"br"),f(38,"span"),g(39,"\u6bcf\u6708\u56fa\u5b9a\u8cbb\u7528\uff1a"),h(),g(40,"\u8cbb\u7528\u540d\u7a31\uff1a"),f(41,"input",33),M("ngModelChange",function(i){return T(e),O(P().FixedCostName=i)}),h(),f(42,"span"),g(43,"\u8cbb\u7528\u91d1\u984d\uff1a"),h(),f(44,"input",35),M("ngModelChange",function(i){return T(e),O(P().FixedCostAmount=i)}),h(),g(45,"\u5143 "),k(46,"br"),f(47,"span"),g(48,"\u5206\u6f64\u6bd4\u4f8b\uff1a"),h(),f(49,"input",35),M("ngModelChange",function(i){return T(e),O(P().ProfitRatio=i)}),h(),g(50,"\uff05"),k(51,"br"),A(52,mY,15,6,"div",11),A(53,yY,14,6,"div",11),h()()()()}if(2&n){const e=P();C("ngClass",null!=e.p&&1==e.editProduct?"tableContainerFull":"tableContainerBottom"),y(3),C("ngIf",e.editProduct&&e.showProductDetail),y(5),C("ngModel",e.Department)("ngClass",""==e.ProductId?"visibleTrue":"visibleFalse"),y(1),C("ngForOf",e.Departments),y(1),C("ngModel",e.DepartmentName)("ngClass",""!=e.ProductId?"visibleTrue":"visibleFalse"),y(4),C("ngModel",e.ProductId),y(4),C("ngModel",e.ProdName)("disabled",!e.editProduct),y(4),C("ngModel",e.QtyOfLessons)("disabled",!e.editProduct),y(4),C("ngModel",e.PricePerLesson)("disabled",!e.editProduct),y(4),C("ngModel",e.MaterialCostPerLesson)("disabled",!e.editProduct),y(5),C("ngModel",e.PricePerSemester)("disabled",!e.editProduct),y(6),C("ngModel",e.FixedCostName)("disabled",!e.editProduct),y(3),C("ngModel",e.FixedCostAmount)("disabled",!e.editProduct),y(5),C("ngModel",e.ProfitRatio)("disabled",!e.editProduct),y(3),C("ngIf",""!=e.ProductId),y(1),C("ngIf",""!=e.ProductId)}}let bY=(()=>{class n{constructor(e,r,i,o){this.auth=e,this.toastr=r,this.global=i,this.router=o,this.showProductDetail=!1,this.newProduct=!1,this.editProduct=!1,this.qryTeachersByCName="",this.Department="",this.DepartmentName="",this.ProductId="",this.ProdName="",this.Teacher="",this.QtyOfLessons=1,this.PricePerLesson=500,this.MaterialCostPerLesson=0,this.PricePerSemester=this.QtyOfLessons*this.PricePerLesson,this.FixedCostName="",this.FixedCostAmount=0,this.ProfitRatio=50,this.qryType="ProductId",this.qryString="",this.showQryTeachersByCName=!1,this.QtyOfTeacher=0,this.setLessonDate="",this.LessonDates=[],this.QtyOfLessonDate=0,this.TeacherInThisCourse=[],this.qryDepartment="",this.qryProductId="",this.qryProdName="",this.qryTeacherName="",this.qryDateOfLesson=""}ngOnInit(){this.qryDepartments(),this.qryTeachers(),this.initial()}initial(){this.showProductDetail=!1,this.newProduct=!1,this.editProduct=!1,this.p=null,this.Department="",this.ProductId="",this.ProdName="",this.QtyOfLessons=1,this.PricePerLesson=500,this.MaterialCostPerLesson=0,this.PricePerSemester=this.QtyOfLessons*this.PricePerLesson,this.FixedCostName="",this.FixedCostAmount=0,this.ProfitRatio=50,this.LessonDates=[],this.setLessonDate=""}qryDepartments(){var e=this.global.serverip+"/api/Product/qryDepartments",r={};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.Departments=s,i(!0)},s=>{console.log(s),o(!1)})})}qryTeachers(){var e=this.global.serverip+"/api/Product/qryTeachers",r={};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.Teachers=s,i(!0)},s=>{o(!1)})})}qryTeacherByCName(){var e=this.global.serverip+"/api/Users/qryUserByCName",r={qryCName:this.qryTeacherName};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.showQryTeachersByCName=!0,this.qryTeacherByCNameResult=s,i(!0)},s=>{o(!1)})})}qryCourse(){if(""!=this.qryString){switch(this.qryDepartment="",this.qryProductId="",this.qryProdName="",this.qryTeacherName="",this.qryDateOfLesson="",this.qryType){case"Department":this.qryDepartment=this.qryString;break;case"ProductId":this.qryProductId=this.qryString;break;case"ProductName":this.qryProdName=this.qryString;break;case"TeacherName":this.qryTeacherName=this.qryString;break;case"DateOfLesson":this.qryDateOfLesson=this.qryString}var e=this.global.serverip+"/api/Product/qryCourse",r={Department:this.qryDepartment,ProductId:this.qryProductId,ProdName:this.qryProdName,TeacherName:this.qryTeacherName,DateOfLesson:this.qryDateOfLesson};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d"),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u8ab2\u7a0b\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),this.Products=s,i(!0)},s=>{o(!1)})})}}setProduct(e){this.p=e,this.showProductDetail=!0,this.ProductId=e.ProductId,this.ProdName=e.ProdName,this.Department=e.DepartmentId,this.DepartmentName=e.DepartmentName,this.QtyOfLessons=e.QtyOfLessons,this.PricePerLesson=e.PricePerLesson,this.MaterialCostPerLesson=e.MaterialCostPerLesson,this.PricePerSemester=e.PricePerSemester,this.TeacherInThisCourse=e.Teachers,this.LessonDates=e.LessonDates,this.FixedCostName=e.FixedCostName,this.FixedCostAmount=e.FixedCostAmount,this.ProfitRatio=e.ProfitRatio}onKeydown(e){}countPricePerSemester(){this.PricePerSemester=this.QtyOfLessons*this.PricePerLesson}NewProduct(){1!=this.editProduct||""==this.p.ProductId?(this.initial(),this.newProduct=!0,this.editProduct=!0,this.showProductDetail=!0,this.p=new Object,this.p.Department="",this.p.ProductId="",this.p.ProdName="",this.p.Teachers=new Object,this.p.QtyOfLessons=1,this.p.PricePerLesson=1,this.p.MaterialCostPerLesson=0,this.p.PricePerSemester=this.p.QtyOfLessons*this.p.PricePerLesson,this.p.FixedCostName="",this.p.FixedCostAmount=0,this.p.ProfitRatio=50):this.toastr.warning("\u8acb\u5148\u7d50\u675f\u8ab2\u7a0b\u4fee\u6539\u624d\u80fd\u9032\u884c\u65b0\u589e\u8ab2\u7a0b\u8cc7\u6599\uff01")}EditProduct(){this.editProduct=!0}CancelEdit(){!confirm("\u78ba\u5b9a\u8981\u7d50\u675f\u4fee\u6539\u55ce\uff1f")||this.initial()}SaveProduct(){this.editProduct=!1;var e=this.global.serverip+"/api/Product/UpdateCourseMS",r={Department:this.Department,ProductId:this.ProductId,ProdName:this.ProdName,QtyOfLessons:this.QtyOfLessons,PricePerLesson:this.PricePerLesson,MaterialCostPerLesson:this.MaterialCostPerLesson,PricePerSemester:this.PricePerSemester,FixedCostName:this.FixedCostName,FixedCostAmount:this.FixedCostAmount,ProfitRatio:this.ProfitRatio};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.ProductId=s.ProductId,this.qryCourse(),i(!0)},s=>{o(!1)})})}DeleteProduct(){if(null!=this.ProductId&&""!=this.ProductId&&confirm("\u78ba\u5b9a\u8981\u522a\u9664\u8cc7\u6599\u55ce\uff1f")){var r=this.global.serverip+"/api/Product/DeleteCourse",i={ProductId:this.ProductId};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((o,s)=>{this.auth.httpDo(r,i).then(a=>{this.toastr.clear(),this.toastr.info("\u5546\u54c1\u8cc7\u6599\u66f4\u65b0\u6210\u529f"),this.editProduct=!1,this.newProduct=!1,this.initial(),this.qryCourse(),o(!0)},a=>{s(!1)})})}}AddTeacherToCourse(e){if(1!=this.editProduct)return;var r=prompt("\u8acb\u8f38\u5165\u6388\u8ab2\u8001\u5e2b\u65bc\u6b64\u8ab2\u7a0b\u4e2d\u8ddf\u914d\u5408\u7684\u53e6\u5916\u8001\u5e2b\u7684\u5206\u6f64\u6bd4\u4f8b\uff0c\u5168\u90e8\u8acb\u8f38\u5165100","100");if(""==r||null==r||isNaN(Number(r)))return;this.showQryTeachersByCName=!1;let i=new DO;if(i.UserCName=e.UserCName,i.UserProfileId=e.UserProfileId,i.UserTel=e.UserTel,i.ProfitRatio=r,null==this.TeacherInThisCourse.find(l=>l.UserCName==i.UserCName)){var s=this.global.serverip+"/api/Product/AddCourseManagementTeacherOfCourse",a={ProductId:this.ProductId,TeacherUserProfileId:i.UserProfileId,ProfitRatio:i.ProfitRatio};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((l,u)=>{this.auth.httpDo(s,a).then(c=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.TeacherInThisCourse.push(i),this.QtyOfTeacher=this.TeacherInThisCourse.length,l(!0)},c=>{u(!1)})})}}DeleteTheTeacher(e){if(1!=this.editProduct||!confirm("\u8981\u522a\u9664\u8001\u5e2b\u55ce\uff1f"))return;let r=new DO;r.UserCName=e.UserCName,r.UserProfileId=e.UserProfileId,r.UserTel=e.UserTel;var i=this.TeacherInThisCourse.findIndex(a=>a.UserCName==r.UserCName);if(null!=i){var o=this.global.serverip+"/api/Product/deleteCourseManagementTeacherOfCourse",s={ProductId:this.ProductId,TeacherUserProfileId:r.UserProfileId};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((a,l)=>{this.auth.httpDo(o,s).then(u=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.TeacherInThisCourse.splice(i,1),this.QtyOfTeacher=this.TeacherInThisCourse.length,a(!0)},u=>{l(!1)})})}}addLessonDate(){if(1==this.editProduct&&""!=this.setLessonDate&&null==this.LessonDates.find(o=>o.LessonDate==this.setLessonDate)){var r=this.global.serverip+"/api/Product/addLessonDate",i={ProductId:this.ProductId,LessonDate:this.setLessonDate};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((o,s)=>{this.auth.httpDo(r,i).then(a=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f");var l=new p$;l.LessonDate=this.setLessonDate,l.ProductId=this.ProductId,this.LessonDates.push(l),this.LessonDates=this.LessonDates.sort(function(u,c){var d=new Date(u.LessonDate),p=new Date(c.LessonDate);return d<p?-1:d>p?1:0}),this.QtyOfLessonDate=this.LessonDates.length,o(!0)},a=>{s(!1)})})}}deleteLessonDate(e){if(1==this.editProduct&&confirm("\u8981\u522a\u9664\u8ab2\u7a0b\u6642\u9593\u55ce\uff1f")){var r=this.LessonDates.findIndex(s=>s.LessonDate==e);if(r>=0){var i=this.global.serverip+"/api/Product/deleteLessonDate",o={ProductId:this.ProductId,LessonDate:e};return this.toastr.info("\u8cc7\u6599\u66f4\u65b0\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((s,a)=>{this.auth.httpDo(i,o).then(l=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.LessonDates.splice(r,1),this.LessonDates=this.LessonDates.sort(function(u,c){var d=new Date(u.LessonDate),p=new Date(c.LessonDate);return d<p?-1:d>p?1:0}),this.QtyOfLessonDate=this.LessonDates.length,s(!0)},l=>{a(!1)})})}}}gotoProductPage(){}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-course-management"]],decls:50,vars:9,consts:[[1,"tableContainer","tableTotalList"],["colspan","9","align","left"],["class","button wFree",3,"click",4,"ngIf"],[1,"qryData"],[3,"ngModel","ngModelChange"],["value","Department"],["value","ProductId"],["value","ProductName"],["value","TeacherName"],["value","DateOfLesson"],[3,"ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"click"],["class","Data",3,"click","focus","keyup.arrowdown","keyup.arrowup",4,"ngFor","ngForOf"],["class","tableContainer tableEdit",3,"ngClass",4,"ngIf"],[1,"button","wFree",3,"click"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["type","text",3,"ngModel","ngModelChange","keydown.enter"],["value","tTeacher.UserProfileId",4,"ngFor","ngForOf"],["value","tTeacher.UserProfileId"],["type","date",3,"ngModel","ngModelChange"],[1,"Data",3,"click","focus","keyup.arrowdown","keyup.arrowup"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"tableContainer","tableEdit",3,"ngClass"],[1,"ProductDetail"],[1,"commandbuttonrow"],["colspan","3",4,"ngIf"],[3,"ngModel","ngClass","ngModelChange"],[3,"value","selected",4,"ngFor","ngForOf"],["type","text","disabled","",3,"ngModel","ngClass","ngModelChange"],["type","text","disabled","",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","disabled","ngModelChange"],["type","text",2,"width","60px",3,"ngModel","disabled","ngModelChange","change"],["type","text",2,"width","60px",3,"ngModel","disabled","ngModelChange"],["type","text","disabled","",2,"width","60px",3,"ngModel","disabled","ngModelChange"],["colspan","3"],[3,"value","selected"],["type","text","disabled","",2,"width","60px",3,"ngModel","ngModelChange"],[3,"disabled","click"],["class","Teacher",3,"click",4,"ngFor","ngForOf"],[1,"Teacher",3,"click"],["type","date",3,"ngModel","disabled","ngModelChange"],["class","LessonDate",3,"click",4,"ngFor","ngForOf"],[1,"LessonDate",3,"click"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"table")(2,"thead")(3,"tr")(4,"th",1),A(5,KG,2,0,"span",2),A(6,XG,2,0,"span",2),h()(),f(7,"tr")(8,"th",1)(9,"div",3)(10,"span")(11,"select",4),M("ngModelChange",function(o){return r.qryType=o}),f(12,"option",5),g(13,"\u958b\u8ab2\u90e8\u9580"),h(),f(14,"option",6),g(15,"\u8ab2\u7a0b\u7de8\u865f"),h(),f(16,"option",7),g(17,"\u8ab2\u7a0b\u540d\u7a31"),h(),f(18,"option",8),g(19,"\u8b1b\u5e2b"),h(),f(20,"option",9),g(21,"\u4e0a\u8ab2\u65e5\u671f"),h()()(),A(22,JG,2,2,"select",10),A(23,eY,2,1,"span",11),A(24,nY,3,2,"span",11),A(25,rY,2,1,"span",11),f(26,"button",12),M("click",function(){return r.qryCourse()}),g(27,"\u67e5\u8a62"),h()()()(),f(28,"tr")(29,"th"),g(30,"\u9805\u6b21"),h(),f(31,"th"),g(32,"\u958b\u8ab2\u90e8\u9580"),h(),f(33,"th"),g(34,"\u8ab2\u7a0b\u7de8\u865f"),h(),f(35,"th"),g(36,"\u8ab2\u7a0b\u540d\u7a31"),h(),f(37,"th"),g(38,"\u8b1b\u5e2b\u4eba\u6578"),h(),f(39,"th"),g(40,"\u8b1b\u5e2b\u59d3\u540d"),h(),f(41,"th"),g(42,"\u5168\u671f\u7e3d\u5802\u6578"),h(),f(43,"th"),g(44,"\u55ae\u5802\u8ab2\u552e\u50f9"),h(),f(45,"th"),g(46,"\u5168\u671f\u8ab2\u552e\u50f9"),h()()(),f(47,"tbody"),A(48,oY,19,11,"tr",13),h()()(),A(49,vY,54,26,"div",14)),2&e&&(y(5),C("ngIf",!r.newProduct),y(1),C("ngIf",!r.editProduct),y(5),C("ngModel",r.qryType),y(11),C("ngIf","Department"==r.qryType),y(1),C("ngIf","ProductId"==r.qryType||"ProductName"==r.qryType),y(1),C("ngIf","TeacherName"==r.qryType),y(1),C("ngIf","DateOfLesson"==r.qryType),y(23),C("ngForOf",r.Products),y(1),C("ngIf",r.showProductDetail))},dependencies:[Ii,fn,Yt,$n,zn,en,Mn,zt,Ft],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:18px}button[_ngcontent-%COMP%]{font-size:15px;background-color:#e7e7e7}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.Teacher[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#ff0;font-size:20px;height:25px}.Teacher[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#f29c2b;font-size:24px;height:25px}.LessonDate[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#aff256;font-size:20px;height:25px}.LessonDate[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#78bb21;font-size:24px;height:25px}.Warning[_ngcontent-%COMP%]{background-color:red;color:#fff}.Normal[_ngcontent-%COMP%]{background-color:inherit;color:inherit}.visibleTrue[_ngcontent-%COMP%]{display:inline}.visibleFalse[_ngcontent-%COMP%]{display:none}.commandbuttonrow[_ngcontent-%COMP%]{background-color:#fdc969;text-align:right}.commandbuttonrow[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:5px}.w50[_ngcontent-%COMP%]{width:50px}.w100[_ngcontent-%COMP%]{width:100px}.w150[_ngcontent-%COMP%]{width:150px}.w200[_ngcontent-%COMP%]{width:200px}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();function CY(n,t){if(1&n){const e=j();f(0,"span")(1,"select",3),M("ngModelChange",function(i){return T(e),O(P().qryCustomerType=i)}),f(2,"option",7),g(3,"\u59d3\u540d"),h(),f(4,"option",8),g(5,"\u624b\u6a5f\u865f\u78bc"),h()(),f(6,"input",9),M("ngModelChange",function(i){return T(e),O(P().qryCustomer=i)})("keydown.enter",function(){return T(e),O(P().goQryCustomer())}),h()()}if(2&n){const e=P();y(1),C("ngModel",e.qryCustomerType),y(3),C("selected","Tel"===e.qryCustomerType),y(2),C("ngModel",e.qryCustomer)("ngClass",0==e.customers.length?"Warning":"Normal")}}function wY(n,t){if(1&n&&(f(0,"option",14),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.id),y(1),Gt("",e.CName," ",e.Tel,"")}}function PY(n,t){if(1&n){const e=j();f(0,"span")(1,"select",10),M("ngModelChange",function(i){return T(e),O(P().TheCustomer=i)})("change",function(){return T(e),O(P().qryShoppingCart())}),f(2,"option",11),g(3,"\u8acb\u9078\u53d6\u5ba2\u4eba"),h(),A(4,wY,2,3,"option",12),h(),f(5,"button",13),M("click",function(){return T(e),O(P().initial())}),g(6,"\u91cd\u9078"),h()()}if(2&n){const e=P();y(1),C("ngModel",e.TheCustomer)("disabled",null!=e.TheCustomer),y(3),C("ngForOf",e.customers)}}function MY(n,t){if(1&n&&(f(0,"option",14),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.ProductId),y(1),Gt("",e.ProductId," ",e.ProductName,"")}}function DY(n,t){if(1&n){const e=j();f(0,"button",13),M("click",function(){return T(e),O(P(2).ProductReset())}),g(1,"\u91cd\u9078"),h()}}function xY(n,t){if(1&n){const e=j();f(0,"span")(1,"select",10),M("ngModelChange",function(i){return T(e),O(P().TheProduct=i)})("change",function(){return T(e),O(P().setProduct())}),f(2,"option",11),g(3,"\u8acb\u9078\u53d6\u5546\u54c1"),h(),A(4,MY,2,3,"option",12),h(),A(5,DY,2,0,"button",15),h()}if(2&n){const e=P();y(1),C("ngModel",e.TheProduct)("disabled",""!=e.TheProduct),y(3),C("ngForOf",e.Products),y(1),C("ngIf","\u53d6\u6d88\u4fee\u6539"!=e.ProductResetButtonValue)}}function SY(n,t){if(1&n){const e=j();f(0,"span")(1,"span"),g(2,"\u5546\u54c1\u552e\u50f9\uff1a"),h(),f(3,"input",18),M("ngModelChange",function(i){return T(e),O(P(2).StdPrice=i)}),h(),k(4,"br"),f(5,"span"),g(6,"\u8cfc\u8cb7\u6578\u91cf\uff1a"),h(),f(7,"input",18),M("ngModelChange",function(i){return T(e),O(P(2).QtyOfProduct=i)}),h(),k(8,"br"),h()}if(2&n){const e=P(2);y(3),C("ngModel",e.StdPrice),y(4),C("ngModel",e.QtyOfProduct)}}function TY(n,t){if(1&n){const e=j();f(0,"span")(1,"span"),g(2,"\u6574\u671f\u552e\u50f9\uff1a"),h(),f(3,"input",19),M("ngModelChange",function(i){return T(e),O(P(2).PricePerSemester=i)})("change",function(){return T(e),O(P(2).PricePerSemesterChange())}),h(),f(4,"span"),g(5,"\u7e3d\u5802\u6578\uff1a"),h(),f(6,"input",20),M("ngModelChange",function(i){return T(e),O(P(2).QtyOfLessons=i)}),h(),f(7,"span"),g(8,"\u55ae\u5802\u552e\u50f9\uff1a"),h(),f(9,"input",21),M("ngModelChange",function(i){return T(e),O(P(2).PricePerLesson=i)})("change",function(){return T(e),O(P(2).PricePerLessonChange())}),h()()}if(2&n){const e=P(2);y(3),C("ngModel",e.PricePerSemester),y(3),C("ngModel",e.QtyOfLessons),y(3),C("ngModel",e.PricePerLesson)}}function OY(n,t){if(1&n){const e=j();f(0,"button",13),M("click",function(){return T(e),O(P(3).ProductReset())}),g(1,"\u53d6\u6d88\u4fee\u6539"),h()}}function EY(n,t){if(1&n){const e=j();f(0,"span"),g(1," \u5099\u8a3b\uff1a"),f(2,"input",22),M("ngModelChange",function(i){return T(e),O(P(2).note=i)}),h(),f(3,"button",13),M("click",function(){return T(e),O(P(2).AddToCart())}),g(4,"\u5546\u54c1\u78ba\u8a8d"),h(),A(5,OY,2,0,"button",15),h()}if(2&n){const e=P(2);y(2),C("ngModel",e.note),y(3),C("ngIf","\u53d6\u6d88\u4fee\u6539"==e.ProductResetButtonValue)}}function AY(n,t){if(1&n){const e=j();f(0,"span",24),M("click",function(){const o=T(e).$implicit;return O(P(3).deleteLessonDate(o.LessonDate))}),g(1),h()}if(2&n){const e=t.$implicit;y(1),F(e.LessonDate)}}function IY(n,t){if(1&n&&(f(0,"div"),A(1,AY,2,1,"span",23),h()),2&n){const e=P(2);y(1),C("ngForOf",e.LessonDates)}}function kY(n,t){if(1&n&&(f(0,"option",14),g(1),h()),2&n){const e=t.$implicit;Wt("value",e),y(1),F(e)}}function FY(n,t){if(1&n){const e=j();f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),g(12),h(),f(13,"td"),g(14),h(),f(15,"td"),g(16),h(),f(17,"td")(18,"button",13),M("click",function(){const o=T(e).$implicit;return O(P(3).deleteProductInShoppingCart(o.ProductId))}),g(19,"\u522a\u9664"),h(),f(20,"button",13),M("click",function(){const o=T(e).$implicit;return O(P(3).ModifyProduct(o))}),g(21,"\u4fee\u6539"),h()()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.ProductName),y(2),F(e.UnitPrice),y(2),F(e.Qty),y(2),F(e.Amount),y(2),F(e.TaxAmount),y(2),F(e.Amount+e.TaxAmount),y(2),F(e.note)}}function RY(n,t){if(1&n){const e=j();f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td")(8,"button",13),M("click",function(){const o=T(e).$implicit;return O(P(3).deletePayDetail(o))}),g(9,"\u522a\u9664"),h()()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.PayType),y(2),F(e.PayAmount)}}function NY(n,t){if(1&n){const e=j();f(0,"button",13),M("click",function(){return T(e),O(P(3).addCashChangeToPayDetail())}),g(1,"\u627e\u96f6\u5b8c\u6210\uff0c\u78ba\u5b9a\u7d50\u5e33"),h()}}function LY(n,t){if(1&n){const e=j();f(0,"button",13),M("click",function(){return T(e),O(P(3).ConfirmPayment())}),g(1,"\u78ba\u5b9a\u7d50\u5e33"),h()}}function BY(n,t){if(1&n){const e=j();f(0,"div")(1,"div")(2,"span"),g(3,"\u6536\u6b3e\u65b9\u5f0f\uff1a"),h(),f(4,"select",3),M("ngModelChange",function(i){return T(e),O(P(2).PayType=i)}),A(5,kY,2,2,"option",12),h(),f(6,"input",25),M("ngModelChange",function(i){return T(e),O(P(2).PayAmount=i)})("keydown.enter",function(){return T(e),O(P(2).addPayDetail())}),h(),f(7,"button",13),M("click",function(){return T(e),O(P(2).addPayDetail())}),g(8,"\u78ba\u5b9a"),h(),k(9,"br"),h(),f(10,"div")(11,"table")(12,"tr")(13,"td"),g(14,"\u9805\u6b21"),h(),f(15,"td"),g(16,"\u5546\u54c1\u540d\u7a31"),h(),f(17,"td"),g(18,"\u55ae\u50f9"),h(),f(19,"td"),g(20,"\u6578\u91cf"),h(),f(21,"td"),g(22,"\u8907\u50f9"),h(),f(23,"td"),g(24,"\u7a05\u91d1"),h(),f(25,"td"),g(26,"\u5c0f\u8a08"),h(),f(27,"td"),g(28,"\u5099\u8a3b"),h(),k(29,"td"),h(),A(30,FY,22,8,"tr",26),h(),f(31,"table")(32,"tr")(33,"td"),g(34,"\u9805\u6b21"),h(),f(35,"td"),g(36,"\u4ed8\u6b3e\u65b9\u5f0f"),h(),f(37,"td"),g(38,"\u4ed8\u6b3e\u91d1\u984d"),h(),k(39,"td"),h(),A(40,RY,10,3,"tr",26),f(41,"tr"),k(42,"td")(43,"td")(44,"td")(45,"td"),h(),f(46,"tr"),k(47,"td"),f(48,"td"),g(49,"\u8907\u50f9\u5408\u8a08\uff1a"),h(),f(50,"td"),g(51),h(),k(52,"td"),h(),f(53,"tr"),k(54,"td"),f(55,"td"),g(56,"\u7a05\u91d1\u5408\u8a08\uff1a"),h(),f(57,"td"),g(58),h(),k(59,"td"),h(),f(60,"tr"),k(61,"td"),f(62,"td"),g(63,"\u61c9\u6536\u5408\u8a08\uff1a"),h(),f(64,"td"),g(65),h(),k(66,"td"),h(),f(67,"tr"),k(68,"td"),f(69,"td"),g(70,"\u5be6\u6536\u5408\u8a08\uff1a"),h(),f(71,"td"),g(72),h(),k(73,"td"),h(),f(74,"tr"),k(75,"td"),f(76,"td"),g(77,"\u5dee\u984d\u5408\u8a08\uff1a"),h(),f(78,"td")(79,"span",27),g(80),h()(),f(81,"td"),A(82,NY,2,0,"button",15),A(83,LY,2,0,"button",15),h()()()()()}if(2&n){const e=P(2);y(4),C("ngModel",e.PayType),y(1),C("ngForOf",e.PayMethod),y(1),C("ngModel",e.PayAmount),y(24),C("ngForOf",e.ShoppingCart),y(10),C("ngForOf",e.PayDetail),y(11),F(e.TotalAmount),y(7),F(e.TotalTaxAmount),y(7),F(e.TotalPriceShouldPay),y(7),F(e.TotalPayAmount),y(7),C("ngClass",0!=e.TotalDiff?"Warning":"Normal"),y(1),F(e.TotalDiff),y(2),C("ngIf",e.TotalDiff<0),y(1),C("ngIf",e.TotalPayAmount>0&&0==e.TotalDiff)}}function VY(n,t){if(1&n){const e=j();f(0,"span")(1,"span"),g(2,"\u5546\u54c1\u7de8\u865f\uff1a"),h(),f(3,"input",16),M("ngModelChange",function(i){return T(e),O(P().ProductId=i)}),h(),k(4,"br"),f(5,"span"),g(6,"\u5546\u54c1\u540d\u7a31\uff1a"),h(),f(7,"input",17),M("ngModelChange",function(i){return T(e),O(P().ProductName=i)}),h(),k(8,"br"),A(9,SY,9,2,"span",2),A(10,TY,10,3,"span",2),A(11,EY,6,2,"span",2),A(12,IY,2,1,"div",2),A(13,BY,84,13,"div",2),h()}if(2&n){const e=P();y(3),C("ngModel",e.ProductId),y(4),C("ngModel",e.ProductName),y(2),C("ngIf",""!=e.ProductName&&0==e.CourseMS.length),y(1),C("ngIf",""!=e.ProductName&&null!=e.CourseMS),y(1),C("ngIf",""!=e.ProductName&&null!=e.CourseMS),y(1),C("ngIf",null!=e.CourseMS),y(1),C("ngIf",e.ShoppingCart.length>0)}}let UY=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.router=o,this.datePipe=s,this.CheckoutDate=this.datePipe.transform(new Date,"yyyy-MM-dd"),this.qryCustomerType="Tel",this.qryCustomer="",this.customers=[],this.TheCustomer=null,this.qryProductType="ProductId",this.qryProduct="",this.TheProduct="",this.Products=[],this.TotalAmount=0,this.TotalTaxAmount=0,this.ProductResetButtonValue="\u91cd\u9078",this.ProductId="",this.ProductName="",this.StdPrice=0,this.StdPriceHadIncludeTax="0",this.UnitPrice=0,this.QtyOfProduct=1,this.Amount=0,this.TaxAmount=0,this.CourseMS=null,this.PricePerLesson=0,this.PricePerSemester=0,this.QtyOfLessons=0,this.LessonDates=null,this.CustomerOrderId="",this.note="",this.PayMethod=["\u4fe1\u7528\u5361","LinePay","\u8857\u53e3\u652f\u4ed8","PayPal","\u73fe\u91d1","\u6298\u50f9\u5377","\u7279\u6b8a\u6298\u6263"],this.PayDetail=[],this.PayType="\u73fe\u91d1",this.PayAmount=0,this.TotalPriceShouldPay=0,this.TotalPayAmount=0,this.TotalDiff=0,this.CustomerPaymentBillId=""}ngOnInit(){this.initial()}initial(){this.CheckoutDate=this.datePipe.transform(new Date,"yyyy-MM-dd"),this.CustomerReset(),this.ProductReset(),this.ShoppingCart=null,this.PayDetail=[],this.TotalAmount=0,this.TotalTaxAmount=0,this.TotalPriceShouldPay=0,this.TotalPayAmount=0,this.TotalDiff=0}CustomerReset(){this.qryCustomer="",this.TheCustomer=null,this.customers=[]}ProductReset(){this.qryProduct="",this.TheProduct="",this.Products=[],this.ProductId="",this.ProductName="",this.StdPrice=0,this.QtyOfProduct=1,this.CourseMS=[],this.PricePerSemester=0,this.PricePerLesson=0,this.QtyOfLessons=0,this.LessonDates=[],this.ProductResetButtonValue="\u91cd\u9078",this.note=""}goQryCustomer(){if(""!=this.qryCustomer){var e=this.global.serverip+"/api/CheckoutCounter/qryCustomer",r={qryCustomerType:this.qryCustomerType,qryCustomer:this.qryCustomer};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u67e5\u8a62\u6210\u529f"),this.customers=s,1==this.customers.length&&(this.TheCustomer=this.customers[0].id,this.qryShoppingCart()),i(!0)},s=>{o(!1)})})}}checkBuyer(){if(null==this.TheCustomer)return this.toastr.warning("\u8acb\u5148\u9078\u53d6\u7d50\u5e33\u5ba2\u4eba"),void(this.qryProduct="")}goQryProduct(){if(""!=this.qryProduct){var e=this.global.serverip+"/api/CheckoutCounter/qryProduct",r={qryProductType:this.qryProductType,qryProduct:this.qryProduct};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u67e5\u8a62\u6210\u529f"),this.Products=s,console.log(this.Products),1==this.Products.length&&(this.TheProduct=this.Products[0].id),i(!0)},s=>{o(!1)})})}}setProduct(){var e=this.Products.find(r=>r.ProductId==this.TheProduct);this.ProductId=e.ProductId,this.ProductName=e.ProductName,this.StdPrice=e.stdPrice,this.StdPriceHadIncludeTax=e.StdPriceHadIncludeTax,this.CourseMS=e.CourseMS[0],null!=this.CourseMS&&(this.PricePerLesson=this.CourseMS.PricePerLesson,this.PricePerSemester=this.CourseMS.PricePerSemester,this.QtyOfLessons=this.CourseMS.QtyOfLessons,this.LessonDates=this.CourseMS.LessonDates,this.StdPrice=this.PricePerSemester)}deleteLessonDate(e){if(confirm("\u78ba\u5b9a\u8981\u522a\u9664\u9019\u500b\u65e5\u671f\u55ce\uff1f")){var i=this.LessonDates.findIndex(o=>o.LessonDate==e);i>=0&&(this.LessonDates.splice(i,1),this.QtyOfLessons=this.LessonDates.length,this.countPricePerSemester())}}countPricePerSemester(){this.PricePerSemester=this.QtyOfLessons*this.PricePerLesson,this.UnitPrice=this.PricePerSemester,this.StdPrice=this.UnitPrice}qryShoppingCart(){if(null!=this.TheCustomer&&null!=this.TheCustomer){var e=this.global.serverip+"/api/ShoppingCart/qryShoppingCart",r={CustomerRowId:this.TheCustomer};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.info("\u67e5\u8a62\u6210\u529f"),this.ShoppingCart=s.CustomerOrderDS,this.TotalAmount=0,this.TotalTaxAmount=0;for(var a=0;a<this.ShoppingCart.length;a++)this.TotalAmount+=this.ShoppingCart[a].Amount,this.TotalTaxAmount+=this.ShoppingCart[a].TaxAmount;this.TotalPriceShouldPay=this.TotalAmount+this.TotalTaxAmount,i(!0)},s=>{o(!1)})})}}AddToCart(){if(null!=this.TheCustomer){var e=this.global.serverip+"/api/ShoppingCart/addToCart";this.UnitPrice=0,this.UnitPrice="0"==this.StdPriceHadIncludeTax?this.StdPrice:this.StdPrice/1.05,this.Amount=this.QtyOfProduct*this.UnitPrice,this.TaxAmount=.05*this.Amount;var r={ProductId:this.TheProduct,Qty:this.QtyOfProduct,UnitPrice:this.StdPrice,Amount:this.Amount,TaxAmount:this.TaxAmount,CustomerRowId:this.TheCustomer,note:this.note};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{for(var a=this.global.serverip+"/api/ShoppingCart/addDateLessonsToShoppingCartCourseDS",l=[],u=0;u<this.LessonDates.length;u++)l.push(this.LessonDates[u].LessonDate);var d={CustomerRowId:this.TheCustomer,ProductId:this.TheProduct,LessonDates:l,PricePerLesson:this.PricePerLesson};return new Promise((p,m)=>{this.auth.httpDo(a,d).then(_=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.ProductReset(),this.qryShoppingCart(),p(!0)},_=>{m(!1)})})},s=>{o(!1)})})}}deleteProductInShoppingCart(e){if(null!=this.TheCustomer&&null!=e&&confirm("\u8981\u522a\u9664\u6b64\u9078\u8cfc\u5546\u54c1\u55ce\uff1f")){var r=this.global.serverip+"/api/ShoppingCart/deleteItem",i={CustomerRowId:this.TheCustomer,ProductId:e};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((o,s)=>{this.auth.httpDo(r,i).then(a=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.qryShoppingCart(),o(!0)},a=>{s(!1)})})}}ModifyProduct(e){this.ProductResetButtonValue="\u53d6\u6d88\u4fee\u6539",this.qryProductType="ProductId",this.qryProduct=e.ProductId,new Promise((s,a)=>{var l;null===(l=this.goQryProduct())||void 0===l||l.then(u=>{this.TheProduct=e.ProductId;var c=this.Products.find(d=>d.ProductId==this.TheProduct);this.ProductId=e.ProductId,this.ProductName=e.ProductName,this.note=e.note,this.StdPriceHadIncludeTax=c.StdPriceHadIncludeTax,this.CourseMS=c.CourseMS[0],this.PricePerSemester="1"==this.StdPriceHadIncludeTax?e.Amount+e.TaxAmount:e.Amount,this.PricePerLesson=this.PricePerSemester/this.QtyOfLessons,this.StdPrice=this.PricePerSemester})});var i=this.global.serverip+"/api/ShoppingCart/qryShoppingCartCourseDS",o={CustomerRowId:this.TheCustomer,ProductId:e.ProductId};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((s,a)=>{this.auth.httpDo(i,o).then(l=>{this.toastr.clear(),this.toastr.info("\u66f4\u65b0\u6210\u529f"),this.LessonDates=l,this.QtyOfLessons=this.LessonDates.length,s(!0)},l=>{a(!1)})})}PricePerSemesterChange(){this.PricePerLesson=this.PricePerSemester/this.QtyOfLessons,this.StdPrice=this.PricePerSemester}PricePerLessonChange(){this.PricePerSemester=this.PricePerLesson*this.QtyOfLessons,this.StdPrice=this.PricePerSemester}addPayDetail(){if(0!=this.PayAmount&&null!=this.PayAmount&&null!=this.PayAmount){var e=new g$;e.PayType=this.PayType,e.PayAmount=this.PayAmount,this.PayDetail.push(e),this.countTotalPayAmount(),this.PayAmount=0}}deletePayDetail(e){if(confirm("\u8981\u522a\u9664\u6b64\u9805\u4ed8\u6b3e\u65b9\u5f0f\u55ce\uff1f")){var r=this.PayDetail.findIndex(i=>i.PayType==e.PayType&&i.PayAmount==e.PayAmount);r>=0&&this.PayDetail.splice(r,1),this.countTotalPayAmount()}}countTotalPayAmount(){this.TotalPayAmount=0;for(var e=0;e<this.PayDetail.length;e++)this.TotalPayAmount+=this.PayDetail[e].PayAmount;this.TotalDiff=this.TotalPriceShouldPay-this.TotalPayAmount}addCashChangeToPayDetail(){this.PayType="\u627e\u96f6",this.PayAmount=this.TotalDiff,this.addPayDetail()}ConfirmPayment(){confirm("\u78ba\u8a8d\u7d50\u5e33\u55ce\uff1f")&&new Promise((r,i)=>{this.CreateCustomerPaymentMS().then(o=>{this.CreateCustomerPaymentDS(),this.CreateCustomerOrderMS()})})}CreateCustomerPaymentMS(){var e=this.global.serverip+"/api/CheckoutCounter/CreateCustomerPaymentMS",r={CustomerRowId:this.TheCustomer,CheckoutDate:this.CheckoutDate,TotalPayAmount:this.TotalPayAmount,TotalAmount:this.TotalAmount,TotalTaxAmount:this.TotalTaxAmount};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.CustomerPaymentBillId=s,i(!0)},s=>{o(!1)})})}CreateCustomerPaymentDS(){for(var e=this.global.serverip+"/api/CheckoutCounter/CreateCustomerPaymentDS",r=[],i=[],o=0;o<this.PayDetail.length;o++)r.push(this.PayDetail[o].PayType),i.push(this.PayDetail[o].PayAmount);var l={CustomerPaymentBillId:this.CustomerPaymentBillId,PayTypeArray:r,PayAmountArray:i};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((u,c)=>{this.auth.httpDo(e,l).then(d=>{u(!0)},d=>{c(!1)})})}CreateCustomerOrderMS(){var e=this.global.serverip+"/api/CheckoutCounter/CreateCustomerOrderMS",r={CustomerRowId:this.TheCustomer,CheckoutDate:this.CheckoutDate,TotalPayAmount:this.TotalPayAmount,TotalAmount:this.TotalAmount,TotalTaxAmount:this.TotalTaxAmount,CustomerPaymentBillId:this.CustomerPaymentBillId};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.CustomerOrderId=s,"false"!=this.CustomerOrderId?(this.toastr.info("\u7d50\u5e33\u5df2\u5b8c\u6210"),this.initial()):this.toastr.warning("\u7d50\u5e33\u5931\u6557\uff01"),i(!0)},s=>{o(!1)})})}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(Me),S(rr))},n.\u0275cmp=Fe({type:n,selectors:[["app-checkout-counter"]],decls:22,vars:9,consts:[[1,"tableContainer","CheckoutCounter"],["type","date",3,"ngModel","ngModelChange"],[4,"ngIf"],[3,"ngModel","ngModelChange"],["value","ProductId",3,"selected"],["value","ProductName"],["type","text",3,"ngModel","ngClass","ngModelChange","keyup","keydown.enter"],["value","CName"],["value","Tel",3,"selected"],["type","text",3,"ngModel","ngClass","ngModelChange","keydown.enter"],[3,"ngModel","disabled","value","ngModelChange","change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"click"],[3,"value"],[3,"click",4,"ngIf"],["type","'text","disabled","",3,"ngModel","ngModelChange"],["type","text","disabled","",3,"ngModel","ngModelChange"],["type","number",3,"ngModel","ngModelChange"],["type","number",3,"ngModel","ngModelChange","change"],["type","number","disabled","",1,"w50",3,"ngModel","ngModelChange"],["type","number",1,"w100",3,"ngModel","ngModelChange","change"],["type","text",1,"w150",3,"ngModel","ngModelChange"],["class","LessonDate",3,"click",4,"ngFor","ngForOf"],[1,"LessonDate",3,"click"],["type","number",3,"ngModel","ngModelChange","keydown.enter"],[4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"table")(2,"thead")(3,"tr")(4,"td"),g(5," \u7d50\u5e33\u65e5\u671f\uff1a"),f(6,"input",1),M("ngModelChange",function(o){return r.CheckoutDate=o}),h(),g(7," \u7d50\u5e33\u5ba2\u4eba\uff1a "),A(8,CY,7,4,"span",2),A(9,PY,7,3,"span",2),k(10,"br"),g(11," \u8cfc\u8cb7\u5546\u54c1\uff1a "),f(12,"span")(13,"select",3),M("ngModelChange",function(o){return r.qryProductType=o}),f(14,"option",4),g(15,"\u5546\u54c1\u7de8\u865f"),h(),f(16,"option",5),g(17,"\u5546\u54c1\u540d\u7a31"),h()(),f(18,"input",6),M("ngModelChange",function(o){return r.qryProduct=o})("keyup",function(){return r.checkBuyer()})("keydown.enter",function(){return r.goQryProduct()}),h()(),A(19,xY,6,4,"span",2),k(20,"br"),A(21,VY,14,7,"span",2),h()()()()()),2&e&&(y(6),C("ngModel",r.CheckoutDate),y(2),C("ngIf",null==r.TheCustomer),y(1),C("ngIf",r.customers.length>0),y(4),C("ngModel",r.qryProductType),y(1),C("selected","ProductId"===r.qryProductType),y(4),C("ngModel",r.qryProduct)("ngClass",0==r.Products.length?"Warning":null!=r.TheProduct?"visibleFalse":"Normal"),y(1),C("ngIf",r.Products.length>0),y(2),C("ngIf",""!=r.TheProduct||null!=r.ShoppingCart))},dependencies:[Ii,fn,Yt,$n,zn,en,z_,Mn,zt,Ft],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:18px}button[_ngcontent-%COMP%]{font-size:15px;background-color:#e7e7e7;margin-right:15px}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.Teacher[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#ff0;font-size:20px;height:25px}.Teacher[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#f29c2b;font-size:24px;height:25px}.LessonDate[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#aff256;font-size:20px;height:25px}.LessonDate[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#78bb21;font-size:24px;height:25px}.Warning[_ngcontent-%COMP%]{background-color:red;color:#fff}.Normal[_ngcontent-%COMP%]{background-color:inherit;color:inherit}.visibleTrue[_ngcontent-%COMP%]{display:inline}.visibleFalse[_ngcontent-%COMP%]{display:none}.w50[_ngcontent-%COMP%]{width:50px}.w100[_ngcontent-%COMP%]{width:100px}.w150[_ngcontent-%COMP%]{width:150px}.w200[_ngcontent-%COMP%]{width:200px}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.CheckoutCounter[_ngcontent-%COMP%]{font-size:24px;font-weight:700}select[_ngcontent-%COMP%]:disabled{color:#00008b;background-color:#ff0}input[_ngcontent-%COMP%]:disabled{color:#00008b;background:yellow}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();function jY(n,t){if(1&n){const e=j();f(0,"tr",12),M("click",function(){const o=T(e).$implicit;return O(P(2).showCustomerOrderDS(o))}),f(1,"td"),g(2),h(),f(3,"td"),g(4),k(5,"br"),g(6),h(),f(7,"td"),g(8),k(9,"br"),g(10),h(),f(11,"td"),g(12),h(),f(13,"td"),g(14),h(),f(15,"td"),g(16),h(),f(17,"td"),g(18),k(19,"br"),g(20),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.CustomerOrderId),y(2),F(e.OrderDate),y(2),F(e.CustomerCname),y(2),F(e.CustomerTel),y(2),F(e.OrderAmount),y(2),F(e.TaxAmount),y(2),F(e.TotalAmount),y(2),Gt("",e.TradeBy,":",e.TradeNo,""),y(2),F(e.Status)}}function HY(n,t){if(1&n){const e=j();f(0,"table")(1,"thead")(2,"tr")(3,"td",2),g(4," \u67e5\u8a62\u7a2e\u985e\uff1a"),f(5,"select",3),M("ngModelChange",function(i){return T(e),O(P().qryType=i)}),f(6,"option",4),g(7,"\u8a02\u55ae\u7de8\u865f"),h(),f(8,"option",5),g(9,"\u5ba2\u4eba\u59d3\u540d"),h(),f(10,"option",6),g(11,"\u5ba2\u4eba\u96fb\u8a71"),h(),f(12,"option",7),g(13,"\u8a02\u55ae\u91d1\u984d"),h(),f(14,"option",8),g(15,"\u5546\u54c1\u7de8\u865f"),h()(),f(16,"input",9),M("ngModelChange",function(i){return T(e),O(P().qryString=i)})("keydown.enter",function(){return T(e),O(P().qryCustomerOrders())}),h(),f(17,"button",10),M("click",function(){return T(e),O(P().qryCustomerOrders())}),g(18,"\u67e5\u8a62"),h()()(),f(19,"tr")(20,"td"),g(21,"\u9805\u6b21"),h(),f(22,"td"),g(23,"\u8a02\u55ae\u7de8\u865f"),k(24,"br"),g(25,"\u8a02\u55ae\u65e5\u671f"),h(),f(26,"td"),g(27,"\u8a02\u8cfc\u4eba"),h(),f(28,"td"),g(29,"\u672a\u7a05\u91d1\u984d"),h(),f(30,"td"),g(31,"\u7a05\u91d1"),h(),f(32,"td"),g(33,"\u8a02\u55ae\u91d1\u984d"),h(),f(34,"td"),g(35,"\u7d50\u5e33\u72c0\u614b"),h()()(),f(36,"tbody"),A(37,jY,21,11,"tr",11),h()()}if(2&n){const e=P();y(5),C("ngModel",e.qryType),y(11),C("ngModel",e.qryString),y(21),C("ngForOf",e.CustomerOrders)}}function $Y(n,t){1&n&&(f(0,"span",19),g(1,"\u672a\u4ed8\u6b3e"),h())}function zY(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h()()),2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.PayType),y(2),F(e.PayAmount)}}function qY(n,t){if(1&n&&(f(0,"table",20)(1,"tr")(2,"td"),g(3,"\u9805\u6b21"),h(),f(4,"td"),g(5,"\u4ed8\u6b3e\u65b9\u5f0f"),h(),f(6,"td"),g(7,"\u4ed8\u6b3e\u91d1\u984d"),h()(),A(8,zY,7,3,"tr",21),h()),2&n){const e=P(2);y(8),C("ngForOf",e.CustomerPaymentDS)}}function WY(n,t){if(1&n&&(f(0,"span",24),g(1),h()),2&n){const e=t.$implicit;y(1),Gt("",e.LessonDate,":$",e.PricePerLesson,"")}}function GY(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),g(12),h(),f(13,"td"),g(14),h(),f(15,"td"),g(16),h(),f(17,"td"),A(18,WY,2,2,"span",23),h()()),2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.ProductName),y(2),F(e.UnitPrice),y(2),F(e.Qty),y(2),F(e.Amount),y(2),F(e.TaxAmount),y(2),F(e.Amount+e.TaxAmount),y(2),F(e.note),y(2),C("ngForOf",e.CourseDS)}}function YY(n,t){if(1&n&&(f(0,"table",22)(1,"tr")(2,"td"),g(3,"\u9805\u6b21"),h(),f(4,"td"),g(5,"\u5546\u54c1\u540d\u7a31"),h(),f(6,"td"),g(7,"\u55ae\u50f9"),h(),f(8,"td"),g(9,"\u6578\u91cf"),h(),f(10,"td"),g(11,"\u8907\u50f9"),h(),f(12,"td"),g(13,"\u7a05\u91d1"),h(),f(14,"td"),g(15,"\u5c0f\u8a08"),h(),f(16,"td"),g(17,"\u5099\u8a3b"),h(),k(18,"td"),h(),A(19,GY,19,9,"tr",21),h()),2&n){const e=P(2);y(19),C("ngForOf",e.CustomerOrderDS)}}const ME=function(){return[]};function QY(n,t){if(1&n){const e=j();f(0,"div",13)(1,"h1",14),g(2,"\u8a02\u55ae\u660e\u7d30"),h(),f(3,"p",15)(4,"button",10),M("click",function(){return T(e),O(P().CustomerOrderReset())}),g(5,"\u95dc\u9589\u8a02\u55ae\u660e\u7d30"),h()(),f(6,"table")(7,"tr")(8,"td"),g(9),k(10,"br"),g(11),k(12,"br"),g(13),ii(14,"date"),k(15,"br"),g(16),k(17,"br"),g(18),k(19,"br"),g(20),k(21,"br"),g(22," \u4ed8\u6b3e\u6b3e\u72c0\u614b\uff1a"),A(23,$Y,2,0,"span",16),g(24),h()()(),A(25,qY,9,1,"table",17),A(26,YY,20,1,"table",18),h()}if(2&n){const e=P();y(6),Ir("\u4ed8\u6b3e\u5b8c\u6210"==e.CustomerOrderMS.Status?"DS1":"Warning"),y(3),ze(" \u8a02\u55ae\u7de8\u865f\uff1a",e.CustomerOrderMS.CustomerOrderId,""),y(2),Gt(" \u8a02\u8cfc\u4eba\uff1a",e.CustomerOrderMS.CustomerUserCName,"",e.CustomerOrderMS.CustomerTel,""),y(2),ze(" \u8a02\u55ae\u65e5\u671f\uff1a",oi(14,15,e.CustomerOrderMS.CustomerOrderDate,"yyyy-MM-dd"),""),y(3),ze(" \u91d1\u984d\uff1a$",e.CustomerOrderMS.Amount,""),y(2),ze(" \u7a05\u91d1\uff1a$",e.CustomerOrderMS.TaxAmount,""),y(2),ze(" \u5408\u8a08\uff1a$",e.CustomerOrderMS.TotalAmount,""),y(3),C("ngIf","\u4ed8\u6b3e\u5b8c\u6210"!=e.CustomerOrderMS.Status),y(1),Ei("",e.CustomerOrderMS.Status,", ",e.CustomerOrderMS.TradeBy,", ",e.CustomerOrderMS.TradeNo," "),y(1),C("ngIf",null!=e.CustomerPaymentDS&&e.CustomerPaymentDS!=et(18,ME)),y(1),C("ngIf",null!=e.CustomerOrderDS&&e.CustomerOrderDS!=et(19,ME))}}let KY=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.router=o,this.datePipe=s,this.qryType="\u8a02\u55ae\u7de8\u865f",this.qryString=""}ngOnInit(){}qryCustomerOrders(){var e=this.global.serverip+"/api/Orders/qryOrders",r={qryType:this.qryType,qryString:this.qryString};return this.toastr.info("\u66f4\u65b0\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.CustomerOrders=s,this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),i(!0)},s=>{o(!1)})})}showCustomerOrderDS(e){this.CustomerOrderMS=e;var r=this.global.serverip+"/api/Orders/qryOrderDetail",i={CustomerOrderId:e.CustomerOrderId};return this.toastr.info("\u67e5\u8a62\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((o,s)=>{this.auth.httpDo(r,i).then(a=>{console.log(a),this.CustomerOrderMS=a.CustomerOrderMS,this.CustomerOrderDS=a.CustomerOrderDS,this.CustomerPaymentDS=a.CustomerPaymentDS,this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),o(!0)},a=>{s(!1)})})}CustomerOrderReset(){this.CustomerOrderMS=null,this.CustomerOrderDS=null,this.CustomerPaymentDS=null}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(Me),S(rr))},n.\u0275cmp=Fe({type:n,selectors:[["app-customer-orders"]],decls:3,vars:2,consts:[[4,"ngIf"],["class","OrderDS",4,"ngIf"],["colspan","8"],[3,"ngModel","ngModelChange"],["value","\u8a02\u55ae\u7de8\u865f"],["value","\u5ba2\u4eba\u59d3\u540d"],["value","\u5ba2\u4eba\u96fb\u8a71"],["value","\u8a02\u55ae\u91d1\u984d"],["value","\u5546\u54c1\u7de8\u865f"],["type","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["class","Data",3,"click",4,"ngFor","ngForOf"],[1,"Data",3,"click"],[1,"OrderDS"],["align","center"],["align","right"],["Class","Warning BigFont",4,"ngIf"],["class","DS2",4,"ngIf"],["class","DS3",4,"ngIf"],["Class","Warning BigFont"],[1,"DS2"],[4,"ngFor","ngForOf"],[1,"DS3"],["class","LessonDate",4,"ngFor","ngForOf"],[1,"LessonDate"]],template:function(e,r){1&e&&(f(0,"div"),A(1,HY,38,3,"table",0),h(),A(2,QY,27,20,"div",1)),2&e&&(y(1),C("ngIf",null==r.CustomerOrderDS),y(1),C("ngIf",null!=r.CustomerOrderDS))},dependencies:[fn,Yt,$n,zn,en,Mn,zt,Ft,rr],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:18px}button[_ngcontent-%COMP%]{font-size:15px;background-color:#e7e7e7;margin-right:15px}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.Teacher[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#ff0;font-size:20px;height:25px}.Teacher[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#f29c2b;font-size:24px;height:25px}.LessonDate[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#aff256;font-size:20px;height:25px}.Warning[_ngcontent-%COMP%]{background-color:red;color:#fff}.BigFont[_ngcontent-%COMP%]{font-size:72px;font-weight:700}.Normal[_ngcontent-%COMP%]{background-color:inherit;color:inherit}.visibleTrue[_ngcontent-%COMP%]{display:inline}.visibleFalse[_ngcontent-%COMP%]{display:none}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.CheckoutCounter[_ngcontent-%COMP%]{font-size:24px;font-weight:700}select[_ngcontent-%COMP%]:disabled{color:#00008b;background-color:#ff0}input[_ngcontent-%COMP%]:disabled{color:#00008b;background:yellow}.OrderDS[_ngcontent-%COMP%]{font-size:20px}.DS1[_ngcontent-%COMP%]{background-color:#caf6ca}.DS2[_ngcontent-%COMP%]{background-color:#d1edf6}.DS3[_ngcontent-%COMP%]{background-color:#fafad2}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();function XY(n,t){if(1&n){const e=j();f(0,"tr",3),M("click",function(){const o=T(e).$implicit;return O(P(2).editUser(o))}),f(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),g(10),h(),f(11,"td"),g(12),h(),f(13,"td"),g(14),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.Cname),y(2),F(e.Tel),y(2),F(e.Email),y(2),F(e.Lineid),y(2),F(e.Fbname),y(2),F(e.Address)}}function ZY(n,t){if(1&n){const e=j();f(0,"div")(1,"table")(2,"thead")(3,"tr")(4,"td",2)(5,"button",3),M("click",function(){return T(e),O(P().NewUser())}),g(6,"\u65b0\u589e\u6703\u54e1"),h(),g(7," \u67e5\u8a62\u7a2e\u985e\uff1a"),f(8,"select",4),M("ngModelChange",function(i){return T(e),O(P().qryType=i)}),f(9,"option",5),g(10,"\u6703\u54e1\u59d3\u540d"),h(),f(11,"option",6),g(12,"\u6703\u54e1\u96fb\u8a71"),h()(),f(13,"input",7),M("ngModelChange",function(i){return T(e),O(P().qryString=i)})("keydown.enter",function(){return T(e),O(P().qryCustomers())}),h(),f(14,"button",3),M("click",function(){return T(e),O(P().qryCustomers())}),g(15,"\u67e5\u8a62"),h()()(),f(16,"tr")(17,"td"),g(18,"\u9805\u6b21"),h(),f(19,"td"),g(20,"\u6703\u54e1\u59d3\u540d"),h(),f(21,"td"),g(22,"\u6703\u54e1\u96fb\u8a71"),h(),f(23,"td"),g(24,"email"),h(),f(25,"td"),g(26,"LineId"),h(),f(27,"td"),g(28,"\u81c9\u66f8\u540d\u7a31"),h(),f(29,"td"),g(30,"\u90f5\u5bc4\u5730\u5740"),h()()(),f(31,"tbody"),A(32,XY,15,7,"tr",8),h()()()}if(2&n){const e=P();y(8),C("ngModel",e.qryType),y(5),C("ngModel",e.qryString),y(19),C("ngForOf",e.Customers)}}function JY(n,t){1&n&&k(0,"span",18)}function eQ(n,t){1&n&&k(0,"img",19)}function tQ(n,t){1&n&&k(0,"img",20)}function nQ(n,t){1&n&&k(0,"span",18)}function rQ(n,t){1&n&&k(0,"img",19)}function iQ(n,t){1&n&&k(0,"img",20)}function oQ(n,t){if(1&n){const e=j();f(0,"div",9)(1,"span"),g(2,"\u6703\u54e1\u7de8\u865f\uff1a"),f(3,"input",10),M("ngModelChange",function(i){return T(e),O(P().UserId=i)}),h()(),k(4,"br"),f(5,"span"),g(6,"\u6703\u54e1\u59d3\u540d\uff1a"),f(7,"input",11),M("ngModelChange",function(i){return T(e),O(P().Cname=i)}),h()(),f(8,"span",12),g(9,"*"),h(),k(10,"br"),A(11,JY,1,0,"span",13),A(12,eQ,1,0,"img",14),A(13,tQ,1,0,"img",15),f(14,"span"),g(15,"\u96fb\u8a71\uff1a"),f(16,"input",16),M("ngModelChange",function(i){return T(e),O(P().Tel=i)})("keyup",function(){return T(e),O(P().chkTel())}),h()(),f(17,"span",12),g(18,"*"),h(),k(19,"br"),A(20,nQ,1,0,"span",13),A(21,rQ,1,0,"img",14),A(22,iQ,1,0,"img",15),f(23,"span"),g(24,"Email\uff1a"),f(25,"input",16),M("ngModelChange",function(i){return T(e),O(P().Email=i)})("keyup",function(){return T(e),O(P().chkEmail())}),h()(),k(26,"br"),f(27,"span"),g(28,"Lineid\uff1a"),f(29,"input",11),M("ngModelChange",function(i){return T(e),O(P().Lineid=i)}),h()(),k(30,"br"),f(31,"span"),g(32,"\u81c9\u66f8\u540d\u7a31\uff1a"),f(33,"input",11),M("ngModelChange",function(i){return T(e),O(P().Fbname=i)}),h()(),k(34,"br"),f(35,"span"),g(36,"\u90f5\u5bc4\u5730\u5740\uff1a"),f(37,"input",11),M("ngModelChange",function(i){return T(e),O(P().Address=i)}),h()(),k(38,"br")(39,"br"),f(40,"button",3),M("click",function(){return T(e),O(P().resetUser())}),g(41,"\u53d6\u6d88\u4fee\u6539"),h(),f(42,"button",3),M("click",function(){return T(e),O(P().UserProfileUpdateByUserId())}),g(43,"\u78ba\u5b9a\u5b58\u6a94"),h(),f(44,"p",17)(45,"span",12),g(46,"* \u70ba\u5fc5\u9808\u586b\u5beb\u8cc7\u6599"),h()()()}if(2&n){const e=P();y(3),C("ngModel",e.UserId),y(4),C("ngModel",e.Cname),y(4),C("ngIf",!(""!=e.Tel&&e.TelOK||""!=e.Tel&&!e.TelOK)),y(1),C("ngIf",""!=e.Tel&&e.TelOK),y(1),C("ngIf",""!=e.Tel&&!e.TelOK),y(3),C("ngModel",e.Tel),y(4),C("ngIf",!(""!=e.Email&&e.EmailOK||""!=e.Email&&!e.EmailOK)),y(1),C("ngIf",""!=e.Email&&e.EmailOK),y(1),C("ngIf",""!=e.Email&&!e.EmailOK),y(3),C("ngModel",e.Email),y(4),C("ngModel",e.Lineid),y(4),C("ngModel",e.Fbname),y(4),C("ngModel",e.Address)}}let sQ=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.router=o,this.datePipe=s,this.qryType="\u96fb\u8a71",this.qryString="",this.UserId="",this.Cname="",this.Tel="",this.UserName="",this.Password="",this.Email="",this.Lineid="",this.Fbname="",this.Address="",this.EditUser=0,this.UserNameOK=!1,this.EmailOK=!1,this.TelOK=!1}ngOnInit(){this.resetUser()}qryCustomers(){var e=this.global.serverip+"/api/Users/qryUsers",r={qryType:this.qryType,qryString:this.qryString};return this.toastr.info("\u67e5\u8a62\u8cc7\u6599\u4e2d\uff0c\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.Customers=s,console.log(s),this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),i(!0)},s=>{o(!1)})})}editUser(e){this.EditUser=1,this.EmailOK=!0,this.TelOK=!0,this.UserNameOK=!0,this.UserId=e.UserId,this.Cname=e.Cname,this.Tel=e.Tel,this.Email=null!=e.Email?e.Email:"",this.Lineid=null!=e.Lineid?e.Lineid:"",this.Fbname=null!=e.Fbname?e.Fbname:"",this.Address=e.Address}resetUser(){this.EditUser=0,this.EmailOK=!1,this.TelOK=!1,this.UserNameOK=!1,this.UserId="",this.Cname="",this.Tel="",this.UserName="",this.Email="",this.Lineid="",this.Fbname="",this.Address=""}NewUser(){this.EditUser=1}chkTel(){var e=this.global.serverip+"/api/Users/chkTelWithUserId",r={UserId:this.UserId,Tel:this.Tel};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.TelOK=1==s,i(!0)},s=>{o(!1)})})}chkEmail(){var e=this.global.serverip+"/api/Users/chkEmailWithUserId",r={UserId:this.UserId,Email:this.Email};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.EmailOK=1==s,i(!0)},s=>{o(!1)})})}UserProfileUpdateByUserId(){var e=this.global.serverip+"/api/Users/UserProfileUpdateByUserId";if(""!=this.Cname&&null!=this.Cname&&null!=this.Cname&&""!=this.Tel&&0!=this.TelOK){var r={UserId:this.UserId,Email:this.Email,CName:this.Cname,Tel:this.Tel,Address:this.Address,LineId:this.Lineid,FBName:this.Fbname};return this.toastr.info("\u8acb\u7a0d\u5f8c..."),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{1==s?(this.toastr.info("\u4f7f\u7528\u8005\u5b58\u6a94\u6210\u529f"),this.qryCustomers(),this.resetUser()):this.toastr.warning("\u932f\u8aa4\uff01\u8acb\u91cd\u8a66..."),i(!0)},s=>{o(!1)})})}}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(Me),S(rr))},n.\u0275cmp=Fe({type:n,selectors:[["app-customer-management"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","xy-center",4,"ngIf"],["colspan","8"],[3,"click"],[3,"ngModel","ngModelChange"],["value","\u59d3\u540d"],["value","\u96fb\u8a71"],["type","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click",4,"ngFor","ngForOf"],[1,"xy-center"],["type","text","disabled","",1,"TextEdit",3,"ngModel","ngModelChange"],["type","text",1,"TextEdit",3,"ngModel","ngModelChange"],[1,"mustfill"],["style","display:inline-block;width:18px;",4,"ngIf"],["style","width:18px;","src","./assets/images/OK.png",4,"ngIf"],["style","width:18px","src","./assets/images/Not_OK.png",4,"ngIf"],["type","text",1,"TextEdit",3,"ngModel","ngModelChange","keyup"],["align","left"],[2,"display","inline-block","width","18px"],["src","./assets/images/OK.png",2,"width","18px"],["src","./assets/images/Not_OK.png",2,"width","18px"]],template:function(e,r){1&e&&(A(0,ZY,33,3,"div",0),A(1,oQ,47,13,"div",1)),2&e&&(C("ngIf",0==r.EditUser),y(1),C("ngIf",1==r.EditUser))},dependencies:[fn,Yt,$n,zn,en,Mn,zt,Ft],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.TextEdit[_ngcontent-%COMP%]{width:500px}.xy-center[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{float:right}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:18px}button[_ngcontent-%COMP%]{font-size:15px;background-color:#e7e7e7;margin-right:15px}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.Teacher[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#ff0;font-size:20px;height:25px}.Teacher[_ngcontent-%COMP%]:hover{display:inline-block;margin-right:10px;margin-top:10px;background-color:#f29c2b;font-size:24px;height:25px}.LessonDate[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#aff256;font-size:20px;height:25px}.Warning[_ngcontent-%COMP%]{background-color:red;color:#fff}.BigFont[_ngcontent-%COMP%]{font-size:72px;font-weight:700}.Normal[_ngcontent-%COMP%]{background-color:inherit;color:inherit}.visibleTrue[_ngcontent-%COMP%]{display:inline}.visibleFalse[_ngcontent-%COMP%]{display:none}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.CheckoutCounter[_ngcontent-%COMP%]{font-size:24px;font-weight:700}select[_ngcontent-%COMP%]:disabled{color:#00008b;background-color:#ff0}.OrderDS[_ngcontent-%COMP%]{font-size:20px}.DS1[_ngcontent-%COMP%]{background-color:#caf6ca}.DS2[_ngcontent-%COMP%]{background-color:#d1edf6}.DS3[_ngcontent-%COMP%]{background-color:#fafad2}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();const aQ=function(){return["/mgnh/finance/financereport"]};let lQ=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-finance"]],decls:7,vars:2,consts:[[1,"navbar"],[1,"container-mgnh"],[1,"menu"],[3,"routerLink"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li")(4,"a",3),g(5,"\u8ca1\u52d9\u5831\u8868"),h()()()()(),k(6,"router-outlet")),2&e&&(y(4),C("routerLink",et(1,aQ)))},dependencies:[ji,Br],styles:[".navbar[_ngcontent-%COMP%]{background-color:#fff;height:50px;margin-top:5px}.container-mgnh[_ngcontent-%COMP%]{width:100%;margin:0 auto}.logo[_ngcontent-%COMP%]{display:inline;margin-left:100px}.logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0a8cbf;margin-top:1em;margin-bottom:1em;text-decoration:none;line-height:50px;font-size:24px}.logo[_ngcontent-%COMP%] .fa-music[_ngcontent-%COMP%]{color:#0a8cbf;margin-right:1em}.menu[_ngcontent-%COMP%]{float:left;margin-top:0}.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;list-style:none}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;margin-right:0;color:#0a8cbf;text-decoration:none;line-height:50px;padding:0 1em}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#0a8cbf;color:#fff}"]}),n})();const uQ=function(){return["/mgnh/finance/financereport/rpt1"]};let cQ=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Fe({type:n,selectors:[["app-finance-report"]],decls:7,vars:2,consts:[[1,"navbar"],[1,"container-mgnh"],[1,"menu"],[3,"routerLink"]],template:function(e,r){1&e&&(f(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li")(4,"a",3),g(5,"\u8ab2\u7a0b\u8ca1\u52d9\u5206\u6790\u8868"),h()()()()(),k(6,"router-outlet")),2&e&&(y(4),C("routerLink",et(1,uQ)))},dependencies:[ji,Br],styles:[".navbar[_ngcontent-%COMP%]{background-color:#fff;height:50px;margin-top:5px}.container-mgnh[_ngcontent-%COMP%]{width:100%;margin:0 auto}.logo[_ngcontent-%COMP%]{display:inline;margin-left:100px}.logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#0a8cbf;margin-top:1em;margin-bottom:1em;text-decoration:none;line-height:50px;font-size:24px}.logo[_ngcontent-%COMP%] .fa-music[_ngcontent-%COMP%]{color:#0a8cbf;margin-right:1em}.menu[_ngcontent-%COMP%]{float:left;margin-top:0}.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;list-style:none}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;margin-right:0;color:#0a8cbf;text-decoration:none;line-height:50px;padding:0 1em}.menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#0a8cbf;color:#fff}"]}),n})();function dQ(n,t){if(1&n&&(f(0,"option",12),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.UserProfileId),y(1),F(e.CName)}}function fQ(n,t){if(1&n){const e=j();f(0,"select",10),M("ngModelChange",function(i){return T(e),O(P(2).qryString=i)}),k(1,"option"),A(2,dQ,2,2,"option",11),h()}if(2&n){const e=P(2);C("ngModel",e.qryString),y(2),C("ngForOf",e.Teachers)}}function hQ(n,t){if(1&n&&(f(0,"option",12),g(1),h()),2&n){const e=t.$implicit;Wt("value",e.DepartmentId),y(1),F(e.DepartmentName)}}function pQ(n,t){if(1&n){const e=j();f(0,"select",10),M("ngModelChange",function(i){return T(e),O(P(2).qryString=i)}),k(1,"option"),A(2,hQ,2,2,"option",11),h()}if(2&n){const e=P(2);C("ngModel",e.qryString),y(2),C("ngForOf",e.Departments)}}function gQ(n,t){if(1&n&&(f(0,"span",15),g(1),h()),2&n){const e=t.$implicit;y(1),F(e.UserCName)}}function mQ(n,t){if(1&n){const e=j();f(0,"tr",13),M("click",function(){const o=T(e).$implicit;return O(P(2).showRpt1(o))}),f(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),h(),f(7,"td"),g(8),h(),f(9,"td"),A(10,gQ,2,1,"span",14),h(),f(11,"td"),g(12),h()()}if(2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.DepartmentName),y(2),F(e.ProductId),y(2),F(e.ProdName),y(2),C("ngForOf",e.Teachers),y(2),F(e.QtyOfLessons)}}function _Q(n,t){if(1&n){const e=j();f(0,"div")(1,"table")(2,"thead")(3,"tr")(4,"td",2)(5,"h1",3),g(6,"\u5206\u6790\u8868"),h(),g(7," \u67e5\u8a62\u7a2e\u985e\uff1a"),f(8,"select",4),M("ngModelChange",function(i){return T(e),O(P().qryType=i)})("change",function(){return T(e),O(P().qryString="")}),f(9,"option",5),g(10,"\u958b\u8ab2\u8001\u5e2b"),h(),f(11,"option",6),g(12,"\u958b\u8ab2\u90e8\u9580"),h()(),A(13,fQ,3,2,"select",7),A(14,pQ,3,2,"select",7),f(15,"button",8),M("click",function(){return T(e),O(P().qryCourseMS())}),g(16,"\u67e5\u8a62"),h()()(),f(17,"tr")(18,"td"),g(19,"\u9805\u6b21"),h(),f(20,"td"),g(21,"\u958b\u8ab2\u90e8\u9580"),h(),f(22,"td"),g(23,"\u8ab2\u7a0b\u7de8\u865f"),h(),f(24,"td"),g(25,"\u8ab2\u7a0b\u540d\u7a31"),h(),f(26,"td"),g(27,"\u5e36\u9818\u8001\u5e2b"),h(),f(28,"td"),g(29,"\u8ab2\u7a0b\u6b21\u6578"),h()()(),f(30,"tbody"),A(31,mQ,13,6,"tr",9),h()()()}if(2&n){const e=P();y(8),C("ngModel",e.qryType),y(5),C("ngIf","\u958b\u8ab2\u8001\u5e2b"==e.qryType),y(1),C("ngIf","\u958b\u8ab2\u90e8\u9580"==e.qryType),y(17),C("ngForOf",e.Products)}}function yQ(n,t){if(1&n){const e=j();f(0,"p",3)(1,"a",25),M("click",function(){return T(e),O(P(2).gotoBefore())}),g(2,"\u524d\u4e00\u500b\u6708"),h(),f(3,"a",25),M("click",function(){return T(e),O(P(2).gotoNow())}),g(4,"\u56de\u5230\u7576\u6708"),h(),f(5,"a",25),M("click",function(){return T(e),O(P(2).gotoAfter())}),g(6,"\u4e0b\u4e00\u500b\u6708"),h()()}}function vQ(n,t){if(1&n){const e=j();f(0,"p",26)(1,"button",8),M("click",function(){return T(e),O(P(2).goPrint())}),g(2,"\u5217\u5370"),h(),f(3,"button",8),M("click",function(){return T(e),O(P(2).closeRpt1())}),g(4,"\u95dc\u9589\u5206\u6790\u8868"),h()()}}function bQ(n,t){if(1&n&&(f(0,"tr")(1,"td"),g(2),h(),f(3,"td"),g(4),h(),f(5,"td"),g(6),ii(7,"date"),h(),f(8,"td"),g(9),h(),f(10,"td"),g(11),h(),f(12,"td"),g(13),h()()),2&n){const e=t.$implicit,r=t.index;y(2),F(r+1),y(2),F(e.CName),y(2),F(oi(7,6,e.Date,"yyyy-MM-dd")),y(3),F(e.Amount),y(2),F(e.MaterialCost),y(2),F(e.note)}}function CQ(n,t){if(1&n&&(f(0,"tr")(1,"td",24),g(2),h(),f(3,"td",24),g(4),h()()),2&n){const e=P(2);y(2),ze("\u56fa\u5b9a\u8cbb\u7528\uff1a",e.Rpt1MS.FixedCostName,""),y(2),F(e.Rpt1MS.FixedCostAmount)}}function wQ(n,t){if(1&n&&(f(0,"tr")(1,"td",24),g(2),h(),f(3,"td",24),g(4),h()()),2&n){const e=t.$implicit,r=P(2);y(2),ze("\u8ab2\u7a0b\u8b1b\u5e2b ",e.UserCName," \u5be6\u9818"),y(2),Nc("(",r.Rpt1MS.TotalProfit," * ",r.Rpt1MS.ProfitRatio,"\uff05) X ",e.ProfitRatio,"\uff05 = ",r.Rpt1MS.TotalProfit*(r.Rpt1MS.ProfitRatio/100)*(e.ProfitRatio/100),"")}}function PQ(n,t){if(1&n){const e=j();f(0,"div",16)(1,"h1",3),g(2),h(),A(3,yQ,7,0,"p",17),A(4,vQ,5,0,"p",18),f(5,"table",8),M("click",function(){return T(e),O(P().localprint=0)}),f(6,"tr")(7,"td",19),g(8,"\u9805\u6b21"),h(),f(9,"td",20),g(10,"\u59d3\u540d"),h(),f(11,"td",21),g(12,"\u8ab2\u7a0b\u65e5\u671f"),h(),f(13,"td",22),g(14,"\u91d1\u984d"),h(),f(15,"td",22),g(16,"\u6750\u6599\u8cbb"),h(),f(17,"td",22),g(18,"\u5099\u8a3b"),h()(),A(19,bQ,14,9,"tr",23),A(20,CQ,5,2,"tr",0),f(21,"tr")(22,"td",24),g(23,"\u5408\u8a08"),h(),f(24,"td",24),g(25),h()(),A(26,wQ,5,5,"tr",23),f(27,"tr")(28,"td",24),g(29,"\u516c\u53f8\u5229\u6f64"),h(),f(30,"td",24),g(31),h()()()()}if(2&n){const e=P();y(2),Ei("",e.Rpt1MS.ProductName,"\u5206\u6790\u8868 ",e.Year,"-",e.Month,""),y(1),C("ngIf",0==e.localprint),y(1),C("ngIf",0==e.localprint),y(15),C("ngForOf",e.Rpt1DS),y(1),C("ngIf",0!=e.Rpt1MS.FixedCostAmount),y(5),Nc("",e.Rpt1MS.AmountWithTax," - ",e.Rpt1MS.MaterialCost," - ",e.Rpt1MS.FixedCostAmount," = ",e.Rpt1MS.TotalProfit,""),y(1),C("ngForOf",e.Rpt1MS.Teachers),y(5),Ei("",e.Rpt1MS.TotalProfit," X ",1-e.Rpt1MS.ProfitRatio/100,"\uff05 = ",e.Rpt1MS.TotalProfit*(1-e.Rpt1MS.ProfitRatio/100),"")}}let MQ=(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.router=o,this.route=s,this.qryType="\u958b\u8ab2\u8001\u5e2b",this.qryString="",this.DepartmentName="",this.CourseName="",this.localprint=0}get print(){return this.global.print}ngOnInit(){this.tDate=new Date,this.Year=(new Date).getFullYear(),this.Month=(new Date).getMonth()+1,this.qryDepartments(),this.qryTeachers()}qryDepartments(){var e=this.global.serverip+"/api/Product/qryDepartments",r={};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.Departments=s,i(!0)},s=>{console.log(s),o(!1)})})}qryTeachers(){var e=this.global.serverip+"/api/Product/qryTeachers",r={};return new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.Teachers=s,i(!0)},s=>{o(!1)})})}qryCourseMS(){var r,e=this.global.serverip+"/api/Product/qryCourse";return r="\u958b\u8ab2\u8001\u5e2b"==this.qryType?{Department:"",TeacherUserProfileId:this.qryString}:{Department:this.qryString,TeacherUserProfileId:""},this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d"),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u8ab2\u7a0b\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),console.log(s),this.Products=s,i(!0)},s=>{o(!1)})})}showRpt1(e){this.global.print=1,this.CourseMS=e,this.qryFinanceRpt1()}closeRpt1(){this.global.print=0,this.CourseMS=null,this.localprint=0}qryFinanceRpt1(){var e=this.global.serverip+"/api/Finance/qryRpt1",r={ProductId:this.CourseMS.ProductId,Year:this.Year,Month:this.Month};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d"),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u8ab2\u7a0b\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),console.log(s),this.Rpt1=s,this.Rpt1MS=this.Rpt1.Rpt1MS,this.Rpt1DS=this.Rpt1.Rpt1DS,i(!0)},s=>{o(!1)})})}gotoBefore(){this.tDate.setMonth(this.tDate.getMonth()-1),this.Year=this.tDate.getFullYear(),this.Month=this.tDate.getMonth()+1==0?1:this.tDate.getMonth()+1,this.qryFinanceRpt1()}gotoNow(){this.tDate=new Date,this.Year=(new Date).getFullYear(),this.Month=(new Date).getMonth()+1,this.qryFinanceRpt1()}gotoAfter(){this.tDate.setMonth(this.tDate.getMonth()+1),this.Year=this.tDate.getFullYear(),this.Month=this.tDate.getMonth()+1==0?1:this.tDate.getMonth()+1,this.qryFinanceRpt1()}goPrint(){this.localprint=1,setTimeout(()=>{window.print()},1e3)}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(Me),S(nn))},n.\u0275cmp=Fe({type:n,selectors:[["app-finance-rpt1"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","CourseMS",4,"ngIf"],["colspan","8"],["align","center"],[3,"ngModel","ngModelChange","change"],["value","\u958b\u8ab2\u8001\u5e2b"],["value","\u958b\u8ab2\u90e8\u9580"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"click"],["class","Data",3,"click",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"Data",3,"click"],["class","Teacher",4,"ngFor","ngForOf"],[1,"Teacher"],[1,"CourseMS"],["align","center",4,"ngIf"],["align","right",4,"ngIf"],[2,"width","5%"],[2,"width","10%"],[2,"width","25%"],[2,"width","20%"],[4,"ngFor","ngForOf"],["colspan","3"],["href","javascript:void(0);",1,"nav",3,"click"],["align","right"]],template:function(e,r){1&e&&(A(0,_Q,32,4,"div",0),A(1,PQ,32,15,"div",1)),2&e&&(C("ngIf",null==r.CourseMS),y(1),C("ngIf",null!=r.CourseMS))},dependencies:[fn,Yt,$n,zn,Mn,zt,Ft,rr],styles:['@charset "UTF-8";.tableContainer[_ngcontent-%COMP%]{width:99.8%;border:1px solid rgb(127,127,127);overflow:auto}.tableContainerFull[_ngcontent-%COMP%]{height:90%}.tableContainerTop[_ngcontent-%COMP%]{height:30%}.tableContainerBottom[_ngcontent-%COMP%]{height:57%}.tableTotalList[_ngcontent-%COMP%]{background-color:#f3f7f6}.tableEdit[_ngcontent-%COMP%]{background-color:#ecfaec}table[_ngcontent-%COMP%]{width:100%}thead[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#add8e6}th[_ngcontent-%COMP%]{background-color:#c9f9f8}td[_ngcontent-%COMP%]{width:60px;vertical-align:top}tr[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid rgb(191,191,191);border-collapse:collapse}.qryData[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.qryData[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;margin-right:20px}.qryData[_ngcontent-%COMP%], select[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:18px}button[_ngcontent-%COMP%]{font-size:15px;background-color:#e7e7e7;margin-right:15px}.qryData[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100px}.qryData[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{float:left}.ProductDetail[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:30%}.ProductDetail[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:240px}.ProductDetail[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:730px;height:280px;overflow-x:auto;font-size:16px}.Data[_ngcontent-%COMP%]:hover{background-color:#ff0}.PictureBox[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:scroll;border:red 2px solid}.Picture[_ngcontent-%COMP%]{width:400px;flex-shrink:0;height:100%;border:yellow 5px solid}.Teacher[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#ff0;font-size:20px;height:25px}.LessonDate[_ngcontent-%COMP%]{display:inline-block;margin-right:10px;margin-top:10px;background-color:#aff256;font-size:20px;height:25px}.Warning[_ngcontent-%COMP%]{background-color:red;color:#fff}.BigFont[_ngcontent-%COMP%]{font-size:72px;font-weight:700}.Normal[_ngcontent-%COMP%]{background-color:inherit;color:inherit}.visibleTrue[_ngcontent-%COMP%]{display:inline}.visibleFalse[_ngcontent-%COMP%]{display:none}.nav[_ngcontent-%COMP%]{margin-left:20px}.slider_container[_ngcontent-%COMP%]{margin:30px auto;width:400px;height:280px;position:relative;border:20px solid;border-color:#fff;border-bottom-width:100px;background-color:#f5f5f5;box-shadow:#666 0 0 5px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;opacity:0;filter:alpha(opacity=0)}.slider_container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:400px;max-height:280px}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_round 25s linear infinite}@keyframes _ngcontent-%COMP%_round{4%{opacity:1;filter:alpha(opacity=100)}20%{opacity:1;filter:alpha(opacity=100)}24%{opacity:0;filter:alpha(opacity=0)}}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:5s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:10s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:15s}.slider_container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:20s}.slider_container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#000;background:#fff;position:absolute;left:0%;top:280px;width:400px;height:100px;font-size:30px;text-align:center;line-height:100px;transform:scaleY(0);transition:all .5s ease-in-out}.slider_container[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{width:100%;transform:scaleY(1)}.slider_container[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{animation-play-state:paused}.span-block[_ngcontent-%COMP%]{display:block}.CheckoutCounter[_ngcontent-%COMP%]{font-size:24px;font-weight:700}select[_ngcontent-%COMP%]:disabled{color:#00008b;background-color:#ff0}input[_ngcontent-%COMP%]:disabled{color:#00008b;background:yellow}.CourseMS[_ngcontent-%COMP%]{font-size:20px}.DS1[_ngcontent-%COMP%]{background-color:#caf6ca}.DS2[_ngcontent-%COMP%]{background-color:#d1edf6}.DS3[_ngcontent-%COMP%]{background-color:#fafad2}.mySlides[_ngcontent-%COMP%]{display:none}img[_ngcontent-%COMP%]{vertical-align:middle}.slideshow-container[_ngcontent-%COMP%]{max-width:600px;position:relative;margin:auto}.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;width:auto;padding:16px;margin-top:-22px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;-webkit-user-select:none;user-select:none}.next[_ngcontent-%COMP%]{right:0;border-radius:3px 0 0 3px}.prev[_ngcontent-%COMP%]:hover, .next[_ngcontent-%COMP%]:hover{background-color:#000c}.text[_ngcontent-%COMP%]{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center}.numbertext[_ngcontent-%COMP%]{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0}.dot[_ngcontent-%COMP%]{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active[_ngcontent-%COMP%], .dot[_ngcontent-%COMP%]:hover{background-color:#717171}.fade[_ngcontent-%COMP%]{-webkit-animation-name:_ngcontent-%COMP%_fade;-webkit-animation-duration:1.5s;animation-name:_ngcontent-%COMP%_fade;animation-duration:1.5s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:.4}to{opacity:1}}@media only screen and (max-width: 300px){.prev[_ngcontent-%COMP%], .next[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{font-size:11px}}']}),n})();function mi(){}const DQ=function(){let n=0;return function(){return n++}}();function xe(n){return null===n||typeof n>"u"}function Le(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function ge(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)}const ft=n=>("number"==typeof n||n instanceof Number)&&isFinite(+n);function lr(n,t){return ft(n)?n:t}function K(n,t){return typeof n>"u"?t:n}const DE=(n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100*t:+n;function qe(n,t,e){if(n&&"function"==typeof n.call)return n.apply(e,t)}function Be(n,t,e,r){let i,o,s;if(Le(n))if(o=n.length,r)for(i=o-1;i>=0;i--)t.call(e,n[i],i);else for(i=0;i<o;i++)t.call(e,n[i],i);else if(ge(n))for(s=Object.keys(n),o=s.length,i=0;i<o;i++)t.call(e,n[s[i]],s[i])}function mf(n,t){let e,r,i,o;if(!n||!t||n.length!==t.length)return!1;for(e=0,r=n.length;e<r;++e)if(i=n[e],o=t[e],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function _f(n){if(Le(n))return n.map(_f);if(ge(n)){const t=Object.create(null),e=Object.keys(n),r=e.length;let i=0;for(;i<r;++i)t[e[i]]=_f(n[e[i]]);return t}return n}function xE(n){return-1===["__proto__","prototype","constructor"].indexOf(n)}function SQ(n,t,e,r){if(!xE(n))return;const i=t[n],o=e[n];ge(i)&&ge(o)?_i(i,o,r):t[n]=_f(o)}function _i(n,t,e){const r=Le(t)?t:[t],i=r.length;if(!ge(n))return n;const o=(e=e||{}).merger||SQ;for(let s=0;s<i;++s){if(!ge(t=r[s]))continue;const a=Object.keys(t);for(let l=0,u=a.length;l<u;++l)o(a[l],n,t,e)}return n}function tu(n,t){return _i(n,t,{merger:TQ})}function TQ(n,t,e){if(!xE(n))return;const r=t[n],i=e[n];ge(r)&&ge(i)?tu(r,i):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=_f(i))}const SE={"":n=>n,x:n=>n.x,y:n=>n.y};function qi(n,t){return(SE[t]||(SE[t]=function OQ(n){const t=function EQ(n){const t=n.split("."),e=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(e.push(r),r="");return e}(n);return e=>{for(const r of t){if(""===r)break;e=e&&e[r]}return e}}(t)))(n)}function cv(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Mt=n=>typeof n<"u",Wi=n=>"function"==typeof n,TE=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0},Ee=Math.PI,Ue=2*Ee,IQ=Ue+Ee,yf=Number.POSITIVE_INFINITY,OE=Ee/180,mt=Ee/2,nu=Ee/4,EE=2*Ee/3,ur=Math.log10,Ur=Math.sign;function AE(n){const t=Math.round(n);n=ru(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(ur(n))),r=n/e;return(r<=1?1:r<=2?2:r<=5?5:10)*e}function Js(n){return!isNaN(parseFloat(n))&&isFinite(n)}function ru(n,t,e){return Math.abs(n-t)<e}function IE(n,t,e){let r,i,o;for(r=0,i=n.length;r<i;r++)o=n[r][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Nt(n){return n*(Ee/180)}function vf(n){return n*(180/Ee)}function kE(n){if(!ft(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function FE(n,t){const e=t.x-n.x,r=t.y-n.y,i=Math.sqrt(e*e+r*r);let o=Math.atan2(r,e);return o<-.5*Ee&&(o+=Ue),{angle:o,distance:i}}function iu(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function RQ(n,t){return(n-t+IQ)%Ue-Ee}function Gn(n){return(n%Ue+Ue)%Ue}function ou(n,t,e,r){const i=Gn(n),o=Gn(t),s=Gn(e),a=Gn(o-i),l=Gn(s-i),u=Gn(i-o),c=Gn(i-s);return i===o||i===s||r&&o===s||a>l&&u<c}function Qt(n,t,e){return Math.max(t,Math.min(e,n))}function yi(n,t,e,r=1e-6){return n>=Math.min(t,e)-r&&n<=Math.max(t,e)+r}function dv(n,t,e){e=e||(s=>n[s]<t);let o,r=n.length-1,i=0;for(;r-i>1;)o=i+r>>1,e(o)?i=o:r=o;return{lo:i,hi:r}}const vi=(n,t,e,r)=>dv(n,e,r?i=>n[i][t]<=e:i=>n[i][t]<e),LQ=(n,t,e)=>dv(n,e,r=>n[r][t]>=e),RE=["push","pop","shift","splice","unshift"];function NE(n,t){const e=n._chartjs;if(!e)return;const r=e.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),!(r.length>0)&&(RE.forEach(o=>{delete n[o]}),delete n._chartjs)}function LE(n){const t=new Set;let e,r;for(e=0,r=n.length;e<r;++e)t.add(n[e]);return t.size===r?n:Array.from(t)}const BE=typeof window>"u"?function(n){return n()}:window.requestAnimationFrame;function VE(n,t,e){const r=e||(s=>Array.prototype.slice.call(s));let i=!1,o=[];return function(...s){o=r(s),i||(i=!0,BE.call(window,()=>{i=!1,n.apply(t,o)}))}}const fv=n=>"start"===n?"left":"end"===n?"right":"center",gn=(n,t,e)=>"start"===n?t:"end"===n?e:(t+e)/2;function UE(n,t,e){const r=t.length;let i=0,o=r;if(n._sorted){const{iScale:s,_parsed:a}=n,l=s.axis,{min:u,max:c,minDefined:d,maxDefined:p}=s.getUserBounds();d&&(i=Qt(Math.min(vi(a,s.axis,u).lo,e?r:vi(t,l,s.getPixelForValue(u)).lo),0,r-1)),o=p?Qt(Math.max(vi(a,s.axis,c,!0).hi+1,e?0:vi(t,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function jE(n){const{xScale:t,yScale:e,_scaleRanges:r}=n,i={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!r)return n._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==e.min||r.ymax!==e.max;return Object.assign(r,i),o}const bf=n=>0===n||1===n,HE=(n,t,e)=>-Math.pow(2,10*(n-=1))*Math.sin((n-t)*Ue/e),$E=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*Ue/e)+1,su={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>1-Math.cos(n*mt),easeOutSine:n=>Math.sin(n*mt),easeInOutSine:n=>-.5*(Math.cos(Ee*n)-1),easeInExpo:n=>0===n?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>bf(n)?n:n<.5?.5*Math.pow(2,10*(2*n-1)):.5*(2-Math.pow(2,-10*(2*n-1))),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>bf(n)?n:HE(n,.075,.3),easeOutElastic:n=>bf(n)?n:$E(n,.075,.3),easeInOutElastic:n=>bf(n)?n:n<.5?.5*HE(2*n,.1125,.45):.5+.5*$E(2*n-1,.1125,.45),easeInBack:n=>n*n*(2.70158*n-1.70158),easeOutBack:n=>(n-=1)*n*(2.70158*n+1.70158)+1,easeInOutBack(n){let t=1.70158;return(n/=.5)<1?n*n*((1+(t*=1.525))*n-t)*.5:.5*((n-=2)*n*((1+(t*=1.525))*n+t)+2)},easeInBounce:n=>1-su.easeOutBounce(1-n),easeOutBounce:n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,easeInOutBounce:n=>n<.5?.5*su.easeInBounce(2*n):.5*su.easeOutBounce(2*n-1)+.5};function au(n){return n+.5|0}const Gi=(n,t,e)=>Math.max(Math.min(n,e),t);function lu(n){return Gi(au(2.55*n),0,255)}function Yi(n){return Gi(au(255*n),0,255)}function bi(n){return Gi(au(n/2.55)/100,0,1)}function zE(n){return Gi(au(100*n),0,100)}const cr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hv=[..."0123456789ABCDEF"],HQ=n=>hv[15&n],$Q=n=>hv[(240&n)>>4]+hv[15&n],Cf=n=>(240&n)>>4==(15&n);const YQ=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function qE(n,t,e){const r=t*Math.min(e,1-e),i=(o,s=(o+n/30)%12)=>e-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function QQ(n,t,e){const r=(i,o=(i+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function KQ(n,t,e){const r=qE(n,1,.5);let i;for(t+e>1&&(i=1/(t+e),t*=i,e*=i),i=0;i<3;i++)r[i]*=1-t-e,r[i]+=t;return r}function pv(n){const e=n.r/255,r=n.g/255,i=n.b/255,o=Math.max(e,r,i),s=Math.min(e,r,i),a=(o+s)/2;let l,u,c;return o!==s&&(c=o-s,u=a>.5?c/(2-o-s):c/(o+s),l=function XQ(n,t,e,r,i){return n===i?(t-e)/r+(t<e?6:0):t===i?(e-n)/r+2:(n-t)/r+4}(e,r,i,c,o),l=60*l+.5),[0|l,u||0,a]}function gv(n,t,e,r){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,r)).map(Yi)}function mv(n,t,e){return gv(qE,n,t,e)}function WE(n){return(n%360+360)%360}const GE={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},YE={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let wf;const oK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,_v=n=>n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,ea=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function Pf(n,t,e){if(n){let r=pv(n);r[t]=Math.max(0,Math.min(r[t]+r[t]*e,0===t?360:1)),r=mv(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function QE(n,t){return n&&Object.assign(t||{},n)}function KE(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=Yi(n[3]))):(t=QE(n,{r:0,g:0,b:0,a:1})).a=Yi(t.a),t}function uK(n){return"r"===n.charAt(0)?function sK(n){const t=oK.exec(n);let r,i,o,e=255;if(t){if(t[7]!==r){const s=+t[7];e=t[8]?lu(s):Gi(255*s,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?lu(r):Gi(r,0,255)),i=255&(t[4]?lu(i):Gi(i,0,255)),o=255&(t[6]?lu(o):Gi(o,0,255)),{r,g:i,b:o,a:e}}}(n):function eK(n){const t=YQ.exec(n);let r,e=255;if(!t)return;t[5]!==r&&(e=t[6]?lu(+t[5]):Yi(+t[5]));const i=WE(+t[2]),o=+t[3]/100,s=+t[4]/100;return r="hwb"===t[1]?function ZQ(n,t,e){return gv(KQ,n,t,e)}(i,o,s):"hsv"===t[1]?function JQ(n,t,e){return gv(QQ,n,t,e)}(i,o,s):mv(i,o,s),{r:r[0],g:r[1],b:r[2],a:e}}(n)}class Mf{constructor(t){if(t instanceof Mf)return t;const e=typeof t;let r;"object"===e?r=KE(t):"string"===e&&(r=function qQ(n){var e,t=n.length;return"#"===n[0]&&(4===t||5===t?e={r:255&17*cr[n[1]],g:255&17*cr[n[2]],b:255&17*cr[n[3]],a:5===t?17*cr[n[4]]:255}:(7===t||9===t)&&(e={r:cr[n[1]]<<4|cr[n[2]],g:cr[n[3]]<<4|cr[n[4]],b:cr[n[5]]<<4|cr[n[6]],a:9===t?cr[n[7]]<<4|cr[n[8]]:255})),e}(t)||function iK(n){wf||(wf=function rK(){const n={},t=Object.keys(YE),e=Object.keys(GE);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<e.length;i++)o=e[i],a=a.replace(o,GE[o]);o=parseInt(YE[s],16),n[a]=[o>>16&255,o>>8&255,255&o]}return n}(),wf.transparent=[0,0,0,0]);const t=wf[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(t)||uK(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=QE(this._rgb);return t&&(t.a=bi(t.a)),t}set rgb(t){this._rgb=KE(t)}rgbString(){return this._valid?function aK(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${bi(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}(this._rgb):void 0}hexString(){return this._valid?function GQ(n){var t=(n=>Cf(n.r)&&Cf(n.g)&&Cf(n.b)&&Cf(n.a))(n)?HQ:$Q;return n?"#"+t(n.r)+t(n.g)+t(n.b)+((n,t)=>n<255?t(n):"")(n.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function nK(n){if(!n)return;const t=pv(n),e=t[0],r=zE(t[1]),i=zE(t[2]);return n.a<255?`hsla(${e}, ${r}%, ${i}%, ${bi(n.a)})`:`hsl(${e}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,i=t.rgb;let o;const s=e===o?.5:e,a=2*s-1,l=r.a-i.a,u=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;o=1-u,r.r=255&u*r.r+o*i.r+.5,r.g=255&u*r.g+o*i.g+.5,r.b=255&u*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function lK(n,t,e){const r=ea(bi(n.r)),i=ea(bi(n.g)),o=ea(bi(n.b));return{r:Yi(_v(r+e*(ea(bi(t.r))-r))),g:Yi(_v(i+e*(ea(bi(t.g))-i))),b:Yi(_v(o+e*(ea(bi(t.b))-o))),a:n.a+e*(t.a-n.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Mf(this.rgb)}alpha(t){return this._rgb.a=Yi(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=au(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Pf(this._rgb,2,t),this}darken(t){return Pf(this._rgb,2,-t),this}saturate(t){return Pf(this._rgb,1,t),this}desaturate(t){return Pf(this._rgb,1,-t),this}rotate(t){return function tK(n,t){var e=pv(n);e[0]=WE(e[0]+t),e=mv(e),n.r=e[0],n.g=e[1],n.b=e[2]}(this._rgb,t),this}}function XE(n){return new Mf(n)}function ZE(n){if(n&&"object"==typeof n){const t=n.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function JE(n){return ZE(n)?n:XE(n)}function yv(n){return ZE(n)?n:XE(n).saturate(.5).darken(.1).hexString()}const Lo=Object.create(null),vv=Object.create(null);function uu(n,t){if(!t)return n;const e=t.split(".");for(let r=0,i=e.length;r<i;++r){const o=e[r];n=n[o]||(n[o]=Object.create(null))}return n}function bv(n,t,e){return"string"==typeof t?_i(uu(n,t),e):_i(uu(n,""),t)}var we=new class cK{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,r)=>yv(r.backgroundColor),this.hoverBorderColor=(e,r)=>yv(r.borderColor),this.hoverColor=(e,r)=>yv(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return bv(this,t,e)}get(t){return uu(this,t)}describe(t,e){return bv(vv,t,e)}override(t,e){return bv(Lo,t,e)}route(t,e,r,i){const o=uu(this,t),s=uu(this,r),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],u=s[i];return ge(l)?Object.assign({},u,l):K(l,u)},set(l){this[a]=l}}})}}({_scriptable:n=>!n.startsWith("on"),_indexable:n=>"events"!==n,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Df(n,t,e,r,i){let o=t[i];return o||(o=t[i]=n.measureText(i).width,e.push(i)),o>r&&(r=o),r}function fK(n,t,e,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),n.save(),n.font=t;let s=0;const a=e.length;let l,u,c,d,p;for(l=0;l<a;l++)if(d=e[l],null!=d&&!0!==Le(d))s=Df(n,i,o,s,d);else if(Le(d))for(u=0,c=d.length;u<c;u++)p=d[u],null!=p&&!Le(p)&&(s=Df(n,i,o,s,p));n.restore();const m=o.length/2;if(m>e.length){for(l=0;l<m;l++)delete i[o[l]];o.splice(0,m)}return s}function Bo(n,t,e){const r=n.currentDevicePixelRatio,i=0!==e?Math.max(e/2,.5):0;return Math.round((t-i)*r)/r+i}function eA(n,t){(t=t||n.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore()}function xf(n,t,e,r){tA(n,t,e,r,null)}function tA(n,t,e,r,i){let o,s,a,l,u,c;const d=t.pointStyle,p=t.rotation,m=t.radius;let _=(p||0)*OE;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return n.save(),n.translate(e,r),n.rotate(_),n.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void n.restore();if(!(isNaN(m)||m<=0)){switch(n.beginPath(),d){default:i?n.ellipse(e,r,i/2,m,0,0,Ue):n.arc(e,r,m,0,Ue),n.closePath();break;case"triangle":n.moveTo(e+Math.sin(_)*m,r-Math.cos(_)*m),_+=EE,n.lineTo(e+Math.sin(_)*m,r-Math.cos(_)*m),_+=EE,n.lineTo(e+Math.sin(_)*m,r-Math.cos(_)*m),n.closePath();break;case"rectRounded":u=.516*m,l=m-u,s=Math.cos(_+nu)*l,a=Math.sin(_+nu)*l,n.arc(e-s,r-a,u,_-Ee,_-mt),n.arc(e+a,r-s,u,_-mt,_),n.arc(e+s,r+a,u,_,_+mt),n.arc(e-a,r+s,u,_+mt,_+Ee),n.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,c=i?i/2:l,n.rect(e-c,r-l,2*c,2*l);break}_+=nu;case"rectRot":s=Math.cos(_)*m,a=Math.sin(_)*m,n.moveTo(e-s,r-a),n.lineTo(e+a,r-s),n.lineTo(e+s,r+a),n.lineTo(e-a,r+s),n.closePath();break;case"crossRot":_+=nu;case"cross":s=Math.cos(_)*m,a=Math.sin(_)*m,n.moveTo(e-s,r-a),n.lineTo(e+s,r+a),n.moveTo(e+a,r-s),n.lineTo(e-a,r+s);break;case"star":s=Math.cos(_)*m,a=Math.sin(_)*m,n.moveTo(e-s,r-a),n.lineTo(e+s,r+a),n.moveTo(e+a,r-s),n.lineTo(e-a,r+s),_+=nu,s=Math.cos(_)*m,a=Math.sin(_)*m,n.moveTo(e-s,r-a),n.lineTo(e+s,r+a),n.moveTo(e+a,r-s),n.lineTo(e-a,r+s);break;case"line":s=i?i/2:Math.cos(_)*m,a=Math.sin(_)*m,n.moveTo(e-s,r-a),n.lineTo(e+s,r+a);break;case"dash":n.moveTo(e,r),n.lineTo(e+Math.cos(_)*m,r+Math.sin(_)*m)}n.fill(),t.borderWidth>0&&n.stroke()}}function cu(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function ta(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function na(n){n.restore()}function hK(n,t,e,r,i){if(!t)return n.lineTo(e.x,e.y);if("middle"===i){const o=(t.x+e.x)/2;n.lineTo(o,t.y),n.lineTo(o,e.y)}else"after"===i!=!!r?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function pK(n,t,e,r){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?e.cp2x:e.cp1x,r?e.cp2y:e.cp1y,e.x,e.y)}function Vo(n,t,e,r,i,o={}){const s=Le(t)?t:[t],a=o.strokeWidth>0&&""!==o.strokeColor;let l,u;for(n.save(),n.font=i.string,function gK(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),xe(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}(n,o),l=0;l<s.length;++l)u=s[l],a&&(o.strokeColor&&(n.strokeStyle=o.strokeColor),xe(o.strokeWidth)||(n.lineWidth=o.strokeWidth),n.strokeText(u,e,r,o.maxWidth)),n.fillText(u,e,r,o.maxWidth),mK(n,e,r,u,o),r+=i.lineHeight;n.restore()}function mK(n,t,e,r,i){if(i.strikethrough||i.underline){const o=n.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=e-o.actualBoundingBoxAscent,u=e+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(s,c),n.lineTo(a,c),n.stroke()}}function ra(n,t){const{x:e,y:r,w:i,h:o,radius:s}=t;n.arc(e+s.topLeft,r+s.topLeft,s.topLeft,-mt,Ee,!0),n.lineTo(e,r+o-s.bottomLeft),n.arc(e+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,Ee,mt,!0),n.lineTo(e+i-s.bottomRight,r+o),n.arc(e+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,mt,0,!0),n.lineTo(e+i,r+s.topRight),n.arc(e+i-s.topRight,r+s.topRight,s.topRight,0,-mt,!0),n.lineTo(e+s.topLeft,r)}const _K=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),yK=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function vK(n,t){const e=(""+n).match(_K);if(!e||"normal"===e[1])return 1.2*t;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100}return t*n}const bK=n=>+n||0;function Cv(n,t){const e={},r=ge(t),i=r?Object.keys(t):t,o=ge(n)?r?s=>K(n[s],n[t[s]]):s=>n[s]:()=>n;for(const s of i)e[s]=bK(o(s));return e}function nA(n){return Cv(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Qi(n){return Cv(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Lt(n){const t=nA(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Dt(n,t){let e=K((n=n||{}).size,(t=t||we.font).size);"string"==typeof e&&(e=parseInt(e,10));let r=K(n.style,t.style);r&&!(""+r).match(yK)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");const i={family:K(n.family,t.family),lineHeight:vK(K(n.lineHeight,t.lineHeight),e),size:e,style:r,weight:K(n.weight,t.weight),string:""};return i.string=function dK(n){return!n||xe(n.size)||xe(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}(i),i}function du(n,t,e,r){let o,s,a,i=!0;for(o=0,s=n.length;o<s;++o)if(a=n[o],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),i=!1),void 0!==e&&Le(a)&&(a=a[e%a.length],i=!1),void 0!==a))return r&&!i&&(r.cacheable=!1),a}function Ki(n,t){return Object.assign(Object.create(n),t)}function wv(n,t=[""],e=n,r,i=(()=>n[0])){Mt(r)||(r=aA("_fallback",n));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:e,_fallback:r,_getTarget:i,override:s=>wv([s,...n],t,e,r)};return new Proxy(o,{deleteProperty:(s,a)=>(delete s[a],delete s._keys,delete n[0][a],!0),get:(s,a)=>iA(s,a,()=>function OK(n,t,e,r){let i;for(const o of t)if(i=aA(wK(o,n),e),Mt(i))return Pv(n,i)?Mv(e,r,n,i):i}(a,t,n,s)),getOwnPropertyDescriptor:(s,a)=>Reflect.getOwnPropertyDescriptor(s._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(n[0]),has:(s,a)=>lA(s).includes(a),ownKeys:s=>lA(s),set(s,a,l){const u=s._storage||(s._storage=i());return s[a]=u[a]=l,delete s._keys,!0}})}function ia(n,t,e,r){const i={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:rA(n,r),setContext:o=>ia(n,o,e,r),override:o=>ia(n.override(o),t,e,r)};return new Proxy(i,{deleteProperty:(o,s)=>(delete o[s],delete n[s],!0),get:(o,s,a)=>iA(o,s,()=>function PK(n,t,e){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=n;let a=r[t];return Wi(a)&&s.isScriptable(t)&&(a=function MK(n,t,e,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);return a.add(n),t=t(o,s||r),a.delete(n),Pv(n,t)&&(t=Mv(i._scopes,i,n,t)),t}(t,a,n,e)),Le(a)&&a.length&&(a=function DK(n,t,e,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=e;if(Mt(o.index)&&r(n))t=t[o.index%t.length];else if(ge(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=Mv(u,i,n,c);t.push(ia(d,o,s&&s[n],a))}}return t}(t,a,n,s.isIndexable)),Pv(t,a)&&(a=ia(a,i,o&&o[t],s)),a}(o,s,a)),getOwnPropertyDescriptor:(o,s)=>o._descriptors.allKeys?Reflect.has(n,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,s),getPrototypeOf:()=>Reflect.getPrototypeOf(n),has:(o,s)=>Reflect.has(n,s),ownKeys:()=>Reflect.ownKeys(n),set:(o,s,a)=>(n[s]=a,delete o[s],!0)})}function rA(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=n;return{allKeys:i,scriptable:e,indexable:r,isScriptable:Wi(e)?e:()=>e,isIndexable:Wi(r)?r:()=>r}}const wK=(n,t)=>n?n+cv(t):t,Pv=(n,t)=>ge(t)&&"adapters"!==n&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function iA(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];const r=e();return n[t]=r,r}function oA(n,t,e){return Wi(n)?n(t,e):n}const xK=(n,t)=>!0===n?t:"string"==typeof n?qi(t,n):void 0;function SK(n,t,e,r,i){for(const o of t){const s=xK(e,o);if(s){n.add(s);const a=oA(s._fallback,e,i);if(Mt(a)&&a!==e&&a!==r)return a}else if(!1===s&&Mt(r)&&e!==r)return null}return!1}function Mv(n,t,e,r){const i=t._rootScopes,o=oA(t._fallback,e,r),s=[...n,...i],a=new Set;a.add(r);let l=sA(a,s,e,o||e,r);return!(null===l||Mt(o)&&o!==e&&(l=sA(a,s,o,l,r),null===l))&&wv(Array.from(a),[""],i,o,()=>function TK(n,t,e){const r=n._getTarget();t in r||(r[t]={});const i=r[t];return Le(i)&&ge(e)?e:i}(t,e,r))}function sA(n,t,e,r,i){for(;e;)e=SK(n,t,e,r,i);return e}function aA(n,t){for(const e of t){if(!e)continue;const r=e[n];if(Mt(r))return r}}function lA(n){let t=n._keys;return t||(t=n._keys=function EK(n){const t=new Set;for(const e of n)for(const r of Object.keys(e).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}(n._scopes)),t}function uA(n,t,e,r){const{iScale:i}=n,{key:o="r"}=this._parsing,s=new Array(r);let a,l,u,c;for(a=0,l=r;a<l;++a)u=a+e,c=t[u],s[a]={r:i.parse(qi(c,o),u)};return s}const AK=Number.EPSILON||1e-14,oa=(n,t)=>t<n.length&&!n[t].skip&&n[t],cA=n=>"x"===n?"y":"x";function IK(n,t,e,r){const i=n.skip?t:n,o=t,s=e.skip?t:e,a=iu(o,i),l=iu(s,o);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,p=r*c;return{previous:{x:o.x-d*(s.x-i.x),y:o.y-d*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function Sf(n,t,e){return Math.max(Math.min(n,e),t)}function LK(n,t,e,r,i){let o,s,a,l;if(t.spanGaps&&(n=n.filter(u=>!u.skip)),"monotone"===t.cubicInterpolationMode)!function RK(n,t="x"){const e=cA(t),r=n.length,i=Array(r).fill(0),o=Array(r);let s,a,l,u=oa(n,0);for(s=0;s<r;++s)if(a=l,l=u,u=oa(n,s+1),l){if(u){const c=u[t]-l[t];i[s]=0!==c?(u[e]-l[e])/c:0}o[s]=a?u?Ur(i[s-1])!==Ur(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}(function kK(n,t,e){const r=n.length;let i,o,s,a,l,u=oa(n,0);for(let c=0;c<r-1;++c)if(l=u,u=oa(n,c+1),l&&u){if(ru(t[c],0,AK)){e[c]=e[c+1]=0;continue}i=e[c]/t[c],o=e[c+1]/t[c],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),e[c]=i*s*t[c],e[c+1]=o*s*t[c])}})(n,i,o),function FK(n,t,e="x"){const r=cA(e),i=n.length;let o,s,a,l=oa(n,0);for(let u=0;u<i;++u){if(s=a,a=l,l=oa(n,u+1),!a)continue;const c=a[e],d=a[r];s&&(o=(c-s[e])/3,a[`cp1${e}`]=c-o,a[`cp1${r}`]=d-o*t[u]),l&&(o=(l[e]-c)/3,a[`cp2${e}`]=c+o,a[`cp2${r}`]=d+o*t[u])}}(n,o,t)}(n,i);else{let u=r?n[n.length-1]:n[0];for(o=0,s=n.length;o<s;++o)a=n[o],l=IK(u,a,n[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,u=a}t.capBezierPoints&&function NK(n,t){let e,r,i,o,s,a=cu(n[0],t);for(e=0,r=n.length;e<r;++e)s=o,o=a,a=e<r-1&&cu(n[e+1],t),o&&(i=n[e],s&&(i.cp1x=Sf(i.cp1x,t.left,t.right),i.cp1y=Sf(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=Sf(i.cp2x,t.left,t.right),i.cp2y=Sf(i.cp2y,t.top,t.bottom)))}(n,e)}function dA(){return typeof window<"u"&&typeof document<"u"}function Dv(n){let t=n.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Tf(n,t,e){let r;return"string"==typeof n?(r=parseInt(n,10),-1!==n.indexOf("%")&&(r=r/100*t.parentNode[e])):r=n,r}const Of=n=>window.getComputedStyle(n,null),VK=["top","right","bottom","left"];function Uo(n,t,e){const r={};e=e?"-"+e:"";for(let i=0;i<4;i++){const o=VK[i];r[o]=parseFloat(n[t+"-"+o+e])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function jo(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:r}=t,i=Of(e),o="border-box"===i.boxSizing,s=Uo(i,"padding"),a=Uo(i,"border","width"),{x:l,y:u,box:c}=function jK(n,t){const e=n.touches,r=e&&e.length?e[0]:n,{offsetX:i,offsetY:o}=r;let a,l,s=!1;if(((n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot))(i,o,n.target))a=i,l=o;else{const u=t.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:a,y:l,box:s}}(n,e),d=s.left+(c&&a.left),p=s.top+(c&&a.top);let{width:m,height:_}=t;return o&&(m-=s.width+a.width,_-=s.height+a.height),{x:Math.round((l-d)/m*e.width/r),y:Math.round((u-p)/_*e.height/r)}}const xv=n=>Math.round(10*n)/10;function fA(n,t,e){const r=t||1,i=Math.floor(n.height*r),o=Math.floor(n.width*r);n.height=i/r,n.width=o/r;const s=n.canvas;return s.style&&(e||!s.style.height&&!s.style.width)&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`),(n.currentDevicePixelRatio!==r||s.height!==i||s.width!==o)&&(n.currentDevicePixelRatio=r,s.height=i,s.width=o,n.ctx.setTransform(r,0,0,r,0,0),!0)}const zK=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return n}();function hA(n,t){const e=function BK(n,t){return Of(n).getPropertyValue(t)}(n,t),r=e&&e.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ho(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function qK(n,t,e,r){return{x:n.x+e*(t.x-n.x),y:"middle"===r?e<.5?n.y:t.y:"after"===r?e<1?n.y:t.y:e>0?t.y:n.y}}function WK(n,t,e,r){const i={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},s=Ho(n,i,e),a=Ho(i,o,e),l=Ho(o,t,e),u=Ho(s,a,e),c=Ho(a,l,e);return Ho(u,c,e)}const pA=new Map;function fu(n,t,e){return function GK(n,t){t=t||{};const e=n+JSON.stringify(t);let r=pA.get(e);return r||(r=new Intl.NumberFormat(n,t),pA.set(e,r)),r}(t,e).format(n)}function sa(n,t,e){return n?function(n,t){return{x:e=>n+n+t-e,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,r)=>e-r,leftForLtr:(e,r)=>e-r}}(t,e):{x:n=>n,setWidth(n){},textAlign:n=>n,xPlus:(n,t)=>n+t,leftForLtr:(n,t)=>n}}function gA(n,t){let e,r;("ltr"===t||"rtl"===t)&&(e=n.canvas.style,r=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=r)}function mA(n,t){void 0!==t&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function _A(n){return"angle"===n?{between:ou,compare:RQ,normalize:Gn}:{between:yi,compare:(t,e)=>t-e,normalize:t=>t}}function yA({start:n,end:t,count:e,loop:r,style:i}){return{start:n%e,end:t%e,loop:r&&(t-n+1)%e==0,style:i}}function vA(n,t,e){if(!e)return[n];const{property:r,start:i,end:o}=e,s=t.length,{compare:a,between:l,normalize:u}=_A(r),{start:c,end:d,loop:p,style:m}=function KK(n,t,e){const{property:r,start:i,end:o}=e,{between:s,normalize:a}=_A(r),l=t.length;let p,m,{start:u,end:c,loop:d}=n;if(d){for(u+=l,c+=l,p=0,m=l;p<m&&s(a(t[u%l][r]),i,o);++p)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:n.style}}(n,t,e),_=[];let w,D,x,v=!1,b=null;for(let $=c,z=c;$<=d;++$)D=t[$%s],!D.skip&&(w=u(D[r]),w!==x&&(v=l(w,i,o),null===b&&(v||l(i,x,w)&&0!==a(i,x))&&(b=0===a(w,i)?$:z),null!==b&&(!v||0===a(o,w)||l(o,x,w))&&(_.push(yA({start:b,end:$,loop:p,count:s,style:m})),b=null),z=$,x=w));return null!==b&&_.push(yA({start:b,end:d,loop:p,count:s,style:m})),_}function bA(n,t){const e=[],r=n.segments;for(let i=0;i<r.length;i++){const o=vA(r[i],n.points,t);o.length&&e.push(...o)}return e}function wA(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function tX(n,t){return t&&JSON.stringify(n)!==JSON.stringify(t)}var Ci=new class nX{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,i){const s=e.duration;e.listeners[i].forEach(a=>a({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(r-e.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=BE.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let l,s=o.length-1,a=!1;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const PA="transparent",rX={boolean:(n,t,e)=>e>.5?t:n,color(n,t,e){const r=JE(n||PA),i=r.valid&&JE(t||PA);return i&&i.valid?i.mix(r,e).hexString():t},number:(n,t,e)=>n+(t-n)*e};class iX{constructor(t,e,r,i){const o=e[r];i=du([t.to,i,o,t.from]);const s=du([t.from,o,i]);this._active=!0,this._fn=t.fn||rX[t.type||typeof s],this._easing=su[t.easing]||su.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=du([t.to,e,i,t.from]),this._from=du([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||e<r),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=o:(l=e/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,r)=>{t.push({res:e,rej:r})})}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][e]()}}we.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const aX=Object.keys(we.animation);we.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),we.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),we.describe("animations",{_fallback:"animation"}),we.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>0|n}}}});class Sv{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!ge(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const i=t[r];if(!ge(i))return;const o={};for(const s of aX)o[s]=i[s];(Le(i.properties)&&i.properties||[r]).forEach(s=>{(s===r||!e.has(s))&&e.set(s,o)})})}_animateOptions(t,e){const r=e.options,i=function uX(n,t){if(!t)return;let e=n.options;if(e)return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;n.options=t}(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&function lX(n,t){const e=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=n[r[i]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,e){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if("$"===u.charAt(0))continue;if("options"===u){i.push(...this._animateOptions(t,e));continue}const c=e[u];let d=o[u];const p=r.get(u);if(d){if(p&&d.active()){d.update(p,c,a);continue}d.cancel()}p&&p.duration?(o[u]=d=new iX(p,t,u,c),i.push(d)):t[u]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(Ci.add(this._chart,r),!0):void 0}}function MA(n,t){const e=n&&n.options||{},r=e.reverse,i=void 0===e.min?t:0,o=void 0===e.max?t:0;return{start:r?o:i,end:r?i:o}}function DA(n,t){const e=[],r=n._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)e.push(r[i].index);return e}function xA(n,t,e,r={}){const i=n.keys,o="single"===r.mode;let s,a,l,u;if(null!==t){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===e){if(r.all)continue;break}u=n.values[l],ft(u)&&(o||0===t||Ur(t)===Ur(u))&&(t+=u)}return t}}function SA(n,t){const e=n&&n.options.stacked;return e||void 0===e&&void 0!==t.stack}function gX(n,t,e){const r=n[t]||(n[t]={});return r[e]||(r[e]={})}function TA(n,t,e,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=n[i.index];if(e&&o>0||!e&&o<0)return i.index}return null}function OA(n,t){const{chart:e,_cachedMeta:r}=n,i=e._stacks||(e._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,u=s.axis,c=function hX(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}(o,s,r),d=t.length;let p;for(let m=0;m<d;++m){const _=t[m],{[l]:v,[u]:b}=_;p=(_._stacks||(_._stacks={}))[u]=gX(i,c,v),p[a]=b,p._top=TA(p,s,!0,r.type),p._bottom=TA(p,s,!1,r.type)}}function Tv(n,t){const e=n.scales;return Object.keys(e).filter(r=>e[r].axis===t).shift()}function hu(n,t){const e=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){t=t||n._parsed;for(const i of t){const o=i._stacks;if(!o||void 0===o[r]||void 0===o[r][e])return;delete o[r][e]}}}const Ov=n=>"reset"===n||"none"===n,EA=(n,t)=>t?n:Object.assign({},n);let jr=(()=>{class n{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=SA(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&hu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,i=this.getDataset(),o=(p,m,_,v)=>"x"===p?m:"r"===p?v:_,s=r.xAxisID=K(i.xAxisID,Tv(e,"x")),a=r.yAxisID=K(i.yAxisID,Tv(e,"y")),l=r.rAxisID=K(i.rAxisID,Tv(e,"r")),u=r.indexAxis,c=r.iAxisID=o(u,s,a,l),d=r.vAxisID=o(u,a,s,l);r.xScale=this.getScaleForId(s),r.yScale=this.getScaleForId(a),r.rScale=this.getScaleForId(l),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&NE(this._data,this),e._stacked&&hu(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),i=this._data;if(ge(r))this._data=function fX(n){const t=Object.keys(n),e=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],e[r]={x:o,y:n[o]};return e}(r);else if(i!==r){if(i){NE(i,this);const o=this._cachedMeta;hu(o),o._parsed=[]}r&&Object.isExtensible(r)&&function VQ(n,t){n._chartjs?n._chartjs.listeners.push(t):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),RE.forEach(e=>{const r="_onData"+cv(e),i=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return n._chartjs.listeners.forEach(a=>{"function"==typeof a[r]&&a[r](...o)}),s}})}))}(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,i=this.getDataset();let o=!1;this._dataCheck();const s=r._stacked;r._stacked=SA(r.vScale,r),r.stack!==i.stack&&(o=!0,hu(r),r.stack=i.stack),this._resyncElements(e),(o||s!==r._stacked)&&OA(this,r._parsed)}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:i,_data:o}=this,{iScale:s,_stacked:a}=i,l=s.axis;let d,p,m,u=0===e&&r===o.length||i._sorted,c=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=o,i._sorted=!0,m=o;else{m=Le(o[e])?this.parseArrayData(i,o,e,r):ge(o[e])?this.parseObjectData(i,o,e,r):this.parsePrimitiveData(i,o,e,r);const _=()=>null===p[l]||c&&p[l]<c[l];for(d=0;d<r;++d)i._parsed[d+e]=p=m[d],u&&(_()&&(u=!1),c=p);i._sorted=u}a&&OA(this,m)}parsePrimitiveData(e,r,i,o){const{iScale:s,vScale:a}=e,l=s.axis,u=a.axis,c=s.getLabels(),d=s===a,p=new Array(o);let m,_,v;for(m=0,_=o;m<_;++m)v=m+i,p[m]={[l]:d||s.parse(c[v],v),[u]:a.parse(r[v],v)};return p}parseArrayData(e,r,i,o){const{xScale:s,yScale:a}=e,l=new Array(o);let u,c,d,p;for(u=0,c=o;u<c;++u)d=u+i,p=r[d],l[u]={x:s.parse(p[0],d),y:a.parse(p[1],d)};return l}parseObjectData(e,r,i,o){const{xScale:s,yScale:a}=e,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,c=new Array(o);let d,p,m,_;for(d=0,p=o;d<p;++d)m=d+i,_=r[m],c[d]={x:s.parse(qi(_,l),m),y:a.parse(qi(_,u),m)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,r,i){const s=this._cachedMeta,a=r[e.axis];return xA({keys:DA(this.chart,!0),values:r._stacks[e.axis]},a,s.index,{mode:i})}updateRangeFromParsed(e,r,i,o){const s=i[r.axis];let a=null===s?NaN:s;const l=o&&i._stacks[r.axis];o&&l&&(o.values=l,a=xA(o,s,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,r){const i=this._cachedMeta,o=i._parsed,s=i._sorted&&e===i.iScale,a=o.length,l=this._getOtherScale(e),u=((n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:DA(this.chart,!0),values:null})(r,i),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:p}=function pX(n){const{min:t,max:e,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?e:Number.POSITIVE_INFINITY}}(l);let m,_;function v(){_=o[m];const b=_[l.axis];return!ft(_[e.axis])||d>b||p<b}for(m=0;m<a&&(v()||(this.updateRangeFromParsed(c,e,_,u),!s));++m);if(s)for(m=a-1;m>=0;--m)if(!v()){this.updateRangeFromParsed(c,e,_,u);break}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,i=[];let o,s,a;for(o=0,s=r.length;o<s;++o)a=r[o][e.axis],ft(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const r=this._cachedMeta,i=r.iScale,o=r.vScale,s=this.getParsed(e);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:o?""+o.getLabelForValue(s[o.axis]):""}}_update(e){const r=this._cachedMeta;this.update(e||"default"),r._clip=function dX(n){let t,e,r,i;return ge(n)?(t=n.top,e=n.right,r=n.bottom,i=n.left):t=e=r=i=n,{top:t,right:e,bottom:r,left:i,disabled:!1===n}}(K(this.options.clip,function cX(n,t,e){if(!1===e)return!1;const r=MA(n,e),i=MA(t,e);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(r.xScale,r.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,i=this._cachedMeta,o=i.data||[],s=this.chart.chartArea,a=[],l=this._drawStart||0,u=this._drawCount||o.length-l,c=this.options.drawActiveElementsOnTop;let d;for(i.dataset&&i.dataset.draw(e,s,l,u),d=l;d<l+u;++d){const p=o[d];p.hidden||(p.active&&c?a.push(p):p.draw(e,s))}for(d=0;d<a.length;++d)a[d].draw(e,s)}getStyle(e,r){const i=r?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,r,i){const o=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];s=a.$context||(a.$context=function _X(n,t,e){return Ki(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}(this.getContext(),e,a)),s.parsed=this.getParsed(e),s.raw=o.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=function mX(n,t){return Ki(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=o,s.index=s.datasetIndex=this.index;return s.active=!!r,s.mode=i,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,r){return this._resolveElementOptions(this.dataElementType.id,r,e)}_resolveElementOptions(e,r="default",i){const o="active"===r,s=this._cachedDataOpts,a=e+"-"+r,l=s[a],u=this.enableOptionSharing&&Mt(i);if(l)return EA(l,u);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),p=o?[`${e}Hover`,"hover",e,""]:[e,""],m=c.getOptionScopes(this.getDataset(),d),_=Object.keys(we.elements[e]),b=c.resolveNamedOptions(m,_,()=>this.getContext(i,o),p);return b.$shared&&(b.$shared=u,s[a]=Object.freeze(EA(b,u))),b}_resolveAnimations(e,r,i){const o=this.chart,s=this._cachedDataOpts,a=`animation-${r}`,l=s[a];if(l)return l;let u;if(!1!==o.options.animation){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,r),m=d.getOptionScopes(this.getDataset(),p);u=d.createResolver(m,this.getContext(e,i,r))}const c=new Sv(o,u&&u.animations);return u&&u._cacheable&&(s[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||Ov(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const i=this.resolveDataElementOptions(e,r),o=this._sharedOptions,s=this.getSharedOptions(i),a=this.includeOptions(r,s)||s!==o;return this.updateSharedOptions(s,r,i),{sharedOptions:s,includeOptions:a}}updateElement(e,r,i,o){Ov(o)?Object.assign(e,i):this._resolveAnimations(r,o).update(e,i)}updateSharedOptions(e,r,i){e&&!Ov(r)&&this._resolveAnimations(void 0,r).update(e,i)}_setStyle(e,r,i,o){e.active=o;const s=this.getStyle(r,o);this._resolveAnimations(r,i,o).update(e,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(e,r,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,r,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,i=this._cachedMeta.data;for(const[l,u,c]of this._syncList)this[l](u,c);this._syncList=[];const o=i.length,s=r.length,a=Math.min(s,o);a&&this.parse(0,a),s>o?this._insertElements(o,s-o,e):s<o&&this._removeElements(s,o-s)}_insertElements(e,r,i=!0){const o=this._cachedMeta,s=o.data,a=e+r;let l;const u=c=>{for(c.length+=r,l=c.length-1;l>=a;l--)c[l]=c[l-r]};for(u(s),l=e;l<a;++l)s[l]=new this.dataElementType;this._parsing&&u(o._parsed),this.parse(e,r),i&&this.updateElements(s,e,r,"reset")}updateElements(e,r,i,o){}_removeElements(e,r){const i=this._cachedMeta;if(this._parsing){const o=i._parsed.splice(e,r);i._stacked&&hu(i,o)}i.data.splice(e,r)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[r,i,o]=e;this[r](i,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,r){r&&this._sync(["_removeElements",e,r]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return n.defaults={},n})();function bX(n){const t=n.iScale,e=function vX(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=e.length;i<o;i++)r=r.concat(e[i].controller.getAllParsedValues(n));n._cache.$bar=LE(r.sort((i,o)=>i-o))}return n._cache.$bar}(t,n.type);let i,o,s,a,r=t._length;const l=()=>{32767===s||-32768===s||(Mt(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=e.length;i<o;++i)s=t.getPixelForValue(e[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function AA(n,t,e,r){return Le(n)?function PX(n,t,e,r){const i=e.parse(n[0],r),o=e.parse(n[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,u=a;Math.abs(s)>Math.abs(a)&&(l=a,u=s),t[e.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:o,min:s,max:a}}(n,t,e,r):t[e.axis]=e.parse(n,r),t}function IA(n,t,e,r){const i=n.iScale,o=n.vScale,s=i.getLabels(),a=i===o,l=[];let u,c,d,p;for(u=e,c=e+r;u<c;++u)p=t[u],d={},d[i.axis]=a||i.parse(s[u],u),l.push(AA(p,d,o,u));return l}function Ev(n){return n&&void 0!==n.barStart&&void 0!==n.barEnd}function xX(n,t,e,r){let i=t.borderSkipped;const o={};if(!i)return void(n.borderSkipped=o);if(!0===i)return void(n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:u,bottom:c}=function DX(n){let t,e,r,i,o;return n.horizontal?(t=n.base>n.x,e="left",r="right"):(t=n.base<n.y,e="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:e,end:r,reverse:t,top:i,bottom:o}}(n);"middle"===i&&e&&(n.enableBorderRadius=!0,(e._top||0)===r?i=u:(e._bottom||0)===r?i=c:(o[kA(c,s,a,l)]=!0,i=u)),o[kA(i,s,a,l)]=!0,n.borderSkipped=o}function kA(n,t,e,r){return r?(n=function SX(n,t,e){return n===t?e:n===e?t:n}(n,t,e),n=FA(n,e,t)):n=FA(n,t,e),n}function FA(n,t,e){return"start"===n?t:"end"===n?e:n}function TX(n,{inflateAmount:t},e){n.inflateAmount="auto"===t?1===e?.33:0:t}jr.prototype.datasetElementType=null,jr.prototype.dataElementType=null;let RA=(()=>{class n extends jr{parsePrimitiveData(e,r,i,o){return IA(e,r,i,o)}parseArrayData(e,r,i,o){return IA(e,r,i,o)}parseObjectData(e,r,i,o){const{iScale:s,vScale:a}=e,{xAxisKey:l="x",yAxisKey:u="y"}=this._parsing,c="x"===s.axis?l:u,d="x"===a.axis?l:u,p=[];let m,_,v,b;for(m=i,_=i+o;m<_;++m)b=r[m],v={},v[s.axis]=s.parse(qi(b,c),m),p.push(AA(qi(b,d),v,a,m));return p}updateRangeFromParsed(e,r,i,o){super.updateRangeFromParsed(e,r,i,o);const s=i._custom;s&&r===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const r=this._cachedMeta,{iScale:i,vScale:o}=r,s=this.getParsed(e),a=s._custom,l=Ev(a)?"["+a.start+", "+a.end+"]":""+o.getLabelForValue(s[o.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const r=this._cachedMeta;this.updateElements(r.data,0,r.data.length,e)}updateElements(e,r,i,o){const s="reset"===o,{index:a,_cachedMeta:{vScale:l}}=this,u=l.getBasePixel(),c=l.isHorizontal(),d=this._getRuler(),{sharedOptions:p,includeOptions:m}=this._getSharedOptions(r,o);for(let _=r;_<r+i;_++){const v=this.getParsed(_),b=s||xe(v[l.axis])?{base:u,head:u}:this._calculateBarValuePixels(_),w=this._calculateBarIndexPixels(_,d),D=(v._stacks||{})[l.axis],x={horizontal:c,base:b.base,enableBorderRadius:!D||Ev(v._custom)||a===D._top||a===D._bottom,x:c?b.head:w.center,y:c?w.center:b.head,height:c?w.size:Math.abs(b.size),width:c?Math.abs(b.size):w.size};m&&(x.options=p||this.resolveDataElementOptions(_,e[_].active?"active":o));const E=x.options||e[_].options;xX(x,E,D,a),TX(x,E,d.ratio),this.updateElement(e[_],_,x,o)}}_getStacks(e,r){const{iScale:i}=this._cachedMeta,o=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),s=i.options.stacked,a=[],l=u=>{const c=u.controller.getParsed(r),d=c&&c[u.vScale.axis];if(xe(d)||isNaN(d))return!0};for(const u of o)if((void 0===r||!l(u))&&((!1===s||-1===a.indexOf(u.stack)||void 0===s&&void 0===u.stack)&&a.push(u.stack),u.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,r,i){const o=this._getStacks(e,i),s=void 0!==r?o.indexOf(r):-1;return-1===s?o.length-1:s}_getRuler(){const e=this.options,r=this._cachedMeta,i=r.iScale,o=[];let s,a;for(s=0,a=r.data.length;s<a;++s)o.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const l=e.barThickness;return{min:l||bX(r),pixels:o,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:r,_stacked:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(e),u=l._custom,c=Ev(u);let _,v,d=l[r.axis],p=0,m=i?this.applyStack(r,l,i):d;m!==d&&(p=m-d,m=d),c&&(d=u.barStart,m=u.barEnd-u.barStart,0!==d&&Ur(d)!==Ur(u.barEnd)&&(p=0),p+=d);const b=xe(o)||c?p:o;let w=r.getPixelForValue(b);if(_=this.chart.getDataVisibility(e)?r.getPixelForValue(p+m):w,v=_-w,Math.abs(v)<s){v=function MX(n,t,e){return 0!==n?Ur(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}(v,r,a)*s,d===a&&(w-=v/2);const D=r.getPixelForDecimal(0),x=r.getPixelForDecimal(1),E=Math.min(D,x),I=Math.max(D,x);w=Math.max(Math.min(w,I),E),_=w+v}if(w===r.getPixelForValue(a)){const D=Ur(v)*r.getLineWidthForValue(a)/2;w+=D,v-=D}return{size:v,base:w,head:_,center:_+v/2}}_calculateBarIndexPixels(e,r){const i=r.scale,o=this.options,s=o.skipNull,a=K(o.maxBarThickness,1/0);let l,u;if(r.grouped){const c=s?this._getStackCount(e):r.stackCount,d="flex"===o.barThickness?function wX(n,t,e,r){const i=t.pixels,o=i[n];let s=n>0?i[n-1]:null,a=n<i.length-1?i[n+1]:null;const l=e.categoryPercentage;null===s&&(s=o-(null===a?t.end-t.start:a-o)),null===a&&(a=o+o-s);const u=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:e.barPercentage,start:u}}(e,r,o,c):function CX(n,t,e,r){const i=e.barThickness;let o,s;return xe(i)?(o=t.min*e.categoryPercentage,s=e.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[n]-o/2}}(e,r,o,c),p=this._getStackIndex(this.index,this._cachedMeta.stack,s?e:void 0);l=d.start+d.chunk*p+d.chunk/2,u=Math.min(a,d.chunk*d.ratio)}else l=i.getPixelForValue(this.getParsed(e)[i.axis],e),u=Math.min(a,r.min*r.ratio);return{base:l-u/2,head:l+u/2,center:l,size:u}}draw(){const e=this._cachedMeta,r=e.vScale,i=e.data,o=i.length;let s=0;for(;s<o;++s)null!==this.getParsed(s)[r.axis]&&i[s].draw(this._ctx)}}return n.id="bar",n.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},n.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},n})(),OX=(()=>{class n extends jr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,r,i,o){const s=super.parsePrimitiveData(e,r,i,o);for(let a=0;a<s.length;a++)s[a]._custom=this.resolveDataElementOptions(a+i).radius;return s}parseArrayData(e,r,i,o){const s=super.parseArrayData(e,r,i,o);for(let a=0;a<s.length;a++)s[a]._custom=K(r[i+a][2],this.resolveDataElementOptions(a+i).radius);return s}parseObjectData(e,r,i,o){const s=super.parseObjectData(e,r,i,o);for(let a=0;a<s.length;a++){const l=r[i+a];s[a]._custom=K(l&&l.r&&+l.r,this.resolveDataElementOptions(a+i).radius)}return s}getMaxOverflow(){const e=this._cachedMeta.data;let r=0;for(let i=e.length-1;i>=0;--i)r=Math.max(r,e[i].size(this.resolveDataElementOptions(i))/2);return r>0&&r}getLabelAndValue(e){const r=this._cachedMeta,{xScale:i,yScale:o}=r,s=this.getParsed(e),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),u=s._custom;return{label:r.label,value:"("+a+", "+l+(u?", "+u:"")+")"}}update(e){const r=this._cachedMeta.data;this.updateElements(r,0,r.length,e)}updateElements(e,r,i,o){const s="reset"===o,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(r,o),d=a.axis,p=l.axis;for(let m=r;m<r+i;m++){const _=e[m],v=!s&&this.getParsed(m),b={},w=b[d]=s?a.getPixelForDecimal(.5):a.getPixelForValue(v[d]),D=b[p]=s?l.getBasePixel():l.getPixelForValue(v[p]);b.skip=isNaN(w)||isNaN(D),c&&(b.options=u||this.resolveDataElementOptions(m,_.active?"active":o),s&&(b.options.radius=0)),this.updateElement(_,m,b,o)}}resolveDataElementOptions(e,r){const i=this.getParsed(e);let o=super.resolveDataElementOptions(e,r);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const s=o.radius;return"active"!==r&&(o.radius=0),o.radius+=K(i&&i._custom,s),o}}return n.id="bubble",n.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},n.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},n})(),NA=(()=>{class n extends jr{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const i=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=i;else{let a,l,s=u=>+i[u];if(ge(i[e])){const{key:u="value"}=this._parsing;s=c=>+qi(i[c],u)}for(a=e,l=e+r;a<l;++a)o._parsed[a]=s(a)}}_getRotation(){return Nt(this.options.rotation-90)}_getCircumference(){return Nt(this.options.circumference)}_getRotationExtents(){let e=Ue,r=-Ue;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const o=this.chart.getDatasetMeta(i).controller,s=o._getRotation(),a=o._getCircumference();e=Math.min(e,s),r=Math.max(r,s+a)}return{rotation:e,circumference:r-e}}update(e){const r=this.chart,{chartArea:i}=r,o=this._cachedMeta,s=o.data,a=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,l=Math.max((Math.min(i.width,i.height)-a)/2,0),u=Math.min(((n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100:n/t)(this.options.cutout,l),1),c=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:m,ratioY:_,offsetX:v,offsetY:b}=function EX(n,t,e){let r=1,i=1,o=0,s=0;if(t<Ue){const a=n,l=a+t,u=Math.cos(a),c=Math.sin(a),d=Math.cos(l),p=Math.sin(l),m=(x,E,I)=>ou(x,a,l,!0)?1:Math.max(E,E*e,I,I*e),_=(x,E,I)=>ou(x,a,l,!0)?-1:Math.min(E,E*e,I,I*e),v=m(0,u,d),b=m(mt,c,p),w=_(Ee,u,d),D=_(Ee+mt,c,p);r=(v-w)/2,i=(b-D)/2,o=-(v+w)/2,s=-(b+D)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}(p,d,u),x=Math.max(Math.min((i.width-a)/m,(i.height-a)/_)/2,0),E=DE(this.options.radius,x),R=(E-Math.max(E*u,0))/this._getVisibleDatasetWeightTotal();this.offsetX=v*E,this.offsetY=b*E,o.total=this.calculateTotal(),this.outerRadius=E-R*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-R*c,0),this.updateElements(s,0,s.length,e)}_circumference(e,r){const i=this.options,o=this._cachedMeta,s=this._getCircumference();return r&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*s/Ue)}updateElements(e,r,i,o){const s="reset"===o,a=this.chart,l=a.chartArea,d=(l.left+l.right)/2,p=(l.top+l.bottom)/2,m=s&&a.options.animation.animateScale,_=m?0:this.innerRadius,v=m?0:this.outerRadius,{sharedOptions:b,includeOptions:w}=this._getSharedOptions(r,o);let x,D=this._getRotation();for(x=0;x<r;++x)D+=this._circumference(x,s);for(x=r;x<r+i;++x){const E=this._circumference(x,s),I=e[x],R={x:d+this.offsetX,y:p+this.offsetY,startAngle:D,endAngle:D+E,circumference:E,outerRadius:v,innerRadius:_};w&&(R.options=b||this.resolveDataElementOptions(x,I.active?"active":o)),D+=E,this.updateElement(I,x,R,o)}}calculateTotal(){const e=this._cachedMeta,r=e.data;let o,i=0;for(o=0;o<r.length;o++){const s=e._parsed[o];null!==s&&!isNaN(s)&&this.chart.getDataVisibility(o)&&!r[o].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(e){const r=this._cachedMeta.total;return r>0&&!isNaN(e)?Ue*(Math.abs(e)/r):0}getLabelAndValue(e){const i=this.chart,o=i.data.labels||[],s=fu(this._cachedMeta._parsed[e],i.options.locale);return{label:o[e]||"",value:s}}getMaxBorderWidth(e){let r=0;const i=this.chart;let o,s,a,l,u;if(!e)for(o=0,s=i.data.datasets.length;o<s;++o)if(i.isDatasetVisible(o)){a=i.getDatasetMeta(o),e=a.data,l=a.controller;break}if(!e)return 0;for(o=0,s=e.length;o<s;++o)u=l.resolveDataElementOptions(o),"inner"!==u.borderAlign&&(r=Math.max(r,u.borderWidth||0,u.hoverBorderWidth||0));return r}getMaxOffset(e){let r=0;for(let i=0,o=e.length;i<o;++i){const s=this.resolveDataElementOptions(i);r=Math.max(r,s.offset||0,s.hoverOffset||0)}return r}_getRingWeightOffset(e){let r=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(r+=this._getRingWeight(i));return r}_getRingWeight(e){return Math.max(K(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return n.id="doughnut",n.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},n.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},n.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r}}=t.legend.options;return e.labels.map((i,o)=>{const a=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const r=": "+t.formattedValue;return Le(e)?(e=e.slice(),e[0]+=r):e+=r,e}}}}},n})(),AX=(()=>{class n extends jr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const r=this._cachedMeta,{dataset:i,data:o=[],_dataset:s}=r,a=this.chart._animationsDisabled;let{start:l,count:u}=UE(r,o,a);this._drawStart=l,this._drawCount=u,jE(r)&&(l=0,u=o.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=o;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:c},e),this.updateElements(o,l,u,e)}updateElements(e,r,i,o){const s="reset"===o,{iScale:a,vScale:l,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(r,o),m=a.axis,_=l.axis,{spanGaps:v,segment:b}=this.options,w=Js(v)?v:Number.POSITIVE_INFINITY,D=this.chart._animationsDisabled||s||"none"===o;let x=r>0&&this.getParsed(r-1);for(let E=r;E<r+i;++E){const I=e[E],R=this.getParsed(E),B=D?I:{},$=xe(R[_]),z=B[m]=a.getPixelForValue(R[m],E),ee=B[_]=s||$?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,R,u):R[_],E);B.skip=isNaN(z)||isNaN(ee)||$,B.stop=E>0&&Math.abs(R[m]-x[m])>w,b&&(B.parsed=R,B.raw=c.data[E]),p&&(B.options=d||this.resolveDataElementOptions(E,I.active?"active":o)),D||this.updateElement(I,E,B,o),x=R}}getMaxOverflow(){const e=this._cachedMeta,r=e.dataset,i=r.options&&r.options.borderWidth||0,o=e.data||[];if(!o.length)return i;const s=o[0].size(this.resolveDataElementOptions(0)),a=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,s,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return n.id="line",n.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},n.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},n})(),IX=(()=>{class n extends jr{constructor(e,r){super(e,r),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const i=this.chart,o=i.data.labels||[],s=fu(this._cachedMeta._parsed[e].r,i.options.locale);return{label:o[e]||"",value:s}}parseObjectData(e,r,i,o){return uA.bind(this)(e,r,i,o)}update(e){const r=this._cachedMeta.data;this._updateRadius(),this.updateElements(r,0,r.length,e)}getMinMax(){const r={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((i,o)=>{const s=this.getParsed(o).r;!isNaN(s)&&this.chart.getDataVisibility(o)&&(s<r.min&&(r.min=s),s>r.max&&(r.max=s))}),r}_updateRadius(){const e=this.chart,r=e.chartArea,i=e.options,o=Math.min(r.right-r.left,r.bottom-r.top),s=Math.max(o/2,0),l=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=s-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,r,i,o){const s="reset"===o,a=this.chart,u=a.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,p=c.yCenter,m=c.getIndexAngle(0)-.5*Ee;let v,_=m;const b=360/this.countVisibleElements();for(v=0;v<r;++v)_+=this._computeAngle(v,o,b);for(v=r;v<r+i;v++){const w=e[v];let D=_,x=_+this._computeAngle(v,o,b),E=a.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;_=x,s&&(u.animateScale&&(E=0),u.animateRotate&&(D=x=m));const I={x:d,y:p,innerRadius:0,outerRadius:E,startAngle:D,endAngle:x,options:this.resolveDataElementOptions(v,w.active?"active":o)};this.updateElement(w,v,I,o)}}countVisibleElements(){let r=0;return this._cachedMeta.data.forEach((i,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&r++}),r}_computeAngle(e,r,i){return this.chart.getDataVisibility(e)?Nt(this.resolveDataElementOptions(e,r).angle||i):0}}return n.id="polarArea",n.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},n.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r}}=t.legend.options;return e.labels.map((i,o)=>{const a=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},n})(),kX=(()=>{class n extends NA{}return n.id="pie",n.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},n})(),FX=(()=>{class n extends jr{getLabelAndValue(e){const r=this._cachedMeta.vScale,i=this.getParsed(e);return{label:r.getLabels()[e],value:""+r.getLabelForValue(i[r.axis])}}parseObjectData(e,r,i,o){return uA.bind(this)(e,r,i,o)}update(e){const r=this._cachedMeta,i=r.dataset,o=r.data||[],s=r.iScale.getLabels();if(i.points=o,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(i,void 0,{_loop:!0,_fullLoop:s.length===o.length,options:a},e)}this.updateElements(o,0,o.length,e)}updateElements(e,r,i,o){const s=this._cachedMeta.rScale,a="reset"===o;for(let l=r;l<r+i;l++){const u=e[l],c=this.resolveDataElementOptions(l,u.active?"active":o),d=s.getPointPositionForValue(l,this.getParsed(l).r),p=a?s.xCenter:d.x,m=a?s.yCenter:d.y,_={x:p,y:m,angle:d.angle,skip:isNaN(p)||isNaN(m),options:c};this.updateElement(u,l,_,o)}}}return n.id="radar",n.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},n.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},n})();class Kt{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return Js(this.x)&&Js(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}Kt.defaults={},Kt.defaultRoutes=void 0;const LA={values:n=>Le(n)?n:""+n,numeric(n,t,e){if(0===n)return"0";const r=this.chart.options.locale;let i,o=n;if(e.length>1){const u=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=function RX(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}(n,e)}const s=ur(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),fu(n,r,l)},logarithmic(n,t,e){if(0===n)return"0";const r=n/Math.pow(10,Math.floor(ur(n)));return 1===r||2===r||5===r?LA.numeric.call(this,n,t,e):""}};var Ef={formatters:LA};function Af(n,t,e,r,i){const o=K(r,0),s=Math.min(K(i,n.length),n.length);let l,u,c,a=0;for(e=Math.ceil(e),i&&(l=i-r,e=l/Math.floor(l/e)),c=o;c<0;)a++,c=Math.round(o+a*e);for(u=Math.max(o,0);u<s;u++)u===c&&(t.push(n[u]),a++,c=Math.round(o+a*e))}we.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,t)=>t.lineWidth,tickColor:(n,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ef.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),we.route("scale.ticks","color","","color"),we.route("scale.grid","color","","borderColor"),we.route("scale.grid","borderColor","","borderColor"),we.route("scale.title","color","","color"),we.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n}),we.describe("scales",{_fallback:"scale"}),we.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n});const BA=(n,t,e)=>"top"===t||"left"===t?n[t]+e:n[t]-e;function VA(n,t){const e=[],r=n.length/t,i=n.length;let o=0;for(;o<i;o+=r)e.push(n[Math.floor(o)]);return e}function $X(n,t,e){const r=n.ticks.length,i=Math.min(t,r-1),o=n._startPixel,s=n._endPixel,a=1e-6;let u,l=n.getPixelForTick(i);if(!(e&&(u=1===r?Math.max(l-o,s-l):0===t?(n.getPixelForTick(1)-l)/2:(l-n.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<o-a||l>s+a)))return l}function pu(n){return n.drawTicks?n.tickLength:0}function UA(n,t){if(!n.display)return 0;const e=Dt(n.font,t),r=Lt(n.padding);return(Le(n.text)?n.text.length:1)*e.lineHeight+r.height}function GX(n,t,e){let r=fv(n);return(e&&"right"!==t||!e&&"right"===t)&&(r=(n=>"left"===n?"right":"right"===n?"left":n)(r)),r}class $o extends Kt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:i}=this;return t=lr(t,Number.POSITIVE_INFINITY),e=lr(e,Number.NEGATIVE_INFINITY),r=lr(r,Number.POSITIVE_INFINITY),i=lr(i,Number.NEGATIVE_INFINITY),{min:lr(t,r),max:lr(e,i),minDefined:ft(t),maxDefined:ft(e)}}getMinMax(t){let s,{min:e,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:e,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,u=a.length;l<u;++l)s=a[l].controller.getMinMax(this,t),i||(e=Math.min(e,s.min)),o||(r=Math.max(r,s.max));return e=o&&e>r?r:e,r=i&&e>r?e:r,{min:lr(e,lr(r,e)),max:lr(r,lr(e,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qe(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function CK(n,t,e){const{min:r,max:i}=n,o=DE(t,(i-r)/2),s=(a,l)=>e&&0===a?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?VA(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function NX(n,t){const e=n.options.ticks,r=e.maxTicksLimit||function LX(n){const t=n.options.offset,e=n._tickSize();return Math.floor(Math.min(n._length/e+(t?0:1),n._maxLength/e))}(n),i=e.major.enabled?function VX(n){const t=[];let e,r;for(e=0,r=n.length;e<r;e++)n[e].major&&t.push(e);return t}(t):[],o=i.length,s=i[0],a=i[o-1],l=[];if(o>r)return function UX(n,t,e,r){let s,i=0,o=e[0];for(r=Math.ceil(r),s=0;s<n.length;s++)s===o&&(t.push(n[s]),i++,o=e[i*r])}(t,l,i,o/r),l;const u=function BX(n,t,e){const r=function jX(n){const t=n.length;let e,r;if(t<2)return!1;for(r=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==r)return!1;return r}(n),i=t.length/e;if(!r)return Math.max(i,1);const o=function kQ(n){const t=[],e=Math.sqrt(n);let r;for(r=1;r<e;r++)n%r==0&&(t.push(r),t.push(n/r));return e===(0|e)&&t.push(e),t.sort((i,o)=>i-o).pop(),t}(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}(i,t,r);if(o>0){let c,d;const p=o>1?Math.round((a-s)/(o-1)):null;for(Af(t,l,u,xe(p)?0:s-p,s),c=0,d=o-1;c<d;c++)Af(t,l,u,i[c],i[c+1]);return Af(t,l,u,a,xe(p)?t.length:a+p),l}return Af(t,l,u),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,r,t=this.options.reverse;this.isHorizontal()?(e=this.left,r=this.right):(e=this.top,r=this.bottom,t=!t),this._startPixel=e,this._endPixel=r,this._reversePixels=t,this._length=r-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){qe(this.options.afterUpdate,[this])}beforeSetDimensions(){qe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){qe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),qe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){qe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=qe(e.callback,[o.value,r,t],this)}afterTickToLabelConversion(){qe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){qe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,l,u,s=i;if(!this._isVisible()||!e.display||i>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,p=c.highest.height,m=Qt(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),d+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-pu(t.grid)-e.padding-UA(t.title,this.chart.options.font),u=Math.sqrt(d*d+p*p),s=vf(Math.min(Math.asin(Qt((c.highest.height+6)/a,-1,1)),Math.asin(Qt(l/u,-1,1))-Math.asin(Qt(p/u,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){qe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=UA(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=pu(o)+l):(t.height=this.maxHeight,t.width=pu(o)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:p}=this._getLabelSizes(),m=2*r.padding,_=Nt(this.labelRotation),v=Math.cos(_),b=Math.sin(_);a?t.height=Math.min(this.maxHeight,t.height+(r.mirror?0:b*d.width+v*p.height)+m):t.width=Math.min(this.maxWidth,t.width+(r.mirror?0:v*d.width+b*p.height)+m),this._calculatePadding(u,c,b,v)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=0!==this.labelRotation,u="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?u?(p=i*t.width,m=r*e.height):(p=r*t.height,m=i*e.width):"start"===o?m=e.width:"end"===o?p=t.width:"inner"!==o&&(p=t.width/2,m=e.width/2),this.paddingLeft=Math.max((p-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((m-d+s)*this.width/(this.width-d),0)}else{let c=e.height/2,d=t.height/2;"start"===o?(c=0,d=t.height):"end"===o&&(c=e.height,d=0),this.paddingTop=c+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)xe(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=VA(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,e){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let u,c,d,p,m,_,v,b,w,D,x,a=0,l=0;for(u=0;u<e;++u){if(p=t[u].label,m=this._resolveTickFontOptions(u),r.font=_=m.string,v=i[_]=i[_]||{data:{},gc:[]},b=m.lineHeight,w=D=0,xe(p)||Le(p)){if(Le(p))for(c=0,d=p.length;c<d;++c)x=p[c],!xe(x)&&!Le(x)&&(w=Df(r,v.data,v.gc,w,x),D+=b)}else w=Df(r,v.data,v.gc,w,p),D=b;o.push(w),s.push(D),a=Math.max(w,a),l=Math.max(D,l)}!function zX(n,t){Be(n,e=>{const r=e.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete e.data[r[o]];r.splice(0,i)}})}(i,e);const E=o.indexOf(a),I=s.indexOf(l),R=B=>({width:o[B]||0,height:s[B]||0});return{first:R(0),last:R(e-1),widest:R(E),highest:R(I),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return function NQ(n){return Qt(n,-32768,32767)}(this._alignToPixels?Bo(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function WX(n,t,e){return Ki(n,{tick:e,index:t,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=function qX(n,t){return Ki(n,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Nt(this.labelRotation),r=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,i=this.options,{grid:o,position:s}=i,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),d=pu(o),p=[],m=o.setContext(this.getContext()),_=m.drawBorder?m.borderWidth:0,v=_/2,b=function(Y){return Bo(r,Y,_)};let w,D,x,E,I,R,B,$,z,ee,fe,ae;if("top"===s)w=b(this.bottom),R=this.bottom-d,$=w-v,ee=b(t.top)+v,ae=t.bottom;else if("bottom"===s)w=b(this.top),ee=t.top,ae=b(t.bottom)-v,R=w+v,$=this.top+d;else if("left"===s)w=b(this.right),I=this.right-d,B=w-v,z=b(t.left)+v,fe=t.right;else if("right"===s)w=b(this.left),z=t.left,fe=b(t.right)-v,I=w+v,B=this.left+d;else if("x"===e){if("center"===s)w=b((t.top+t.bottom)/2+.5);else if(ge(s)){const Y=Object.keys(s)[0];w=b(this.chart.scales[Y].getPixelForValue(s[Y]))}ee=t.top,ae=t.bottom,R=w+v,$=R+d}else if("y"===e){if("center"===s)w=b((t.left+t.right)/2);else if(ge(s)){const Y=Object.keys(s)[0];w=b(this.chart.scales[Y].getPixelForValue(s[Y]))}I=w-v,B=I-d,z=t.left,fe=t.right}const Se=K(i.ticks.maxTicksLimit,c),yt=Math.max(1,Math.ceil(c/Se));for(D=0;D<c;D+=yt){const Y=o.setContext(this.getContext(D)),U=Y.lineWidth,H=Y.color,Z=Y.borderDash||[],_e=Y.borderDashOffset,We=Y.tickWidth,qt=Y.tickColor,Xe=Y.tickBorderDash||[],rn=Y.tickBorderDashOffset;x=$X(this,D,a),void 0!==x&&(E=Bo(r,x,U),l?I=B=z=fe=E:R=$=ee=ae=E,p.push({tx1:I,ty1:R,tx2:B,ty2:$,x1:z,y1:ee,x2:fe,y2:ae,width:U,color:H,borderDash:Z,borderDashOffset:_e,tickWidth:We,tickColor:qt,tickBorderDash:Xe,tickBorderDashOffset:rn}))}return this._ticksLength=c,this._borderValue=w,p}_computeLabelItems(t){const e=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=o,p=pu(r.grid),m=p+c,_=d?-c:m,v=-Nt(this.labelRotation),b=[];let w,D,x,E,I,R,B,$,z,ee,fe,ae,Se="middle";if("top"===i)R=this.bottom-_,B=this._getXAxisLabelAlignment();else if("bottom"===i)R=this.top+_,B=this._getXAxisLabelAlignment();else if("left"===i){const Y=this._getYAxisLabelAlignment(p);B=Y.textAlign,I=Y.x}else if("right"===i){const Y=this._getYAxisLabelAlignment(p);B=Y.textAlign,I=Y.x}else if("x"===e){if("center"===i)R=(t.top+t.bottom)/2+m;else if(ge(i)){const Y=Object.keys(i)[0];R=this.chart.scales[Y].getPixelForValue(i[Y])+m}B=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)I=(t.left+t.right)/2-m;else if(ge(i)){const Y=Object.keys(i)[0];I=this.chart.scales[Y].getPixelForValue(i[Y])}B=this._getYAxisLabelAlignment(p).textAlign}"y"===e&&("start"===l?Se="top":"end"===l&&(Se="bottom"));const yt=this._getLabelSizes();for(w=0,D=a.length;w<D;++w){x=a[w],E=x.label;const Y=o.setContext(this.getContext(w));$=this.getPixelForTick(w)+o.labelOffset,z=this._resolveTickFontOptions(w),ee=z.lineHeight,fe=Le(E)?E.length:1;const U=fe/2,H=Y.color,Z=Y.textStrokeColor,_e=Y.textStrokeWidth;let qt,We=B;if(s?(I=$,"inner"===B&&(We=w===D-1?this.options.reverse?"left":"right":0===w?this.options.reverse?"right":"left":"center"),ae="top"===i?"near"===u||0!==v?-fe*ee+ee/2:"center"===u?-yt.highest.height/2-U*ee+ee:ee/2-yt.highest.height:"near"===u||0!==v?ee/2:"center"===u?yt.highest.height/2-U*ee:yt.highest.height-fe*ee,d&&(ae*=-1)):(R=$,ae=(1-fe)*ee/2),Y.showLabelBackdrop){const Xe=Lt(Y.backdropPadding),rn=yt.heights[w],Te=yt.widths[w];let Pi=R+ae-Xe.top,so=I-Xe.left;switch(Se){case"middle":Pi-=rn/2;break;case"bottom":Pi-=rn}switch(B){case"center":so-=Te/2;break;case"right":so-=Te}qt={left:so,top:Pi,width:Te+Xe.width,height:rn+Xe.height,color:Y.backdropColor}}b.push({rotation:v,label:E,font:z,color:H,strokeColor:Z,strokeWidth:_e,textOffset:ae,textAlign:We,textBaseline:Se,translation:[I,R],backdrop:qt})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Nt(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=t+o,l=this._getLabelSizes().widest.width;let u,c;return"left"===e?i?(c=this.right+o,"near"===r?u="left":"center"===r?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,"near"===r?u="right":"center"===r?(u="center",c-=l/2):(u="left",c=this.left)):"right"===e?i?(c=this.left+o,"near"===r?u="right":"center"===r?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,"near"===r?u="left":"center"===r?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:i,width:o,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(e.display)for(o=0,s=i.length;o<s;++o){const l=i[o];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:r}}=this,i=r.setContext(this.getContext()),o=r.drawBorder?i.borderWidth:0;if(!o)return;const s=r.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,u,c,d;this.isHorizontal()?(l=Bo(t,this.left,o)-o/2,u=Bo(t,this.right,s)+s/2,c=d=a):(c=Bo(t,this.top,o)-o/2,d=Bo(t,this.bottom,s)+s/2,l=u=a),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(l,c),e.lineTo(u,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&ta(r,i);const o=this._labelItems||(this._labelItems=this._computeLabelItems(t));let s,a;for(s=0,a=o.length;s<a;++s){const l=o[s],u=l.font,c=l.label;l.backdrop&&(r.fillStyle=l.backdrop.color,r.fillRect(l.backdrop.left,l.backdrop.top,l.backdrop.width,l.backdrop.height)),Vo(r,c,0,l.textOffset,u,l)}i&&na(r)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:i}}=this;if(!r.display)return;const o=Dt(r.font),s=Lt(r.padding),a=r.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||ge(e)?(l+=s.bottom,Le(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:u,titleY:c,maxWidth:d,rotation:p}=function YX(n,t,e,r){const{top:i,left:o,bottom:s,right:a,chart:l}=n,{chartArea:u,scales:c}=l;let p,m,_,d=0;const v=s-i,b=a-o;if(n.isHorizontal()){if(m=gn(r,o,a),ge(e)){const w=Object.keys(e)[0];_=c[w].getPixelForValue(e[w])+v-t}else _="center"===e?(u.bottom+u.top)/2+v-t:BA(n,e,t);p=a-o}else{if(ge(e)){const w=Object.keys(e)[0];m=c[w].getPixelForValue(e[w])-b+t}else m="center"===e?(u.left+u.right)/2-b+t:BA(n,e,t);_=gn(r,s,i),d="left"===e?-mt:mt}return{titleX:m,titleY:_,maxWidth:p,rotation:d}}(this,l,e,a);Vo(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:p,textAlign:GX(a,e,i),textBaseline:"middle",translation:[u,c]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=K(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===$o.prototype.draw?[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:e,draw:i=>{this.drawLabels(i)}}]:[{z:e,draw:i=>{this.draw(i)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=e.length;o<s;++o){const a=e[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){return Dt(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class If{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function XX(n){return"id"in n&&"defaults"in n})(e)&&(r=this.register(e));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function QX(n,t,e){const r=_i(Object.create(null),[e?we.get(e):{},we.get(t),n.defaults]);we.set(t,r),n.defaultRoutes&&function KX(n,t){Object.keys(t).forEach(e=>{const r=e.split("."),i=r.pop(),o=[n].concat(r).join("."),s=t[e].split("."),a=s.pop(),l=s.join(".");we.route(o,i,l,a)})}(t,n.defaultRoutes),n.descriptors&&we.describe(t,n.descriptors)}(t,s,r),this.override&&we.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,i=this.scope;r in e&&delete e[r],i&&r in we[i]&&(delete we[i][r],this.override&&delete Lo[r])}}var Hr=new class ZX{constructor(){this.controllers=new If(jr,"datasets",!0),this.elements=new If(Kt,"elements"),this.plugins=new If(Object,"plugins"),this.scales=new If($o,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Be(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,e,r){const i=cv(t);qe(r["before"+i],[],r),e[t](r),qe(r["after"+i],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+r+".");return i}},JX=Object.freeze({__proto__:null,BarController:RA,BubbleController:OX,DoughnutController:NA,LineController:AX,PolarAreaController:IX,PieController:kX,RadarController:FX,ScatterController:(()=>{class n extends jr{update(e){const r=this._cachedMeta,{data:i=[]}=r,o=this.chart._animationsDisabled;let{start:s,count:a}=UE(r,i,o);if(this._drawStart=s,this._drawCount=a,jE(r)&&(s=0,a=i.length),this.options.showLine){const{dataset:l,_dataset:u}=r;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!u._decimated,l.points=i;const c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(l,void 0,{animated:!o,options:c},e)}this.updateElements(i,s,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=Hr.getElement("line")),super.addElements()}updateElements(e,r,i,o){const s="reset"===o,{iScale:a,vScale:l,_stacked:u,_dataset:c}=this._cachedMeta,d=this.resolveDataElementOptions(r,o),p=this.getSharedOptions(d),m=this.includeOptions(o,p),_=a.axis,v=l.axis,{spanGaps:b,segment:w}=this.options,D=Js(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||"none"===o;let E=r>0&&this.getParsed(r-1);for(let I=r;I<r+i;++I){const R=e[I],B=this.getParsed(I),$=x?R:{},z=xe(B[v]),ee=$[_]=a.getPixelForValue(B[_],I),fe=$[v]=s||z?l.getBasePixel():l.getPixelForValue(u?this.applyStack(l,B,u):B[v],I);$.skip=isNaN(ee)||isNaN(fe)||z,$.stop=I>0&&Math.abs(B[_]-E[_])>D,w&&($.parsed=B,$.raw=c.data[I]),m&&($.options=p||this.resolveDataElementOptions(I,R.active?"active":o)),x||this.updateElement(R,I,$,o),E=B}this.updateSharedOptions(p,o,d)}getMaxOverflow(){const e=this._cachedMeta,r=e.data||[];if(!this.options.showLine){let l=0;for(let u=r.length-1;u>=0;--u)l=Math.max(l,r[u].size(this.resolveDataElementOptions(u))/2);return l>0&&l}const i=e.dataset,o=i.options&&i.options.borderWidth||0;if(!r.length)return o;const s=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(o,s,a)/2}}return n.id="scatter",n.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},n.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},n})()});function zo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var jA={_date:(()=>{class n{constructor(e){this.options=e||{}}init(e){}formats(){return zo()}parse(e,r){return zo()}format(e,r){return zo()}add(e,r,i){return zo()}diff(e,r,i){return zo()}startOf(e,r,i){return zo()}endOf(e,r){return zo()}}return n.override=function(t){Object.assign(n.prototype,t)},n})()};function eZ(n,t,e,r){const{controller:i,data:o,_sorted:s}=n,a=i._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&s&&o.length){const l=a._reversePixels?LQ:vi;if(!r)return l(o,t,e);if(i._sharedOptions){const u=o[0],c="function"==typeof u.getRange&&u.getRange(t);if(c){const d=l(o,t,e-c),p=l(o,t,e+c);return{lo:d.lo,hi:p.hi}}}}return{lo:0,hi:o.length-1}}function gu(n,t,e,r,i){const o=n.getSortedVisibleDatasetMetas(),s=e[t];for(let a=0,l=o.length;a<l;++a){const{index:u,data:c}=o[a],{lo:d,hi:p}=eZ(o[a],t,s,i);for(let m=d;m<=p;++m){const _=c[m];_.skip||r(_,u,m)}}}function Av(n,t,e,r,i){const o=[];return!i&&!n.isPointInArea(t)||gu(n,e,t,function(a,l,u){!i&&!cu(a,n.chartArea,0)||a.inRange(t.x,t.y,r)&&o.push({element:a,datasetIndex:l,index:u})},!0),o}function Iv(n,t,e,r,i,o){return o||n.isPointInArea(t)?"r"!==e||r?function rZ(n,t,e,r,i,o){let s=[];const a=function tZ(n){const t=-1!==n.indexOf("x"),e=-1!==n.indexOf("y");return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=e?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}(e);let l=Number.POSITIVE_INFINITY;return gu(n,e,t,function u(c,d,p){const m=c.inRange(t.x,t.y,i);if(r&&!m)return;const _=c.getCenterPoint(i);if(!o&&!n.isPointInArea(_)&&!m)return;const b=a(t,_);b<l?(s=[{element:c,datasetIndex:d,index:p}],l=b):b===l&&s.push({element:c,datasetIndex:d,index:p})}),s}(n,t,e,r,i,o):function nZ(n,t,e,r){let i=[];return gu(n,e,t,function o(s,a,l){const{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],r),{angle:d}=FE(s,{x:t.x,y:t.y});ou(d,u,c)&&i.push({element:s,datasetIndex:a,index:l})}),i}(n,t,e,i):[]}function HA(n,t,e,r,i){const o=[],s="x"===e?"inXRange":"inYRange";let a=!1;return gu(n,e,t,(l,u,c)=>{l[s](t[e],i)&&(o.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var iZ={evaluateInteractionItems:gu,modes:{index(n,t,e,r){const i=jo(t,n),o=e.axis||"x",s=e.includeInvisible||!1,a=e.intersect?Av(n,i,o,r,s):Iv(n,i,o,!1,r,s),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(n,t,e,r){const i=jo(t,n),o=e.axis||"xy",s=e.includeInvisible||!1;let a=e.intersect?Av(n,i,o,r,s):Iv(n,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,u=n.getDatasetMeta(l).data;a=[];for(let c=0;c<u.length;++c)a.push({element:u[c],datasetIndex:l,index:c})}return a},point:(n,t,e,r)=>Av(n,jo(t,n),e.axis||"xy",r,e.includeInvisible||!1),nearest:(n,t,e,r)=>Iv(n,jo(t,n),e.axis||"xy",e.intersect,r,e.includeInvisible||!1),x:(n,t,e,r)=>HA(n,jo(t,n),"x",e.intersect,r),y:(n,t,e,r)=>HA(n,jo(t,n),"y",e.intersect,r)}};const $A=["left","top","right","bottom"];function mu(n,t){return n.filter(e=>e.pos===t)}function zA(n,t){return n.filter(e=>-1===$A.indexOf(e.pos)&&e.box.axis===t)}function _u(n,t){return n.sort((e,r)=>{const i=t?r:e,o=t?e:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function qA(n,t,e,r){return Math.max(n[e],t[e])+Math.max(n[r],t[r])}function WA(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function uZ(n,t,e,r){const{pos:i,box:o}=e,s=n.maxPadding;if(!ge(i)){e.size&&(n[i]-=e.size);const d=r[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,n[i]+=e.size}o.getPadding&&WA(s,o.getPadding());const a=Math.max(0,t.outerWidth-qA(s,n,"left","right")),l=Math.max(0,t.outerHeight-qA(s,n,"top","bottom")),u=a!==n.w,c=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:u,other:c}:{same:c,other:u}}function dZ(n,t){const e=t.maxPadding;return function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],e[s])}),o}(n?["left","right"]:["top","bottom"])}function yu(n,t,e,r){const i=[];let o,s,a,l,u,c;for(o=0,s=n.length,u=0;o<s;++o){a=n[o],l=a.box,l.update(a.width||t.w,a.height||t.h,dZ(a.horizontal,t));const{same:d,other:p}=uZ(t,e,a,r);u|=d&&i.length,c=c||p,l.fullSize||i.push(a)}return u&&yu(i,t,e,r)||c}function kf(n,t,e,r,i){n.top=e,n.left=t,n.right=t+r,n.bottom=e+i,n.width=r,n.height=i}function GA(n,t,e,r){const i=e.padding;let{x:o,y:s}=t;for(const a of n){const l=a.box,u=r[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/u.weight||1;if(a.horizontal){const d=t.w*c,p=u.size||l.height;Mt(u.start)&&(s=u.start),l.fullSize?kf(l,i.left,s,e.outerWidth-i.right-i.left,p):kf(l,t.left+u.placed,s,d,p),u.start=s,u.placed+=d,s=l.bottom}else{const d=t.h*c,p=u.size||l.width;Mt(u.start)&&(o=u.start),l.fullSize?kf(l,o,i.top,p,e.outerHeight-i.bottom-i.top):kf(l,o,t.top+u.placed,p,d),u.start=o,u.placed+=d,o=l.right}}t.x=o,t.y=s}we.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var mn={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){const e=n.boxes?n.boxes.indexOf(t):-1;-1!==e&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,r){if(!n)return;const i=Lt(n.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(e-i.height,0),a=function lZ(n){const t=function oZ(n){const t=[];let e,r,i,o,s,a;for(e=0,r=(n||[]).length;e<r;++e)i=n[e],({position:o,options:{stack:s,stackWeight:a=1}}=i),t.push({index:e,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}(n),e=_u(t.filter(u=>u.box.fullSize),!0),r=_u(mu(t,"left"),!0),i=_u(mu(t,"right")),o=_u(mu(t,"top"),!0),s=_u(mu(t,"bottom")),a=zA(t,"x"),l=zA(t,"y");return{fullSize:e,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:mu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}(n.boxes),l=a.vertical,u=a.horizontal;Be(n.boxes,v=>{"function"==typeof v.beforeLayout&&v.beforeLayout()});const c=l.reduce((v,b)=>b.box.options&&!1===b.box.options.display?v:v+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/c,hBoxMaxHeight:s/2}),p=Object.assign({},i);WA(p,Lt(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),_=function aZ(n,t){const e=function sZ(n){const t={};for(const e of n){const{stack:r,pos:i,stackWeight:o}=e;if(!r||!$A.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=n.length;o<s;++o){a=n[o];const{fullSize:l}=a.box,u=e[a.stack],c=u&&a.stackWeight/u.weight;a.horizontal?(a.width=c?c*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=c?c*i:l&&t.availableHeight)}return e}(l.concat(u),d);yu(a.fullSize,m,d,_),yu(l,m,d,_),yu(u,m,d,_)&&yu(l,m,d,_),function cZ(n){const t=n.maxPadding;function e(r){const i=Math.max(t[r]-n[r],0);return n[r]+=i,i}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}(m),GA(a.leftAndTop,m,d,_),m.x+=m.w,m.y+=m.h,GA(a.rightAndBottom,m,d,_),n.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Be(a.chartArea,v=>{const b=v.box;Object.assign(b,n.chartArea),b.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class YA{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,i){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):r)}}isAttached(t){return!0}updateConfig(t){}}class fZ extends YA{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ff="$chartjs",hZ={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},QA=n=>null===n||""===n,KA=!!zK&&{passive:!0};function mZ(n,t,e){n.canvas.removeEventListener(t,e,KA)}function Rf(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function yZ(n,t,e){const r=n.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Rf(a.addedNodes,r),s=s&&!Rf(a.removedNodes,r);s&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}function vZ(n,t,e){const r=n.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Rf(a.removedNodes,r),s=s&&!Rf(a.addedNodes,r);s&&e()});return i.observe(document,{childList:!0,subtree:!0}),i}const vu=new Map;let XA=0;function ZA(){const n=window.devicePixelRatio;n!==XA&&(XA=n,vu.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function wZ(n,t,e){const r=n.canvas,i=r&&Dv(r);if(!i)return;const o=VE((a,l)=>{const u=i.clientWidth;e(a,l),u<i.clientWidth&&e()},window),s=new ResizeObserver(a=>{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;0===u&&0===c||o(u,c)});return s.observe(i),function bZ(n,t){vu.size||window.addEventListener("resize",ZA),vu.set(n,t)}(n,o),s}function kv(n,t,e){e&&e.disconnect(),"resize"===t&&function CZ(n){vu.delete(n),vu.size||window.removeEventListener("resize",ZA)}(n)}function PZ(n,t,e){const r=n.canvas,i=VE(o=>{null!==n.ctx&&e(function _Z(n,t){const e=hZ[n.type]||n.type,{x:r,y:i}=jo(n,t);return{type:e,chart:t,native:n,x:void 0!==r?r:null,y:void 0!==i?i:null}}(o,n))},n,o=>{const s=o[0];return[s,s.offsetX,s.offsetY]});return function gZ(n,t,e){n.addEventListener(t,e,KA)}(r,t,i),i}class MZ extends YA{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function pZ(n,t){const e=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[Ff]={initial:{height:r,width:i,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",QA(i)){const o=hA(n,"width");void 0!==o&&(n.width=o)}if(QA(r))if(""===n.style.height)n.height=n.width/(t||2);else{const o=hA(n,"height");void 0!==o&&(n.height=o)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[Ff])return!1;const r=e[Ff].initial;["height","width"].forEach(o=>{const s=r[o];xe(s)?e.removeAttribute(o):e.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{e.style[o]=i[o]}),e.width=e.width,delete e[Ff],!0}addEventListener(t,e,r){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:yZ,detach:vZ,resize:wZ}[e]||PZ)(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),i=r[e];i&&(({attach:kv,detach:kv,resize:kv}[e]||mZ)(t,e,i),r[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,i){return function $K(n,t,e,r){const i=Of(n),o=Uo(i,"margin"),s=Tf(i.maxWidth,n,"clientWidth")||yf,a=Tf(i.maxHeight,n,"clientHeight")||yf,l=function HK(n,t,e){let r,i;if(void 0===t||void 0===e){const o=Dv(n);if(o){const s=o.getBoundingClientRect(),a=Of(o),l=Uo(a,"border","width"),u=Uo(a,"padding");t=s.width-u.width-l.width,e=s.height-u.height-l.height,r=Tf(a.maxWidth,o,"clientWidth"),i=Tf(a.maxHeight,o,"clientHeight")}else t=n.clientWidth,e=n.clientHeight}return{width:t,height:e,maxWidth:r||yf,maxHeight:i||yf}}(n,t,e);let{width:u,height:c}=l;if("content-box"===i.boxSizing){const d=Uo(i,"border","width"),p=Uo(i,"padding");u-=p.width+d.width,c-=p.height+d.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?Math.floor(u/r):c-o.height),u=xv(Math.min(u,s,l.maxWidth)),c=xv(Math.min(c,a,l.maxHeight)),u&&!c&&(c=xv(u/2)),{width:u,height:c}}(t,e,r,i)}isAttached(t){const e=Dv(t);return!(!e||!e.isConnected)}}class xZ{constructor(){this._init=[]}notify(t,e,r,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,r,i){i=i||{};for(const o of t){const s=o.plugin;if(!1===qe(s[r],[e,i,o.options],s)&&i.cancelable)return!1}return!0}invalidate(){xe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,i=K(r.options&&r.options.plugins,{}),o=function SZ(n){const t={},e=[],r=Object.keys(Hr.plugins.items);for(let o=0;o<r.length;o++)e.push(Hr.getPlugin(r[o]));const i=n.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];-1===e.indexOf(s)&&(e.push(s),t[s.id]=!0)}return{plugins:e,localIds:t}}(r);return!1!==i||e?function OZ(n,{plugins:t,localIds:e},r,i){const o=[],s=n.getContext();for(const a of t){const l=a.id,u=TZ(r[l],i);null!==u&&o.push({plugin:a,options:EZ(n.config,{plugin:a,local:e[l]},u,s)})}return o}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(e,r),t,"stop"),this._notify(i(r,e),t,"start")}}function TZ(n,t){return t||!1!==n?!0===n?{}:n:null}function EZ(n,{plugin:t,local:e},r,i){const o=n.pluginScopeKeys(t),s=n.getOptionScopes(r,o);return e&&t.defaults&&s.push(t.defaults),n.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Fv(n,t){return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||(we.datasets[n]||{}).indexAxis||"x"}function Rv(n,t){return"x"===n||"y"===n?n:t.axis||function kZ(n){return"top"===n||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0}(t.position)||n.charAt(0).toLowerCase()}function JA(n){const t=n.options||(n.options={});t.plugins=K(t.plugins,{}),t.scales=function FZ(n,t){const e=Lo[n.type]||{scales:{}},r=t.scales||{},i=Fv(n.type,t),o=Object.create(null),s=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!ge(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const u=Rv(a,l),c=function IZ(n,t){return n===t?"_index_":"_value_"}(u,i),d=e.scales||{};o[u]=o[u]||a,s[a]=tu(Object.create(null),[{axis:u},l,d[u],d[c]])}),n.data.datasets.forEach(a=>{const l=a.type||n.type,u=a.indexAxis||Fv(l,t),d=(Lo[l]||{}).scales||{};Object.keys(d).forEach(p=>{const m=function AZ(n,t){let e=n;return"_index_"===n?e=t:"_value_"===n&&(e="x"===t?"y":"x"),e}(p,u),_=a[m+"AxisID"]||o[m]||m;s[_]=s[_]||Object.create(null),tu(s[_],[{axis:m},r[_],d[p]])})}),Object.keys(s).forEach(a=>{const l=s[a];tu(l,[we.scales[l.type],we.scale])}),s}(n,t)}function eI(n){return(n=n||{}).datasets=n.datasets||[],n.labels=n.labels||[],n}const tI=new Map,nI=new Set;function Nf(n,t){let e=tI.get(n);return e||(e=t(),tI.set(n,e),nI.add(e)),e}const bu=(n,t,e)=>{const r=qi(t,e);void 0!==r&&n.add(r)};class NZ{constructor(t){this._config=function RZ(n){return(n=n||{}).data=eI(n.data),JA(n),n}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=eI(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),JA(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Nf(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Nf(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Nf(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Nf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const r=this._scopeCache;let i=r.get(t);return(!i||e)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,e,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(e);if(a)return a;const l=new Set;e.forEach(c=>{t&&(l.add(t),c.forEach(d=>bu(l,t,d))),c.forEach(d=>bu(l,i,d)),c.forEach(d=>bu(l,Lo[o]||{},d)),c.forEach(d=>bu(l,we,d)),c.forEach(d=>bu(l,vv,d))});const u=Array.from(l);return 0===u.length&&u.push(Object.create(null)),nI.has(e)&&s.set(e,u),u}chartOptionScopes(){const{options:t,type:e}=this;return[t,Lo[e]||{},we.datasets[e]||{},{type:e},we,vv]}resolveNamedOptions(t,e,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=rI(this._resolverCache,t,i);let l=s;(function BZ(n,t){const{isScriptable:e,isIndexable:r}=rA(n);for(const i of t){const o=e(i),s=r(i),a=(s||o)&&n[i];if(o&&(Wi(a)||LZ(a))||s&&Le(a))return!0}return!1})(s,e)&&(o.$shared=!1,l=ia(s,r=Wi(r)?r():r,this.createResolver(t,r,a)));for(const u of e)o[u]=l[u];return o}createResolver(t,e,r=[""],i){const{resolver:o}=rI(this._resolverCache,t,r);return ge(e)?ia(o,e,void 0,i):o}}function rI(n,t,e){let r=n.get(t);r||(r=new Map,n.set(t,r));const i=e.join();let o=r.get(i);return o||(o={resolver:wv(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const LZ=n=>ge(n)&&Object.getOwnPropertyNames(n).reduce((t,e)=>t||Wi(n[e]),!1),UZ=["top","bottom","left","right","chartArea"];function iI(n,t){return"top"===n||"bottom"===n||-1===UZ.indexOf(n)&&"x"===t}function oI(n,t){return function(e,r){return e[n]===r[n]?e[t]-r[t]:e[n]-r[n]}}function sI(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),qe(e&&e.onComplete,[n],t)}function jZ(n){const t=n.chart,e=t.options.animation;qe(e&&e.onProgress,[n],t)}function aI(n){return dA()&&"string"==typeof n?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const Lf={},lI=n=>{const t=aI(n);return Object.values(Lf).filter(e=>e.canvas===t).pop()};function HZ(n,t,e){const r=Object.keys(n);for(const i of r){const o=+i;if(o>=t){const s=n[i];delete n[i],(e>0||o>t)&&(n[o+e]=s)}}}class Dn{constructor(t,e){const r=this.config=new NZ(e),i=aI(t),o=lI(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function DZ(n){return!dA()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?fZ:MZ}(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;this.id=DQ(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new xZ,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function UQ(n,t){let e;return function(...r){return t?(clearTimeout(e),e=setTimeout(n,t,r)):n.apply(this,r),t}}(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Lf[this.id]=this,a&&l?(Ci.listen(this,"complete",sI),Ci.listen(this,"progress",jZ),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:i,_aspectRatio:o}=this;return xe(t)?e&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():fA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return eA(this.canvas,this.ctx),this}stop(){return Ci.stop(this),this}resize(t,e){Ci.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,s=this.platform.getMaximumSize(this.canvas,t,e,r.maintainAspectRatio&&this.aspectRatio),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,fA(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),qe(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){Be(this.options.scales||{},(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];e&&(o=o.concat(Object.keys(e).map(s=>{const a=e[s],l=Rv(s,a),u="r"===l,c="x"===l;return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Be(o,s=>{const a=s.options,l=a.id,u=Rv(l,a),c=K(a.type,s.dtype);(void 0===a.position||iI(a.position,u)!==iI(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;l in r&&r[l].type===c?d=r[l]:(d=new(Hr.getScale(c))({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d),d.init(a,t)}),Be(i,(s,a)=>{s||delete r[a]}),Be(r,s=>{mn.configure(this,s,s.options),mn.addBox(this,s)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>e){for(let i=e;i<r;++i)this._destroyDatasetMeta(i);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(oI("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((r,i)=>{0===e.filter(o=>o===r._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=e.length;r<i;r++){const o=e[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||Fv(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Hr.getController(a),{datasetElementType:u,dataElementType:c}=we.datasets[a];Object.assign(l.prototype,{dataElementType:Hr.getElement(c),datasetElementType:u&&Hr.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Be(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),p=!i&&-1===o.indexOf(d);d.buildOrUpdateElements(p),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||Be(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(oI("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Be(this.scales,t=>{mn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!TE(e,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of e)HZ(t,i,"_removeElements"===r?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<e;o++)if(!TE(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;mn.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Be(this.boxes,i=>{r&&"chartArea"===i.position||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,r=this.data.datasets.length;e<r;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,Wi(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(r.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ci.has(this)?this.attached&&!Ci.running(this)&&Ci.start(this):(this.draw(),sI({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let i,o;for(i=0,o=e.length;i<o;++i){const s=e[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,i=!r.disabled,o=this.chartArea,s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(i&&ta(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&na(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return cu(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,i){const o=iZ.modes[e];return"function"==typeof o?o(this,t,r,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Ki(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);Mt(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ci.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),eA(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Lf[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(o,s)=>{e.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};Be(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(l,u)=>{e.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(e.removeEventListener(this,l,u),delete t[l])},o=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},e.isAttached(this.canvas)?a():s()}unbindEvents(){Be(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Be(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const i=r?"set":"remove";let o,s,a,l;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map(({datasetIndex:o,index:s})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!mf(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}_updateHoverStyles(t,e,r){const i=this.options.hover,o=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),s=o(e,t),a=r?t:o(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,i))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:i=[],options:o}=this,a=this._getActiveElements(t,i,r,e),l=function AQ(n){return"mouseup"===n.type||"click"===n.type||"contextmenu"===n.type}(t),u=function $Z(n,t,e,r){return e&&"mouseout"!==n.type?r?t:n:null}(t,this._lastEvent,r,l);r&&(this._lastEvent=null,qe(o.onHover,[t,a,this],this),l&&qe(o.onClick,[t,a,this],this));const c=!mf(a,i);return(c||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=u,c}_getActiveElements(t,e,r,i){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const uI=()=>Be(Dn.instances,n=>n._plugins.invalidate()),Xi=!0;function cI(n,t,e){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let u=i/a;n.beginPath(),n.arc(o,s,a,r-u,e+u),l>i?(u=i/l,n.arc(o,s,l,e+u,r-u,!0)):n.arc(o,s,i,e+mt,r-mt),n.closePath(),n.clip()}function aa(n,t,e,r){return{x:e+n*Math.cos(t),y:r+n*Math.sin(t)}}function Nv(n,t,e,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+e-u,0),p=c>0?c+r+e+u:0;let m=0;const _=i-l;if(r){const H=((c>0?c-r:0)+(d>0?d-r:0))/2;m=(_-(0!==H?_*H/(H+r):_))/2}const b=(_-Math.max(.001,_*d-e/Ee)/d)/2,w=l+b+m,D=i-b-m,{outerStart:x,outerEnd:E,innerStart:I,innerEnd:R}=function qZ(n,t,e,r){const i=function zZ(n){return Cv(n,["outerStart","outerEnd","innerStart","innerEnd"])}(n.options.borderRadius),o=(e-t)/2,s=Math.min(o,r*t/2),a=l=>{const u=(e-Math.min(o,l))*r/2;return Qt(l,0,Math.min(o,u))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Qt(i.innerStart,0,s),innerEnd:Qt(i.innerEnd,0,s)}}(t,p,d,D-w),B=d-x,$=d-E,z=w+x/B,ee=D-E/$,fe=p+I,ae=p+R,Se=w+I/fe,yt=D-R/ae;if(n.beginPath(),o){if(n.arc(s,a,d,z,ee),E>0){const H=aa($,ee,s,a);n.arc(H.x,H.y,E,ee,D+mt)}const Y=aa(ae,D,s,a);if(n.lineTo(Y.x,Y.y),R>0){const H=aa(ae,yt,s,a);n.arc(H.x,H.y,R,D+mt,yt+Math.PI)}if(n.arc(s,a,p,D-R/p,w+I/p,!0),I>0){const H=aa(fe,Se,s,a);n.arc(H.x,H.y,I,Se+Math.PI,w-mt)}const U=aa(B,w,s,a);if(n.lineTo(U.x,U.y),x>0){const H=aa(B,z,s,a);n.arc(H.x,H.y,x,w-mt,z)}}else{n.moveTo(s,a);const Y=Math.cos(z)*d+s,U=Math.sin(z)*d+a;n.lineTo(Y,U);const H=Math.cos(ee)*d+s,Z=Math.sin(ee)*d+a;n.lineTo(H,Z)}n.closePath()}Object.defineProperties(Dn,{defaults:{enumerable:Xi,value:we},instances:{enumerable:Xi,value:Lf},overrides:{enumerable:Xi,value:Lo},registry:{enumerable:Xi,value:Hr},version:{enumerable:Xi,value:"3.9.1"},getChart:{enumerable:Xi,value:lI},register:{enumerable:Xi,value:(...n)=>{Hr.add(...n),uI()}},unregister:{enumerable:Xi,value:(...n)=>{Hr.remove(...n),uI()}}});class Bf extends Kt{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=FE(i,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:u,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=this.options.spacing/2,_=K(d,l-a)>=Ue||ou(o,a,l),v=yi(s,u+p,c+p);return _&&v}getCenterPoint(t){const{x:e,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:u}=this.options,c=(i+o)/2,d=(s+a+u+l)/2;return{x:e+Math.cos(c)*d,y:r+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Ue?Math.floor(r/Ue):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const u=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(u)*a,Math.sin(u)*a),this.circumference>=Ee&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function WZ(n,t,e,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){Nv(n,t,e,r,s+Ue,i);for(let u=0;u<o;++u)n.fill();isNaN(a)||(l=s+a%Ue,a%Ue==0&&(l+=Ue))}return Nv(n,t,e,r,l,i),n.fill(),l}(t,this,a,o,s);(function YZ(n,t,e,r,i,o){const{options:s}=t,{borderWidth:a,borderJoinStyle:l}=s,u="inner"===s.borderAlign;!a||(u?(n.lineWidth=2*a,n.lineJoin=l||"round"):(n.lineWidth=a,n.lineJoin=l||"bevel"),t.fullCircles&&function GZ(n,t,e){const{x:r,y:i,startAngle:o,pixelMargin:s,fullCircles:a}=t,l=Math.max(t.outerRadius-s,0),u=t.innerRadius+s;let c;for(e&&cI(n,t,o+Ue),n.beginPath(),n.arc(r,i,u,o+Ue,o,!0),c=0;c<a;++c)n.stroke();for(n.beginPath(),n.arc(r,i,l,o,o+Ue),c=0;c<a;++c)n.stroke()}(n,t,u),u&&cI(n,t,i),Nv(n,t,e,r,i,o),n.stroke())})(t,this,a,o,l,s),t.restore()}}function dI(n,t,e=t){n.lineCap=K(e.borderCapStyle,t.borderCapStyle),n.setLineDash(K(e.borderDash,t.borderDash)),n.lineDashOffset=K(e.borderDashOffset,t.borderDashOffset),n.lineJoin=K(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=K(e.borderWidth,t.borderWidth),n.strokeStyle=K(e.borderColor,t.borderColor)}function QZ(n,t,e){n.lineTo(e.x,e.y)}function fI(n,t,e={}){const r=n.length,{start:i=0,end:o=r-1}=e,{start:s,end:a}=t,l=Math.max(i,s),u=Math.min(o,a);return{count:r,start:l,loop:t.loop,ilen:u<l&&!(i<s&&o<s||i>a&&o>a)?r+u-l:u-l}}function XZ(n,t,e,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:u}=fI(i,e,r),c=function KZ(n){return n.stepped?hK:n.tension||"monotone"===n.cubicInterpolationMode?pK:QZ}(o);let m,_,v,{move:d=!0,reverse:p}=r||{};for(m=0;m<=u;++m)_=i[(a+(p?u-m:m))%s],!_.skip&&(d?(n.moveTo(_.x,_.y),d=!1):c(n,v,_,p,o.stepped),v=_);return l&&(_=i[(a+(p?u:0))%s],c(n,v,_,p,o.stepped)),!!l}function ZZ(n,t,e,r){const i=t.points,{count:o,start:s,ilen:a}=fI(i,e,r),{move:l=!0,reverse:u}=r||{};let p,m,_,v,b,w,c=0,d=0;const D=E=>(s+(u?a-E:E))%o,x=()=>{v!==b&&(n.lineTo(c,b),n.lineTo(c,v),n.lineTo(c,w))};for(l&&(m=i[D(0)],n.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[D(p)],m.skip)continue;const E=m.x,I=m.y,R=0|E;R===_?(I<v?v=I:I>b&&(b=I),c=(d*c+E)/++d):(x(),n.lineTo(E,I),_=R,d=0,v=b=I),w=I}x()}function Lv(n){const t=n.options;return n._decimated||n._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||t.borderDash&&t.borderDash.length?XZ:ZZ}Bf.id="arc",Bf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Bf.defaultRoutes={backgroundColor:"backgroundColor"};const nJ="function"==typeof Path2D;let Vf=(()=>{class n extends Kt{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,r){const i=this.options;!i.tension&&"monotone"!==i.cubicInterpolationMode||i.stepped||this._pointsUpdated||(LK(this._points,i,e,i.spanGaps?this._loop:this._fullLoop,r),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function JK(n,t){const e=n.points,r=n.options.spanGaps,i=e.length;if(!i)return[];const o=!!n._loop,{start:s,end:a}=function XK(n,t,e,r){let i=0,o=t-1;if(e&&!r)for(;i<t&&!n[i].skip;)i++;for(;i<t&&n[i].skip;)i++;for(i%=t,e&&(o+=i);o>i&&n[o%t].skip;)o--;return o%=t,{start:i,end:o}}(e,i,o,r);return function CA(n,t,e,r){return r&&r.setContext&&e?function eX(n,t,e,r){const i=n._chart.getContext(),o=wA(n.options),{_datasetIndex:s,options:{spanGaps:a}}=n,l=e.length,u=[];let c=o,d=t[0].start,p=d;function m(_,v,b,w){const D=a?-1:1;if(_!==v){for(_+=l;e[_%l].skip;)_-=D;for(;e[v%l].skip;)v+=D;_%l!=v%l&&(u.push({start:_%l,end:v%l,loop:b,style:w}),c=w,d=v%l)}}for(const _ of t){d=a?d:_.start;let b,v=e[d%l];for(p=d+1;p<=_.end;p++){const w=e[p%l];b=wA(r.setContext(Ki(i,{type:"segment",p0:v,p1:w,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),tX(b,c)&&m(d,p-1,_.loop,c),v=w,c=b}d<p-1&&m(d,p-1,_.loop,c)}return u}(n,t,e,r):t}(n,!0===r?[{start:s,end:a,loop:o}]:function ZK(n,t,e,r){const i=n.length,o=[];let l,s=t,a=n[t];for(l=t+1;l<=e;++l){const u=n[l%i];u.skip||u.stop?a.skip||(o.push({start:t%i,end:(l-1)%i,loop:r=!1}),t=s=u.stop?l:null):(s=l,a.skip&&(t=l)),a=u}return null!==s&&o.push({start:t%i,end:s%i,loop:r}),o}(e,s,a<s?a+i:a,!!n._fullLoop&&0===s&&a===i-1),e,t)}(this,this.options.segment))}first(){const e=this.segments;return e.length&&this.points[e[0].start]}last(){const e=this.segments,i=e.length;return i&&this.points[e[i-1].end]}interpolate(e,r){const i=this.options,o=e[r],s=this.points,a=bA(this,{property:r,start:o,end:o});if(!a.length)return;const l=[],u=function JZ(n){return n.stepped?qK:n.tension||"monotone"===n.cubicInterpolationMode?WK:Ho}(i);let c,d;for(c=0,d=a.length;c<d;++c){const{start:p,end:m}=a[c],_=s[p],v=s[m];if(_===v){l.push(_);continue}const w=u(_,v,Math.abs((o-_[r])/(v[r]-_[r])),i.stepped);w[r]=e[r],l.push(w)}return 1===l.length?l[0]:l}pathSegment(e,r,i){return Lv(this)(e,this,r,i)}path(e,r,i){const o=this.segments,s=Lv(this);let a=this._loop;r=r||0,i=i||this.points.length-r;for(const l of o)a&=s(e,this,l,{start:r,end:r+i-1});return!!a}draw(e,r,i,o){(this.points||[]).length&&(this.options||{}).borderWidth&&(e.save(),function rJ(n,t,e,r){nJ&&!t.options.segment?function eJ(n,t,e,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,e,r)&&i.closePath()),dI(n,t.options),n.stroke(i)}(n,t,e,r):function tJ(n,t,e,r){const{segments:i,options:o}=t,s=Lv(t);for(const a of i)dI(n,o,a.style),n.beginPath(),s(n,t,a,{start:e,end:e+r-1})&&n.closePath(),n.stroke()}(n,t,e,r)}(e,this,i,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return n.id="line",n.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},n.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t},n})();function hI(n,t,e,r){const i=n.options,{[e]:o}=n.getProps([e],r);return Math.abs(t-o)<i.radius+i.hitRadius}let iJ=(()=>{class n extends Kt{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,r,i){const o=this.options,{x:s,y:a}=this.getProps(["x","y"],i);return Math.pow(e-s,2)+Math.pow(r-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,r){return hI(this,e,"x",r)}inYRange(e,r){return hI(this,e,"y",r)}getCenterPoint(e){const{x:r,y:i}=this.getProps(["x","y"],e);return{x:r,y:i}}size(e){let r=(e=e||this.options||{}).radius||0;return r=Math.max(r,r&&e.hoverRadius||0),2*(r+(r&&e.borderWidth||0))}draw(e,r){const i=this.options;this.skip||i.radius<.1||!cu(this,r,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,xf(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}return n.id="point",n.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},n.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},n})();function pI(n,t){const{x:e,y:r,base:i,width:o,height:s}=n.getProps(["x","y","base","width","height"],t);let a,l,u,c,d;return n.horizontal?(d=s/2,a=Math.min(e,i),l=Math.max(e,i),u=r-d,c=r+d):(d=o/2,a=e-d,l=e+d,u=Math.min(r,i),c=Math.max(r,i)),{left:a,top:u,right:l,bottom:c}}function Zi(n,t,e,r){return n?0:Qt(t,e,r)}function Bv(n,t,e,r){const i=null===t,o=null===e,a=n&&!(i&&o)&&pI(n,r);return a&&(i||yi(t,a.left,a.right))&&(o||yi(e,a.top,a.bottom))}function uJ(n,t){n.rect(t.x,t.y,t.w,t.h)}function Vv(n,t,e={}){const r=n.x!==e.x?-t:0,i=n.y!==e.y?-t:0;return{x:n.x+r,y:n.y+i,w:n.w+((n.x+n.w!==e.x+e.w?t:0)-r),h:n.h+((n.y+n.h!==e.y+e.h?t:0)-i),radius:n.radius}}class Uf extends Kt{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=function aJ(n){const t=pI(n),e=t.right-t.left,r=t.bottom-t.top,i=function oJ(n,t,e){const i=n.borderSkipped,o=nA(n.options.borderWidth);return{t:Zi(i.top,o.top,0,e),r:Zi(i.right,o.right,0,t),b:Zi(i.bottom,o.bottom,0,e),l:Zi(i.left,o.left,0,t)}}(n,e/2,r/2),o=function sJ(n,t,e){const{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,o=Qi(i),s=Math.min(t,e),a=n.borderSkipped,l=r||ge(i);return{topLeft:Zi(!l||a.top||a.left,o.topLeft,0,s),topRight:Zi(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Zi(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Zi(!l||a.bottom||a.right,o.bottomRight,0,s)}}(n,e/2,r/2);return{outer:{x:t.left,y:t.top,w:e,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:e-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}(this),a=function lJ(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}(s.radius)?ra:uJ;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,Vv(s,e,o)),t.clip(),a(t,Vv(o,-e,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,Vv(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,r){return Bv(this,t,e,r)}inXRange(t,e){return Bv(this,t,null,e)}inYRange(t,e){return Bv(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?r:(r+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Uf.id="bar",Uf.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Uf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var cJ=Object.freeze({__proto__:null,ArcElement:Bf,LineElement:Vf,PointElement:iJ,BarElement:Uf});function gI(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{value:t})}}function mI(n){n.data.datasets.forEach(t=>{gI(t)})}var pJ={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled)return void mI(n);const r=n.width;n.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=n.getDatasetMeta(o),u=s||i.data;if("y"===du([a,n.options.indexAxis])||!l.controller.supportsDecimation)return;const c=n.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type||n.options.parsing)return;let _,{start:d,count:p}=function hJ(n,t){const e=t.length;let i,r=0;const{iScale:o}=n,{min:s,max:a,minDefined:l,maxDefined:u}=o.getUserBounds();return l&&(r=Qt(vi(t,o.axis,s).lo,0,e-1)),i=u?Qt(vi(t,o.axis,a).hi+1,r,e)-r:e-r,{start:r,count:i}}(l,u);if(p<=(e.threshold||4*r))gI(i);else{switch(xe(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}})),e.algorithm){case"lttb":_=function dJ(n,t,e,r,i){const o=i.samples||r;if(o>=e)return n.slice(t,t+e);const s=[],a=(e-2)/(o-2);let l=0;const u=t+e-1;let d,p,m,_,v,c=t;for(s[l++]=n[c],d=0;d<o-2;d++){let D,b=0,w=0;const x=Math.floor((d+1)*a)+1+t,E=Math.min(Math.floor((d+2)*a)+1,e)+t,I=E-x;for(D=x;D<E;D++)b+=n[D].x,w+=n[D].y;b/=I,w/=I;const R=Math.floor(d*a)+1+t,B=Math.min(Math.floor((d+1)*a)+1,e)+t,{x:$,y:z}=n[c];for(m=_=-1,D=R;D<B;D++)_=.5*Math.abs(($-b)*(n[D].y-z)-($-n[D].x)*(w-z)),_>m&&(m=_,p=n[D],v=D);s[l++]=p,c=v}return s[l++]=n[u],s}(u,d,p,r,e);break;case"min-max":_=function fJ(n,t,e,r){let s,a,l,u,c,d,p,m,_,v,i=0,o=0;const b=[],D=n[t].x,E=n[t+e-1].x-D;for(s=t;s<t+e;++s){a=n[s],l=(a.x-D)/E*r,u=a.y;const I=0|l;if(I===c)u<_?(_=u,d=s):u>v&&(v=u,p=s),i=(o*i+a.x)/++o;else{const R=s-1;if(!xe(d)&&!xe(p)){const B=Math.min(d,p),$=Math.max(d,p);B!==m&&B!==R&&b.push({...n[B],x:i}),$!==m&&$!==R&&b.push({...n[$],x:i})}s>0&&R!==m&&b.push(n[R]),b.push(a),c=I,o=0,_=v=u,d=p=m=s}}return b}(u,d,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}i._decimated=_}})},destroy(n){mI(n)}};function Uv(n,t,e,r){if(r)return;let i=t[n],o=e[n];return"angle"===n&&(i=Gn(i),o=Gn(o)),{property:n,start:i,end:o}}function jv(n,t,e){for(;t>n;t--){const r=e[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function _I(n,t,e,r){return n&&t?r(n[e],t[e]):n?n[e]:t?t[e]:0}function yI(n,t){let e=[],r=!1;return Le(n)?(r=!0,e=n):e=function mJ(n,t){const{x:e=null,y:r=null}=n||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=jv(s,a,i);const l=i[s],u=i[a];null!==r?(o.push({x:l.x,y:r}),o.push({x:u.x,y:r})):null!==e&&(o.push({x:e,y:l.y}),o.push({x:e,y:u.y}))}),o}(n,t),e.length?new Vf({points:e,options:{tension:0},_loop:r,_fullLoop:r}):null}function vI(n){return n&&!1!==n.fill}function _J(n,t,e){let i=n[t].fill;const o=[t];let s;if(!e)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!ft(i))return i;if(s=n[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function yJ(n,t,e){const r=function wJ(n){const t=n.options,e=t.fill;let r=K(e&&e.target,e);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(n);if(ge(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return ft(i)&&Math.floor(i)===i?function vJ(n,t,e,r){return("-"===n||"+"===n)&&(e=t+e),!(e===t||e<0||e>=r)&&e}(r[0],t,i,e):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function DJ(n,t,e){const r=[];for(let i=0;i<e.length;i++){const o=e[i],{first:s,last:a,point:l}=xJ(o,t,"x");if(!(!l||s&&a))if(s)r.unshift(l);else if(n.push(l),!a)break}n.push(...r)}function xJ(n,t,e){const r=n.interpolate(t,e);if(!r)return{};const i=r[e],o=n.segments,s=n.points;let a=!1,l=!1;for(let u=0;u<o.length;u++){const c=o[u],d=s[c.start][e],p=s[c.end][e];if(yi(i,d,p)){a=i===d,l=i===p;break}}return{first:a,last:l,point:r}}class bI{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,r){const{x:i,y:o,radius:s}=this;return t.arc(i,o,s,(e=e||{start:0,end:Ue}).end,e.start,!0),!r.bounds}interpolate(t){const{x:e,y:r,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function Hv(n,t,e){const r=function SJ(n){const{chart:t,fill:e,line:r}=n;if(ft(e))return function TJ(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}(t,e);if("stack"===e)return function PJ(n){const{scale:t,index:e,line:r}=n,i=[],o=r.segments,s=r.points,a=function MJ(n,t){const e=[],r=n.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||e.unshift(o.dataset)}return e}(t,e);a.push(yI({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const u=o[l];for(let c=u.start;c<=u.end;c++)DJ(i,s[c],a)}return new Vf({points:i,options:{}})}(n);if("shape"===e)return!0;const i=function OJ(n){return(n.scale||{}).getPointPositionForValue?function AJ(n){const{scale:t,fill:e}=n,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=function CJ(n,t,e){let r;return r="start"===n?e:"end"===n?t.options.reverse?t.min:t.max:ge(n)?n.value:t.getBaseValue(),r}(e,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new bI({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}(n):function EJ(n){const{scale:t={},fill:e}=n,r=function bJ(n,t){let e=null;return"start"===n?e=t.bottom:"end"===n?e=t.top:ge(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}(e,t);if(ft(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}(n)}(n);return i instanceof bI?i:yI(i,r)}(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,u=a.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(ta(n,e),function IJ(n,t){const{line:e,target:r,above:i,below:o,area:s,scale:a}=t,l=e._loop?"angle":t.axis;n.save(),"x"===l&&o!==i&&(CI(n,r,s.top),wI(n,{line:e,target:r,color:i,scale:a,property:l}),n.restore(),n.save(),CI(n,r,s.bottom)),wI(n,{line:e,target:r,color:o,scale:a,property:l}),n.restore()}(n,{line:i,target:r,above:c,below:d,area:e,scale:o,axis:s}),na(n))}function CI(n,t,e){const{segments:r,points:i}=t;let o=!0,s=!1;n.beginPath();for(const a of r){const{start:l,end:u}=a,c=i[l],d=i[jv(l,u,i)];o?(n.moveTo(c.x,c.y),o=!1):(n.lineTo(c.x,e),n.lineTo(c.x,c.y)),s=!!t.pathSegment(n,a,{move:s}),s?n.closePath():n.lineTo(d.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function wI(n,t){const{line:e,target:r,property:i,color:o,scale:s}=t,a=function gJ(n,t,e){const r=n.segments,i=n.points,o=t.points,s=[];for(const a of r){let{start:l,end:u}=a;u=jv(l,u,i);const c=Uv(e,i[l],i[u],a.loop);if(!t.segments){s.push({source:a,target:c,start:i[l],end:i[u]});continue}const d=bA(t,c);for(const p of d){const m=Uv(e,o[p.start],o[p.end],p.loop),_=vA(a,i,m);for(const v of _)s.push({source:v,target:p,start:{[e]:_I(c,m,"start",Math.max)},end:{[e]:_I(c,m,"end",Math.min)}})}}return s}(e,r,i);for(const{source:l,target:u,start:c,end:d}of a){const{style:{backgroundColor:p=o}={}}=l,m=!0!==r;n.save(),n.fillStyle=p,kJ(n,s,m&&Uv(i,c,d)),n.beginPath();const _=!!e.pathSegment(n,l);let v;if(m){_?n.closePath():PI(n,r,d,i);const b=!!r.pathSegment(n,u,{move:_,reverse:!0});v=_&&b,v||PI(n,r,c,i)}n.closePath(),n.fill(v?"evenodd":"nonzero"),n.restore()}}function kJ(n,t,e){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=e||{};"x"===o&&(n.beginPath(),n.rect(s,r,a-s,i-r),n.clip())}function PI(n,t,e,r){const i=t.interpolate(e,r);i&&n.lineTo(i.x,i.y)}var FJ={id:"filler",afterDatasetsUpdate(n,t,e){const r=(n.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=n.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Vf&&(l={visible:n.isDatasetVisible(s),index:s,fill:yJ(a,s,r),chart:n,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],l&&!1!==l.fill&&(l.fill=_J(i,s,e.propagate))},beforeDraw(n,t,e){const r="beforeDraw"===e.drawTime,i=n.getSortedVisibleDatasetMetas(),o=n.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;!a||(a.line.updateControlPoints(o,a.axis),r&&a.fill&&Hv(n.ctx,a,o))}},beforeDatasetsDraw(n,t,e){if("beforeDatasetsDraw"!==e.drawTime)return;const r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;vI(o)&&Hv(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const r=t.meta.$filler;!vI(r)||"beforeDatasetDraw"!==e.drawTime||Hv(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MI=(n,t)=>{let{boxHeight:e=t,boxWidth:r=t}=n;return n.usePointStyle&&(e=Math.min(e,t),r=n.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:e,itemHeight:Math.max(t,e)}};class DI extends Kt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=qe(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(r=>t.filter(r,this.chart.data))),t.sort&&(e=e.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,i=Dt(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MI(r,o);let u,c;e.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,o,a,l)+10):(c=this.maxHeight,u=this._fitCols(s,o,a,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-c;return this.legendItems.forEach((_,v)=>{const b=r+e/2+o.measureText(_.text).width;(0===v||u[u.length-1]+b+2*a>s)&&(d+=c,u[u.length-(v>0?0:1)]=0,m+=c,p++),l[v]={left:0,top:m,row:p,width:b,height:i},u[u.length-1]+=b+a}),d}_fitCols(t,e,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-t;let d=a,p=0,m=0,_=0,v=0;return this.legendItems.forEach((b,w)=>{const D=r+e/2+o.measureText(b.text).width;w>0&&m+i+2*a>c&&(d+=p+a,u.push({width:p,height:m}),_+=p+a,v++,p=m=0),l[w]={left:_,top:m,col:v,width:D,height:i},p=Math.max(p,D),m+=i+a}),d+=p,u.push({width:p,height:m}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:i},rtl:o}}=this,s=sa(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=gn(r,this.left+i,this.right-this.lineWidths[a]);for(const u of e)a!==u.row&&(a=u.row,l=gn(r,this.left+i,this.right-this.lineWidths[a])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let a=0,l=gn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const u of e)u.col!==a&&(a=u.col,l=gn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;ta(t,this),this._draw(),na(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=we.color,l=sa(t.rtl,this.left,this.width),u=Dt(s.font),{color:c,padding:d}=s,p=u.size,m=p/2;let _;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:v,boxHeight:b,itemHeight:w}=MI(s,p),E=this.isHorizontal(),I=this._computeTitleHeight();_=E?{x:gn(o,this.left+d,this.right-r[0]),y:this.top+d+I,line:0}:{x:this.left+d,y:gn(o,this.top+I+d,this.bottom-e[0].height),line:0},gA(this.ctx,t.textDirection);const R=w+d;this.legendItems.forEach((B,$)=>{i.strokeStyle=B.fontColor||c,i.fillStyle=B.fontColor||c;const z=i.measureText(B.text).width,ee=l.textAlign(B.textAlign||(B.textAlign=s.textAlign)),fe=v+m+z;let ae=_.x,Se=_.y;l.setWidth(this.width),E?$>0&&ae+fe+d>this.right&&(Se=_.y+=R,_.line++,ae=_.x=gn(o,this.left+d,this.right-r[_.line])):$>0&&Se+R>this.bottom&&(ae=_.x=ae+e[_.line].width+d,_.line++,Se=_.y=gn(o,this.top+I+d,this.bottom-e[_.line].height)),function(B,$,z){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;i.save();const ee=K(z.lineWidth,1);if(i.fillStyle=K(z.fillStyle,a),i.lineCap=K(z.lineCap,"butt"),i.lineDashOffset=K(z.lineDashOffset,0),i.lineJoin=K(z.lineJoin,"miter"),i.lineWidth=ee,i.strokeStyle=K(z.strokeStyle,a),i.setLineDash(K(z.lineDash,[])),s.usePointStyle){const fe={radius:b*Math.SQRT2/2,pointStyle:z.pointStyle,rotation:z.rotation,borderWidth:ee},ae=l.xPlus(B,v/2);tA(i,fe,ae,$+m,s.pointStyleWidth&&v)}else{const fe=$+Math.max((p-b)/2,0),ae=l.leftForLtr(B,v),Se=Qi(z.borderRadius);i.beginPath(),Object.values(Se).some(yt=>0!==yt)?ra(i,{x:ae,y:fe,w:v,h:b,radius:Se}):i.rect(ae,fe,v,b),i.fill(),0!==ee&&i.stroke()}i.restore()}(l.x(ae),Se,B),ae=((n,t,e,r)=>n===(r?"left":"right")?e:"center"===n?(t+e)/2:t)(ee,ae+v+m,E?ae+fe:this.right,t.rtl),function(B,$,z){Vo(i,z.text,B,$+w/2,u,{strikethrough:z.hidden,textAlign:l.textAlign(z.textAlign)})}(l.x(ae),Se,B),E?_.x+=fe+d:_.y+=R}),mA(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=Dt(e.font),i=Lt(e.padding);if(!e.display)return;const o=sa(t.rtl,this.left,this.width),s=this.ctx,a=e.position,u=i.top+r.size/2;let c,d=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),c=this.top+u,d=gn(t.align,d,this.right-p);else{const _=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);c=u+gn(t.align,this.top,this.bottom-_-t.labels.padding-this._computeTitleHeight())}const m=gn(a,d,d+p);s.textAlign=o.textAlign(fv(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=r.string,Vo(s,e.text,m,c,r)}_computeTitleHeight(){const t=this.options.title,e=Dt(t.font),r=Lt(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,i,o;if(yi(t,this.left,this.right)&&yi(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],yi(t,i.left,i.left+i.width)&&yi(e,i.top,i.top+i.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function NJ(n,t){return!(("mousemove"!==n&&"mouseout"!==n||!t.onHover&&!t.onLeave)&&(!t.onClick||"click"!==n&&"mouseup"!==n))}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=((n,t)=>null!==n&&null!==t&&n.datasetIndex===t.datasetIndex&&n.index===t.index)(i,r);i&&!o&&qe(e.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&qe(e.onHover,[t,r,this],this)}else r&&qe(e.onClick,[t,r,this],this)}}var LJ={id:"legend",_element:DI,start(n,t,e){const r=n.legend=new DI({ctx:n.ctx,options:e,chart:n});mn.configure(n,r,e),mn.addBox(n,r)},stop(n){mn.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const r=n.legend;mn.configure(n,r,e),r.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const r=t.datasetIndex,i=e.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:r,textAlign:i,color:o}}=n.legend.options;return n._getSortedDatasetMetas().map(s=>{const a=s.controller.getStyle(e?0:void 0),l=Lt(a.borderWidth);return{text:t[s.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!s.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:r||a.pointStyle,rotation:a.rotation,textAlign:i||a.textAlign,borderRadius:0,datasetIndex:s.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class $v extends Kt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=Le(r.text)?r.text.length:1;this._padding=Lt(r.padding);const o=i*Dt(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:i,right:o,options:s}=this,a=s.align;let u,c,d,l=0;return this.isHorizontal()?(c=gn(a,r,o),d=e+t,u=o-r):("left"===s.position?(c=r+t,d=gn(a,i,e),l=-.5*Ee):(c=o-t,d=gn(a,e,i),l=.5*Ee),u=i-e),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=Dt(e.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(o);Vo(t,e.text,0,0,r,{color:e.color,maxWidth:l,rotation:u,textAlign:fv(e.align),textBaseline:"middle",translation:[s,a]})}}var VJ={id:"title",_element:$v,start(n,t,e){!function BJ(n,t){const e=new $v({ctx:n.ctx,options:t,chart:n});mn.configure(n,e,t),mn.addBox(n,e),n.titleBlock=e}(n,e)},stop(n){mn.removeBox(n,n.titleBlock),delete n.titleBlock},beforeUpdate(n,t,e){const r=n.titleBlock;mn.configure(n,r,e),r.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const jf=new WeakMap;var UJ={id:"subtitle",start(n,t,e){const r=new $v({ctx:n.ctx,options:e,chart:n});mn.configure(n,r,e),mn.addBox(n,r),jf.set(n,r)},stop(n){mn.removeBox(n,jf.get(n)),jf.delete(n)},beforeUpdate(n,t,e){const r=jf.get(n);mn.configure(n,r,e),r.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Cu={average(n){if(!n.length)return!1;let t,e,r=0,i=0,o=0;for(t=0,e=n.length;t<e;++t){const s=n[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(n,t){if(!n.length)return!1;let o,s,a,e=t.x,r=t.y,i=Number.POSITIVE_INFINITY;for(o=0,s=n.length;o<s;++o){const l=n[o].element;if(l&&l.hasValue()){const c=iu(t,l.getCenterPoint());c<i&&(i=c,a=l)}}if(a){const l=a.tooltipPosition();e=l.x,r=l.y}return{x:e,y:r}}};function $r(n,t){return t&&(Le(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function wi(n){return("string"==typeof n||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function jJ(n,t){const{element:e,datasetIndex:r,index:i}=t,o=n.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:n,label:s,parsed:o.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:e}}function xI(n,t){const e=n.chart.ctx,{body:r,footer:i,title:o}=n,{boxWidth:s,boxHeight:a}=t,l=Dt(t.bodyFont),u=Dt(t.titleFont),c=Dt(t.footerFont),d=o.length,p=i.length,m=r.length,_=Lt(t.padding);let v=_.height,b=0,w=r.reduce((E,I)=>E+I.before.length+I.lines.length+I.after.length,0);w+=n.beforeBody.length+n.afterBody.length,d&&(v+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),w&&(v+=m*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(w-m)*l.lineHeight+(w-1)*t.bodySpacing),p&&(v+=t.footerMarginTop+p*c.lineHeight+(p-1)*t.footerSpacing);let D=0;const x=function(E){b=Math.max(b,e.measureText(E).width+D)};return e.save(),e.font=u.string,Be(n.title,x),e.font=l.string,Be(n.beforeBody.concat(n.afterBody),x),D=t.displayColors?s+2+t.boxPadding:0,Be(r,E=>{Be(E.before,x),Be(E.lines,x),Be(E.after,x)}),D=0,e.font=c.string,Be(n.footer,x),e.restore(),b+=_.width,{width:b,height:v}}function zJ(n,t,e,r){const{x:i,width:o}=e,{width:s,chartArea:{left:a,right:l}}=n;let u="center";return"center"===r?u=i<=(a+l)/2?"left":"right":i<=o/2?u="left":i>=s-o/2&&(u="right"),function $J(n,t,e,r){const{x:i,width:o}=r,s=e.caretSize+e.caretPadding;if("left"===n&&i+o+s>t.width||"right"===n&&i-o-s<0)return!0}(u,n,t,e)&&(u="center"),u}function SI(n,t,e){const r=e.yAlign||t.yAlign||function HJ(n,t){const{y:e,height:r}=t;return e<r/2?"top":e>n.height-r/2?"bottom":"center"}(n,e);return{xAlign:e.xAlign||t.xAlign||zJ(n,t,e,r),yAlign:r}}function TI(n,t,e,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=n,{xAlign:a,yAlign:l}=e,u=i+o,{topLeft:c,topRight:d,bottomLeft:p,bottomRight:m}=Qi(s);let _=function qJ(n,t){let{x:e,width:r}=n;return"right"===t?e-=r:"center"===t&&(e-=r/2),e}(t,a);const v=function WJ(n,t,e){let{y:r,height:i}=n;return"top"===t?r+=e:r-="bottom"===t?i+e:i/2,r}(t,l,u);return"center"===l?"left"===a?_+=u:"right"===a&&(_-=u):"left"===a?_-=Math.max(c,p)+i:"right"===a&&(_+=Math.max(d,m)+i),{x:Qt(_,0,r.width-t.width),y:Qt(v,0,r.height-t.height)}}function Hf(n,t,e){const r=Lt(e.padding);return"center"===t?n.x+n.width/2:"right"===t?n.x+n.width-r.right:n.x+r.left}function OI(n){return $r([],wi(n))}function EI(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}let AI=(()=>{class n extends Kt{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&r.options.animation&&i.animations,s=new Sv(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=function GJ(n,t,e){return Ki(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:i}=r,o=i.beforeTitle.apply(this,[e]),s=i.title.apply(this,[e]),a=i.afterTitle.apply(this,[e]);let l=[];return l=$r(l,wi(o)),l=$r(l,wi(s)),l=$r(l,wi(a)),l}getBeforeBody(e,r){return OI(r.callbacks.beforeBody.apply(this,[e]))}getBody(e,r){const{callbacks:i}=r,o=[];return Be(e,s=>{const a={before:[],lines:[],after:[]},l=EI(i,s);$r(a.before,wi(l.beforeLabel.call(this,s))),$r(a.lines,l.label.call(this,s)),$r(a.after,wi(l.afterLabel.call(this,s))),o.push(a)}),o}getAfterBody(e,r){return OI(r.callbacks.afterBody.apply(this,[e]))}getFooter(e,r){const{callbacks:i}=r,o=i.beforeFooter.apply(this,[e]),s=i.footer.apply(this,[e]),a=i.afterFooter.apply(this,[e]);let l=[];return l=$r(l,wi(o)),l=$r(l,wi(s)),l=$r(l,wi(a)),l}_createItems(e){const r=this._active,i=this.chart.data,o=[],s=[],a=[];let u,c,l=[];for(u=0,c=r.length;u<c;++u)l.push(jJ(this.chart,r[u]));return e.filter&&(l=l.filter((d,p,m)=>e.filter(d,p,m,i))),e.itemSort&&(l=l.sort((d,p)=>e.itemSort(d,p,i))),Be(l,d=>{const p=EI(e.callbacks,d);o.push(p.labelColor.call(this,d)),s.push(p.labelPointStyle.call(this,d)),a.push(p.labelTextColor.call(this,d))}),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=l,l}update(e,r){const i=this.options.setContext(this.getContext()),o=this._active;let s,a=[];if(o.length){const l=Cu[i.position].call(this,o,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const u=this._size=xI(this,i),c=Object.assign({},l,u),d=SI(this.chart,i,c),p=TI(i,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:p.x,y:p.y,width:u.width,height:u.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=a,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,i,o){const s=this.getCaretPosition(e,i,o);r.lineTo(s.x1,s.y1),r.lineTo(s.x2,s.y2),r.lineTo(s.x3,s.y3)}getCaretPosition(e,r,i){const{xAlign:o,yAlign:s}=this,{caretSize:a,cornerRadius:l}=i,{topLeft:u,topRight:c,bottomLeft:d,bottomRight:p}=Qi(l),{x:m,y:_}=e,{width:v,height:b}=r;let w,D,x,E,I,R;return"center"===s?(I=_+b/2,"left"===o?(w=m,D=w-a,E=I+a,R=I-a):(w=m+v,D=w+a,E=I-a,R=I+a),x=w):(D="left"===o?m+Math.max(u,d)+a:"right"===o?m+v-Math.max(c,p)-a:this.caretX,"top"===s?(E=_,I=E-a,w=D-a,x=D+a):(E=_+b,I=E+a,w=D+a,x=D-a),R=E),{x1:w,x2:D,x3:x,y1:E,y2:I,y3:R}}drawTitle(e,r,i){const o=this.title,s=o.length;let a,l,u;if(s){const c=sa(i.rtl,this.x,this.width);for(e.x=Hf(this,i.titleAlign,i),r.textAlign=c.textAlign(i.titleAlign),r.textBaseline="middle",a=Dt(i.titleFont),l=i.titleSpacing,r.fillStyle=i.titleColor,r.font=a.string,u=0;u<s;++u)r.fillText(o[u],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+l,u+1===s&&(e.y+=i.titleMarginBottom-l)}}_drawColorBox(e,r,i,o,s){const a=this.labelColors[i],l=this.labelPointStyles[i],{boxHeight:u,boxWidth:c,boxPadding:d}=s,p=Dt(s.bodyFont),m=Hf(this,"left",s),_=o.x(m),b=r.y+(u<p.lineHeight?(p.lineHeight-u)/2:0);if(s.usePointStyle){const w={radius:Math.min(c,u)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},D=o.leftForLtr(_,c)+c/2,x=b+u/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,xf(e,w,D,x),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,xf(e,w,D,x)}else{e.lineWidth=ge(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const w=o.leftForLtr(_,c-d),D=o.leftForLtr(o.xPlus(_,1),c-d-2),x=Qi(a.borderRadius);Object.values(x).some(E=>0!==E)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,ra(e,{x:w,y:b,w:c,h:u,radius:x}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),ra(e,{x:D,y:b+1,w:c-2,h:u-2,radius:x}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(w,b,c,u),e.strokeRect(w,b,c,u),e.fillStyle=a.backgroundColor,e.fillRect(D,b+1,c-2,u-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,r,i){const{body:o}=this,{bodySpacing:s,bodyAlign:a,displayColors:l,boxHeight:u,boxWidth:c,boxPadding:d}=i,p=Dt(i.bodyFont);let m=p.lineHeight,_=0;const v=sa(i.rtl,this.x,this.width),b=function(z){r.fillText(z,v.x(e.x+_),e.y+m/2),e.y+=m+s},w=v.textAlign(a);let D,x,E,I,R,B,$;for(r.textAlign=a,r.textBaseline="middle",r.font=p.string,e.x=Hf(this,w,i),r.fillStyle=i.bodyColor,Be(this.beforeBody,b),_=l&&"right"!==w?"center"===a?c/2+d:c+2+d:0,I=0,B=o.length;I<B;++I){for(D=o[I],x=this.labelTextColors[I],r.fillStyle=x,Be(D.before,b),E=D.lines,l&&E.length&&(this._drawColorBox(r,e,I,v,i),m=Math.max(p.lineHeight,u)),R=0,$=E.length;R<$;++R)b(E[R]),m=p.lineHeight;Be(D.after,b)}_=0,m=p.lineHeight,Be(this.afterBody,b),e.y-=s}drawFooter(e,r,i){const o=this.footer,s=o.length;let a,l;if(s){const u=sa(i.rtl,this.x,this.width);for(e.x=Hf(this,i.footerAlign,i),e.y+=i.footerMarginTop,r.textAlign=u.textAlign(i.footerAlign),r.textBaseline="middle",a=Dt(i.footerFont),r.fillStyle=i.footerColor,r.font=a.string,l=0;l<s;++l)r.fillText(o[l],u.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+i.footerSpacing}}drawBackground(e,r,i,o){const{xAlign:s,yAlign:a}=this,{x:l,y:u}=e,{width:c,height:d}=i,{topLeft:p,topRight:m,bottomLeft:_,bottomRight:v}=Qi(o.cornerRadius);r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor,r.lineWidth=o.borderWidth,r.beginPath(),r.moveTo(l+p,u),"top"===a&&this.drawCaret(e,r,i,o),r.lineTo(l+c-m,u),r.quadraticCurveTo(l+c,u,l+c,u+m),"center"===a&&"right"===s&&this.drawCaret(e,r,i,o),r.lineTo(l+c,u+d-v),r.quadraticCurveTo(l+c,u+d,l+c-v,u+d),"bottom"===a&&this.drawCaret(e,r,i,o),r.lineTo(l+_,u+d),r.quadraticCurveTo(l,u+d,l,u+d-_),"center"===a&&"left"===s&&this.drawCaret(e,r,i,o),r.lineTo(l,u+p),r.quadraticCurveTo(l,u,l+p,u),r.closePath(),r.fill(),o.borderWidth>0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,i=this.$animations,o=i&&i.x,s=i&&i.y;if(o||s){const a=Cu[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=xI(this,e),u=Object.assign({},a,this._size),c=SI(r,e,u),d=TI(e,u,c,r);(o._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(r);const o={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=Lt(r.padding);r.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,o,r),gA(e,r.textDirection),s.y+=a.top,this.drawTitle(s,e,r),this.drawBody(s,e,r),this.drawFooter(s,e,r),mA(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const i=this._active,o=e.map(({datasetIndex:l,index:u})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[u],index:u}}),s=!mf(i,o),a=this._positionChanged(o,r);(s||a)&&(this._active=o,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,i=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,s=this._active||[],a=this._getActiveElements(e,s,r,i),l=this._positionChanged(a,e),u=r||!mf(a,s)||l;return u&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),u}_getActiveElements(e,r,i,o){const s=this.options;if("mouseout"===e.type)return[];if(!o)return r;const a=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&a.reverse(),a}_positionChanged(e,r){const{caretX:i,caretY:o,options:s}=this,a=Cu[s.position].call(this,e,r);return!1!==a&&(i!==a.x||o!==a.y)}}return n.positioners=Cu,n})();var YJ={id:"tooltip",_element:AI,positioners:Cu,afterInit(n,t,e){e&&(n.tooltip=new AI({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(!1===n.notifyPlugins("beforeTooltipDraw",e))return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){n.tooltip&&n.tooltip.handleEvent(t.event,t.replay,t.inChartArea)&&(t.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:mi,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,r=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return e[t.dataIndex]}return""},afterTitle:mi,beforeBody:mi,beforeLabel:mi,label(n){if(this&&this.options&&"dataset"===this.options.mode)return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return xe(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:mi,afterBody:mi,beforeFooter:mi,footer:mi,afterFooter:mi}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>"filter"!==n&&"itemSort"!==n&&"external"!==n,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},QJ=Object.freeze({__proto__:null,Decimation:pJ,Filler:FJ,Legend:LJ,SubTitle:UJ,Title:VJ,Tooltip:YJ});class $f extends $o{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const r=this.getLabels();for(const{index:i,label:o}of e)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(xe(t))return null;const r=this.getLabels();return((n,t)=>null===n?null:Qt(Math.round(n),0,t))(e=isFinite(e)&&r[e]===t?e:function XJ(n,t,e,r){const i=n.indexOf(t);return-1===i?((n,t,e,r)=>("string"==typeof t?(e=n.push(t)-1,r.unshift({index:e,label:t})):isNaN(t)&&(e=null),e))(n,t,e,r):i!==n.lastIndexOf(t)?e:i}(r,t,K(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=e;s++)i.push({value:s});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function II(n,t,{horizontal:e,minRotation:r}){const i=Nt(r),o=(e?Math.sin(i):Math.cos(i))||.001;return Math.min(t/o,.75*t*(""+n).length)}$f.id="category",$f.defaults={ticks:{callback:$f.prototype.getLabelForValue}};class zf extends $o{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return xe(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=e?i:l,a=l=>o=r?o:l;if(t){const l=Ur(i),u=Ur(o);l<0&&u<0?a(0):l>0&&u>0&&s(0)}if(i===o){let l=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*o)),a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let i,{maxTicksLimit:e,stepSize:r}=t;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),e=e||11),e&&(i=Math.min(e,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const s=function JJ(n,t){const e=[],{bounds:i,step:o,min:s,max:a,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:p}=n,m=o||1,_=c-1,{min:v,max:b}=t,w=!xe(s),D=!xe(a),x=!xe(u),E=(b-v)/(d+1);let R,B,$,z,I=AE((b-v)/_/m)*m;if(I<1e-14&&!w&&!D)return[{value:v},{value:b}];z=Math.ceil(b/I)-Math.floor(v/I),z>_&&(I=AE(z*I/_/m)*m),xe(l)||(R=Math.pow(10,l),I=Math.ceil(I*R)/R),"ticks"===i?(B=Math.floor(v/I)*I,$=Math.ceil(b/I)*I):(B=v,$=b),w&&D&&o&&function FQ(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}((a-s)/o,I/1e3)?(z=Math.round(Math.min((a-s)/I,c)),I=(a-s)/z,B=s,$=a):x?(B=w?s:B,$=D?a:$,z=u-1,I=($-B)/z):(z=($-B)/I,z=ru(z,Math.round(z),I/1e3)?Math.round(z):Math.ceil(z));const ee=Math.max(kE(I),kE(B));R=Math.pow(10,xe(l)?ee:l),B=Math.round(B*R)/R,$=Math.round($*R)/R;let fe=0;for(w&&(p&&B!==s?(e.push({value:s}),B<s&&fe++,ru(Math.round((B+fe*I)*R)/R,s,II(s,E,n))&&fe++):B<s&&fe++);fe<z;++fe)e.push({value:Math.round((B+fe*I)*R)/R});return D&&p&&$!==a?e.length&&ru(e[e.length-1].value,a,II(a,E,n))?e[e.length-1].value=a:e.push({value:a}):(!D||$===a)&&e.push({value:$}),e}({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&IE(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-e)/Math.max(t.length-1,1)/2;e-=i,r+=i}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return fu(t,this.chart.options.locale,this.options.ticks.format)}}class zv extends zf{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ft(t)?t:0,this.max=ft(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=Nt(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function kI(n){return n/Math.pow(10,Math.floor(ur(n)))==1}zv.id="linear",zv.defaults={ticks:{callback:Ef.formatters.numeric}};class qv extends $o{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const r=zf.prototype.parse.apply(this,[t,e]);if(0!==r)return ft(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ft(t)?Math.max(0,t):null,this.max=ft(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let r=this.min,i=this.max;const o=l=>r=t?r:l,s=l=>i=e?i:l,a=(l,u)=>Math.pow(10,Math.floor(ur(l))+u);r===i&&(r<=0?(o(1),s(10)):(o(a(r,-1)),s(a(i,1)))),r<=0&&o(a(i,-1)),i<=0&&s(a(r,1)),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&o(a(r,-1)),this.min=r,this.max=i}buildTicks(){const t=this.options,r=function eee(n,t){const e=Math.floor(ur(t.max)),r=Math.ceil(t.max/Math.pow(10,e)),i=[];let o=lr(n.min,Math.pow(10,Math.floor(ur(t.min)))),s=Math.floor(ur(o)),a=Math.floor(o/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do{i.push({value:o,major:kI(o)}),++a,10===a&&(a=1,++s,l=s>=0?1:l),o=Math.round(a*Math.pow(10,s)*l)/l}while(s<e||s===e&&a<r);const u=lr(n.max,o);return i.push({value:u,major:kI(o)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&IE(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return void 0===t?"0":fu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ur(t),this._valueRange=ur(this.max)-ur(t)}getPixelForValue(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ur(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Wv(n){const t=n.ticks;if(t.display&&n.display){const e=Lt(t.backdropPadding);return K(t.font&&t.font.size,we.font.size)+e.height}return 0}function tee(n,t,e){return e=Le(e)?e:[e],{w:fK(n,t.string,e),h:e.length*t.lineHeight}}function FI(n,t,e,r,i){return n===r||n===i?{start:t-e/2,end:t+e/2}:n<r||n>i?{start:t-e,end:t}:{start:t,end:t+e}}function ree(n,t,e,r,i){const o=Math.abs(Math.sin(e)),s=Math.abs(Math.cos(e));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,n.l=Math.min(n.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,n.r=Math.max(n.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,n.t=Math.min(n.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,n.b=Math.max(n.b,t.b+l))}function oee(n){return 0===n||180===n?"center":n<180?"left":"right"}function see(n,t,e){return"right"===e?n-=t:"center"===e&&(n-=t/2),n}function aee(n,t,e){return 90===e||270===e?n-=t/2:(e>270||e<90)&&(n-=t),n}function RI(n,t,e,r){const{ctx:i}=n;if(e)i.arc(n.xCenter,n.yCenter,t,0,Ue);else{let o=n.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=n.getPointPosition(s,t),i.lineTo(o.x,o.y)}}qv.id="logarithmic",qv.defaults={ticks:{callback:Ef.formatters.logarithmic,major:{enabled:!0}}};class wu extends zf{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Lt(Wv(this.options)/2),e=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(e,r)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ft(t)&&!isNaN(t)?t:0,this.max=ft(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Wv(this.options))}generateTickLabels(t){zf.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,r)=>{const i=qe(this.options.pointLabels.callback,[e,r],this);return i||0===i?i:""}).filter((e,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?function nee(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),r=[],i=[],o=n._pointLabels.length,s=n.options.pointLabels,a=s.centerPointLabels?Ee/o:0;for(let l=0;l<o;l++){const u=s.setContext(n.getPointLabelContext(l));i[l]=u.padding;const c=n.getPointPosition(l,n.drawingArea+i[l],a),d=Dt(u.font),p=tee(n.ctx,d,n._pointLabels[l]);r[l]=p;const m=Gn(n.getIndexAngle(l)+a),_=Math.round(vf(m));ree(e,t,m,FI(_,c.x,p.w,0,180),FI(_,c.y,p.h,90,270))}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=function iee(n,t,e){const r=[],i=n._pointLabels.length,o=n.options,s=Wv(o)/2,a=n.drawingArea,l=o.pointLabels.centerPointLabels?Ee/i:0;for(let u=0;u<i;u++){const c=n.getPointPosition(u,a+s+e[u],l),d=Math.round(vf(Gn(c.angle+mt))),p=t[u],m=aee(c.y,p.h,d),_=oee(d),v=see(c.x,p.w,_);r.push({x:c.x,y:m,textAlign:_,left:v,top:m,right:v+p.w,bottom:m+p.h})}return r}(n,r,i)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,r,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,r,i))}getIndexAngle(t){return Gn(t*(Ue/(this._pointLabels.length||1))+Nt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(xe(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(xe(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const r=e[t];return function cee(n,t,e){return Ki(n,{label:e,index:t,type:"pointLabel"})}(this.getContext(),t,r)}}getPointPosition(t,e,r=0){const i=this.getIndexAngle(t)-mt+r;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),RI(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:r,grid:i}=e,o=this._pointLabels.length;let s,a,l;if(e.pointLabels.display&&function lee(n,t){const{ctx:e,options:{pointLabels:r}}=n;for(let i=t-1;i>=0;i--){const o=r.setContext(n.getPointLabelContext(i)),s=Dt(o.font),{x:a,y:l,textAlign:u,left:c,top:d,right:p,bottom:m}=n._pointLabelItems[i],{backdropColor:_}=o;if(!xe(_)){const v=Qi(o.borderRadius),b=Lt(o.backdropPadding);e.fillStyle=_;const w=c-b.left,D=d-b.top,x=p-c+b.width,E=m-d+b.height;Object.values(v).some(I=>0!==I)?(e.beginPath(),ra(e,{x:w,y:D,w:x,h:E,radius:v}),e.fill()):e.fillRect(w,D,x,E)}Vo(e,n._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:u,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((u,c)=>{0!==c&&(a=this.getDistanceFromCenterForValue(u.value),function uee(n,t,e,r){const i=n.ctx,o=t.circular,{color:s,lineWidth:a}=t;!o&&!r||!s||!a||e<0||(i.save(),i.strokeStyle=s,i.lineWidth=a,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),RI(n,e,o,r),i.closePath(),i.stroke(),i.restore())}(this,i.setContext(this.getContext(c-1)),a,o))}),r.display){for(t.save(),s=o-1;s>=0;s--){const u=r.setContext(this.getPointLabelContext(s)),{color:c,lineWidth:d}=u;!d||!c||(t.lineWidth=d,t.strokeStyle=c,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,r=e.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const u=r.setContext(this.getContext(l)),c=Dt(u.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,s=t.measureText(a.label).width,t.fillStyle=u.backdropColor;const d=Lt(u.backdropPadding);t.fillRect(-s/2-d.left,-o-c.size/2-d.top,s+d.width,c.size+d.height)}Vo(t,a.label,0,-o,c,{color:u.color})}),t.restore()}drawTitle(){}}wu.id="radialLinear",wu.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ef.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:n=>n,padding:5,centerPointLabels:!1}},wu.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},wu.descriptors={angleLines:{_fallback:"grid"}};const qf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},kn=Object.keys(qf);function dee(n,t){return n-t}function NI(n,t){if(xe(t))return null;const e=n._adapter,{parser:r,round:i,isoWeekday:o}=n._parseOpts;let s=t;return"function"==typeof r&&(s=r(s)),ft(s)||(s="string"==typeof r?e.parse(s,r):e.parse(s)),null===s?null:(i&&(s="week"!==i||!Js(o)&&!0!==o?e.startOf(s,i):e.startOf(s,"isoWeek",o)),+s)}function LI(n,t,e,r){const i=kn.length;for(let o=kn.indexOf(n);o<i-1;++o){const s=qf[kn[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((e-t)/(a*s.size))<=r)return kn[o]}return kn[i-1]}function BI(n,t,e){if(e){if(e.length){const{lo:r,hi:i}=dv(e,t);n[e[r]>=t?e[r]:e[i]]=!0}}else n[t]=!0}function VI(n,t,e){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return 0!==o&&e?function pee(n,t,e,r){const i=n._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=e[a],l>=0&&(t[l].major=!0);return t}(n,r,i,e):r}let Gv=(()=>{class n extends $o{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,r){const i=e.time||(e.time={}),o=this._adapter=new jA._date(e.adapters.date);o.init(r),tu(i.displayFormats,o.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=r.normalized}parse(e,r){return void 0===e?null:NI(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,r=this._adapter,i=e.time.unit||"day";let{min:o,max:s,minDefined:a,maxDefined:l}=this.getUserBounds();function u(c){!a&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!l&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!a||!l)&&(u(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&u(this.getMinMax(!1))),o=ft(o)&&!isNaN(o)?o:+r.startOf(Date.now(),i),s=ft(s)&&!isNaN(s)?s:+r.endOf(Date.now(),i)+1,this.min=Math.min(o,s-1),this.max=Math.max(o+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(r=e[0],i=e[e.length-1]),{min:r,max:i}}buildTicks(){const e=this.options,r=e.time,i=e.ticks,o="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const s=this.min,l=function BQ(n,t,e){let r=0,i=n.length;for(;r<i&&n[r]<t;)r++;for(;i>r&&n[i-1]>e;)i--;return r>0||i<n.length?n.slice(r,i):n}(o,s,this.max);return this._unit=r.unit||(i.autoSkip?LI(r.minUnit,this.min,this.max,this._getLabelCapacity(s)):function fee(n,t,e,r,i){for(let o=kn.length-1;o>=kn.indexOf(e);o--){const s=kn[o];if(qf[s].common&&n._adapter.diff(i,r,s)>=t-1)return s}return kn[e?kn.indexOf(e):0]}(this,l.length,r.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function hee(n){for(let t=kn.indexOf(n)+1,e=kn.length;t<e;++t)if(qf[kn[t]].common)return kn[t]}(this._unit):void 0,this.initOffsets(o),e.reverse&&l.reverse(),VI(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e){let o,s,r=0,i=0;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),r=1===e.length?1-o:(this.getDecimalForValue(e[1])-o)/2,s=this.getDecimalForValue(e[e.length-1]),i=1===e.length?s:(s-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;r=Qt(r,0,a),i=Qt(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){const e=this._adapter,r=this.min,i=this.max,o=this.options,s=o.time,a=s.unit||LI(s.minUnit,r,i,this._getLabelCapacity(r)),l=K(s.stepSize,1),u="week"===a&&s.isoWeekday,c=Js(u)||!0===u,d={};let m,_,p=r;if(c&&(p=+e.startOf(p,"isoWeek",u)),p=+e.startOf(p,c?"day":a),e.diff(i,r,a)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+a);const v="data"===o.ticks.source&&this.getDataTimestamps();for(m=p,_=0;m<i;m=+e.add(m,l,a),_++)BI(d,m,v);return(m===i||"ticks"===o.bounds||1===_)&&BI(d,m,v),Object.keys(d).sort((b,w)=>b-w).map(b=>+b)}getLabelForValue(e){const i=this.options.time;return this._adapter.format(e,i.tooltipFormat?i.tooltipFormat:i.displayFormats.datetime)}_tickFormatFunction(e,r,i,o){const s=this.options,a=s.time.displayFormats,l=this._unit,u=this._majorUnit,d=u&&a[u],p=i[r],_=this._adapter.format(e,o||(u&&d&&p&&p.major?d:l&&a[l])),v=s.ticks.callback;return v?qe(v,[_,r,i],this):_}generateTickLabels(e){let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],o.label=this._tickFormatFunction(o.value,r,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const r=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((r.start+i)*r.factor)}getValueForPixel(e){const r=this._offsets,i=this.getDecimalForPixel(e)/r.factor-r.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const r=this.options.ticks,i=this.ctx.measureText(e).width,o=Nt(this.isHorizontal()?r.maxRotation:r.minRotation),s=Math.cos(o),a=Math.sin(o),l=this._resolveTickFontOptions(0).size;return{w:i*s+l*a,h:i*a+l*s}}_getLabelCapacity(e){const r=this.options.time,i=r.displayFormats,o=i[r.unit]||i.millisecond,s=this._tickFormatFunction(e,0,VI(this,[e],this._majorUnit),o),a=this._getLabelSize(s),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let r,i,e=this._cache.data||[];if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(r=0,i=o.length;r<i;++r)e=e.concat(o[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let r,i;if(e.length)return e;const o=this.getLabels();for(r=0,i=o.length;r<i;++r)e.push(NI(this,o[r]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return LE(e.sort(dee))}}return n.id="time",n.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},n})();function Wf(n,t,e){let o,s,a,l,r=0,i=n.length-1;e?(t>=n[r].pos&&t<=n[i].pos&&({lo:r,hi:i}=vi(n,"pos",t)),({pos:o,time:a}=n[r]),({pos:s,time:l}=n[i])):(t>=n[r].time&&t<=n[i].time&&({lo:r,hi:i}=vi(n,"time",t)),({time:o,pos:a}=n[r]),({time:s,pos:l}=n[i]));const u=s-o;return u?a+(l-a)*(t-o)/u:a}class Yv extends Gv{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Wf(e,this.min),this._tableRange=Wf(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:r}=this,i=[],o=[];let s,a,l,u,c;for(s=0,a=t.length;s<a;++s)u=t[s],u>=e&&u<=r&&i.push(u);if(i.length<2)return[{time:e,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)c=i[s+1],l=i[s-1],u=i[s],Math.round((c+l)/2)!==u&&o.push({time:u,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),r=this.getLabelTimestamps();return t=e.length&&r.length?this.normalize(e.concat(r)):e.length?e:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Wf(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,r=this.getDecimalForPixel(t)/e.factor-e.end;return Wf(this._table,r*this._tableRange+this._minPos,!0)}}Yv.id="timeseries",Yv.defaults=Gv.defaults;const mee=[JX,cJ,QJ,Object.freeze({__proto__:null,CategoryScale:$f,LinearScale:zv,LogarithmicScale:qv,RadialLinearScale:wu,TimeScale:Gv,TimeSeriesScale:Yv})];function X(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function Gf(n){return(Gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function ne(n){X(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"===Gf(n)&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var _ee={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Qv(n){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width?String(t.width):n.defaultWidth,r=n.formats[e]||n.formats[n.defaultWidth];return r}}const Mee={date:Qv({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Qv({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Qv({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Dee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Pu(n){return function(t,e){var i;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&n.formattingValues){var o=n.defaultFormattingWidth||n.defaultWidth,s=null!=e&&e.width?String(e.width):o;i=n.formattingValues[s]||n.formattingValues[o]}else{var a=n.defaultWidth,l=null!=e&&e.width?String(e.width):n.defaultWidth;i=n.values[l]||n.values[a]}return i[n.argumentCallback?n.argumentCallback(t):t]}}const Nee={ordinalNumber:function(t,e){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Pu({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Pu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pu({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Pu({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Pu({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Mu(n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],o=t.match(i);if(!o)return null;var u,s=o[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Bee(a,function(d){return d.test(s)}):Lee(a,function(d){return d.test(s)});u=n.valueCallback?n.valueCallback(l):l,u=e.valueCallback?e.valueCallback(u):u;var c=t.slice(s.length);return{value:u,rest:c}}}function Lee(n,t){for(var e in n)if(n.hasOwnProperty(e)&&t(n[e]))return e}function Bee(n,t){for(var e=0;e<n.length;e++)if(t(n[e]))return e}var Zee={ordinalNumber:function Vee(n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(n.matchPattern);if(!r)return null;var i=r[0],o=t.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=e.valueCallback?e.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:Mu({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Mu({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Mu({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Mu({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Mu({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const UI={code:"en-US",formatDistance:function(t,e,r){var i,o=_ee[t];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},formatLong:Mee,formatRelative:function(t,e,r,i){return Dee[t]},localize:Nee,match:Zee,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rt(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Du(n,t){X(2,arguments);var e=ne(n).getTime(),r=rt(t);return new Date(e+r)}function jI(n,t){X(2,arguments);var e=rt(t);return Du(n,-e)}function ete(n,t){if(null==n)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}var HI=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},$I=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const Kv={p:$I,P:function(t,e){var s,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return HI(t,e);switch(i){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"})}return s.replace("{{date}}",HI(i,e)).replace("{{time}}",$I(o,e))}};function Yf(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}var rte=["D","DD"],ite=["YY","YYYY"];function zI(n){return-1!==rte.indexOf(n)}function qI(n){return-1!==ite.indexOf(n)}function Qf(n,t,e){if("YYYY"===n)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===n)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===n)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===n)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function Kf(n){return(Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function WI(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Xv(n,t)}function Xv(n,t){return(Xv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function GI(n){var t=function ste(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Xf(n);if(t){var o=Xf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ote(this,i)}}function ote(n,t){return!t||"object"!==Kf(t)&&"function"!=typeof t?Zv(n):t}function Zv(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Xf(n){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Jv(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function YI(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function eb(n,t,e){return t&&YI(n.prototype,t),e&&YI(n,e),n}function tb(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var QI=function(){function n(){Jv(this,n),tb(this,"subPriority",0)}return eb(n,[{key:"validate",value:function(e,r){return!0}}]),n}(),lte=function(n){WI(e,n);var t=GI(e);function e(r,i,o,s,a){var l;return Jv(this,e),(l=t.call(this)).value=r,l.validateValue=i,l.setValue=o,l.priority=s,a&&(l.subPriority=a),l}return eb(e,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,s){return this.setValue(i,o,this.value,s)}}]),e}(QI),ute=function(n){WI(e,n);var t=GI(e);function e(){var r;Jv(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return tb(Zv(r=t.call.apply(t,[this].concat(o))),"priority",10),tb(Zv(r),"subPriority",-1),r}return eb(e,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),e}(QI);function KI(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Ae=function(){function n(){!function cte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n)}return function dte(n,t,e){t&&KI(n.prototype,t),e&&KI(n,e)}(n,[{key:"run",value:function(e,r,i,o){var s=this.parse(e,r,i,o);return s?{setter:new lte(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(e,r,i){return!0}}]),n}();function Zf(n){return(Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function fte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function XI(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function nb(n,t){return(nb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function mte(n,t){return!t||"object"!==Zf(t)&&"function"!=typeof t?rb(n):t}function rb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jf(n){return(Jf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function ZI(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var yte=function(n){!function pte(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&nb(n,t)}(e,n);var t=function gte(n){var t=function _te(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Jf(n);if(t){var o=Jf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mte(this,i)}}(e);function e(){var r;fte(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ZI(rb(r=t.call.apply(t,[this].concat(o))),"priority",140),ZI(rb(r),"incompatibleTokens",["R","u","t","T"]),r}return function hte(n,t,e){t&&XI(n.prototype,t),e&&XI(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,s){return o.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae),eh=(Math.pow(10,8),6e4),th=36e5,xt_month=/^(1[0-2]|0?\d)/,xt_date=/^(3[0-1]|[0-2]?\d)/,xt_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,xt_week=/^(5[0-3]|[0-4]?\d)/,xt_hour23h=/^(2[0-3]|[0-1]?\d)/,xt_hour24h=/^(2[0-4]|[0-1]?\d)/,xt_hour11h=/^(1[0-1]|0?\d)/,xt_hour12h=/^(1[0-2]|0?\d)/,xt_minute=/^[0-5]?\d/,xt_second=/^[0-5]?\d/,xt_singleDigit=/^\d/,xt_twoDigits=/^\d{1,2}/,xt_threeDigits=/^\d{1,3}/,xt_fourDigits=/^\d{1,4}/,xt_anyDigitsSigned=/^-?\d+/,xt_singleDigitSigned=/^-?\d/,xt_twoDigitsSigned=/^-?\d{1,2}/,xt_threeDigitsSigned=/^-?\d{1,3}/,xt_fourDigitsSigned=/^-?\d{1,4}/,zr_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,zr_basic=/^([+-])(\d{2})(\d{2})|Z/,zr_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,zr_extended=/^([+-])(\d{2}):(\d{2})|Z/,zr_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function St(n,t){return n&&{value:t(n.value),rest:n.rest}}function ht(n,t){var e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function qr(n,t){var e=t.match(n);if(!e)return null;if("Z"===e[0])return{value:0,rest:t.slice(1)};var r="+"===e[1]?1:-1,i=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,s=e[5]?parseInt(e[5],10):0;return{value:r*(i*th+o*eh+1e3*s),rest:t.slice(e[0].length)}}function e2(n){return ht(xt_anyDigitsSigned,n)}function _t(n,t){switch(n){case 1:return ht(xt_singleDigit,t);case 2:return ht(xt_twoDigits,t);case 3:return ht(xt_threeDigits,t);case 4:return ht(xt_fourDigits,t);default:return ht(new RegExp("^\\d{1,"+n+"}"),t)}}function nh(n,t){switch(n){case 1:return ht(xt_singleDigitSigned,t);case 2:return ht(xt_twoDigitsSigned,t);case 3:return ht(xt_threeDigitsSigned,t);case 4:return ht(xt_fourDigitsSigned,t);default:return ht(new RegExp("^-?\\d{1,"+n+"}"),t)}}function ib(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function t2(n,t){var i,e=t>0,r=e?t:1-t;if(r<=50)i=n||100;else{var o=r+50;i=n+100*Math.floor(o/100)-(n>=o%100?100:0)}return e?i:1-i}function n2(n){return n%400==0||n%4==0&&n%100!=0}function rh(n){return(rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Dte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function r2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function ob(n,t){return(ob=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Ote(n,t){return!t||"object"!==rh(t)&&"function"!=typeof t?sb(n):t}function sb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ih(n){return(ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function i2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ate=function(n){!function Ste(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&ob(n,t)}(e,n);var t=function Tte(n){var t=function Ete(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ih(n);if(t){var o=ih(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ote(this,i)}}(e);function e(){var r;Dte(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return i2(sb(r=t.call.apply(t,[this].concat(o))),"priority",130),i2(sb(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return function xte(n,t,e){t&&r2(n.prototype,t),e&&r2(n,e)}(e,[{key:"parse",value:function(i,o,s){var a=function(u){return{year:u,isTwoDigitYear:"yy"===o}};switch(o){case"y":return St(_t(4,i),a);case"yo":return St(s.ordinalNumber(i,{unit:"year"}),a);default:return St(_t(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=t2(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae),o2={};function Ji(){return o2}function qo(n,t){var e,r,i,o,s,a,l,u;X(1,arguments);var c=Ji(),d=rt(null!==(e=null!==(r=null!==(i=null!==(o=t?.weekStartsOn)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ne(n),m=p.getUTCDay(),_=(m<d?7:0)+m-d;return p.setUTCDate(p.getUTCDate()-_),p.setUTCHours(0,0,0,0),p}function ab(n,t){var e,r,i,o,s,a,l,u;X(1,arguments);var c=ne(n),d=c.getUTCFullYear(),p=Ji(),m=rt(null!==(e=null!==(r=null!==(i=null!==(o=t?.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==e?e:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(d+1,0,m),_.setUTCHours(0,0,0,0);var v=qo(_,t),b=new Date(0);b.setUTCFullYear(d,0,m),b.setUTCHours(0,0,0,0);var w=qo(b,t);return c.getTime()>=v.getTime()?d+1:c.getTime()>=w.getTime()?d:d-1}function oh(n){return(oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Ite(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function s2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function lb(n,t){return(lb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Nte(n,t){return!t||"object"!==oh(t)&&"function"!=typeof t?ub(n):t}function ub(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function sh(n){return(sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function a2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Bte=function(n){!function Fte(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&lb(n,t)}(e,n);var t=function Rte(n){var t=function Lte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=sh(n);if(t){var o=sh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nte(this,i)}}(e);function e(){var r;Ite(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return a2(ub(r=t.call.apply(t,[this].concat(o))),"priority",130),a2(ub(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return function kte(n,t,e){t&&s2(n.prototype,t),e&&s2(n,e)}(e,[{key:"parse",value:function(i,o,s){var a=function(u){return{year:u,isTwoDigitYear:"YY"===o}};switch(o){case"Y":return St(_t(4,i),a);case"Yo":return St(s.ordinalNumber(i,{unit:"year"}),a);default:return St(_t(o.length,i),a)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(i,o,s,a){var l=ab(i,a);if(s.isTwoDigitYear){var u=t2(s.year,l);return i.setUTCFullYear(u,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),qo(i,a)}return i.setUTCFullYear("era"in o&&1!==o.era?1-s.year:s.year,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),qo(i,a)}}]),e}(Ae);function la(n){X(1,arguments);var t=1,e=ne(n),r=e.getUTCDay(),i=(r<t?7:0)+r-t;return e.setUTCDate(e.getUTCDate()-i),e.setUTCHours(0,0,0,0),e}function ah(n){return(ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Vte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function cb(n,t){return(cb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function $te(n,t){return!t||"object"!==ah(t)&&"function"!=typeof t?db(n):t}function db(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function lh(n){return(lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function u2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var qte=function(n){!function jte(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&cb(n,t)}(e,n);var t=function Hte(n){var t=function zte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=lh(n);if(t){var o=lh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return $te(this,i)}}(e);function e(){var r;Vte(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return u2(db(r=t.call.apply(t,[this].concat(o))),"priority",130),u2(db(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return function Ute(n,t,e){t&&l2(n.prototype,t),e&&l2(n,e)}(e,[{key:"parse",value:function(i,o){return nh("R"===o?4:o.length,i)}},{key:"set",value:function(i,o,s){var a=new Date(0);return a.setUTCFullYear(s,0,4),a.setUTCHours(0,0,0,0),la(a)}}]),e}(Ae);function uh(n){return(uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Wte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function fb(n,t){return(fb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Kte(n,t){return!t||"object"!==uh(t)&&"function"!=typeof t?hb(n):t}function hb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ch(n){return(ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function d2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Zte=function(n){!function Yte(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&fb(n,t)}(e,n);var t=function Qte(n){var t=function Xte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ch(n);if(t){var o=ch(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Kte(this,i)}}(e);function e(){var r;Wte(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return d2(hb(r=t.call.apply(t,[this].concat(o))),"priority",130),d2(hb(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return function Gte(n,t,e){t&&c2(n.prototype,t),e&&c2(n,e)}(e,[{key:"parse",value:function(i,o){return nh("u"===o?4:o.length,i)}},{key:"set",value:function(i,o,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function dh(n){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Jte(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function f2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function pb(n,t){return(pb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function rne(n,t){return!t||"object"!==dh(t)&&"function"!=typeof t?gb(n):t}function gb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function fh(n){return(fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function h2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var one=function(n){!function tne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&pb(n,t)}(e,n);var t=function nne(n){var t=function ine(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=fh(n);if(t){var o=fh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return rne(this,i)}}(e);function e(){var r;Jte(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return h2(gb(r=t.call.apply(t,[this].concat(o))),"priority",120),h2(gb(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function ene(n,t,e){t&&f2(n.prototype,t),e&&f2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"Q":case"QQ":return _t(o.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function hh(n){return(hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function sne(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function p2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function mb(n,t){return(mb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function cne(n,t){return!t||"object"!==hh(t)&&"function"!=typeof t?_b(n):t}function _b(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ph(n){return(ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function g2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var fne=function(n){!function lne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&mb(n,t)}(e,n);var t=function une(n){var t=function dne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ph(n);if(t){var o=ph(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return cne(this,i)}}(e);function e(){var r;sne(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return g2(_b(r=t.call.apply(t,[this].concat(o))),"priority",120),g2(_b(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return function ane(n,t,e){t&&p2(n.prototype,t),e&&p2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"q":case"qq":return _t(o.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth(3*(s-1),1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function gh(n){return(gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function hne(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function m2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function yb(n,t){return(yb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function _ne(n,t){return!t||"object"!==gh(t)&&"function"!=typeof t?vb(n):t}function vb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function mh(n){return(mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function _2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var vne=function(n){!function gne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&yb(n,t)}(e,n);var t=function mne(n){var t=function yne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=mh(n);if(t){var o=mh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return _ne(this,i)}}(e);function e(){var r;hne(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return _2(vb(r=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_2(vb(r),"priority",110),r}return function pne(n,t,e){t&&m2(n.prototype,t),e&&m2(n,e)}(e,[{key:"parse",value:function(i,o,s){var a=function(u){return u-1};switch(o){case"M":return St(ht(xt_month,i),a);case"MM":return St(_t(2,i),a);case"Mo":return St(s.ordinalNumber(i,{unit:"month"}),a);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function _h(n){return(_h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function bne(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function y2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function bb(n,t){return(bb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Mne(n,t){return!t||"object"!==_h(t)&&"function"!=typeof t?Cb(n):t}function Cb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function yh(n){return(yh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function v2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var xne=function(n){!function wne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&bb(n,t)}(e,n);var t=function Pne(n){var t=function Dne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=yh(n);if(t){var o=yh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mne(this,i)}}(e);function e(){var r;bne(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return v2(Cb(r=t.call.apply(t,[this].concat(o))),"priority",110),v2(Cb(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return function Cne(n,t,e){t&&y2(n.prototype,t),e&&y2(n,e)}(e,[{key:"parse",value:function(i,o,s){var a=function(u){return u-1};switch(o){case"L":return St(ht(xt_month,i),a);case"LL":return St(_t(2,i),a);case"Lo":return St(s.ordinalNumber(i,{unit:"month"}),a);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function Sne(n,t){var e,r,i,o,s,a,l,u;X(1,arguments);var c=Ji(),d=rt(null!==(e=null!==(r=null!==(i=null!==(o=t?.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==e?e:1),p=ab(n,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var _=qo(m,t);return _}function b2(n,t){X(1,arguments);var e=ne(n),r=qo(e,t).getTime()-Sne(e,t).getTime();return Math.round(r/6048e5)+1}function vh(n){return(vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Ene(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function wb(n,t){return(wb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Fne(n,t){return!t||"object"!==vh(t)&&"function"!=typeof t?Pb(n):t}function Pb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function bh(n){return(bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function w2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Nne=function(n){!function Ine(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&wb(n,t)}(e,n);var t=function kne(n){var t=function Rne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=bh(n);if(t){var o=bh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Fne(this,i)}}(e);function e(){var r;Ene(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return w2(Pb(r=t.call.apply(t,[this].concat(o))),"priority",100),w2(Pb(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return function Ane(n,t,e){t&&C2(n.prototype,t),e&&C2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"w":return ht(xt_week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s,a){return qo(function One(n,t,e){X(2,arguments);var r=ne(n),i=rt(t),o=b2(r,e)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(i,s,a),a)}}]),e}(Ae);function P2(n){X(1,arguments);var t=ne(n),e=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var i=la(r),o=new Date(0);o.setUTCFullYear(e,0,4),o.setUTCHours(0,0,0,0);var s=la(o);return t.getTime()>=i.getTime()?e+1:t.getTime()>=s.getTime()?e:e-1}function Lne(n){X(1,arguments);var t=P2(n),e=new Date(0);e.setUTCFullYear(t,0,4),e.setUTCHours(0,0,0,0);var r=la(e);return r}function M2(n){X(1,arguments);var t=ne(n),e=la(t).getTime()-Lne(t).getTime();return Math.round(e/6048e5)+1}function Ch(n){return(Ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Une(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function D2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Mb(n,t){return(Mb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function zne(n,t){return!t||"object"!==Ch(t)&&"function"!=typeof t?Db(n):t}function Db(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function wh(n){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function x2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Wne=function(n){!function Hne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Mb(n,t)}(e,n);var t=function $ne(n){var t=function qne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=wh(n);if(t){var o=wh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zne(this,i)}}(e);function e(){var r;Une(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return x2(Db(r=t.call.apply(t,[this].concat(o))),"priority",100),x2(Db(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return function jne(n,t,e){t&&D2(n.prototype,t),e&&D2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"I":return ht(xt_week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=53}},{key:"set",value:function(i,o,s){return la(function Vne(n,t){X(2,arguments);var e=ne(n),r=rt(t),i=M2(e)-r;return e.setUTCDate(e.getUTCDate()-7*i),e}(i,s))}}]),e}(Ae);function Ph(n){return(Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Gne(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function S2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function xb(n,t){return(xb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Xne(n,t){return!t||"object"!==Ph(t)&&"function"!=typeof t?Mh(n):t}function Mh(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Dh(n){return(Dh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Sb(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Jne=[31,28,31,30,31,30,31,31,30,31,30,31],ere=[31,29,31,30,31,30,31,31,30,31,30,31],tre=function(n){!function Qne(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&xb(n,t)}(e,n);var t=function Kne(n){var t=function Zne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Dh(n);if(t){var o=Dh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xne(this,i)}}(e);function e(){var r;Gne(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Sb(Mh(r=t.call.apply(t,[this].concat(o))),"priority",90),Sb(Mh(r),"subPriority",1),Sb(Mh(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return function Yne(n,t,e){t&&S2(n.prototype,t),e&&S2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"d":return ht(xt_date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){var a=n2(i.getUTCFullYear()),l=i.getUTCMonth();return a?o>=1&&o<=ere[l]:o>=1&&o<=Jne[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function xh(n){return(xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function nre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function T2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Tb(n,t){return(Tb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function sre(n,t){return!t||"object"!==xh(t)&&"function"!=typeof t?Sh(n):t}function Sh(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Th(n){return(Th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Ob(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var lre=function(n){!function ire(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Tb(n,t)}(e,n);var t=function ore(n){var t=function are(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Th(n);if(t){var o=Th(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sre(this,i)}}(e);function e(){var r;nre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Ob(Sh(r=t.call.apply(t,[this].concat(o))),"priority",90),Ob(Sh(r),"subpriority",1),Ob(Sh(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return function rre(n,t,e){t&&T2(n.prototype,t),e&&T2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"D":case"DD":return ht(xt_dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return n2(i.getUTCFullYear())?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function Eb(n,t,e){var r,i,o,s,a,l,u,c;X(2,arguments);var d=Ji(),p=rt(null!==(r=null!==(i=null!==(o=null!==(s=e?.weekStartsOn)&&void 0!==s?s:null==e||null===(a=e.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=ne(n),_=rt(t),v=m.getUTCDay(),b=_%7,w=(b+7)%7,D=(w<p?7:0)+_-v;return m.setUTCDate(m.getUTCDate()+D),m}function Oh(n){return(Oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function ure(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function O2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Ab(n,t){return(Ab=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function hre(n,t){return!t||"object"!==Oh(t)&&"function"!=typeof t?Ib(n):t}function Ib(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Eh(n){return(Eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function E2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var gre=function(n){!function dre(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Ab(n,t)}(e,n);var t=function fre(n){var t=function pre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Eh(n);if(t){var o=Eh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hre(this,i)}}(e);function e(){var r;ure(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return E2(Ib(r=t.call.apply(t,[this].concat(o))),"priority",90),E2(Ib(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return function cre(n,t,e){t&&O2(n.prototype,t),e&&O2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Eb(i,s,a)).setUTCHours(0,0,0,0),i}}]),e}(Ae);function Ah(n){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function mre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function A2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function kb(n,t){return(kb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function bre(n,t){return!t||"object"!==Ah(t)&&"function"!=typeof t?Fb(n):t}function Fb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ih(n){return(Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function I2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var wre=function(n){!function yre(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&kb(n,t)}(e,n);var t=function vre(n){var t=function Cre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Ih(n);if(t){var o=Ih(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bre(this,i)}}(e);function e(){var r;mre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return I2(Fb(r=t.call.apply(t,[this].concat(o))),"priority",90),I2(Fb(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return function _re(n,t,e){t&&A2(n.prototype,t),e&&A2(n,e)}(e,[{key:"parse",value:function(i,o,s,a){var l=function(c){var d=7*Math.floor((c-1)/7);return(c+a.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return St(_t(o.length,i),l);case"eo":return St(s.ordinalNumber(i,{unit:"day"}),l);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Eb(i,s,a)).setUTCHours(0,0,0,0),i}}]),e}(Ae);function kh(n){return(kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Pre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function k2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Rb(n,t){return(Rb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Sre(n,t){return!t||"object"!==kh(t)&&"function"!=typeof t?Nb(n):t}function Nb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fh(n){return(Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function F2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Ore=function(n){!function Dre(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Rb(n,t)}(e,n);var t=function xre(n){var t=function Tre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Fh(n);if(t){var o=Fh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Sre(this,i)}}(e);function e(){var r;Pre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return F2(Nb(r=t.call.apply(t,[this].concat(o))),"priority",90),F2(Nb(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return function Mre(n,t,e){t&&k2(n.prototype,t),e&&k2(n,e)}(e,[{key:"parse",value:function(i,o,s,a){var l=function(c){var d=7*Math.floor((c-1)/7);return(c+a.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return St(_t(o.length,i),l);case"co":return St(s.ordinalNumber(i,{unit:"day"}),l);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=0&&o<=6}},{key:"set",value:function(i,o,s,a){return(i=Eb(i,s,a)).setUTCHours(0,0,0,0),i}}]),e}(Ae);function Rh(n){return(Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Are(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function R2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Lb(n,t){return(Lb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Rre(n,t){return!t||"object"!==Rh(t)&&"function"!=typeof t?Bb(n):t}function Bb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Nh(n){return(Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function N2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Lre=function(n){!function kre(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Lb(n,t)}(e,n);var t=function Fre(n){var t=function Nre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Nh(n);if(t){var o=Nh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Rre(this,i)}}(e);function e(){var r;Are(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return N2(Bb(r=t.call.apply(t,[this].concat(o))),"priority",90),N2(Bb(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return function Ire(n,t,e){t&&R2(n.prototype,t),e&&R2(n,e)}(e,[{key:"parse",value:function(i,o,s){var a=function(u){return 0===u?7:u};switch(o){case"i":case"ii":return _t(o.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return St(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiii":return St(s.day(i,{width:"narrow",context:"formatting"}),a);case"iiiiii":return St(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a);default:return St(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),a)}}},{key:"validate",value:function(i,o){return o>=1&&o<=7}},{key:"set",value:function(i,o,s){return i=function Ere(n,t){X(2,arguments);var e=rt(t);e%7==0&&(e-=7);var r=1,i=ne(n),o=i.getUTCDay(),l=((e%7+7)%7<r?7:0)+e-o;return i.setUTCDate(i.getUTCDate()+l),i}(i,s),i.setUTCHours(0,0,0,0),i}}]),e}(Ae);function Lh(n){return(Lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Bre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function L2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Vb(n,t){return(Vb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Hre(n,t){return!t||"object"!==Lh(t)&&"function"!=typeof t?Ub(n):t}function Ub(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Bh(n){return(Bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function B2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var zre=function(n){!function Ure(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Vb(n,t)}(e,n);var t=function jre(n){var t=function $re(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Bh(n);if(t){var o=Bh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hre(this,i)}}(e);function e(){var r;Bre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return B2(Ub(r=t.call.apply(t,[this].concat(o))),"priority",80),B2(Ub(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return function Vre(n,t,e){t&&L2(n.prototype,t),e&&L2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ib(s),0,0,0),i}}]),e}(Ae);function Vh(n){return(Vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function qre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function V2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function jb(n,t){return(jb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Qre(n,t){return!t||"object"!==Vh(t)&&"function"!=typeof t?Hb(n):t}function Hb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Uh(n){return(Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function U2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Xre=function(n){!function Gre(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&jb(n,t)}(e,n);var t=function Yre(n){var t=function Kre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Uh(n);if(t){var o=Uh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Qre(this,i)}}(e);function e(){var r;qre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return U2(Hb(r=t.call.apply(t,[this].concat(o))),"priority",80),U2(Hb(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return function Wre(n,t,e){t&&V2(n.prototype,t),e&&V2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ib(s),0,0,0),i}}]),e}(Ae);function jh(n){return(jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Zre(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function j2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function $b(n,t){return($b=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function nie(n,t){return!t||"object"!==jh(t)&&"function"!=typeof t?zb(n):t}function zb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Hh(n){return(Hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function H2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var iie=function(n){!function eie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&$b(n,t)}(e,n);var t=function tie(n){var t=function rie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Hh(n);if(t){var o=Hh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nie(this,i)}}(e);function e(){var r;Zre(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return H2(zb(r=t.call.apply(t,[this].concat(o))),"priority",80),H2(zb(r),"incompatibleTokens",["a","b","t","T"]),r}return function Jre(n,t,e){t&&j2(n.prototype,t),e&&j2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,s){return i.setUTCHours(ib(s),0,0,0),i}}]),e}(Ae);function $h(n){return($h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function oie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function $2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function qb(n,t){return(qb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function uie(n,t){return!t||"object"!==$h(t)&&"function"!=typeof t?Wb(n):t}function Wb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function zh(n){return(zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function z2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var die=function(n){!function aie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&qb(n,t)}(e,n);var t=function lie(n){var t=function cie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=zh(n);if(t){var o=zh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return uie(this,i)}}(e);function e(){var r;oie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return z2(Wb(r=t.call.apply(t,[this].concat(o))),"priority",70),z2(Wb(r),"incompatibleTokens",["H","K","k","t","T"]),r}return function sie(n,t,e){t&&$2(n.prototype,t),e&&$2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"h":return ht(xt_hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:a||12!==s?s:0,0,0,0),i}}]),e}(Ae);function qh(n){return(qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function fie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Gb(n,t){return(Gb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function mie(n,t){return!t||"object"!==qh(t)&&"function"!=typeof t?Yb(n):t}function Yb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Wh(n){return(Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function W2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var yie=function(n){!function pie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Gb(n,t)}(e,n);var t=function gie(n){var t=function _ie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Wh(n);if(t){var o=Wh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return mie(this,i)}}(e);function e(){var r;fie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return W2(Yb(r=t.call.apply(t,[this].concat(o))),"priority",70),W2(Yb(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return function hie(n,t,e){t&&q2(n.prototype,t),e&&q2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"H":return ht(xt_hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),e}(Ae);function Gh(n){return(Gh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function vie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function G2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Qb(n,t){return(Qb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Pie(n,t){return!t||"object"!==Gh(t)&&"function"!=typeof t?Kb(n):t}function Kb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Yh(n){return(Yh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Y2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Die=function(n){!function Cie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Qb(n,t)}(e,n);var t=function wie(n){var t=function Mie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Yh(n);if(t){var o=Yh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Pie(this,i)}}(e);function e(){var r;vie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Y2(Kb(r=t.call.apply(t,[this].concat(o))),"priority",70),Y2(Kb(r),"incompatibleTokens",["h","H","k","t","T"]),r}return function bie(n,t,e){t&&G2(n.prototype,t),e&&G2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"K":return ht(xt_hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return i.setUTCHours(a&&s<12?s+12:s,0,0,0),i}}]),e}(Ae);function Qh(n){return(Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function xie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Q2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Xb(n,t){return(Xb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Eie(n,t){return!t||"object"!==Qh(t)&&"function"!=typeof t?Zb(n):t}function Zb(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Kh(n){return(Kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function K2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Iie=function(n){!function Tie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Xb(n,t)}(e,n);var t=function Oie(n){var t=function Aie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Kh(n);if(t){var o=Kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Eie(this,i)}}(e);function e(){var r;xie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return K2(Zb(r=t.call.apply(t,[this].concat(o))),"priority",70),K2(Zb(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return function Sie(n,t,e){t&&Q2(n.prototype,t),e&&Q2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"k":return ht(xt_hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=1&&o<=24}},{key:"set",value:function(i,o,s){return i.setUTCHours(s<=24?s%24:s,0,0,0),i}}]),e}(Ae);function Xh(n){return(Xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function kie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function X2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Jb(n,t){return(Jb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Lie(n,t){return!t||"object"!==Xh(t)&&"function"!=typeof t?e0(n):t}function e0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Zh(n){return(Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function Z2(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Vie=function(n){!function Rie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Jb(n,t)}(e,n);var t=function Nie(n){var t=function Bie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=Zh(n);if(t){var o=Zh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Lie(this,i)}}(e);function e(){var r;kie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Z2(e0(r=t.call.apply(t,[this].concat(o))),"priority",60),Z2(e0(r),"incompatibleTokens",["t","T"]),r}return function Fie(n,t,e){t&&X2(n.prototype,t),e&&X2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"m":return ht(xt_minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),e}(Ae);function Jh(n){return(Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Uie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function J2(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function t0(n,t){return(t0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function zie(n,t){return!t||"object"!==Jh(t)&&"function"!=typeof t?n0(n):t}function n0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ep(n){return(ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function ek(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Wie=function(n){!function Hie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&t0(n,t)}(e,n);var t=function $ie(n){var t=function qie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ep(n);if(t){var o=ep(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zie(this,i)}}(e);function e(){var r;Uie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ek(n0(r=t.call.apply(t,[this].concat(o))),"priority",50),ek(n0(r),"incompatibleTokens",["t","T"]),r}return function jie(n,t,e){t&&J2(n.prototype,t),e&&J2(n,e)}(e,[{key:"parse",value:function(i,o,s){switch(o){case"s":return ht(xt_second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return _t(o.length,i)}}},{key:"validate",value:function(i,o){return o>=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),e}(Ae);function tp(n){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Gie(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function tk(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function r0(n,t){return(r0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Xie(n,t){return!t||"object"!==tp(t)&&"function"!=typeof t?o0(n):t}function o0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function np(n){return(np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function nk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Jie=function(n){!function Qie(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&r0(n,t)}(e,n);var t=function Kie(n){var t=function Zie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=np(n);if(t){var o=np(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xie(this,i)}}(e);function e(){var r;Gie(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return nk(o0(r=t.call.apply(t,[this].concat(o))),"priority",30),nk(o0(r),"incompatibleTokens",["t","T"]),r}return function Yie(n,t,e){t&&tk(n.prototype,t),e&&tk(n,e)}(e,[{key:"parse",value:function(i,o){return St(_t(o.length,i),function(l){return Math.floor(l*Math.pow(10,3-o.length))})}},{key:"set",value:function(i,o,s){return i.setUTCMilliseconds(s),i}}]),e}(Ae);function rp(n){return(rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function eoe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function rk(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function s0(n,t){return(s0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function ioe(n,t){return!t||"object"!==rp(t)&&"function"!=typeof t?a0(n):t}function a0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ip(n){return(ip=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function ik(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var soe=function(n){!function noe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&s0(n,t)}(e,n);var t=function roe(n){var t=function ooe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=ip(n);if(t){var o=ip(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return ioe(this,i)}}(e);function e(){var r;eoe(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ik(a0(r=t.call.apply(t,[this].concat(o))),"priority",10),ik(a0(r),"incompatibleTokens",["t","T","x"]),r}return function toe(n,t,e){t&&rk(n.prototype,t),e&&rk(n,e)}(e,[{key:"parse",value:function(i,o){switch(o){case"X":return qr(zr_basicOptionalMinutes,i);case"XX":return qr(zr_basic,i);case"XXXX":return qr(zr_basicOptionalSeconds,i);case"XXXXX":return qr(zr_extendedOptionalSeconds,i);default:return qr(zr_extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),e}(Ae);function op(n){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function aoe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function ok(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function l0(n,t){return(l0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function doe(n,t){return!t||"object"!==op(t)&&"function"!=typeof t?u0(n):t}function u0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function sp(n){return(sp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function sk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var hoe=function(n){!function uoe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&l0(n,t)}(e,n);var t=function coe(n){var t=function foe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=sp(n);if(t){var o=sp(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return doe(this,i)}}(e);function e(){var r;aoe(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return sk(u0(r=t.call.apply(t,[this].concat(o))),"priority",10),sk(u0(r),"incompatibleTokens",["t","T","X"]),r}return function loe(n,t,e){t&&ok(n.prototype,t),e&&ok(n,e)}(e,[{key:"parse",value:function(i,o){switch(o){case"x":return qr(zr_basicOptionalMinutes,i);case"xx":return qr(zr_basic,i);case"xxxx":return qr(zr_basicOptionalSeconds,i);case"xxxxx":return qr(zr_extendedOptionalSeconds,i);default:return qr(zr_extended,i)}}},{key:"set",value:function(i,o,s){return o.timestampIsSet?i:new Date(i.getTime()-s)}}]),e}(Ae);function ap(n){return(ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function poe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function ak(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function c0(n,t){return(c0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function yoe(n,t){return!t||"object"!==ap(t)&&"function"!=typeof t?d0(n):t}function d0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function lp(n){return(lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function lk(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var boe=function(n){!function moe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&c0(n,t)}(e,n);var t=function _oe(n){var t=function voe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=lp(n);if(t){var o=lp(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yoe(this,i)}}(e);function e(){var r;poe(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return lk(d0(r=t.call.apply(t,[this].concat(o))),"priority",40),lk(d0(r),"incompatibleTokens","*"),r}return function goe(n,t,e){t&&ak(n.prototype,t),e&&ak(n,e)}(e,[{key:"parse",value:function(i){return e2(i)}},{key:"set",value:function(i,o,s){return[new Date(1e3*s),{timestampIsSet:!0}]}}]),e}(Ae);function up(n){return(up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function Coe(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function f0(n,t){return(f0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r})(n,t)}function Doe(n,t){return!t||"object"!==up(t)&&"function"!=typeof t?h0(n):t}function h0(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function cp(n){return(cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(n)}function ck(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var Soe=function(n){!function Poe(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&f0(n,t)}(e,n);var t=function Moe(n){var t=function xoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var i,r=cp(n);if(t){var o=cp(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Doe(this,i)}}(e);function e(){var r;Coe(this,e);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ck(h0(r=t.call.apply(t,[this].concat(o))),"priority",20),ck(h0(r),"incompatibleTokens","*"),r}return function woe(n,t,e){t&&uk(n.prototype,t),e&&uk(n,e)}(e,[{key:"parse",value:function(i){return e2(i)}},{key:"set",value:function(i,o,s){return[new Date(s),{timestampIsSet:!0}]}}]),e}(Ae),Toe={G:new yte,y:new Ate,Y:new Bte,R:new qte,u:new Zte,Q:new one,q:new fne,M:new vne,L:new xne,w:new Nne,I:new Wne,d:new tre,D:new lre,E:new gre,e:new wre,c:new Ore,i:new Lre,a:new zre,b:new Xre,B:new iie,h:new die,H:new yie,K:new Die,k:new Iie,m:new Vie,s:new Wie,S:new Jie,X:new soe,x:new hoe,t:new boe,T:new Soe};function dp(n){return(dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function dk(n,t){var e;if(typeof Symbol>"u"||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function Ooe(n,t){if(n){if("string"==typeof n)return fk(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if("Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return fk(n,t)}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){e=n[Symbol.iterator]()},n:function(){var u=e.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&null!=e.return&&e.return()}finally{if(s)throw a}}}}function fk(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var Eoe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Aoe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ioe=/^'([^]*?)'?$/,koe=/''/g,Foe=/\S/,Roe=/[a-zA-Z]/;function Loe(n){return n.match(Ioe)[1].replace(koe,"'")}var fp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Voe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Uoe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,joe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hoe(n){var r,t={},e=n.split(fp.dateTimeDelimiter);if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],fp.timeZoneDelimiter.test(t.date)&&(t.date=n.split(fp.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){var i=fp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function $oe(n,t){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:n.slice((r[1]||r[2]).length)}}function zoe(n,t){if(null===t)return new Date(NaN);var e=n.match(Voe);if(!e)return new Date(NaN);var r=!!e[4],i=xu(e[1]),o=xu(e[2])-1,s=xu(e[3]),a=xu(e[4]),l=xu(e[5])-1;if(r)return function Xoe(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}(0,a,l)?function Goe(n,t,e){var r=new Date(0);r.setUTCFullYear(n,0,4);var o=7*(t-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,a,l):new Date(NaN);var u=new Date(0);return function Qoe(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(Yoe[t]||(hk(n)?29:28))}(t,o,s)&&function Koe(n,t){return t>=1&&t<=(hk(n)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,s)),u):new Date(NaN)}function xu(n){return n?parseInt(n):1}function qoe(n){var t=n.match(Uoe);if(!t)return NaN;var e=p0(t[1]),r=p0(t[2]),i=p0(t[3]);return function Zoe(n,t,e){return 24===n?0===t&&0===e:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}(e,r,i)?e*th+r*eh+1e3*i:NaN}function p0(n){return n&&parseFloat(n.replace(",","."))||0}function Woe(n){if("Z"===n)return 0;var t=n.match(joe);if(!t)return 0;var e="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function Joe(n,t){return t>=0&&t<=59}(0,i)?e*(r*th+i*eh):NaN}var Yoe=[31,null,31,30,31,30,31,31,30,31,30,31];function hk(n){return n%400==0||n%4==0&&n%100!=0}function hp(n){return(hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function ese(n){return X(1,arguments),n instanceof Date||"object"===hp(n)&&"[object Date]"===Object.prototype.toString.call(n)}function pk(n){if(X(1,arguments),!ese(n)&&"number"!=typeof n)return!1;var t=ne(n);return!isNaN(Number(t))}function Ve(n,t){for(var e=n<0?"-":"",r=Math.abs(n).toString();r.length<t;)r="0"+r;return e+r}const eo_y=function(t,e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Ve("yy"===e?i%100:i,e.length)},eo_M=function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):Ve(r+1,2)},eo_d=function(t,e){return Ve(t.getUTCDate(),e.length)},eo_h=function(t,e){return Ve(t.getUTCHours()%12||12,e.length)},eo_H=function(t,e){return Ve(t.getUTCHours(),e.length)},eo_m=function(t,e){return Ve(t.getUTCMinutes(),e.length)},eo_s=function(t,e){return Ve(t.getUTCSeconds(),e.length)},eo_S=function(t,e){var r=e.length,i=t.getUTCMilliseconds();return Ve(Math.floor(i*Math.pow(10,r-3)),e.length)};var ise={G:function(t,e,r){var i=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var i=t.getUTCFullYear();return r.ordinalNumber(i>0?i:1-i,{unit:"year"})}return eo_y(t,e)},Y:function(t,e,r,i){var o=ab(t,i),s=o>0?o:1-o;return"YY"===e?Ve(s%100,2):"Yo"===e?r.ordinalNumber(s,{unit:"year"}):Ve(s,e.length)},R:function(t,e){return Ve(P2(t),e.length)},u:function(t,e){return Ve(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ve(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ve(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,r){var i=t.getUTCMonth();switch(e){case"M":case"MM":return eo_M(t,e);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,r){var i=t.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return Ve(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,r,i){var o=b2(t,i);return"wo"===e?r.ordinalNumber(o,{unit:"week"}):Ve(o,e.length)},I:function(t,e,r){var i=M2(t);return"Io"===e?r.ordinalNumber(i,{unit:"week"}):Ve(i,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):eo_d(t,e)},D:function(t,e,r){var i=function nse(n){X(1,arguments);var t=ne(n),e=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime();return Math.floor((e-r)/864e5)+1}(t);return"Do"===e?r.ordinalNumber(i,{unit:"dayOfYear"}):Ve(i,e.length)},E:function(t,e,r){var i=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Ve(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Ve(s,e.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,r){var i=t.getUTCDay(),o=0===i?7:i;switch(e){case"i":return String(o);case"ii":return Ve(o,e.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,r){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,r){var o,i=t.getUTCHours();switch(o=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,r){var o,i=t.getUTCHours();switch(o=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",e){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var i=t.getUTCHours()%12;return 0===i&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return eo_h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):eo_H(t,e)},K:function(t,e,r){var i=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(i,{unit:"hour"}):Ve(i,e.length)},k:function(t,e,r){var i=t.getUTCHours();return 0===i&&(i=24),"ko"===e?r.ordinalNumber(i,{unit:"hour"}):Ve(i,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):eo_m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):eo_s(t,e)},S:function(t,e){return eo_S(t,e)},X:function(t,e,r,i){var s=(i._originalDate||t).getTimezoneOffset();if(0===s)return"Z";switch(e){case"X":return mk(s);case"XXXX":case"XX":return Wo(s);default:return Wo(s,":")}},x:function(t,e,r,i){var s=(i._originalDate||t).getTimezoneOffset();switch(e){case"x":return mk(s);case"xxxx":case"xx":return Wo(s);default:return Wo(s,":")}},O:function(t,e,r,i){var s=(i._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+gk(s,":");default:return"GMT"+Wo(s,":")}},z:function(t,e,r,i){var s=(i._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+gk(s,":");default:return"GMT"+Wo(s,":")}},t:function(t,e,r,i){return Ve(Math.floor((i._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,r,i){return Ve((i._originalDate||t).getTime(),e.length)}};function gk(n,t){var e=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),o=r%60;if(0===o)return e+String(i);var s=t||"";return e+String(i)+s+Ve(o,2)}function mk(n,t){return n%60==0?(n>0?"-":"+")+Ve(Math.abs(n)/60,2):Wo(n,t)}function Wo(n,t){var e=t||"",r=n>0?"-":"+",i=Math.abs(n);return r+Ve(Math.floor(i/60),2)+e+Ve(i%60,2)}const ose=ise;var sse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ase=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lse=/^'([^]*?)'?$/,use=/''/g,cse=/[a-zA-Z]/;function fse(n){var t=n.match(lse);return t?t[1].replace(use,"'"):n}function _k(n,t){X(2,arguments);var e=ne(n),r=rt(t);return isNaN(r)?new Date(NaN):(r&&e.setDate(e.getDate()+r),e)}function g0(n,t){X(2,arguments);var e=ne(n),r=rt(t);if(isNaN(r))return new Date(NaN);if(!r)return e;var i=e.getDate(),o=new Date(e.getTime());o.setMonth(e.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(e.setFullYear(o.getFullYear(),o.getMonth(),i),e)}function pp(n,t){return X(2,arguments),ne(n).getTime()-ne(t).getTime()}var yk={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function Su(n){return n?yk[n]:yk.trunc}function m0(n){X(1,arguments);var t=ne(n);return t.setHours(0,0,0,0),t}function xse(n,t){X(2,arguments);var e=m0(n),r=m0(t),i=e.getTime()-Yf(e),o=r.getTime()-Yf(r);return Math.round((i-o)/864e5)}function vk(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function bk(n,t){X(2,arguments);var e=ne(n),r=ne(t),i=vk(e,r),o=Math.abs(xse(e,r));e.setDate(e.getDate()-i*o);var s=Number(vk(e,r)===-i),a=i*(o-s);return 0===a?0:a}function Tse(n,t){X(2,arguments);var e=ne(n),r=ne(t),i=e.getFullYear()-r.getFullYear(),o=e.getMonth()-r.getMonth();return 12*i+o}function Tu(n,t){X(2,arguments);var e=ne(n),r=ne(t),i=e.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Ck(n){X(1,arguments);var t=ne(n);return t.setHours(23,59,59,999),t}function wk(n){X(1,arguments);var t=ne(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}function Ose(n){X(1,arguments);var t=ne(n);return Ck(t).getTime()===wk(t).getTime()}function Pk(n,t){X(2,arguments);var s,e=ne(n),r=ne(t),i=Tu(e,r),o=Math.abs(Tse(e,r));if(o<1)s=0;else{1===e.getMonth()&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-i*o);var a=Tu(e,r)===-i;Ose(ne(n))&&1===o&&1===Tu(n,r)&&(a=!1),s=i*(o-Number(a))}return 0===s?0:s}function Ase(n,t){X(2,arguments);var e=ne(n),r=ne(t);return e.getFullYear()-r.getFullYear()}function Mk(n,t){var e,r,i,o,s,a,l,u;X(1,arguments);var c=Ji(),d=rt(null!==(e=null!==(r=null!==(i=null!==(o=t?.weekStartsOn)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ne(n),m=p.getDay(),_=(m<d?7:0)+m-d;return p.setDate(p.getDate()-_),p.setHours(0,0,0,0),p}const qse={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};function Gse(n,t){return n===t}jA._date.override({_id:"date-fns",formats:function(){return qse},parse:function(n,t){if(null===n||typeof n>"u")return null;const e=typeof n;return"number"===e||n instanceof Date?n=ne(n):"string"===e&&(n="string"==typeof t?function Noe(n,t,e,r){var i,o,s,a,l,u,c,d,p,m,_,v,b,w,D,x,E,I;X(3,arguments);var R=String(n),B=String(t),$=Ji(),z=null!==(i=null!==(o=r?.locale)&&void 0!==o?o:$.locale)&&void 0!==i?i:UI;if(!z.match)throw new RangeError("locale must contain match property");var ee=rt(null!==(s=null!==(a=null!==(l=null!==(u=r?.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(c=r.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:$.firstWeekContainsDate)&&void 0!==a?a:null===(p=$.locale)||void 0===p||null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==s?s:1);if(!(ee>=1&&ee<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var fe=rt(null!==(_=null!==(v=null!==(b=null!==(w=r?.weekStartsOn)&&void 0!==w?w:null==r||null===(D=r.locale)||void 0===D||null===(x=D.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==b?b:$.weekStartsOn)&&void 0!==v?v:null===(E=$.locale)||void 0===E||null===(I=E.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==_?_:0);if(!(fe>=0&&fe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===B)return""===R?ne(e):new Date(NaN);var H,ae={firstWeekContainsDate:ee,weekStartsOn:fe,locale:z},Se=[new ute],yt=B.match(Aoe).map(function(Ze){var ve=Ze[0];return ve in Kv?(0,Kv[ve])(Ze,z.formatLong):Ze}).join("").match(Eoe),Y=[],U=dk(yt);try{var Z=function(){var ve=H.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&qI(ve)&&Qf(ve,B,n),(null==r||!r.useAdditionalDayOfYearTokens)&&zI(ve)&&Qf(ve,B,n);var on=ve[0],ao=Toe[on];if(ao){var BF=ao.incompatibleTokens;if(Array.isArray(BF)){var VF=Y.find(function(UF){return BF.includes(UF.token)||UF.token===on});if(VF)throw new RangeError("The format string mustn't contain `".concat(VF.fullToken,"` and `").concat(ve,"` at the same time"))}else if("*"===ao.incompatibleTokens&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(ve,"` and any other token at the same time"));Y.push({token:on,fullToken:ve});var q0=ao.run(R,ve,z.match,ae);if(!q0)return{v:new Date(NaN)};Se.push(q0.setter),R=q0.rest}else{if(on.match(Roe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+on+"`");if("''"===ve?ve="'":"'"===on&&(ve=Loe(ve)),0!==R.indexOf(ve))return{v:new Date(NaN)};R=R.slice(ve.length)}};for(U.s();!(H=U.n()).done;){var _e=Z();if("object"===dp(_e))return _e.v}}catch(Ze){U.e(Ze)}finally{U.f()}if(R.length>0&&Foe.test(R))return new Date(NaN);var We=Se.map(function(Ze){return Ze.priority}).sort(function(Ze,ve){return ve-Ze}).filter(function(Ze,ve,on){return on.indexOf(Ze)===ve}).map(function(Ze){return Se.filter(function(ve){return ve.priority===Ze}).sort(function(ve,on){return on.subPriority-ve.subPriority})}).map(function(Ze){return Ze[0]}),qt=ne(e);if(isNaN(qt.getTime()))return new Date(NaN);var Pi,Xe=jI(qt,Yf(qt)),rn={},Te=dk(We);try{for(Te.s();!(Pi=Te.n()).done;){var so=Pi.value;if(!so.validate(Xe,ae))return new Date(NaN);var Tt=so.set(Xe,rn,ae);Array.isArray(Tt)?(Xe=Tt[0],ete(rn,Tt[1])):Xe=Tt}}catch(Ze){Te.e(Ze)}finally{Te.f()}return Xe}(n,t,new Date,this.options):function Boe(n,t){var e;X(1,arguments);var r=rt(null!==(e=t?.additionalDigits)&&void 0!==e?e:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof n&&"[object String]"!==Object.prototype.toString.call(n))return new Date(NaN);var o,i=Hoe(n);if(i.date){var s=$oe(i.date,r);o=zoe(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var u,a=o.getTime(),l=0;if(i.time&&(l=qoe(i.time),isNaN(l)))return new Date(NaN);if(!i.timezone){var c=new Date(a+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return u=Woe(i.timezone),isNaN(u)?new Date(NaN):new Date(a+l+u)}(n,this.options)),pk(n)?n.getTime():null},format:function(n,t){return function dse(n,t,e){var r,i,o,s,a,l,u,c,d,p,m,_,v,b,w,D,x,E;X(2,arguments);var I=String(t),R=Ji(),B=null!==(r=null!==(i=e?.locale)&&void 0!==i?i:R.locale)&&void 0!==r?r:UI,$=rt(null!==(o=null!==(s=null!==(a=null!==(l=e?.firstWeekContainsDate)&&void 0!==l?l:null==e||null===(u=e.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:R.firstWeekContainsDate)&&void 0!==s?s:null===(d=R.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==o?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=rt(null!==(m=null!==(_=null!==(v=null!==(b=e?.weekStartsOn)&&void 0!==b?b:null==e||null===(w=e.locale)||void 0===w||null===(D=w.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==v?v:R.weekStartsOn)&&void 0!==_?_:null===(x=R.locale)||void 0===x||null===(E=x.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==m?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var ee=ne(n);if(!pk(ee))throw new RangeError("Invalid time value");var fe=Yf(ee),ae=jI(ee,fe),Se={firstWeekContainsDate:$,weekStartsOn:z,locale:B,_originalDate:ee};return I.match(ase).map(function(Y){var U=Y[0];return"p"===U||"P"===U?(0,Kv[U])(Y,B.formatLong):Y}).join("").match(sse).map(function(Y){if("''"===Y)return"'";var U=Y[0];if("'"===U)return fse(Y);var H=ose[U];if(H)return!(null!=e&&e.useAdditionalWeekYearTokens)&&qI(Y)&&Qf(Y,t,String(n)),!(null!=e&&e.useAdditionalDayOfYearTokens)&&zI(Y)&&Qf(Y,t,String(n)),H(ae,Y,B.localize,Se);if(U.match(cse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return Y}).join("")}(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return Du(n,t);case"second":return function hse(n,t){X(2,arguments);var e=rt(t);return Du(n,1e3*e)}(n,t);case"minute":return function gse(n,t){X(2,arguments);var e=rt(t);return Du(n,6e4*e)}(n,t);case"hour":return function _se(n,t){X(2,arguments);var e=rt(t);return Du(n,36e5*e)}(n,t);case"day":return _k(n,t);case"week":return function yse(n,t){X(2,arguments);var e=rt(t);return _k(n,7*e)}(n,t);case"month":return g0(n,t);case"quarter":return function vse(n,t){X(2,arguments);var e=rt(t);return g0(n,3*e)}(n,t);case"year":return function bse(n,t){X(2,arguments);var e=rt(t);return g0(n,12*e)}(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return pp(n,t);case"second":return function wse(n,t,e){X(2,arguments);var r=pp(n,t)/1e3;return Su(e?.roundingMethod)(r)}(n,t);case"minute":return function Pse(n,t,e){X(2,arguments);var r=pp(n,t)/eh;return Su(e?.roundingMethod)(r)}(n,t);case"hour":return function Mse(n,t,e){X(2,arguments);var r=pp(n,t)/th;return Su(e?.roundingMethod)(r)}(n,t);case"day":return bk(n,t);case"week":return function Sse(n,t,e){X(2,arguments);var r=bk(n,t)/7;return Su(e?.roundingMethod)(r)}(n,t);case"month":return Pk(n,t);case"quarter":return function Ese(n,t,e){X(2,arguments);var r=Pk(n,t)/3;return Su(e?.roundingMethod)(r)}(n,t);case"year":return function Ise(n,t){X(2,arguments);var e=ne(n),r=ne(t),i=Tu(e,r),o=Math.abs(Ase(e,r));e.setFullYear(1584),r.setFullYear(1584);var s=Tu(e,r)===-i,a=i*(o-Number(s));return 0===a?0:a}(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return function kse(n){X(1,arguments);var t=ne(n);return t.setMilliseconds(0),t}(n);case"minute":return function Fse(n){X(1,arguments);var t=ne(n);return t.setSeconds(0,0),t}(n);case"hour":return function Rse(n){X(1,arguments);var t=ne(n);return t.setMinutes(0,0,0),t}(n);case"day":return m0(n);case"week":return Mk(n);case"isoWeek":return Mk(n,{weekStartsOn:+e});case"month":return function Nse(n){X(1,arguments);var t=ne(n);return t.setDate(1),t.setHours(0,0,0,0),t}(n);case"quarter":return function Lse(n){X(1,arguments);var t=ne(n),e=t.getMonth();return t.setMonth(e-e%3,1),t.setHours(0,0,0,0),t}(n);case"year":return function Bse(n){X(1,arguments);var t=ne(n),e=new Date(0);return e.setFullYear(t.getFullYear(),0,1),e.setHours(0,0,0,0),e}(n);default:return n}},endOf:function(n,t){switch(t){case"second":return function Vse(n){X(1,arguments);var t=ne(n);return t.setMilliseconds(999),t}(n);case"minute":return function Use(n){X(1,arguments);var t=ne(n);return t.setSeconds(59,999),t}(n);case"hour":return function jse(n){X(1,arguments);var t=ne(n);return t.setMinutes(59,59,999),t}(n);case"day":return Ck(n);case"week":return function Hse(n,t){var e,r,i,o,s,a,l,u;X(1,arguments);var c=Ji(),d=rt(null!==(e=null!==(r=null!==(i=null!==(o=t?.weekStartsOn)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ne(n),m=p.getDay(),_=6+(m<d?-7:0)-(m-d);return p.setDate(p.getDate()+_),p.setHours(23,59,59,999),p}(n);case"month":return wk(n);case"quarter":return function $se(n){X(1,arguments);var t=ne(n),e=t.getMonth();return t.setMonth(e-e%3+3,0),t.setHours(23,59,59,999),t}(n);case"year":return function zse(n){X(1,arguments);var t=ne(n),e=t.getFullYear();return t.setFullYear(e+1,0,0),t.setHours(23,59,59,999),t}(n);default:return n}}});const gp=function Kse(n,t){return n===t||n!=n&&t!=t},mp=function Xse(n,t){for(var e=n.length;e--;)if(gp(n[e][0],t))return e;return-1};var Jse=Array.prototype.splice;function ca(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}ca.prototype.clear=function Yse(){this.__data__=[],this.size=0},ca.prototype.delete=function eae(n){var t=this.__data__,e=mp(t,n);return!(e<0||(e==t.length-1?t.pop():Jse.call(t,e,1),--this.size,0))},ca.prototype.get=function nae(n){var t=this.__data__,e=mp(t,n);return e<0?void 0:t[e][1]},ca.prototype.has=function iae(n){return mp(this.__data__,n)>-1},ca.prototype.set=function sae(n,t){var e=this.__data__,r=mp(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this};const _p=ca,Dk="object"==typeof global&&global&&global.Object===Object&&global;var _ae="object"==typeof self&&self&&self.Object===Object&&self;const da=Dk||_ae||Function("return this")();var vae=da.Symbol,xk=Object.prototype,bae=xk.hasOwnProperty,Cae=xk.toString,Ou=vae?vae.toStringTag:void 0;var Dae=Object.prototype.toString;var Sk=vae?vae.toStringTag:void 0;const vp=function Eae(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":Sk&&Sk in Object(n)?function wae(n){var t=bae.call(n,Ou),e=n[Ou];try{n[Ou]=void 0;var r=!0}catch{}var i=Cae.call(n);return r&&(t?n[Ou]=e:delete n[Ou]),i}(n):function xae(n){return Dae.call(n)}(n)},Go=function Aae(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},_0=function Nae(n){if(!Go(n))return!1;var t=vp(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var n,Lae=da["__core-js_shared__"],Tk=(n=/[^.]+$/.exec(Lae&&Lae.keys&&Lae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";var jae=Function.prototype.toString;var qae=/^\[object .+?Constructor\]$/,Kae=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Zae=function Xae(n){return!(!Go(n)||function Bae(n){return!!Tk&&Tk in n}(n))&&(_0(n)?Kae:qae).test(function Hae(n){if(null!=n){try{return jae.call(n)}catch{}try{return n+""}catch{}}return""}(n))},v0=function tle(n,t){var e=function Jae(n,t){return n?.[t]}(n,t);return Zae(e)?e:void 0},Ok=v0(da,"Map"),Eu=v0(Object,"create");var cle=Object.prototype.hasOwnProperty;var ple=Object.prototype.hasOwnProperty;function fa(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}fa.prototype.clear=function ile(){this.__data__=Eu?Eu(null):{},this.size=0},fa.prototype.delete=function sle(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},fa.prototype.get=function dle(n){var t=this.__data__;if(Eu){var e=t[n];return"__lodash_hash_undefined__"===e?void 0:e}return cle.call(t,n)?t[n]:void 0},fa.prototype.has=function gle(n){var t=this.__data__;return Eu?void 0!==t[n]:ple.call(t,n)},fa.prototype.set=function yle(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=Eu&&void 0===t?"__lodash_hash_undefined__":t,this};const Ek=fa,bp=function Mle(n,t){var e=n.__data__;return function wle(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?e["string"==typeof t?"string":"hash"]:e.map};function ha(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}ha.prototype.clear=function ble(){this.size=0,this.__data__={hash:new Ek,map:new(Ok||_p),string:new Ek}},ha.prototype.delete=function Dle(n){var t=bp(this,n).delete(n);return this.size-=t?1:0,t},ha.prototype.get=function Sle(n){return bp(this,n).get(n)},ha.prototype.has=function Ole(n){return bp(this,n).has(n)},ha.prototype.set=function Ale(n,t){var e=bp(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this};const kle=ha;function pa(n){var t=this.__data__=new _p(n);this.size=t.size}pa.prototype.clear=function lae(){this.__data__=new _p,this.size=0},pa.prototype.delete=function cae(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e},pa.prototype.get=function fae(n){return this.__data__.get(n)},pa.prototype.has=function pae(n){return this.__data__.has(n)},pa.prototype.set=function Rle(n,t){var e=this.__data__;if(e instanceof _p){var r=e.__data__;if(!Ok||r.length<199)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new kle(r)}return e.set(n,t),this.size=e.size,this};const Lle=pa;var Ble=function(){try{var n=v0(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Cp=Ble,b0=function Vle(n,t,e){"__proto__"==t&&Cp?Cp(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e},C0=function Ule(n,t,e){(void 0!==e&&!gp(n[t],e)||void 0===e&&!(t in n))&&b0(n,t,e)};var Hle=function jle(n){return function(t,e,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[n?a:++i];if(!1===e(o[l],l,o))break}return t}}();const $le=Hle;var Ak="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ik=Ak&&"object"==typeof module&&module&&!module.nodeType&&module,kk=Ik&&Ik.exports===Ak?da.Buffer:void 0,Fk=kk?kk.allocUnsafe:void 0;const Rk=da.Uint8Array,Xle=function Kle(n,t){var e=t?function Yle(n){var t=new n.constructor(n.byteLength);return new Rk(t).set(new Rk(n)),t}(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)};var Nk=Object.create,eue=function(){function n(){}return function(t){if(!Go(t))return{};if(Nk)return Nk(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();const tue=eue;var rue=function nue(n,t){return function(e){return n(t(e))}}(Object.getPrototypeOf,Object);const Lk=rue;var iue=Object.prototype;const Bk=function oue(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||iue)},Au=function lue(n){return null!=n&&"object"==typeof n},Vk=function cue(n){return Au(n)&&"[object Arguments]"==vp(n)};var Uk=Object.prototype,due=Uk.hasOwnProperty,fue=Uk.propertyIsEnumerable,hue=Vk(function(){return arguments}())?Vk:function(n){return Au(n)&&due.call(n,"callee")&&!fue.call(n,"callee")};const w0=hue,P0=Array.isArray,jk=function mue(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},M0=function _ue(n){return null!=n&&jk(n.length)&&!_0(n)};var Hk="object"==typeof exports&&exports&&!exports.nodeType&&exports,$k=Hk&&"object"==typeof module&&module&&!module.nodeType&&module,zk=$k&&$k.exports===Hk?da.Buffer:void 0;const qk=(zk?zk.isBuffer:void 0)||function bue(){return!1};var Wk=Function.prototype.toString,Tue=Object.prototype.hasOwnProperty,Oue=Wk.call(Object);var it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var Gk="object"==typeof exports&&exports&&!exports.nodeType&&exports,Iu=Gk&&"object"==typeof module&&module&&!module.nodeType&&module,D0=Iu&&Iu.exports===Gk&&Dk.process,ace=function(){try{return Iu&&Iu.require&&Iu.require("util").types||D0&&D0.binding&&D0.binding("util")}catch{}}(),Qk=ace&&ace.isTypedArray;const Kk=Qk?function ice(n){return function(t){return n(t)}}(Qk):function nce(n){return Au(n)&&jk(n.length)&&!!it[vp(n)]},x0=function uce(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]};var dce=Object.prototype.hasOwnProperty;const hce=function fce(n,t,e){var r=n[t];(!dce.call(n,t)||!gp(r,e)||void 0===e&&!(t in n))&&b0(n,t,e)};var vce=/^(?:0|[1-9]\d*)$/;const Xk=function bce(n,t){var e=typeof n;return!!(t=t??9007199254740991)&&("number"==e||"symbol"!=e&&vce.test(n))&&n>-1&&n%1==0&&n<t};var wce=Object.prototype.hasOwnProperty;const Mce=function Pce(n,t){var e=P0(n),r=!e&&w0(n),i=!e&&!r&&qk(n),o=!e&&!r&&!i&&Kk(n),s=e||r||i||o,a=s?function mce(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}(n.length,String):[],l=a.length;for(var u in n)(t||wce.call(n,u))&&(!s||!("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Xk(u,l)))&&a.push(u);return a};var Tce=Object.prototype.hasOwnProperty;const Ece=function Oce(n){if(!Go(n))return function Dce(n){var t=[];if(null!=n)for(var e in Object(n))t.push(e);return t}(n);var t=Bk(n),e=[];for(var r in n)"constructor"==r&&(t||!Tce.call(n,r))||e.push(r);return e},Zk=function Ace(n){return M0(n)?Mce(n,!0):Ece(n)},kce=function Ice(n){return function pce(n,t,e,r){var i=!e;e||(e={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=r?r(e[a],n[a],a,e,n):void 0;void 0===l&&(l=n[a]),i?b0(e,a,l):hce(e,a,l)}return e}(n,Zk(n))},Rce=function Fce(n,t,e,r,i,o,s){var a=x0(n,e),l=x0(t,e),u=s.get(l);if(u)C0(n,e,u);else{var c=o?o(a,l,e+"",n,t,s):void 0,d=void 0===c;if(d){var p=P0(l),m=!p&&qk(l),_=!p&&!m&&Kk(l);c=l,p||m||_?P0(a)?c=a:function yue(n){return Au(n)&&M0(n)}(a)?c=function Zle(n,t){var e=-1,r=n.length;for(t||(t=Array(r));++e<r;)t[e]=n[e];return t}(a):m?(d=!1,c=function qle(n,t){if(t)return n.slice();var e=n.length,r=Fk?Fk(e):new n.constructor(e);return n.copy(r),r}(l,!0)):_?(d=!1,c=Xle(l,!0)):c=[]:function Eue(n){if(!Au(n)||"[object Object]"!=vp(n))return!1;var t=Lk(n);if(null===t)return!0;var e=Tue.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&Wk.call(e)==Oue}(l)||w0(l)?(c=a,w0(a)?c=kce(a):(!Go(a)||_0(a))&&(c=function sue(n){return"function"!=typeof n.constructor||Bk(n)?{}:tue(Lk(n))}(l))):d=!1}d&&(s.set(l,c),i(c,l,r,o,s),s.delete(l)),C0(n,e,c)}},Nce=function Jk(n,t,e,r,i){n!==t&&$le(t,function(o,s){if(i||(i=new Lle),Go(o))Rce(n,t,s,e,Jk,r,i);else{var a=r?r(x0(n,s),o,s+"",n,t,i):void 0;void 0===a&&(a=o),C0(n,s,a)}},Zk)},eF=function Lce(n){return n},Vce=function Bce(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)};var tF=Math.max;const $ce=function Hce(n){return function(){return n}};var zce=Cp?function(n,t){return Cp(n,"toString",{configurable:!0,enumerable:!1,value:$ce(t),writable:!0})}:eF,Yce=Date.now,Kce=function Qce(n){var t=0,e=0;return function(){var r=Yce(),i=16-(r-e);if(e=r,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(zce);const Xce=Kce,Jce=function Zce(n,t){return Xce(function Uce(n,t,e){return t=tF(void 0===t?n.length-1:t,0),function(){for(var r=arguments,i=-1,o=tF(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=e(s),Vce(n,this,a)}}(n,t,eF),n+"")};var rde=function nde(n){return Jce(function(t,e){var r=-1,i=e.length,o=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(o=n.length>3&&"function"==typeof o?(i--,o):void 0,s&&function ede(n,t,e){if(!Go(e))return!1;var r=typeof t;return!!("number"==r?M0(e)&&Xk(t,e.length):"string"==r&&t in e)&&gp(e[t],n)}(e[0],e[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=e[r];a&&n(t,a,r,o)}return t})}(function(n,t,e){Nce(n,t,e)});const nF=rde;let ide=(()=>{class n{constructor(){this.colorschemesOptions=new ir(void 0)}setColorschemesOptions(e){this.pColorschemesOptions=e,this.colorschemesOptions.next(e)}getColorschemesOptions(){return this.pColorschemesOptions}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rF=(()=>{class n{constructor(e,r,i){this.zone=r,this.themeService=i,this.type="bar",this.plugins=[],this.chartClick=new st,this.chartHover=new st,this.subs=[],this.themeOverrides={},this.ctx=e.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(function Wse(n,t=Mi){return n=n??Gse,Bt((e,r)=>{let i,o=!0;e.subscribe(Ot(r,s=>{const a=t(s);(o||!n(i,a))&&(o=!1,i=a,r.next(s))}))})}()).subscribe(o=>this.themeChanged(o)))}ngOnChanges(e){const r=["type"],i=Object.getOwnPropertyNames(e);if(i.some(o=>r.includes(o))||i.every(o=>e[o].isFirstChange()))this.render();else{const o=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,o.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,o.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,o.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(e=>e.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new Dn(this.ctx,this.getChartConfiguration()))}update(e){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(e))}hideDataset(e,r){this.chart&&(this.chart.getDatasetMeta(e).hidden=r,this.update())}isDatasetHidden(e){return this.chart?.getDatasetMeta(e)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(e){this.themeOverrides=e,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return nF({onHover:(e,r)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:e,active:r}))},onClick:(e,r)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:e,active:r}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}}return n.\u0275fac=function(e){return new(e||n)(S(On),S(tt),S(ide))},n.\u0275dir=se({type:n,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[Ln]}),n})();const ode=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],sde={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:n=>to(no(n.datasetIndex),.4),borderColor:n=>to(no(n.datasetIndex),1),pointBackgroundColor:n=>to(no(n.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:n=>to(no(n.datasetIndex),.6),borderColor:n=>to(no(n.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:n=>to(no(n.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:n=>to(no(n.dataIndex),.6),borderColor:n=>to(no(n.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function to(n,t){return"rgba("+n.concat(t).join(",")+")"}function S0(n,t){return Math.floor(Math.random()*(t-n+1))+n}function no(n=0){return ode[n]||function ade(){return[S0(0,255),S0(0,255),S0(0,255)]}()}let iF=(()=>{class n{constructor(){this.generateColors=!0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();Dn.register(...mee);let oF=(()=>{class n{constructor(e){e?.plugins&&Dn.register(...e?.plugins);const r=nF(e?.generateColors?sde:{},e?.defaults||{});we.set(r)}static forRoot(e){return{ngModule:n,providers:[{provide:iF,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(V(iF,8))},n.\u0275mod=At({type:n}),n.\u0275inj=bt({}),n})();function T0(n,t,e,r){const i=null===t,o=null===e,s=!(!n||i&&o)&&function ude(n,t){const{x:e,y:r,base:i,width:o,height:s}=n.getProps(["x","low","high","width","height"],t);let a,l,u,c,d;return n.horizontal?(d=s/2,a=Math.min(e,i),l=Math.max(e,i),u=r-d,c=r+d):(d=o/2,a=e-d,l=e+d,u=Math.min(r,i),c=Math.max(r,i)),{left:a,top:u,right:l,bottom:c}}(n,r);return s&&(i||t>=s.left&&t<=s.right)&&(o||e>=s.top&&e<=s.bottom)}Dn.defaults.elements.financial={color:{up:"rgba(80, 160, 115, 1)",down:"rgba(215, 85, 65, 1)",unchanged:"rgba(90, 90, 90, 1)"}};class sF extends Kt{height(){return this.base-this.y}inRange(t,e,r){return T0(this,t,e,r)}inXRange(t,e){return T0(this,t,null,e)}inYRange(t,e){return T0(this,null,t,e)}getRange(t){return"x"===t?this.width/2:this.height/2}getCenterPoint(t){const{x:e,low:r,high:i}=this.getProps(["x","low","high"],t);return{x:e,y:(i+r)/2}}tooltipPosition(t){const{x:e,open:r,close:i}=this.getProps(["x","open","close"],t);return{x:e,y:(r+i)/2}}}const Yo=Dn.defaults;class wp extends sF{draw(t){const e=this,{x:r,open:i,high:o,low:s,close:a}=e,l=K(e.armLengthRatio,Yo.elements.ohlc.armLengthRatio);let u=K(e.armLength,Yo.elements.ohlc.armLength);null===u&&(u=e.width*l*.5),t.strokeStyle=a<i?K(e.color?e.color.up:void 0,Yo.elements.ohlc.color.up):a>i?K(e.color?e.color.down:void 0,Yo.elements.ohlc.color.down):K(e.color?e.color.unchanged:void 0,Yo.elements.ohlc.color.unchanged),t.lineWidth=K(e.lineWidth,Yo.elements.ohlc.lineWidth),t.beginPath(),t.moveTo(r,o),t.lineTo(r,s),t.moveTo(r-u,i),t.lineTo(r,i),t.moveTo(r+u,a),t.lineTo(r,a),t.stroke()}}function cde(n,t){let r,i,o,s,e=n._length;for(o=1,s=t.length;o<s;++o)e=Math.min(e,Math.abs(t[o]-t[o-1]));for(o=0,s=n.ticks.length;o<s;++o)i=n.getPixelForTick(o),e=o>0?Math.min(e,Math.abs(i-r)):e,r=i;return e}wp.id="ohlc",wp.defaults=_i({},[Yo.elements.financial,{lineWidth:2,armLength:null,armLengthRatio:.8}]);let aF=(()=>{class n extends RA{getLabelAndValue(e){const r=this,i=r.getParsed(e),o=r._cachedMeta.iScale.axis,{o:s,h:a,l,c:u}=i,c=`O: ${s} H: ${a} L: ${l} C: ${u}`;return{label:`${r._cachedMeta.iScale.getLabelForValue(i[o])}`,value:c}}getAllParsedValues(){const e=this._cachedMeta,r=e.iScale.axis,i=e._parsed,o=[];for(let s=0;s<i.length;++s)o.push(i[s][r]);return o}getMinMax(e){const r=this._cachedMeta,i=r._parsed,o=r.iScale.axis;if(i.length<2)return{min:0,max:1};if(e===r.iScale)return{min:i[0][o],max:i[i.length-1][o]};let s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(let l=0;l<i.length;l++){const u=i[l];s=Math.min(s,u.l),a=Math.max(a,u.h)}return{min:s,max:a}}_getRuler(){const e=this,r=e.options,i=e._cachedMeta,o=i.iScale,s=o.axis,a=[];for(let c=0;c<i.data.length;++c)a.push(o.getPixelForValue(e.getParsed(c)[s]));const l=r.barThickness;return{min:cde(o,a),pixels:a,start:o._startPixel,end:o._endPixel,stackCount:e._getStackCount(),scale:o,ratio:l?1:r.categoryPercentage*r.barPercentage}}calculateElementProperties(e,r,i,o){const s=this,a=s._cachedMeta.vScale,l=a.getBasePixel(),u=s._calculateBarIndexPixels(e,r,o),c=s.chart.data.datasets[s.index].data[e],d=a.getPixelForValue(c.o),p=a.getPixelForValue(c.h),m=a.getPixelForValue(c.l),_=a.getPixelForValue(c.c);return{base:i?l:m,x:u.center,y:(m+p)/2,width:u.size,open:d,high:p,low:m,close:_}}draw(){const e=this,r=e.chart,i=e._cachedMeta.data;ta(r.ctx,r.chartArea);for(let o=0;o<i.length;++o)i[o].draw(e._ctx);na(r.ctx)}}return n.overrides={label:"",parsing:!1,hover:{mode:"label"},datasets:{categoryPercentage:.8,barPercentage:.9,animation:{numbers:{type:"number",properties:["x","y","base","width","open","high","low","close"]}}},scales:{x:{type:"timeseries",offset:!0,ticks:{major:{enabled:!0},fontStyle:t=>t.tick.major?"bold":void 0,source:"data",maxRotation:0,autoSkip:!0,autoSkipPadding:75,sampleSize:100},afterBuildTicks:t=>{const e=window&&window.luxon&&window.luxon.DateTime;if(!e)return;const r=t._majorUnit,i=t.ticks,o=i[0];if(!o)return;let s=e.fromMillis(o.value);o.major="minute"===r&&0===s.second||"hour"===r&&0===s.minute||"day"===r&&9===s.hour||"month"===r&&s.day<=3&&1===s.weekday||"year"===r&&1===s.month;let a=s.get(r);for(let l=1;l<i.length;l++){const u=i[l];s=e.fromMillis(u.value);const c=s.get(r);u.major=c!==a,a=c}t.ticks=i}},y:{type:"linear"}},plugins:{tooltip:{intersect:!1,mode:"index",callbacks:{label(t){const e=t.parsed;if(!xe(e.y))return we.plugins.tooltip.callbacks.label(t);const{o:r,h:i,l:o,c:s}=e;return`O: ${r} H: ${i} L: ${o} C: ${s}`}}}}},n})();class O0 extends aF{updateElements(t,e,r,i){const o=this,s=o.getDataset(),a=o._ruler||o._getRuler(),l=o.resolveDataElementOptions(e,i),u=o.getSharedOptions(l),c=o.includeOptions(i,u);for(let d=0;d<r;d++){const p=u||o.resolveDataElementOptions(d,i),_={...o.calculateElementProperties(d,a,"reset"===i,p),datasetLabel:s.label||"",lineWidth:s.lineWidth,armLength:s.armLength,armLengthRatio:s.armLengthRatio,color:s.color};c&&(_.options=p),o.updateElement(t[d],d,_,i)}}}O0.id="ohlc",O0.defaults=_i({dataElementType:wp.id,datasets:{barPercentage:1,categoryPercentage:1}},Dn.defaults.financial);const Wr=Dn.defaults;class Pp extends sF{draw(t){const e=this,{x:r,open:i,high:o,low:s,close:a}=e;let u,l=e.borderColor;"string"==typeof l&&(l={up:l,down:l,unchanged:l}),a<i?(u=K(l?l.up:void 0,Wr.elements.candlestick.borderColor),t.fillStyle=K(e.color?e.color.up:void 0,Wr.elements.candlestick.color.up)):a>i?(u=K(l?l.down:void 0,Wr.elements.candlestick.borderColor),t.fillStyle=K(e.color?e.color.down:void 0,Wr.elements.candlestick.color.down)):(u=K(l?l.unchanged:void 0,Wr.elements.candlestick.borderColor),t.fillStyle=K(e.color?e.color.unchanged:void 0,Wr.elements.candlestick.color.unchanged)),t.lineWidth=K(e.borderWidth,Wr.elements.candlestick.borderWidth),t.strokeStyle=K(u,Wr.elements.candlestick.borderColor),t.beginPath(),t.moveTo(r,o),t.lineTo(r,Math.min(i,a)),t.moveTo(r,s),t.lineTo(r,Math.max(i,a)),t.stroke(),t.fillRect(r-e.width/2,a,e.width,i-a),t.strokeRect(r-e.width/2,a,e.width,i-a),t.closePath()}}Pp.id="candlestick",Pp.defaults=_i({},[Wr.elements.financial,{borderColor:Wr.elements.financial.color.unchanged,borderWidth:1}]);class E0 extends aF{updateElements(t,e,r,i){const o=this,s=o.getDataset(),a=o._ruler||o._getRuler(),l=o.resolveDataElementOptions(e,i),u=o.getSharedOptions(l),c=o.includeOptions(i,u);o.updateSharedOptions(u,i,l);for(let d=e;d<r;d++){const p=u||o.resolveDataElementOptions(d,i),_={...o.calculateElementProperties(d,a,"reset"===i,p),datasetLabel:s.label||"",color:s.color,borderColor:s.borderColor,borderWidth:s.borderWidth};c&&(_.options=p),o.updateElement(t[d],d,_,i)}}}E0.id="candlestick",E0.defaults=_i({dataElementType:Pp.id},Dn.defaults.financial);const lF_modes={point:(n,t)=>Mp(n,t,{intersect:!0}),nearest:(n,t,e)=>function hde(n,t,e){let r=Number.POSITIVE_INFINITY;return Mp(n,t,e).reduce((i,o)=>{const s=o.getCenterPoint(),a=function fde(n,t,e){return"x"===e?{x:n.x,y:t.y}:"y"===e?{x:t.x,y:n.y}:t}(t,s,e.axis),l=iu(t,a);return l<r?(i=[o],r=l):l===r&&i.push(o),i},[]).sort((i,o)=>i._index-o._index).slice(0,1)}(n,t,e),x:(n,t,e)=>Mp(n,t,{intersect:e.intersect,axis:"x"}),y:(n,t,e)=>Mp(n,t,{intersect:e.intersect,axis:"y"})};function A0(n,t,e){return(lF_modes[e.mode]||lF_modes.nearest)(n,t,e)}function Mp(n,t,e){return n.visibleElements.filter(r=>e.intersect?r.inRange(t.x,t.y):function dde(n,t,e){return"x"!==e&&"y"!==e?n.inRange(t.x,t.y,"x",!0)||n.inRange(t.x,t.y,"y",!0):n.inRange(t.x,t.y,e,!0)}(r,t,e.axis))}const I0=["enter","leave"],k0=I0.concat("click");function uF({state:n,event:t},e,r,i){let o;for(const s of r)i.indexOf(s)<0&&(o=cF(s.options[e]||n.listeners[e],s,t)||o);return o}function cF(n,t,e){return!0===qe(n,[t.$context,e])}const yde=(n,t)=>t>n||n.length>t.length&&n.slice(0,t.length)===t,Qo=.001,F0=(n,t,e)=>Math.min(e,Math.max(t,n));function vde(n,t,e){for(const r of Object.keys(n))n[r]=F0(n[r],t,e);return n}function dF(n,{x:t,y:e,x2:r,y2:i},o,s){const a=s/2,l=n.x>=t-a-Qo&&n.x<=r+a+Qo;return"x"===o?l:("y"===o||l)&&n.y>=e-a-Qo&&n.y<=i+a+Qo}function ga(n,t){const{centerX:e,centerY:r}=n.getProps(["centerX","centerY"],t);return{x:e,y:r}}const fF=n=>"string"==typeof n&&n.endsWith("%"),hF=n=>F0(parseFloat(n)/100,0,1);function R0(n,t){return"start"===t?0:"end"===t?n:fF(t)?hF(t)*n:n/2}function ma(n,t){return"number"==typeof t?t:fF(t)?hF(t)*n:n}function pF(n){return ge(n)?{x:K(n.x,"center"),y:K(n.y,"center")}:{x:n=K(n,"center"),y:n}}function gF(n){return n&&(Mt(n.xValue)||Mt(n.yValue))}const N0=new Map;function L0(n){if(n&&"object"==typeof n){const t=n.toString();return"[object HTMLImageElement]"===t||"[object HTMLCanvasElement]"===t}}function B0(n,{x:t,y:e},r){r&&(n.translate(t,e),n.rotate(Nt(r)),n.translate(-t,-e))}function Ko(n,t){if(t&&t.borderWidth)return n.lineCap=t.borderCapStyle,n.setLineDash(t.borderDash),n.lineDashOffset=t.borderDashOffset,n.lineJoin=t.borderJoinStyle,n.lineWidth=t.borderWidth,n.strokeStyle=t.borderColor,!0}function _a(n,t){n.shadowColor=t.backgroundShadowColor,n.shadowBlur=t.shadowBlur,n.shadowOffsetX=t.shadowOffsetX,n.shadowOffsetY=t.shadowOffsetY}function V0(n,t){const e=t.content;if(L0(e))return{width:ma(e.width,t.width),height:ma(e.height,t.height)};const r=Dt(t.font),i=t.textStrokeWidth,o=Le(e)?e:[e],s=o.join()+r.string+i+(n._measureText?"-spriting":"");if(!N0.has(s)){n.save(),n.font=r.string;const a=o.length;let l=0;for(let c=0;c<a;c++)l=Math.max(l,n.measureText(o[c]).width+i);n.restore(),N0.set(s,{width:l,height:a*r.lineHeight+i})}return N0.get(s)}function mF(n,t,e){const{x:r,y:i,width:o,height:s}=t;n.save(),_a(n,e);const a=Ko(n,e);n.fillStyle=e.backgroundColor,n.beginPath(),ra(n,{x:r,y:i,w:o,h:s,radius:vde(Qi(e.borderRadius),0,Math.min(o,s)/2)}),n.closePath(),n.fill(),a&&(n.shadowColor=e.borderShadowColor,n.stroke()),n.restore()}function ya(n,t,e){return t="number"==typeof t?t:n.parse(t),ft(t)?n.getPixelForValue(t):e}function ro(n,t,e){const r=t[e];if(r||"scaleID"===e)return r;const i=e.charAt(0),o=Object.values(n).filter(s=>s.axis&&s.axis===i);return o.length?o[0].id:i}function _F(n,t){if(n){const e=n.options.reverse;return{start:ya(n,t.min,e?t.end:t.start),end:ya(n,t.max,e?t.start:t.end)}}}function yF(n,t){const{chartArea:e,scales:r}=n,i=r[ro(r,t,"xScaleID")],o=r[ro(r,t,"yScaleID")];let s=e.width/2,a=e.height/2;return i&&(s=ya(i,t.xValue,i.left+i.width/2)),o&&(a=ya(o,t.yValue,o.top+o.height/2)),{x:s,y:a}}function U0(n,t){const e=n.scales,r=e[ro(e,t,"xScaleID")],i=e[ro(e,t,"yScaleID")];if(!r&&!i)return{};let{left:o,right:s}=r||n.chartArea,{top:a,bottom:l}=i||n.chartArea;const u=CF(r,{min:t.xMin,max:t.xMax,start:o,end:s});o=u.start,s=u.end;const c=CF(i,{min:t.yMin,max:t.yMax,start:l,end:a});return a=c.start,l=c.end,{x:o,y:a,x2:s,y2:l,width:s-o,height:l-a,centerX:o+(s-o)/2,centerY:a+(l-a)/2}}function vF(n,t){if(!gF(t)){const e=U0(n,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(e.width,e.height)/2,t.radius=r);const i=2*r;return{x:e.x+t.xAdjust,y:e.y+t.yAdjust,x2:e.x+i+t.xAdjust,y2:e.y+i+t.yAdjust,centerX:e.centerX+t.xAdjust,centerY:e.centerY+t.yAdjust,width:i,height:i}}return function Dde(n,t){const e=yF(n,t),r=2*t.radius;return{x:e.x-t.radius+t.xAdjust,y:e.y-t.radius+t.yAdjust,x2:e.x+t.radius+t.xAdjust,y2:e.y+t.radius+t.yAdjust,centerX:e.x+t.xAdjust,centerY:e.y+t.yAdjust,width:r,height:r}}(n,t)}function bF(n,t){const e=U0(n,t),{x:r,y:i}=e;return e.elements=[{type:"label",optionScope:"label",properties:Tde(n,e,t)}],e.initProperties={x:r,y:i},e}function CF(n,t){const e=_F(n,t)||t;return{start:Math.min(e.start,e.end),end:Math.max(e.start,e.end)}}function wF(n,t){const{start:e,end:r,borderWidth:i}=n,{position:o,padding:{start:s,end:a},adjust:l}=t;return e+i/2+l+R0(r-i-e-s-a-t.size,o)}function Tde(n,t,e){const r=e.label;r.backgroundColor="transparent",r.callout.display=!1;const i=pF(r.position),o=Lt(r.padding),s=V0(n.ctx,r),a=function xde({properties:n,options:t},e,r,i){const{x:o,x2:s,width:a}=n;return wF({start:o,end:s,size:a,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:e.width})}({properties:t,options:e},s,i,o),l=function Sde({properties:n,options:t},e,r,i){const{y:o,y2:s,height:a}=n;return wF({start:o,end:s,size:a,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:e.height})}({properties:t,options:e},s,i,o),u=s.width+o.width,c=s.height+o.height;return{x:a,y:l,x2:a+u,y2:l+c,width:u,height:c,centerX:a+u/2,centerY:l+c/2,rotation:r.rotation}}function va(n,t,e){const r=Math.cos(e),i=Math.sin(e),o=t.x,s=t.y;return{x:o+r*(n.x-o)-i*(n.y-s),y:s+i*(n.x-o)+r*(n.y-s)}}function PF(n,t,e,r){if(ft(t[e])&&!function Ade(n,t,e){return Mt(n[t])||Mt(n[e])}(n.options,e,r)){const i=n[e]!==t[e];return n[e]=t[e],i}}function Ide(n,t){for(const e of["scaleID","xScaleID","yScaleID"]){const r=ro(t,n,e);r&&!t[r]&&kde(n,e)&&console.warn(`No scale found with id '${r}' for annotation '${n.id}'`)}}function kde(n,t){if("scaleID"===t)return!0;const e=t.charAt(0);for(const r of["Min","Max","Value"])if(Mt(n[e+r]))return!0;return!1}function MF(n,t,e,r){for(const i of e){const o=n[i];if(Mt(o)){const s=t.parse(o);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class ba extends Kt{inRange(t,e,r,i){const{x:o,y:s}=va({x:t,y:e},this.getCenterPoint(i),Nt(-this.options.rotation));return dF({x:o,y:s},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return ga(this,t)}draw(t){t.save(),B0(t,this.getCenterPoint(),this.options.rotation),mF(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return bF(t,e)}}ba.id="boxAnnotation",ba.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},ba.defaultRoutes={borderColor:"color",backgroundColor:"color"},ba.descriptors={label:{_fallback:!0}};const DF=["left","bottom","top","right"];class ku extends Kt{inRange(t,e,r,i){const{x:o,y:s}=va({x:t,y:e},this.getCenterPoint(i),Nt(-this.rotation));return dF({x:o,y:s},this.getProps(["x","y","x2","y2"],i),r,this.options.borderWidth)}getCenterPoint(t){return ga(this,t)}draw(t){const e=this.options,r=!Mt(this._visible)||this._visible;!e.display||!e.content||!r||(t.save(),B0(t,this.getCenterPoint(),this.rotation),function Nde(n,t){const{pointX:e,pointY:r,options:i}=t,o=i.callout,s=o&&o.display&&function jde(n,t){const e=t.position;return DF.includes(e)?e:function Hde(n,t){const{x:e,y:r,x2:i,y2:o,width:s,height:a,pointX:l,pointY:u,centerX:c,centerY:d,rotation:p}=n,m={x:c,y:d},_=t.start,v=ma(s,_),w=[e,e+v,e+v,i],D=[r+ma(a,_),o,r,o],x=[];for(let E=0;E<4;E++){const I=va({x:w[E],y:D[E]},m,Nt(p));x.push({position:DF[E],distance:iu(I,{x:l,y:u})})}return x.sort((E,I)=>E.distance-I.distance)[0].position}(n,t)}(t,o);if(!s||function zde(n,t,e){const{pointX:r,pointY:i}=n,o=t.margin;let s=r,a=i;return"left"===e?s+=o:"right"===e?s-=o:"top"===e?a+=o:"bottom"===e&&(a-=o),n.inRange(s,a)}(t,o,s))return;if(n.save(),n.beginPath(),!Ko(n,o))return n.restore();const{separatorStart:l,separatorEnd:u}=function Lde(n,t){const{x:e,y:r,x2:i,y2:o}=n,s=function Bde(n,t){const{width:e,height:r,options:i}=n,o=i.callout.margin+i.borderWidth/2;return"right"===t?e+o:"bottom"===t?r+o:-o}(n,t);let a,l;return"left"===t||"right"===t?(a={x:e+s,y:r},l={x:a.x,y:o}):(a={x:e,y:r+s},l={x:i,y:a.y}),{separatorStart:a,separatorEnd:l}}(t,s),{sideStart:c,sideEnd:d}=function Vde(n,t,e){const{y:r,width:i,height:o,options:s}=n,a=s.callout.start,l=function Ude(n,t){const e=t.side;return"left"===n||"top"===n?-e:e}(t,s.callout);let u,c;return"left"===t||"right"===t?(u={x:e.x,y:r+ma(o,a)},c={x:u.x+l,y:u.y}):(u={x:e.x+ma(i,a),y:e.y},c={x:u.x,y:u.y+l}),{sideStart:u,sideEnd:c}}(t,s,l);(o.margin>0||0===i.borderWidth)&&(n.moveTo(l.x,l.y),n.lineTo(u.x,u.y)),n.moveTo(c.x,c.y),n.lineTo(d.x,d.y);const p=va({x:e,y:r},t.getCenterPoint(),Nt(-t.rotation));n.lineTo(p.x,p.y),n.stroke(),n.restore()}(t,this),mF(t,this,e),function Pde(n,t,e){const r=e.content;if(L0(r))return void n.drawImage(r,t.x,t.y,t.width,t.height);const i=Le(r)?r:[r],o=Dt(e.font),s=o.lineHeight,a=function wde(n,t){const{x:e,width:r}=n,i=t.textAlign;return"center"===i?e+r/2:"end"===i||"right"===i?e+r:e}(t,e),l=t.y+s/2+e.textStrokeWidth/2;n.save(),n.font=o.string,n.textBaseline="middle",n.textAlign=e.textAlign,function Mde(n,t){if(t.textStrokeWidth>0)return n.lineJoin="round",n.miterLimit=2,n.lineWidth=t.textStrokeWidth,n.strokeStyle=t.textStrokeColor,!0}(n,e)&&i.forEach((u,c)=>n.strokeText(u,a,l+c*s)),n.fillStyle=e.color,i.forEach((u,c)=>n.fillText(u,a,l+c*s)),n.restore()}(t,function $de({x:n,y:t,width:e,height:r,options:i}){const o=i.borderWidth/2,s=Lt(i.padding);return{x:n+s.left+o,y:t+s.top+o,width:e-s.left-s.right-i.borderWidth,height:r-s.top-s.bottom-i.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let r;if(gF(e))r=yF(t,e);else{const{centerX:a,centerY:l}=U0(t,e);r={x:a,y:l}}const i=Lt(e.padding),s=function Rde(n,t,e,r){const i=t.width+r.width+e.borderWidth,o=t.height+r.height+e.borderWidth,s=pF(e.position),a=xF(n.x,i,e.xAdjust,s.x),l=xF(n.y,o,e.yAdjust,s.y);return{x:a,y:l,x2:a+i,y2:l+o,width:i,height:o,centerX:a+i/2,centerY:l+o/2}}(r,V0(t.ctx,e),e,i);return{pointX:r.x,pointY:r.y,...s,rotation:e.rotation}}}function xF(n,t,e=0,r){return n-R0(t,r)+e}ku.id="labelAnnotation",ku.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},ku.defaultRoutes={borderColor:"color"};const j0=(n,t,e)=>({x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}),H0=(n,t,e)=>j0(t,e,Math.abs((n-t.y)/(e.y-t.y))).x,SF=(n,t,e)=>j0(t,e,Math.abs((n-t.x)/(e.x-t.x))).y,Fu=n=>n*n;let Dp=(()=>{class n extends Kt{inRange(e,r,i,o){const s=this.options.borderWidth/2;if("x"!==i&&"y"!==i){const u={mouseX:e,mouseY:r};return function Yde(n,{mouseX:t,mouseY:e},r=Qo,i){const{x:o,y:s,x2:a,y2:l}=n.getProps(["x","y","x2","y2"],i),u=a-o,c=l-s,d=Fu(u)+Fu(c),p=0===d?-1:((t-o)*u+(e-s)*c)/d;let m,_;return p<0?(m=o,_=s):p>1?(m=a,_=l):(m=o+p*u,_=s+p*c),Fu(t-m)+Fu(e-_)<=r}(this,u,Fu(s),o)||EF(this,u,o)}const a=((n,t,{x:e,y:r,x2:i,y2:o},s)=>"y"===s?{start:Math.min(r,o),end:Math.max(r,o),value:t}:{start:Math.min(e,i),end:Math.max(e,i),value:n})(e,r,this.getProps(["x","y","x2","y2"],o),i);return a.value>=a.start-s&&a.value<=a.end+s||EF(this,{mouseX:e,mouseY:r},o,i)}getCenterPoint(e){return ga(this,e)}draw(e){const{x:r,y:i,x2:o,y2:s,options:a}=this;if(e.save(),!Ko(e,a))return e.restore();_a(e,a);const l=Math.atan2(s-i,o-r),u=Math.sqrt(Math.pow(o-r,2)+Math.pow(s-i,2)),{startOpts:c,endOpts:d,startAdjust:p,endAdjust:m}=function tfe(n){const t=n.options,e=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:e,endOpts:r,startAdjust:FF(n,e),endAdjust:FF(n,r)}}(this);e.translate(r,i),e.rotate(l),e.beginPath(),e.moveTo(0+p,0),e.lineTo(u-m,0),e.shadowColor=a.borderShadowColor,e.stroke(),RF(e,0,p,c),RF(e,u,-m,d),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,r){const{scales:i,chartArea:o}=e,s=i[r.scaleID],a={x:o.left,y:o.top,x2:o.right,y2:o.bottom};let l,u;if(s)l=ya(s,r.value,NaN),u=ya(s,r.endValue,l),s.isHorizontal()?(a.x=l,a.x2=u):(a.y=l,a.y2=u);else{const w=i[ro(i,r,"xScaleID")],D=i[ro(i,r,"yScaleID")];w&&AF(a,w,{min:r.xMin,max:r.xMax,start:w.left,end:w.right,startProp:"x",endProp:"x2"}),D&&AF(a,D,{min:r.yMin,max:r.yMax,start:D.bottom,end:D.top,startProp:"y",endProp:"y2"})}const{x:c,y:d,x2:p,y2:m}=a,_=function Wde({x:n,y:t,x2:e,y2:r},{top:i,right:o,bottom:s,left:a}){return!(n<a&&e<a||n>o&&e>o||t<i&&r<i||t>s&&r>s)}(a,e.chartArea),v=_?function Gde(n,t,e){const{x:r,y:i}=OF(n,t,e),{x:o,y:s}=OF(t,n,e);return{x:r,y:i,x2:o,y2:s,width:Math.abs(o-r),height:Math.abs(s-i)}}({x:c,y:d},{x:p,y:m},e.chartArea):{x:c,y:d,x2:p,y2:m,width:Math.abs(p-c),height:Math.abs(m-d)};v.centerX=(p+c)/2,v.centerY=(m+d)/2;const b=function Qde(n,t,e){const r=e.borderWidth,i=Lt(e.padding),o=V0(n.ctx,e);return function Xde(n,t,e,r){const{width:i,height:o,padding:s}=e,{xAdjust:a,yAdjust:l}=t,u={x:n.x,y:n.y},c={x:n.x2,y:n.y2},d="auto"===t.rotation?function Kde(n){const{x:t,y:e,x2:r,y2:i}=n,o=Math.atan2(i-e,r-t);return o>Ee/2?o-Ee:o<Ee/-2?o+Ee:o}(n):Nt(t.rotation),p=function Zde(n,t,e){const r=Math.cos(e),i=Math.sin(e);return{w:Math.abs(n*r)+Math.abs(t*i),h:Math.abs(n*i)+Math.abs(t*r)}}(i,o,d),m=function Jde(n,t,e,r){let i;const o=function efe(n,t){const{x:e,x2:r,y:i,y2:o}=n,s=Math.min(i,o)-t.top,a=Math.min(e,r)-t.left,l=t.bottom-Math.max(i,o),u=t.right-Math.max(e,r);return{x:Math.min(a,u),y:Math.min(s,l),dx:a<=u?1:-1,dy:s<=l?1:-1}}(n,r);return i="start"===t.position?IF({w:n.x2-n.x,h:n.y2-n.y},e,0,o):"end"===t.position?1-IF({w:n.x-n.x2,h:n.y-n.y2},e,0,o):R0(1,t.position),i}(n,t,{labelSize:p,padding:s},r),_=j0(u,c,m),b={size:p.h,min:r.top,max:r.bottom,padding:s.top},w=kF(_.x,{size:p.w,min:r.left,max:r.right,padding:s.left})+a,D=kF(_.y,b)+l;return{x:w-i/2,y:D-o/2,x2:w+i/2,y2:D+o/2,centerX:w,centerY:D,pointX:_.x,pointY:_.y,width:i,height:o,rotation:vf(d)}}(t,e,{width:o.width+i.width+r,height:o.height+i.height+r,padding:i},n.chartArea)}(e,v,r.label);return b._visible=_,v.elements=[{type:"label",optionScope:"label",properties:b}],v}}return n.id="lineAnnotation",n})();const TF={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function OF({x:n,y:t},e,{top:r,right:i,bottom:o,left:s}){return n<s&&(t=SF(s,{x:n,y:t},e),n=s),n>i&&(t=SF(i,{x:n,y:t},e),n=i),t<r&&(n=H0(r,{x:n,y:t},e),t=r),t>o&&(n=H0(o,{x:n,y:t},e),t=o),{x:n,y:t}}function EF(n,{mouseX:t,mouseY:e},r,i){const o=n.label;return o.options.display&&o.inRange(t,e,i,r)}function AF(n,t,e){const r=_F(t,e);n[e.startProp]=r.start,n[e.endProp]=r.end}function IF(n,t,e,r){const{labelSize:i,padding:o}=t,s=n.w*r.dx,a=n.h*r.dy;return F0(Math.max(s>0&&(i.w/2+o.left-r.x)/s,a>0&&(i.h/2+o.top-r.y)/a),0,.25)}function kF(n,t){const{size:e,min:r,max:i,padding:o}=t,s=e/2;return e>i-r?(i+r)/2:(r>=n-o-s&&(n=r+o+s),i<=n+o+s&&(n=i-o-s),n)}function FF(n,t){if(!t||!t.display)return 0;const{length:e,width:r}=t,i=n.options.borderWidth/2;return Math.abs(H0(0,{x:e,y:r+i},{x:0,y:i}))}function RF(n,t,e,r){if(!r||!r.display)return;const{length:i,width:o,fill:s,backgroundColor:a,borderColor:l}=r,u=Math.abs(t-i)+e;n.beginPath(),_a(n,r),Ko(n,r),n.moveTo(u,-o),n.lineTo(t+e,0),n.lineTo(u,o),!0===s?(n.fillStyle=a||l,n.closePath(),n.fill(),n.shadowColor="transparent"):n.shadowColor=r.borderShadowColor,n.stroke()}Dp.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},TF),fill:!1,length:12,start:Object.assign({},TF),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,display:!0,endValue:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},ku.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Dp.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Dp.defaultRoutes={borderColor:"color"};class Ru extends Kt{inRange(t,e,r,i){const o=this.options.rotation,s=this.options.borderWidth;if("x"!==r&&"y"!==r)return function nfe(n,t,e,r){const{width:i,height:o,centerX:s,centerY:a}=t,l=i/2,u=o/2;if(l<=0||u<=0)return!1;const c=Nt(e||0),d=r/2||0,p=Math.cos(c),m=Math.sin(c),_=Math.pow(p*(n.x-s)+m*(n.y-a),2),v=Math.pow(m*(n.x-s)-p*(n.y-a),2);return _/Math.pow(l+d,2)+v/Math.pow(u+d,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],i),o,s);const{x:a,y:l,x2:u,y2:c}=this.getProps(["x","y","x2","y2"],i),d=s/2,p="y"===r?{start:l,end:c}:{start:a,end:u},m=va({x:t,y:e},this.getCenterPoint(i),Nt(-o));return m[r]>=p.start-d-Qo&&m[r]<=p.end+d+Qo}getCenterPoint(t){return ga(this,t)}draw(t){const{width:e,height:r,centerX:i,centerY:o,options:s}=this;t.save(),B0(t,this.getCenterPoint(),s.rotation),_a(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const a=Ko(t,s);t.ellipse(i,o,r/2,e/2,Ee/2,0,2*Ee),t.fill(),a&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return bF(t,e)}}Ru.id="ellipseAnnotation",Ru.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,label:Object.assign({},ba.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Ru.defaultRoutes={borderColor:"color",backgroundColor:"color"},Ru.descriptors={label:{_fallback:!0}};class xp extends Kt{inRange(t,e,r,i){const{x:o,y:s,x2:a,y2:l,width:u}=this.getProps(["x","y","x2","y2","width"],i),c=this.options.borderWidth;if("x"!==r&&"y"!==r)return function bde(n,t,e,r){if(!n||!t||e<=0)return!1;const i=r/2;return Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)<=Math.pow(e+i,2)}({x:t,y:e},this.getCenterPoint(i),u/2,c);const d=c/2,p="y"===r?{start:s,end:l,value:e}:{start:o,end:a,value:t};return p.value>=p.start-d&&p.value<=p.end+d}getCenterPoint(t){return ga(this,t)}draw(t){const e=this.options,r=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,_a(t,e);const i=Ko(t,e);e.borderWidth=0,xf(t,e,this.centerX,this.centerY),i&&!L0(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=r}resolveElementProperties(t,e){return vF(t,e)}}xp.id="pointAnnotation",xp.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},xp.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Sp extends Kt{inRange(t,e,r,i){if("x"!==r&&"y"!==r)return this.options.radius>=.1&&this.elements.length>1&&function ife(n,t,e,r){let i=!1,o=n[n.length-1].getProps(["bX","bY"],r);for(const s of n){const a=s.getProps(["bX","bY"],r);a.bY>e!=o.bY>e&&t<(o.bX-a.bX)*(e-a.bY)/(o.bY-a.bY)+a.bX&&(i=!i),o=a}return i}(this.elements,t,e,i);const o=va({x:t,y:e},this.getCenterPoint(i),Nt(-this.options.rotation)),s=this.elements.map(u=>"y"===r?u.bY:u.bX),a=Math.min(...s),l=Math.max(...s);return o[r]>=a&&o[r]<=l}getCenterPoint(t){return ga(this,t)}draw(t){const{elements:e,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,_a(t,r);const i=Ko(t,r);let o=!0;for(const s of e)o?(t.moveTo(s.x,s.y),o=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),i&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const r=vF(t,e),{x:i,y:o}=r,{sides:s,rotation:a}=e,l=[],u=2*Ee/s;let c=a*OE;for(let d=0;d<s;d++,c+=u)l.push(rfe(r,e,c));return r.elements=l,r.initProperties={x:i,y:o},r}}function rfe({centerX:n,centerY:t},{radius:e,borderWidth:r},i){const o=r/2,s=Math.sin(i),a=Math.cos(i),l={x:n+s*e,y:t-a*e};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:n+s*(e+o),bY:t-a*(e+o)}}}Sp.id="polygonAnnotation",Sp.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Sp.defaultRoutes={borderColor:"color",backgroundColor:"color"};const io={box:ba,ellipse:Ru,label:ku,line:Dp,point:xp,polygon:Sp};Object.keys(io).forEach(n=>{we.describe(`elements.${io[n].id}`,{_fallback:"plugins.annotation.common"})});const ofe={update:Object.assign};function $0(n="line"){return io[n]?n:(console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`),"line")}function afe(n){return isNaN(n.x)||isNaN(n.y)}function ufe(n,{elements:t,initProperties:e},r,i){const o=n.elements||(n.elements=[]);o.length=t.length;for(let s=0;s<t.length;s++){const a=t[s],l=a.properties,u=NF(o,s,a.type,e),c=r[a.optionScope].override(a);l.options=LF(c),i.update(u,l)}}function NF(n,t,e,r){const i=io[$0(e)];let o=n[t];return(!o||!(o instanceof i))&&(o=n[t]=new i,ge(r)&&Object.assign(o,r)),o}function LF(n){const t=io[$0(n.type)],e={};e.id=n.id,e.type=n.type,e.drawTime=n.drawTime,Object.assign(e,z0(n,t.defaults),z0(n,t.defaultRoutes));for(const r of k0)e[r]=n[r];return e}function z0(n,t){const e={};for(const r of Object.keys(t)){const i=t[r],o=n[r];e[r]=ge(i)?z0(o,i):o}return e}function cfe(n,t,e){return t.$context||(t.$context=Object.assign(Object.create(n.getContext()),{element:t,id:e.id,type:"annotation"}))}const oo=new Map;var hfe={id:"annotation",version:"2.1.0",beforeRegister(){!function Cde(n,t,e,r=!0){const i=e.split(".");let o=0;for(const s of t.split(".")){const a=i[o++];if(parseInt(s,10)<parseInt(a,10))break;if(yde(a,s)){if(r)throw new Error(`${n} v${e} is not supported. v${t} or newer is required.`);return!1}}}("chart.js","3.7",Dn.version)},afterRegister(){Dn.register(io)},afterUnregister(){Dn.unregister(io)},beforeInit(n){oo.set(n,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hovered:[]})},beforeUpdate(n,t,e){const i=oo.get(n).annotations=[];let o=e.annotations;ge(o)?Object.keys(o).forEach(s=>{const a=o[s];ge(a)&&(a.id=s,i.push(a))}):Le(o)&&i.push(...o),function Ede(n,t){for(const e of n)Ide(e,t)}(i,n.scales)},afterDataLimits(n,t){const e=oo.get(n);!function Ode(n,t,e){const r=function Fde(n,t,e){const r=t.axis,i=t.id,o=r+"ScaleID",s={min:K(t.min,Number.NEGATIVE_INFINITY),max:K(t.max,Number.POSITIVE_INFINITY)};for(const a of e)a.scaleID===i?MF(a,t,["value","endValue"],s):ro(n,a,o)===i&&MF(a,t,[r+"Min",r+"Max",r+"Value"],s);return s}(n.scales,t,e);let i=PF(t,r,"min","suggestedMin");i=PF(t,r,"max","suggestedMax")||i,i&&"function"==typeof t.handleTickRangeOptions&&t.handleTickRangeOptions()}(n,t.scale,e.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(n,t,e){const r=oo.get(n);(function pde(n,t,e){t.listened=!1,t.moveListened=!1,t._getElements=A0,k0.forEach(r=>{"function"==typeof e[r]?(t.listened=!0,t.listeners[r]=e[r]):Mt(t.listeners[r])&&delete t.listeners[r]}),I0.forEach(r=>{"function"==typeof e[r]&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&"function"==typeof r.click&&(t.listened=!0),t.moveListened||I0.forEach(i=>{"function"==typeof r[i]&&(t.listened=!0,t.moveListened=!0)})})})(0,r,e),function sfe(n,t,e,r){const i=function lfe(n,t,e){return"reset"===e||"none"===e||"resize"===e?ofe:new Sv(n,t)}(n,e.animations,r),o=t.annotations,s=function dfe(n,t){const e=t.length,r=n.length;return r<e?n.splice(r,0,...new Array(e-r)):r>e&&n.splice(e,r-e),n}(t.elements,o);for(let a=0;a<o.length;a++){const l=o[a],u=NF(s,a,l.type),c=l.setContext(cfe(n,u,l)),d=u.resolveElementProperties(n,c);d.skip=afe(d),"elements"in d&&(ufe(u,d,c,i),delete d.elements),Mt(u.x)||Object.assign(u,d),d.options=LF(c),i.update(u,d)}}(n,r,e,t.mode),r.visibleElements=r.elements.filter(i=>!i.skip&&i.options.display)},beforeDatasetsDraw(n,t,e){Tp(n,"beforeDatasetsDraw",e.clip)},afterDatasetsDraw(n,t,e){Tp(n,"afterDatasetsDraw",e.clip)},beforeDraw(n,t,e){Tp(n,"beforeDraw",e.clip)},afterDraw(n,t,e){Tp(n,"afterDraw",e.clip)},beforeEvent(n,t,e){(function gde(n,t,e){if(n.listened)switch(t.type){case"mousemove":case"mouseout":return function mde(n,t,e){if(!n.moveListened)return;let r;r="mousemove"===t.type?A0(n,t,e.interaction):[];const i=n.hovered;n.hovered=r;const o={state:n,event:t};let s=uF(o,"leave",i,r);return uF(o,"enter",r,i)||s}(n,t,e);case"click":return function _de(n,t,e){const r=n.listeners,i=A0(n,t,e.interaction);let o;for(const s of i)o=cF(s.options.click||r.click,s,t)||o;return o}(n,t,e)}})(oo.get(n),t.event,e)&&(t.changed=!0)},destroy(n){oo.delete(n)},_getState:n=>oo.get(n),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",label:{}}},descriptors:{_indexable:!1,_scriptable:n=>!k0.includes(n),annotations:{_allKeys:!1,_fallback:(n,t)=>`elements.${io[$0(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_fallback:!0}}},additionalOptionScopes:[""]};function Tp(n,t,e){const{ctx:r,chartArea:i}=n,{visibleElements:o}=oo.get(n);e&&ta(r,i);const s=function pfe(n,t){const e=[];for(const r of n)if(r.options.drawTime===t&&e.push(r),r.elements&&r.elements.length)for(const i of r.elements)i.options.display&&i.options.drawTime===t&&e.push(i);return e}(o,t).sort((a,l)=>a.options.z-l.options.z);for(const a of s)a.draw(n.ctx,i);e&&na(r)}const gfe=[{path:"mgnh",component:KW,title:"\u7ba1\u7406\u9996\u9801",canActivate:[Ly],children:[{path:"accounting",component:PE,title:"\u6703\u8a08\u7cfb\u7d71",children:[{path:"rpt1",component:MG,title:"\u6703\u8a08\u7cfb\u7d71"},{path:"rpt2",component:SG,title:"\u6703\u8a08\u7cfb\u7d71"},{path:"rpt3",component:AG,title:"\u6703\u8a08\u7cfb\u7d71"}]},{path:"finance",component:lQ,title:"\u8ca1\u52d9\u7cfb\u7d71"},{path:"finance/financereport",component:cQ,title:"\u8ca1\u52d9\u5831\u544a"},{path:"finance/financereport/rpt1",component:MQ,title:"\u8ab2\u7a0b\u8ca1\u52d9\u5206\u6790\u8868"},{path:"accounting/:func",component:PE,title:"\u6703\u8a08\u7cfb\u7d71"},{path:"productprofile",component:YG,title:"\u5546\u54c1\u7dad\u8b77"},{path:"coursemanagement",component:bY,title:"\u8ab2\u7a0b\u7dad\u8b77"},{path:"checkoutcounter",component:UY,title:"\u6536\u9280\u53f0"},{path:"customerorders",component:KY,title:"\u5ba2\u8a02\u55ae\u7ba1\u7406"},{path:"customermanagement",component:sQ,title:"\u5ba2\u4eba\u8cc7\u8a0a\u7ba1\u7406"},{path:"bias",component:(()=>{class n{constructor(e,r,i,o,s){this.auth=e,this.toastr=r,this.global=i,this.route=o,this.router=s,this.stockNo="2330",this.PriceList=[],this.bias=[],this.biasav1=[],this.biasav2=[],this.LableList=[],this.newLabel="New label",this.lineChartData={datasets:[{data:[],label:"bias",backgroundColor:"rgba(204, 85, 106, 0.5)",borderColor:"rgba(204, 85, 106, 0.5)",pointBackgroundColor:"rgba(204, 85, 106, 0)",pointBorderColor:"rgba(204, 85, 106, 0)",pointHoverBackgroundColor:"rgba(204, 85, 106, 0)",pointHoverBorderColor:"rgba(204, 85, 106, 0)"},{data:[],label:"biasav1",backgroundColor:"rgba(131, 152, 44, 0.5)",borderColor:"rgba(131, 152, 44, 0.5)",pointBackgroundColor:"rgba(131, 152, 44, 0)",pointBorderColor:"rgba(131, 152, 44, 0)",pointHoverBackgroundColor:"rgba(131, 152, 44, 0)",pointHoverBorderColor:"rgba(131, 152, 44, 0)"},{data:[],label:"biasav2",backgroundColor:"rgba(51, 171, 166, 0.5)",borderColor:"rgba(51, 171, 166, 0.5)",pointBackgroundColor:"rgba(51, 171, 166, 0)",pointBorderColor:"rgba(51, 171, 166, 0)",pointHoverBackgroundColor:"rgba(51, 171, 166, 0)",pointHoverBorderColor:"rgba(51, 171, 166, 0)"}],labels:this.LableList},this.lineChartOptions={elements:{line:{tension:.01}},scales:{y:{position:"left"},y1:{position:"right",grid:{color:"rgba(255,0,0,0.3)"},ticks:{color:"red"}}},plugins:{legend:{display:!1},annotation:{annotations:[{type:"line",scaleID:"x",value:"March",borderColor:"orange",borderWidth:2,label:{display:!1,position:"center",color:"orange",content:"LineAnno",font:{weight:"bold"}}}]}}},this.lineChartType="line",Dn.register(E0,O0,Pp,wp),Dn.register(hfe)}ngOnInit(){this.getLocalStorageData(),this.lineChartData.datasets[0].data=this.bias,this.lineChartData.datasets[1].data=this.biasav1,this.lineChartData.datasets[2].data=this.biasav2}NullToString(e){return null==e?"":e.toString()}getLocalStorageData(){var e,r=localStorage.getItem("stockno");this.stockNo=this.NullToString(r);var i=localStorage.getItem("PriceList");this.PriceList=this.stringToArray(i=i??""),console.log(this.lineChartData),this.LableList=[];for(var o=0;o<=241;o++)this.LableList.push(o.toString());this.lineChartData.labels=this.LableList;var s=localStorage.getItem("bias");s=s??"",this.bias=[],this.bias=this.stringToArray(s),console.log(this.bias),this.lineChartData.datasets[0].data=this.bias;var a=localStorage.getItem("biasav1");a=a??"",this.biasav1=[],this.biasav1=this.stringToArray(a),console.log(this.biasav1),this.lineChartData.datasets[1].data=this.biasav1;var l=localStorage.getItem("biasav2");l=l??"",this.biasav2=[],this.biasav2=this.stringToArray(l),console.log(this.biasav2),this.lineChartData.datasets[2].data=this.biasav2,console.log(this.lineChartData.datasets),null===(e=this.chart)||void 0===e||e.update()}stringToArray(e){var r=[],i="";do{var o=e.indexOf(",");o<0?(i=e.substring(0,o=e.length),e=""):(i=e.substring(0,o),e=e.substring(o+1,e.length)),r.push(parseFloat(i))}while(e.length>0);return r}qryStock(){this.lineChartData.datasets[0].data=[],this.lineChartData.datasets[1].data=[],this.lineChartData.datasets[2].data=[];var e=this.global.serverip+"/api/twse/qryStockFinMind",r={stockNo:this.stockNo};return this.toastr.info("\u8cc7\u6599\u67e5\u8a62\u4e2d"),new Promise((i,o)=>{this.auth.httpDo(e,r).then(s=>{this.toastr.clear(),this.toastr.info("\u8ab2\u7a0b\u8cc7\u6599\u67e5\u8a62\u5b8c\u6210"),this.PriceList=s.PriceList,this.bias=s.bias,this.biasav1=s.biasav1,this.biasav2=s.biasav2,this.lineChartData.datasets[0].data=this.bias,this.lineChartData.datasets[1].data=this.biasav1,this.lineChartData.datasets[2].data=this.biasav2,localStorage.setItem("PriceList",this.PriceList),localStorage.setItem("bias",this.bias),localStorage.setItem("biasav1",this.biasav1),localStorage.setItem("biasav2",this.biasav2),localStorage.setItem("stockno",this.stockNo);var a="";a=(a=(a=a+this.bias+"\r\n")+this.biasav1+"\r\n")+this.biasav2+"\r\n",this.getLocalStorageData(),i(!0)},s=>{o(!1)})})}static generateNumber(e){return Math.floor(Math.random()*(e<2?100:1e3)+1)}randomize(){var e;for(let r=0;r<this.lineChartData.datasets.length;r++)for(let i=0;i<this.lineChartData.datasets[r].data.length;i++)this.lineChartData.datasets[r].data[i]=n.generateNumber(r);null===(e=this.chart)||void 0===e||e.update()}chartClicked({event:e,active:r}){console.log(e,r)}chartHovered({event:e,active:r}){console.log(e,r)}hideOne(){var e,r;const i=null===(e=this.chart)||void 0===e?void 0:e.isDatasetHidden(1);null===(r=this.chart)||void 0===r||r.hideDataset(1,!i)}pushOne(){var e,r,i;this.lineChartData.datasets.forEach((o,s)=>{const a=n.generateNumber(s);o.data.push(a)}),null===(r=null===(e=this.lineChartData)||void 0===e?void 0:e.labels)||void 0===r||r.push(`Label ${this.lineChartData.labels.length}`),null===(i=this.chart)||void 0===i||i.update()}changeColor(){var e;this.lineChartData.datasets[2].borderColor="green",this.lineChartData.datasets[2].backgroundColor="rgba(0, 255, 0, 0.3)",null===(e=this.chart)||void 0===e||e.update()}changeLabel(){var e;const r=this.newLabel;this.newLabel=this.lineChartData.datasets[2].label,this.lineChartData.datasets[2].label=r,null===(e=this.chart)||void 0===e||e.update()}}return n.\u0275fac=function(e){return new(e||n)(S(ct),S(dt),S(nt),S(nn),S(Me))},n.\u0275cmp=Fe({type:n,selectors:[["app-bias"]],viewQuery:function(e,r){if(1&e&&$c(rF,5),2&e){let i;hl(i=pl())&&(r.chart=i.first)}},decls:8,vars:4,consts:[["type","text",2,"width","80px",3,"ngModel","ngModelChange"],[3,"click"],[2,"height","50%"],["baseChart","",1,"chart",3,"data","options","type","chartHover","chartClick"]],template:function(e,r){1&e&&(f(0,"p"),g(1,"bias works!"),h(),f(2,"input",0),M("ngModelChange",function(o){return r.stockNo=o}),h(),f(3,"button",1),M("click",function(){return r.qryStock()}),g(4,"\u66f4\u65b0\u8cc7\u6599"),h(),f(5,"div")(6,"div",2)(7,"canvas",3),M("chartHover",function(o){return r.chartHovered(o)})("chartClick",function(o){return r.chartClicked(o)}),h()()()),2&e&&(y(2),C("ngModel",r.stockNo),y(5),C("data",r.lineChartData)("options",r.lineChartOptions)("type",r.lineChartType))},dependencies:[en,zt,Ft,rF],styles:["span[_ngcontent-%COMP%]{display:inline-block;width:5px;border-top:1px solid red;border-left:none;border-right:none;border-bottom:none;vertical-align:bottom}.m1[_ngcontent-%COMP%]{height:20px}.m2[_ngcontent-%COMP%]{height:30px}.m3[_ngcontent-%COMP%]{height:40px}.m4[_ngcontent-%COMP%]{height:50px}"]}),n})(),title:"bias"}]}];let mfe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[Ks.forChild(gfe),Ks]}),n})(),_fe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n}),n.\u0275inj=bt({imports:[cd,mfe,X_,oF]}),n})();function yfe(){return localStorage.getItem("access_token")}let vfe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=At({type:n,bootstrap:[oz]}),n.\u0275inj=bt({providers:[nt,rr],imports:[Bx.withServerTransition({appId:"serverApp"}),X_,YS,nz,h$,_fe,jW,oF,sW,B$.forRoot(),az.forRoot({config:{tokenGetter:yfe,allowedDomains:["alian.tk","llian.tk"],disallowedRoutes:["http://example.com/examplebadroute/"]}})]}),n})();document.addEventListener("DOMContentLoaded",()=>{aj().bootstrapModule(vfe).catch(n=>console.error(n))})}},Ge=>{Ge(Ge.s=63)}]);