From 1fa24dbbf6d70f7787aaeca6a669bbb3a1fad176 Mon Sep 17 00:00:00 2001 From: erinehall Date: Tue, 12 Nov 2024 14:25:37 +0000 Subject: [PATCH] deploy: 5f3c6ad136927b43cb15af330aa2858ababafebb --- assets/config.json | 2 +- index.html | 2 +- main.4e4f5063637f645f.js | 1 + main.b3b2e2a007ce866d.js | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 main.4e4f5063637f645f.js delete mode 100644 main.b3b2e2a007ce866d.js diff --git a/assets/config.json b/assets/config.json index 02de616b..7add4d20 100755 --- a/assets/config.json +++ b/assets/config.json @@ -31,7 +31,7 @@ "link_color": "blue", "metadata_color": "purple", - "banner": "ATT&CK v16 has been released! Check out the blog post for more information.", + "banner": "", "customize_features": [ {"name": "multiselect", "enabled": true, "description": "Disable to remove the multiselect panel from interface."}, diff --git a/index.html b/index.html index f0b7c608..6680574b 100644 --- a/index.html +++ b/index.html @@ -18,5 +18,5 @@ - + diff --git a/main.4e4f5063637f645f.js b/main.4e4f5063637f645f.js new file mode 100644 index 00000000..e29fb37b --- /dev/null +++ b/main.4e4f5063637f645f.js @@ -0,0 +1 @@ +(self.webpackChunknav_app=self.webpackChunknav_app||[]).push([[792],{6084:(Yt,Ln,mt)=>{"use strict";function ut(n,e,t,r,i,a,l){try{var d=n[a](l),h=d.value}catch(p){return void t(p)}d.done?e(h):Promise.resolve(h).then(r,i)}function xt(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var a=n.apply(e,t);function l(h){ut(a,r,i,l,d,"next",h)}function d(h){ut(a,r,i,l,d,"throw",h)}l(void 0)})}}function gt(n,e){return Object.is(n,e)}let un=null,k=!1,K=1;const U=Symbol("SIGNAL");function I(n){const e=un;return un=n,e}const f={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function m(n){if(k)throw new Error("");if(null===un)return;un.consumerOnSignalRead(n);const e=un.nextProducerIndex++;if(ge(un),en.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function T(n){ge(n);for(let e=0;e0}function ge(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function le(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}const be=Symbol("UNSET"),Se=Symbol("COMPUTING"),ve=Symbol("ERRORED"),W={...f,value:be,dirty:!0,error:null,equal:gt,producerMustRecompute:n=>n.value===be||n.value===Se,producerRecomputeValue(n){if(n.value===Se)throw new Error("Detected cycle in computations.");const e=n.value;n.value=Se;const t=E(n);let r;try{r=n.computation()}catch(i){r=ve,n.error=i}finally{O(n,t)}e!==be&&e!==ve&&r!==ve&&n.equal(e,r)?n.value=e:(n.value=r,n.version++)}};let de=function J(){throw new Error};function M(){de()}let P=null;function X(n,e){A()||M(),n.equal(n.value,e)||(n.value=e,function Ne(n){n.version++,function _(){K++}(),v(n),P?.()}(n))}const ue={...f,equal:gt,value:void 0};function te(n,e,t){const r=Object.create(Z);t&&(r.consumerAllowSignalWrites=!0),r.fn=n,r.schedule=e;const i=h=>{r.cleanupFn=h};return r.ref={notify:()=>D(r),run:()=>{if(null===r.fn)return;if(function x(){return k}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!T(r))return;r.hasRun=!0;const h=E(r);try{r.cleanupFn(),r.cleanupFn=Me,r.fn(i)}finally{O(r,h)}},cleanup:()=>r.cleanupFn(),destroy:()=>function l(h){(function a(h){return null===h.fn&&null===h.schedule})(h)||(z(h),h.cleanupFn(),h.fn=null,h.schedule=null,h.cleanupFn=Me)}(r),[U]:r},r.ref}const Me=()=>{},Z={...f,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{null!==n.schedule&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Me};function me(n){return"function"==typeof n}function ze(n){const t=n(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Je=ze(n=>function(t){n(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function je(n,e){if(n){const t=n.indexOf(e);0<=t&&n.splice(t,1)}}class ke{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const a of t)a.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(me(r))try{r()}catch(a){e=a instanceof Je?a.errors:[a]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const a of i)try{Ee(a)}catch(l){e=e??[],l instanceof Je?e=[...e,...l.errors]:e.push(l)}}if(e)throw new Je(e)}}add(e){var t;if(e&&e!==this)if(this.closed)Ee(e);else{if(e instanceof ke){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&je(t,e)}remove(e){const{_finalizers:t}=this;t&&je(t,e),e instanceof ke&&e._removeParent(this)}}ke.EMPTY=(()=>{const n=new ke;return n.closed=!0,n})();const ye=ke.EMPTY;function we(n){return n instanceof ke||n&&"closed"in n&&me(n.remove)&&me(n.add)&&me(n.unsubscribe)}function Ee(n){me(n)?n():n.unsubscribe()}const He={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xe={setTimeout(n,e,...t){const{delegate:r}=Xe;return r?.setTimeout?r.setTimeout(n,e,...t):setTimeout(n,e,...t)},clearTimeout(n){const{delegate:e}=Xe;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0};function rt(n){Xe.setTimeout(()=>{const{onUnhandledError:e}=He;if(!e)throw n;e(n)})}function at(){}const St=Ue("C",void 0,void 0);function Ue(n,e,t){return{kind:n,value:e,error:t}}let it=null;function yt(n){if(He.useDeprecatedSynchronousErrorHandling){const e=!it;if(e&&(it={errorThrown:!1,error:null}),n(),e){const{errorThrown:t,error:r}=it;if(it=null,t)throw r}}else n()}class Nt extends ke{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,we(e)&&e.add(this)):this.destination=Nn}static create(e,t,r){return new Jt(e,t,r)}next(e){this.isStopped?Qn(function Kt(n){return Ue("N",n,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Qn(function It(n){return Ue("E",void 0,n)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Qn(St,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $t=Function.prototype.bind;function Qt(n,e){return $t.call(n,e)}class Ot{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(r){Mt(r)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(r){Mt(r)}else Mt(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Mt(t)}}}class Jt extends Nt{constructor(e,t,r){let i;if(super(),me(e)||!e)i={next:e??void 0,error:t??void 0,complete:r??void 0};else{let a;this&&He.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Qt(e.next,a),error:e.error&&Qt(e.error,a),complete:e.complete&&Qt(e.complete,a)}):i=e}this.destination=new Ot(i)}}function Mt(n){He.useDeprecatedSynchronousErrorHandling?function ft(n){He.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=n)}(n):rt(n)}function Qn(n,e){const{onStoppedNotification:t}=He;t&&Xe.setTimeout(()=>t(n,e))}const Nn={closed:!0,next:at,error:function nn(n){throw n},complete:at},Xn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Oi(n){return n}function gr(n){return 0===n.length?Oi:1===n.length?n[0]:function(t){return n.reduce((r,i)=>i(r),t)}}class yr{constructor(e){e&&(this._subscribe=e)}lift(e){const t=new yr;return t.source=this,t.operator=e,t}subscribe(e,t,r){const i=function Ja(n){return n&&n instanceof Nt||function Pr(n){return n&&me(n.next)&&me(n.error)&&me(n.complete)}(n)&&we(n)}(e)?e:new Jt(e,t,r);return yt(()=>{const{operator:a,source:l}=this;i.add(a?a.call(i,l):l?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){e.error(t)}}forEach(e,t){return new(t=Sr(t))((r,i)=>{const a=new Jt({next:l=>{try{e(l)}catch(d){i(d),a.unsubscribe()}},error:i,complete:r});this.subscribe(a)})}_subscribe(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)}[Xn](){return this}pipe(...e){return gr(e)(this)}toPromise(e){return new(e=Sr(e))((t,r)=>{let i;this.subscribe(a=>i=a,a=>r(a),()=>t(i))})}}function Sr(n){var e;return null!==(e=n??He.Promise)&&void 0!==e?e:Promise}yr.create=n=>new yr(n);const Or=ze(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});class ln extends yr{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const t=new ia(this,this);return t.operator=e,t}_throwIfClosed(){if(this.closed)throw new Or}next(e){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const t of this.currentObservers)t.next(e)}})}error(e){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:t}=this;for(;t.length;)t.shift().error(e)}})}complete(){yt(()=>{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:t,isStopped:r,observers:i}=this;return t||r?ye:(this.currentObservers=null,i.push(e),new ke(()=>{this.currentObservers=null,je(i,e)}))}_checkFinalizedStatuses(e){const{hasError:t,thrownError:r,isStopped:i}=this;t?e.error(r):i&&e.complete()}asObservable(){const e=new yr;return e.source=this,e}}ln.create=(n,e)=>new ia(n,e);class ia extends ln{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)}error(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:ye}}class _r extends ln{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:r}=this;if(e)throw t;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}function Ar(n){return me(n?.lift)}function Hr(n){return e=>{if(Ar(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Yn(n,e,t,r,i){return new pt(n,e,t,r,i)}class pt extends Nt{constructor(e,t,r,i,a,l){super(e),this.onFinalize=a,this.shouldUnsubscribe=l,this._next=t?function(d){try{t(d)}catch(h){e.error(h)}}:super._next,this._error=i?function(d){try{i(d)}catch(h){e.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(d){e.error(d)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function kt(n,e){return Hr((t,r)=>{let i=0;t.subscribe(Yn(r,a=>{r.next(n.call(e,a,i++))}))})}const wn="https://g.co/ng/security#xss";class At extends Error{constructor(e,t){super(sn(e,t)),this.code=e}}function sn(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}const zn=Symbol("InputSignalNode#UNSET"),ai={...ue,transformFn:void 0,applyValueToInputSignal(n,e){X(n,e)}};function ti(n,e){const t=Object.create(ai);function r(){if(m(t),t.value===zn)throw new At(-950,!1);return t.value}return t.value=n,t.transformFn=e?.transform,r[U]=t,r}function Br(n){return{toString:n}.toString()}const Nr="__annotations__",si="__parameters__",Wr="__prop__metadata__";function ko(n,e,t,r,i){return Br(()=>{const a=ma(e);function l(...d){if(this instanceof l)return a.call(this,...d),this;const h=new l(...d);return function(y){return i&&i(y,...d),(y.hasOwnProperty(Nr)?y[Nr]:Object.defineProperty(y,Nr,{value:[]})[Nr]).push(h),r&&r(y),y}}return t&&(l.prototype=Object.create(t.prototype)),l.prototype.ngMetadataName=n,l.annotationCls=l,l})}function ma(n){return function(...t){if(n){const r=n(...t);for(const i in r)this[i]=r[i]}}}function eo(n,e,t){return Br(()=>{const r=ma(e);function i(...a){if(this instanceof i)return r.apply(this,a),this;const l=new i(...a);return d.annotation=l,d;function d(h,p,y){const S=h.hasOwnProperty(si)?h[si]:Object.defineProperty(h,si,{value:[]})[si];for(;S.length<=y;)S.push(null);return(S[y]=S[y]||[]).push(l),h}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}function bi(n,e,t,r){return Br(()=>{const i=ma(e);function a(...l){if(this instanceof a)return i.apply(this,l),this;const d=new a(...l);return function h(p,y){if(void 0===p)throw new Error("Standard Angular field decorators are not supported in JIT mode.");const S=p.constructor,R=S.hasOwnProperty(Wr)?S[Wr]:Object.defineProperty(S,Wr,{value:{}})[Wr];R[y]=R.hasOwnProperty(y)&&R[y]||[],R[y].unshift(d),r&&r(p,y,...l)}}return t&&(a.prototype=Object.create(t.prototype)),a.prototype.ngMetadataName=n,a.annotationCls=a,a})}const nt=globalThis;function Ut(n){for(let e in n)if(n[e]===Ut)return e;throw Error("Could not find renamed property on target object.")}function Tn(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Vn(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Vn).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function ur(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Wt=Ut({__forward_ref__:Ut});function Gn(n){return n.__forward_ref__=Gn,n.toString=function(){return Vn(this())},n}function Sn(n){return Ao(n)?n():n}function Ao(n){return"function"==typeof n&&n.hasOwnProperty(Wt)&&n.__forward_ref__===Gn}function oa(n,e,t){n!=e&&Rr(t,n,e,"==")}function Rr(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}function _n(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Er(n){return{providers:n.providers||[],imports:n.imports||[]}}function od(n){return Le(n,Ud)||Le(n,v2)}function Le(n,e){return n.hasOwnProperty(e)?n[e]:null}function Zh(n){return n&&(n.hasOwnProperty(Gu)||n.hasOwnProperty(kN))?n[Gu]:null}const Ud=Ut({\u0275prov:Ut}),Gu=Ut({\u0275inj:Ut}),v2=Ut({ngInjectableDef:Ut}),kN=Ut({ngInjectorDef:Ut});class pn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=_n({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function w2(n){return n&&!!n.\u0275providers}const Xu=Ut({\u0275cmp:Ut}),C2=Ut({\u0275dir:Ut}),Qh=Ut({\u0275pipe:Ut}),bD=Ut({\u0275mod:Ut}),Hd=Ut({\u0275fac:Ut}),Jh=Ut({__NG_ELEMENT_ID__:Ut}),k2=Ut({__NG_ENV_ID__:Ut});function ni(n){return"string"==typeof n?n:null==n?"":String(n)}function so(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ni(n)}function E2(n,e){throw new At(-201,!1)}var ji,n;let My;function _D(){return My}function gs(n){const e=My;return My=n,e}function S2(n,e,t){const r=od(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ji.Optional?null:void 0!==e?e:void E2()}(n=ji||(ji={}))[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional";const ef={},Yu="__NG_DI_FLAG__",Kp="ngTempTokenPath",kc=/\n/gm,tf="\u0275",A2="__source";let nf;function Ku(n){const e=nf;return nf=n,e}function AN(n,e=ji.Default){if(void 0===nf)throw new At(-203,!1);return null===nf?S2(n,void 0,e):nf.get(n,e&ji.Optional?null:void 0,e)}function zt(n,e=ji.Default){return(_D()||AN)(Sn(n),e)}function xD(n){throw new At(202,!1)}function xn(n,e=ji.Default){return zt(n,rl(e))}function rl(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function ts(n){const e=[];for(let t=0;t ");else if("object"==typeof e){let a=[];for(let l in e)if(e.hasOwnProperty(l)){let d=e[l];a.push(l+":"+("string"==typeof d?JSON.stringify(d):Vn(d)))}i=`{${a.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${n.replace(kc,"\n ")}`}("\n"+n.message,i,t,r),n.ngTokenPath=i,n[Kp]=null,n}const Zu=rf(eo("Inject",n=>({token:n})),-1),El=rf(eo("Optional"),8),af=rf(eo("Self"),2),sd=rf(eo("SkipSelf"),4),Ty=rf(eo("Host"),1);function ld(n,e){return n.hasOwnProperty(Hd)?n[Hd]:null}function Po(n){return n.flat(Number.POSITIVE_INFINITY)}function rc(n,e){n.forEach(t=>Array.isArray(t)?rc(t,e):e(t))}function wD(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Ny(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Oy(n,e){const t=[];for(let r=0;re;){const a=i-2;n[i]=n[a],i--}n[e]=t,n[e+1]=r}}function ga(n,e,t){let r=Qu(n,e);return r>=0?n[1|r]=t:(r=~r,T2(n,r,e,t)),r}function pb(n,e){const t=Qu(n,e);if(t>=0)return n[1|t]}function Qu(n,e){return Zp(n,e,1)}function Zp(n,e,t){let r=0,i=n.length>>t;for(;i!==r;){const a=r+(i-r>>1),l=n[a<e?i=a:r=a+1}return~(i<e){l=a-1;break}}}for(;a-1){let a;for(;++ia?"":i[y+1].toLowerCase(),2&r&&p!==S){if(vs(r))return!1;l=!0}}}}else{if(!l&&!vs(r)&&!vs(h))return!1;if(l&&vs(h))continue;l=!1,r=h|1&r}}return vs(r)||l}function vs(n){return!(1&n)}function Wd(n,e,t,r){if(null===e)return-1;let i=0;if(r||!t){let a=!1;for(;i-1)for(t++;t0?'="'+d+'"':"")+"]"}else 8&r?i+="."+l:4&r&&(i+=" "+l);else""!==i&&!vs(l)&&(e+=I2(a,i),i=""),r=l,a=a||!vs(r);t++}return""!==i&&(e+=I2(a,i)),e}function Tr(n){return Br(()=>{const e=ED(n),t={...e,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===sf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ei.Emulated,styles:n.styles||Wi,_:null,schemas:n.schemas||null,tView:null,id:""};SD(t);const r=n.dependencies;return t.directiveDefs=Ly(r,!1),t.pipeDefs=Ly(r,!0),t.id=function BN(n){let e=0;const t=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const i of t)e=Math.imul(31,e)+i.charCodeAt(0)|0;return e+=2147483648,"c"+e}(t),t})}function PN(n){return Mi(n)||Pa(n)}function ri(n){return null!==n}function $n(n){return Br(()=>({type:n.type,bootstrap:n.bootstrap||Wi,declarations:n.declarations||Wi,imports:n.imports||Wi,exports:n.exports||Wi,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function zi(n,e){if(null==n)return Ec;const t={};for(const r in n)if(n.hasOwnProperty(r)){const i=n[r];let a,l,d=Ft.None;Array.isArray(i)?(d=i[0],a=i[1],l=i[2]??a):(a=i,l=i),e?(t[a]=d!==Ft.None?[r,d]:r,e[a]=l):t[a]=r}return t}function hn(n){return Br(()=>{const e=ED(n);return SD(e),e})}function Fa(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 Mi(n){return n[Xu]||null}function Pa(n){return n[C2]||null}function sa(n){return n[Qh]||null}function Sl(n){const e=Mi(n)||Pa(n)||sa(n);return null!==e&&e.standalone}function ys(n,e){const t=n[bD]||null;if(!t&&!0===e)throw new Error(`Type ${Vn(n)} does not have '\u0275mod' property.`);return t}function ED(n){const e={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:n.inputs||Ec,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||Wi,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zi(n.inputs,e),outputs:zi(n.outputs),debugInfo:null}}function SD(n){n.features?.forEach(e=>e(n))}function Ly(n,e){if(!n)return null;const t=e?sa:PN;return()=>("function"==typeof n?n():n).map(r=>t(r)).filter(ri)}function cf(n){return{\u0275providers:n}}function LN(...n){return{\u0275providers:O2(!0,n),\u0275fromNgModule:!0}}function O2(n,...e){const t=[],r=new Set;let i;const a=l=>{t.push(l)};return rc(e,l=>{const d=l;Qp(d,a,[],r)&&(i||=[],i.push(d))}),void 0!==i&&R2(i,a),t}function R2(n,e){for(let t=0;t{e(a,r)})}}function Qp(n,e,t,r){if(!(n=Sn(n)))return!1;let i=null,a=Zh(n);const l=!a&&Mi(n);if(a||l){if(l&&!l.standalone)return!1;i=n}else{const h=n.ngModule;if(a=Zh(h),!a)return!1;i=h}const d=r.has(i);if(l){if(d)return!1;if(r.add(i),l.dependencies){const h="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const p of h)Qp(p,e,t,r)}}else{if(!a)return!1;{if(null!=a.imports&&!d){let p;r.add(i);try{rc(a.imports,y=>{Qp(y,e,t,r)&&(p||=[],p.push(y))})}finally{}void 0!==p&&R2(p,e)}if(!d){const p=ld(i)||(()=>new i);e({provide:i,useFactory:p,deps:Wi},i),e({provide:Py,useValue:i,multi:!0},i),e({provide:$d,useValue:()=>zt(i),multi:!0},i)}const h=a.providers;if(null!=h&&!d){const p=n;F2(h,y=>{e(y,p)})}}}return i!==n&&void 0!==n.providers}function F2(n,e){for(let t of n)w2(t)&&(t=t.\u0275providers),Array.isArray(t)?F2(t,e):e(t)}const DD=Ut({provide:String,useValue:Ut});function zy(n){return null!==n&&"object"==typeof n&&DD in n}function Jp(n){return!(!n||!n.useExisting)}function em(n){return!(!n||!n.useFactory)}function df(n){return"function"==typeof n}const gb=new pn(""),uf={},VN={};let P2;function bb(){return void 0===P2&&(P2=new Ju),P2}class ns{}class hf extends ns{get destroyed(){return this._destroyed}constructor(e,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,z2(e,l=>this.processProvider(l)),this.records.set(Fy,nh(void 0,this)),i.has("environment")&&this.records.set(ns,nh(void 0,this));const a=this.records.get(gb);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(Py,Wi,ji.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=I(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=Ku(this),r=gs(void 0);try{return e()}finally{Ku(t),gs(r)}}get(e,t=ef,r=ji.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(k2))return e[k2](this);r=rl(r);const a=Ku(this),l=gs(void 0);try{if(!(r&ji.SkipSelf)){let h=this.records.get(e);if(void 0===h){const p=function yb(n){return"function"==typeof n||"object"==typeof n&&n instanceof pn}(e)&&od(e);h=p&&this.injectableDefInScope(p)?nh(ff(e),uf):null,this.records.set(e,h)}if(null!=h)return this.hydrate(e,h)}const d=r&ji.Self?bb():this.parent;return t=r&ji.Optional&&t===ef?null:t,d.get(e,t)}catch(d){if("NullInjectorError"===d.name){if((d[Kp]=d[Kp]||[]).unshift(Vn(e)),a)throw d;return DN(d,e,"R3InjectorError",this.source)}throw d}finally{gs(l),Ku(a)}}resolveInjectorInitializers(){const e=I(null),t=Ku(this),r=gs(void 0);try{const a=this.get($d,Wi,ji.Self);for(const l of a)l()}finally{Ku(t),gs(r),I(e)}}toString(){const e=[],t=this.records;for(const r of t.keys())e.push(Vn(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new At(205,!1)}processProvider(e){let t=df(e=Sn(e))?e:Sn(e&&e.provide);const r=function Vy(n){if(zy(n))return nh(void 0,n.useValue);return nh(B2(n),uf)}(e);if(!df(e)&&!0===e.multi){let i=this.records.get(t);i||(i=nh(void 0,uf,!0),i.factory=()=>ts(i.multi),this.records.set(t,i)),t=e,i.multi.push(e)}this.records.set(t,r)}hydrate(e,t){const r=I(null);try{return t.value===uf&&(t.value=VN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Ts(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{I(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;const t=Sn(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function ff(n){const e=od(n),t=null!==e?e.factory:ld(n);if(null!==t)return t;if(n instanceof pn)throw new At(204,!1);if(n instanceof Function)return function vb(n){if(n.length>0)throw new At(204,!1);const t=function Xp(n){return n&&(n[Ud]||n[v2])||null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new At(204,!1)}function B2(n,e,t){let r;if(df(n)){const i=Sn(n);return ld(i)||ff(i)}if(zy(n))r=()=>Sn(n.useValue);else if(em(n))r=()=>n.useFactory(...ts(n.deps||[]));else if(Jp(n))r=()=>zt(Sn(n.useExisting));else{const i=Sn(n&&(n.useClass||n.provide));if(!function L2(n){return!!n.deps}(n))return ld(i)||ff(i);r=()=>new i(...ts(n.deps))}return r}function nh(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function z2(n,e){for(const t of n)Array.isArray(t)?z2(t,e):t&&w2(t)?z2(t.\u0275providers,e):e(t)}function _b(n,e){n instanceof hf&&n.assertNotDestroyed();const r=Ku(n),i=gs(void 0);try{return e()}finally{Ku(r),gs(i)}}function MD(){return void 0!==_D()||null!=function SN(){return nf}()}function xb(n){if(!MD())throw new At(-203,!1)}var Gd,TD,ID;function Ho(n){const e=nt.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(Gd||(Gd={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(TD||(TD={})),function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ID||(ID={}));const V2={\u0275\u0275defineInjectable:_n,\u0275\u0275defineInjector:Er,\u0275\u0275inject:zt,\u0275\u0275invalidFactoryDep:xD,resolveForwardRef:Sn},Al=Function;function Yo(n){return"function"==typeof n}const q2=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ND=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,OD=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,tm=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class qN{constructor(e){this._reflect=e||nt.Reflect}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let r;r=Oy(typeof e>"u"?t.length:e.length);for(let i=0;i"u"?r[i]=[]:e[i]&&e[i]!=Object?r[i]=[e[i]]:r[i]=[],t&&null!=t[i]&&(r[i]=r[i].concat(t[i]));return r}_ownParameters(e,t){if(function Ba(n){return q2.test(n)||tm.test(n)||ND.test(n)&&!OD.test(n)}(e.toString()))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const i=e.ctorParameters;if(i&&i!==t.ctorParameters){const d="function"==typeof i?i():i,h=d.map(y=>y&&y.type),p=d.map(y=>y&&j2(y.decorators));return this._zipTypesAndAnnotations(h,p)}const a=e.hasOwnProperty(si)&&e[si],l=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return l||a?this._zipTypesAndAnnotations(l,a):Oy(e.length)}parameters(e){if(!Yo(e))return[];const t=ud(e);let r=this._ownParameters(e,t);return!r&&t!==Object&&(r=this.parameters(t)),r||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let r=e.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return e.decorators&&e.decorators!==t.decorators?j2(e.decorators):e.hasOwnProperty(Nr)?e[Nr]:null}annotations(e){if(!Yo(e))return[];const t=ud(e),r=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(r)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let r=e.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const r=e.propDecorators,i={};return Object.keys(r).forEach(a=>{i[a]=j2(r[a])}),i}return e.hasOwnProperty(Wr)?e[Wr]:null}propMetadata(e){if(!Yo(e))return{};const t=ud(e),r={};if(t!==Object){const a=this.propMetadata(t);Object.keys(a).forEach(l=>{r[l]=a[l]})}const i=this._ownPropMetadata(e,t);return i&&Object.keys(i).forEach(a=>{const l=[];r.hasOwnProperty(a)&&l.push(...r[a]),l.push(...i[a]),r[a]=l}),r}ownPropMetadata(e){return Yo(e)&&this._ownPropMetadata(e,ud(e))||{}}hasLifecycleHook(e,t){return e instanceof Al&&t in e.prototype}}function j2(n){return n?n.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function ud(n){const e=n.prototype?Object.getPrototypeOf(n.prototype):null;return(e?e.constructor:null)||Object}const Do=0,qn=1,Dr=2,ba=3,oc=4,_s=5,Dl=6,Xd=7,Vi=8,Ca=9,Bo=10,Kr=11,pf=12,rh=13,mf=14,Ko=15,gf=16,bf=17,Sc=18,Yd=19,U2=20,Kd=21,qy=22,hd=23,Gr=25,Ac=1,fd=7,rs=9,Zo=10;var Zd;function Qo(n){return Array.isArray(n)&&"object"==typeof n[Ac]}function la(n){return Array.isArray(n)&&!0===n[Ac]}function Ml(n){return!!(4&n.flags)}function ac(n){return n.componentOffset>-1}function Qd(n){return!(1&~n.flags)}function $a(n){return!!n.template}function jy(n){return!!(512&n[Dr])}function Uy(n){return!(256&~n[Dr])}!function(n){n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews"}(Zd||(Zd={}));class pd{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Z2(n,e,t,r){null!==e?e.applyValueToInputSignal(e,r):n[t]=r}function Ui(){return Q2}function Q2(n){return n.type.prototype.ngOnChanges&&(n.setInput=tz),ez}function ez(){const n=FD(this),e=n?.current;if(e){const t=n.previous;if(t===Ec)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function tz(n,e,t,r,i){const a=this.declaredInputs[r],l=FD(n)||function $y(n,e){return n[J2]=e}(n,{previous:Ec,current:null}),d=l.current||(l.current={}),h=l.previous,p=h[a];d[a]=new pd(p&&p.currentValue,t,h===Ec),Z2(n,e,i,t)}Ui.ngInherit=!0;const J2="__ngSimpleChanges__";function FD(n){return n[J2]||null}let Dc=null;const md=function(n,e,t){Dc?.(n,e,t)},eC="svg";let Eb=!1;function pr(n){for(;Array.isArray(n);)n=n[Do];return n}function Mc(n){for(;Array.isArray(n);){if("object"==typeof n[Ac])return n;n=n[Do]}return null}function oi(n,e){return pr(e[n])}function Ns(n,e){return pr(e[n.index])}function Sb(n,e){return n.data[e]}function Os(n,e){return n[e]}function il(n,e){const t=e[n];return Qo(t)?t:t[Do]}function rm(n){return!(128&~n[Dr])}function gd(n,e){return null==e?null:n[e]}function nC(n){n[bf]=0}function ZN(n){1024&n[Dr]||(n[Dr]|=1024,rm(n)&&im(n))}function BD(n,e){for(;n>0;)e=e[mf],n--;return e}function rC(n){return!!(9216&n[Dr]||n[hd]?.dirty)}function Gy(n){n[Bo].changeDetectionScheduler?.notify(1),rC(n)?im(n):64&n[Dr]&&(function yf(){return Eb}()?(n[Dr]|=1024,im(n)):n[Bo].changeDetectionScheduler?.notify())}function im(n){n[Bo].changeDetectionScheduler?.notify();let e=xs(n);for(;null!==e&&!(8192&e[Dr])&&(e[Dr]|=8192,rm(e));)e=xs(e)}function Xy(n,e){if(!(256&~n[Dr]))throw new At(911,!1);null===n[Kd]&&(n[Kd]=[]),n[Kd].push(e)}function _f(n,e){if(null===n[Kd])return;const t=n[Kd].indexOf(e);-1!==t&&n[Kd].splice(t,1)}function xs(n){const e=n[ba];return la(e)?e[ba]:e}const Zr={lFrame:bd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function oC(){return Zr.bindingsEnabled}function xf(){return null!==Zr.skipHydrationRootTNode}function rn(){return Zr.lFrame.lView}function $r(){return Zr.lFrame.tView}function Cn(n){return Zr.lFrame.contextLView=n,n[Vi]}function kn(n){return Zr.lFrame.contextLView=null,n}function no(){let n=is();for(;null!==n&&64===n.type;)n=n.parent;return n}function is(){return Zr.lFrame.currentTNode}function oh(){const n=Zr.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}function Tl(n,e){const t=Zr.lFrame;t.currentTNode=n,t.isParent=e}function Jd(){return Zr.lFrame.isParent}function wf(){Zr.lFrame.isParent=!1}function La(){const n=Zr.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function sc(){return Zr.lFrame.bindingIndex}function Ma(n){return Zr.lFrame.bindingIndex=n}function va(){return Zr.lFrame.bindingIndex++}function Wa(n){const e=Zr.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function om(n){Zr.lFrame.inI18n=n}function ah(n,e){const t=Zr.lFrame;t.bindingIndex=t.bindingRootIndex=n,Il(e)}function Il(n){Zr.lFrame.currentDirectiveIndex=n}function ol(n){const e=Zr.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}function Tb(){return Zr.lFrame.currentQueryIndex}function Qy(n){Zr.lFrame.currentQueryIndex=n}function sC(n){const e=n[qn];return 2===e.type?e.declTNode:1===e.type?n[_s]:null}function zD(n,e,t){if(t&ji.SkipSelf){let i=e,a=n;for(;(i=i.parent,null===i&&!(t&ji.Host))&&(i=sC(a),!(null===i||(a=a[mf],10&i.type))););if(null===i)return!1;e=i,n=a}const r=Zr.lFrame=Jy();return r.currentTNode=e,r.lView=n,!0}function lC(n){const e=Jy(),t=n[qn];Zr.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Jy(){const n=Zr.lFrame,e=null===n?null:n.child;return null===e?bd(n):e}function bd(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function cC(){const n=Zr.lFrame;return Zr.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const VD=cC;function e_(){const n=cC();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 ws(){return Zr.lFrame.selectedIndex}function Cf(n){Zr.lFrame.selectedIndex=n}function _o(){const n=Zr.lFrame;return Sb(n.tView,n.selectedIndex)}function Fs(){Zr.lFrame.currentNamespace=eC}function Ib(){!function n6(){Zr.lFrame.currentNamespace=null}()}function dC(){return Zr.lFrame.currentNamespace}let qD=!0;function Nb(){return qD}function Tc(n){qD=n}function Ob(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[h]<0&&(n[bf]+=65536),(d>14>16&&(3&n[Dr])===e&&(n[Dr]+=16384,jD(d,a)):jD(d,a)}const Ta=-1;class Fb{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function r_(n){return n!==Ta}function sh(n){return 32767&n}function kf(n,e){let t=function o6(n){return n>>16}(n),r=e;for(;t>0;)r=r[mf],t--;return r}let fC=!0;function i_(n){const e=fC;return fC=n,e}const HD=255,$D=5;let s6=0;const Ic={};function cm(n,e){const t=WD(n,e);if(-1!==t)return t;const r=e[qn];r.firstCreatePass&&(n.injectorIndex=e.length,Lb(r.data,n),Lb(e,null),Lb(r.blueprint,null));const i=a_(n,e),a=n.injectorIndex;if(r_(i)){const l=sh(i),d=kf(i,e),h=d[qn].data;for(let p=0;p<8;p++)e[a+p]=d[l+p]|h[l+p]}return e[a+8]=i,a}function Lb(n,e){n.push(0,0,0,0,0,0,0,0,e)}function WD(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function a_(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,i=e;for(;null!==i;){if(r=bC(i),null===r)return Ta;if(t++,i=i[mf],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Ta}function pC(n,e,t){!function o_(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Jh)&&(r=t[Jh]),null==r&&(r=t[Jh]=s6++);const i=r&HD,a=1<>$D)]|=a}(n,e,t)}function mC(n,e,t){if(t&ji.Optional||void 0!==n)return n;E2()}function GD(n,e,t,r){if(t&ji.Optional&&void 0===r&&(r=null),!(t&(ji.Self|ji.Host))){const i=n[Ca],a=gs(void 0);try{return i?i.get(e,r,t&ji.Optional):S2(e,r,t&ji.Optional)}finally{gs(a)}}return mC(r,0,t)}function gC(n,e,t,r=ji.Default,i){if(null!==n){if(2048&e[Dr]&&!(r&ji.Self)){const l=function ZD(n,e,t,r,i){let a=n,l=e;for(;null!==a&&null!==l&&2048&l[Dr]&&!(512&l[Dr]);){const d=XD(a,l,t,r|ji.Self,Ic);if(d!==Ic)return d;let h=a.parent;if(!h){const p=l[U2];if(p){const y=p.get(t,Ic,r);if(y!==Ic)return y}h=bC(l),l=l[mf]}a=h}return i}(n,e,t,r,Ic);if(l!==Ic)return l}const a=XD(n,e,t,r,Ic);if(a!==Ic)return a}return GD(e,t,r,i)}function XD(n,e,t,r,i){const a=function l6(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Jh)?n[Jh]:void 0;return"number"==typeof e?e>=0?e&HD:c6:e}(t);if("function"==typeof a){if(!zD(e,n,r))return r&ji.Host?mC(i,0,r):GD(e,t,r,i);try{let l;if(l=a(r),null!=l||r&ji.Optional)return l;E2()}finally{VD()}}else if("number"==typeof a){let l=null,d=WD(n,e),h=Ta,p=r&ji.Host?e[Ko][_s]:null;for((-1===d||r&ji.SkipSelf)&&(h=-1===d?a_(n,e):e[d+8],h!==Ta&&KD(r,!1)?(l=e[qn],d=sh(h),e=kf(h,e)):d=-1);-1!==d;){const y=e[qn];if(YD(a,d,y.data)){const S=dm(d,e,t,l,r,p);if(S!==Ic)return S}h=e[d+8],h!==Ta&&KD(r,e[qn].data[d+8]===p)&&YD(a,d,e)?(l=y,d=sh(h),e=kf(h,e)):d=-1}}return i}function dm(n,e,t,r,i,a){const l=e[qn],d=l.data[n+8],y=s_(d,l,t,null==r?ac(d)&&fC:r!=l&&!!(3&d.type),i&ji.Host&&a===d);return null!==y?Sf(e,l,y,d):Ic}function s_(n,e,t,r,i){const a=n.providerIndexes,l=e.data,d=1048575&a,h=n.directiveStart,p=n.directiveEnd,y=a>>20,R=i?d+y:p;for(let B=r?d:d+y;B=h&&q.type===t)return B}if(i){const B=l[h];if(B&&$a(B)&&B.type===t)return h}return null}function Sf(n,e,t,r){let i=n[t];const a=e.data;if(function Pb(n){return n instanceof Fb}(i)){const l=i;l.resolving&&function Dy(n,e){throw e&&e.join(" > "),new At(-200,n)}(so(a[t]));const d=i_(l.canSeeViewProviders);l.resolving=!0;const p=l.injectImpl?gs(l.injectImpl):null;zD(n,r,ji.Default);try{i=n[t]=l.factory(void 0,a,n,r),e.firstCreatePass&&t>=r.directiveStart&&function r6(n,e,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:a}=e.type.prototype;if(r){const l=Q2(e);(t.preOrderHooks??=[]).push(n,l),(t.preOrderCheckHooks??=[]).push(n,l)}i&&(t.preOrderHooks??=[]).push(0-n,i),a&&((t.preOrderHooks??=[]).push(n,a),(t.preOrderCheckHooks??=[]).push(n,a))}(t,a[t],e)}finally{null!==p&&gs(p),i_(d),l.resolving=!1,VD()}}return i}function YD(n,e,t){const r=1<>$D)]&r)}function KD(n,e){return!(n&ji.Self||n&ji.Host&&e)}class ka{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return gC(this._tNode,this._lView,e,rl(r),t)}}function c6(){return new ka(no(),rn())}function xo(n){return Br(()=>{const e=n.prototype.constructor,t=e[Hd]||l_(e),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const a=i[Hd]||l_(i);if(a&&a!==t)return a;i=Object.getPrototypeOf(i)}return a=>new a})}function l_(n){return Ao(n)?()=>{const e=l_(Sn(n));return e&&e()}:ld(n)}function bC(n){const e=n[qn],t=e.type;return 2===t?e.declTNode:1===t?n[_s]:null}function vd(n){return function Ef(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const r=t.length;let i=0;for(;i({attributeName:n,__NG_ELEMENT_ID__:()=>vd(n)}));let QD=null;function zb(){return QD=QD||new qN}function Af(n){return JD(zb().parameters(n))}function JD(n){return n.map(e=>function u6(n){const e={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let t=0;t(null===t&&(t=Ho().compileInjectable(V2,`ng:///${n.name}/\u0275prov.js`,function We(n,e){const t=e||{providedIn:null},r={name:n.name,type:n,typeArgumentCount:0,providedIn:t.providedIn};return(eM(t)||nM(t))&&void 0!==t.deps&&(r.deps=JD(t.deps)),eM(t)?r.useClass=t.useClass:function tM(n){return f6 in n}(t)?r.useValue=t.useValue:nM(t)?r.useFactory=t.useFactory:function p6(n){return void 0!==n.useExisting}(t)&&(r.useExisting=t.useExisting),r}(n,e))),t)}),n.hasOwnProperty(Hd)||Object.defineProperty(n,Hd,{get:()=>{if(null===r){const i=Ho();r=i.compileFactory(V2,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:Af(n),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}const f6=Ut({provide:String,useValue:Ut});function eM(n){return void 0!==n.useClass}function nM(n){return void 0!==n.useFactory}const Cr=ko("Injectable",void 0,void 0,void 0,(n,e)=>h6(n,e));function lc(n,e=null,t=null,r){const i=Ia(n,e,t,r);return i.resolveInjectorInitializers(),i}function Ia(n,e=null,t=null,r,i=new Set){const a=[t||Wi,LN(n)];return r=r||("object"==typeof n?void 0:Vn(n)),new hf(a,e||bb(),r||null,i)}class di{static#e=this.THROW_IF_NOT_FOUND=ef;static#t=this.NULL=new Ju;static create(e,t){if(Array.isArray(e))return lc({name:""},t,e,"");{const r=e.name??"";return lc({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=_n({token:di,providedIn:"any",factory:()=>zt(Fy)});static#r=this.__NG_ELEMENT_ID__=-1}const Df="ngOriginalError";function oo(n){return n[Df]}class wo{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&oo(e);for(;t&&oo(t);)t=oo(t);return t||null}}const Eo=new pn("",{providedIn:"root",factory:()=>xn(wo).handleError.bind(void 0)});class Nl{static#e=this.__NG_ELEMENT_ID__=rM;static#t=this.__NG_ENV_ID__=e=>e}class al extends Nl{constructor(e){super(),this._lView=e}onDestroy(e){return Xy(this._lView,e),()=>_f(this._lView,e)}}function rM(){return new al(rn())}class vC{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=xn(wo,{optional:!0}),this.destroyRef=xn(Nl),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new At(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{const t=this.listeners?.indexOf(e);void 0!==t&&-1!==t&&this.listeners?.splice(t,1)}}}emit(e){if(this.destroyed)throw new At(953,!1);if(null===this.listeners)return;const t=I(null);try{for(const r of this.listeners)try{r(e)}catch(i){this.errorHandler?.handleError(i)}}finally{I(t)}}}function yd(n,e){return ti(n,e)}yd.required=function cc(n){return ti(zn,n)};function fm(){return ch(no(),rn())}function ch(n,e){return new jn(Ns(n,e))}class jn{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=fm}function _C(n){return n instanceof jn?n.nativeElement:n}function dh(n){return e=>{setTimeout(n,void 0,e)}}const cn=class _d extends ln{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,MD()&&(this.destroyRef=xn(Nl,{optional:!0})??void 0)}emit(e){const t=I(null);try{super.next(e)}finally{I(t)}}subscribe(e,t,r){let i=e,a=t||(()=>null),l=r;if(e&&"object"==typeof e){const h=e;i=h.next?.bind(h),a=h.error?.bind(h),l=h.complete?.bind(h)}this.__isAsync&&(a=dh(a),i&&(i=dh(i)),l&&(l=dh(l)));const d=super.subscribe({next:i,error:a,complete:l});return e instanceof ke&&e.add(d),d}};function m6(){return this._results[Symbol.iterator]()}class lo{static#e=Symbol.iterator;get changes(){return this._changes??=new cn}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=lo.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=m6)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const r=Po(e);(this._changesDetected=!function Iy(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r_6}),_6="ng",ru=new pn(""),Rl=new pn("",{providedIn:"platform",factory:()=>"unknown"}),Co=(new pn(""),new pn("")),EC=new pn("",{providedIn:"root",factory:()=>on().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),uM={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},hM=new pn("",{providedIn:"root",factory:()=>uM});function SC(){const n=new Of;return"browser"===xn(Rl)&&(n.store=function fM(n,e){const t=n.getElementById(e+"-state");if(t?.textContent)try{return JSON.parse(t.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+e,r)}return{}}(on(),xn(Ls))),n}class Of{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=_n({token:Of,providedIn:"root",factory:SC});get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store).replace(/null;function $b(n,e,t=!1){return IC(n,e,t)}var wm;!function(n){n.Hydrated="hydrated",n.Skipped="skipped",n.Mismatched="mismatched"}(wm||(wm={}));new pn("");const yM=new pn("",{providedIn:"root",factory:()=>false});new pn("");let Gb,au;function PC(){if(void 0===Gb&&(Gb=null,nt.trustedTypes))try{Gb=nt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Gb}function Cm(n){return PC()?.createHTML(n)||n}function BC(){if(void 0===au&&(au=null,nt.trustedTypes))try{au=nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return au}function xM(n){return BC()?.createHTML(n)||n}function x_(n){return BC()?.createScript(n)||n}function wM(n){return BC()?.createScriptURL(n)||n}class Pf{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wn})`}}class D6 extends Pf{getTypeName(){return"HTML"}}class M6 extends Pf{getTypeName(){return"Style"}}class T6 extends Pf{getTypeName(){return"Script"}}class I6 extends Pf{getTypeName(){return"URL"}}class N6 extends Pf{getTypeName(){return"ResourceURL"}}function cl(n){return n instanceof Pf?n.changingThisBreaksApplicationSecurity:n}function wd(n,e){const t=function O6(n){return n instanceof Pf&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${wn})`)}return t===e}function Bf(n){const e=new L6(n);return function CM(){try{return!!(new window.DOMParser).parseFromString(Cm(""),"text/html")}catch{return!1}}()?new B6(e):e}class B6{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Cm(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class L6{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=Cm(e),t}}const z6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function w_(n){return(n=String(n)).match(z6)?n:"unsafe:"+n}function su(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function Em(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const kM=su("area,br,col,hr,img,wbr"),EM=su("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),SM=su("rp,rt"),V6=Em(SM,EM),q6=Em(EM,su("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")),j6=Em(SM,su("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")),LC=Em(kM,q6,j6,V6),zC=su("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),U6=su("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"),H6=su("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"),VC=Em(zC,U6,H6),$6=su("script,style,template");class Sm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=X6(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let a=G6(t);if(a){t=a;break}t=i.pop()}return this.buf.join("")}startElement(e){const t=Xb(e).toLowerCase();if(!LC.hasOwnProperty(t))return this.sanitizedSomething=!0,!$6.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let i=0;i"),!0}endElement(e){const t=Xb(e).toLowerCase();LC.hasOwnProperty(t)&&!kM.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(jC(e))}}function G6(n){const e=n.nextSibling;if(e&&n!==e.previousSibling)throw AM(e);return e}function X6(n){const e=n.firstChild;if(e&&function W6(n,e){return(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,e))throw AM(e);return e}function Xb(n){const e=n.nodeName;return"string"==typeof e?e:"FORM"}function AM(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const qC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y6=/([^\#-~ |!])/g;function jC(n){return n.replace(/&/g,"&").replace(qC,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Y6,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Yb;function DM(n,e){let t=null;try{Yb=Yb||Bf(n);let r=e?String(e):"";t=Yb.getInertBodyElement(r);let i=5,a=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=a,a=t.innerHTML,t=Yb.getInertBodyElement(r)}while(r!==a);return Cm((new Sm).sanitizeChildren(C_(t)||t))}finally{if(t){const r=C_(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function C_(n){return"content"in n&&function MM(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var za;function k_(n){const e=Fl();return e?e.sanitize(za.URL,n)||"":wd(n,"URL")?cl(n):w_(ni(n))}function Q6(n){const e=Fl();if(e)return wM(e.sanitize(za.RESOURCE_URL,n)||"");if(wd(n,"ResourceURL"))return wM(cl(n));throw new At(904,!1)}function Fl(){const n=rn();return n&&n[Bo].sanitizer}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(za||(za={}));const NM=/^>|^->||--!>|)/g,nO="\u200b$1\u200b";function OM(n){return n.replace(NM,e=>e.replace(tO,nO))}function lu(n){Rr("Must never be called in production mode");const t=n[Ko][Vi];return t&&t.constructor?Mi(t.constructor):null}function WC(n){Rr("Must never be called in production mode");const t=lu(n)?.type?.name;return t?` (used in the '${t}' component template)`:""}function Vf(n){return n.ownerDocument}function GC(n){return n.ownerDocument.body}function Jo(n){return n instanceof Function?n():n}function Cs(n){return"browser"===(n??xn(di)).get(Rl)}var du;let XC;function E_(n,e){return XC(n,e)}function uu(n,e,t,r,i){if(null!=r){let a,l=!1;la(r)?a=r:Qo(r)&&(l=!0,r=r[Do]);const d=pr(r);0===n&&null!==t?null==i?D_(e,t,d):fh(e,t,d,i||null,!0):1===n&&null!==t?fh(e,t,d,i||null,!0):2===n?nv(e,d,l):3===n&&e.destroyNode(d),null!=a&&function rv(n,e,t,r,i){const a=t[fd],l=pr(t);a!==l&&uu(e,n,r,a,i);for(let d=Zo;d0&&(t[i-1][oc]=e),r0&&(n[t-1][oc]=r[oc]);const a=Ny(n,Zo+e);!function VM(n,e){jM(n,e),e[Do]=null,e[_s]=null}(r[qn],r);const l=a[Sc];null!==l&&l.detachView(a[qn]),r[ba]=null,r[oc]=null,r[Dr]&=-129}return r}function A_(n,e){if(!(256&e[Dr])){const t=e[Kr];t.destroyNode&&I_(n,e,t,3,null,null),function lO(n){let e=n[pf];if(!e)return KC(n[qn],n);for(;e;){let t=null;if(Qo(e))t=e[pf];else{const r=e[Zo];r&&(t=r)}if(!t){for(;e&&!e[oc]&&e!==n;)Qo(e)&&KC(e[qn],e),e=e[ba];null===e&&(e=n),Qo(e)&&KC(e[qn],e),t=e&&e[oc]}e=t}}(e)}}function KC(n,e){if(256&e[Dr])return;const t=I(null);try{e[Dr]&=-129,e[Dr]|=256,e[hd]&&z(e[hd]),function uO(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[l]():r[-l].unsubscribe(),a+=2}else{const l=r[t[a+1]];t[a].call(l)}null!==r&&(e[Xd]=null);const i=e[Kd];if(null!==i){e[Kd]=null;for(let a=0;a-1){const{encapsulation:a}=n.data[r.directiveStart+i];if(a===Ei.None||a===Ei.Emulated)return null}return Ns(r,t)}}function fh(n,e,t,r,i){n.insertBefore(e,t,r,i)}function D_(n,e,t){n.appendChild(e,t)}function $M(n,e,t,r,i){null!==r?fh(n,e,t,r,i):D_(n,e,t)}function ph(n,e){return n.parentNode(e)}function GM(n,e,t){return M_(n,e,t)}function Jb(n,e,t){return 40&n.type?Ns(n,t):null}!function(n){n[n.Important=1]="Important",n[n.DashCase=2]="DashCase"}(du||(du={}));let ZC,M_=Jb;function ss(n,e){M_=n,ZC=e}function ev(n,e,t,r){const i=Lc(n,r,e),a=e[Kr],d=GM(r.parent||e[_s],r,e);if(null!=i)if(Array.isArray(t))for(let h=0;hGr&&ek(n,e,Gr,!1),md(l?2:0,i),t(r,i)}finally{Cf(a),md(l?3:1,i)}}function rk(n,e,t){if(Ml(e)){const r=I(null);try{const i=e.directiveStart,a=e.directiveEnd;for(let l=i;lnull;function rT(n,e,t,r,i){for(let a in e){if(!e.hasOwnProperty(a))continue;const l=e[a];if(void 0===l)continue;r??={};let d,h=Ft.None;Array.isArray(l)?(d=l[0],h=l[1]):d=l;let p=a;if(null!==i){if(!i.hasOwnProperty(a))continue;p=i[a]}0===n?sk(r,t,p,d,h):sk(r,t,p,d)}return r}function sk(n,e,t,r,i){let a;n.hasOwnProperty(t)?(a=n[t]).push(e,r):a=n[t]=[e,r],void 0!==i&&a.push(i)}function dl(n,e,t,r,i,a,l,d){const h=Ns(e,t);let y,p=e.inputs;!d&&null!=p&&(y=p[r])?(z_(n,t,y,r,i),ac(e)&&function yO(n,e){const t=il(e,n);16&t[Dr]||(t[Dr]|=64)}(t,e.index)):3&e.type?(r=function iT(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=l?l(i,e.value||"",r):i,a.setProperty(h,r,i)):e.type}function lk(n,e,t,r){if(oC()){const i=null===r?null:{"":-1},a=function P_(n,e){const t=n.directiveRegistry;let r=null,i=null;if(t)for(let a=0;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(l)!=d&&l.push(d),l.push(t,r,a)}}(n,e,r,ov(n,t,i.hostVars,li),i)}function Cd(n,e,t,r,i,a){const l=Ns(n,e);dk(e[Kr],l,a,n.value,t,r,i)}function dk(n,e,t,r,i,a,l){if(null==a)n.removeAttribute(e,i,t);else{const d=null==l?ni(a):l(a,r||"",i);n.setAttribute(e,i,d,t)}}function AO(n,e,t,r,i,a){const l=a[e];if(null!==l)for(let d=0;d{im(n.lView)},consumerOnSignalRead(){this.lView[hd]=this}},hT=100;function j_(n,e=!0,t=0){const r=n[Bo],i=r.rendererFactory;i.begin?.();try{!function FO(n,e){gk(n,e);let t=0;for(;rC(n);){if(t===hT)throw new At(103,!1);t++,gk(n,1)}}(n,t)}catch(l){throw e&&L_(n,l),l}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function U_(n,e,t,r){const i=e[Dr];if(!(256&~i))return;e[Bo].inlineEffectRunner?.flush(),lC(e);let l=null,d=null;(function PO(n){return 2!==n.type})(n)&&(d=IO(e),l=E(d));try{nC(e),Ma(n.bindingStartIndex),null!==t&&QM(n,e,t,2,r);const h=!(3&~i);if(h){const S=n.preOrderCheckHooks;null!==S&&sm(e,S,null)}else{const S=n.preOrderHooks;null!==S&&Rb(e,S,0,null),t_(e,0)}if(function BO(n){for(let e=Rc(n);null!==e;e=eu(e)){if(!(e[Dr]&Zd.HasTransplantedViews))continue;const t=e[rs];for(let r=0;r-1&&(Zb(e,r),Ny(t,r))}this._attachedToViewContainer=!1}A_(this._lView[qn],this._lView)}onDestroy(e){Xy(this._lView,e)}markForCheck(){cv(this._cdRefInjectingView||this._lView)}detach(){this._lView[Dr]&=-129}reattach(){Gy(this._lView),this._lView[Dr]|=128}detectChanges(){this._lView[Dr]|=1024,j_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new At(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jM(this._lView[qn],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new At(902,!1);this._appRef=e,Gy(this._lView)}}class $o{static#e=this.__NG_ELEMENT_ID__=qO}const zO=$o,VO=class extends zO{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,r){const i=av(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:r});return new Nm(i)}};function qO(){return H_(no(),rn())}function H_(n,e){return 4&n.type?new VO(e,n,ch(n,e)):null}new RegExp(`^(\\d+)*(${DC}|${AC})*(.*)`);let xT=()=>null;function Om(n,e){return xT(n,e)}class Y_{}class cR{}class wk{}const wT="ngComponent";class kz{resolveComponentFactory(e){throw function Rm(n){const e=Error(`No component factory found for ${Vn(n)}.`);return e[wT]=n,e}(e)}}class fu{static#e=this.NULL=new kz}class mv{}class hc{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function CT(){const n=rn(),t=il(no().index,n);return(Qo(t)?t:n)[Kr]}()}class Ck{static#e=this.\u0275prov=_n({token:Ck,providedIn:"root",factory:()=>null})}const kk={};const kT=new Set;function Pl(n){kT.has(n)||(kT.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function ET(...n){}class On{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cn(!1),this.onMicrotaskEmpty=new cn(!1),this.onStable=new cn(!1),this.onError=new cn(!1),typeof Zone>"u")throw new At(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)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function ST(){const n="function"==typeof nt.requestAnimationFrame;let e=nt[n?"requestAnimationFrame":"setTimeout"],t=nt[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&t){const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Sk(n){const e=()=>{!function Ek(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(nt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Z_(n),n.isCheckStableRunning=!0,K_(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Z_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,a,l,d)=>{if(function dR(n){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0].data?.__ignore_ng_zone__}(d))return t.invokeTask(i,a,l,d);try{return qf(n),t.invokeTask(i,a,l,d)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||n.shouldCoalesceRunChangeDetection)&&e(),DT(n)}},onInvoke:(t,r,i,a,l,d,h)=>{try{return qf(n),t.invoke(i,a,l,d,h)}finally{n.shouldCoalesceRunChangeDetection&&e(),DT(n)}},onHasTask:(t,r,i,a)=>{t.hasTask(i,a),r===i&&("microTask"==a.change?(n._hasPendingMicrotasks=a.microTask,Z_(n),K_(n)):"macroTask"==a.change&&(n.hasPendingMacrotasks=a.macroTask))},onHandleError:(t,r,i,a)=>(t.handleError(i,a),n.runOutsideAngular(()=>n.onError.emit(a)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!On.isInAngularZone())throw new At(909,!1)}static assertNotInAngularZone(){if(On.isInAngularZone())throw new At(909,!1)}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,i){const a=this._inner,l=a.scheduleEventTask("NgZoneEvent: "+i,e,AT,ET,ET);try{return a.runTask(l,t,r)}finally{a.cancelTask(l)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const AT={};function K_(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 Z_(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId?n.hasPendingMicrotasks=!0:n.hasPendingMicrotasks=!1}function qf(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function DT(n){n._nesting--,K_(n)}class MT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cn,this.onMicrotaskEmpty=new cn,this.onStable=new cn,this.onError=new cn}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,i){return e.apply(t,r)}}var mh;!function(n){n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read"}(mh||(mh={}));function Dk(n,e){const t=e?.injector??xn(di);(e?.runOnServer||Cs(t))&&t.get(zc).internalCallbacks.push(n)}class zc{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const t of e)t()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=_n({token:zc,providedIn:"root",factory:()=>new zc})}function Mk(n){return void 0!==n.ngModule}function jf(n){return!!ys(n)}function Q_(n){return!!sa(n)}function OT(n){return!!Pa(n)}function bv(n){return!!Mi(n)}function Tk(n,e){if(Ao(n)&&!(n=Sn(n)))throw new Error(`Expected forwardRef function, imported from "${so(e)}", to return a standalone entity or NgModule but got "${so(n)||n}".`);if(null==ys(n)){const t=Mi(n)||Pa(n)||sa(n);if(null==t)throw Mk(n)?new Error(`A module with providers was imported from "${so(e)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${so(n)}" type, imported from "${so(e)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!t.standalone)throw new Error(`The "${so(n)}" ${function hR(n){return Mi(n)?"component":Pa(n)?"directive":sa(n)?"pipe":"type"}(n)}, imported from "${so(e)}", is not standalone. Did you forget to add the standalone: true flag?`)}}const J_=!0;class RT{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const e of this.ngModulesWithSomeUnresolvedDecls){const t=ys(e);if(t?.declarations)for(const r of Jo(t.declarations))bv(r)&&this.ownerNgModule.set(r,e)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(e,t){this.resolveNgModulesDecls();const r=Mi(e);if(null===r)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${e}`);if(r.standalone){const i=this.getStandaloneComponentScope(e,t);return i.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...i.compilation.directives,...i.compilation.pipes,...i.compilation.ngModules]}}{if(!this.ownerNgModule.has(e))return{dependencies:[]};const i=this.getNgModuleScope(this.ownerNgModule.get(e));return i.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...i.compilation.directives,...i.compilation.pipes]}}}registerNgModule(e,t){if(!jf(e))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${e}`);this.ngModulesWithSomeUnresolvedDecls.add(e)}clearScopeCacheFor(e){this.ngModulesScopeCache.delete(e),this.standaloneComponentsScopeCache.delete(e)}getNgModuleScope(e){if(this.ngModulesScopeCache.has(e))return this.ngModulesScopeCache.get(e);const t=this.computeNgModuleScope(e);return this.ngModulesScopeCache.set(e,t),t}computeNgModuleScope(e){const t=ys(e,!0),r={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const i of Jo(t.imports))if(jf(i)){const a=this.getNgModuleScope(i);gh(a.exported.directives,r.compilation.directives),gh(a.exported.pipes,r.compilation.pipes)}else{if(!Sl(i)){r.compilation.isPoisoned=!0;break}if(OT(i)||bv(i))r.compilation.directives.add(i);else{if(!Q_(i))throw new At(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");r.compilation.pipes.add(i)}}if(!r.compilation.isPoisoned)for(const i of Jo(t.declarations)){if(jf(i)||Sl(i)){r.compilation.isPoisoned=!0;break}Q_(i)?r.compilation.pipes.add(i):r.compilation.directives.add(i)}for(const i of Jo(t.exports))if(jf(i)){const a=this.getNgModuleScope(i);gh(a.exported.directives,r.exported.directives),gh(a.exported.pipes,r.exported.pipes),gh(a.exported.directives,r.compilation.directives),gh(a.exported.pipes,r.compilation.pipes)}else Q_(i)?r.exported.pipes.add(i):r.exported.directives.add(i);return r}getStandaloneComponentScope(e,t){if(this.standaloneComponentsScopeCache.has(e))return this.standaloneComponentsScopeCache.get(e);const r=this.computeStandaloneComponentScope(e,t);return this.standaloneComponentsScopeCache.set(e,r),r}computeStandaloneComponentScope(e,t){const r={compilation:{directives:new Set([e]),pipes:new Set,ngModules:new Set}};for(const i of Po(t??[])){const a=Sn(i);try{Tk(a,e)}catch{return r.compilation.isPoisoned=!0,r}if(jf(a)){r.compilation.ngModules.add(a);const l=this.getNgModuleScope(a);if(l.exported.isPoisoned)return r.compilation.isPoisoned=!0,r;gh(l.exported.directives,r.compilation.directives),gh(l.exported.pipes,r.compilation.pipes)}else if(Q_(a))r.compilation.pipes.add(a);else{if(!OT(a)&&!bv(a))return r.compilation.isPoisoned=!0,r;r.compilation.directives.add(a)}}return r}isOrphanComponent(e){const t=Mi(e);return!(!t||t.standalone)&&(this.resolveNgModulesDecls(),!this.ownerNgModule.has(e))}}function gh(n,e){for(const t of n)e.add(t)}const vv=new RT;function ex(n,e,t){let r=t?n.styles:null,i=t?n.classes:null,a=0;if(null!==e)for(let l=0;l0&&zs(n,t,a.join(" "))}}(B,oe,V,r),void 0!==t&&function PT(n,e,t){const r=n.projection=[];for(let i=0;i0;)this.remove(this.length-1)}get(e){const t=BT(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Zo}createEmbeddedView(e,t,r){let i,a;"number"==typeof r?i=r:null!=r&&(i=r.index,a=r.injector);const l=Om(this._lContainer,e.ssrId),d=e.createEmbeddedViewImpl(t||{},a,l);return this.insertImpl(d,i,Im(this._hostTNode,l)),d}createComponent(e,t,r,i,a){const l=e&&!Yo(e);let d;if(l)d=t;else{const q=t||{};d=q.index,r=q.injector,i=q.projectableNodes,a=q.environmentInjector||q.ngModuleRef}const h=l?e:new ca(Mi(e)),p=r||this.parentInjector;if(!a&&null==h.ngModule){const V=(l?p:this.parentInjector).get(ns,null);V&&(a=V)}const y=Mi(h.componentType??{}),S=Om(this._lContainer,y?.id??null),R=S?.firstChild??null,B=h.create(p,i,R,a);return this.insertImpl(B.hostView,d,Im(this._hostTNode,S)),B}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,r){const i=e._lView;if(function KN(n){return la(n[ba])}(i)){const d=this.indexOf(e);if(-1!==d)this.detach(d);else{const h=i[ba],p=new Fk(h,h[_s],h[ba]);p.detach(p.indexOf(e))}}const a=this._adjustIndex(t),l=this._lContainer;return sv(l,i,a,r),e.attachToViewContainerRef(),wD(nx(l),a,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=BT(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=Zb(this._lContainer,t);r&&(Ny(nx(this._lContainer),t),A_(r[qn],r))}detach(e){const t=this._adjustIndex(e,-1),r=Zb(this._lContainer,t);return r&&null!=Ny(nx(this._lContainer),t)?new Nm(r):null}_adjustIndex(e,t=0){return e??this.length+t}};function BT(n){return n[8]}function nx(n){return n[8]||(n[8]=[])}function Pk(n,e){let t;const r=e[n.index];return la(r)?t=r:(t=kd(r,e,null,n),e[n.index]=t,B_(e,t)),LT(t,e,n,r),new Fk(t,n,e)}let LT=vh,ix=()=>!1;function bh(n,e,t){return ix(n,e,t)}function vh(n,e,t,r){if(n[fd])return;let i;i=8&t.type?pr(r):function rx(n,e){const t=n[Kr],r=t.createComment(""),i=Ns(e,n);return fh(t,ph(t,i),r,function WM(n,e){return n.nextSibling(e)}(t,i),!1),r}(e,t),n[fd]=i}class Bk{constructor(e){this.queryList=e,this.matches=null}clone(){return new Bk(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lk{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,i=[];for(let a=0;ae.trim())}(e):e}}class zk{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r0)r.push(l[d/2]);else{const p=a[d+1],y=e[-h];for(let S=Zo;S(m(e),e.value);return t[U]=e,t}(n),r=t[U];return e?.equal&&(r.equal=e.equal),t.set=i=>X(r,i),t.update=i=>function se(n,e){A()||M(),X(n,e(n.value))}(r,i),t.asReadonly=Pm.bind(t),t}function Pm(){const n=this[U];if(void 0===n.readonlyFn){const e=()=>this();e[U]=n,n.readonlyFn=e}return n.readonlyFn}function $k(n){return ox(n)&&"function"==typeof n.set}function Wk(n,e){let t;const r=function fe(n){const e=Object.create(W);e.computation=n;const t=()=>{if(b(e),m(e),e.value===ve)throw e.error;return e.value};return t[U]=e,t}(()=>{t._dirtyCounter();const i=function GT(n,e){const t=n._lView,r=n._queryIndex;if(void 0===t||void 0===r||4&t[Dr])return e?void 0:Wi;const i=qk(t,r),a=HT(t,r);return i.reset(a,_C),e?i.first:i._changesDetected||void 0===n._flatValue?n._flatValue=i.toArray():n._flatValue}(t,n);if(e&&void 0===i)throw new At(-951,!1);return i});return t=r[U],t._dirtyCounter=WT(0),t._flatValue=void 0,r}function Ga(){return Wk(!0,!1)}function ax(){return Wk(!0,!0)}function Xk(n,e){const t=n[U];t._lView=rn(),t._queryIndex=e,t._queryList=qk(t._lView,e),t._queryList.onDirty(()=>t._dirtyCounter.update(r=>r+1))}function XT(n,e){return Ga()}XT.required=function YT(n,e){return ax()};function KT(n,e){return Ga()}KT.required=function ZT(n,e){return ax()};function Yk(n){const e=Object.create(ai),t=new vC;function r(){return m(e),AR(e.value),e.value}return e.value=n,r[U]=e,r.asReadonly=Pm.bind(r),r.set=i=>{e.equal(e.value,i)||(X(e,i),t.emit(i))},r.update=i=>{AR(e.value),r.set(i(e.value))},r.subscribe=t.subscribe.bind(t),r.destroyRef=t.destroyRef,r}function AR(n){if(n===zn)throw new At(-952,!1)}function Kk(n){return Yk(n)}Kk.required=function QT(){return Yk(zn)};class sx{}bi("ContentChildren",(n,e={})=>({selector:n,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true,...e}),sx),bi("ContentChild",(n,e={})=>({selector:n,first:!0,isViewQuery:!1,descendants:!0,...e}),sx);const tI=bi("ViewChildren",(n,e={})=>({selector:n,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true,...e}),sx),Bm=bi("ViewChild",(n,e)=>({selector:n,first:!0,isViewQuery:!0,descendants:!0,...e}),sx);function Zk(n){const e=[],t=new Map;function r(i){let a=t.get(i);if(!a){const l=n(i);t.set(i,a=l.then(IR))}return a}return yh.forEach((i,a)=>{const l=[];i.templateUrl&&l.push(r(i.templateUrl).then(p=>{i.template=p}));const d="string"==typeof i.styles?[i.styles]:i.styles||[];if(i.styles=d,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){const p=i.styles.length,y=i.styleUrls;i.styleUrls.forEach((S,R)=>{d.push(""),l.push(r(S).then(B=>{d[p+R]=B,y.splice(y.indexOf(S),1),0==y.length&&(i.styleUrls=void 0)}))})}else i.styleUrl&&l.push(r(i.styleUrl).then(p=>{d.push(p),i.styleUrl=void 0}));const h=Promise.all(l).then(()=>function NR(n){fc.delete(n)}(a));e.push(h)}),function MR(){const n=yh;return yh=new Map,n}(),Promise.all(e).then(()=>{})}let yh=new Map;const fc=new Set;function nI(n){return!!(n.templateUrl&&!n.hasOwnProperty("template")||n.styleUrls&&n.styleUrls.length||n.styleUrl)}function IR(n){return"string"==typeof n?n:n.text()}const lx=new Map;let rI=!0;function Qk(n,e){(function OR(n,e,t){if(e&&e!==t&&rI)throw new Error(`Duplicate module registered for ${n} - ${Vn(e)} vs ${Vn(e.name)}`)})(e,lx.get(e)||null,n),lx.set(e,n)}function oI(n){return Object.getPrototypeOf(n.prototype).constructor}function hr(n){let e=oI(n.type),t=!0;const r=[n];for(;e;){let i;if($a(n))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new At(903,!1);i=e.\u0275dir}if(i){if(t){r.push(i);const l=n;l.inputs=yv(n.inputs),l.inputTransforms=yv(n.inputTransforms),l.declaredInputs=yv(n.declaredInputs),l.outputs=yv(n.outputs);const d=i.hostBindings;d&&sI(n,d);const h=i.viewQuery,p=i.contentQueries;if(h&&eE(n,h),p&&aI(n,p),Jk(n,i),Tn(n.outputs,i.outputs),$a(i)&&i.data.animation){const y=n.data;y.animation=(y.animation||[]).concat(i.data.animation)}}const a=i.features;if(a)for(let l=0;l=0;r--){const i=n[r];i.hostVars=e+=i.hostVars,i.hostAttrs=po(i.hostAttrs,t=po(t,i.hostAttrs))}}(r)}function Jk(n,e){for(const t in e.inputs){if(!e.inputs.hasOwnProperty(t)||n.inputs.hasOwnProperty(t))continue;const r=e.inputs[t];if(void 0!==r&&(n.inputs[t]=r,n.declaredInputs[t]=e.declaredInputs[t],null!==e.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(i))continue;n.inputTransforms??={},n.inputTransforms[i]=e.inputTransforms[i]}}}function yv(n){return n===Ec?{}:n===Wi?[]:n}function eE(n,e){const t=n.viewQuery;n.viewQuery=t?(r,i)=>{e(r,i),t(r,i)}:e}function aI(n,e){const t=n.contentQueries;n.contentQueries=t?(r,i,a)=>{e(r,i,a),t(r,i,a)}:e}function sI(n,e){const t=n.hostBindings;n.hostBindings=t?(r,i)=>{e(r,i),t(r,i)}:e}const PR=["providersResolver"],BR=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function lI(n,e,t){if(null!==n.hostDirectives)for(const r of n.hostDirectives){const i=Pa(r.directive);VR(i.declaredInputs,r.inputs),lI(i,e,t),t.set(i,r),e.push(i)}}function cI(n){if(void 0===n||0===n.length)return Ec;const e={};for(let t=0;tt()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ux extends qR{constructor(e){super(),this.moduleType=e}create(e){return new dx(this.moduleType,e,[])}}class hI extends Uf{constructor(e){super(),this.componentFactoryResolver=new FT(this),this.instance=null;const t=new hf([...e.providers,{provide:Uf,useValue:this},{provide:fu,useValue:this.componentFactoryResolver}],e.parent||bb(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function nE(n,e,t=null){return new hI({providers:n,parent:e,debugName:t,runEnvironmentInitializers:!0}).injector}class hx{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(e,t,r,i){if(!this.cachedInjectors.has(e)){const a=r.length>0?nE(r,t,i):null;this.cachedInjectors.set(e,a)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=_n({token:hx,providedIn:"environment",factory:()=>new hx})}class Ll{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new _r(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(t){return new(t||Ll)};static#t=this.\u0275prov=_n({token:Ll,factory:Ll.\u0275fac,providedIn:"root"})}function Hf(n){return!!mx(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function mx(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Sd(n,e,t){return n[e]=t}function _v(n,e){return n[e]}function da(n,e,t){const r=n[e];return!Object.is(r,t)&&(n[e]=t,!0)}function $f(n,e,t,r){const i=da(n,e,t);return da(n,e+1,r)||i}function gx(n,e,t,r,i){const a=$f(n,e,t,r);return da(n,e+2,i)||a}function pc(n,e,t,r,i,a){const l=$f(n,e,t,r);return $f(n,e+2,i,a)||l}function xv(n){return!(32&~n.flags)}function sr(n,e,t,r,i,a,l,d){const h=rn(),p=$r(),y=n+Gr,S=p.firstCreatePass?function WR(n,e,t,r,i,a,l,d,h){const p=e.consts,y=Mm(e,n,4,l||null,gd(p,d));lk(e,t,y,gd(p,h)),Ob(e,y);const S=y.tView=ok(2,y,r,i,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,p,null);return null!==e.queries&&(e.queries.template(e,y),S.queries=e.queries.embeddedTView(y)),y}(y,p,h,e,t,r,i,a,l):p.data[y];Tl(S,!1);const R=fI(p,h,S,n);Nb()&&ev(p,h,R,S),os(R,h);const B=kd(R,h,R,S);return h[y]=B,B_(h,B),bh(B,S,h),Qd(S)&&R_(p,h,S),null!=l&&ik(h,S,d),sr}let fI=rE;function rE(n,e,t,r){return Tc(!0),e[Kr].createComment("")}var ua;!function(n){n[n.NOT_STARTED=0]="NOT_STARTED",n[n.IN_PROGRESS=1]="IN_PROGRESS",n[n.COMPLETE=2]="COMPLETE",n[n.FAILED=3]="FAILED"}(ua||(ua={}));const iE=0,GR=1;var zo,zl;!function(n){n[n.Placeholder=0]="Placeholder",n[n.Loading=1]="Loading",n[n.Complete=2]="Complete",n[n.Error=3]="Error"}(zo||(zo={})),function(n){n[n.Initial=-1]="Initial"}(zl||(zl={}));const Wf=0,bx=1,wv=2,vx=3,gI=4,oE=5;var Cv;function yx(n,e,t){const r=1===n?oE:gI;null===e[r]&&(e[r]=[]),e[r].push(t)}function aE(n,e){const t=1===n?oE:gI,r=e[t];if(null!==r){for(const i of r)i();e[t]=null}}function bI(n){aE(1,n),aE(0,n)}function hl(n){return n+1}function Gf(n,e){n[qn];return n[hl(e.index)]}function Vs(n,e){const t=hl(e.index);return n.data[t]}function lE(n,e){return e===zo.Placeholder?n.placeholderBlockConfig?.[iE]??null:e===zo.Loading?n.loadingBlockConfig?.[iE]??null:null}function _I(n){return n.loadingBlockConfig?.[GR]??null}function kv(n,e){if(!n||0===n.length)return e;const t=new Set(n);for(const r of e)t.add(r);return n.length===t.size?n:Array.from(t)}!function(n){n[n.Manual=0]="Manual",n[n.Playthrough=1]="Playthrough"}(Cv||(Cv={}));const _x={passive:!0,capture:!0},cE=new WeakMap,dE=new WeakMap,Lm=new WeakMap,uE=["click","keydown"],CI=["mouseenter","focusin"];let zm=null,Ev=0;class Vm{constructor(){this.callbacks=new Set,this.listener=()=>{for(const e of this.callbacks)e()}}}function xx(n,e){let t=dE.get(n);if(!t){t=new Vm,dE.set(n,t);for(const r of uE)n.addEventListener(r,t.listener,_x)}return t.callbacks.add(e),()=>{const{callbacks:r,listener:i}=t;if(r.delete(e),0===r.size){dE.delete(n);for(const a of uE)n.removeEventListener(a,i,_x)}}}function kI(n,e){let t=cE.get(n);if(!t){t=new Vm,cE.set(n,t);for(const r of CI)n.addEventListener(r,t.listener,_x)}return t.callbacks.add(e),()=>{const{callbacks:r,listener:i}=t;if(r.delete(e),0===r.size){for(const a of CI)n.removeEventListener(a,i,_x);cE.delete(n)}}}function mu(n,e,t){const r=t.get(On);let i=Lm.get(n);return zm=zm||r.runOutsideAngular(()=>new IntersectionObserver(a=>{for(const l of a)l.isIntersecting&&Lm.has(l.target)&&r.run(Lm.get(l.target).listener)})),i||(i=new Vm,r.runOutsideAngular(()=>zm.observe(n)),Lm.set(n,i),Ev++),i.callbacks.add(e),()=>{Lm.has(n)&&(i.callbacks.delete(e),0===i.callbacks.size&&(zm?.unobserve(n),Lm.delete(n),Ev--),0===Ev&&(zm?.disconnect(),zm=null))}}function qm(n,e,t,r,i,a,l){const d=n[Ca];Dk(function h(){if(Uy(n))return;const p=Gf(n,e),y=p[bx];if(y!==zl.Initial&&y!==zo.Placeholder)return;const S=function EI(n,e,t){return null==t?n:t>=0?BD(t,n):n[e.index][Zo]??null}(n,e,r);if(!S)return void Dk(h,{injector:d});if(Uy(S))return;const R=function YR(n,e){return oi(Gr+e,n)}(S,t),B=i(R,()=>{n!==S&&_f(S,B),a()},d);n!==S&&Xy(S,B),yx(l,p,B)},{injector:d})}function wx(n,e){const r=e[Ca].get(Cx);return r.add(n),()=>r.remove(n)}class Cx{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=xn(On),this.requestIdleCallbackFn=(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis)}add(e){(this.executingCallbacks?this.deferred:this.current).add(e),null===this.idleId&&this.scheduleIdleCallback()}remove(e){const{current:t,deferred:r}=this;t.delete(e),r.delete(e),0===t.size&&0===r.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const e=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const t of this.current)t();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const t of this.deferred)this.current.add(t);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(e))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static#e=this.\u0275prov=_n({token:Cx,providedIn:"root",factory:()=>new Cx})}function AI(n){return(e,t)=>DI(n,e,t)}function DI(n,e,t){const i=t[Ca].get(jm);return i.add(n,e),()=>i.remove(e)}class jm{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(e,t){const r=this.executingCallbacks?this.deferred:this.current;this.addToQueue(r,Date.now()+e,t),this.scheduleTimer()}remove(e){const{current:t,deferred:r}=this;-1===this.removeFromQueue(t,e)&&this.removeFromQueue(r,e),0===t.length&&0===r.length&&this.clearTimeout()}addToQueue(e,t,r){let i=e.length;for(let a=0;at){i=a;break}T2(e,i,t,r)}removeFromQueue(e,t){let r=-1;for(let i=0;i-1&&Ry(e,r,2),r}scheduleTimer(){const e=()=>{this.clearTimeout(),this.executingCallbacks=!0;const r=[...this.current],i=Date.now();for(let l=0;l=0&&Ry(this.current,0,a+1),this.executingCallbacks=!1,this.deferred.length>0){for(let l=0;l0){const r=Date.now(),i=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-i>16){this.clearTimeout();const a=Math.max(i-r,16);this.invokeTimerAt=i,this.timeoutId=setTimeout(e,a)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static#e=this.\u0275prov=_n({token:jm,providedIn:"root",factory:()=>new jm})}new pn("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");const MI=new pn("");function _h(n){return n.get(MI,null,{optional:!0})?.behavior!==Cv.Manual&&Cs(n)}let Xf=null;function RI(n){const e=rn(),t=no();if(Yf(e,t),Cs(e[Ca])){const r=n(()=>Kf(e,t),e);yx(0,Gf(e,t),r)}}function FI(n){const e=rn();if(Cs(e[Ca])){const t=no(),i=Vs(e[qn],t);if(i.loadingState===ua.NOT_STARTED){yx(1,Gf(e,t),n(()=>Sv(i,e,t),e))}}}function xh(n,e,t,r=!1){const i=t[ba],a=i[qn];if(Uy(i))return;const l=Gf(i,e);if(zI(l[bx],n)&&zI(l[Wf]??-1,n)){const h=i[Ca],p=Vs(a,e),S=r||!Cs(h)||null===_I(p)&&null===lE(p,zo.Loading)&&!lE(p,zo.Placeholder)?Sx:Xf;try{S(n,l,t,e,i)}catch(R){L_(i,R)}}}function Sx(n,e,t,r,i){const a=function yI(n,e,t){const i=Vs(e[qn],t);switch(n){case zo.Complete:return i.primaryTmplIndex;case zo.Loading:return i.loadingTmplIndex;case zo.Error:return i.errorTmplIndex;case zo.Placeholder:return i.placeholderTmplIndex;default:return null}}(n,i,r);if(null!==a){e[bx]=n;const l=i[qn],h=Sb(l,a+Gr),p=0;let y;if(pk(t,p),n===zo.Complete){const B=Vs(l,r),q=B.providers;if(q&&q.length>0){const V=i[Ca],ee=function sF(n){return n instanceof tx&&"function"==typeof n.injector.__ngOutletInjector}(V),ne=ee?V:V.get(ns);y=ne.get(hx).getOrCreateInjector(B,ne,q,""),ee&&(y=function PI(n,e){return n.injector.__ngOutletInjector(e)}(V,y))}}const S=Om(t,h.tView.ssrId),R=av(i,h,null,{dehydratedView:S,injector:y});sv(t,R,p,Im(h,S)),cv(R)}}function BI(n,e,t,r,i){const a=Date.now(),d=Vs(i[qn],r);if(null===e[wv]||e[wv]<=a){e[wv]=null;const h=_I(d),p=null!==e[vx];if(n!==zo.Loading||null===h||p){n>zo.Loading&&p&&(e[vx](),e[vx]=null,e[Wf]=null),Sx(n,e,t,r,i);const y=lE(d,n);null!==y&&(e[wv]=a+y,LI(y,e,r,t,i))}else{e[Wf]=n;const y=LI(h,e,r,t,i);e[vx]=y}}else e[Wf]=n}function LI(n,e,t,r,i){return DI(n,()=>{const l=e[Wf];e[wv]=null,e[Wf]=null,null!==l&&xh(l,t,r)},i)}function zI(n,e){return n{let S=!1;const R=[],B=[];for(const q of y){if("fulfilled"!==q.status){S=!0;break}{const V=q.value,ee=Mi(V)||Pa(V);if(ee)R.push(ee);else{const ne=sa(V);ne&&B.push(ne)}}}if(n.loadingPromise=null,h.remove(p),S){if(n.loadingState=ua.FAILED,null===n.errorTmplIndex){WC(e);const V=new At(750,!1);L_(e,V)}}else{n.loadingState=ua.COMPLETE;const q=l.tView;if(R.length>0){q.directiveRegistry=kv(q.directiveRegistry,R);const ee=O2(!1,...R.map(ne=>ne.type));n.providers=ee}B.length>0&&(q.pipeRegistry=kv(q.pipeRegistry,B))}}),n.loadingPromise):(n.loadingPromise=Promise.resolve().then(()=>{n.loadingPromise=null,n.loadingState=ua.COMPLETE,h.remove(p)}),n.loadingPromise)}function Yf(n,e){const t=n[e.index];xh(zo.Placeholder,e,t)}function fE(n,e,t){n.loadingPromise.then(()=>{n.loadingState===ua.COMPLETE?xh(zo.Complete,e,t):n.loadingState===ua.FAILED&&xh(zo.Error,e,t)})}function Kf(n,e){const t=n[qn],r=n[e.index];if(!_h(n[Ca]))return;const a=Gf(n,e),l=Vs(t,e);switch(bI(a),l.loadingState){case ua.NOT_STARTED:xh(zo.Loading,e,r),Ax(l,n,e),l.loadingState===ua.IN_PROGRESS&&fE(l,e,r);break;case ua.IN_PROGRESS:xh(zo.Loading,e,r),fE(l,e,r);break;case ua.COMPLETE:xh(zo.Complete,e,r);break;case ua.FAILED:xh(zo.Error,e,r)}}function vr(n,e,t,r){const i=rn();if(da(i,va(),e)){$r();Cd(_o(),i,n,e,t,r)}return vr}function Um(n,e){let t=!1,r=sc();for(let a=1;a>17&32767}function Mx(n){return 2|n}function Qf(n){return(131068&n)>>2}function Ym(n,e){return-131069&n|e<<2}function Jf(n){return 1|n}function dF(n,e,t,r,i,a){let l=a?e.classBindings:e.styleBindings,d=kh(l),h=Qf(l);n[r]=t;let y,p=!1;if(Array.isArray(t)){const S=t;y=S[1],(null===y||Qu(S,y)>0)&&(p=!0)}else y=t;if(i)if(0!==h){const R=kh(n[d+1]);n[r+1]=Dx(R,d),0!==R&&(n[R+1]=Ym(n[R+1],r)),n[d+1]=function zz(n,e){return 131071&n|e<<17}(n[d+1],r)}else n[r+1]=Dx(d,0),0!==d&&(n[d+1]=Ym(n[d+1],r)),d=r;else n[r+1]=Dx(h,0),0===d?d=r:n[h+1]=Ym(n[h+1],r),h=r;p&&(n[r+1]=Mx(n[r+1])),vE(n,y,r,!0),vE(n,y,r,!1),function uF(n,e,t,r,i){const a=i?n.residualClasses:n.residualStyles;null!=a&&"string"==typeof e&&Qu(a,e)>=0&&(t[r+1]=Jf(t[r+1]))}(e,y,n,r,a),l=Dx(d,h),a?e.classBindings=l:e.styleBindings=l}function vE(n,e,t,r){const i=n[t+1],a=null===e;let l=r?kh(i):Qf(i),d=!1;for(;0!==l&&(!1===d||a);){const h=n[l],p=n[l+1];Tx(h,e)&&(d=!0,n[l+1]=r?Jf(p):Mx(p)),l=r?kh(p):Qf(p)}d&&(n[t+1]=r?Mx(i):Jf(i))}function Tx(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Qu(n,e)>=0}const Va={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yE(n){return n.substring(Va.key,Va.keyEnd)}function GI(n){return n.substring(Va.value,Va.valueEnd)}function _E(n,e){const t=Va.textEnd;return t===e?-1:(e=Va.keyEnd=function hF(n,e,t){for(;e32;)e++;return e}(n,Va.key=e,t),Km(n,e,t))}function KI(n,e){const t=Va.textEnd;let r=Va.key=Km(n,e,t);return t===r?-1:(r=Va.keyEnd=function fF(n,e,t){let r;for(;e=65&&(-33&r)<=90||r>=48&&r<=57);)e++;return e}(n,r,t),r=Ix(n,r,t,58),r=Va.value=Km(n,r,t),r=Va.valueEnd=function pF(n,e,t){let r=-1,i=-1,a=-1,l=e,d=l;for(;l32&&(d=l),a=i,i=r,r=-33&h}return d}(n,r,t),Ix(n,r,t,59))}function xE(n){Va.key=0,Va.keyEnd=0,Va.value=0,Va.valueEnd=0,Va.textEnd=n.length}function Km(n,e,t){for(;e=0;t=KI(e,t))n3(n,yE(e),GI(e))}function ea(n){jc(_F,Ad,n,!0)}function Ad(n,e){for(let t=function XI(n){return xE(n),_E(n,Km(n,0,Va.textEnd))}(e);t>=0;t=_E(e,t))ga(n,yE(e),!0)}function mc(n,e,t,r){const i=rn(),a=$r(),l=Wa(2);if(a.firstUpdatePass&&e3(a,n,l,r),e!==li&&da(i,l,e)){wF(a,a.data[ws()],i,i[Kr],n,i[l+1]=function i3(n,e){return null==n||""===n||("string"==typeof e?n+=e:"object"==typeof n&&(n=Vn(cl(n)))),n}(e,t),r,l)}}function jc(n,e,t,r){const i=$r(),a=Wa(2);i.firstUpdatePass&&e3(i,null,a,r);const l=rn();if(t!==li&&da(l,a,t)){const d=i.data[ws()];if(Zm(d,r)&&!JI(i,a)){let h=r?d.classesWithoutHost:d.stylesWithoutHost;null!==h&&(t=ur(h,t||"")),Nx(i,d,l,t,r)}else!function xF(n,e,t,r,i,a,l,d){i===li&&(i=Wi);let h=0,p=0,y=0=n.expandoStartIndex}function e3(n,e,t,r){const i=n.data;if(null===i[t+1]){const a=i[ws()],l=JI(n,t);Zm(a,r)&&null===e&&!l&&(e=!1),e=function gF(n,e,t,r){const i=ol(n);let a=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(t=wE(null,n,e,t,r),t=ep(t,e.attrs,r),a=null);else{const l=e.directiveStylingLast;if(-1===l||n[l]!==i)if(t=wE(i,n,e,t,r),null===a){let h=function bF(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==Qf(r))return n[kh(r)]}(n,e,r);void 0!==h&&Array.isArray(h)&&(h=wE(null,n,e,h[1],r),h=ep(h,e.attrs,r),function vF(n,e,t,r){const i=t?e.classBindings:e.styleBindings;n[kh(i)]=r}(n,e,r,h))}else a=function yF(n,e,t){let r;const i=e.directiveEnd;for(let a=1+e.directiveStylingLast;a0;){const h=n[i],p=Array.isArray(h),y=p?h[1]:h,S=null===y;let R=t[i+1];R===li&&(R=S?Wi:void 0);let B=S?pb(R,r):y===r?R:void 0;if(p&&!Ox(B)&&(B=pb(h,r)),Ox(B)&&(d=B,l))return d;const q=n[i+1];i=l?kh(q):Qf(q)}if(null!==e){let h=a?e.residualClasses:e.residualStyles;null!=h&&(d=pb(h,r))}return d}function Ox(n){return void 0!==n}function Zm(n,e){return!!(n.flags&(e?8:16))}function Rx(n,e,t){jc(ga,Ad,Hm(rn(),n,e,t),!0)}class MF{destroy(e){}updateValue(e,t){}swap(e,t){const r=Math.min(e,t),i=Math.max(e,t),a=this.detach(i);if(i-r>1){const l=this.detach(r);this.attach(r,a),this.attach(i,l)}else this.attach(r,a)}move(e,t){this.attach(t,this.detach(e))}}function CE(n,e,t,r,i){return n===t&&Object.is(e,r)?1:Object.is(i(n,e),i(t,r))?-1:0}function kE(n,e,t,r){return!(void 0===e||!e.has(r))&&(n.attach(t,e.get(r)),e.delete(r),!0)}function l3(n,e,t,r,i){if(kE(n,e,r,t(r,i)))n.updateValue(r,i);else{const a=n.create(r,i);n.attach(r,a)}}function c3(n,e,t,r){const i=new Set;for(let a=e;a<=t;a++)i.add(r(a,n.at(a)));return i}class tp{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;const t=this.kvMap.get(e);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let r=this.kvMap.get(e);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,r]of this.kvMap)if(e(r,t),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,t)}}}function yi(n,e,t){Pl("NgControlFlow");const r=rn(),i=va(),a=EE(r,Gr+n);if(da(r,i,e)){const d=I(null);try{if(pk(a,0),-1!==e){const h=AE(r[qn],Gr+e),p=Om(a,h.tView.ssrId);sv(a,av(r,h,t,{dehydratedView:p}),0,Im(h,p))}}finally{I(d)}}else{const d=uT(a,0);void 0!==d&&(d[Vi]=t)}}class TF{constructor(e,t,r){this.lContainer=e,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-Zo}}function qs(n,e){return e}class NF{constructor(e,t,r){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=r}}function np(n,e,t,r,i,a,l,d,h,p,y,S,R){Pl("NgControlFlow");const B=void 0!==h,q=rn(),V=d?l.bind(q[Ko][Vi]):l,ee=new NF(B,V);q[Gr+n]=ee,sr(n+1,e,t,r,i,a),B&&sr(n+2,h,p,y,S,R)}class u3 extends MF{constructor(e,t,r){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Zo}at(e){return this.getLView(e)[Vi].$implicit}attach(e,t){const r=t[Dl];this.needsIndexUpdate||=e!==this.length,sv(this.lContainer,t,e,Im(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,function OF(n,e){return Zb(n,e)}(this.lContainer,e)}create(e,t){const r=Om(this.lContainer,this.templateTNode.tView.ssrId);return av(this.hostLView,this.templateTNode,new TF(this.lContainer,t,e),{dehydratedView:r})}destroy(e){A_(e[qn],e)}updateValue(e,t){this.getLView(e)[Vi].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e{n.destroy(d)})}(l,n,a.trackByFn),l.updateIndexes(),a.hasEmptyBlock){const d=va(),h=0===l.length;if(da(r,d,h)){const p=t+2,y=EE(r,p);if(h){const S=AE(i,p),R=Om(y,S.tView.ssrId);sv(y,av(r,S,void 0,{dehydratedView:R}),0,Im(S,R))}else pk(y,0)}}}finally{I(e)}}function EE(n,e){return n[e]}function AE(n,e){return Sb(n,e)}function Bt(n,e,t,r){const i=rn(),a=$r(),l=Gr+n,d=i[Kr],h=a.firstCreatePass?function h3(n,e,t,r,i,a){const l=e.consts,h=Mm(e,n,2,r,gd(l,i));return lk(e,t,h,gd(l,a)),null!==h.attrs&&ex(h,h.attrs,!1),null!==h.mergedAttrs&&ex(h,h.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,h),h}(l,a,i,e,t,r):a.data[l],p=f3(a,i,h,d,e,n);i[l]=p;const y=Qd(h);return Tl(h,!0),Dm(d,p,h),!xv(h)&&Nb()&&ev(a,i,p,h),0===function JN(){return Zr.lFrame.elementDepthCount}()&&os(p,i),function iC(){Zr.lFrame.elementDepthCount++}(),y&&(R_(a,i,h),rk(a,h,i)),null!==r&&ik(i,h),Bt}function qt(){let n=no();Jd()?wf():(n=n.parent,Tl(n,!1));const e=n;(function ih(n){return Zr.skipHydrationRootTNode===n})(e)&&function Yy(){Zr.skipHydrationRootTNode=null}(),function e6(){Zr.lFrame.elementDepthCount--}();const t=$r();return t.firstCreatePass&&(Ob(t,n),Ml(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function i6(n){return!!(8&n.flags)}(e)&&Nx(t,e,rn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function uC(n){return!!(16&n.flags)}(e)&&Nx(t,e,rn(),e.stylesWithoutHost,!1),qt}function kr(n,e,t,r){return Bt(n,e,t,r),qt(),kr}let f3=(n,e,t,r,i,a)=>(Tc(!0),hu(r,i,dC()));function DE(n,e,t){const r=rn(),i=$r(),a=n+Gr,l=i.firstCreatePass?function PF(n,e,t,r,i){const a=e.consts,l=gd(a,r),d=Mm(e,n,8,"ng-container",l);return null!==l&&ex(d,l,!0),lk(e,t,d,gd(a,i)),null!==e.queries&&e.queries.elementStart(e,d),d}(a,i,r,e,t):i.data[a];Tl(l,!0);const d=p3(i,r,l,n);return r[a]=d,Nb()&&ev(i,r,d,l),os(d,r),Qd(l)&&(R_(i,r,l),rk(i,l,r)),null!=t&&ik(r,l),DE}function gu(){let n=no();const e=$r();return Jd()?wf():(n=n.parent,Tl(n,!1)),e.firstCreatePass&&(Ob(e,n),Ml(n)&&e.queries.elementEnd(n)),gu}function fl(n,e,t){return DE(n,e,t),gu(),fl}let p3=(n,e,t,r)=>(Tc(!0),S_(e[Kr],""));function Ai(){return rn()}function js(n,e,t){const r=rn();if(da(r,va(),e)){dl($r(),_o(),r,n,e,r[Kr],t,!0)}return js}function Fx(n,e,t){const r=rn();if(da(r,va(),e)){const a=$r(),l=_o();dl(a,l,r,n,e,hk(ol(a.data),l,r),t,!0)}return Fx}const ip=void 0;var LF=["en",[["a","p"],["AM","PM"],ip],[["AM","PM"],ip,ip],[["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"]],ip,[["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"]],ip,[["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}",ip,"{1} 'at' {0}",ip],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BF(n){const t=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let Qm={};function ks(n){const e=function Px(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=v3(e);if(t)return t;const r=e.split("-")[0];if(t=v3(r),t)return t;if("en"===r)return LF;throw new At(701,!1)}function b3(n){return ks(n)[Mo.PluralCase]}function v3(n){return n in Qm||(Qm[n]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[n]),Qm[n]}var Mo;!function(n){n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData"}(Mo||(Mo={}));const qF=["zero","one","two","few","many"];const Jm="en-US",Bx={marker:"element"},Av={marker:"ICU"};var Us;!function(n){n[n.SHIFT=2]="SHIFT",n[n.APPEND_EAGERLY=1]="APPEND_EAGERLY",n[n.COMMENT=2]="COMMENT"}(Us||(Us={}));let jF=Jm;function UF(n){"string"==typeof n&&(jF=n.toLowerCase().replace(/_/g,"-"))}function $F(n,e,t){const r=e.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Jb(n,0,t):pr(t[i])}function eg(n,e,t,r,i){const a=e.insertBeforeIndex;if(Array.isArray(a)){let l=r,d=null;if(3&e.type||(d=l,l=i),null!==l&&-1===e.componentOffset)for(let h=1;h1)for(let t=n.length-2;t>=0;t--){const r=n[t];y3(r)||_3(r,e)&&null===Uz(r)&&x3(r,e.index)}}function y3(n){return!(64&n.type)}function _3(n,e){return y3(e)||n.index>e.index}function Uz(n){const e=n.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function x3(n,e){const t=n.insertBeforeIndex;Array.isArray(t)?t[0]=e:(ss($F,eg),n.insertBeforeIndex=e)}function Dv(n,e){const t=n.data[e];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function WF(n,e,t){const r=nk(n,t,64,null,null);return Lx(e,r),r}function zx(n,e){const t=e[n.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function k3(n){return n>>>17}function E3(n){return(131070&n)>>>1}let Mv=0,Tv=0;function S3(n,e,t){const r=n[Kr];switch(t){case Node.COMMENT_NODE:return S_(r,e);case Node.TEXT_NODE:return YC(r,e);case Node.ELEMENT_NODE:return hu(r,e,null)}}let Vx=(n,e,t,r)=>(Tc(!0),S3(n,t,r));function A3(n,e,t,r){const i=t[Kr];let l,a=null;for(let d=0;d>>1,B=e[++d],q=e[++d];dk(i,oi(R,t),null,null,B,q,null)}else switch(h){case Av:const p=e[++d],y=e[++d];if(null===t[y]){os(t[y]=Vx(t,y,p,Node.COMMENT_NODE),t)}break;case Bx:const S=e[++d],R=e[++d];if(null===t[R]){os(t[R]=Vx(t,R,S,Node.ELEMENT_NODE),t)}}}}function JF(n,e,t,r,i){for(let a=0;a>>2;switch(3&y){case 1:const R=t[++p],B=t[++p],q=n.data[S];"string"==typeof q?dk(e[Kr],e[S],null,q,R,h,B):dl(n,q,e,R,h,e[Kr],B,!1);break;case 0:const V=e[S];null!==V&&vi(e[Kr],V,h);break;case 2:eP(n,Dv(n,S),e,h);break;case 3:D3(n,Dv(n,S),r,e)}}}}else{const h=t[a+1];if(h>0&&!(3&~h)){const y=Dv(n,h>>>2);e[y.currentCaseLViewIndex]<0&&D3(n,y,r,e)}}a+=d}}function D3(n,e,t,r){let i=r[e.currentCaseLViewIndex];if(null!==i){let a=Mv;i<0&&(i=r[e.currentCaseLViewIndex]=~i,a=-1),JF(n,r,e.update[i],t,a)}}function eP(n,e,t,r){const i=function nP(n,e){let t=n.cases.indexOf(e);if(-1===t)switch(n.type){case 1:{const r=function qz(n,e){const t=b3(e)(parseInt(n,10)),r=qF[t];return void 0!==r?r:"other"}(e,function HF(){return jF}());t=n.cases.indexOf(r),-1===t&&"other"!==r&&(t=n.cases.indexOf("other"));break}case 0:t=n.cases.indexOf("other")}return-1===t?null:t}(e,r);if(zx(e,t)!==i&&(tP(n,e,t),t[e.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const l=t[e.anchorIdx];l&&A3(n,e.create[i],t,l)}}function tP(n,e,t){let r=zx(e,t);if(null!==r){const i=e.remove[r];for(let a=0;a0){const d=oi(l,t);null!==d&&nv(t[Kr],d)}else tP(n,Dv(n,~l),t)}}}function rP(){const n=[];let t,r,e=-1;function a(d,h){e=0;const p=zx(d,h);r=null!==p?d.remove[p]:Wi}function l(){if(e0)return t[d];{n.push(e,r);const h=~d;return a(t[qn].data[h],t),l()}}return 0===n.length?null:(r=n.pop(),e=n.pop(),l())}return function i(d,h){for(t=h;n.length;)n.pop();return a(d.value,h),l}}const u=/\ufffd(\d+):?\d*\ufffd/gi,C=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,N=/\ufffd(\d+)\ufffd/,$=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ie="\ufffd",xe=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Te=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,qe=/\uE500/g;function Vt(n,e,t,r,i,a){const l=oh(),d=[],h=[],p=[[]],y=[[]];i=function bu(n,e){if(function ta(n){return-1===n}(e))return Es(n);{const t=n.indexOf(`:${e}${ie}`)+2+e.toString().length,r=n.search(new RegExp(`${ie}\\/\\*\\d+:${e}${ie}`));return Es(n.substring(t,r))}}(i,a);const S=function Qe(n){return n.replace(qe," ")}(i).split(Te);for(let R=0;Rt.length&&t.push(h)}return{type:r,mainBinding:i,cases:e,values:t}}function Qr(n){if(!n)return[];let e=0;const t=[],r=[],i=/[{}]/g;let a;for(i.lastIndex=0;a=i.exec(n);){const d=a.index;if("}"==a[0]){if(t.pop(),0==t.length){const h=n.substring(e,d);$.test(h)?r.push(Hc(h)):r.push(h),e=d+1}}else{if(0==t.length){const h=n.substring(e,d);r.push(h),e=d+1}t.push("{")}}const l=n.substring(e);return r.push(l),r}function Hs(n,e,t,r,i,a,l,d,h){const p=[],y=[],S=[];t.cases.push(l),t.create.push(p),t.remove.push(y),t.update.push(S);const B=Bf(on()).getInertBodyElement(d),q=C_(B)||B;return q?Jr(n,e,t,r,i,p,y,S,q,a,h,0):0}function Jr(n,e,t,r,i,a,l,d,h,p,y,S){let R=0,B=h.firstChild;for(;B;){const q=ov(e,r,1,null);switch(B.nodeType){case Node.ELEMENT_NODE:const V=B,ee=V.tagName.toLowerCase();if(LC.hasOwnProperty(ee)){Dd(a,Bx,ee,p,q),e.data[q]=ee;const ce=V.attributes;for(let oe=0;oe>>Us.SHIFT;let S=n[y],R=!1;null===S&&(S=n[y]=Vx(n,y,d,h?Node.COMMENT_NODE:Node.TEXT_NODE),R=Nb()),p&&null!==t&&R&&fh(i,t,S,r,!1)}})(i,h.create,y,S),om(!0)}function Gz(){om(!1)}function Fn(n,e,t,r){const i=rn(),a=$r(),l=no();return oP(a,i,i[Kr],l,n,e,r),Fn}function M3(n,e){const t=no(),r=rn(),i=$r();return oP(i,r,hk(ol(i.data),t,r),t,n,e),M3}function oP(n,e,t,r,i,a,l){const d=Qd(r),p=n.firstCreatePass&&dT(n),y=e[Vi],S=cT(e);let R=!0;if(3&r.type||l){const V=Ns(r,e),ee=l?l(V):V,ne=S.length,he=l?ce=>l(pr(ce[r.index])):r.index;let re=null;if(!l&&d&&(re=function ane(n,e,t,r){const i=n.cleanup;if(null!=i)for(let a=0;ah?d[h]:null}"string"==typeof l&&(a+=2)}return null}(n,e,i,r.index)),null!==re){(re.__ngLastListenerFn__||re).__ngNextListenerFn__=a,re.__ngLastListenerFn__=a,R=!1}else{a=Kz(r,e,y,a,!1);const ce=t.listen(ee,i,a);S.push(a,ce),p&&p.push(i,he,ne,ne+1)}}else a=Kz(r,e,y,a,!1);const B=r.outputs;let q;if(R&&null!==B&&(q=B[i])){const V=q.length;if(V)for(let ee=0;ee-1?il(n.index,e):e);let h=Yz(e,t,r,l),p=a.__ngNextListenerFn__;for(;p;)h=Yz(e,t,p,l)&&h,p=p.__ngNextListenerFn__;return i&&!1===h&&l.preventDefault(),h}}function fn(n=1){return function am(n){return(Zr.lFrame.contextLView=BD(n,Zr.lFrame.contextLView))[Vi]}(n)}function sne(n,e){let t=null;const r=function IN(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let i=0;i(Tc(!0),YC(e[Kr],r));function Xa(n){return _u("",n,""),Xa}function _u(n,e,t){const r=rn(),i=Hm(r,n,e,t);return i!==li&&Ed(r,ws(),i),_u}function sP(n,e,t,r,i){if(n=Sn(n),Array.isArray(n))for(let a=0;a>20;if(df(n)||!n.multi){const B=new Fb(p,i,Ve),q=cP(h,e,i?y:y+R,S);-1===q?(pC(cm(d,l),a,h),lP(a,n,e.length),e.push(h),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),t.push(B),l.push(B)):(t[q]=B,l[q]=B)}else{const B=cP(h,e,y+R,S),q=cP(h,e,y,y+R),V=B>=0&&t[B],ee=q>=0&&t[q];if(i&&!ee||!i&&!V){pC(cm(d,l),a,h);const ne=function Ane(n,e,t,r,i){const a=new Fb(n,t,Ve);return a.multi=[],a.index=e,a.componentProviders=0,SV(a,i,r&&!t),a}(i?Sne:Ene,t.length,i,r,p);!i&&ee&&(t[q].providerFactory=ne),lP(a,n,e.length,0),e.push(h),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),t.push(ne),l.push(ne)}else{lP(a,n,B>-1?B:q,SV(t[i?q:B],p,!i&&r))}!i&&r&&ee&&t[q].componentProviders++}}}function lP(n,e,t,r){const i=df(e),a=function zN(n){return!!n.useClass}(e);if(i||a){const h=(a?Sn(e.useClass):e).prototype.ngOnDestroy;if(h){const p=n.destroyHooks||(n.destroyHooks=[]);if(!i&&e.multi){const y=p.indexOf(t);-1===y?p.push(t,[r,h]):p[y+1].push(r,h)}else p.push(t,h)}}}function SV(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function cP(n,e,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function kne(n,e,t){const r=$r();if(r.firstCreatePass){const i=$a(n);sP(t,r.data,r.blueprint,i,!0),sP(e,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,e)}}class T3{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const t=O2(0,e.type),r=t.length>0?nE([t],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=_n({token:T3,providedIn:"environment",factory:()=>new T3(zt(ns))})}function qr(n){Pl("NgStandalone"),n.getStandaloneInjector=e=>e.get(T3).getOrCreateStandaloneInjector(n)}function I3(n){if("function"==typeof n)return n;const e=Po(n);return e.some(Ao)?()=>e.map(Sn).map(AV):e.map(AV)}function AV(n){return Mk(n)?n.ngModule:n}function N3(n,e,t,r){return DV(rn(),La(),n,e,t,r)}function qx(n,e,t,r,i){return MV(rn(),La(),n,e,t,r,i)}function ME(n,e){const t=n[e];return t===li?void 0:t}function DV(n,e,t,r,i,a){const l=e+t;return da(n,l,i)?Sd(n,l+1,a?r.call(a,i):r(i)):ME(n,l+1)}function MV(n,e,t,r,i,a,l){const d=e+t;return $f(n,d,i,a)?Sd(n,d+2,l?r.call(l,i,a):r(i,a)):ME(n,d+2)}function TV(n,e,t,r,i,a,l,d){const h=e+t;return gx(n,h,i,a,l)?Sd(n,h+3,d?r.call(d,i,a,l):r(i,a,l)):ME(n,h+3)}function IV(n,e,t,r,i,a,l,d,h){const p=e+t;return pc(n,p,i,a,l,d)?Sd(n,p+4,h?r.call(h,i,a,l,d):r(i,a,l,d)):ME(n,p+4)}function NV(n,e,t,r,i,a){let l=e+t,d=!1;for(let h=0;h=0;t--){const r=e[t];if(n===r.name)return r}}(e,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const a=r.factory||(r.factory=ld(r.type));const d=gs(Ve);try{const h=i_(!1),p=a();return i_(h),function une(n,e,t,r){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=r}(t,rn(),i,p),p}finally{gs(d)}}function hP(n,e,t){const r=n+Gr,i=rn(),a=Os(i,r);return TE(i,r)?DV(i,La(),e,a.transform,t,a):a.transform(t)}function TE(n,e){return n[qn].data[e].pure}function O3(n,e){return H_(n,e)}const Vl={\u0275\u0275attribute:vr,\u0275\u0275attributeInterpolate1:function pE(n,e,t,r,i,a){const l=rn(),d=Hm(l,e,t,r);if(d!==li){Cd(_o(),l,n,d,i,a)}return pE},\u0275\u0275attributeInterpolate2:function VI(n,e,t,r,i,a,l,d){const h=rn(),p=$m(h,e,t,r,i,a);if(p!==li){Cd(_o(),h,n,p,l,d)}return VI},\u0275\u0275attributeInterpolate3:function mE(n,e,t,r,i,a,l,d,h,p){const y=rn(),S=Zf(y,e,t,r,i,a,l,d);if(S!==li){Cd(_o(),y,n,S,h,p)}return mE},\u0275\u0275attributeInterpolate4:function qI(n,e,t,r,i,a,l,d,h,p,y,S){const R=rn(),B=Wm(R,e,t,r,i,a,l,d,h,p);if(B!==li){Cd(_o(),R,n,B,y,S)}return qI},\u0275\u0275attributeInterpolate5:function gE(n,e,t,r,i,a,l,d,h,p,y,S,R,B){const q=rn(),V=Gm(q,e,t,r,i,a,l,d,h,p,y,S);if(V!==li){Cd(_o(),q,n,V,R,B)}return gE},\u0275\u0275attributeInterpolate6:function jI(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V){const ee=rn(),ne=Xm(ee,e,t,r,i,a,l,d,h,p,y,S,R,B);if(ne!==li){Cd(_o(),ee,n,ne,q,V)}return jI},\u0275\u0275attributeInterpolate7:function UI(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne){const he=rn(),re=wh(he,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V);if(re!==li){Cd(_o(),he,n,re,ee,ne)}return UI},\u0275\u0275attributeInterpolate8:function HI(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne,he,re){const ce=rn(),pe=Ch(ce,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne);if(pe!==li){Cd(_o(),ce,n,pe,he,re)}return HI},\u0275\u0275attributeInterpolateV:function $I(n,e,t,r){const i=rn(),a=Um(i,e);if(a!==li){Cd(_o(),i,n,a,t,r)}return $I},\u0275\u0275defineComponent:Tr,\u0275\u0275defineDirective:hn,\u0275\u0275defineInjectable:_n,\u0275\u0275defineInjector:Er,\u0275\u0275defineNgModule:$n,\u0275\u0275definePipe:Fa,\u0275\u0275directiveInject:Ve,\u0275\u0275getInheritedFactory:xo,\u0275\u0275inject:zt,\u0275\u0275injectAttribute:vd,\u0275\u0275invalidFactory:O_,\u0275\u0275invalidFactoryDep:xD,\u0275\u0275templateRefExtractor:O3,\u0275\u0275resetView:kn,\u0275\u0275HostDirectivesFeature:function zR(n){const e=t=>{const r=(Array.isArray(n)?n:n()).map(i=>"function"==typeof i?{directive:Sn(i),inputs:Ec,outputs:Ec}:{directive:Sn(i.directive),inputs:cI(i.inputs),outputs:cI(i.outputs)});null===t.hostDirectives?(t.findHostDirectiveDefs=lI,t.hostDirectives=r):t.hostDirectives.unshift(...r)};return e.ngInherit=!0,e},\u0275\u0275NgOnChangesFeature:Ui,\u0275\u0275ProvidersFeature:Ir,\u0275\u0275CopyDefinitionFeature:function LR(n){let t,e=oI(n.type);t=$a(n)?e.\u0275cmp:e.\u0275dir;const r=n;for(const i of PR)r[i]=t[i];if($a(t))for(const i of BR)r[i]=t[i]},\u0275\u0275InheritDefinitionFeature:hr,\u0275\u0275InputTransformsFeature:Gi,\u0275\u0275StandaloneFeature:qr,\u0275\u0275nextContext:fn,\u0275\u0275namespaceHTML:Ib,\u0275\u0275namespaceMathML:function t6(){Zr.lFrame.currentNamespace="math"},\u0275\u0275namespaceSVG:Fs,\u0275\u0275enableBindings:function aC(){Zr.bindingsEnabled=!0},\u0275\u0275disableBindings:function Da(){Zr.bindingsEnabled=!1},\u0275\u0275elementStart:Bt,\u0275\u0275elementEnd:qt,\u0275\u0275element:kr,\u0275\u0275elementContainerStart:DE,\u0275\u0275elementContainerEnd:gu,\u0275\u0275elementContainer:fl,\u0275\u0275pureFunction0:function Tne(n,e,t){const r=La()+n,i=rn();return i[r]===li?Sd(i,r,t?e.call(t):e()):_v(i,r)},\u0275\u0275pureFunction1:N3,\u0275\u0275pureFunction2:qx,\u0275\u0275pureFunction3:function Ine(n,e,t,r,i,a){return TV(rn(),La(),n,e,t,r,i,a)},\u0275\u0275pureFunction4:function Nne(n,e,t,r,i,a,l){return IV(rn(),La(),n,e,t,r,i,a,l)},\u0275\u0275pureFunction5:function One(n,e,t,r,i,a,l,d){const h=La()+n,p=rn(),y=pc(p,h,t,r,i,a);return da(p,h+4,l)||y?Sd(p,h+5,d?e.call(d,t,r,i,a,l):e(t,r,i,a,l)):_v(p,h+5)},\u0275\u0275pureFunction6:function Rne(n,e,t,r,i,a,l,d,h){const p=La()+n,y=rn(),S=pc(y,p,t,r,i,a);return $f(y,p+4,l,d)||S?Sd(y,p+6,h?e.call(h,t,r,i,a,l,d):e(t,r,i,a,l,d)):_v(y,p+6)},\u0275\u0275pureFunction7:function Fne(n,e,t,r,i,a,l,d,h,p){const y=La()+n,S=rn();let R=pc(S,y,t,r,i,a);return gx(S,y+4,l,d,h)||R?Sd(S,y+7,p?e.call(p,t,r,i,a,l,d,h):e(t,r,i,a,l,d,h)):_v(S,y+7)},\u0275\u0275pureFunction8:function Pne(n,e,t,r,i,a,l,d,h,p,y){const S=La()+n,R=rn(),B=pc(R,S,t,r,i,a);return pc(R,S+4,l,d,h,p)||B?Sd(R,S+8,y?e.call(y,t,r,i,a,l,d,h,p):e(t,r,i,a,l,d,h,p)):_v(R,S+8)},\u0275\u0275pureFunctionV:function Bne(n,e,t,r){return NV(rn(),La(),n,e,t,r)},\u0275\u0275getCurrentView:Ai,\u0275\u0275restoreView:Cn,\u0275\u0275listener:Fn,\u0275\u0275projection:rr,\u0275\u0275syntheticHostProperty:Fx,\u0275\u0275syntheticHostListener:M3,\u0275\u0275pipeBind1:hP,\u0275\u0275pipeBind2:function zne(n,e,t,r){const i=n+Gr,a=rn(),l=Os(a,i);return TE(a,i)?MV(a,La(),e,l.transform,t,r,l):l.transform(t,r)},\u0275\u0275pipeBind3:function Vne(n,e,t,r,i){const a=n+Gr,l=rn(),d=Os(l,a);return TE(l,a)?TV(l,La(),e,d.transform,t,r,i,d):d.transform(t,r,i)},\u0275\u0275pipeBind4:function qne(n,e,t,r,i,a){const l=n+Gr,d=rn(),h=Os(d,l);return TE(d,l)?IV(d,La(),e,h.transform,t,r,i,a,h):h.transform(t,r,i,a)},\u0275\u0275pipeBindV:function jne(n,e,t){const r=n+Gr,i=rn(),a=Os(i,r);return TE(i,r)?NV(i,La(),e,a.transform,t,a):a.transform.apply(a,t)},\u0275\u0275projectionDef:Ri,\u0275\u0275hostProperty:js,\u0275\u0275property:En,\u0275\u0275propertyInterpolate:function Zz(n,e,t){return aP(n,"",e,"",t),Zz},\u0275\u0275propertyInterpolate1:aP,\u0275\u0275propertyInterpolate2:function Qz(n,e,t,r,i,a,l){const d=rn(),h=$m(d,e,t,r,i,a);if(h!==li){dl($r(),_o(),d,n,h,d[Kr],l,!1)}return Qz},\u0275\u0275propertyInterpolate3:function Jz(n,e,t,r,i,a,l,d,h){const p=rn(),y=Zf(p,e,t,r,i,a,l,d);if(y!==li){dl($r(),_o(),p,n,y,p[Kr],h,!1)}return Jz},\u0275\u0275propertyInterpolate4:function eV(n,e,t,r,i,a,l,d,h,p,y){const S=rn(),R=Wm(S,e,t,r,i,a,l,d,h,p);if(R!==li){dl($r(),_o(),S,n,R,S[Kr],y,!1)}return eV},\u0275\u0275propertyInterpolate5:function tV(n,e,t,r,i,a,l,d,h,p,y,S,R){const B=rn(),q=Gm(B,e,t,r,i,a,l,d,h,p,y,S);if(q!==li){dl($r(),_o(),B,n,q,B[Kr],R,!1)}return tV},\u0275\u0275propertyInterpolate6:function nV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q){const V=rn(),ee=Xm(V,e,t,r,i,a,l,d,h,p,y,S,R,B);if(ee!==li){dl($r(),_o(),V,n,ee,V[Kr],q,!1)}return nV},\u0275\u0275propertyInterpolate7:function rV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee){const ne=rn(),he=wh(ne,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V);if(he!==li){dl($r(),_o(),ne,n,he,ne[Kr],ee,!1)}return rV},\u0275\u0275propertyInterpolate8:function iV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne,he){const re=rn(),ce=Ch(re,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne);if(ce!==li){dl($r(),_o(),re,n,ce,re[Kr],he,!1)}return iV},\u0275\u0275propertyInterpolateV:function oV(n,e,t){const r=rn(),i=Um(r,e);if(i!==li){dl($r(),_o(),r,n,i,r[Kr],t,!1)}return oV},\u0275\u0275pipe:uP,\u0275\u0275queryRefresh:or,\u0275\u0275queryAdvance:function dne(n=1){Qy(Tb()+n)},\u0275\u0275viewQuery:_i,\u0275\u0275viewQuerySignal:function cne(n,e,t,r){Xk(n,UT(e,t,r))},\u0275\u0275loadQuery:ar,\u0275\u0275contentQuery:ho,\u0275\u0275contentQuerySignal:function lne(n,e,t,r,i){Xk(e,ui(n,t,r,i))},\u0275\u0275reference:Eh,\u0275\u0275classMap:ea,\u0275\u0275classMapInterpolate1:Rx,\u0275\u0275classMapInterpolate2:function CF(n,e,t,r,i){jc(ga,Ad,$m(rn(),n,e,t,r,i),!0)},\u0275\u0275classMapInterpolate3:function kF(n,e,t,r,i,a,l){jc(ga,Ad,Zf(rn(),n,e,t,r,i,a,l),!0)},\u0275\u0275classMapInterpolate4:function o3(n,e,t,r,i,a,l,d,h){jc(ga,Ad,Wm(rn(),n,e,t,r,i,a,l,d,h),!0)},\u0275\u0275classMapInterpolate5:function EF(n,e,t,r,i,a,l,d,h,p,y){jc(ga,Ad,Gm(rn(),n,e,t,r,i,a,l,d,h,p,y),!0)},\u0275\u0275classMapInterpolate6:function SF(n,e,t,r,i,a,l,d,h,p,y,S,R){jc(ga,Ad,Xm(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R),!0)},\u0275\u0275classMapInterpolate7:function AF(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q){jc(ga,Ad,wh(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R,B,q),!0)},\u0275\u0275classMapInterpolate8:function Uc(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee){jc(ga,Ad,Ch(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee),!0)},\u0275\u0275classMapInterpolateV:function a3(n){jc(ga,Ad,Um(rn(),n),!0)},\u0275\u0275styleMap:qc,\u0275\u0275styleMapInterpolate1:function hne(n,e,t){qc(Hm(rn(),n,e,t))},\u0275\u0275styleMapInterpolate2:function fne(n,e,t,r,i){qc($m(rn(),n,e,t,r,i))},\u0275\u0275styleMapInterpolate3:function pne(n,e,t,r,i,a,l){qc(Zf(rn(),n,e,t,r,i,a,l))},\u0275\u0275styleMapInterpolate4:function mne(n,e,t,r,i,a,l,d,h){qc(Wm(rn(),n,e,t,r,i,a,l,d,h))},\u0275\u0275styleMapInterpolate5:function gne(n,e,t,r,i,a,l,d,h,p,y){qc(Gm(rn(),n,e,t,r,i,a,l,d,h,p,y))},\u0275\u0275styleMapInterpolate6:function bne(n,e,t,r,i,a,l,d,h,p,y,S,R){qc(Xm(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R))},\u0275\u0275styleMapInterpolate7:function vne(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q){qc(wh(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R,B,q))},\u0275\u0275styleMapInterpolate8:function yne(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee){qc(Ch(rn(),n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee))},\u0275\u0275styleMapInterpolateV:function _ne(n){qc(Um(rn(),n))},\u0275\u0275styleProp:co,\u0275\u0275stylePropInterpolate1:function aV(n,e,t,r,i){return mc(n,Hm(rn(),e,t,r),i,!1),aV},\u0275\u0275stylePropInterpolate2:function sV(n,e,t,r,i,a,l){return mc(n,$m(rn(),e,t,r,i,a),l,!1),sV},\u0275\u0275stylePropInterpolate3:function lV(n,e,t,r,i,a,l,d,h){return mc(n,Zf(rn(),e,t,r,i,a,l,d),h,!1),lV},\u0275\u0275stylePropInterpolate4:function cV(n,e,t,r,i,a,l,d,h,p,y){return mc(n,Wm(rn(),e,t,r,i,a,l,d,h,p),y,!1),cV},\u0275\u0275stylePropInterpolate5:function dV(n,e,t,r,i,a,l,d,h,p,y,S,R){return mc(n,Gm(rn(),e,t,r,i,a,l,d,h,p,y,S),R,!1),dV},\u0275\u0275stylePropInterpolate6:function uV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q){return mc(n,Xm(rn(),e,t,r,i,a,l,d,h,p,y,S,R,B),q,!1),uV},\u0275\u0275stylePropInterpolate7:function hV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee){return mc(n,wh(rn(),e,t,r,i,a,l,d,h,p,y,S,R,B,q,V),ee,!1),hV},\u0275\u0275stylePropInterpolate8:function fV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne,he){return mc(n,Ch(rn(),e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne),he,!1),fV},\u0275\u0275stylePropInterpolateV:function pV(n,e,t){return mc(n,Um(rn(),e),t,!1),pV},\u0275\u0275classProp:Jn,\u0275\u0275advance:Gt,\u0275\u0275template:sr,\u0275\u0275conditional:yi,\u0275\u0275defer:function JR(n,e,t,r,i,a,l,d,h){const p=rn(),y=$r(),S=n+Gr;if(sr(n,null,0,0),y.firstCreatePass){Pl("NgDefer");const ee={primaryTmplIndex:e,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:a??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:t??null,loadingState:ua.NOT_STARTED,loadingPromise:null,providers:null};h?.(y,ee,d,l),function vI(n,e,t){const r=hl(e);n.data[r]=t}(y,S,ee)}const R=no();bh(p[S],R,p);const q=[null,zl.Initial,null,null,null,null];!function sE(n,e,t){n[qn],n[hl(e)]=t}(p,S,q);const V=()=>bI(q);yx(0,q,()=>_f(p,V)),Xy(p,V)},\u0275\u0275deferWhen:function TI(n){const e=rn();if(da(e,va(),n)){const r=I(null);try{const i=!!n,a=_o(),d=Gf(e,a)[bx];!1===i&&d===zl.Initial?Yf(e,a):!0===i&&(d===zl.Initial||d===zo.Placeholder)&&Kf(e,a)}finally{I(r)}}},\u0275\u0275deferOnIdle:function tF(){RI(wx)},\u0275\u0275deferOnImmediate:function II(){const n=rn(),e=no(),t=n[qn],r=n[Ca],i=Vs(t,e);(!_h(r)||null===i.loadingTmplIndex)&&Yf(n,e),Kf(n,e)},\u0275\u0275deferOnTimer:function NI(n){RI(AI(n))},\u0275\u0275deferOnHover:function iF(n,e){const t=rn(),r=no();Yf(t,r),qm(t,r,n,e,kI,()=>Kf(t,r),0)},\u0275\u0275deferOnInteraction:function aF(n,e){const t=rn(),r=no();Yf(t,r),qm(t,r,n,e,xx,()=>Kf(t,r),0)},\u0275\u0275deferOnViewport:function Ex(n,e){const t=rn(),r=no();Yf(t,r),qm(t,r,n,e,mu,()=>Kf(t,r),0)},\u0275\u0275deferPrefetchWhen:function eF(n){const e=rn();if(da(e,va(),n)){const r=I(null);try{const i=!!n,a=e[qn],l=_o(),d=Vs(a,l);!0===i&&d.loadingState===ua.NOT_STARTED&&Sv(d,e,l)}finally{I(r)}}},\u0275\u0275deferPrefetchOnIdle:function nF(){FI(wx)},\u0275\u0275deferPrefetchOnImmediate:function kx(){const n=rn(),e=no(),r=Vs(n[qn],e);r.loadingState===ua.NOT_STARTED&&Ax(r,n,e)},\u0275\u0275deferPrefetchOnTimer:function rF(n){FI(AI(n))},\u0275\u0275deferPrefetchOnHover:function oF(n,e){const t=rn(),r=no(),a=Vs(t[qn],r);a.loadingState===ua.NOT_STARTED&&qm(t,r,n,e,kI,()=>Sv(a,t,r),1)},\u0275\u0275deferPrefetchOnInteraction:function hE(n,e){const t=rn(),r=no(),a=Vs(t[qn],r);a.loadingState===ua.NOT_STARTED&&qm(t,r,n,e,xx,()=>Sv(a,t,r),1)},\u0275\u0275deferPrefetchOnViewport:function OI(n,e){const t=rn(),r=no(),a=Vs(t[qn],r);a.loadingState===ua.NOT_STARTED&&qm(t,r,n,e,mu,()=>Sv(a,t,r),1)},\u0275\u0275deferEnableTimerScheduling:function QR(n,e,t,r){const i=n.consts;null!=t&&(e.placeholderBlockConfig=gd(i,t)),null!=r&&(e.loadingBlockConfig=gd(i,r)),null===Xf&&(Xf=BI)},\u0275\u0275repeater:rp,\u0275\u0275repeaterCreate:np,\u0275\u0275repeaterTrackByIndex:function IF(n){return n},\u0275\u0275repeaterTrackByIdentity:qs,\u0275\u0275componentInstance:function DF(){return rn()[Ko][Vi]},\u0275\u0275text:xi,\u0275\u0275textInterpolate:Xa,\u0275\u0275textInterpolate1:_u,\u0275\u0275textInterpolate2:function gV(n,e,t,r,i){const a=rn(),l=$m(a,n,e,t,r,i);return l!==li&&Ed(a,ws(),l),gV},\u0275\u0275textInterpolate3:function bV(n,e,t,r,i,a,l){const d=rn(),h=Zf(d,n,e,t,r,i,a,l);return h!==li&&Ed(d,ws(),h),bV},\u0275\u0275textInterpolate4:function vV(n,e,t,r,i,a,l,d,h){const p=rn(),y=Wm(p,n,e,t,r,i,a,l,d,h);return y!==li&&Ed(p,ws(),y),vV},\u0275\u0275textInterpolate5:function yV(n,e,t,r,i,a,l,d,h,p,y){const S=rn(),R=Gm(S,n,e,t,r,i,a,l,d,h,p,y);return R!==li&&Ed(S,ws(),R),yV},\u0275\u0275textInterpolate6:function _V(n,e,t,r,i,a,l,d,h,p,y,S,R){const B=rn(),q=Xm(B,n,e,t,r,i,a,l,d,h,p,y,S,R);return q!==li&&Ed(B,ws(),q),_V},\u0275\u0275textInterpolate7:function xV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q){const V=rn(),ee=wh(V,n,e,t,r,i,a,l,d,h,p,y,S,R,B,q);return ee!==li&&Ed(V,ws(),ee),xV},\u0275\u0275textInterpolate8:function wV(n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee){const ne=rn(),he=Ch(ne,n,e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee);return he!==li&&Ed(ne,ws(),he),wV},\u0275\u0275textInterpolateV:function CV(n){const e=rn(),t=Um(e,n);return t!==li&&Ed(e,ws(),t),CV},\u0275\u0275i18n:function nne(n,e,t){Wz(n,e,t),Gz()},\u0275\u0275i18nAttributes:function rne(n,e){const t=$r(),r=gd(t.consts,e);!function Rn(n,e,t){const i=no().index,a=[];if(n.firstCreatePass&&null===n.data[e]){for(let l=0;l0){const r=n.data[t];JF(n,e,Array.isArray(r)?r:r.update,sc()-Tv-1,Mv)}Mv=0,Tv=0}($r(),rn(),n+Gr)},\u0275\u0275i18nPostprocess:function one(n,e={}){return function tne(n,e={}){let t=n;if(ng.test(n)){const r={},i=[Iv];t=t.replace(iP,(a,l,d)=>{const h=l||d,p=r[h]||[];if(p.length||(h.split("|").forEach(V=>{const ee=V.match(ene),ne=ee?parseInt(ee[1],10):Iv,he=Jte.test(V);p.push([ne,he,V])}),r[h]=p),!p.length)throw new Error(`i18n postprocess: unmatched placeholder - ${h}`);const y=i[i.length-1];let S=0;for(let V=0;Ve.hasOwnProperty(a)?`${i}${e[a]}${h}`:r),t=t.replace(Zte,(r,i)=>e.hasOwnProperty(i)?e[i]:r),t=t.replace(Qte,(r,i)=>{if(e.hasOwnProperty(i)){const a=e[i];if(!a.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return a.shift()}return r})),t}(n,e)},\u0275\u0275resolveWindow:function zf(n){return n.ownerDocument.defaultView},\u0275\u0275resolveDocument:Vf,\u0275\u0275resolveBody:GC,\u0275\u0275setComponentScope:function Dne(n,e,t){const r=n.\u0275cmp;r.directiveDefs=Ly(e,!1),r.pipeDefs=Ly(t,!0)},\u0275\u0275setNgModuleScope:function Mne(n,e){return Br(()=>{const t=ys(n,!0);t.declarations=I3(e.declarations||Wi),t.imports=I3(e.imports||Wi),t.exports=I3(e.exports||Wi),e.bootstrap&&(t.bootstrap=I3(e.bootstrap)),vv.registerNgModule(n,e)})},\u0275\u0275registerNgModuleType:Qk,\u0275\u0275getComponentDepsFactory:function Une(n,e){return()=>{try{return vv.getComponentDependencies(n,e).dependencies}catch(t){throw console.error(`Computing dependencies in local compilation mode for the component "${n.name}" failed with the exception:`,t),t}}},\u0275setClassDebugInfo:function Hne(n,e){const t=Mi(n);null!==t&&(t.debugInfo=e)},\u0275\u0275sanitizeHtml:function K6(n){const e=Fl();return e?xM(e.sanitize(za.HTML,n)||""):wd(n,"HTML")?xM(cl(n)):DM(on(),ni(n))},\u0275\u0275sanitizeStyle:function Z6(n){const e=Fl();return e?e.sanitize(za.STYLE,n)||"":wd(n,"Style")?cl(n):ni(n)},\u0275\u0275sanitizeResourceUrl:Q6,\u0275\u0275sanitizeScript:function Am(n){const e=Fl();if(e)return x_(e.sanitize(za.SCRIPT,n)||"");if(wd(n,"Script"))return x_(cl(n));throw new At(905,!1)},\u0275\u0275sanitizeUrl:k_,\u0275\u0275sanitizeUrlOrResourceUrl:function Si(n,e,t){return function TM(n,e){return"src"===e&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===e&&("base"===n||"link"===n)?Q6:k_}(e,t)(n)},\u0275\u0275trustConstantHtml:function J6(n){return Cm(n[0])},\u0275\u0275trustConstantResourceUrl:function eO(n){return function S6(n){return PC()?.createScriptURL(n)||n}(n[0])},\u0275\u0275validateIframeAttribute:function RR(n,e,t){const r=rn(),i=_o(),a=Ns(i,r);if(2===i.type&&"iframe"===e.toLowerCase()){const l=a;l.src="",l.srcdoc=Cm(""),nv(r[Kr],l);throw new At(-910,!1)}return n},forwardRef:Gn,resolveForwardRef:Sn,\u0275\u0275twoWayProperty:function kV(n,e,t){$k(e)&&(e=e());const r=rn();if(da(r,va(),e)){dl($r(),_o(),r,n,e,r[Kr],t,!1)}return kV},\u0275\u0275twoWayBindingSet:function Cne(n,e){const t=$k(n);return t&&n.set(e),t},\u0275\u0275twoWayListener:function EV(n,e){const t=rn(),r=$r(),i=no();return oP(r,t,t[Kr],i,n,e),EV},\u0275\u0275InputFlags:Ft};let jx=null;const IE=[];let fP=!1;function OV(n){return Array.isArray(n)?n.every(OV):!!Sn(n)}function Yne(n,e={}){(function Kne(n,e,t=!1){const r=Po(e.declarations||Wi);let i=null;Object.defineProperty(n,bD,{configurable:!0,get:()=>(null===i&&(i=Ho().compileNgModule(Vl,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:Po(e.bootstrap||Wi).map(Sn),declarations:r.map(Sn),imports:Po(e.imports||Wi).map(Sn).map(BV),exports:Po(e.exports||Wi).map(Sn).map(BV),schemas:e.schemas?Po(e.schemas):null,id:e.id||null}),i.schemas||(i.schemas=[])),i)});let a=null;Object.defineProperty(n,Hd,{get:()=>{if(null===a){const d=Ho();a=d.compileFactory(Vl,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:Af(n),target:d.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let l=null;Object.defineProperty(n,Gu,{get:()=>{if(null===l){const d={name:n.name,type:n,providers:e.providers||Wi,imports:[(e.imports||Wi).map(Sn),(e.exports||Wi).map(Sn)]};l=Ho().compileInjector(Vl,`ng:///${n.name}/\u0275inj.js`,d)}return l},configurable:!1})})(n,e),void 0!==e.id&&Qk(n,e.id),function Gne(n,e){IE.push({moduleType:n,ngModule:e})}(n,e)}function Jne(n,e){const t=Po(e.declarations||Wi),r=Ux(n);t.forEach(i=>{if((i=Sn(i)).hasOwnProperty(Xu)){PV(Mi(i),r)}else!i.hasOwnProperty(C2)&&!i.hasOwnProperty(Qh)&&(i.ngSelectorScope=n)})}function PV(n,e){n.directiveDefs=()=>Array.from(e.compilation.directives).map(t=>t.hasOwnProperty(Xu)?Mi(t):Pa(t)).filter(t=>!!t),n.pipeDefs=()=>Array.from(e.compilation.pipes).map(t=>sa(t)),n.schemas=e.schemas,n.tView=null}function Ux(n){if(jf(n)){if(J_){const e=vv.getNgModuleScope(n);return{schemas:ys(n,!0).schemas||null,...e}}return function ere(n){const e=ys(n,!0);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;const t={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Jo(e.imports).forEach(r=>{const i=Ux(r);i.exported.directives.forEach(a=>t.compilation.directives.add(a)),i.exported.pipes.forEach(a=>t.compilation.pipes.add(a))}),Jo(e.declarations).forEach(r=>{sa(r)?t.compilation.pipes.add(r):t.compilation.directives.add(r)}),Jo(e.exports).forEach(r=>{const i=r;if(jf(i)){const a=Ux(i);a.exported.directives.forEach(l=>{t.compilation.directives.add(l),t.exported.directives.add(l)}),a.exported.pipes.forEach(l=>{t.compilation.pipes.add(l),t.exported.pipes.add(l)})}else sa(i)?t.exported.pipes.add(i):t.exported.directives.add(i)}),e.transitiveCompileScopes=t,t}(n)}if(Sl(n)){if(null!==(Mi(n)||Pa(n)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([n]),pipes:new Set}};if(null!==sa(n))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([n])}}}throw new Error(`${n.name} does not have a module def (\u0275mod property)`)}function BV(n){return Mk(n)?n.ngModule:n}let gP=0;function tre(n,e){let t=null;(function DR(n,e){nI(e)&&(yh.set(n,e),fc.add(n))})(n,e),VV(n,e),Object.defineProperty(n,Xu,{get:()=>{if(null===t){const r=Ho();if(nI(e)){const p=[`Component '${n.name}' is not resolved:`];throw e.templateUrl&&p.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&p.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),e.styleUrl&&p.push(` - styleUrl: ${e.styleUrl}`),p.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(p.join("\n"))}const i=function Wne(){return jx}();let a=e.preserveWhitespaces;void 0===a&&(a=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let l=e.encapsulation;void 0===l&&(l=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:Ei.Emulated);const d=e.templateUrl||`ng:///${n.name}/template.html`,h={...qV(n,e),typeSourceSpan:r.createParseSourceSpan("Component",n.name,d),template:e.template||"",preserveWhitespaces:a,styles:"string"==typeof e.styles?[e.styles]:e.styles||Wi,animations:e.animations,declarations:[],changeDetection:e.changeDetection,encapsulation:l,interpolation:e.interpolation,viewProviders:e.viewProviders||null};gP++;try{if(h.usesInheritance&&jV(n),t=r.compileComponent(Vl,d,h),e.standalone){const p=Po(e.imports||Wi),{directiveDefs:y,pipeDefs:S}=function nre(n,e){let t=null,r=null;return{directiveDefs:()=>{if(J_)return bv(n)?[...vv.getStandaloneComponentScope(n,e).compilation.directives].map(d=>Mi(d)||Pa(d)).filter(d=>null!==d):[];if(null===t){t=[Mi(n)];const l=new Set([n]);for(const d of e){const h=Sn(d);if(!l.has(h))if(l.add(h),ys(h)){const p=Ux(h);for(const y of p.exported.directives){const S=Mi(y)||Pa(y);S&&!l.has(y)&&(l.add(y),t.push(S))}}else{const p=Mi(h)||Pa(h);p&&t.push(p)}}}return t},pipeDefs:()=>{if(J_)return bv(n)?[...vv.getStandaloneComponentScope(n,e).compilation.pipes].map(d=>sa(d)).filter(d=>null!==d):[];if(null===r){r=[];const l=new Set;for(const d of e){const h=Sn(d);if(!l.has(h))if(l.add(h),ys(h)){const p=Ux(h);for(const y of p.exported.pipes){const S=sa(y);S&&!l.has(y)&&(l.add(y),r.push(S))}}else{const p=sa(h);p&&r.push(p)}}}return r}}}(n,p);t.directiveDefs=y,t.pipeDefs=S,t.dependencies=()=>p.map(Sn)}}finally{gP--}if(0===gP&&function Xne(){if(!fP){fP=!0;try{for(let n=IE.length-1;n>=0;n--){const{moduleType:e,ngModule:t}=IE[n];t.declarations&&t.declarations.every(OV)&&(IE.splice(n,1),Jne(e,t))}}finally{fP=!1}}}(),function rre(n){return void 0!==n.ngSelectorScope}(n)){const p=Ux(n.ngSelectorScope);PV(t,p)}if(e.schemas){if(!e.standalone)throw new Error(`The 'schemas' was specified for the ${so(n)} but is only valid on a component that is standalone.`);t.schemas=e.schemas}else e.standalone&&(t.schemas=[])}return t},configurable:!1})}function LV(n,e){let t=null;VV(n,e||{}),Object.defineProperty(n,C2,{get:()=>{if(null===t){const r=zV(n,e||{});t=Ho().compileDirective(Vl,r.sourceMapUrl,r.metadata)}return t},configurable:!1})}function zV(n,e){const t=n&&n.name,r=`ng:///${t}/\u0275dir.js`,i=Ho(),a=qV(n,e);return a.typeSourceSpan=i.createParseSourceSpan("Directive",t,r),a.usesInheritance&&jV(n),{metadata:a,sourceMapUrl:r}}function VV(n,e){let t=null;Object.defineProperty(n,Hd,{get:()=>{if(null===t){const r=zV(n,e),i=Ho();t=i.compileFactory(Vl,`ng:///${n.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Af(n),target:i.FactoryTarget.Directive})}return t},configurable:!1})}function ire(n){return Object.getPrototypeOf(n.prototype)===Object.prototype}function qV(n,e){const t=zb(),r=t.ownPropMetadata(n);return{name:n.name,type:n,selector:void 0!==e.selector?e.selector:null,host:e.host||Ec,propMetadata:r,inputs:e.inputs||Wi,outputs:e.outputs||Wi,queries:UV(n,r,HV),lifecycle:{usesOnChanges:t.hasLifecycleHook(n,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!ire(n),exportAs:sre(e.exportAs),providers:e.providers||null,viewQueries:UV(n,r,$V),isStandalone:!!e.standalone,isSignal:!!e.signals,hostDirectives:e.hostDirectives?.map(i=>"function"==typeof i?{directive:i}:i)||null}}function jV(n){const e=Object.prototype;let t=Object.getPrototypeOf(n.prototype).constructor;for(;t&&t!==e;)!Pa(t)&&!Mi(t)&&cre(t)&&LV(t,null),t=Object.getPrototypeOf(t)}function ore(n){return"string"==typeof n?GV(n):Sn(n)}function are(n,e){return{propertyName:n,predicate:ore(e.selector),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static,emitDistinctChangesOnly:!!e.emitDistinctChangesOnly,isSignal:!!e.isSignal}}function UV(n,e,t){const r=[];for(const i in e)if(e.hasOwnProperty(i)){const a=e[i];a.forEach(l=>{if(t(l)){if(!l.selector)throw new Error(`Can't construct a query for the property "${i}" of "${so(n)}" since the query selector wasn't defined.`);if(a.some(WV))throw new Error("Cannot combine @Input decorators with query decorators");r.push(are(i,l))}})}return r}function sre(n){return void 0===n?null:GV(n)}function HV(n){const e=n.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function $V(n){const e=n.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function WV(n){return"Input"===n.ngMetadataName}function GV(n){return n.split(",").map(e=>e.trim())}const lre=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function cre(n){const e=zb();if(lre.some(r=>e.hasLifecycleHook(n,r)))return!0;const t=e.propMetadata(n);for(const r in t){const i=t[r];for(let a=0;an,void 0,void 0,(n,e)=>LV(n,e)),qa=ko("Component",(n={})=>({changeDetection:sf.Default,...n}),bP,void 0,(n,e)=>tre(n,e)),ha=(ko("Pipe",n=>({pure:!0,...n}),void 0,void 0,(n,e)=>function dre(n,e){let t=null,r=null;Object.defineProperty(n,Hd,{get:()=>{if(null===r){const i=XV(n,e),a=Ho(i.type);r=a.compileFactory(Vl,`ng:///${i.name}/\u0275fac.js`,{name:i.name,type:i.type,typeArgumentCount:0,deps:Af(n),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(n,Qh,{get:()=>{if(null===t){const i=XV(n,e);t=Ho(i.type).compilePipe(Vl,`ng:///${i.name}/\u0275pipe.js`,i)}return t},configurable:!1})}(n,e)),bi("Input",n=>n?"string"==typeof n?{alias:n}:n:{})),rg=bi("Output",n=>({alias:n})),ure=(bi("HostBinding",n=>({hostPropertyName:n})),bi("HostListener",(n,e)=>({eventName:n,args:e}))),hre=ko("NgModule",n=>n,void 0,void 0,(n,e)=>Yne(n,e));class Nv{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}new Nv("17.3.12");class Ov{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(t){return new(t||Ov)};static#t=this.\u0275prov=_n({token:Ov,factory:Ov.\u0275fac,providedIn:"platform"})}new class fre{constructor(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}reset(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}};const JV=new pn(""),P3=new pn("");class Rv{constructor(e,t,r){this._ngZone=e,this.registry=t,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,yP||(function Lre(n){yP=n}(r),r.addToWindow(t)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{On.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,r){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==i),e()},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:r})}whenStable(e,t,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,t,r){return[]}static#e=this.\u0275fac=function(t){return new(t||Rv)(zt(On),zt(Fv),zt(P3))};static#t=this.\u0275prov=_n({token:Rv,factory:Rv.\u0275fac})}class Fv{constructor(){this._applications=new Map}registerApplication(e,t){this._applications.set(e,t)}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,t=!0){return yP?.findTestabilityInTree(this,e,t)??null}static#e=this.\u0275fac=function(t){return new(t||Fv)};static#t=this.\u0275prov=_n({token:Fv,factory:Fv.\u0275fac,providedIn:"platform"})}let yP;function B3(n){return!!n&&"function"==typeof n.then}function eq(n){return!!n&&"function"==typeof n.subscribe}const tq=new pn("");class Pv{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.appInits=xn(tq,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const i=r();if(B3(i))e.push(i);else if(eq(i)){const a=new Promise((l,d)=>{i.subscribe({complete:l,error:d})});e.push(a)}}const t=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{t()}).catch(r=>{this.reject(r)}),0===e.length&&t(),this.initialized=!0}static#e=this.\u0275fac=function(t){return new(t||Pv)};static#t=this.\u0275prov=_n({token:Pv,factory:Pv.\u0275fac,providedIn:"root"})}const nq=new pn("");function rq(){!function F(n){de=n}(()=>{throw new At(600,!1)})}function iq(n,e,t){try{const r=t();return B3(r)?r.catch(i=>{throw e.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}function oq(n,e){return Array.isArray(e)?e.reduce(oq,n):{...n,...e}}class gc{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xn(Eo),this.afterRenderEffectManager=xn(zc),this.externalTestViews=new Set,this.beforeRender=new ln,this.afterTick=new ln,this.componentTypes=[],this.components=[],this.isStable=xn(Ll).hasPendingTasks.pipe(kt(e=>!e)),this._injector=xn(ns)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,t){const r=e instanceof wk;if(!this._injector.get(Pv).done){!r&&Sl(e);throw new At(405,!1)}let a;a=r?e:this._injector.get(fu).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const l=function zre(n){return n.isBoundToModule}(a)?void 0:this._injector.get(Uf),d=t||a.selector,h=a.create(di.NULL,[],d,l),p=h.location.nativeElement,y=h.injector.get(JV,null);return y?.registerApplication(p),h.onDestroy(()=>{this.detachView(h.hostView),L3(this.components,h),y?.unregisterApplication(p)}),this._loadComponent(h),h}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new At(101,!1);const t=I(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,I(t)}}detectChangesInAttachedViews(e){let t=0;const r=this.afterRenderEffectManager;for(;;){if(t===hT)throw new At(103,!1);if(e){const i=0===t;this.beforeRender.next(i);for(let{_lView:a,notifyErrorHandler:l}of this._views)qre(a,i,l)}if(t++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>_P(i))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>_P(i))))break}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;L3(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const t=this._injector.get(nq,[]);[...this._bootstrapListeners,...t].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>L3(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new At(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(t){return new(t||gc)};static#t=this.\u0275prov=_n({token:gc,factory:gc.\u0275fac,providedIn:"root"})}function L3(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function qre(n,e,t){!e&&!_P(n)||function jre(n,e,t){let r;t?(r=0,n[Dr]|=1024):r=64&n[Dr]?0:1,j_(n,e,r)}(n,t,e)}function _P(n){return rC(n)}class Ure{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}class Bv{compileModuleSync(e){return new ux(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const t=this.compileModuleSync(e),i=Jo(ys(e).declarations).reduce((a,l)=>{const d=Mi(l);return d&&a.push(new ca(d)),a},[]);return new Ure(t,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(t){return new(t||Bv)};static#t=this.\u0275prov=_n({token:Bv,factory:Bv.\u0275fac,providedIn:"root"})}const V3=new pn("");function $re(n,e,t){const r=new ux(t);if(typeof ngJitMode<"u"&&!ngJitMode)return Promise.resolve(r);const i=n.get(V3,[]).concat(e);if(function $ne(n){null!==jx&&(n.defaultEncapsulation!==jx.defaultEncapsulation||n.preserveWhitespaces!==jx.preserveWhitespaces)||(jx=n)}({defaultEncapsulation:aq(i.map(p=>p.defaultEncapsulation)),preserveWhitespaces:aq(i.map(p=>p.preserveWhitespaces))}),function TR(){return 0===yh.size}())return Promise.resolve(r);const a=i.flatMap(p=>p.providers??[]);if(0===a.length)return Promise.resolve(r);const l=Ho(),h=di.create({providers:a}).get(l.ResourceLoader);return Zk(p=>Promise.resolve(h.get(p))).then(()=>r)}function aq(n){for(let e=n.length-1;e>=0;e--)if(void 0!==n[e])return n[e]}class OE{constructor(){this.zone=xn(On),this.applicationRef=xn(gc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||OE)};static#t=this.\u0275prov=_n({token:OE,factory:OE.\u0275fac,providedIn:"root"})}new pn("");function sq(n){return[{provide:On,useFactory:n},{provide:$d,multi:!0,useFactory:()=>{const e=xn(OE,{optional:!0});return()=>e.initialize()}},{provide:$d,multi:!0,useFactory:()=>{const e=xn(RE);return()=>{e.initialize()}}},{provide:Eo,useFactory:Wre}]}function Wre(){const n=xn(On),e=xn(wo);return t=>n.runOutsideAngular(()=>e.handleError(t))}function lq(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}class RE{constructor(){this.subscription=new ke,this.initialized=!1,this.zone=xn(On),this.pendingTasks=xn(Ll)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{On.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{On.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||RE)};static#t=this.\u0275prov=_n({token:RE,factory:RE.\u0275fac,providedIn:"root"})}const Sh=new pn("",{providedIn:"root",factory:()=>xn(Sh,ji.Optional|ji.SkipSelf)||function Xre(){return typeof $localize<"u"&&$localize.locale||Jm}()}),Yre=new pn("",{providedIn:"root",factory:()=>"USD"});new pn(""),new pn("");var cq;!function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(cq||(cq={}));const xP=new pn("");class Hx{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const r=function Ak(n="zone.js",e){return"noop"===n?new MT:"zone.js"===n?new On(e):n}(t?.ngZone,lq({eventCoalescing:t?.ngZoneEventCoalescing,runCoalescing:t?.ngZoneRunCoalescing}));return r.run(()=>{const i=function uI(n,e,t){return new dx(n,e,t)}(e.moduleType,this.injector,sq(()=>r)),a=i.injector.get(wo,null);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{a.handleError(d)}});i.onDestroy(()=>{L3(this._modules,i),l.unsubscribe()})}),iq(a,r,()=>{const l=i.injector.get(Pv);return l.runInitializers(),l.donePromise.then(()=>(UF(i.injector.get(Sh,Jm)||Jm),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const r=oq({},t);return $re(this.injector,r,e).then(i=>this.bootstrapModuleFactory(i,r))}_moduleDoBootstrap(e){const t=e.injector.get(gc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new At(-403,!1);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new At(404,!1);this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t());const e=this._injector.get(xP,null);e&&(e.forEach(t=>t()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(t){return new(t||Hx)(zt(di))};static#t=this.\u0275prov=_n({token:Hx,factory:Hx.\u0275fac,providedIn:"platform"})}let ig=null;const dq=new pn("");function q3(n,e,t=[]){const r=`Platform: ${e}`,i=new pn(r);return(a=[])=>{let l=wP();if(!l||l.injector.get(dq,!1)){const d=[...t,...a,{provide:i,useValue:!0}];n?n(d):function Kre(n){if(ig&&!ig.get(dq,!1))throw new At(400,!1);rq(),ig=n;const e=n.get(Hx);return hq(n),e}(uq(d,r))}return function Zre(n){const e=wP();if(!e)throw new At(401,!1);return e}()}}function uq(n=[],e){return di.create({name:e,providers:[{provide:gb,useValue:"platform"},{provide:xP,useValue:new Set([()=>ig=null])},...n]})}function wP(){return ig?.get(Hx)??null}function hq(n){n.get(ru,null)?.forEach(t=>t())}class mo{static#e=this.__NG_ELEMENT_ID__=Jre}function Jre(n){return function eie(n,e,t){if(ac(n)&&!t){const r=il(n.index,e);return new Nm(r,r)}if(47&n.type){const r=e[Ko];return new Nm(r,e)}return null}(no(),rn(),!(16&~n))}class bq{constructor(){}supports(e){return Hf(e)}create(e){return new oie(e)}}const iie=(n,e)=>e;class oie{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||iie}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,i=0,a=null;for(;t||r;){const l=!r||t&&t.currentIndex{l=this._trackByFn(i,d),null!==t&&Object.is(t.trackById,l)?(r&&(t=this._verifyReinsertion(t,d,l,i)),Object.is(t.item,d)||this._addIdentityChange(t,d)):(t=this._mismatch(t,d,l,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,i){let a;return null===e?a=this._itTail:(a=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,a,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,a,i)):e=this._addAfter(new aie(t,r),a,i),e}_verifyReinsertion(e,t,r,i){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?e=this._reinsertAfter(a,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,a=e._nextRemoved;return null===i?this._removalsHead=a:i._nextRemoved=a,null===a?this._removalsTail=i:a._prevRemoved=i,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new vq),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new vq),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}}class aie{constructor(e,t){this.item=e,this.trackById=t,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 sie{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class vq{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new sie,this.map.set(t,r)),r.add(e)}get(e,t){const r=e,i=this.map.get(r);return i?i.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yq(n,e,t){const r=n.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const a=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,a)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;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(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,t);const a=i._prev,l=i._next;return a&&(a._next=l),l&&(l._prev=a),i._next=null,i._prev=null,i}const r=new cie(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class cie{constructor(e){this.key=e,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 xq(){return new Ah([new bq])}class Ah{static#e=this.\u0275prov=_n({token:Ah,providedIn:"root",factory:xq});constructor(e){this.factories=e}static create(e,t){if(null!=t){const r=t.factories.slice();e=e.concat(r)}return new Ah(e)}static extend(e){return{provide:Ah,useFactory:t=>Ah.create(e,t||xq()),deps:[[Ah,new sd,new El]]}}find(e){const t=this.factories.find(r=>r.supports(e));if(null!=t)return t;throw new At(901,!1)}}function wq(){return new Dh([new _q])}class Dh{static#e=this.\u0275prov=_n({token:Dh,providedIn:"root",factory:wq});constructor(e){this.factories=e}static create(e,t){if(t){const r=t.factories.slice();e=e.concat(r)}return new Dh(e)}static extend(e){return{provide:Dh,useFactory:t=>Dh.create(e,t||wq()),deps:[[Dh,new sd,new El]]}}find(e){const t=this.factories.find(r=>r.supports(e));if(t)return t;throw new At(901,!1)}}const die=[new _q],uie=[new bq],Cq=(new Ah(uie),new Dh(die),q3(null,"core",[]));class FE{constructor(e){}static#e=this.\u0275fac=function(t){return new(t||FE)(zt(gc))};static#t=this.\u0275mod=$n({type:FE});static#n=this.\u0275inj=Er({})}class G3{constructor(){this.window=null,this.observer=null,this.options=xn(hM),this.ngZone=xn(On)}start(){if(typeof PerformanceObserver>"u"||this.options?.disableImageSizeWarning&&this.options?.disableImageLazyLoadWarning)return;this.observer=this.initPerformanceObserver();const e=on(),t=e.defaultView;if(typeof t<"u"){this.window=t;const r=()=>{setTimeout(this.scanImages.bind(this),200)};this.ngZone.runOutsideAngular(()=>{"complete"===e.readyState?r():this.window?.addEventListener("load",r,{once:!0})})}}ngOnDestroy(){this.observer?.disconnect()}initPerformanceObserver(){if(typeof PerformanceObserver>"u")return null;const e=new PerformanceObserver(t=>{const r=t.getEntries();if(0===r.length)return;const a=r[r.length-1].element?.src??"";a.startsWith("data:")||a.startsWith("blob:")||(this.lcpImageUrl=a)});return e.observe({type:"largest-contentful-paint",buffered:!0}),e}scanImages(){const e=on().querySelectorAll("img");let t,r=!1;e.forEach(i=>{if(!this.options?.disableImageSizeWarning)for(const a of e)!a.getAttribute("ng-img")&&this.isOversized(a)&&Eie(a.src);!this.options?.disableImageLazyLoadWarning&&this.lcpImageUrl&&i.src===this.lcpImageUrl&&(t=!0,("lazy"!==i.loading||i.getAttribute("ng-img"))&&(r=!0))}),t&&!r&&this.lcpImageUrl&&!this.options?.disableImageLazyLoadWarning&&function kie(n){console.warn(sn(-913,`An image with src ${n} is the Largest Contentful Paint (LCP) element but was given a "loading" value of "lazy", which can negatively impact application loading performance. This warning can be addressed by changing the loading value of the LCP image to "eager", or by using the NgOptimizedImage directive's prioritization utilities. For more information about addressing or disabling this warning, see https://angular.io/errors/NG0913`))}(this.lcpImageUrl)}isOversized(e){if(!this.window)return!1;const t=this.window.getComputedStyle(e);let r=parseFloat(t.getPropertyValue("width")),i=parseFloat(t.getPropertyValue("height"));const a=t.getPropertyValue("box-sizing");if("cover"===t.getPropertyValue("object-fit"))return!1;if("border-box"===a){const B=t.getPropertyValue("padding-top"),q=t.getPropertyValue("padding-right"),V=t.getPropertyValue("padding-bottom"),ee=t.getPropertyValue("padding-left");r-=parseFloat(q)+parseFloat(ee),i-=parseFloat(B)+parseFloat(V)}const d=e.naturalWidth,h=e.naturalHeight,p=this.window.devicePixelRatio*r,y=this.window.devicePixelRatio*i;return d-p>=1200||h-y>=1200}static#e=this.\u0275fac=function(t){return new(t||G3)};static#t=this.\u0275prov=_n({token:G3,factory:G3.\u0275fac,providedIn:"root"})}function Eie(n){console.warn(sn(-913,`An image with src ${n} has intrinsic file dimensions much larger than its rendered size. This can negatively impact application loading performance. For more information about addressing or disabling this warning, see https://angular.io/errors/NG0913`))}class LE{constructor(){this.appRef=xn(gc),this.taskService=xn(Ll),this.pendingRenderTaskId=null,this.shouldRefreshViews=!1}notify(e=0){this.shouldRefreshViews||=0===e,null===this.pendingRenderTaskId&&(this.pendingRenderTaskId=this.taskService.add(),this.raceTimeoutAndRequestAnimationFrame())}raceTimeoutAndRequestAnimationFrame(){var e=this;return xt(function*(){const t=new Promise(i=>setTimeout(i)),r="function"==typeof nt.requestAnimationFrame?new Promise(i=>requestAnimationFrame(()=>i())):null;yield Promise.race([t,r]),e.tick()})()}tick(){try{this.appRef.destroyed||this.appRef._tick(this.shouldRefreshViews)}finally{this.shouldRefreshViews=!1;const e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static#e=this.\u0275fac=function(t){return new(t||LE)};static#t=this.\u0275prov=_n({token:LE,factory:LE.\u0275fac,providedIn:"root"})}function fr(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function cs(n,e=NaN){return isNaN(parseFloat(n))||isNaN(Number(n))?e:Number(n)}function $q(n){const e=I(null);try{return n()}finally{I(e)}}const Vie=new pn("",{providedIn:"root",factory:()=>xn(MP)});class MP{static#e=this.\u0275prov=_n({token:MP,providedIn:"root",factory:()=>new qie})}class qie{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=xn(Ll),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(e){const t=e.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(const[e,t]of this.queues)null===e?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(const t of e)e.delete(t),this.queuedEffectCount--,t.run()}}class jie{constructor(e,t,r,i,a,l){this.scheduler=e,this.effectFn=t,this.creationZone=r,this.injector=a,this.watcher=te(d=>this.runEffect(d),()=>this.schedule(),l),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(t){this.injector.get(wo,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function Wq(n,e){Pl("NgSignals"),!e?.injector&&xb();const t=e?.injector??xn(di),r=!0!==e?.manualCleanup?t.get(Nl):null,i=new jie(t.get(Vie),n,typeof Zone>"u"?null:Zone.current,r,t,e?.allowSignalWrites??!1),a=t.get(mo,null,{optional:!0});return a&&8&a._lView[Dr]?(a._lView[qy]??=[]).push(i.watcher.notify):i.watcher.notify(),i}var Wx=mt(9837);let Gq=null;function op(){return Gq}class Hie{}class TP{static#e=this.\u0275fac=function(t){return new(t||TP)};static#t=this.\u0275prov=_n({token:TP,factory:()=>window.navigation,providedIn:"platform"})}const Mr=new pn("");class Gx{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(t){return new(t||Gx)};static#t=this.\u0275prov=_n({token:Gx,factory:()=>xn(zE),providedIn:"platform"})}new pn("");class zE extends Gx{constructor(){super(),this._doc=xn(Mr),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return op().getBaseHref(this._doc)}onPopState(e){const t=op().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=op().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.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,t,r){this._history.pushState(e,t,r)}replaceState(e,t,r){this._history.replaceState(e,t,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(t){return new(t||zE)};static#t=this.\u0275prov=_n({token:zE,factory:()=>new zE,providedIn:"platform"})}function IP(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Xq(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length,r=t-("/"===n[t-1]?1:0);return n.slice(0,r)+n.slice(t)}function ap(n){return n&&"?"!==n[0]?"?"+n:n}class zv{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(t){return new(t||zv)};static#t=this.\u0275prov=_n({token:zv,factory:()=>xn(VE),providedIn:"root"})}const Yq=new pn("");class VE extends zv{constructor(e,t){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??xn(Mr).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 IP(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+ap(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${t}${r}`:t}pushState(e,t,r,i){const a=this.prepareExternalUrl(r+ap(i));this._platformLocation.pushState(e,t,a)}replaceState(e,t,r,i){const a=this.prepareExternalUrl(r+ap(i));this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(t){return new(t||VE)(zt(Gx),zt(Yq,8))};static#t=this.\u0275prov=_n({token:VE,factory:VE.\u0275fac,providedIn:"root"})}class K3 extends zv{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}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){const t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=IP(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,r,i){let a=this.prepareExternalUrl(r+ap(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,t,a)}replaceState(e,t,r,i){let a=this.prepareExternalUrl(r+ap(i));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(t){return new(t||K3)(zt(Gx),zt(Yq,8))};static#t=this.\u0275prov=_n({token:K3,factory:K3.\u0275fac})}class Vv{constructor(e){this._subject=new cn,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const t=this._locationStrategy.getBaseHref();this._basePath=function Gie(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(Xq(Kq(t))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+ap(t))}normalize(e){return Vv.stripTrailingSlash(function Wie(n,e){if(!n||!e.startsWith(n))return e;const t=e.substring(n.length);return""===t||["/",";","?","#"].includes(t[0])?t:e}(this._basePath,Kq(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",r=null){this._locationStrategy.pushState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ap(t)),r)}replaceState(e,t="",r=null){this._locationStrategy.replaceState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ap(t)),r)}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.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{const t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(r=>r(e,t))}subscribe(e,t,r){return this._subject.subscribe({next:e,error:t,complete:r})}static#e=this.normalizeQueryParams=ap;static#t=this.joinWithSlash=IP;static#n=this.stripTrailingSlash=Xq;static#r=this.\u0275fac=function(t){return new(t||Vv)(zt(zv))};static#i=this.\u0275prov=_n({token:Vv,factory:()=>function $ie(){return new Vv(zt(zv))}(),providedIn:"root"})}function Kq(n){return n.replace(/\/index.html$/,"")}const Zq={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var qE,qv,pl,Vo,bc;!function(n){n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific"}(qE||(qE={})),function(n){n[n.Zero=0]="Zero",n[n.One=1]="One",n[n.Two=2]="Two",n[n.Few=3]="Few",n[n.Many=4]="Many",n[n.Other=5]="Other"}(qv||(qv={})),function(n){n[n.Format=0]="Format",n[n.Standalone=1]="Standalone"}(pl||(pl={})),function(n){n[n.Narrow=0]="Narrow",n[n.Abbreviated=1]="Abbreviated",n[n.Wide=2]="Wide",n[n.Short=3]="Short"}(Vo||(Vo={})),function(n){n[n.Short=0]="Short",n[n.Medium=1]="Medium",n[n.Long=2]="Long",n[n.Full=3]="Full"}(bc||(bc={}));const Ya={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};var Qq;function Z3(n,e){return Id(ks(n)[Mo.DateFormat],e)}function Q3(n,e){return Id(ks(n)[Mo.TimeFormat],e)}function J3(n,e){return Id(ks(n)[Mo.DateTimeFormat],e)}function Td(n,e){const t=ks(n),r=t[Mo.NumberSymbols][e];if(typeof r>"u"){if(e===Ya.CurrencyDecimal)return t[Mo.NumberSymbols][Ya.Decimal];if(e===Ya.CurrencyGroup)return t[Mo.NumberSymbols][Ya.Group]}return r}function NP(n,e){return ks(n)[Mo.NumberFormats][e]}!function(n){n[n.Sunday=0]="Sunday",n[n.Monday=1]="Monday",n[n.Tuesday=2]="Tuesday",n[n.Wednesday=3]="Wednesday",n[n.Thursday=4]="Thursday",n[n.Friday=5]="Friday",n[n.Saturday=6]="Saturday"}(Qq||(Qq={}));const eoe=b3;function Jq(n){if(!n[Mo.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Mo.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Id(n,e){for(let t=e;t>-1;t--)if(typeof n[t]<"u")return n[t];throw new Error("Locale data API: locale data undefined")}function OP(n){const[e,t]=n.split(":");return{hours:+e,minutes:+t}}function roe(n,e,t="en"){const r=function Jie(n){return ks(n)[Mo.Currencies]}(t)[n]||Zq[n]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||n}const ioe=2;const aoe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,e4={},soe=/((?:[^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 Mh,go,bo;function loe(n,e,t,r){let i=function boe(n){if(nj(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,a=1,l=1]=n.split("-").map(d=>+d);return t4(i,a-1,l)}const t=parseFloat(n);if(!isNaN(n-t))return new Date(t);let r;if(r=n.match(aoe))return function voe(n){const e=new Date(0);let t=0,r=0;const i=n[8]?e.setUTCFullYear:e.setFullYear,a=n[8]?e.setUTCHours:e.setHours;n[9]&&(t=Number(n[9]+n[10]),r=Number(n[9]+n[11])),i.call(e,Number(n[1]),Number(n[2])-1,Number(n[3]));const l=Number(n[4]||0)-t,d=Number(n[5]||0)-r,h=Number(n[6]||0),p=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return a.call(e,l,d,h,p),e}(r)}const e=new Date(n);if(!nj(e))throw new Error(`Unable to convert "${n}" into a date`);return e}(n);e=sp(t,e)||e;let d,l=[];for(;e;){if(d=soe.exec(e),!d){l.push(e);break}{l=l.concat(d.slice(1));const y=l.pop();if(!y)break;e=y}}let h=i.getTimezoneOffset();r&&(h=tj(r,h),i=function goe(n,e,t){const r=t?-1:1,i=n.getTimezoneOffset(),a=tj(e,i);return function moe(n,e){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+e),n}(n,r*(a-i))}(i,r,!0));let p="";return l.forEach(y=>{const S=function poe(n){if(FP[n])return FP[n];let e;switch(n){case"G":case"GG":case"GGG":e=na(bo.Eras,Vo.Abbreviated);break;case"GGGG":e=na(bo.Eras,Vo.Wide);break;case"GGGGG":e=na(bo.Eras,Vo.Narrow);break;case"y":e=Ka(go.FullYear,1,0,!1,!0);break;case"yy":e=Ka(go.FullYear,2,0,!0,!0);break;case"yyy":e=Ka(go.FullYear,3,0,!1,!0);break;case"yyyy":e=Ka(go.FullYear,4,0,!1,!0);break;case"Y":e=o4(1);break;case"YY":e=o4(2,!0);break;case"YYY":e=o4(3);break;case"YYYY":e=o4(4);break;case"M":case"L":e=Ka(go.Month,1,1);break;case"MM":case"LL":e=Ka(go.Month,2,1);break;case"MMM":e=na(bo.Months,Vo.Abbreviated);break;case"MMMM":e=na(bo.Months,Vo.Wide);break;case"MMMMM":e=na(bo.Months,Vo.Narrow);break;case"LLL":e=na(bo.Months,Vo.Abbreviated,pl.Standalone);break;case"LLLL":e=na(bo.Months,Vo.Wide,pl.Standalone);break;case"LLLLL":e=na(bo.Months,Vo.Narrow,pl.Standalone);break;case"w":e=RP(1);break;case"ww":e=RP(2);break;case"W":e=RP(1,!0);break;case"d":e=Ka(go.Date,1);break;case"dd":e=Ka(go.Date,2);break;case"c":case"cc":e=Ka(go.Day,1);break;case"ccc":e=na(bo.Days,Vo.Abbreviated,pl.Standalone);break;case"cccc":e=na(bo.Days,Vo.Wide,pl.Standalone);break;case"ccccc":e=na(bo.Days,Vo.Narrow,pl.Standalone);break;case"cccccc":e=na(bo.Days,Vo.Short,pl.Standalone);break;case"E":case"EE":case"EEE":e=na(bo.Days,Vo.Abbreviated);break;case"EEEE":e=na(bo.Days,Vo.Wide);break;case"EEEEE":e=na(bo.Days,Vo.Narrow);break;case"EEEEEE":e=na(bo.Days,Vo.Short);break;case"a":case"aa":case"aaa":e=na(bo.DayPeriods,Vo.Abbreviated);break;case"aaaa":e=na(bo.DayPeriods,Vo.Wide);break;case"aaaaa":e=na(bo.DayPeriods,Vo.Narrow);break;case"b":case"bb":case"bbb":e=na(bo.DayPeriods,Vo.Abbreviated,pl.Standalone,!0);break;case"bbbb":e=na(bo.DayPeriods,Vo.Wide,pl.Standalone,!0);break;case"bbbbb":e=na(bo.DayPeriods,Vo.Narrow,pl.Standalone,!0);break;case"B":case"BB":case"BBB":e=na(bo.DayPeriods,Vo.Abbreviated,pl.Format,!0);break;case"BBBB":e=na(bo.DayPeriods,Vo.Wide,pl.Format,!0);break;case"BBBBB":e=na(bo.DayPeriods,Vo.Narrow,pl.Format,!0);break;case"h":e=Ka(go.Hours,1,-12);break;case"hh":e=Ka(go.Hours,2,-12);break;case"H":e=Ka(go.Hours,1);break;case"HH":e=Ka(go.Hours,2);break;case"m":e=Ka(go.Minutes,1);break;case"mm":e=Ka(go.Minutes,2);break;case"s":e=Ka(go.Seconds,1);break;case"ss":e=Ka(go.Seconds,2);break;case"S":e=Ka(go.FractionalSeconds,1);break;case"SS":e=Ka(go.FractionalSeconds,2);break;case"SSS":e=Ka(go.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=r4(Mh.Short);break;case"ZZZZZ":e=r4(Mh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=r4(Mh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=r4(Mh.Long);break;default:return null}return FP[n]=e,e}(y);p+=S?S(i,t,h):"''"===y?"'":y.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function t4(n,e,t){const r=new Date(0);return r.setFullYear(n,e,t),r.setHours(0,0,0),r}function sp(n,e){const t=function Xie(n){return ks(n)[Mo.LocaleId]}(n);if(e4[t]??={},e4[t][e])return e4[t][e];let r="";switch(e){case"shortDate":r=Z3(n,bc.Short);break;case"mediumDate":r=Z3(n,bc.Medium);break;case"longDate":r=Z3(n,bc.Long);break;case"fullDate":r=Z3(n,bc.Full);break;case"shortTime":r=Q3(n,bc.Short);break;case"mediumTime":r=Q3(n,bc.Medium);break;case"longTime":r=Q3(n,bc.Long);break;case"fullTime":r=Q3(n,bc.Full);break;case"short":const i=sp(n,"shortTime"),a=sp(n,"shortDate");r=n4(J3(n,bc.Short),[i,a]);break;case"medium":const l=sp(n,"mediumTime"),d=sp(n,"mediumDate");r=n4(J3(n,bc.Medium),[l,d]);break;case"long":const h=sp(n,"longTime"),p=sp(n,"longDate");r=n4(J3(n,bc.Long),[h,p]);break;case"full":const y=sp(n,"fullTime"),S=sp(n,"fullDate");r=n4(J3(n,bc.Full),[y,S])}return r&&(e4[t][e]=r),r}function n4(n,e){return e&&(n=n.replace(/\{([^}]+)}/g,function(t,r){return null!=e&&r in e?e[r]:t})),n}function xu(n,e,t="-",r,i){let a="";(n<0||i&&n<=0)&&(i?n=1-n:(n=-n,a=t));let l=String(n);for(;l.length0||d>-t)&&(d+=t),n===go.Hours)0===d&&-12===t&&(d=12);else if(n===go.FractionalSeconds)return function coe(n,e){return xu(n,3).substring(0,e)}(d,e);const h=Td(l,Ya.MinusSign);return xu(d,e,h,r,i)}}function na(n,e,t=pl.Format,r=!1){return function(i,a){return function uoe(n,e,t,r,i,a){switch(t){case bo.Months:return function Zie(n,e,t){const r=ks(n),a=Id([r[Mo.MonthsFormat],r[Mo.MonthsStandalone]],e);return Id(a,t)}(e,i,r)[n.getMonth()];case bo.Days:return function Kie(n,e,t){const r=ks(n),a=Id([r[Mo.DaysFormat],r[Mo.DaysStandalone]],e);return Id(a,t)}(e,i,r)[n.getDay()];case bo.DayPeriods:const l=n.getHours(),d=n.getMinutes();if(a){const p=function toe(n){const e=ks(n);return Jq(e),(e[Mo.ExtraData][2]||[]).map(r=>"string"==typeof r?OP(r):[OP(r[0]),OP(r[1])])}(e),y=function noe(n,e,t){const r=ks(n);Jq(r);const a=Id([r[Mo.ExtraData][0],r[Mo.ExtraData][1]],e)||[];return Id(a,t)||[]}(e,i,r),S=p.findIndex(R=>{if(Array.isArray(R)){const[B,q]=R,V=l>=B.hours&&d>=B.minutes,ee=l0?Math.floor(i/60):Math.ceil(i/60);switch(n){case Mh.Short:return(i>=0?"+":"")+xu(l,2,a)+xu(Math.abs(i%60),2,a);case Mh.ShortGMT:return"GMT"+(i>=0?"+":"")+xu(l,1,a);case Mh.Long:return"GMT"+(i>=0?"+":"")+xu(l,2,a)+":"+xu(Math.abs(i%60),2,a);case Mh.Extended:return 0===r?"Z":(i>=0?"+":"")+xu(l,2,a)+":"+xu(Math.abs(i%60),2,a);default:throw new Error(`Unknown zone width "${n}"`)}}}!function(n){n[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended"}(Mh||(Mh={})),function(n){n[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day"}(go||(go={})),function(n){n[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras"}(bo||(bo={}));const hoe=0,i4=4;function ej(n){const e=n.getDay(),t=0===e?-3:i4-e;return t4(n.getFullYear(),n.getMonth(),n.getDate()+t)}function RP(n,e=!1){return function(t,r){let i;if(e){const a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,l=t.getDate();i=1+Math.floor((l+a)/7)}else{const a=ej(t),l=function foe(n){const e=t4(n,hoe,1).getDay();return t4(n,0,1+(e<=i4?i4:i4+7)-e)}(a.getFullYear()),d=a.getTime()-l.getTime();i=1+Math.round(d/6048e5)}return xu(i,n,Td(r,Ya.MinusSign))}}function o4(n,e=!1){return function(t,r){return xu(ej(t).getFullYear(),n,Td(r,Ya.MinusSign),e)}}const FP={};function tj(n,e){n=n.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(t)?e:t}function nj(n){return n instanceof Date&&!isNaN(n.valueOf())}const yoe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,rj=22,a4=".",jE="0",_oe=";",xoe=",",PP="#";function BP(n,e,t,r,i,a,l=!1){let d="",h=!1;if(isFinite(n)){let p=function Aoe(n){let r,i,a,l,d,e=Math.abs(n)+"",t=0;for((i=e.indexOf(a4))>-1&&(e=e.replace(a4,"")),(a=e.search(/e/i))>0?(i<0&&(i=a),i+=+e.slice(a+1),e=e.substring(0,a)):i<0&&(i=e.length),a=0;e.charAt(a)===jE;a++);if(a===(d=e.length))r=[0],i=1;else{for(d--;e.charAt(d)===jE;)d--;for(i-=a,r=[],l=0;a<=d;a++,l++)r[l]=Number(e.charAt(a))}return i>rj&&(r=r.splice(0,rj-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}(n);l&&(p=function Soe(n){if(0===n.digits[0])return n;const e=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===e?n.digits.push(0,0):1===e&&n.digits.push(0),n.integerLen+=2),n}(p));let y=e.minInt,S=e.minFrac,R=e.maxFrac;if(a){const he=a.match(yoe);if(null===he)throw new Error(`${a} is not a valid digit info`);const re=he[1],ce=he[3],pe=he[5];null!=re&&(y=zP(re)),null!=ce&&(S=zP(ce)),null!=pe?R=zP(pe):null!=ce&&S>R&&(R=S)}!function Doe(n,e,t){if(e>t)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${t}).`);let r=n.digits,i=r.length-n.integerLen;const a=Math.min(Math.max(e,i),t);let l=a+n.integerLen,d=r[l];if(l>0){r.splice(Math.max(n.integerLen,l));for(let S=l;S=5)if(l-1<0){for(let S=0;S>l;S--)r.unshift(0),n.integerLen++;r.unshift(1),n.integerLen++}else r[l-1]++;for(;i=p?q.pop():h=!1),R>=10?1:0},0);y&&(r.unshift(y),n.integerLen++)}(p,S,R);let B=p.digits,q=p.integerLen;const V=p.exponent;let ee=[];for(h=B.every(he=>!he);q0?ee=B.splice(q,B.length):(ee=B,B=[0]);const ne=[];for(B.length>=e.lgSize&&ne.unshift(B.splice(-e.lgSize,B.length).join(""));B.length>e.gSize;)ne.unshift(B.splice(-e.gSize,B.length).join(""));B.length&&ne.unshift(B.join("")),d=ne.join(Td(t,r)),ee.length&&(d+=Td(t,i)+ee.join("")),V&&(d+=Td(t,Ya.Exponential)+"+"+V)}else d=Td(t,Ya.Infinity);return d=n<0&&!h?e.negPre+d+e.negSuf:e.posPre+d+e.posSuf,d}function Coe(n,e,t,r,i){const l=LP(NP(e,qE.Currency),Td(e,Ya.MinusSign));return l.minFrac=function ooe(n){let e;const t=Zq[n];return t&&(e=t[2]),"number"==typeof e?e:ioe}(r),l.maxFrac=l.minFrac,BP(n,l,e,Ya.CurrencyGroup,Ya.CurrencyDecimal,i).replace("\xa4",t).replace("\xa4","").trim()}function LP(n,e="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=n.split(_oe),i=r[0],a=r[1],l=-1!==i.indexOf(a4)?i.split(a4):[i.substring(0,i.lastIndexOf(jE)+1),i.substring(i.lastIndexOf(jE)+1)],d=l[0],h=l[1]||"";t.posPre=d.substring(0,d.indexOf(PP));for(let y=0;y-1||(i=t.getPluralCategory(n,r),e.indexOf(i)>-1))return i;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${n}"`)}class UE extends Xx{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(eoe(t||this.locale)(e)){case qv.Zero:return"zero";case qv.One:return"one";case qv.Two:return"two";case qv.Few:return"few";case qv.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(t){return new(t||UE)(zt(Sh))};static#t=this.\u0275prov=_n({token:UE,factory:UE.\u0275fac})}function aj(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[i,a]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===e)return decodeURIComponent(a)}return null}const VP=/\s+/,sj=[];class og{constructor(e,t){this._ngEl=e,this._renderer=t,this.initialClasses=sj,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(VP):sj}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(VP):e}ngDoCheck(){for(const t of this.initialClasses)this._updateState(t,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const t of e)this._updateState(t,!0);else if(null!=e)for(const t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==t&&(r.changed=!0,r.enabled=t),r.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const t=e[0],r=e[1];r.changed?(this._toggleClass(t,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),r.touched=!1}}_toggleClass(e,t){(e=e.trim()).length>0&&e.split(VP).forEach(r=>{t?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(t){return new(t||og)(Ve(jn),Ve(hc))};static#t=this.\u0275dir=hn({type:og,selectors:[["","ngClass",""]],inputs:{klass:[Ft.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}class Yx{constructor(e){this._viewContainerRef=e,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(e){return void 0!==e.ngComponentOutletNgModule||void 0!==e.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(e){return void 0!==e.ngComponentOutlet||void 0!==e.ngComponentOutletContent||void 0!==e.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=function dI(n,e){return new dx(n,e??null,[])}(this.ngComponentOutletNgModule,lj(t)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(lj(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(const[t,r]of this._inputsUsed)r?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static#e=this.\u0275fac=function(t){return new(t||Yx)(Ve(Wo))};static#t=this.\u0275dir=hn({type:Yx,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Ui]})}function lj(n){return n.get(Uf).injector}class Moe{constructor(e,t,r,i){this.$implicit=e,this.ngForOf=t,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}}class jv{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,t,r){this._viewContainer=e,this._template=t,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 t=this._viewContainer;e.forEachOperation((r,i,a)=>{if(null==r.previousIndex)t.createEmbeddedView(this._template,new Moe(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)t.remove(null===i?void 0:i);else if(null!==i){const l=t.get(i);t.move(l,a),cj(l,r)}});for(let r=0,i=t.length;r{cj(t.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,t){return!0}static#e=this.\u0275fac=function(t){return new(t||jv)(Ve(Wo),Ve($o),Ve(Ah))};static#t=this.\u0275dir=hn({type:jv,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}function cj(n,e){n.context.$implicit=e.item}class Uv{constructor(e,t){this._viewContainer=e,this._context=new Toe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){dj("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){dj("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,t){return!0}static#e=this.\u0275fac=function(t){return new(t||Uv)(Ve(Wo),Ve($o))};static#t=this.\u0275dir=hn({type:Uv,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}class Toe{constructor(){this.$implicit=null,this.ngIf=null}}function dj(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Vn(e)}'.`)}class qP{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class ag{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const t=e===this._ngSwitch;return this._lastCasesMatched||=t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const t of this._defaultViews)t.enforceState(e)}}static#e=this.\u0275fac=function(t){return new(t||ag)};static#t=this.\u0275dir=hn({type:ag,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}class Kx{constructor(e,t,r){this.ngSwitch=r,r._addCase(),this._view=new qP(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(t){return new(t||Kx)(Ve(Wo),Ve($o),Ve(ag,9))};static#t=this.\u0275dir=hn({type:Kx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}class Zx{constructor(e,t,r){r._addDefault(new qP(e,t))}static#e=this.\u0275fac=function(t){return new(t||Zx)(Ve(Wo),Ve($o),Ve(ag,9))};static#t=this.\u0275dir=hn({type:Zx,selectors:[["","ngSwitchDefault",""]],standalone:!0})}class Hv{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._updateView(e)}addCase(e,t){this._caseViews[e]=t}_updateView(e){this._clearViews();const r=oj(e,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[r])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}static#e=this.\u0275fac=function(t){return new(t||Hv)(Ve(Xx))};static#t=this.\u0275dir=hn({type:Hv,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}class Qx{constructor(e,t,r,i){this.value=e;const a=!isNaN(Number(e));i.addCase(a?`=${e}`:e,new qP(r,t))}static#e=this.\u0275fac=function(t){return new(t||Qx)(vd("ngPluralCase"),Ve($o),Ve(Wo),Ve(Hv,1))};static#t=this.\u0275dir=hn({type:Qx,selectors:[["","ngPluralCase",""]],standalone:!0})}class Jx{constructor(e,t,r){this._ngEl=e,this._differs=t,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[r,i]=e.split("."),a=-1===r.indexOf("-")?void 0:du.DashCase;null!=t?this._renderer.setStyle(this._ngEl.nativeElement,r,i?`${t}${i}`:t,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static#e=this.\u0275fac=function(t){return new(t||Jx)(Ve(jn),Ve(Dh),Ve(hc))};static#t=this.\u0275dir=hn({type:Jx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}class wu{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,t,r),get:(e,t,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,r)}})}static#e=this.\u0275fac=function(t){return new(t||wu)(Ve(Wo))};static#t=this.\u0275dir=hn({type:wu,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ui]})}function Cu(n,e){return new At(2100,!1)}const Roe=new class Ooe{createSubscription(e,t){return e.then(t,r=>{throw r})}dispose(e){}},Foe=new class Noe{createSubscription(e,t){return $q(()=>e.subscribe({next:t,error:r=>{throw r}}))}dispose(e){$q(()=>e.unsubscribe())}};class sg{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(B3(e))return Roe;if(eq(e))return Foe;throw Cu()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(t){return new(t||sg)(Ve(mo,16))};static#t=this.\u0275pipe=Fa({name:"async",type:sg,pure:!1,standalone:!0})}class $v{transform(e){if(null==e)return null;if("string"!=typeof e)throw Cu();return e.toLowerCase()}static#e=this.\u0275fac=function(t){return new(t||$v)};static#t=this.\u0275pipe=Fa({name:"lowercase",type:$v,pure:!0,standalone:!0})}const Poe=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;class Wv{transform(e){if(null==e)return null;if("string"!=typeof e)throw Cu();return e.replace(Poe,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}static#e=this.\u0275fac=function(t){return new(t||Wv)};static#t=this.\u0275pipe=Fa({name:"titlecase",type:Wv,pure:!0,standalone:!0})}class Gv{transform(e){if(null==e)return null;if("string"!=typeof e)throw Cu();return e.toUpperCase()}static#e=this.\u0275fac=function(t){return new(t||Gv)};static#t=this.\u0275pipe=Fa({name:"uppercase",type:Gv,pure:!0,standalone:!0})}const Loe=new pn(""),zoe=new pn("");class Xv{constructor(e,t,r){this.locale=e,this.defaultTimezone=t,this.defaultOptions=r}transform(e,t,r,i){if(null==e||""===e||e!=e)return null;try{const a=t??this.defaultOptions?.dateFormat??"mediumDate",l=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return loe(e,a,i||this.locale,l)}catch(a){throw Cu(0,a.message)}}static#e=this.\u0275fac=function(t){return new(t||Xv)(Ve(Sh,16),Ve(Loe,24),Ve(zoe,24))};static#t=this.\u0275pipe=Fa({name:"date",type:Xv,pure:!0,standalone:!0})}const Voe=/#/g;class Yv{constructor(e){this._localization=e}transform(e,t,r){if(null==e)return"";if("object"!=typeof t||null===t)throw Cu();return t[oj(e,Object.keys(t),this._localization,r)].replace(Voe,e.toString())}static#e=this.\u0275fac=function(t){return new(t||Yv)(Ve(Xx,16))};static#t=this.\u0275pipe=Fa({name:"i18nPlural",type:Yv,pure:!0,standalone:!0})}class Kv{transform(e,t){if(null==e)return"";if("object"!=typeof t||"string"!=typeof e)throw Cu();return t.hasOwnProperty(e)?t[e]:t.hasOwnProperty("other")?t.other:""}static#e=this.\u0275fac=function(t){return new(t||Kv)};static#t=this.\u0275pipe=Fa({name:"i18nSelect",type:Kv,pure:!0,standalone:!0})}class e1{transform(e){return JSON.stringify(e,null,2)}static#e=this.\u0275fac=function(t){return new(t||e1)};static#t=this.\u0275pipe=Fa({name:"json",type:e1,pure:!1,standalone:!0})}class t1{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=uj}transform(e,t=uj){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const r=this.differ.diff(e),i=t!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(function qoe(n,e){return{key:n,value:e}}(a.key,a.currentValue))})),(r||i)&&(this.keyValues.sort(t),this.compareFn=t),this.keyValues}static#e=this.\u0275fac=function(t){return new(t||t1)(Ve(Dh,16))};static#t=this.\u0275pipe=Fa({name:"keyvalue",type:t1,pure:!1,standalone:!0})}function uj(n,e){const t=n.key,r=e.key;if(t===r)return 0;if(void 0===t)return 1;if(void 0===r)return-1;if(null===t)return 1;if(null===r)return-1;if("string"==typeof t&&"string"==typeof r)return tlp(xn(Rl))?new $oe(xn(Mr),window):new Goe})}class $oe{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){const t=function Woe(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&"function"==typeof n.body.attachShadow){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const a=i.shadowRoot;if(a){const l=a.getElementById(e)||a.querySelector(`[name="${e}"]`);if(l)return l}i=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(r-a[0],i-a[1])}}class Goe{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}}class fj{}const s4="20";function n1(n,e){return l4(n)?new URL(n):new URL(n,e.location.href)}function l4(n){return/^https?:\/\//.test(n)}function pj(n){return l4(n)?new URL(n).hostname:n}function mj(n){if("string"!=typeof n||""===n.trim())return!1;try{new URL(n);return!0}catch{return!1}}function Yoe(n){return n.startsWith("/")?n.slice(1):n}const r1=n=>n.src,WP=new pn("",{providedIn:"root",factory:()=>r1});function c4(n,e){return function(r){return mj(r)||function Koe(n,e){throw new At(2959,!1)}(),r=function Xoe(n){return n.endsWith("/")?n.slice(0,-1):n}(r),[{provide:WP,useValue:l=>(l4(l.src)&&function Zoe(n,e){throw new At(2959,!1)}(0,l.src),n(r,{...l,src:Yoe(l.src)}))}]}}c4(function Qoe(n,e){let t="format=auto";return e.width&&(t+=`,width=${e.width}`),e.isPlaceholder&&(t+=`,quality=${s4}`),`${n}/cdn-cgi/image/${t}/${e.src}`});c4(function nae(n,e){let r="f_auto,"+(e.isPlaceholder?"q_auto:low":"q_auto");return e.width&&(r+=`,w_${e.width}`),`${n}/image/upload/${r}/${e.src}`});c4(function aae(n,e){const{src:t,width:r}=e,i=[];r&&i.push(`w-${r}`),e.isPlaceholder&&i.push(`q-${s4}`);const a=i.length?[n,`tr:${i.join(",")}`,t]:[n,t];return new URL(a.join("/")).href});c4(function dae(n,e){const t=new URL(`${n}/${e.src}`);return t.searchParams.set("auto","format"),e.width&&t.searchParams.set("w",e.width.toString()),e.isPlaceholder&&t.searchParams.set("q",s4),t.href});function Go(n,e=!0){return`The NgOptimizedImage directive ${e?`(activated on an element with the \`ngSrc="${n}"\`) `:""}has detected that`}function bj(n){throw new At(2958,`Unexpected invocation of the ${n} in the prod mode. Please make sure that the prod mode is enabled for production builds.`)}class d4{constructor(){this.images=new Map,this.window=null,this.observer=null,bj("LCP checker");const e=xn(Mr).defaultView;typeof e<"u"&&typeof PerformanceObserver<"u"&&(this.window=e,this.observer=this.initPerformanceObserver())}initPerformanceObserver(){const e=new PerformanceObserver(t=>{const r=t.getEntries();if(0===r.length)return;const a=r[r.length-1].element?.src??"";if(a.startsWith("data:")||a.startsWith("blob:"))return;const l=this.images.get(a);l&&(!l.priority&&!l.alreadyWarnedPriority&&(l.alreadyWarnedPriority=!0,function mae(n){const e=Go(n);console.error(sn(2955,`${e} this image is the Largest Contentful Paint (LCP) element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.`))}(a)),l.modified&&!l.alreadyWarnedModified&&(l.alreadyWarnedModified=!0,function gae(n){const e=Go(n);console.warn(sn(2964,`${e} this image is the Largest Contentful Paint (LCP) element and has had its "ngSrc" attribute modified. This can cause slower loading performance. It is recommended not to modify the "ngSrc" property on any image which could be the LCP element.`))}(a)))});return e.observe({type:"largest-contentful-paint",buffered:!0}),e}registerImage(e,t,r){if(!this.observer)return;const i={priority:r,modified:!1,alreadyWarnedModified:!1,alreadyWarnedPriority:!1};this.images.set(n1(e,this.window).href,i)}unregisterImage(e){this.observer&&this.images.delete(n1(e,this.window).href)}updateImage(e,t){const r=n1(e,this.window).href,i=this.images.get(r);i&&(i.modified=!0,this.images.set(n1(t,this.window).href,i),this.images.delete(r))}ngOnDestroy(){this.observer&&(this.observer.disconnect(),this.images.clear())}static#e=this.\u0275fac=function(t){return new(t||d4)};static#t=this.\u0275prov=_n({token:d4,factory:d4.\u0275fac,providedIn:"root"})}const bae=new Set(["localhost","127.0.0.1","0.0.0.0"]),vae=new pn("");class u4{constructor(){this.document=xn(Mr),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(bae),bj("preconnect link checker");const e=this.document.defaultView;typeof e<"u"&&(this.window=e);const t=xn(vae,{optional:!0});t&&this.populateBlocklist(t)}populateBlocklist(e){Array.isArray(e)?vj(e,t=>{this.blocklist.add(pj(t))}):this.blocklist.add(pj(e))}assertPreconnect(e,t){if(!this.window)return;const r=n1(e,this.window);this.blocklist.has(r.hostname)||this.alreadySeen.has(r.origin)||(this.alreadySeen.add(r.origin),this.preconnectLinks??=this.queryPreconnectLinks(),this.preconnectLinks.has(r.origin)||console.warn(sn(2956,`${Go(t)} there is no preconnect tag present for this image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the of the document:\n `)))}queryPreconnectLinks(){const e=new Set,r=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));for(let i of r){const a=n1(i.href,this.window);e.add(a.origin)}return e}ngOnDestroy(){this.preconnectLinks?.clear(),this.alreadySeen.clear()}static#e=this.\u0275fac=function(t){return new(t||u4)};static#t=this.\u0275prov=_n({token:u4,factory:u4.\u0275fac,providedIn:"root"})}function vj(n,e){for(let t of n)Array.isArray(t)?vj(t,e):e(t)}const yae=new pn("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});class HE{constructor(){this.preloadedImages=xn(yae),this.document=xn(Mr)}createPreloadLinkTag(e,t,r,i){if(this.preloadedImages.has(t))return;this.preloadedImages.add(t);const a=e.createElement("link");e.setAttribute(a,"as","image"),e.setAttribute(a,"href",t),e.setAttribute(a,"rel","preload"),e.setAttribute(a,"fetchpriority","high"),i&&e.setAttribute(a,"imageSizes",i),r&&e.setAttribute(a,"imageSrcset",r),e.appendChild(this.document.head,a)}static#e=this.\u0275fac=function(t){return new(t||HE)};static#t=this.\u0275prov=_n({token:HE,factory:HE.\u0275fac,providedIn:"root"})}const _j=/^((\s*\d+w\s*(,|$)){1,})$/,xae=[1,2];class XP{constructor(){this.imageLoader=xn(WP),this.config=function Sae(n){let e={};return n.breakpoints&&(e.breakpoints=n.breakpoints.sort((t,r)=>t-r)),Object.assign({},uM,n,e)}(xn(hM)),this.renderer=xn(hc),this.imgElement=xn(jn).nativeElement,this.injector=xn(di),this.isServer=$P(xn(Rl)),this.preloadLinkCreator=xn(HE),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){Pl("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const e=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),e,this.sizes)}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){const t=this._renderedSrc;this.updateSrcAndSrcset(!0);const r=this._renderedSrc;null!==this.lcpObserver&&t&&r&&t!==r&&this.injector.get(On).runOutsideAngular(()=>{this.lcpObserver?.updateImage(t,r)})}}callImageLoader(e){let t=e;return this.loaderParams&&(t.loaderParams=this.loaderParams),this.imageLoader(t)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){const e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){const e=_j.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>""!==r).map(r=>{r=r.trim();const i=e?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:i})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:e}=this.config;let t=e;return"100vw"===this.sizes?.trim()&&(t=e.filter(i=>i>=640)),t.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);const t=this.getRewrittenSrc();let r;return this.setHostAttribute("src",t),this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return xae.map(t=>`${this.callImageLoader({src:this.ngSrc,width:this.width*t})} ${t}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==r1&&!e}generatePlaceholder(e){const{placeholderResolution:t}=this.config;return!0===e?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:"string"==typeof e&&e.startsWith("data:")?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")||!!e.blur}removePlaceholderOnLoad(e){const t=()=>{const a=this.injector.get(mo);r(),i(),this.placeholder=!1,a.markForCheck()},r=this.renderer.listen(e,"load",t),i=this.renderer.listen(e,"error",t)}ngOnDestroy(){}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static#e=this.\u0275fac=function(t){return new(t||XP)};static#t=this.\u0275dir=hn({type:XP,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(t,r){2&t&&co("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[Ft.HasDecoratorInputTransform,"ngSrc","ngSrc",Oae],ngSrcset:"ngSrcset",sizes:"sizes",width:[Ft.HasDecoratorInputTransform,"width","width",cs],height:[Ft.HasDecoratorInputTransform,"height","height",cs],loading:"loading",priority:[Ft.HasDecoratorInputTransform,"priority","priority",fr],loaderParams:"loaderParams",disableOptimizedSrcset:[Ft.HasDecoratorInputTransform,"disableOptimizedSrcset","disableOptimizedSrcset",fr],fill:[Ft.HasDecoratorInputTransform,"fill","fill",fr],placeholder:[Ft.HasDecoratorInputTransform,"placeholder","placeholder",Rae],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[Gi,Ui]})}function Oae(n){return"string"==typeof n?n:cl(n)}function Rae(n){return"string"==typeof n&&n.startsWith("data:")?n:fr(n)}class Fae extends Hie{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class YP extends Fae{static makeCurrent(){!function Uie(n){Gq??=n}(new YP)}onAndCancel(e,t,r){return e.addEventListener(t,r),()=>{e.removeEventListener(t,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function Pae(){return WE=WE||document.querySelector("base"),WE?WE.getAttribute("href"):null}();return null==t?null:function Bae(n){return new URL(n,document.baseURI).pathname}(t)}resetBaseElement(){WE=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return aj(document.cookie,e)}}let WE=null;class GE{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(t){return new(t||GE)};static#t=this.\u0275prov=_n({token:GE,factory:GE.\u0275fac})}const f4=new pn("");class i1{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(i=>i.supports(e)),!t)throw new At(5101,!1);return this._eventNameToPlugin.set(e,t),t}static#e=this.\u0275fac=function(t){return new(t||i1)(zt(f4),zt(On))};static#t=this.\u0275prov=_n({token:i1,factory:i1.\u0275fac})}class KP{constructor(e){this._doc=e}}const ZP="ng-app-id";class o1{constructor(e,t,r,i={}){this.doc=e,this.appId=t,this.nonce=r,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=$P(i),this.resetHostNodes()}addStyles(e){for(const t of e)1===this.changeUsageCount(t,1)&&this.onStyleAdded(t)}removeStyles(e){for(const t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(const t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){const t=this.styleRef;t.get(e)?.elements?.forEach(r=>r.remove()),t.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${ZP}="${this.appId}"]`);if(e?.length){const t=new Map;return e.forEach(r=>{null!=r.textContent&&t.set(r.textContent,r)}),t}return null}changeUsageCount(e,t){const r=this.styleRef;if(r.has(e)){const i=r.get(e);return i.usage+=t,i.usage}return r.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){const r=this.styleNodesInDOM,i=r?.get(t);if(i?.parentNode===e)return r.delete(t),i.removeAttribute(ZP),i;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=t,this.platformIsServer&&a.setAttribute(ZP,this.appId),e.appendChild(a),a}}addStyleToHost(e,t){const r=this.getStyleElement(e,t),i=this.styleRef,a=i.get(t)?.elements;a?a.push(r):i.set(t,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(t){return new(t||o1)(zt(Mr),zt(Ls),zt(EC,8),zt(Rl))};static#t=this.\u0275prov=_n({token:o1,factory:o1.\u0275fac})}const QP={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/"},JP=/%COMP%/g,zae="_nghost-%COMP%",Vae="_ngcontent-%COMP%",jae=new pn("",{providedIn:"root",factory:()=>true});function Sj(n,e){return e.map(t=>t.replace(JP,n))}class t0{constructor(e,t,r,i,a,l,d,h=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=i,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=$P(l),this.defaultRenderer=new e9(e,a,d,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Ei.ShadowDom&&(t={...t,encapsulation:Ei.Emulated});const r=this.getOrCreateRenderer(e,t);return r instanceof Dj?r.applyToHost(e):r instanceof t9&&r.applyStyles(),r}getOrCreateRenderer(e,t){const r=this.rendererByCompId;let i=r.get(t.id);if(!i){const a=this.doc,l=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(t.encapsulation){case Ei.Emulated:i=new Dj(d,h,t,this.appId,p,a,l,y);break;case Ei.ShadowDom:return new Wae(d,h,e,t,a,l,this.nonce,y);default:i=new t9(d,h,t,p,a,l,y)}r.set(t.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(t){return new(t||t0)(zt(i1),zt(o1),zt(Ls),zt(jae),zt(Mr),zt(Rl),zt(On),zt(EC))};static#t=this.\u0275prov=_n({token:t0,factory:t0.\u0275fac})}class e9{constructor(e,t,r,i){this.eventManager=e,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(QP[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Aj(e)?e.content:e).appendChild(t)}insertBefore(e,t,r){e&&(Aj(e)?e.content:e).insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?this.doc.querySelector(e):e;if(!r)throw new At(-5104,!1);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,i){if(i){t=i+":"+t;const a=QP[i];a?e.setAttributeNS(a,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const i=QP[r];i?e.removeAttributeNS(i,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,i){i&(du.DashCase|du.Important)?e.style.setProperty(t,r,i&du.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&du.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){null!=e&&(e[t]=r)}setValue(e,t){e.nodeValue=t}listen(e,t,r){if("string"==typeof e&&!(e=op().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(r))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))&&t.preventDefault()}}}function Aj(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Wae extends e9{constructor(e,t,r,i,a,l,d,h){super(e,a,l,h),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const p=Sj(i.id,i.styles);for(const y of p){const S=document.createElement("style");d&&S.setAttribute("nonce",d),S.textContent=y,this.shadowRoot.appendChild(S)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class t9 extends e9{constructor(e,t,r,i,a,l,d,h){super(e,a,l,d),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=h?Sj(h,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Dj extends t9{constructor(e,t,r,i,a,l,d,h){const p=i+"-"+r.id;super(e,t,r,a,l,d,h,p),this.contentAttr=function Uae(n){return Vae.replace(JP,n)}(p),this.hostAttr=function Hae(n){return zae.replace(JP,n)}(p)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class XE extends KP{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}static#e=this.\u0275fac=function(t){return new(t||XE)(zt(Mr))};static#t=this.\u0275prov=_n({token:XE,factory:XE.\u0275fac})}const Mj=["alt","control","meta","shift"],Gae={"\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"},Xae={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};class Th extends KP{constructor(e){super(e)}supports(e){return null!=Th.parseEventName(e)}addEventListener(e,t,r){const i=Th.parseEventName(t),a=Th.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>op().onAndCancel(e,i.domEventName,a))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const i=Th._normalizeKey(t.pop());let a="",l=t.indexOf("code");if(l>-1&&(t.splice(l,1),a="code."),Mj.forEach(h=>{const p=t.indexOf(h);p>-1&&(t.splice(p,1),a+=h+".")}),a+=i,0!=t.length||0===i.length)return null;const d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(e,t){let r=Gae[e.key]||e.key,i="";return t.indexOf("code.")>-1&&(r=e.code,i="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Mj.forEach(a=>{if(a!==r){(0,Xae[a])(e)&&(i+=a+".")}}),i+=r,i===t)}static eventCallback(e,t,r){return i=>{Th.matchEventFullKeyCode(i,e)&&r.runGuarded(()=>t(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(t){return new(t||Th)(zt(Mr))};static#t=this.\u0275prov=_n({token:Th,factory:Th.\u0275fac})}const n9=[{provide:Rl,useValue:HP},{provide:ru,useValue:function Yae(){YP.makeCurrent()},multi:!0},{provide:Mr,useFactory:function Zae(){return function dM(n){Nf=n}(document),document},deps:[]}],Qae=(q3(Cq,"browser",n9),new pn("")),Ij=[{provide:P3,useClass:class Lae{addToWindow(e){nt.getAngularTestability=(r,i=!0)=>{const a=e.findTestabilityInTree(r,i);if(null==a)throw new At(5103,!1);return a},nt.getAllAngularTestabilities=()=>e.getAllTestabilities(),nt.getAllAngularRootElements=()=>e.getAllRootElements();nt.frameworkStabilizers||(nt.frameworkStabilizers=[]),nt.frameworkStabilizers.push(r=>{const i=nt.getAllAngularTestabilities();let a=i.length;const l=function(){a--,0==a&&r()};i.forEach(d=>{d.whenStable(l)})})}findTestabilityInTree(e,t,r){if(null==t)return null;return e.getTestability(t)??(r?op().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:JV,useClass:Rv,deps:[On,Fv,P3]},{provide:Rv,useClass:Rv,deps:[On,Fv,P3]}],Nj=[{provide:gb,useValue:"root"},{provide:wo,useFactory:function Kae(){return new wo},deps:[]},{provide:f4,useClass:XE,multi:!0,deps:[Mr,On,Rl]},{provide:f4,useClass:Th,multi:!0,deps:[Mr]},t0,o1,i1,{provide:mv,useExisting:t0},{provide:fj,useClass:GE,deps:[]},[]];class cp{constructor(e){}static withServerTransition(e){return{ngModule:cp,providers:[{provide:Ls,useValue:e.appId}]}}static#e=this.\u0275fac=function(t){return new(t||cp)(zt(Qae,12))};static#t=this.\u0275mod=$n({type:cp,exports:[Ea,FE]});static#n=this.\u0275inj=Er({providers:[...Nj,...Ij],imports:[Ea,FE]})}class p4{constructor(e){this._doc=e,this._dom=op()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((r,i)=>(i&&r.push(this._getOrCreateElement(i,t)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const r=this.getTag(t);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){const a=this._parseSelector(e),l=this.getTags(a).filter(d=>this._containsAttributes(e,d))[0];if(void 0!==l)return l}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(r=>t.setAttribute(this._getMetaKeyMap(r),e[r])),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(r=>t.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return Jae[e]||e}static#e=this.\u0275fac=function(t){return new(t||p4)(zt(Mr))};static#t=this.\u0275prov=_n({token:p4,factory:p4.\u0275fac,providedIn:"root"})}const Jae={httpEquiv:"http-equiv"};class a1{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(t){return new(t||a1)(zt(Mr))};static#t=this.\u0275prov=_n({token:a1,factory:a1.\u0275fac,providedIn:"root"})}const rse={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},r9=new pn("HammerGestureConfig"),Fj=new pn("HammerLoader");class YE{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const r in this.overrides)t.get(r).set(this.overrides[r]);return t}static#e=this.\u0275fac=function(t){return new(t||YE)};static#t=this.\u0275prov=_n({token:YE,factory:YE.\u0275fac})}class KE extends KP{constructor(e,t,r,i){super(e),this._config=t,this.console=r,this.loader=i,this._loaderPromise=null}supports(e){return!(!rse.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,r){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||i.runOutsideAngular(()=>this.loader());let a=!1,l=()=>{a=!0};return i.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?a||(l=this.addEventListener(e,t,r)):l=()=>{}}).catch(()=>{l=()=>{}})),()=>{l()}}return i.runOutsideAngular(()=>{const a=this._config.buildHammer(e),l=function(d){i.runGuarded(function(){r(d)})};return a.on(t,l),()=>{a.off(t,l),"function"==typeof a.destroy&&a.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static#e=this.\u0275fac=function(t){return new(t||KE)(zt(Mr),zt(r9),zt(Ov),zt(Fj,8))};static#t=this.\u0275prov=_n({token:KE,factory:KE.\u0275fac})}class i9{static#e=this.\u0275fac=function(t){return new(t||i9)};static#t=this.\u0275mod=$n({type:i9});static#n=this.\u0275inj=Er({providers:[{provide:f4,useClass:KE,multi:!0,deps:[Mr,r9,Ov,[new El,Fj]]},{provide:r9,useClass:YE,deps:[]}]})}class ku{static#e=this.\u0275fac=function(t){return new(t||ku)};static#t=this.\u0275prov=_n({token:ku,factory:function(t){let r=null;return r=t?new(t||ku):zt(ZE),r},providedIn:"root"})}class ZE extends ku{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case za.NONE:return t;case za.HTML:return wd(t,"HTML")?cl(t):DM(this._doc,String(t)).toString();case za.STYLE:return wd(t,"Style")?cl(t):t;case za.SCRIPT:if(wd(t,"Script"))return cl(t);throw new At(5200,!1);case za.URL:return wd(t,"URL")?cl(t):w_(String(t));case za.RESOURCE_URL:if(wd(t,"ResourceURL"))return cl(t);throw new At(5201,!1);default:throw new At(5202,!1)}}bypassSecurityTrustHtml(e){return function R6(n){return new D6(n)}(e)}bypassSecurityTrustStyle(e){return function oz(n){return new M6(n)}(e)}bypassSecurityTrustScript(e){return function uc(n){return new T6(n)}(e)}bypassSecurityTrustUrl(e){return function F6(n){return new I6(n)}(e)}bypassSecurityTrustResourceUrl(e){return function P6(n){return new N6(n)}(e)}static#e=this.\u0275fac=function(t){return new(t||ZE)(zt(Mr))};static#t=this.\u0275prov=_n({token:ZE,factory:ZE.\u0275fac,providedIn:"root"})}var s1;!function(n){n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions"}(s1||(s1={}));new Nv("17.3.12");const ise=[{provide:Bv,useFactory:()=>new Bv}];function Bj(n){for(let e=n.length-1;e>=0;e--)if(void 0!==n[e])return n[e]}function sse(n){const e=[];return n.forEach(t=>t&&e.push(...t)),e}const lse=q3(Cq,"coreDynamic",[{provide:V3,useValue:{},multi:!0},{provide:class Hre{},useClass:class ose{constructor(e){const t={defaultEncapsulation:Ei.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){const t=function ase(n){return{defaultEncapsulation:Bj(n.map(e=>e.defaultEncapsulation)),providers:sse(n.map(e=>e.providers)),preserveWhitespaces:Bj(n.map(e=>e.preserveWhitespaces))}}(this._defaultOptions.concat(e));return di.create({providers:[ise,{provide:Wx.udt,useFactory:()=>new Wx.udt({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(Bv)}},deps:[V3]}]);class l1 extends Wx.WHm{get(e){let t,r;const i=new Promise((l,d)=>{t=l,r=d}),a=new XMLHttpRequest;return a.open("GET",e,!0),a.responseType="text",a.onload=function(){const l=a.response;let d=a.status;0===d&&(d=l?200:0),200<=d&&d<=300?t(l):r(`Failed to load ${e}`)},a.onerror=function(){r(`Failed to load ${e}`)},a.send(),i}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(l1)))(r||l1)}})();static#t=this.\u0275prov=_n({token:l1,factory:l1.\u0275fac})}const cse=[n9,{provide:V3,useValue:{providers:[{provide:Wx.WHm,useClass:l1,deps:[]}]},multi:!0},{provide:Rl,useValue:HP}];class dse extends Wx.WHm{constructor(){if(super(),this._cache=nt.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}get(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)}}new Nv("17.3.12"),Wx.WHm;const use=q3(lse,"browserDynamic",cse);var ii;!function(n){n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger"}(ii||(ii={}));const dp="*";function vc(n,e){return{type:ii.Trigger,name:n,definitions:e,options:{}}}function ja(n,e=null){return{type:ii.Animate,styles:e,timings:n}}function m4(n,e=null){return{type:ii.Group,steps:n,options:e}}function Lj(n,e=null){return{type:ii.Sequence,steps:n,options:e}}function Hi(n){return{type:ii.Style,styles:n,offset:null}}function fa(n,e,t){return{type:ii.State,name:n,styles:e,options:t}}function Na(n,e,t=null){return{type:ii.Transition,expr:n,animation:e,options:t}}function QE(n=null){return{type:ii.AnimateChild,options:n}}function JE(n,e,t=null){return{type:ii.Query,selector:n,animation:e,options:t}}class g4{static#e=this.\u0275fac=function(t){return new(t||g4)};static#t=this.\u0275prov=_n({token:g4,factory:()=>xn(eS),providedIn:"root"})}class hse{}class eS extends g4{constructor(e,t){super(),this.animationModuleType=xn(Co,{optional:!0}),this._nextAnimationId=0;const r={id:"0",encapsulation:Ei.None,styles:[],data:{animation:[]}};if(this._renderer=e.createRenderer(t.body,r),null===this.animationModuleType&&!function gse(n){const e=n.\u0275type;return 0===e||1===e}(this._renderer))throw new At(3600,!1)}build(e){const t=this._nextAnimationId;this._nextAnimationId++;const r=Array.isArray(e)?Lj(e):e;return zj(this._renderer,null,t,"register",[r]),new fse(t,this._renderer)}static#e=this.\u0275fac=function(t){return new(t||eS)(zt(mv),zt(Mr))};static#t=this.\u0275prov=_n({token:eS,factory:eS.\u0275fac,providedIn:"root"})}class fse extends hse{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new pse(this._id,e,t||{},this._renderer)}}class pse{constructor(e,t,r,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){zj(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return function mse(n){const e=n.\u0275type;return 0===e?n:1===e?n.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function zj(n,e,t,r,i){n.setProperty(e,`@@${t}:${r}`,i)}class tS{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class Vj{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,i=0;const a=this.players.length;0==a?queueMicrotask(()=>this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++t==a&&this._onFinish()}),l.onDestroy(()=>{++r==a&&this._onDestroy()}),l.onStart(()=>{++i==a&&this._onStart()})}),this.totalTime=this.players.reduce((l,d)=>Math.max(l,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function qj(n){return new At(3e3,!1)}function lg(n){switch(n.length){case 0:return new tS;case 1:return n[0];default:return new Vj(n)}}function jj(n,e,t=new Map,r=new Map){const i=[],a=[];let l=-1,d=null;if(e.forEach(h=>{const p=h.get("offset"),y=p==l,S=y&&d||new Map;h.forEach((R,B)=>{let q=B,V=R;if("offset"!==B)switch(q=n.normalizePropertyName(q,i),V){case"!":V=t.get(B);break;case dp:V=r.get(B);break;default:V=n.normalizeStyleValue(B,q,V,i)}S.set(q,V)}),y||a.push(S),d=S,l=p}),i.length)throw function zse(n){return new At(3502,!1)}();return a}function a9(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&s9(t,"start",n)));break;case"done":n.onDone(()=>r(t&&s9(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&s9(t,"destroy",n)))}}function s9(n,e,t){const r=t.totalTime,i=!!t.disabled,a=l9(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,r??n.totalTime,i),l=n._data;return null!=l&&(a._data=l),a}function l9(n,e,t,r,i="",a=0,l){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:i,totalTime:a,disabled:!!l}}function Wc(n,e,t){let r=n.get(e);return r||n.set(e,r=t),r}function Uj(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}const Zse=typeof document>"u"?null:document.documentElement;function c9(n){const e=n.parentNode||n.host||null;return e===Zse?null:e}let n0=null,Hj=!1;function Jse(n){n0||(n0=function ele(){return typeof document<"u"?document.body:null}()||{},Hj=!!n0.style&&"WebkitAppearance"in n0.style);let e=!0;return n0.style&&!function Qse(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in n0.style,!e&&Hj&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in n0.style)),e}function $j(n,e){for(;e;){if(e===n)return!0;e=c9(e)}return!1}function Wj(n,e,t){if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]}class r0{validateStyleProperty(e){return Jse(e)}matchesElement(e,t){return!1}containsElement(e,t){return $j(e,t)}getParentElement(e){return c9(e)}query(e,t,r){return Wj(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,i,a,l=[],d){return new tS(r,i)}static#e=this.\u0275fac=function(t){return new(t||r0)};static#t=this.\u0275prov=_n({token:r0,factory:r0.\u0275fac})}class d9{static#e=this.NOOP=new r0}class u9{}const nle=1e3,h9="ng-enter",b4="ng-leave",v4="ng-trigger",y4=".ng-trigger",Xj="ng-animating",f9=".ng-animating";function up(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:p9(parseFloat(e[1]),e[2])}function p9(n,e){return"s"===e?n*nle:n}function _4(n,e,t){return n.hasOwnProperty("duration")?n:function ile(n,e,t){const r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let i,a=0,l="";if("string"==typeof n){const d=n.match(r);if(null===d)return e.push(qj()),{duration:0,delay:0,easing:""};i=p9(parseFloat(d[1]),d[2]);const h=d[3];null!=h&&(a=p9(parseFloat(h),d[4]));const p=d[5];p&&(l=p)}else i=n;if(!t){let d=!1,h=e.length;i<0&&(e.push(function bse(){return new At(3100,!1)}()),d=!0),a<0&&(e.push(function vse(){return new At(3101,!1)}()),d=!0),d&&e.splice(h,0,qj())}return{duration:i,delay:a,easing:l}}(n,e,t)}function Ih(n,e,t){e.forEach((r,i)=>{const a=g9(i);t&&!t.has(i)&&t.set(i,n.style[a]),n.style[a]=r})}function i0(n,e){e.forEach((t,r)=>{const i=g9(r);n.style[i]=""})}function nS(n){return Array.isArray(n)?1==n.length?n[0]:Lj(n):n}function ale(n,e,t){const r=e.params||{},i=Kj(n);i.length&&i.forEach(a=>{r.hasOwnProperty(a)||t.push(function yse(n){return new At(3001,!1)}())})}const m9=new RegExp("{{\\s*(.+?)\\s*}}","g");function Kj(n){let e=[];if("string"==typeof n){let t;for(;t=m9.exec(n);)e.push(t[1]);m9.lastIndex=0}return e}function rS(n,e,t){const r=`${n}`,i=r.replace(m9,(a,l)=>{let d=e[l];return null==d&&(t.push(function _se(n){return new At(3003,!1)}()),d=""),d.toString()});return i==r?n:i}const sle=/-+([a-z0-9])/g;function g9(n){return n.replace(sle,(...e)=>e[1].toUpperCase())}function Gc(n,e,t){switch(e.type){case ii.Trigger:return n.visitTrigger(e,t);case ii.State:return n.visitState(e,t);case ii.Transition:return n.visitTransition(e,t);case ii.Sequence:return n.visitSequence(e,t);case ii.Group:return n.visitGroup(e,t);case ii.Animate:return n.visitAnimate(e,t);case ii.Keyframes:return n.visitKeyframes(e,t);case ii.Style:return n.visitStyle(e,t);case ii.Reference:return n.visitReference(e,t);case ii.AnimateChild:return n.visitAnimateChild(e,t);case ii.AnimateRef:return n.visitAnimateRef(e,t);case ii.Query:return n.visitQuery(e,t);case ii.Stagger:return n.visitStagger(e,t);default:throw function xse(n){return new At(3004,!1)}(e.type)}}function b9(n,e){return window.getComputedStyle(n)[e]}const dle=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 Zj extends u9{normalizePropertyName(e,t){return g9(e)}normalizeStyleValue(e,t,r,i){let a="";const l=r.toString().trim();if(dle.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)a="px";else{const d=r.match(/^[+-]?[\d\.]+([a-z]*)$/);d&&0==d[1].length&&i.push(function wse(n,e){return new At(3005,!1)}())}return l+a}}const x4="*";function ule(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function hle(n,e,t){if(":"==n[0]){const h=function fle(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(n,t);if("function"==typeof h)return void e.push(h);n=h}const r=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function Rse(n){return new At(3015,!1)}()),e;const i=r[1],a=r[2],l=r[3];e.push(Qj(i,l));const d=i==x4&&l==x4;"<"==a[0]&&!d&&e.push(Qj(l,i))}(r,t,e)):t.push(n),t}const w4=new Set(["true","1"]),C4=new Set(["false","0"]);function Qj(n,e){const t=w4.has(n)||C4.has(n),r=w4.has(e)||C4.has(e);return(i,a)=>{let l=n==x4||n==i,d=e==x4||e==a;return!l&&t&&"boolean"==typeof i&&(l=i?w4.has(n):C4.has(n)),!d&&r&&"boolean"==typeof a&&(d=a?w4.has(e):C4.has(e)),l&&d}}const Jj=":self",ple=new RegExp("s*:selfs*,?","g");function v9(n,e,t,r){return new mle(n).build(e,t,r)}class mle{constructor(e){this._driver=e}build(e,t,r){const i=new vle(t);return this._resetContextStyleTimingState(i),Gc(this,nS(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,i=t.depCount=0;const a=[],l=[];return"@"==e.name.charAt(0)&&t.errors.push(function Cse(){return new At(3006,!1)}()),e.definitions.forEach(d=>{if(this._resetContextStyleTimingState(t),d.type==ii.State){const h=d,p=h.name;p.toString().split(/\s*,\s*/).forEach(y=>{h.name=y,a.push(this.visitState(h,t))}),h.name=p}else if(d.type==ii.Transition){const h=this.visitTransition(d,t);r+=h.queryCount,i+=h.depCount,l.push(h)}else t.errors.push(function kse(){return new At(3007,!1)}())}),{type:ii.Trigger,name:e.name,states:a,transitions:l,queryCount:r,depCount:i,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const a=new Set,l=i||{};r.styles.forEach(d=>{d instanceof Map&&d.forEach(h=>{Kj(h).forEach(p=>{l.hasOwnProperty(p)||a.add(p)})})}),a.size&&t.errors.push(function Ese(n,e){return new At(3008,!1)}(e.name,a.values()))}return{type:ii.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Gc(this,nS(e.animation),t),i=ule(e.expr,t.errors);return{type:ii.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:o0(e.options)}}visitSequence(e,t){return{type:ii.Sequence,steps:e.steps.map(r=>Gc(this,r,t)),options:o0(e.options)}}visitGroup(e,t){const r=t.currentTime;let i=0;const a=e.steps.map(l=>{t.currentTime=r;const d=Gc(this,l,t);return i=Math.max(i,t.currentTime),d});return t.currentTime=i,{type:ii.Group,steps:a,options:o0(e.options)}}visitAnimate(e,t){const r=function _le(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return y9(_4(n,e).duration,0,"")}const t=n;if(t.split(/\s+/).some(a=>"{"==a.charAt(0)&&"{"==a.charAt(1))){const a=y9(0,0,"");return a.dynamic=!0,a.strValue=t,a}const i=_4(t,e);return y9(i.duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let i,a=e.styles?e.styles:Hi({});if(a.type==ii.Keyframes)i=this.visitKeyframes(a,t);else{let l=e.styles,d=!1;if(!l){d=!0;const p={};r.easing&&(p.easing=r.easing),l=Hi(p)}t.currentTime+=r.duration+r.delay;const h=this.visitStyle(l,t);h.isEmptyStep=d,i=h}return t.currentAnimateTimings=null,{type:ii.Animate,timings:r,style:i,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let d of i)"string"==typeof d?d===dp?r.push(d):t.errors.push(new At(3002,!1)):r.push(new Map(Object.entries(d)));let a=!1,l=null;return r.forEach(d=>{if(d instanceof Map&&(d.has("easing")&&(l=d.get("easing"),d.delete("easing")),!a))for(let h of d.values())if(h.toString().indexOf("{{")>=0){a=!0;break}}),{type:ii.Style,styles:r,easing:l,offset:e.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let i=t.currentTime,a=t.currentTime;r&&a>0&&(a-=r.duration+r.delay),e.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,h)=>{const p=t.collectedStyles.get(t.currentQuerySelector),y=p.get(h);let S=!0;y&&(a!=i&&a>=y.startTime&&i<=y.endTime&&(t.errors.push(function Ase(n,e,t,r,i){return new At(3010,!1)}(0,y.startTime,y.endTime)),S=!1),a=y.startTime),S&&p.set(h,{startTime:a,endTime:i}),t.options&&ale(d,t.options,t.errors)})})}visitKeyframes(e,t){const r={type:ii.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Dse(){return new At(3011,!1)}()),r;let a=0;const l=[];let d=!1,h=!1,p=0;const y=e.steps.map(ne=>{const he=this._makeStyleAst(ne,t);let re=null!=he.offset?he.offset:function yle(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(he.styles),ce=0;return null!=re&&(a++,ce=he.offset=re),h=h||ce<0||ce>1,d=d||ce0&&a{const re=R>0?he==B?1:R*he:l[he],ce=re*ee;t.currentTime=q+V.delay+ce,V.duration=ce,this._validateStyleAst(ne,t),ne.offset=re,r.styles.push(ne)}),r}visitReference(e,t){return{type:ii.Reference,animation:Gc(this,nS(e.animation),t),options:o0(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:ii.AnimateChild,options:o0(e.options)}}visitAnimateRef(e,t){return{type:ii.AnimateRef,animation:this.visitReference(e.animation,t),options:o0(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[a,l]=function gle(n){const e=!!n.split(/\s*,\s*/).find(t=>t==Jj);return e&&(n=n.replace(ple,"")),n=n.replace(/@\*/g,y4).replace(/@\w+/g,t=>y4+"-"+t.slice(1)).replace(/:animating/g,f9),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+a:a,Wc(t.collectedStyles,t.currentQuerySelector,new Map);const d=Gc(this,nS(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:ii.Query,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:l,animation:d,originalSelector:e.selector,options:o0(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function Nse(){return new At(3013,!1)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:_4(e.timings,t.errors,!0);return{type:ii.Stagger,animation:Gc(this,nS(e.animation),t),timings:r,options:null}}}class vle{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function o0(n){return n?(n={...n}).params&&(n.params=function ble(n){return n?{...n}:null}(n.params)):n={},n}function y9(n,e,t){return{duration:n,delay:e,easing:t}}function _9(n,e,t,r,i,a,l=null,d=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:i,delay:a,totalTime:i+a,easing:l,subTimeline:d}}class k4{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Cle=new RegExp(":enter","g"),Ele=new RegExp(":leave","g");function x9(n,e,t,r,i,a=new Map,l=new Map,d,h,p=[]){return(new Sle).buildKeyframes(n,e,t,r,i,a,l,d,h,p)}class Sle{buildKeyframes(e,t,r,i,a,l,d,h,p,y=[]){p=p||new k4;const S=new w9(e,t,p,i,a,y,[]);S.options=h;const R=h.delay?up(h.delay):0;S.currentTimeline.delayNextStep(R),S.currentTimeline.setStyles([l],null,S.errors,h),Gc(this,r,S);const B=S.timelines.filter(q=>q.containsAnimation());if(B.length&&d.size){let q;for(let V=B.length-1;V>=0;V--){const ee=B[V];if(ee.element===t){q=ee;break}}q&&!q.allowOnlyTimelineStyles()&&q.setStyles([d],null,S.errors,h)}return B.length?B.map(q=>q.buildKeyframes()):[_9(t,[],[],[],0,R,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(e.options),a=t.currentTimeline.currentTime,l=this._visitSubInstructions(r,i,i.options);a!=l&&t.transformIntoNewTimeline(l)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,r),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,r){for(const i of e){const a=i?.delay;if(a){const l="number"==typeof a?a:up(rS(a,i?.params??{},t.errors));r.delayNextStep(l)}}}_visitSubInstructions(e,t,r){let a=t.currentTimeline.currentTime;const l=null!=r.duration?up(r.duration):null,d=null!=r.delay?up(r.delay):null;return 0!==l&&e.forEach(h=>{const p=t.appendInstructionToTimeline(h,l,d);a=Math.max(a,p.duration+p.delay)}),a}visitReference(e,t){t.updateOptions(e.options,!0),Gc(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let i=t;const a=e.options;if(a&&(a.params||a.delay)&&(i=t.createSubContext(a),i.transformIntoNewTimeline(),null!=a.delay)){i.previousNode.type==ii.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=E4);const l=up(a.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(l=>Gc(this,l,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let i=t.currentTimeline.currentTime;const a=e.options&&e.options.delay?up(e.options.delay):0;e.steps.forEach(l=>{const d=t.createSubContext(e.options);a&&d.delayNextStep(a),Gc(this,l,d),i=Math.max(i,d.currentTimeline.currentTime),r.push(d.currentTimeline)}),r.forEach(l=>t.currentTimeline.mergeTimelineCollectedStyles(l)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return _4(t.params?rS(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const a=e.style;a.type==ii.Keyframes?this.visitKeyframes(a,t):(t.incrementTime(r.duration),this.visitStyle(a,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const a=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(a):r.setStyles(e.styles,a,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,a=r.duration,d=t.createSubContext().currentTimeline;d.easing=r.easing,e.styles.forEach(h=>{const p=h.offset||0;d.forwardTime(p*a),d.setStyles(h.styles,h.easing,t.errors,t.options),d.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(d),t.transformIntoNewTimeline(i+a),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,i=e.options||{},a=i.delay?up(i.delay):0;a&&(t.previousNode.type===ii.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=E4);let l=r;const d=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=d.length;let h=null;d.forEach((p,y)=>{t.currentQueryIndex=y;const S=t.createSubContext(e.options,p);a&&S.delayNextStep(a),p===t.element&&(h=S.currentTimeline),Gc(this,e.animation,S),S.currentTimeline.applyStylesToKeyframe();const R=S.currentTimeline.currentTime;l=Math.max(l,R)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),h&&(t.currentTimeline.mergeTimelineCollectedStyles(h),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,i=t.currentTimeline,a=e.timings,l=Math.abs(a.duration),d=l*(t.currentQueryTotal-1);let h=l*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":h=d-h;break;case"full":h=r.currentStaggerTime}const y=t.currentTimeline;h&&y.delayNextStep(h);const S=y.currentTime;Gc(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=i.currentTime-S+(i.startTime-r.currentTimeline.startTime)}}const E4={};class w9{constructor(e,t,r,i,a,l,d,h){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=a,this.errors=l,this.timelines=d,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=E4,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new S4(this._driver,t,0),d.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=up(r.duration)),null!=r.delay&&(i.delay=up(r.delay));const a=r.params;if(a){let l=i.params;l||(l=this.options.params={}),Object.keys(a).forEach(d=>{(!t||!l.hasOwnProperty(d))&&(l[d]=rS(a[d],l,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return e}createSubContext(e=null,t,r){const i=t||this.element,a=new w9(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(e){return this.previousNode=E4,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},a=new Ale(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(a),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,i,a,l){let d=[];if(i&&d.push(this.element),e.length>0){e=(e=e.replace(Cle,"."+this._enterClassName)).replace(Ele,"."+this._leaveClassName);const h=1!=r;let p=this._driver.query(this.element,e,h);0!==r&&(p=r<0?p.slice(p.length+r,p.length):p.slice(0,r)),d.push(...p)}return!a&&0==d.length&&l.push(function Ose(n){return new At(3014,!1)}()),d}}class S4{constructor(e,t,r,i){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new S4(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||dp),this._currentKeyframe.set(t,dp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,i){t&&this._previousKeyframe.set("easing",t);const a=i&&i.params||{},l=function Dle(n,e){const t=new Map;let r;return n.forEach(i=>{if("*"===i){r??=e.keys();for(let a of r)t.set(a,dp)}else for(let[a,l]of i)t.set(a,l)}),t}(e,this._globalTimelineStyles);for(let[d,h]of l){const p=rS(h,a,r);this._pendingStyles.set(d,p),this._localTimelineStyles.has(d)||this._backFill.set(d,this._globalTimelineStyles.get(d)??dp),this._updateStyle(d,p)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((d,h)=>{const p=new Map([...this._backFill,...d]);p.forEach((y,S)=>{"!"===y?e.add(S):y===dp&&t.add(S)}),r||p.set("offset",h/this.duration),i.push(p)});const a=[...e.values()],l=[...t.values()];if(r){const d=i[0],h=new Map(d);d.set("offset",0),h.set("offset",1),i=[d,h]}return _9(this.element,i,a,l,this.duration,this.startTime,this.easing,!1)}}class Ale extends S4{constructor(e,t,r,i,a,l,d=!1){super(e,t,l.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=a,this._stretchStartingKeyframe=d,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const a=[],l=r+t,d=t/l,h=new Map(e[0]);h.set("offset",0),a.push(h);const p=new Map(e[0]);p.set("offset",tU(d)),a.push(p);const y=e.length-1;for(let S=1;S<=y;S++){let R=new Map(e[S]);const q=t+R.get("offset")*r;R.set("offset",tU(q/l)),a.push(R)}r=l,t=0,i="",e=a}return _9(this.element,e,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function tU(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}function nU(n,e,t,r,i,a,l,d,h,p,y,S,R){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:a,toState:r,toStyles:l,timelines:d,queriedElements:h,preStyleProps:p,postStyleProps:y,totalTime:S,errors:R}}const C9={};class rU{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,i){return function Mle(n,e,t,r,i){return n.some(a=>a(e,t,r,i))}(this.ast.matchers,e,t,r,i)}buildStyles(e,t,r){let i=this._stateStyles.get("*");return void 0!==e&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,r):new Map}build(e,t,r,i,a,l,d,h,p,y){const S=[],R=this.ast.options&&this.ast.options.params||C9,B=d&&d.params||C9,q=this.buildStyles(r,B,S),V=h&&h.params||C9,ee=this.buildStyles(i,V,S),ne=new Set,he=new Map,re=new Map,ce="void"===i,pe={params:iU(V,R),delay:this.ast.options?.delay},oe=y?[]:x9(e,t,this.ast.animation,a,l,q,ee,pe,p,S);let Ae=0;return oe.forEach(De=>{Ae=Math.max(De.duration+De.delay,Ae)}),S.length?nU(t,this._triggerName,r,i,ce,q,ee,[],[],he,re,Ae,S):(oe.forEach(De=>{const Ce=De.element,_e=Wc(he,Ce,new Set);De.preStyleProps.forEach(Be=>_e.add(Be));const Re=Wc(re,Ce,new Set);De.postStyleProps.forEach(Be=>Re.add(Be)),Ce!==t&&ne.add(Ce)}),nU(t,this._triggerName,r,i,ce,q,ee,oe,[...ne.values()],he,re,Ae))}}function iU(n,e){const t={...e};return Object.entries(n).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class Tle{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r=new Map,i=iU(e,this.defaultParams);return this.styles.styles.forEach(a=>{"string"!=typeof a&&a.forEach((l,d)=>{l&&(l=rS(l,i,t));const h=this.normalizer.normalizePropertyName(d,t);l=this.normalizer.normalizeStyleValue(d,h,l,t),r.set(d,l)})}),r}}class Nle{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{const a=i.options&&i.options.params||{};this.states.set(i.name,new Tle(i.style,a,r))}),oU(this.states,"true","1"),oU(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new rU(e,i,this.states))}),this.fallbackTransition=function Ole(n,e,t){const r=[(l,d)=>!0],i={type:ii.Sequence,steps:[],options:null},a={type:ii.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new rU(n,a,e)}(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,i){return this.transitionFactories.find(l=>l.match(e,t,r,i))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function oU(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const Rle=new k4;class Fle{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const r=[],i=[],a=v9(this._driver,t,r,i);if(r.length)throw function Vse(n){return new At(3503,!1)}();i.length,this._animations.set(e,a)}_buildPlayer(e,t,r){const i=e.element,a=jj(this._normalizer,e.keyframes,t,r);return this._driver.animate(i,a,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const i=[],a=this._animations.get(e);let l;const d=new Map;if(a?(l=x9(this._driver,t,a,h9,b4,new Map,new Map,r,Rle,i),l.forEach(y=>{const S=Wc(d,y.element,new Map);y.postStyleProps.forEach(R=>S.set(R,null))})):(i.push(function qse(){return new At(3300,!1)}()),l=[]),i.length)throw function jse(n){return new At(3504,!1)}();d.forEach((y,S)=>{y.forEach((R,B)=>{y.set(B,this._driver.computeStyle(S,B,dp))})});const p=lg(l.map(y=>{const S=d.get(y.element);return this._buildPlayer(y,new Map,S)}));return this._playersById.set(e,p),p.onDestroy(()=>this.destroy(e)),this.players.push(p),p}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function Use(n){return new At(3301,!1)}();return t}listen(e,t,r,i){const a=l9(t,"","","");return a9(this._getPlayer(e),r,a,i),()=>{}}command(e,t,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r){const l=i[0]||{};return void this.create(e,t,l)}const a=this._getPlayer(e);switch(r){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const aU="ng-animate-queued",k9="ng-animate-disabled",Vle=[],sU={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qle={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Eu="__ng_removed";class E9{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value"),i=r?e.value:e;if(this.value=function $le(n){return n??null}(i),r){const{value:a,...l}=e;this.options=l}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const iS="void",S9=new E9(iS);class jle{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Nd(t,this._hostClassName)}listen(e,t,r,i){if(!this._triggers.has(t))throw function Hse(n,e){return new At(3302,!1)}();if(null==r||0==r.length)throw function $se(n){return new At(3303,!1)}();if(!function Wle(n){return"start"==n||"done"==n}(r))throw function Wse(n,e){return new At(3400,!1)}();const a=Wc(this._elementListeners,e,[]),l={name:t,phase:r,callback:i};a.push(l);const d=Wc(this._engine.statesByElement,e,new Map);return d.has(t)||(Nd(e,v4),Nd(e,v4+"-"+t),d.set(t,S9)),()=>{this._engine.afterFlush(()=>{const h=a.indexOf(l);h>=0&&a.splice(h,1),this._triggers.has(t)||d.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function Gse(n){return new At(3401,!1)}();return t}trigger(e,t,r,i=!0){const a=this._getTrigger(t),l=new A9(this.id,t,e);let d=this._engine.statesByElement.get(e);d||(Nd(e,v4),Nd(e,v4+"-"+t),this._engine.statesByElement.set(e,d=new Map));let h=d.get(t);const p=new E9(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&h&&p.absorbOptions(h.options),d.set(t,p),h||(h=S9),p.value!==iS&&h.value===p.value){if(!function Yle(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let i=0;i{i0(e,ee),Ih(e,ne)})}return}const R=Wc(this._engine.playersByElement,e,[]);R.forEach(V=>{V.namespaceId==this.id&&V.triggerName==t&&V.queued&&V.destroy()});let B=a.matchTransition(h.value,p.value,e,p.params),q=!1;if(!B){if(!i)return;B=a.fallbackTransition,q=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:B,fromState:h,toState:p,player:l,isFallbackTransition:q}),q||(Nd(e,aU),l.onStart(()=>{c1(e,aU)})),l.onDone(()=>{let V=this.players.indexOf(l);V>=0&&this.players.splice(V,1);const ee=this._engine.playersByElement.get(e);if(ee){let ne=ee.indexOf(l);ne>=0&&ee.splice(ne,1)}}),this.players.push(l),R.push(l),l}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,y4,!0);r.forEach(i=>{if(i[Eu])return;const a=this._engine.fetchNamespacesByElement(i);a.size?a.forEach(l=>l.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,r,i){const a=this._engine.statesByElement.get(e),l=new Map;if(a){const d=[];if(a.forEach((h,p)=>{if(l.set(p,h.value),this._triggers.has(p)){const y=this.trigger(e,p,iS,i);y&&d.push(y)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,l),r&&lg(d).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const i=new Set;t.forEach(a=>{const l=a.name;if(i.has(l))return;i.add(l);const h=this._triggers.get(l).fallbackTransition,p=r.get(l)||S9,y=new E9(iS),S=new A9(this.id,l,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:l,transition:h,fromState:p,toState:y,player:S,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(r.totalAnimations){const a=r.players.length?r.playersByQueriedElement.get(e):[];if(a&&a.length)i=!0;else{let l=e;for(;l=l.parentNode;)if(r.statesByElement.get(l)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{const a=e[Eu];(!a||a===sU)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){Nd(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const a=r.element,l=this._elementListeners.get(a);l&&l.forEach(d=>{if(d.name==r.triggerName){const h=l9(a,r.triggerName,r.fromState.value,r.toState.value);h._data=e,a9(r.player,d.phase,h,d.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const a=r.transition.ast.depCount,l=i.transition.ast.depCount;return 0==a||0==l?a-l:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}}class Ule{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,r,i){this.bodyNode=e,this.driver=t,this._normalizer=r,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new jle(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let l=!1,d=this.driver.getParentElement(t);for(;d;){const h=i.get(d);if(h){const p=r.indexOf(h);r.splice(p+1,0,e),l=!0;break}d=this.driver.getParentElement(d)}l||r.unshift(e)}else r.push(e);return i.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let i=this._namespaceLookup[e];i&&i.register(t,r)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r)for(let i of r.values())if(i.namespaceId){const a=this._fetchNamespace(i.namespaceId);a&&t.add(a)}return t}trigger(e,t,r,i){if(A4(t)){const a=this._fetchNamespace(e);if(a)return a.trigger(t,r,i),!0}return!1}insertNode(e,t,r,i){if(!A4(t))return;const a=t[Eu];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;const l=this.collectedLeaveElements.indexOf(t);l>=0&&this.collectedLeaveElements.splice(l,1)}if(e){const l=this._fetchNamespace(e);l&&l.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Nd(e,k9)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),c1(e,k9))}removeNode(e,t,r){if(A4(t)){this.scheduler?.notify();const i=e?this._fetchNamespace(e):null;i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r);const a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,r,i,a){this.collectedLeaveElements.push(t),t[Eu]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:a}}listen(e,t,r,i,a){return A4(t)?this._fetchNamespace(e).listen(t,r,i,a):()=>{}}_buildInstruction(e,t,r,i,a){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,t,a)}destroyInnerAnimations(e){let t=this.driver.query(e,y4,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,f9,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return lg(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Eu];if(t&&t.setForRemoval){if(e[Eu]=sU,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(k9)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];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;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?lg(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function Xse(n){return new At(3402,!1)}()}_flushAnimations(e,t){const r=new k4,i=[],a=new Map,l=[],d=new Map,h=new Map,p=new Map,y=new Set;this.disabledNodes.forEach(Oe=>{y.add(Oe);const Ie=this.driver.query(Oe,".ng-animate-queued",!0);for(let Ze=0;Ze{const Ze=h9+V++;q.set(Ie,Ze),Oe.forEach(Pe=>Nd(Pe,Ze))});const ee=[],ne=new Set,he=new Set;for(let Oe=0;Oene.add(Pe)):he.add(Ie))}const re=new Map,ce=dU(R,Array.from(ne));ce.forEach((Oe,Ie)=>{const Ze=b4+V++;re.set(Ie,Ze),Oe.forEach(Pe=>Nd(Pe,Ze))}),e.push(()=>{B.forEach((Oe,Ie)=>{const Ze=q.get(Ie);Oe.forEach(Pe=>c1(Pe,Ze))}),ce.forEach((Oe,Ie)=>{const Ze=re.get(Ie);Oe.forEach(Pe=>c1(Pe,Ze))}),ee.forEach(Oe=>{this.processLeaveNode(Oe)})});const pe=[],oe=[];for(let Oe=this._namespaceList.length-1;Oe>=0;Oe--)this._namespaceList[Oe].drainQueuedTransitions(t).forEach(Ze=>{const Pe=Ze.player,bt=Ze.element;if(pe.push(Pe),this.collectedEnterElements.length){const Rt=bt[Eu];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(Ze.triggerName)){const Zt=Rt.previousTriggersValues.get(Ze.triggerName),Lt=this.statesByElement.get(Ze.element);if(Lt&&Lt.has(Ze.triggerName)){const Ht=Lt.get(Ze.triggerName);Ht.value=Zt,Lt.set(Ze.triggerName,Ht)}}return void Pe.destroy()}}const Dt=!S||!this.driver.containsElement(S,bt),ht=re.get(bt),et=q.get(bt),Et=this._buildInstruction(Ze,r,et,ht,Dt);if(Et.errors&&Et.errors.length)return void oe.push(Et);if(Dt)return Pe.onStart(()=>i0(bt,Et.fromStyles)),Pe.onDestroy(()=>Ih(bt,Et.toStyles)),void i.push(Pe);if(Ze.isFallbackTransition)return Pe.onStart(()=>i0(bt,Et.fromStyles)),Pe.onDestroy(()=>Ih(bt,Et.toStyles)),void i.push(Pe);const mn=[];Et.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||mn.push(Rt)}),Et.timelines=mn,r.append(bt,Et.timelines);const Pt={instruction:Et,player:Pe,element:bt};l.push(Pt),Et.queriedElements.forEach(Rt=>Wc(d,Rt,[]).push(Pe)),Et.preStyleProps.forEach((Rt,Zt)=>{if(Rt.size){let Lt=h.get(Zt);Lt||h.set(Zt,Lt=new Set),Rt.forEach((Ht,tn)=>Lt.add(tn))}}),Et.postStyleProps.forEach((Rt,Zt)=>{let Lt=p.get(Zt);Lt||p.set(Zt,Lt=new Set),Rt.forEach((Ht,tn)=>Lt.add(tn))})});if(oe.length){const Oe=[];oe.forEach(Ie=>{Oe.push(function Yse(n,e){return new At(3505,!1)}(Ie.triggerName,Ie.errors))}),pe.forEach(Ie=>Ie.destroy()),this.reportError(Oe)}const Ae=new Map,De=new Map;l.forEach(Oe=>{const Ie=Oe.element;r.has(Ie)&&(De.set(Ie,Ie),this._beforeAnimationBuild(Oe.player.namespaceId,Oe.instruction,Ae))}),i.forEach(Oe=>{const Ie=Oe.element;this._getPreviousPlayers(Ie,!1,Oe.namespaceId,Oe.triggerName,null).forEach(Pe=>{Wc(Ae,Ie,[]).push(Pe),Pe.destroy()})});const Ce=ee.filter(Oe=>hU(Oe,h,p)),_e=new Map;cU(_e,this.driver,he,p,dp).forEach(Oe=>{hU(Oe,h,p)&&Ce.push(Oe)});const Be=new Map;B.forEach((Oe,Ie)=>{cU(Be,this.driver,new Set(Oe),h,"!")}),Ce.forEach(Oe=>{const Ie=_e.get(Oe),Ze=Be.get(Oe);_e.set(Oe,new Map([...Ie?.entries()??[],...Ze?.entries()??[]]))});const Ge=[],Ye=[],$e={};l.forEach(Oe=>{const{element:Ie,player:Ze,instruction:Pe}=Oe;if(r.has(Ie)){if(y.has(Ie))return Ze.onDestroy(()=>Ih(Ie,Pe.toStyles)),Ze.disabled=!0,Ze.overrideTotalTime(Pe.totalTime),void i.push(Ze);let bt=$e;if(De.size>1){let ht=Ie;const et=[];for(;ht=ht.parentNode;){const Et=De.get(ht);if(Et){bt=Et;break}et.push(ht)}et.forEach(Et=>De.set(Et,bt))}const Dt=this._buildAnimation(Ze.namespaceId,Pe,Ae,a,Be,_e);if(Ze.setRealPlayer(Dt),bt===$e)Ge.push(Ze);else{const ht=this.playersByElement.get(bt);ht&&ht.length&&(Ze.parentPlayer=lg(ht)),i.push(Ze)}}else i0(Ie,Pe.fromStyles),Ze.onDestroy(()=>Ih(Ie,Pe.toStyles)),Ye.push(Ze),y.has(Ie)&&i.push(Ze)}),Ye.forEach(Oe=>{const Ie=a.get(Oe.element);if(Ie&&Ie.length){const Ze=lg(Ie);Oe.setRealPlayer(Ze)}}),i.forEach(Oe=>{Oe.parentPlayer?Oe.syncPlayerEvents(Oe.parentPlayer):Oe.destroy()});for(let Oe=0;Oe!Dt.destroyed);bt.length?Gle(this,Ie,bt):this.processLeaveNode(Ie)}return ee.length=0,Ge.forEach(Oe=>{this.players.push(Oe),Oe.onDone(()=>{Oe.destroy();const Ie=this.players.indexOf(Oe);this.players.splice(Ie,1)}),Oe.play()}),Ge}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,i,a){let l=[];if(t){const d=this.playersByQueriedElement.get(e);d&&(l=d)}else{const d=this.playersByElement.get(e);if(d){const h=!a||a==iS;d.forEach(p=>{p.queued||!h&&p.triggerName!=i||l.push(p)})}}return(r||i)&&(l=l.filter(d=>!(r&&r!=d.namespaceId||i&&i!=d.triggerName))),l}_beforeAnimationBuild(e,t,r){const i=t.triggerName,a=t.element,l=t.isRemovalTransition?void 0:e,d=t.isRemovalTransition?void 0:i;for(const h of t.timelines){const p=h.element,y=p!==a,S=Wc(r,p,[]);this._getPreviousPlayers(p,y,l,d,t.toState).forEach(B=>{const q=B.getRealPlayer();q.beforeDestroy&&q.beforeDestroy(),B.destroy(),S.push(B)})}i0(a,t.fromStyles)}_buildAnimation(e,t,r,i,a,l){const d=t.triggerName,h=t.element,p=[],y=new Set,S=new Set,R=t.timelines.map(q=>{const V=q.element;y.add(V);const ee=V[Eu];if(ee&&ee.removedBeforeQueried)return new tS(q.duration,q.delay);const ne=V!==h,he=function Xle(n){const e=[];return uU(n,e),e}((r.get(V)||Vle).map(Ae=>Ae.getRealPlayer())).filter(Ae=>{const De=Ae;return!!De.element&&De.element===V}),re=a.get(V),ce=l.get(V),pe=jj(this._normalizer,q.keyframes,re,ce),oe=this._buildPlayer(q,pe,he);if(q.subTimeline&&i&&S.add(V),ne){const Ae=new A9(e,d,V);Ae.setRealPlayer(oe),p.push(Ae)}return oe});p.forEach(q=>{Wc(this.playersByQueriedElement,q.element,[]).push(q),q.onDone(()=>function Hle(n,e,t){let r=n.get(e);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&n.delete(e)}return r}(this.playersByQueriedElement,q.element,q))}),y.forEach(q=>Nd(q,Xj));const B=lg(R);return B.onDestroy(()=>{y.forEach(q=>c1(q,Xj)),Ih(h,t.toStyles)}),S.forEach(q=>{Wc(i,q,[]).push(B)}),B}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new tS(e.duration,e.delay)}}class A9{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new tS,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>a9(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Wc(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function A4(n){return n&&1===n.nodeType}function lU(n,e){const t=n.style.display;return n.style.display=e??"none",t}function cU(n,e,t,r,i){const a=[];t.forEach(h=>a.push(lU(h)));const l=[];r.forEach((h,p)=>{const y=new Map;h.forEach(S=>{const R=e.computeStyle(p,S,i);y.set(S,R),(!R||0==R.length)&&(p[Eu]=qle,l.push(p))}),n.set(p,y)});let d=0;return t.forEach(h=>lU(h,a[d++])),l}function dU(n,e){const t=new Map;if(n.forEach(d=>t.set(d,[])),0==e.length)return t;const i=new Set(e),a=new Map;function l(d){if(!d)return 1;let h=a.get(d);if(h)return h;const p=d.parentNode;return h=t.has(p)?p:i.has(p)?1:l(p),a.set(d,h),h}return e.forEach(d=>{const h=l(d);1!==h&&t.get(h).push(d)}),t}function Nd(n,e){n.classList?.add(e)}function c1(n,e){n.classList?.remove(e)}function Gle(n,e,t){lg(t).onDone(()=>n.processLeaveNode(e))}function uU(n,e){for(let t=0;ti.add(a)):e.set(n,r),t.delete(n),!0}class oS{constructor(e,t,r,i){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new Ule(e.body,t,r,i),this._timelineEngine=new Fle(e.body,t,r),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(e,t,r,i,a){const l=e+"-"+i;let d=this._triggerCache[l];if(!d){const h=[],p=[],y=v9(this._driver,a,h,p);if(h.length)throw function Lse(n,e){return new At(3404,!1)}();p.length,d=function Ile(n,e,t){return new Nle(n,e,t)}(i,y,this._normalizer),this._triggerCache[l]=d}this._transitionEngine.registerTrigger(t,i,d)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,i){this._transitionEngine.insertNode(e,t,r,i)}onRemove(e,t,r){this._transitionEngine.removeNode(e,t,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,i){if("@"==r.charAt(0)){const[a,l]=Uj(r),d=i;this._timelineEngine.command(a,t,l,d)}else this._transitionEngine.trigger(e,t,r,i)}listen(e,t,r,i,a){if("@"==r.charAt(0)){const[l,d]=Uj(r);return this._timelineEngine.listen(l,t,d,a)}return this._transitionEngine.listen(e,t,r,i,a)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}}class aS{static#e=this.initialStylesByElement=new WeakMap;constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let i=aS.initialStylesByElement.get(e);i||aS.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Ih(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ih(this._element,this._initialStyles),this._endStyles&&(Ih(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(aS.initialStylesByElement.delete(this._element),this._startStyles&&(i0(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(i0(this._element,this._endStyles),this._endStyles=null),Ih(this._element,this._initialStyles),this._state=3)}}function D9(n){let e=null;return n.forEach((t,r)=>{(function Zle(n){return"display"===n||"position"===n})(r)&&(e=e||new Map,e.set(r,t))}),e}class fU{constructor(e,t,r,i){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(e,t,r){return e.animate(this._convertKeyframesToObject(t),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&e.set(i,this._finished?r:b9(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class pU{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return $j(e,t)}getParentElement(e){return c9(e)}query(e,t,r){return Wj(e,t,r)}computeStyle(e,t,r){return b9(e,t)}animate(e,t,r,i,a,l=[]){const h={duration:r,delay:i,fill:0==i?"both":"forwards"};a&&(h.easing=a);const p=new Map,y=l.filter(B=>B instanceof fU);(function lle(n,e){return 0===n||0===e})(r,i)&&y.forEach(B=>{B.currentSnapshot.forEach((q,V)=>p.set(V,q))});let S=function ole(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}(t).map(B=>new Map(B));S=function cle(n,e,t){if(t.size&&e.length){let r=e[0],i=[];if(t.forEach((a,l)=>{r.has(l)||i.push(l),r.set(l,a)}),i.length)for(let a=1;al.set(d,b9(n,d)))}}return e}(e,S,p);const R=function Kle(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=D9(e[0]),e.length>1&&(r=D9(e[e.length-1]))):e instanceof Map&&(t=D9(e)),t||r?new aS(n,t,r):null}(e,S);return new fU(e,S,h,R)}}const mU="@.disabled";class gU{constructor(e,t,r,i){this.namespaceId=e,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,i=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,i){this.delegate.setAttribute(e,t,r,i)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,i){this.delegate.setStyle(e,t,r,i)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==mU?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Qle extends gU{constructor(e,t,r,i,a){super(t,r,i,a),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==mU?(r=void 0===r||!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,t.slice(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const i=function Jle(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let a=t.slice(1),l="";return"@"!=a.charAt(0)&&([a,l]=function ece(n){const e=n.indexOf("."),t=n.substring(0,e),r=n.slice(e+1);return[t,r]}(a)),this.engine.listen(this.namespaceId,i,a,l,d=>{const h=d._data||-1;this.factory.scheduleListenerCallback(h,r,d)})}return this.delegate.listen(e,t,r)}}class tce{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,a)=>{const l=a?.parentNode(i);l&&a.removeChild(l,i)}}createRenderer(e,t){const i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){const p=this._rendererCache;let y=p.get(i);if(!y){const S=()=>p.delete(i);y=new gU("",i,this.engine,S),p.set(i,y)}return y}const a=t.id,l=t.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const d=p=>{Array.isArray(p)?p.forEach(d):this.engine.registerTrigger(a,l,e,p.name,p)};return t.data.animation.forEach(d),new Qle(this,l,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){if(e>=0&&et(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(a=>{const[l,d]=a;l(d)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}class sS extends oS{constructor(e,t,r){super(e,t,r,xn(Y_,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(t){return new(t||sS)(zt(Mr),zt(d9),zt(u9))};static#t=this.\u0275prov=_n({token:sS,factory:sS.\u0275fac})}const bU=[{provide:u9,useFactory:function nce(){return new Zj}},{provide:oS,useClass:sS},{provide:mv,useFactory:function rce(n,e,t){return new tce(n,e,t)},deps:[t0,oS,On]}],M9=[{provide:d9,useFactory:()=>new pU},{provide:Co,useValue:"BrowserAnimations"},...bU],T9=[{provide:d9,useClass:r0},{provide:Co,useValue:"NoopAnimations"},...bU];class lS{static withConfig(e){return{ngModule:lS,providers:e.disableAnimations?T9:M9}}static#e=this.\u0275fac=function(t){return new(t||lS)};static#t=this.\u0275mod=$n({type:lS,exports:[cp]});static#n=this.\u0275inj=Er({providers:M9,imports:[cp]})}class I9{static#e=this.\u0275fac=function(t){return new(t||I9)};static#t=this.\u0275mod=$n({type:I9,exports:[cp]});static#n=this.\u0275inj=Er({providers:T9,imports:[cp]})}function yc(n){return null!=n&&"false"!=`${n}`}function Xc(n,e=0){return function ice(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function M4(n){return Array.isArray(n)?n:[n]}function Za(n){return null==n?"":"string"==typeof n?n:`${n}px`}function hp(n){return n instanceof jn?n.nativeElement:n}let N9,d1;try{N9=typeof Intl<"u"&&Intl.v8BreakIterator}catch{N9=!1}class Fi{constructor(e){this._platformId=e,this.isBrowser=this._platformId?lp(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!N9)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(t){return new(t||Fi)(zt(Rl))};static#t=this.\u0275prov=_n({token:Fi,factory:Fi.\u0275fac,providedIn:"root"})}class O9{static#e=this.\u0275fac=function(t){return new(t||O9)};static#t=this.\u0275mod=$n({type:O9});static#n=this.\u0275inj=Er({})}const vU=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function yU(){if(d1)return d1;if("object"!=typeof document||!document)return d1=new Set(vU),d1;let n=document.createElement("input");return d1=new Set(vU.filter(e=>(n.setAttribute("type",e),n.type===e))),d1}let cS;function cg(n){return function oce(){if(null==cS&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>cS=!0}))}finally{cS=cS||!1}return cS}()?n:!!n.capture}var Su;let T4,a0,R9;function _U(){if(null==a0){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return a0=!1,a0;if("scrollBehavior"in document.documentElement.style)a0=!0;else{const n=Element.prototype.scrollTo;a0=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return a0}function dS(){if("object"!=typeof document||!document)return Su.NORMAL;if(null==T4){const n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const t=document.createElement("div"),r=t.style;r.width="2px",r.height="1px",n.appendChild(t),document.body.appendChild(n),T4=Su.NORMAL,0===n.scrollLeft&&(n.scrollLeft=1,T4=0===n.scrollLeft?Su.NEGATED:Su.INVERTED),n.remove()}return T4}function sce(n){if(function ace(){if(null==R9){const n=typeof document<"u"?document.head:null;R9=!(!n||!n.createShadowRoot&&!n.attachShadow)}return R9}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function uS(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function fp(n){return n.composedPath?n.composedPath()[0]:n.target}function F9(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}!function(n){n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED"}(Su||(Su={}));const u1=new yr(n=>n.complete());function xU(n,e,t,r){return new(t||(t=Promise))(function(a,l){function d(y){try{p(r.next(y))}catch(S){l(S)}}function h(y){try{p(r.throw(y))}catch(S){l(S)}}function p(y){y.done?a(y.value):function i(a){return a instanceof t?a:new t(function(l){l(a)})}(y.value).then(d,h)}p((r=r.apply(n,e||[])).next())})}Object.create;function z9(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.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(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dg(n){return this instanceof dg?(this.v=n,this):new dg(n)}function CU(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(n,e||[]),a=[];return i={},d("next"),d("throw"),d("return",function l(B){return function(q){return Promise.resolve(q).then(B,S)}}),i[Symbol.asyncIterator]=function(){return this},i;function d(B,q){r[B]&&(i[B]=function(V){return new Promise(function(ee,ne){a.push([B,V,ee,ne])>1||h(B,V)})},q&&(i[B]=q(i[B])))}function h(B,q){try{!function p(B){B.value instanceof dg?Promise.resolve(B.value.v).then(y,S):R(a[0][2],B)}(r[B](q))}catch(V){R(a[0][3],V)}}function y(B){h("next",B)}function S(B){h("throw",B)}function R(B,q){B(q),a.shift(),a.length&&h(a[0][0],a[0][1])}}function kU(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=z9(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=n[a]&&function(l){return new Promise(function(d,h){(function i(a,l,d,h){Promise.resolve(h).then(function(p){a({value:p,done:d})},l)})(d,h,(l=n[a](l)).done,l.value)})}}}Object.create;"function"==typeof SuppressedError&&SuppressedError;const V9=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function EU(n){return me(n?.then)}function SU(n){return me(n[Xn])}function AU(n){return Symbol.asyncIterator&&me(n?.[Symbol.asyncIterator])}function DU(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 MU=function Tce(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function TU(n){return me(n?.[MU])}function IU(n){return CU(this,arguments,function*(){const t=n.getReader();try{for(;;){const{value:r,done:i}=yield dg(t.read());if(i)return yield dg(void 0);yield yield dg(r)}}finally{t.releaseLock()}})}function NU(n){return me(n?.getReader)}function ml(n){if(n instanceof yr)return n;if(null!=n){if(SU(n))return function Ice(n){return new yr(e=>{const t=n[Xn]();if(me(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(V9(n))return function Nce(n){return new yr(e=>{for(let t=0;t{n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,rt)})}(n);if(AU(n))return OU(n);if(TU(n))return function Rce(n){return new yr(e=>{for(const t of n)if(e.next(t),e.closed)return;e.complete()})}(n);if(NU(n))return function Fce(n){return OU(IU(n))}(n)}throw DU(n)}function OU(n){return new yr(e=>{(function Pce(n,e){var t,r,i,a;return xU(this,void 0,void 0,function*(){try{for(t=kU(n);!(r=yield t.next()).done;){const l=r.value;if(e.next(l),e.closed)return}}catch(l){i={error:l}}finally{try{r&&!r.done&&(a=t.return)&&(yield a.call(t))}finally{if(i)throw i.error}}e.complete()})})(n,e).catch(t=>e.error(t))})}function pp(n,e,t,r=0,i=!1){const a=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(a),!i)return a}function h1(n,e,t=1/0){return me(e)?h1((r,i)=>kt((a,l)=>e(r,a,i,l))(ml(n(r,i))),t):("number"==typeof e&&(t=e),Hr((r,i)=>function Bce(n,e,t,r,i,a,l,d){const h=[];let p=0,y=0,S=!1;const R=()=>{S&&!h.length&&!p&&e.complete()},B=V=>p{a&&e.next(V),p++;let ee=!1;ml(t(V,y++)).subscribe(Yn(e,ne=>{i?.(ne),a?B(ne):e.next(ne)},()=>{ee=!0},void 0,()=>{if(ee)try{for(p--;h.length&&pq(ne)):q(ne)}R()}catch(ne){e.error(ne)}}))};return n.subscribe(Yn(e,B,()=>{S=!0,R()})),()=>{d?.()}}(r,i,n,t)))}const{isArray:Lce}=Array;function q9(n){return kt(e=>function zce(n,e){return Lce(e)?n(...e):n(e)}(n,e))}const Vce=["addListener","removeListener"],qce=["addEventListener","removeEventListener"],jce=["on","off"];function Nh(n,e,t,r){if(me(t)&&(r=t,t=void 0),r)return Nh(n,e,t).pipe(q9(r));const[i,a]=function $ce(n){return me(n.addEventListener)&&me(n.removeEventListener)}(n)?qce.map(l=>d=>n[l](e,d,t)):function Uce(n){return me(n.addListener)&&me(n.removeListener)}(n)?Vce.map(RU(n,e)):function Hce(n){return me(n.on)&&me(n.off)}(n)?jce.map(RU(n,e)):[];if(!i&&V9(n))return h1(l=>Nh(l,e,t))(ml(n));if(!i)throw new TypeError("Invalid event target");return new yr(l=>{const d=(...h)=>l.next(1a(d)})}function RU(n,e){return t=>r=>n[t](e,r)}class Wce extends ke{constructor(e,t){super()}schedule(e,t=0){return this}}const I4={setInterval(n,e,...t){const{delegate:r}=I4;return r?.setInterval?r.setInterval(n,e,...t):setInterval(n,e,...t)},clearInterval(n){const{delegate:e}=I4;return(e?.clearInterval||clearInterval)(n)},delegate:void 0};class j9 extends Wce{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var r;if(this.closed)return this;this.state=e;const i=this.id,a=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(a,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(a,this.id,t),this}requestAsyncId(e,t,r=0){return I4.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&I4.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let i,r=!1;try{this.work(e)}catch(a){r=!0,i=a||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,je(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}const U9={now:()=>(U9.delegate||Date).now(),delegate:void 0};class hS{constructor(e,t=hS.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,r){return new this.schedulerActionCtor(this,e).schedule(r,t)}}hS.now=U9.now;class H9 extends hS{constructor(e,t=hS.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}const N4=new H9(j9),Gce=N4;function FU(n){return n&&me(n.schedule)}function O4(n=0,e,t=Gce){let r=-1;return null!=e&&(FU(e)?t=e:r=e),new yr(i=>{let a=function Yce(n){return n instanceof Date&&!isNaN(n)}(n)?+n-t.now():n;a<0&&(a=0);let l=0;return t.schedule(function(){i.closed||(i.next(l++),0<=r?this.schedule(void 0,r):i.complete())},a)})}function R4(n,e=N4){return function Xce(n){return Hr((e,t)=>{let r=!1,i=null,a=null,l=!1;const d=()=>{if(a?.unsubscribe(),a=null,r){r=!1;const p=i;i=null,t.next(p)}l&&t.complete()},h=()=>{a=null,l&&t.complete()};e.subscribe(Yn(t,p=>{r=!0,i=p,a||ml(n(p)).subscribe(a=Yn(t,d,h))},()=>{l=!0,(!r||!a||a.closed)&&t.complete()}))})}(()=>O4(n,e))}function jr(n){return Hr((e,t)=>{ml(n).subscribe(Yn(t,()=>t.complete(),at)),!t.closed&&e.subscribe(t)})}const PU=cg({passive:!0});class f1{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return u1;const t=hp(e),r=this._monitoredElements.get(t);if(r)return r.subject;const i=new ln,a="cdk-text-field-autofilled",l=d=>{"cdk-text-field-autofill-start"!==d.animationName||t.classList.contains(a)?"cdk-text-field-autofill-end"===d.animationName&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>i.next({target:d.target,isAutofilled:!1}))):(t.classList.add(a),this._ngZone.run(()=>i.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",l,PU),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:i,unlisten:()=>{t.removeEventListener("animationstart",l,PU)}}),i}stopMonitoring(e){const t=hp(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static#e=this.\u0275fac=function(t){return new(t||f1)(zt(Fi),zt(On))};static#t=this.\u0275prov=_n({token:f1,factory:f1.\u0275fac,providedIn:"root"})}class fS{constructor(e,t){this._elementRef=e,this._autofillMonitor=t,this.cdkAutofill=new cn}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(e=>this.cdkAutofill.emit(e))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}static#e=this.\u0275fac=function(t){return new(t||fS)(Ve(jn),Ve(f1))};static#t=this.\u0275dir=hn({type:fS,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"},standalone:!0})}class pS{get minRows(){return this._minRows}set minRows(e){this._minRows=Xc(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Xc(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(e,t,r,i){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new ln,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=a=>{this._hasFocus="focus"===a.type},this._document=i,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Nh(this._getWindow(),"resize").pipe(R4(16),jr(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,i=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";i&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);const l=e.scrollHeight-4;return e.classList.remove(a),i&&(e.style.marginBottom=t),l}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const i=this._measureScrollHeight(),a=Math.max(i,this._cachedPlaceholderHeight||0);t.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}static#e=this.\u0275fac=function(t){return new(t||pS)(Ve(jn),Ve(Fi),Ve(On),Ve(Mr,8))};static#t=this.\u0275dir=hn({type:pS,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,r){1&t&&Fn("input",function(){return r._noopInputHandler()})},inputs:{minRows:[Ft.None,"cdkAutosizeMinRows","minRows"],maxRows:[Ft.None,"cdkAutosizeMaxRows","maxRows"],enabled:[Ft.HasDecoratorInputTransform,"cdkTextareaAutosize","enabled",fr],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],standalone:!0,features:[Gi]})}class mS{static#e=this.\u0275fac=function(t){return new(t||mS)};static#t=this.\u0275mod=$n({type:mS,imports:[fS,pS],exports:[fS,pS]});static#n=this.\u0275inj=Er({})}function BU(n,e=0){return Hr((t,r)=>{t.subscribe(Yn(r,i=>pp(r,n,()=>r.next(i),e),()=>pp(r,n,()=>r.complete(),e),i=>pp(r,n,()=>r.error(i),e)))})}function LU(n,e=0){return Hr((t,r)=>{r.add(n.schedule(()=>t.subscribe(r),e))})}function zU(n,e){if(!n)throw new Error("Iterable cannot be null");return new yr(t=>{pp(t,e,()=>{const r=n[Symbol.asyncIterator]();pp(t,e,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function tde(n,e){if(null!=n){if(SU(n))return function Kce(n,e){return ml(n).pipe(LU(e),BU(e))}(n,e);if(V9(n))return function Qce(n,e){return new yr(t=>{let r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}(n,e);if(EU(n))return function Zce(n,e){return ml(n).pipe(LU(e),BU(e))}(n,e);if(AU(n))return zU(n,e);if(TU(n))return function Jce(n,e){return new yr(t=>{let r;return pp(t,e,()=>{r=n[MU](),pp(t,e,()=>{let i,a;try{({value:i,done:a}=r.next())}catch(l){return void t.error(l)}a?t.complete():t.next(i)},0,!0)}),()=>me(r?.return)&&r.return()})}(n,e);if(NU(n))return function ede(n,e){return zU(IU(n),e)}(n,e)}throw DU(n)}function ug(n,e){return e?tde(n,e):ml(n)}const{isArray:nde}=Array,{getPrototypeOf:rde,prototype:ide,keys:ode}=Object;function VU(n){if(1===n.length){const e=n[0];if(nde(e))return{args:e,keys:null};if(function ade(n){return n&&"object"==typeof n&&rde(n)===ide}(e)){const t=ode(e);return{args:t.map(r=>e[r]),keys:t}}}return{args:n,keys:null}}function $9(n){return n[n.length-1]}function qU(n){return me($9(n))?n.pop():void 0}function gS(n){return FU($9(n))?n.pop():void 0}function jU(n,e){return n.reduce((t,r,i)=>(t[r]=e[i],t),{})}function bS(...n){const e=qU(n),{args:t,keys:r}=VU(n),i=new yr(a=>{const{length:l}=t;if(!l)return void a.complete();const d=new Array(l);let h=l,p=l;for(let y=0;y{S||(S=!0,p--),d[y]=R},()=>h--,void 0,()=>{(!h||!S)&&(p||a.next(r?jU(r,d):d),a.complete())}))}});return e?i.pipe(q9(e)):i}class vS{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(t){return new(t||vS)(Ve(hc),Ve(jn))};static#t=this.\u0275dir=hn({type:vS})}class Au extends vS{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Au)))(r||Au)}})();static#t=this.\u0275dir=hn({type:Au,features:[hr]})}const Du=new pn(""),lde={provide:Du,useExisting:Gn(()=>hg),multi:!0};class hg extends Au{writeValue(e){this.setProperty("checked",e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(hg)))(r||hg)}})();static#t=this.\u0275dir=hn({type:hg,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&Fn("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[Ir([lde]),hr]})}const cde={provide:Du,useExisting:Gn(()=>fg),multi:!0};const ude=new pn("");class fg extends vS{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dde(){const n=op()?op().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){const t=e??"";this.setProperty("value",t)}_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)}static#e=this.\u0275fac=function(t){return new(t||fg)(Ve(hc),Ve(jn),Ve(ude,8))};static#t=this.\u0275dir=hn({type:fg,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(t,r){1&t&&Fn("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Ir([cde]),hr]})}function pg(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function UU(n){return null!=n&&"number"==typeof n.length}const Ss=new pn(""),mg=new pn(""),hde=/^(?=.{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 HU{static min(e){return $U(e)}static max(e){return WU(e)}static required(e){return GU(e)}static requiredTrue(e){return XU(e)}static email(e){return YU(e)}static minLength(e){return KU(e)}static maxLength(e){return ZU(e)}static pattern(e){return QU(e)}static nullValidator(e){return null}static compose(e){return iH(e)}static composeAsync(e){return oH(e)}}function $U(n){return e=>{if(pg(e.value)||pg(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(pg(e.value)||pg(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}function GU(n){return pg(n.value)?{required:!0}:null}function XU(n){return!0===n.value?null:{required:!0}}function YU(n){return pg(n.value)||hde.test(n.value)?null:{email:!0}}function KU(n){return e=>pg(e.value)||!UU(e.value)?null:e.value.lengthUU(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function QU(n){if(!n)return F4;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),r=>{if(pg(r.value))return null;const i=r.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function F4(n){return null}function JU(n){return null!=n}function eH(n){return B3(n)?ug(n):n}function tH(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function nH(n,e){return e.map(t=>t(n))}function rH(n){return n.map(e=>function fde(n){return!n.validate}(e)?e:t=>e.validate(t))}function iH(n){if(!n)return null;const e=n.filter(JU);return 0==e.length?null:function(t){return tH(nH(t,e))}}function W9(n){return null!=n?iH(rH(n)):null}function oH(n){if(!n)return null;const e=n.filter(JU);return 0==e.length?null:function(t){return bS(nH(t,e).map(eH)).pipe(kt(tH))}}function G9(n){return null!=n?oH(rH(n)):null}function aH(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function sH(n){return n._rawValidators}function lH(n){return n._rawAsyncValidators}function X9(n){return n?Array.isArray(n)?n:[n]:[]}function P4(n,e){return Array.isArray(n)?n.includes(e):n===e}function cH(n,e){const t=X9(e);return X9(n).forEach(i=>{P4(t,i)||t.push(i)}),t}function dH(n,e){return X9(e).filter(t=>!P4(n,t))}class uH{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(e){this._rawValidators=e||[],this._composedValidatorFn=W9(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=G9(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class ql extends uH{get formDirective(){return null}get path(){return null}}class Oh extends uH{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hH{constructor(e){this._cd=e}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}}class p1 extends hH{constructor(e){super(e)}static#e=this.\u0275fac=function(t){return new(t||p1)(Ve(Oh,2))};static#t=this.\u0275dir=hn({type:p1,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Jn("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:[hr]})}class m1 extends hH{constructor(e){super(e)}static#e=this.\u0275fac=function(t){return new(t||m1)(Ve(ql,10))};static#t=this.\u0275dir=hn({type:m1,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Jn("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:[hr]})}const yS="VALID",L4="INVALID",g1="PENDING",_S="DISABLED";function Z9(n){return(z4(n)?n.validators:n)||null}function Q9(n,e){return(z4(e)?e.asyncValidators:n)||null}function z4(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function pH(n,e,t){const r=n.controls;if(!(e?Object.keys(r):r).length)throw new At(1e3,"");if(!r[t])throw new At(1001,"")}function mH(n,e,t){n._forEachChild((r,i)=>{if(void 0===t[i])throw new At(1002,"")})}class V4{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===yS}get invalid(){return this.status===L4}get pending(){return this.status==g1}get disabled(){return this.status===_S}get enabled(){return this.status!==_S}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(cH(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(cH(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(dH(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(dH(e,this._rawAsyncValidators))}hasValidator(e){return P4(this._rawValidators,e)}hasAsyncValidator(e){return P4(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=g1,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=_S,this.errors=null,this._forEachChild(r=>{r.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=yS,this._forEachChild(r=>{r.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yS||this.status===g1)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_S:yS}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=g1,this._hasOwnPendingAsyncValidator=!0;const t=eH(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new cn,this.statusChanges=new cn}_calculateStatus(){return this._allControlsDisabled()?_S:this.errors?L4:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(g1)?g1:this._anyControlsHaveStatus(L4)?L4:yS}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){z4(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){const t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function bde(n){return Array.isArray(n)?W9(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function vde(n){return Array.isArray(n)?G9(n):n||null}(this._rawAsyncValidators)}}class xS extends V4{constructor(e,t,r){super(Z9(t),Q9(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){mH(this,0,e),Object.keys(e).forEach(r=>{pH(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(r=>{const i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,a)=>{r=t(r,i,a)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class gH extends xS{}const s0=new pn("CallSetDisabledState",{providedIn:"root",factory:()=>wS}),wS="always";function q4(n,e){return[...e.path,n]}function CS(n,e,t=wS){J9(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function _de(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&bH(n,e)})}(n,e),function wde(n,e){const t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function xde(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&bH(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function yde(n,e){if(e.valueAccessor.setDisabledState){const t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function j4(n,e,t=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),H4(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function U4(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function J9(n,e){const t=sH(n);null!==e.validator?n.setValidators(aH(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const r=lH(n);null!==e.asyncValidator?n.setAsyncValidators(aH(r,e.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();U4(e._rawValidators,i),U4(e._rawAsyncValidators,i)}function H4(n,e){let t=!1;if(null!==n){if(null!==e.validator){const i=sH(n);if(Array.isArray(i)&&i.length>0){const a=i.filter(l=>l!==e.validator);a.length!==i.length&&(t=!0,n.setValidators(a))}}if(null!==e.asyncValidator){const i=lH(n);if(Array.isArray(i)&&i.length>0){const a=i.filter(l=>l!==e.asyncValidator);a.length!==i.length&&(t=!0,n.setAsyncValidators(a))}}}const r=()=>{};return U4(e._rawValidators,r),U4(e._rawAsyncValidators,r),t}function bH(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function vH(n,e){J9(n,e)}function t7(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}function yH(n,e){n._syncPendingControls(),e.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function n7(n,e){if(!e)return null;let t,r,i;return Array.isArray(e),e.forEach(a=>{a.constructor===fg?t=a:function Ede(n){return Object.getPrototypeOf(n.constructor)===Au}(a)?r=a:i=a}),i||r||t||null}const Ade={provide:ql,useExisting:Gn(()=>Rh)},kS=Promise.resolve();class Rh extends ql{constructor(e,t,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new cn,this.form=new xS({},W9(e),G9(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){kS.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),CS(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){kS.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){kS.then(()=>{const t=this._findContainer(e.path),r=new xS({});vH(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){kS.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){kS.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,yH(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(t){return new(t||Rh)(Ve(Ss,10),Ve(mg,10),Ve(s0,8))};static#t=this.\u0275dir=hn({type:Rh,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&Fn("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[Ft.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ir([Ade]),hr]})}function _H(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function xH(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const ES=class extends V4{constructor(e=null,t,r){super(Z9(t),Q9(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),z4(t)&&(t.nonNullable||t.initialValueIsDefault)&&(xH(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){_H(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){_H(this._onDisabledChange,e)}_forEachChild(e){}_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(e){xH(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};class b1 extends ql{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return q4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(b1)))(r||b1)}})();static#t=this.\u0275dir=hn({type:b1,features:[hr]})}const Mde={provide:ql,useExisting:Gn(()=>gg)};class gg extends b1{constructor(e,t,r){super(),this.name="",this._parent=e,this._setValidators(t),this._setAsyncValidators(r)}_checkParentType(){!(this._parent instanceof gg)&&this._parent}static#e=this.\u0275fac=function(t){return new(t||gg)(Ve(ql,5),Ve(Ss,10),Ve(mg,10))};static#t=this.\u0275dir=hn({type:gg,selectors:[["","ngModelGroup",""]],inputs:{name:[Ft.None,"ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ir([Mde]),hr]})}const Tde={provide:Oh,useExisting:Gn(()=>l0)},wH=Promise.resolve();class l0 extends Oh{constructor(e,t,r,i,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new ES,this._registered=!1,this.name="",this.update=new cn,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=n7(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),t7(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(){CS(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()&&this.name}_updateValue(e){wH.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&fr(t);wH.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?q4(e,this._parent):[e]}static#e=this.\u0275fac=function(t){return new(t||l0)(Ve(ql,9),Ve(Ss,10),Ve(mg,10),Ve(Du,10),Ve(mo,8),Ve(s0,8))};static#t=this.\u0275dir=hn({type:l0,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ft.None,"disabled","isDisabled"],model:[Ft.None,"ngModel","model"],options:[Ft.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ir([Tde]),hr,Ui]})}class v1{static#e=this.\u0275fac=function(t){return new(t||v1)};static#t=this.\u0275dir=hn({type:v1,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}const Ide={provide:Du,useExisting:Gn(()=>bg),multi:!0};class bg extends Au{writeValue(e){const t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(bg)))(r||bg)}})();static#t=this.\u0275dir=hn({type:bg,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&Fn("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Ir([Ide]),hr]})}const Nde={provide:Du,useExisting:Gn(()=>c0),multi:!0};class SS{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)}static#e=this.\u0275fac=function(t){return new(t||SS)};static#t=this.\u0275prov=_n({token:SS,factory:SS.\u0275fac,providedIn:"root"})}class c0 extends Au{constructor(e,t,r,i){super(e,t),this._registry=r,this._injector=i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=xn(s0,{optional:!0})??wS}ngOnInit(){this._control=this._injector.get(Oh),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(t){return new(t||c0)(Ve(hc),Ve(jn),Ve(SS),Ve(di))};static#t=this.\u0275dir=hn({type:c0,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,r){1&t&&Fn("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ir([Nde]),hr]})}const Ode={provide:Du,useExisting:Gn(()=>vg),multi:!0};class vg extends Au{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(vg)))(r||vg)}})();static#t=this.\u0275dir=hn({type:vg,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,r){1&t&&Fn("change",function(a){return r.onChange(a.target.value)})("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Ir([Ode]),hr]})}const r7=new pn(""),Rde={provide:Oh,useExisting:Gn(()=>d0)};class d0 extends Oh{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,t,r,i,a){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=a,this.update=new cn,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=n7(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&j4(t,this,!1),CS(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}t7(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&j4(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(t){return new(t||d0)(Ve(Ss,10),Ve(mg,10),Ve(Du,10),Ve(r7,8),Ve(s0,8))};static#n=this.\u0275dir=hn({type:d0,selectors:[["","formControl",""]],inputs:{form:[Ft.None,"formControl","form"],isDisabled:[Ft.None,"disabled","isDisabled"],model:[Ft.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ir([Rde]),hr,Ui]})}const Fde={provide:ql,useExisting:Gn(()=>Fh)};class Fh extends ql{constructor(e,t,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new cn,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(H4(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 t=this.form.get(e.path);return CS(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){j4(e.control||null,e,!1),function Sde(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,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,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,yH(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(j4(t||null,e),(n=>n instanceof ES)(r)&&(CS(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);vH(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Cde(n,e){return H4(n,e)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){J9(this.form,this),this._oldForm&&H4(this._oldForm,this)}_checkFormPresent(){this.form}static#e=this.\u0275fac=function(t){return new(t||Fh)(Ve(Ss,10),Ve(mg,10),Ve(s0,8))};static#t=this.\u0275dir=hn({type:Fh,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&Fn("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[Ft.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ir([Fde]),hr,Ui]})}const Pde={provide:ql,useExisting:Gn(()=>yg)};class yg extends b1{constructor(e,t,r){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(r)}_checkParentType(){CH(this._parent)}static#e=this.\u0275fac=function(t){return new(t||yg)(Ve(ql,13),Ve(Ss,10),Ve(mg,10))};static#t=this.\u0275dir=hn({type:yg,selectors:[["","formGroupName",""]],inputs:{name:[Ft.None,"formGroupName","name"]},features:[Ir([Pde]),hr]})}const Bde={provide:ql,useExisting:Gn(()=>_g)};class _g extends ql{constructor(e,t,r){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return q4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){CH(this._parent)}static#e=this.\u0275fac=function(t){return new(t||_g)(Ve(ql,13),Ve(Ss,10),Ve(mg,10))};static#t=this.\u0275dir=hn({type:_g,selectors:[["","formArrayName",""]],inputs:{name:[Ft.None,"formArrayName","name"]},features:[Ir([Bde]),hr]})}function CH(n){return!(n instanceof yg||n instanceof Fh||n instanceof _g)}const Lde={provide:Oh,useExisting:Gn(()=>u0)};class u0 extends Oh{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,t,r,i,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new cn,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=n7(0,i)}ngOnChanges(e){this._added||this._setUpControl(),t7(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 q4(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}static#t=this.\u0275fac=function(t){return new(t||u0)(Ve(ql,13),Ve(Ss,10),Ve(mg,10),Ve(Du,10),Ve(r7,8))};static#n=this.\u0275dir=hn({type:u0,selectors:[["","formControlName",""]],inputs:{name:[Ft.None,"formControlName","name"],isDisabled:[Ft.None,"disabled","isDisabled"],model:[Ft.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ir([Lde]),hr,Ui]})}const zde={provide:Du,useExisting:Gn(()=>mp),multi:!0};function kH(n,e){return null==n?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}class mp extends Au{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 r=kH(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of this._optionMap.keys())if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function Vde(n){return n.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(mp)))(r||mp)}})();static#t=this.\u0275dir=hn({type:mp,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&Fn("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ir([zde]),hr]})}class y1{constructor(e,t,r){this._element=e,this._renderer=t,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(kH(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))}static#e=this.\u0275fac=function(t){return new(t||y1)(Ve(jn),Ve(hc),Ve(mp,9))};static#t=this.\u0275dir=hn({type:y1,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}const qde={provide:Du,useExisting:Gn(()=>gp),multi:!0};function EH(n,e){return null==n?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${n}: ${e}`.slice(0,50))}class gp extends Au{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const r=e.map(i=>this._getOptionId(i));t=(i,a)=>{i._setSelected(r.indexOf(a.toString())>-1)}}else t=(r,i)=>{r._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const r=[],i=t.selectedOptions;if(void 0!==i){const a=i;for(let l=0;l{let e;return function(r){return(e||(e=xo(gp)))(r||gp)}})();static#t=this.\u0275dir=hn({type:gp,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,r){1&t&&Fn("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ir([qde]),hr]})}class _1{constructor(e,t,r){this._element=e,this._renderer=t,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(EH(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(EH(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))}static#e=this.\u0275fac=function(t){return new(t||_1)(Ve(jn),Ve(hc),Ve(gp,9))};static#t=this.\u0275dir=hn({type:_1,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}function SH(n){return"number"==typeof n?n:parseInt(n,10)}function AH(n){return"number"==typeof n?n:parseFloat(n)}class Ph{constructor(){this._validator=F4}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):F4,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(t){return new(t||Ph)};static#t=this.\u0275dir=hn({type:Ph,features:[Ui]})}const Ude={provide:Ss,useExisting:Gn(()=>xg),multi:!0};class xg extends Ph{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>AH(e),this.createValidator=e=>WU(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(xg)))(r||xg)}})();static#t=this.\u0275dir=hn({type:xg,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[Ir([Ude]),hr]})}const Hde={provide:Ss,useExisting:Gn(()=>wg),multi:!0};class wg extends Ph{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>AH(e),this.createValidator=e=>$U(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(wg)))(r||wg)}})();static#t=this.\u0275dir=hn({type:wg,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[Ir([Hde]),hr]})}const $de={provide:Ss,useExisting:Gn(()=>bp),multi:!0},Wde={provide:Ss,useExisting:Gn(()=>vp),multi:!0};class bp extends Ph{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=fr,this.createValidator=e=>GU}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(bp)))(r||bp)}})();static#t=this.\u0275dir=hn({type:bp,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&vr("required",r._enabled?"":null)},inputs:{required:"required"},features:[Ir([$de]),hr]})}class vp extends bp{constructor(){super(...arguments),this.createValidator=e=>XU}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(vp)))(r||vp)}})();static#t=this.\u0275dir=hn({type:vp,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("required",r._enabled?"":null)},features:[Ir([Wde]),hr]})}const Gde={provide:Ss,useExisting:Gn(()=>Cg),multi:!0};class Cg extends Ph{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=fr,this.createValidator=e=>YU}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Cg)))(r||Cg)}})();static#t=this.\u0275dir=hn({type:Cg,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Ir([Gde]),hr]})}const Xde={provide:Ss,useExisting:Gn(()=>kg),multi:!0};class kg extends Ph{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>SH(e),this.createValidator=e=>KU(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(kg)))(r||kg)}})();static#t=this.\u0275dir=hn({type:kg,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[Ir([Xde]),hr]})}const Yde={provide:Ss,useExisting:Gn(()=>Eg),multi:!0};class Eg extends Ph{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>SH(e),this.createValidator=e=>ZU(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Eg)))(r||Eg)}})();static#t=this.\u0275dir=hn({type:Eg,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ir([Yde]),hr]})}const Kde={provide:Ss,useExisting:Gn(()=>Sg),multi:!0};class Sg extends Ph{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>QU(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Sg)))(r||Sg)}})();static#t=this.\u0275dir=hn({type:Sg,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[Ir([Kde]),hr]})}class h0{static#e=this.\u0275fac=function(t){return new(t||h0)};static#t=this.\u0275mod=$n({type:h0,declarations:[v1,y1,_1,fg,bg,vg,hg,mp,gp,c0,p1,m1,bp,kg,Eg,Sg,vp,Cg,wg,xg],exports:[v1,y1,_1,fg,bg,vg,hg,mp,gp,c0,p1,m1,bp,kg,Eg,Sg,vp,Cg,wg,xg]});static#n=this.\u0275inj=Er({})}class DH extends V4{constructor(e,t,r){super(Z9(t),Q9(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){mH(this,0,e),e.forEach((r,i)=>{pH(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function MH(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}class f0{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new f0;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let i={};return MH(t)?i=t:null!==t&&(i.validators=t.validator,i.asyncValidators=t.asyncValidator),new xS(r,i)}record(e,t=null){const r=this._reduceControls(e);return new gH(r,t)}control(e,t,r){let i={};return this.useNonNullable?(MH(t)?i=t:(i.validators=t,i.asyncValidators=r),new ES(e,{...i,nonNullable:!0})):new ES(e,t,r)}array(e,t,r){const i=e.map(a=>this._createControl(a));return new DH(i,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){if(e instanceof ES)return e;if(e instanceof V4)return e;if(Array.isArray(e)){const t=e[0],r=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(t,r,i)}return this.control(e)}static#e=this.\u0275fac=function(t){return new(t||f0)};static#t=this.\u0275prov=_n({token:f0,factory:f0.\u0275fac,providedIn:"root"})}class i7{static#e=this.\u0275fac=function(t){return new(t||i7)};static#t=this.\u0275prov=_n({token:i7,factory:()=>xn(f0).nonNullable,providedIn:"root"})}class AS extends f0{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(AS)))(r||AS)}})();static#t=this.\u0275prov=_n({token:AS,factory:AS.\u0275fac,providedIn:"root"})}new Nv("17.3.12");class DS{static withConfig(e){return{ngModule:DS,providers:[{provide:s0,useValue:e.callSetDisabledState??wS}]}}static#e=this.\u0275fac=function(t){return new(t||DS)};static#t=this.\u0275mod=$n({type:DS,declarations:[l0,gg,Rh],exports:[h0,l0,gg,Rh]});static#n=this.\u0275inj=Er({imports:[h0]})}class MS{static withConfig(e){return{ngModule:MS,providers:[{provide:r7,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:s0,useValue:e.callSetDisabledState??wS}]}}static#e=this.\u0275fac=function(t){return new(t||MS)};static#t=this.\u0275mod=$n({type:MS,declarations:[d0,Fh,u0,yg,_g],exports:[h0,d0,Fh,u0,yg,_g]});static#n=this.\u0275inj=Er({imports:[h0]})}function As(...n){return ug(n,gS(n))}function Yc(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function TS(n,e,t){const r=me(n)||e||t?{next:n,error:e,complete:t}:n;return r?Hr((i,a)=>{var l;null===(l=r.subscribe)||void 0===l||l.call(r);let d=!0;i.subscribe(Yn(a,h=>{var p;null===(p=r.next)||void 0===p||p.call(r,h),a.next(h)},()=>{var h;d=!1,null===(h=r.complete)||void 0===h||h.call(r),a.complete()},h=>{var p;d=!1,null===(p=r.error)||void 0===p||p.call(r,h),a.error(h)},()=>{var h,p;d&&(null===(h=r.unsubscribe)||void 0===h||h.call(r)),null===(p=r.finalize)||void 0===p||p.call(r)}))}):Oi}function Y4(n,e=N4){return Hr((t,r)=>{let i=null,a=null,l=null;const d=()=>{if(i){i.unsubscribe(),i=null;const p=a;a=null,r.next(p)}};function h(){const p=l+n,y=e.now();if(y{a=p,l=e.now(),i||(i=e.schedule(h,n),r.add(i))},()=>{d(),r.complete()},void 0,()=>{a=i=null}))})}function Io(n,e){return Hr((t,r)=>{let i=0;t.subscribe(Yn(r,a=>n.call(e,a,i++)&&r.next(a)))})}function ds(n){return n<=0?()=>u1:Hr((e,t)=>{let r=0;e.subscribe(Yn(t,i=>{++r<=n&&(t.next(i),n<=r&&t.complete())}))})}function o7(n){return Io((e,t)=>n<=t)}function p0(n,e=Oi){return n=n??due,Hr((t,r)=>{let i,a=!0;t.subscribe(Yn(r,l=>{const d=e(l);(a||!n(i,d))&&(a=!1,i=d,r.next(l))}))})}function due(n,e){return n===e}class w1{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(t){return new(t||w1)};static#t=this.\u0275prov=_n({token:w1,factory:w1.\u0275fac,providedIn:"root"})}class C1{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=hp(e);return new yr(r=>{const a=this._observeElement(t).pipe(kt(l=>l.filter(d=>!function uue(n){if("characterData"===n.type&&n.target instanceof Comment)return!0;if("childList"===n.type){for(let e=0;e!!l.length)).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new ln,r=this._mutationObserverFactory.create(i=>t.next(i));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(t){return new(t||C1)(zt(w1))};static#t=this.\u0275prov=_n({token:C1,factory:C1.\u0275fac,providedIn:"root"})}class m0{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Xc(e),this._subscribe()}constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new cn,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Y4(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||m0)(Ve(C1),Ve(jn),Ve(On))};static#t=this.\u0275dir=hn({type:m0,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[Ft.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",fr],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Gi]})}class g0{static#e=this.\u0275fac=function(t){return new(t||g0)};static#t=this.\u0275mod=$n({type:g0,imports:[m0],exports:[m0]});static#n=this.\u0275inj=Er({providers:[w1]})}function hue(...n){const e=gS(n),t=qU(n),{args:r,keys:i}=VU(n);if(0===r.length)return ug([],e);const a=new yr(function fue(n,e,t=Oi){return r=>{IH(e,()=>{const{length:i}=n,a=new Array(i);let l=i,d=i;for(let h=0;h{const p=ug(n[h],e);let y=!1;p.subscribe(Yn(r,S=>{a[h]=S,y||(y=!0,d--),d||r.next(t(a.slice()))},()=>{--l||r.complete()}))},r)},r)}}(r,e,i?l=>jU(i,l):Oi));return t?a.pipe(q9(t)):a}function IH(n,e,t){n?pp(t,n,e):e()}function NH(n=1/0){return h1(Oi,n)}function K4(...n){return function pue(){return NH(1)}()(ug(n,gS(n)))}function Sa(...n){const e=gS(n);return Hr((t,r)=>{(e?K4(n,t,e):K4(n,t)).subscribe(r)})}class a7{static#e=this.\u0275fac=function(t){return new(t||a7)};static#t=this.\u0275mod=$n({type:a7});static#n=this.\u0275inj=Er({})}const OH=new Set;let b0;class IS{constructor(e,t){this._platform=e,this._nonce=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):gue}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function mue(n,e){if(!OH.has(n))try{b0||(b0=document.createElement("style"),e&&b0.setAttribute("nonce",e),b0.setAttribute("type","text/css"),document.head.appendChild(b0)),b0.sheet&&(b0.sheet.insertRule(`@media ${n} {body{ }}`,0),OH.add(n))}catch(t){console.error(t)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(t){return new(t||IS)(zt(Fi),zt(EC,8))};static#t=this.\u0275prov=_n({token:IS,factory:IS.\u0275fac,providedIn:"root"})}function gue(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}class k1{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new ln}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return RH(M4(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let i=hue(RH(M4(e)).map(a=>this._registerQuery(a).observable));return i=K4(i.pipe(ds(1)),i.pipe(o7(1),Y4(0))),i.pipe(kt(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:h})=>{l.matches=l.matches||d,l.breakpoints[h]=d}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),i={observable:new yr(a=>{const l=d=>this._zone.run(()=>a.next(d));return t.addListener(l),()=>{t.removeListener(l)}}).pipe(Sa(t),kt(({matches:a})=>({query:e,matches:a})),jr(this._destroySubject)),mql:t};return this._queries.set(e,i),i}static#e=this.\u0275fac=function(t){return new(t||k1)(zt(IS),zt(On))};static#t=this.\u0275prov=_n({token:k1,factory:k1.\u0275fac,providedIn:"root"})}function RH(n){return n.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}const bue_HandsetPortrait="(max-width: 599.98px) and (orientation: portrait)";function PH(n,e,t){const r=Z4(n,e);t=t.trim(),!r.some(i=>i.trim()===t)&&(r.push(t),n.setAttribute(e,r.join(" ")))}function s7(n,e,t){const r=Z4(n,e);t=t.trim();const i=r.filter(a=>a!==t);i.length?n.setAttribute(e,i.join(" ")):n.removeAttribute(e)}function Z4(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}const BH="cdk-describedby-message",Q4="cdk-describedby-host";let l7=0;class NS{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+l7++,this._document=e,this._id=xn(Ls)+"-"+l7++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const i=c7(t,r);"string"!=typeof t?(LH(t,this._id),this._messageRegistry.set(i,{messageElement:t,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const i=c7(t,r);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){const a=this._messageRegistry.get(i);a&&0===a.referenceCount&&this._deleteMessageElement(i)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Q4}="${this._id}"]`);for(let t=0;t0!=r.indexOf(BH));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);PH(e,"aria-describedby",r.messageElement.id),e.setAttribute(Q4,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,s7(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Q4)}_isElementDescribedByMessage(e,t){const r=Z4(e,"aria-describedby"),i=this._messageRegistry.get(t),a=i&&i.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),i=e.getAttribute("aria-label");return!!r&&(!i||i.trim()!==r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(t){return new(t||NS)(zt(Mr),zt(Fi))};static#t=this.\u0275prov=_n({token:NS,factory:NS.\u0275fac,providedIn:"root"})}function c7(n,e){return"string"==typeof n?`${e||""}/${n}`:n}function LH(n,e){n.id||(n.id=`${BH}-${e}-${l7++}`)}class zH{constructor(e,t){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ln,this._typeaheadSubscription=ke.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=r=>r.disabled,this._pressedLetters=[],this.tabOut=new ln,this.change=new ln,e instanceof lo?this._itemChangesSubscription=e.changes.subscribe(r=>this._itemsChanged(r.toArray())):ox(e)&&(this._effectRef=Wq(()=>this._itemsChanged(e()),{injector:t}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(TS(t=>this._pressedLetters.push(t)),Y4(e),Io(()=>this._pressedLetters.length>0),kt(()=>this._pressedLetters.join(""))).subscribe(t=>{const r=this._getItemsArray();for(let i=1;i!e[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&i){const a=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&i){const a=this._activeItemIndex+this._pageUpAndDown.delta,l=this._getItemsArray().length;this._setActiveItemByIndex(a=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),r="number"==typeof e?e:t.indexOf(e),i=t[r];this._activeItem=i??null,this._activeItemIndex=r}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let r=1;r<=t.length;r++){const i=(this._activeItemIndex+e*r+t.length)%t.length,a=t[i];if(!this._skipPredicateFn(a))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const r=this._getItemsArray();if(r[e]){for(;this._skipPredicateFn(r[e]);)if(!r[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return ox(this._items)?this._items():this._items instanceof lo?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){const t=e.indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}}}class vue extends zH{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class J4 extends zH{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}class _p{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _ue(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function yue(n){try{return n.frameElement}catch{return null}}(function Due(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===qH(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),i=qH(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Sue(n){let e=n.nodeName.toLowerCase(),t="input"===e&&n.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||(this._platform.FIREFOX||e.hasAttribute("controls"))):e.tabIndex>=0)}isFocusable(e,t){return function Aue(n){return!function wue(n){return function kue(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function xue(n){let e=n.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(n)||function Cue(n){return function Eue(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||VH(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(t){return new(t||_p)(zt(Fi))};static#t=this.\u0275prov=_n({token:_p,factory:_p.\u0275fac,providedIn:"root"})}function VH(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let e=n.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function qH(n){if(!VH(n))return null;const e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class jH{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,t,r,i,a=!1){this._element=e,this._checker=t,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,a||this.attachAnchors()}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const r=this._getFirstTabbableElement(t);return r?.focus(e),!!r}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let r=0;r=0;r--){const i=t[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[r]):null;if(i)return i}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(ds(1)).subscribe(e)}}class Dg{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new jH(e,this._checker,this._ngZone,this._document,t)}static#e=this.\u0275fac=function(t){return new(t||Dg)(zt(_p),zt(On),zt(Mr))};static#t=this.\u0275prov=_n({token:Dg,factory:Dg.\u0275fac,providedIn:"root"})}class OS{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,xn(Fi).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=uS(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(t){return new(t||OS)(Ve(jn),Ve(Dg),Ve(Mr))};static#t=this.\u0275dir=hn({type:OS,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[Ft.HasDecoratorInputTransform,"cdkTrapFocus","enabled",fr],autoCapture:[Ft.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",fr]},exportAs:["cdkTrapFocus"],standalone:!0,features:[Gi,Ui]})}class Mue extends jH{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}constructor(e,t,r,i,a,l,d){super(e,t,r,i,d.defer),this._focusTrapManager=a,this._inertStrategy=l,this._focusTrapManager.register(this)}destroy(){this._focusTrapManager.deregister(this),super.destroy()}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}const Tue=new pn("FOCUS_TRAP_INERT_STRATEGY");class Iue{constructor(){this._listener=null}preventFocus(e){this._listener&&e._document.removeEventListener("focus",this._listener,!0),this._listener=t=>this._trapFocus(e,t),e._ngZone.runOutsideAngular(()=>{e._document.addEventListener("focus",this._listener,!0)})}allowFocus(e){this._listener&&(e._document.removeEventListener("focus",this._listener,!0),this._listener=null)}_trapFocus(e,t){const r=t.target,i=e._element;r&&!i.contains(r)&&!r.closest?.("div.cdk-overlay-pane")&&setTimeout(()=>{e.enabled&&!i.contains(e._document.activeElement)&&e.focusFirstTabbableElement()})}}class RS{constructor(){this._focusTrapStack=[]}register(e){this._focusTrapStack=this._focusTrapStack.filter(r=>r!==e);let t=this._focusTrapStack;t.length&&t[t.length-1]._disable(),t.push(e),e._enable()}deregister(e){e._disable();const t=this._focusTrapStack,r=t.indexOf(e);-1!==r&&(t.splice(r,1),t.length&&t[t.length-1]._enable())}static#e=this.\u0275fac=function(t){return new(t||RS)};static#t=this.\u0275prov=_n({token:RS,factory:RS.\u0275fac,providedIn:"root"})}class e5{constructor(e,t,r,i,a){this._checker=e,this._ngZone=t,this._focusTrapManager=r,this._document=i,this._inertStrategy=a||new Iue}create(e,t={defer:!1}){let r;return r="boolean"==typeof t?{defer:t}:t,new Mue(e,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,r)}static#e=this.\u0275fac=function(t){return new(t||e5)(zt(_p),zt(On),zt(RS),zt(Mr),zt(Tue,8))};static#t=this.\u0275prov=_n({token:e5,factory:e5.\u0275fac,providedIn:"root"})}function d7(n){return 0===n.buttons||0===n.detail}function u7(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const Nue=new pn("cdk-input-modality-detector-options"),Oue={ignoreKeys:[18,17,224,91,16]},E1=cg({passive:!0,capture:!0});class FS{get mostRecentModality(){return this._modality.value}constructor(e,t,r,i){this._platform=e,this._mostRecentTarget=null,this._modality=new _r(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=fp(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(d7(a)?"keyboard":"mouse"),this._mostRecentTarget=fp(a))},this._onTouchstart=a=>{u7(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=fp(a))},this._options={...Oue,...i},this.modalityDetected=this._modality.pipe(o7(1)),this.modalityChanged=this.modalityDetected.pipe(p0()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,E1),r.addEventListener("mousedown",this._onMousedown,E1),r.addEventListener("touchstart",this._onTouchstart,E1)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,E1),document.removeEventListener("mousedown",this._onMousedown,E1),document.removeEventListener("touchstart",this._onTouchstart,E1))}static#e=this.\u0275fac=function(t){return new(t||FS)(zt(Fi),zt(On),zt(Mr),zt(Nue,8))};static#t=this.\u0275prov=_n({token:FS,factory:FS.\u0275fac,providedIn:"root"})}const Rue=new pn("liveAnnouncerElement",{providedIn:"root",factory:function Fue(){return null}});const Pue=new pn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Bue=0;class v0{constructor(e,t,r,i){this._ngZone=t,this._defaultOptions=i,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let i,a;return 1===t.length&&"number"==typeof t[0]?a=t[0]:[i,a]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let i=0;i .cdk-overlay-container [aria-modal="true"]');for(let r=0;rthis._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness,this.duration),this._previousAnnouncedText=t)})))}constructor(e,t,r,i){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=r,this._ngZone=i,this._politeness="polite"}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||PS)(Ve(jn),Ve(v0),Ve(C1),Ve(On))};static#t=this.\u0275dir=hn({type:PS,selectors:[["","cdkAriaLive",""]],inputs:{politeness:[Ft.None,"cdkAriaLive","politeness"],duration:[Ft.None,"cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"],standalone:!0})}var BS;!function(n){n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL"}(BS||(BS={}));const Lue=new pn("cdk-focus-monitor-default-options"),t5=cg({passive:!0,capture:!0});class jl{constructor(e,t,r,i,a){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ln,this._rootNodeFocusAndBlurListener=l=>{for(let h=fp(l);h;h=h.parentElement)"focus"===l.type?this._onFocus(l,h):this._onBlur(l,h)},this._document=i,this._detectionMode=a?.detectionMode||BS.IMMEDIATE}monitor(e,t=!1){const r=hp(e);if(!this._platform.isBrowser||1!==r.nodeType)return As();const i=sce(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return t&&(a.checkChildren=!0),a.subject;const l={checkChildren:t,subject:new ln,rootNode:i};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const t=hp(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const i=hp(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([l,d])=>this._originChanged(l,t,d)):(this._setOrigin(t),"function"==typeof i.focus&&i.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===BS.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction="touch"===e&&t,this._detectionMode===BS.IMMEDIATE){clearTimeout(this._originTimeoutId);const r=this._originFromTouchInteraction?650:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,t){const r=this._elementInfo.get(t),i=fp(e);!r||!r.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,t5),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,t5)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(jr(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,t5),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,t5),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,i)=>{(i===e||r.checkChildren&&i.contains(e))&&t.push([i,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const i=e.labels;if(i)for(let a=0;a{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||S1)(Ve(jn),Ve(jl))};static#t=this.\u0275dir=hn({type:S1,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}var Mg;!function(n){n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK"}(Mg||(Mg={}));const HH="cdk-high-contrast-black-on-white",$H="cdk-high-contrast-white-on-black",h7="cdk-high-contrast-active";class A1{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=xn(k1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Mg.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),i){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Mg.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Mg.BLACK_ON_WHITE}return Mg.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(h7,HH,$H),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();t===Mg.BLACK_ON_WHITE?e.add(h7,HH):t===Mg.WHITE_ON_BLACK&&e.add(h7,$H)}}static#e=this.\u0275fac=function(t){return new(t||A1)(zt(Fi),zt(Mr))};static#t=this.\u0275prov=_n({token:A1,factory:A1.\u0275fac,providedIn:"root"})}class y0{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(t){return new(t||y0)(zt(A1))};static#t=this.\u0275mod=$n({type:y0,imports:[g0,PS,OS,S1],exports:[PS,OS,S1]});static#n=this.\u0275inj=Er({imports:[g0]})}const zue=new pn("cdk-dir-doc",{providedIn:"root",factory:function Vue(){return xn(Mr)}});const que=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function WH(n){const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&navigator?.language?que.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}class pa{constructor(e){if(this.value="ltr",this.change=new cn,e){const t=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=WH(t||r||"ltr")}}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(t){return new(t||pa)(zt(zue,8))};static#t=this.\u0275prov=_n({token:pa,factory:pa.\u0275fac,providedIn:"root"})}class D1{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new cn}get dir(){return this._dir}set dir(e){const t=this._dir;this._dir=WH(e),this._rawDir=e,t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(t){return new(t||D1)};static#t=this.\u0275dir=hn({type:D1,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,r){2&t&&vr("dir",r._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],standalone:!0,features:[Ir([{provide:pa,useExisting:D1}])]})}class Ul{static#e=this.\u0275fac=function(t){return new(t||Ul)};static#t=this.\u0275mod=$n({type:Ul,imports:[D1],exports:[D1]});static#n=this.\u0275inj=Er({})}new Nv("17.3.10");const jue=["*",[["mat-option"],["ng-container"]]],Uue=["*","mat-option, ng-container"],Hue=["text"],$ue=[[["mat-icon"]],"*"],Wue=["mat-icon","*"];function Gue(n,e){if(1&n&&kr(0,"mat-pseudo-checkbox",1),2&n){const t=fn();En("disabled",t.disabled)("state",t.selected?"checked":"unchecked")}}function Xue(n,e){if(1&n&&kr(0,"mat-pseudo-checkbox",3),2&n){En("disabled",fn().disabled)}}function Yue(n,e){if(1&n&&(Bt(0,"span",4),xi(1),qt()),2&n){const t=fn();Gt(),_u("(",t.group.label,")")}}const Kue=["mat-internal-form-field",""],Zue=["*"];new Nv("17.3.10");class Yqe{static#e=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#t=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#r=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}class Kqe{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}const Jue=new pn("mat-sanity-checks",{providedIn:"root",factory:function Que(){return!0}});class er{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!F9()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(t){return new(t||er)(zt(A1),zt(Jue,8),zt(Mr))};static#t=this.\u0275mod=$n({type:er,imports:[Ul],exports:[Ul]});static#n=this.\u0275inj=Er({imports:[Ul,Ul]})}class f7{constructor(e,t,r,i,a){this._defaultMatcher=e,this.ngControl=t,this._parentFormGroup=r,this._parentForm=i,this._stateChanges=a,this.errorState=!1}updateErrorState(){const e=this.errorState,t=this._parentFormGroup||this._parentForm,r=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,a=r?.isErrorState(i,t)??!1;a!==e&&(this.errorState=a,this._stateChanges.next())}}const YH=new pn("MAT_DATE_LOCALE",{providedIn:"root",factory:function ehe(){return xn(Sh)}});class p7{constructor(){this._localeChanges=new ln,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let r=this.isValid(e),i=this.isValid(t);return r&&i?!this.compareDate(e,t):r==i}return e==t}clampDate(e,t,r){return t&&this.compareDate(e,t)<0?t:r&&this.compareDate(e,r)>0?r:e}}const the=new pn("mat-date-formats"),nhe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function m7(n,e){const t=Array(n);for(let r=0;rthis._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return m7(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return m7(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let i=this._createDateWithOverflow(e,t,r);return i.getMonth(),i}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(nhe.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const i=new Date;return i.setFullYear(e,t,r),i.setHours(0,0,0,0),i}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}static#e=this.\u0275fac=function(t){return new(t||M1)(zt(YH,8))};static#t=this.\u0275prov=_n({token:M1,factory:M1.\u0275fac})}const rhe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};class g7{static#e=this.\u0275fac=function(t){return new(t||g7)};static#t=this.\u0275mod=$n({type:g7});static#n=this.\u0275inj=Er({providers:[{provide:p7,useClass:M1}]})}class b7{static#e=this.\u0275fac=function(t){return new(t||b7)};static#t=this.\u0275mod=$n({type:b7});static#n=this.\u0275inj=Er({providers:[ihe()]})}function ihe(n=rhe){return[{provide:p7,useClass:M1},{provide:the,useValue:n}]}class n5{isErrorState(e,t){return!!(e&&e.invalid&&(e.dirty||t&&t.submitted))}static#e=this.\u0275fac=function(t){return new(t||n5)};static#t=this.\u0275prov=_n({token:n5,factory:n5.\u0275fac})}class xp{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static#e=this.\u0275fac=function(t){return new(t||xp)};static#t=this.\u0275prov=_n({token:xp,factory:xp.\u0275fac,providedIn:"root"})}class LS{static#e=this.\u0275fac=function(t){return new(t||LS)};static#t=this.\u0275dir=hn({type:LS,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"],standalone:!0})}class v7{static#e=this.\u0275fac=function(t){return new(t||v7)};static#t=this.\u0275mod=$n({type:v7,imports:[er,LS],exports:[LS,er]});static#n=this.\u0275inj=Er({imports:[er,er]})}var Kc;!function(n){n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN"}(Kc||(Kc={}));class ohe{constructor(e,t,r,i=!1){this._renderer=e,this.element=t,this.config=r,this._animationForciblyDisabledThroughCss=i,this.state=Kc.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const KH=cg({passive:!0,capture:!0});class ahe{constructor(){this._events=new Map,this._delegateEventHandler=e=>{const t=fp(e);t&&this._events.get(e.type)?.forEach((r,i)=>{(i===t||i.contains(t))&&r.forEach(a=>a.handleEvent(e))})}}addHandler(e,t,r,i){const a=this._events.get(t);if(a){const l=a.get(r);l?l.add(i):a.set(r,new Set([i]))}else this._events.set(t,new Map([[r,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,KH)})}removeHandler(e,t,r){const i=this._events.get(e);if(!i)return;const a=i.get(t);a&&(a.delete(r),0===a.size&&i.delete(t),0===i.size&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,KH)))}}const ZH={enterDuration:225,exitDuration:150},QH=cg({passive:!0,capture:!0}),JH=["mousedown","touchstart"],e$=["mouseup","mouseleave","touchend","touchcancel"];class r5{static#e=this._eventManager=new ahe;constructor(e,t,r,i){this._target=e,this._ngZone=t,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=hp(r))}fadeInRipple(e,t,r={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a={...ZH,...r.animation};r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const l=r.radius||function lhe(n,e,t){const r=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),i=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),d=e-i.left,h=t-i.top,p=a.enterDuration,y=document.createElement("div");y.classList.add("mat-ripple-element"),y.style.left=d-l+"px",y.style.top=h-l+"px",y.style.height=2*l+"px",y.style.width=2*l+"px",null!=r.color&&(y.style.backgroundColor=r.color),y.style.transitionDuration=`${p}ms`,this._containerElement.appendChild(y);const S=window.getComputedStyle(y),R=S.transitionProperty,B=S.transitionDuration,q="none"===R||"0s"===B||"0s, 0s"===B||0===i.width&&0===i.height,V=new ohe(this,y,r,q);y.style.transform="scale3d(1, 1, 1)",V.state=Kc.FADING_IN,r.persistent||(this._mostRecentTransientRipple=V);let ee=null;return!q&&(p||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ne=()=>this._finishRippleTransition(V),he=()=>this._destroyRipple(V);y.addEventListener("transitionend",ne),y.addEventListener("transitioncancel",he),ee={onTransitionEnd:ne,onTransitionCancel:he}}),this._activeRipples.set(V,ee),(q||!p)&&this._finishRippleTransition(V),V}fadeOutRipple(e){if(e.state===Kc.FADING_OUT||e.state===Kc.HIDDEN)return;const t=e.element,r={...ZH,...e.config.animation};t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",e.state=Kc.FADING_OUT,(e._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=hp(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,JH.forEach(r=>{r5._eventManager.addHandler(this._ngZone,r,t,this)}))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{e$.forEach(t=>{this._triggerElement.addEventListener(t,this,QH)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Kc.FADING_IN?this._startFadeOutTransition(e):e.state===Kc.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){const t=e===this._mostRecentTransientRipple,{persistent:r}=e.config;e.state=Kc.VISIBLE,!r&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){const t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Kc.HIDDEN,null!==t&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel)),e.element.remove()}_onMousedown(e){const t=d7(e),r=this._lastTouchStartEvent&&Date.now(){const t=e.state===Kc.VISIBLE||e.config.terminateOnPointerUp&&e.state===Kc.FADING_IN;!e.config.persistent&&t&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const e=this._triggerElement;e&&(JH.forEach(t=>r5._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(e$.forEach(t=>e.removeEventListener(t,this,QH)),this._pointerUpEventsRegistered=!1))}}const y7=new pn("mat-ripple-global-options");class Hl{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,t,r,i,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new r5(this,t,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(t){return new(t||Hl)(Ve(jn),Ve(On),Ve(Fi),Ve(y7,8),Ve(Co,8))};static#t=this.\u0275dir=hn({type:Hl,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-ripple-unbounded",r.unbounded)},inputs:{color:[Ft.None,"matRippleColor","color"],unbounded:[Ft.None,"matRippleUnbounded","unbounded"],centered:[Ft.None,"matRippleCentered","centered"],radius:[Ft.None,"matRippleRadius","radius"],animation:[Ft.None,"matRippleAnimation","animation"],disabled:[Ft.None,"matRippleDisabled","disabled"],trigger:[Ft.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}class Mu{static#e=this.\u0275fac=function(t){return new(t||Mu)};static#t=this.\u0275mod=$n({type:Mu,imports:[er,Hl],exports:[Hl,er]});static#n=this.\u0275inj=Er({imports:[er,er]})}class T1{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(t){return new(t||T1)(Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:T1,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,r){2&t&&Jn("mat-pseudo-checkbox-indeterminate","indeterminate"===r.state)("mat-pseudo-checkbox-checked","checked"===r.state)("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal","minimal"===r.appearance)("mat-pseudo-checkbox-full","full"===r.appearance)("_mat-animation-noopable","NoopAnimations"===r._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[qr],decls:0,vars:0,template:function(t,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}class VS{static#e=this.\u0275fac=function(t){return new(t||VS)};static#t=this.\u0275mod=$n({type:VS,imports:[er,T1],exports:[T1]});static#n=this.\u0275inj=Er({imports:[er]})}const _7=new pn("MAT_OPTION_PARENT_COMPONENT");let che=0;const x7=new pn("MatOptgroup");class I1{constructor(e){this.disabled=!1,this._labelId="mat-optgroup-label-"+che++,this._inert=e?.inertGroups??!1}static#e=this.\u0275fac=function(t){return new(t||I1)(Ve(_7,8))};static#t=this.\u0275cmp=Tr({type:I1,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,r){2&t&&vr("role",r._inert?null:"group")("aria-disabled",r._inert?null:r.disabled.toString())("aria-labelledby",r._inert?null:r._labelId)},inputs:{label:"label",disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr]},exportAs:["matOptgroup"],standalone:!0,features:[Ir([{provide:x7,useExisting:I1}]),Gi,qr],ngContentSelectors:Uue,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,r){1&t&&(Ri(jue),Bt(0,"span",0)(1,"span",1),xi(2),rr(3),qt()(),rr(4,1)),2&t&&(Jn("mdc-list-item--disabled",r.disabled),En("id",r._labelId),Gt(2),_u("",r.label," "))},styles:[".mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color);font-family:var(--mat-optgroup-label-text-font);line-height:var(--mat-optgroup-label-text-line-height);font-size:var(--mat-optgroup-label-text-size);letter-spacing:var(--mat-optgroup-label-text-tracking);font-weight:var(--mat-optgroup-label-text-weight)}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;min-height:48px}.mat-mdc-optgroup-label:focus{outline:none}[dir=rtl] .mat-mdc-optgroup-label,.mat-mdc-optgroup-label[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal}"],encapsulation:2,changeDetection:0})}let dhe=0;class uhe{constructor(e,t=!1){this.source=e,this.isUserInput=t}}class _0{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,t,r,i){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dhe++,this.onSelectionChange=new cn,this._stateChanges=new ln}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Yc(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new uhe(this,e))}static#e=this.\u0275fac=function(t){return new(t||_0)(Ve(jn),Ve(mo),Ve(_7,8),Ve(x7,8))};static#t=this.\u0275cmp=Tr({type:_0,selectors:[["mat-option"]],viewQuery:function(t,r){if(1&t&&_i(Hue,7),2&t){let i;or(i=ar())&&(r._text=i.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,r){1&t&&Fn("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),2&t&&(js("id",r.id),vr("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Jn("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Gi,qr],ngContentSelectors:Wue,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,r){1&t&&(Ri($ue),sr(0,Gue,1,2,"mat-pseudo-checkbox",1),rr(1),Bt(2,"span",2,0),rr(4,1),qt(),sr(5,Xue,1,1,"mat-pseudo-checkbox",3)(6,Yue,2,1,"span",4),kr(7,"div",5)),2&t&&(yi(0,r.multiple?0:-1),Gt(5),yi(5,r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),Gt(),yi(6,r.group&&r.group._inert?6:-1),Gt(),En("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[T1,Hl],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}class x0{static#e=this.\u0275fac=function(t){return new(t||x0)};static#t=this.\u0275mod=$n({type:x0,imports:[Mu,er,VS,_0,I1],exports:[_0,I1]});static#n=this.\u0275inj=Er({imports:[Mu,er,VS]})}const t$={capture:!0},n$=["focus","click","mouseenter","touchstart"],w7="mat-ripple-loader-uninitialized",C7="mat-ripple-loader-class-name",r$="mat-ripple-loader-centered",i5="mat-ripple-loader-disabled";class qS{constructor(){this._document=xn(Mr,{optional:!0}),this._animationMode=xn(Co,{optional:!0}),this._globalRippleOptions=xn(y7,{optional:!0}),this._platform=xn(Fi),this._ngZone=xn(On),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${w7}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of n$)this._document?.addEventListener(e,this._onInteraction,t$)})}ngOnDestroy(){const e=this._hosts.keys();for(const t of e)this.destroyRipple(t);for(const t of n$)this._document?.removeEventListener(t,this._onInteraction,t$)}configureRipple(e,t){e.setAttribute(w7,""),(t.className||!e.hasAttribute(C7))&&e.setAttribute(C7,t.className||""),t.centered&&e.setAttribute(r$,""),t.disabled&&e.setAttribute(i5,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,t){const r=this._hosts.get(e);r?r.disabled=t:t?e.setAttribute(i5,""):e.removeAttribute(i5)}_createRipple(e){if(!this._document)return;const t=this._hosts.get(e);if(t)return t;e.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(C7)),e.append(r);const i=new Hl(new jn(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return i._isInitialized=!0,i.trigger=e,i.centered=e.hasAttribute(r$),i.disabled=e.hasAttribute(i5),this.attachRipple(e,i),i}attachRipple(e,t){e.removeAttribute(w7),this._hosts.set(e,t)}destroyRipple(e){const t=this._hosts.get(e);t&&(t.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(t){return new(t||qS)};static#t=this.\u0275prov=_n({token:qS,factory:qS.\u0275fac,providedIn:"root"})}class o5{static#e=this.\u0275fac=function(t){return new(t||o5)};static#t=this.\u0275cmp=Tr({type:o5,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mdc-form-field--align-end","before"===r.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[qr],attrs:Kue,ngContentSelectors:Zue,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}function $l(...n){const e=gS(n),t=function sde(n,e){return"number"==typeof $9(n)?n.pop():e}(n,1/0),r=n;return r.length?1===r.length?ml(r[0]):NH(t)(ug(r,e)):u1}class i$ extends ln{constructor(e=1/0,t=1/0,r=U9){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:a,_windowTime:l}=this;t||(r.push(e),!i&&r.push(a.now()+l)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,a=i.slice();for(let l=0;lnew ln),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=n;return a=>{let l,d,h,p=0,y=!1,S=!1;const R=()=>{d?.unsubscribe(),d=void 0},B=()=>{R(),l=h=void 0,y=S=!1},q=()=>{const V=l;B(),V?.unsubscribe()};return Hr((V,ee)=>{p++,!S&&!y&&R();const ne=h=h??e();ee.add(()=>{p--,0===p&&!S&&!y&&(d=k7(q,i))}),ne.subscribe(ee),!l&&p>0&&(l=new Jt({next:he=>ne.next(he),error:he=>{S=!0,R(),d=k7(B,t,he),ne.error(he)},complete:()=>{y=!0,R(),d=k7(B,r),ne.complete()}}),ml(V).subscribe(l))})(a)}}function k7(n,e,...t){if(!0===e)return void n();if(!1===e)return;const r=new Jt({next:()=>{r.unsubscribe(),n()}});return ml(e(...t)).subscribe(r)}function E7(n,e,t){let r,i=!1;return n&&"object"==typeof n?({bufferSize:r=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:t}=n):r=n??1/0,o$({connector:()=>new i$(r,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}class phe{constructor(e){this._box=e,this._destroyed=new ln,this._resizeSubject=new ln,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(t=>this._resizeSubject.next(t)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new yr(t=>{const r=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),r.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Io(t=>t.some(r=>r.target===e)),E7({bufferSize:1,refCount:!0}),jr(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}class jS{constructor(){this._observers=new Map,this._ngZone=xn(On)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,t){const r=t?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new phe(r)),this._observers.get(r).observe(e)}static#e=this.\u0275fac=function(t){return new(t||jS)};static#t=this.\u0275prov=_n({token:jS,factory:jS.\u0275fac,providedIn:"root"})}const mhe=["notch"],ghe=["matFormFieldNotchedOutline",""],bhe=["*"],vhe=["textField"],yhe=["iconPrefixContainer"],_he=["textPrefixContainer"],xhe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],whe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Che(n,e){1&n&&kr(0,"span",17)}function khe(n,e){if(1&n&&(Bt(0,"label",16),rr(1,1),sr(2,Che,1,0,"span",17),qt()),2&n){const t=fn(2);En("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),vr("for",t._control.disableAutomaticLabeling?null:t._control.id),Gt(2),yi(2,!t.hideRequiredMarker&&t._control.required?2:-1)}}function Ehe(n,e){if(1&n&&sr(0,khe,3,5,"label",16),2&n){yi(0,fn()._hasFloatingLabel()?0:-1)}}function She(n,e){1&n&&kr(0,"div",5)}function Ahe(n,e){}function Dhe(n,e){if(1&n&&sr(0,Ahe,0,0,"ng-template",11),2&n){fn(2);En("ngTemplateOutlet",Eh(1))}}function Mhe(n,e){if(1&n&&(Bt(0,"div",7),sr(1,Dhe,1,1,null,11),qt()),2&n){const t=fn();En("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),Gt(),yi(1,t._forceDisplayInfixLabel()?-1:1)}}function The(n,e){1&n&&(Bt(0,"div",8,2),rr(2,2),qt())}function Ihe(n,e){1&n&&(Bt(0,"div",9,3),rr(2,3),qt())}function Nhe(n,e){}function Ohe(n,e){if(1&n&&sr(0,Nhe,0,0,"ng-template",11),2&n){fn();En("ngTemplateOutlet",Eh(1))}}function Rhe(n,e){1&n&&(Bt(0,"div",12),rr(1,4),qt())}function Fhe(n,e){1&n&&(Bt(0,"div",13),rr(1,5),qt())}function Phe(n,e){1&n&&kr(0,"div",14)}function Bhe(n,e){if(1&n&&(Bt(0,"div",18),rr(1,6),qt()),2&n){En("@transitionMessages",fn()._subscriptAnimationState)}}function Lhe(n,e){if(1&n&&(Bt(0,"mat-hint",20),xi(1),qt()),2&n){const t=fn(2);En("id",t._hintLabelId),Gt(),Xa(t.hintLabel)}}function zhe(n,e){if(1&n&&(Bt(0,"div",19),sr(1,Lhe,2,2,"mat-hint",20),rr(2,7),kr(3,"div",21),rr(4,8),qt()),2&n){const t=fn();En("@transitionMessages",t._subscriptAnimationState),Gt(),yi(1,t.hintLabel?1:-1)}}class w0{static#e=this.\u0275fac=function(t){return new(t||w0)};static#t=this.\u0275dir=hn({type:w0,selectors:[["mat-label"]],standalone:!0})}let Vhe=0;const a$=new pn("MatError");class N1{constructor(e,t){this.id="mat-mdc-error-"+Vhe++,e||t.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(t){return new(t||N1)(vd("aria-live"),Ve(jn))};static#t=this.\u0275dir=hn({type:N1,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,r){2&t&&js("id",r.id)},inputs:{id:"id"},standalone:!0,features:[Ir([{provide:a$,useExisting:N1}])]})}let qhe=0;class C0{constructor(){this.align="start",this.id="mat-mdc-hint-"+qhe++}static#e=this.\u0275fac=function(t){return new(t||C0)};static#t=this.\u0275dir=hn({type:C0,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,r){2&t&&(js("id",r.id),vr("align",null),Jn("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"},standalone:!0})}const s$=new pn("MatPrefix");class O1{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(t){return new(t||O1)};static#t=this.\u0275dir=hn({type:O1,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[Ft.None,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[Ir([{provide:s$,useExisting:O1}])]})}const l$=new pn("MatSuffix");class R1{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(t){return new(t||R1)};static#t=this.\u0275dir=hn({type:R1,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[Ft.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ir([{provide:l$,useExisting:R1}])]})}const c$=new pn("FloatingLabelParent");class US{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=xn(jS),this._ngZone=xn(On),this._parent=xn(c$),this._resizeSubscription=new ke}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function jhe(n){const e=n;if(null!==e.offsetParent)return e.scrollWidth;const t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);const r=t.scrollWidth;return t.remove(),r}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(t){return new(t||US)(Ve(jn))};static#t=this.\u0275dir=hn({type:US,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}const d$="mdc-line-ripple--active",a5="mdc-line-ripple--deactivating";class HS{constructor(e,t){this._elementRef=e,this._handleTransitionEnd=r=>{const i=this._elementRef.nativeElement.classList,a=i.contains(a5);"opacity"===r.propertyName&&a&&i.remove(d$,a5)},t.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(a5),e.add(d$)}deactivate(){this._elementRef.nativeElement.classList.add(a5)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(t){return new(t||HS)(Ve(jn),Ve(On))};static#t=this.\u0275dir=hn({type:HS,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}class $S{constructor(e,t){this._elementRef=e,this._ngZone=t,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this.open&&e?this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:this._notch.nativeElement.style.width=""}static#e=this.\u0275fac=function(t){return new(t||$S)(Ve(jn),Ve(On))};static#t=this.\u0275cmp=Tr({type:$S,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,r){if(1&t&&_i(mhe,5),2&t){let i;or(i=ar())&&(r._notch=i.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mdc-notched-outline--notched",r.open)},inputs:{open:[Ft.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[qr],attrs:ghe,ngContentSelectors:bhe,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(t,r){1&t&&(Ri(),kr(0,"div",1),Bt(1,"div",2,0),rr(3),qt(),kr(4,"div",3))},encapsulation:2,changeDetection:0})}const Uhe={transitionMessages:vc("transitionMessages",[fa("enter",Hi({opacity:1,transform:"translateY(0%)"})),Na("void => enter",[Hi({opacity:0,transform:"translateY(-5px)"}),ja("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};class F1{static#e=this.\u0275fac=function(t){return new(t||F1)};static#t=this.\u0275dir=hn({type:F1})}const S7=new pn("MatFormField"),Hhe=new pn("MAT_FORM_FIELD_DEFAULT_OPTIONS");let u$=0;class Tg{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=yc(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const t=this._appearance,r=e||this._defaults?.appearance||"fill";this._appearance=r,"outline"===this._appearance&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,t,r,i,a,l,d,h){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=i,this._platform=a,this._defaults=l,this._animationMode=d,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+u$++,this._hintLabelId="mat-mdc-hint-"+u$++,this._subscriptAnimationState="",this._destroyed=new ln,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(jr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),$l(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(jr(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(jr(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(i=>"start"===i.align):null,r=this._hintChildren?this._hintChildren.find(i=>"end"===i.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const t=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,i=t?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0,p=`calc(${"rtl"===this._dir.value?"-1":"1"} * (${`${i+a}px`} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(${p})\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(t){return new(t||Tg)(Ve(jn),Ve(mo),Ve(On),Ve(pa),Ve(Fi),Ve(Hhe,8),Ve(Co,8),Ve(Mr))};static#t=this.\u0275cmp=Tr({type:Tg,selectors:[["mat-form-field"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,w0,5),ho(i,w0,7),ho(i,F1,5),ho(i,s$,5),ho(i,l$,5),ho(i,a$,5),ho(i,C0,5)),2&t){let a;or(a=ar())&&(r._labelChildNonStatic=a.first),or(a=ar())&&(r._labelChildStatic=a.first),or(a=ar())&&(r._formFieldControl=a.first),or(a=ar())&&(r._prefixChildren=a),or(a=ar())&&(r._suffixChildren=a),or(a=ar())&&(r._errorChildren=a),or(a=ar())&&(r._hintChildren=a)}},viewQuery:function(t,r){if(1&t&&(_i(vhe,5),_i(yhe,5),_i(_he,5),_i(US,5),_i($S,5),_i(HS,5)),2&t){let i;or(i=ar())&&(r._textField=i.first),or(i=ar())&&(r._iconPrefixContainer=i.first),or(i=ar())&&(r._textPrefixContainer=i.first),or(i=ar())&&(r._floatingLabel=i.first),or(i=ar())&&(r._notchedOutline=i.first),or(i=ar())&&(r._lineRipple=i.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(t,r){2&t&&Jn("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===r._animationMode)("mat-form-field-appearance-fill","fill"==r.appearance)("mat-form-field-appearance-outline","outline"==r.appearance)("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary","accent"!==r.color&&"warn"!==r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Ir([{provide:S7,useExisting:Tg},{provide:c$,useExisting:Tg}]),qr],ngContentSelectors:whe,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,r){if(1&t){const i=Ai();Ri(xhe),sr(0,Ehe,1,1,"ng-template",null,0,O3),Bt(2,"div",4,1),Fn("click",function(l){return Cn(i),kn(r._control.onContainerClick(l))}),sr(4,She,1,0,"div",5),Bt(5,"div",6),sr(6,Mhe,2,2,"div",7)(7,The,3,0,"div",8)(8,Ihe,3,0,"div",9),Bt(9,"div",10),sr(10,Ohe,1,1,null,11),rr(11),qt(),sr(12,Rhe,2,0,"div",12)(13,Fhe,2,0,"div",13),qt(),sr(14,Phe,1,0,"div",14),qt(),Bt(15,"div",15),sr(16,Bhe,2,1)(17,zhe,5,2),qt()}if(2&t){let i;Gt(2),Jn("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),Gt(2),yi(4,r._hasOutline()||r._control.disabled?-1:4),Gt(2),yi(6,r._hasOutline()?6:-1),Gt(),yi(7,r._hasIconPrefix?7:-1),Gt(),yi(8,r._hasTextPrefix?8:-1),Gt(2),yi(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),Gt(2),yi(12,r._hasTextSuffix?12:-1),Gt(),yi(13,r._hasIconSuffix?13:-1),Gt(),yi(14,r._hasOutline()?-1:14),Gt(),Jn("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),Gt(),yi(16,"error"===(i=r._getDisplayedMessages())?16:"hint"===i?17:-1)}},dependencies:[US,$S,wu,HS,C0],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Uhe.transitionMessages]},changeDetection:0})}class wp{static#e=this.\u0275fac=function(t){return new(t||wp)};static#t=this.\u0275mod=$n({type:wp,imports:[er,Ea,g0,Tg,w0,N1,C0,O1,R1],exports:[Tg,w0,C0,N1,O1,R1,er]});static#n=this.\u0275inj=Er({imports:[er,Ea,g0,er]})}const Ghe=new pn("MAT_INPUT_VALUE_ACCESSOR"),Xhe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Yhe=0;class P1{get disabled(){return this._disabled}set disabled(e){this._disabled=yc(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(HU.required)??!1}set required(e){this._required=yc(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&yU().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=yc(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,r,i,a,l,d,h,p,y){this._elementRef=e,this._platform=t,this.ngControl=r,this._autofillMonitor=h,this._formField=y,this._uid="mat-input-"+Yhe++,this.focused=!1,this.stateChanges=new ln,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(B=>yU().has(B)),this._iOSKeyupListener=B=>{const q=B.target;!q.value&&0===q.selectionStart&&0===q.selectionEnd&&(q.setSelectionRange(1,1),q.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,R=S.nodeName.toLowerCase();this._inputValueAccessor=d||S,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new f7(l,r,a,i,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===R,this._isTextarea="textarea"===R,this._isInFormField=!!y,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Xhe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static#e=this.\u0275fac=function(t){return new(t||P1)(Ve(jn),Ve(Fi),Ve(Oh,10),Ve(Rh,8),Ve(Fh,8),Ve(xp),Ve(Ghe,10),Ve(f1),Ve(On),Ve(S7,8))};static#t=this.\u0275dir=hn({type:P1,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,r){1&t&&Fn("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&t&&(js("id",r.id)("disabled",r.disabled)("required",r.required),vr("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Jn("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[Ft.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ir([{provide:F1,useExisting:P1}]),Ui]})}class WS{static#e=this.\u0275fac=function(t){return new(t||WS)};static#t=this.\u0275mod=$n({type:WS,imports:[er,wp,P1],exports:[P1,wp,mS,er]});static#n=this.\u0275inj=Er({imports:[er,wp,wp,mS,er]})}const GS={schedule(n){let e=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:r}=GS;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);const i=e(a=>{t=void 0,n(a)});return new ke(()=>t?.(i))},requestAnimationFrame(...n){const{delegate:e}=GS;return(e?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:e}=GS;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};const Qhe=new class Zhe extends H9{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let i;e=e||r.shift();do{if(i=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw i}}}(class Khe extends j9{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=GS.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,t,r=0){var i;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(e,t,r);const{actions:a}=e;null!=t&&(null===(i=a[a.length-1])||void 0===i?void 0:i.id)!==t&&(GS.cancelAnimationFrame(t),e._scheduled=void 0)}});let A7,Jhe=1;const s5={};function p$(n){return n in s5&&(delete s5[n],!0)}const efe={setImmediate(n){const e=Jhe++;return s5[e]=!0,A7||(A7=Promise.resolve()),A7.then(()=>p$(e)&&n()),e},clearImmediate(n){p$(n)}},{setImmediate:tfe,clearImmediate:nfe}=efe,l5={setImmediate(...n){const{delegate:e}=l5;return(e?.setImmediate||tfe)(...n)},clearImmediate(n){const{delegate:e}=l5;return(e?.clearImmediate||nfe)(n)},delegate:void 0};const D7=new class ife extends H9{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:r}=this;let i;e=e||r.shift();do{if(i=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw i}}}(class rfe extends j9{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=l5.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,r=0){var i;if(null!=r?r>0:this.delay>0)return super.recycleAsyncId(e,t,r);const{actions:a}=e;null!=t&&(null===(i=a[a.length-1])||void 0===i?void 0:i.id)!==t&&(l5.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}});function m$(n){return!!n&&(n instanceof yr||me(n.lift)&&me(n.subscribe))}function Bh(n,e){return Hr((t,r)=>{let i=null,a=0,l=!1;const d=()=>l&&!i&&r.complete();t.subscribe(Yn(r,h=>{i?.unsubscribe();let p=0;const y=a++;ml(n(h,y)).subscribe(i=Yn(r,S=>r.next(e?e(h,S,y,p++):S),()=>{i=null,d()}))},()=>{l=!0,d()}))})}class sfe extends yr{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ar(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ke;const t=this.getSubject();e.add(this.source.subscribe(Yn(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ke.EMPTY)}return e}refCount(){return function afe(){return Hr((n,e)=>{let t=null;n._refCount++;const r=Yn(e,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(t=null);const i=n._connection,a=t;t=null,i&&(!a||i===a)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}()(this)}}class lfe{}class dfe extends lfe{constructor(e){super(),this._data=e}connect(){return m$(this._data)?this._data:As(this._data)}disconnect(){}}var Cp;!function(n){n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED"}(Cp||(Cp={}));const g$=new pn("_ViewRepeater");class ufe{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,t,r,i,a){e.forEachOperation((l,d,h)=>{let p,y;if(null==l.previousIndex){const S=()=>r(l,d,h);p=this._insertView(S,h,t,i(l)),y=p?Cp.INSERTED:Cp.REPLACED}else null==h?(this._detachAndCacheView(d,t),y=Cp.REMOVED):(p=this._moveView(d,h,t,i(l)),y=Cp.MOVED);a&&a({context:p?.context,operation:y,record:l})})}detach(){for(const e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,t,r,i){const a=this._insertViewFromCache(t,r);if(a)return void(a.context.$implicit=i);const l=e();return r.createEmbeddedView(l.templateRef,l.context,l.index)}_detachAndCacheView(e,t){const r=t.detach(e);this._maybeCacheView(r,t)}_moveView(e,t,r,i){const a=r.get(e);return r.move(a,t),a.context.$implicit=i,a}_maybeCacheView(e,t){if(this._viewCache.lengththis._markSelected(a)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(r=>this._markSelected(r));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(r=>this._unmarkSelected(r));const t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);const t=this.selected,r=new Set(e);e.forEach(a=>this._markSelected(a)),t.filter(a=>!r.has(this._getConcreteValue(a,r))).forEach(a=>this._unmarkSelected(a));const i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();const t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let r of t)if(this.compareWith(e,r))return r;return e}return e}}class B1{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(t){return new(t||B1)};static#t=this.\u0275prov=_n({token:B1,factory:B1.\u0275fac,providedIn:"root"})}const ffe=["contentWrapper"],pfe=["*"],b$=new pn("VIRTUAL_SCROLL_STRATEGY");class mfe{constructor(e,t,r){this._scrolledIndexChange=new ln,this.scrolledIndexChange=this._scrolledIndexChange.pipe(p0()),this._viewport=null,this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=r}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(e,t,r){this._itemSize=e,this._minBufferPx=t,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,t){this._viewport&&this._viewport.scrollToOffset(e*this._itemSize,t)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const e=this._viewport.getRenderedRange(),t={start:e.start,end:e.end},r=this._viewport.getViewportSize(),i=this._viewport.getDataLength();let a=this._viewport.measureScrollOffset(),l=this._itemSize>0?a/this._itemSize:0;if(t.end>i){const h=Math.ceil(r/this._itemSize),p=Math.max(0,Math.min(l,i-h));l!=p&&(l=p,a=p*this._itemSize,t.start=Math.floor(l)),t.end=Math.max(0,Math.min(i,t.start+h))}const d=a-t.start*this._itemSize;if(d0&&(t.end=Math.min(i,t.end+p),t.start=Math.max(0,Math.floor(l-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(this._itemSize*t.start),this._scrolledIndexChange.next(Math.floor(l))}}function gfe(n){return n._scrollStrategy}class L1{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new mfe(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Xc(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Xc(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Xc(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(t){return new(t||L1)};static#t=this.\u0275dir=hn({type:L1,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[Ir([{provide:b$,useFactory:gfe,deps:[Gn(()=>L1)]}]),Ui]})}class Zc{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new ln,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new yr(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(R4(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):As()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Io(i=>!i||r.indexOf(i)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=hp(t),i=e.getElementRef().nativeElement;do{if(r==i)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Nh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(t){return new(t||Zc)(zt(On),zt(Fi),zt(Mr,8))};static#t=this.\u0275prov=_n({token:Zc,factory:Zc.\u0275fac,providedIn:"root"})}class Qc{constructor(e,t,r,i){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=i,this._destroyed=new ln,this._elementScrolled=new yr(a=>this.ngZone.runOutsideAngular(()=>Nh(this.elementRef.nativeElement,"scroll").pipe(jr(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&dS()!=Su.NORMAL?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),dS()==Su.INVERTED?e.left=e.right:dS()==Su.NEGATED&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;_U()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:t:"end"==e&&(e=a?t:r),a&&dS()==Su.INVERTED?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:a&&dS()==Su.NEGATED?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static#e=this.\u0275fac=function(t){return new(t||Qc)(Ve(jn),Ve(Zc),Ve(On),Ve(pa,8))};static#t=this.\u0275dir=hn({type:Qc,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}class Od{constructor(e,t,r){this._platform=e,this._change=new ln,this._changeListener=i=>{this._change.next(i)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const i=this._getWindow();i.addEventListener("resize",this._changeListener),i.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,i=r.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(R4(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(t){return new(t||Od)(zt(Fi),zt(On),zt(Mr,8))};static#t=this.\u0275prov=_n({token:Od,factory:Od.\u0275fac,providedIn:"root"})}const c5=new pn("VIRTUAL_SCROLLABLE");class z1 extends Qc{constructor(e,t,r,i){super(e,t,r,i)}measureViewportSize(e){const t=this.elementRef.nativeElement;return"horizontal"===e?t.clientWidth:t.clientHeight}static#e=this.\u0275fac=function(t){return new(t||z1)(Ve(jn),Ve(Zc),Ve(On),Ve(pa,8))};static#t=this.\u0275dir=hn({type:z1,features:[hr]})}const _fe=typeof requestAnimationFrame<"u"?Qhe:D7;class k0 extends z1{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}constructor(e,t,r,i,a,l,d,h){super(e,l,r,a),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=i,this.scrollable=h,this._platform=xn(Fi),this._detachedSubject=new ln,this._renderedRangeSubject=new ln,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new yr(p=>this._scrollStrategy.scrolledIndexChange.subscribe(y=>Promise.resolve().then(()=>this.ngZone.run(()=>p.next(y))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ke.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Sa(null),R4(0,_fe),jr(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(jr(this._detachedSubject)).subscribe(t=>{const r=t.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function yfe(n,e){return n.start==e.start&&n.end==e.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){e=this.appendOnly&&"to-start"===t?0:e;const r=this.dir&&"rtl"==this.dir.value,i="horizontal"==this.orientation,a=i?"X":"Y";let d=`translate${a}(${Number((i&&r?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(d+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const r={behavior:t};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){let t;return t=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,t(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let t;const r="left",i="right",a="rtl"==this.dir?.value;t="start"==e?a?i:r:"end"==e?a?r:i:e||("horizontal"===this.orientation?"left":"top");const l=this.scrollable.measureBoundingClientRectWithScrollOffset(t);return this.elementRef.nativeElement.getBoundingClientRect()[t]-l}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(t){return new(t||k0)(Ve(jn),Ve(mo),Ve(On),Ve(b$,8),Ve(pa,8),Ve(Zc),Ve(Od),Ve(c5,8))};static#t=this.\u0275cmp=Tr({type:k0,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,r){if(1&t&&_i(ffe,7),2&t){let i;or(i=ar())&&(r._contentWrapper=i.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,r){2&t&&Jn("cdk-virtual-scroll-orientation-horizontal","horizontal"===r.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==r.orientation)},inputs:{orientation:"orientation",appendOnly:[Ft.HasDecoratorInputTransform,"appendOnly","appendOnly",fr]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Ir([{provide:Qc,useFactory:(e,t)=>e||t,deps:[[new El,new Zu(c5)],k0]}]),Gi,hr,qr],ngContentSelectors:pfe,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(t,r){1&t&&(Ri(),Bt(0,"div",1,0),rr(2),qt(),kr(3,"div",2)),2&t&&(Gt(3),co("width",r._totalContentWidth)("height",r._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}function v$(n,e,t){const r=t;if(!r.getBoundingClientRect)return 0;const i=r.getBoundingClientRect();return"horizontal"===n?"start"===e?i.left:i.right:"start"===e?i.top:i.bottom}class XS{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function cfe(n){return n&&"function"==typeof n.connect&&!(n instanceof sfe)}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new dfe(m$(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,r)=>e(t+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Xc(e)}constructor(e,t,r,i,a,l){this._viewContainerRef=e,this._template=t,this._differs=r,this._viewRepeater=i,this._viewport=a,this.viewChange=new ln,this._dataSourceChanges=new ln,this.dataStream=this._dataSourceChanges.pipe(Sa(null),function ofe(){return Hr((n,e)=>{let t,r=!1;n.subscribe(Yn(e,i=>{const a=t;t=i,r&&e.next([a,i]),r=!0}))})}(),Bh(([d,h])=>this._changeDataSource(d,h)),E7(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ln,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(jr(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(e,t){if(e.start>=e.end)return 0;e.start-1;d--){const h=this._viewContainerRef.get(d+r);if(h&&h.rootNodes.length){l=h.rootNodes[h.rootNodes.length-1];break}}return a&&l?v$(t,"end",l)-v$(t,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):As()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const r=this._viewContainerRef.get(t);r.context.index=this._renderedRange.start+t,r.context.count=e,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(i,a,l)=>this._getEmbeddedViewArgs(i,l),i=>i.item),e.forEachIdentityChange(i=>{this._viewContainerRef.get(i.currentIndex).context.$implicit=i.item});const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const i=this._viewContainerRef.get(r);i.context.index=this._renderedRange.start+r,i.context.count=t,this._updateComputedContextProperties(i.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}static#e=this.\u0275fac=function(t){return new(t||XS)(Ve(Wo),Ve($o),Ve(Ah),Ve(g$),Ve(k0,4),Ve(On))};static#t=this.\u0275dir=hn({type:XS,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[Ir([{provide:g$,useClass:ufe}])]})}class V1 extends z1{constructor(e,t,r,i){super(e,t,r,i)}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]-this.measureScrollOffset(e)}static#e=this.\u0275fac=function(t){return new(t||V1)(Ve(jn),Ve(Zc),Ve(On),Ve(pa,8))};static#t=this.\u0275dir=hn({type:V1,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],standalone:!0,features:[Ir([{provide:c5,useExisting:V1}]),hr]})}class q1 extends z1{constructor(e,t,r){super(new jn(document.documentElement),e,t,r),this._elementScrolled=new yr(i=>this.ngZone.runOutsideAngular(()=>Nh(document,"scroll").pipe(jr(this._destroyed)).subscribe(i)))}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}static#e=this.\u0275fac=function(t){return new(t||q1)(Ve(Zc),Ve(On),Ve(pa,8))};static#t=this.\u0275dir=hn({type:q1,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],standalone:!0,features:[Ir([{provide:c5,useExisting:q1}]),hr]})}class $s{static#e=this.\u0275fac=function(t){return new(t||$s)};static#t=this.\u0275mod=$n({type:$s,imports:[Qc],exports:[Qc]});static#n=this.\u0275inj=Er({})}class E0{static#e=this.\u0275fac=function(t){return new(t||E0)};static#t=this.\u0275mod=$n({type:E0,imports:[Ul,$s,k0,L1,XS,q1,V1],exports:[Ul,$s,L1,XS,k0,q1,V1]});static#n=this.\u0275inj=Er({imports:[Ul,$s,Ul,$s]})}class M7{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class j1 extends M7{constructor(e,t,r,i,a){super(),this.component=e,this.viewContainerRef=t,this.injector=r,this.componentFactoryResolver=i,this.projectableNodes=a}}class Lh extends M7{constructor(e,t,r,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=r,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class wfe extends M7{constructor(e){super(),this.element=e instanceof jn?e.nativeElement:e}}class d5{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof j1?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Lh?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof wfe?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class y$ extends d5{constructor(e,t,r,i,a){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=r,this._defaultInjector=i,this.attachDomPortal=l=>{this._document;const d=l.element;d.parentNode;const h=this._document.createComment("dom-portal");d.parentNode.insertBefore(h,d),this.outletElement.appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{h.parentNode&&h.parentNode.replaceChild(d,h)})},this._document=a}attachComponentPortal(e){const r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=r.create(e.injector||this._defaultInjector||di.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let t=e.viewContainerRef,r=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return r.rootNodes.forEach(i=>this.outletElement.appendChild(i)),r.detectChanges(),this.setDisposeFn(()=>{let i=t.indexOf(r);-1!==i&&t.remove(i)}),this._attachedPortal=e,r}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}class Ig extends Lh{constructor(e,t){super(e,t)}static#e=this.\u0275fac=function(t){return new(t||Ig)(Ve($o),Ve(Wo))};static#t=this.\u0275dir=hn({type:Ig,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[hr]})}class S0 extends Ig{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(S0)))(r||S0)}})();static#t=this.\u0275dir=hn({type:S0,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],standalone:!0,features:[Ir([{provide:Ig,useExisting:S0}]),hr]})}class Ws extends d5{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new cn,this.attachDomPortal=i=>{this._document;const a=i.element;a.parentNode;const l=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(i,t.length,e.injector||t.injector,e.projectableNodes||void 0);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(t){return new(t||Ws)(Ve(fu),Ve(Wo),Ve(Mr))};static#t=this.\u0275dir=hn({type:Ws,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[Ft.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[hr]})}class A0 extends Ws{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(A0)))(r||A0)}})();static#t=this.\u0275dir=hn({type:A0,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:[Ft.None,"cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],standalone:!0,features:[Ir([{provide:Ws,useExisting:A0}]),hr]})}class Gs{static#e=this.\u0275fac=function(t){return new(t||Gs)};static#t=this.\u0275mod=$n({type:Gs,imports:[Ig,Ws,S0,A0],exports:[Ig,Ws,S0,A0]});static#n=this.\u0275inj=Er({})}const _$=_U();class Cfe{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Za(-this._previousScrollPosition.left),e.style.top=Za(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=this._document.body,r=e.style,i=t.style,a=r.scrollBehavior||"",l=i.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),_$&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_$&&(r.scrollBehavior=a,i.scrollBehavior=l)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,r=this._viewportRuler.getViewportSize();return t.scrollHeight>r.height||t.scrollWidth>r.width}}class kfe{constructor(e,t,r,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0).pipe(Io(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x${enable(){}disable(){}attach(){}}function T7(n,e){return e.some(t=>{const r=n.bottomt.bottom,a=n.rightt.right;return r||i||a||l})}function w$(n,e){return e.some(t=>{const r=n.topt.bottom,a=n.leftt.right;return r||i||a||l})}class Efe{constructor(e,t,r,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){const e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:i}=this._viewportRuler.getViewportSize();T7(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class YS{constructor(e,t,r,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new x$,this.close=a=>new kfe(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Cfe(this._viewportRuler,this._document),this.reposition=a=>new Efe(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=i}static#e=this.\u0275fac=function(t){return new(t||YS)(zt(Zc),zt(Od),zt(On),zt(Mr))};static#t=this.\u0275prov=_n({token:YS,factory:YS.\u0275fac,providedIn:"root"})}class KS{constructor(e){if(this.scrollStrategy=new x$,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const r of t)void 0!==e[r]&&(this[r]=e[r])}}}class Sfe{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class U1{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(t){return new(t||U1)(zt(Mr))};static#t=this.\u0275prov=_n({token:U1,factory:U1.\u0275fac,providedIn:"root"})}class ZS extends U1{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const i=this._attachedOverlays;for(let a=i.length-1;a>-1;a--)if(i[a]._keydownEvents.observers.length>0){const l=i[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(r)):l.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(t){return new(t||ZS)(zt(Mr),zt(On,8))};static#t=this.\u0275prov=_n({token:ZS,factory:ZS.\u0275fac,providedIn:"root"})}class QS extends U1{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=i=>{this._pointerDownEventTarget=fp(i)},this._clickListener=i=>{const a=fp(i),l="click"===i.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){const p=d[h];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(l))break;const y=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>y.next(i)):y.next(i)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(t){return new(t||QS)(zt(Mr),zt(Fi),zt(On,8))};static#t=this.\u0275prov=_n({token:QS,factory:QS.\u0275fac,providedIn:"root"})}class kp{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||F9()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let i=0;ithis._backdropClick.next(S),this._backdropTransitionendHandler=S=>{this._disposeBackdrop(S.target)},this._keydownEvents=new ln,this._outsidePointerEvents=new ln,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ds(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...this._config,direction:e},this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Za(this._config.width),e.height=Za(this._config.height),e.minWidth=Za(this._config.minWidth),e.minHeight=Za(this._config.minHeight),e.maxWidth=Za(this._config.maxWidth),e.maxHeight=Za(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,r){const i=M4(t||[]).filter(a=>!!a);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(jr($l(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const C$="cdk-overlay-connected-position-bounding-box",Afe=/([A-Za-z%]+)$/;class Dfe{get positions(){return this._preferredPositions}constructor(e,t,r,i,a){this._viewportRuler=t,this._document=r,this._platform=i,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ln,this._resizeSubscription=ke.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(C$),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,r=this._viewportRect,i=this._containerRect,a=[];let l;for(let d of this._preferredPositions){let h=this._getOriginPoint(e,i,d),p=this._getOverlayPoint(h,t,d),y=this._getOverlayFit(p,t,r,d);if(y.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(d,h);this._canFitWithFlexibleDimensions(y,p,r)?a.push({position:d,origin:h,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(h,d)}):(!l||l.overlayFit.visibleAreah&&(h=y,d=p)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(l.position,l.originPoint);this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&D0(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(C$),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,r){let i,a;if("center"==r.originX)i=e.left+e.width/2;else{const l=this._isRtl()?e.right:e.left,d=this._isRtl()?e.left:e.right;i="start"==r.originX?l:d}return t.left<0&&(i-=t.left),a="center"==r.originY?e.top+e.height/2:"top"==r.originY?e.top:e.bottom,t.top<0&&(a-=t.top),{x:i,y:a}}_getOverlayPoint(e,t,r){let i,a;return i="center"==r.overlayX?-t.width/2:"start"===r.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,a="center"==r.overlayY?-t.height/2:"top"==r.overlayY?0:-t.height,{x:e.x+i,y:e.y+a}}_getOverlayFit(e,t,r,i){const a=E$(t);let{x:l,y:d}=e,h=this._getOffset(i,"x"),p=this._getOffset(i,"y");h&&(l+=h),p&&(d+=p);let y=0-l,S=l+a.width-r.width,R=0-d,B=d+a.height-r.height,q=this._subtractOverflows(a.width,y,S),V=this._subtractOverflows(a.height,R,B),ee=q*V;return{visibleArea:ee,isCompletelyWithinViewport:a.width*a.height===ee,fitsInViewportVertically:V===a.height,fitsInViewportHorizontally:q==a.width}}_canFitWithFlexibleDimensions(e,t,r){if(this._hasFlexibleDimensions){const i=r.bottom-t.y,a=r.right-t.x,l=k$(this._overlayRef.getConfig().minHeight),d=k$(this._overlayRef.getConfig().minWidth),h=e.fitsInViewportVertically||null!=l&&l<=i,p=e.fitsInViewportHorizontally||null!=d&&d<=a;return h&&p}return!1}_pushOverlayOnScreen(e,t,r){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=E$(t),a=this._viewportRect,l=Math.max(e.x+i.width-a.width,0),d=Math.max(e.y+i.height-a.height,0),h=Math.max(a.top-r.top-e.y,0),p=Math.max(a.left-r.left-e.x,0);let y=0,S=0;return y=i.width<=a.width?p||-l:e.xq&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.y-q/2)}const h="start"===t.overlayX&&!i||"end"===t.overlayX&&i;let y,S,R;if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)R=r.width-e.x+2*this._viewportMargin,y=e.x-this._viewportMargin;else if(h)S=e.x,y=r.right-e.x;else{const B=Math.min(r.right-e.x+r.left,e.x),q=this._lastBoundingBoxSize.width;y=2*B,S=e.x-B,y>q&&!this._isInitialRender&&!this._growAfterOpen&&(S=e.x-q/2)}return{top:l,left:S,bottom:d,right:R,width:y,height:a}}_setBoundingBoxStyles(e,t){const r=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;i.height=Za(r.height),i.top=Za(r.top),i.bottom=Za(r.bottom),i.width=Za(r.width),i.left=Za(r.left),i.right=Za(r.right),"center"===t.overlayX?i.alignItems="center":i.alignItems="end"===t.overlayX?"flex-end":"flex-start","center"===t.overlayY?i.justifyContent="center":i.justifyContent="bottom"===t.overlayY?"flex-end":"flex-start",a&&(i.maxHeight=Za(a)),l&&(i.maxWidth=Za(l))}this._lastBoundingBoxSize=r,D0(this._boundingBox.style,i)}_resetBoundingBoxStyles(){D0(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){D0(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const r={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(i){const y=this._viewportRuler.getViewportScrollPosition();D0(r,this._getExactOverlayY(t,e,y)),D0(r,this._getExactOverlayX(t,e,y))}else r.position="static";let d="",h=this._getOffset(t,"x"),p=this._getOffset(t,"y");h&&(d+=`translateX(${h}px) `),p&&(d+=`translateY(${p}px)`),r.transform=d.trim(),l.maxHeight&&(i?r.maxHeight=Za(l.maxHeight):a&&(r.maxHeight="")),l.maxWidth&&(i?r.maxWidth=Za(l.maxWidth):a&&(r.maxWidth="")),D0(this._pane.style,r)}_getExactOverlayY(e,t,r){let i={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,r)),"bottom"===e.overlayY){const l=this._document.documentElement.clientHeight;i.bottom=l-(a.y+this._overlayRect.height)+"px"}else i.top=Za(a.y);return i}_getExactOverlayX(e,t,r){let l,i={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,r)),l=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===l){const d=this._document.documentElement.clientWidth;i.right=d-(a.x+this._overlayRect.width)+"px"}else i.left=Za(a.x);return i}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),r=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:w$(e,r),isOriginOutsideView:T7(e,r),isOverlayClipped:w$(t,r),isOverlayOutsideView:T7(t,r)}}_subtractOverflows(e,...t){return t.reduce((r,i)=>r-Math.max(i,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+e-this._viewportMargin,bottom:r.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&M4(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof jn)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,r=e.height||0;return{top:e.y,bottom:e.y+r,left:e.x,right:e.x+t,height:r,width:t}}}function D0(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function k$(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(Afe);return t&&"px"!==t?null:parseFloat(e)}return n||null}function E$(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const S$="cdk-global-overlay-wrapper";class Tfe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(S$),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:i,height:a,maxWidth:l,maxHeight:d}=r,h=!("100%"!==i&&"100vw"!==i||l&&"100%"!==l&&"100vw"!==l),p=!("100%"!==a&&"100vh"!==a||d&&"100%"!==d&&"100vh"!==d),y=this._xPosition,S=this._xOffset,R="rtl"===this._overlayRef.getConfig().direction;let B="",q="",V="";h?V="flex-start":"center"===y?(V="center",R?q=S:B=S):R?"left"===y||"end"===y?(V="flex-end",B=S):("right"===y||"start"===y)&&(V="flex-start",q=S):"left"===y||"start"===y?(V="flex-start",B=S):("right"===y||"end"===y)&&(V="flex-end",q=S),e.position=this._cssPosition,e.marginLeft=h?"0":B,e.marginTop=p?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=h?"0":q,t.justifyContent=V,t.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,r=t.style;t.classList.remove(S$),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}class JS{constructor(e,t,r,i){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=i}global(){return new Tfe}flexibleConnectedTo(e){return new Dfe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(t){return new(t||JS)(zt(Od),zt(Mr),zt(Fi),zt(kp))};static#t=this.\u0275prov=_n({token:JS,factory:JS.\u0275fac,providedIn:"root"})}let Ife=0;class Aa{constructor(e,t,r,i,a,l,d,h,p,y,S,R){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=h,this._directionality=p,this._location=y,this._outsideClickDispatcher=S,this._animationsModuleType=R}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),i=this._createPortalOutlet(r),a=new KS(e);return a.direction=a.direction||this._directionality.value,new u5(i,t,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Ife++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(gc)),new y$(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(t){return new(t||Aa)(zt(YS),zt(kp),zt(fu),zt(JS),zt(ZS),zt(di),zt(On),zt(Mr),zt(pa),zt(Vv),zt(QS),zt(Co,8))};static#t=this.\u0275prov=_n({token:Aa,factory:Aa.\u0275fac,providedIn:"root"})}const Nfe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],A$=new pn("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.reposition()}});class Ep{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(t){return new(t||Ep)(Ve(jn))};static#t=this.\u0275dir=hn({type:Ep,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}class M0{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,t,r,i,a){this._overlay=e,this._dir=a,this._backdropSubscription=ke.EMPTY,this._attachSubscription=ke.EMPTY,this._detachSubscription=ke.EMPTY,this._positionSubscription=ke.EMPTY,this._disposeOnNavigation=!1,this._ngZone=xn(On),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new cn,this.positionChange=new cn,this.attach=new cn,this.detach=new cn,this.overlayKeydown=new cn,this.overlayOutsideClick=new cn,this._templatePortal=new Lh(t,r),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Nfe);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Yc(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{const r=this._getOriginElement(),i=fp(t);(!r||r!==i&&!r.contains(i))&&this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new KS({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ep?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ep?this.origin.elementRef.nativeElement:this.origin instanceof jn?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function xfe(n,e=!1){return Hr((t,r)=>{let i=0;t.subscribe(Yn(r,a=>{const l=n(a,i++);(l||e)&&r.next(a),!l&&r.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||M0)(Ve(Aa),Ve($o),Ve(Wo),Ve(A$),Ve(pa,8))};static#t=this.\u0275dir=hn({type:M0,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[Ft.None,"cdkConnectedOverlayOrigin","origin"],positions:[Ft.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[Ft.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[Ft.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[Ft.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[Ft.None,"cdkConnectedOverlayWidth","width"],height:[Ft.None,"cdkConnectedOverlayHeight","height"],minWidth:[Ft.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[Ft.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[Ft.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[Ft.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[Ft.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[Ft.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[Ft.None,"cdkConnectedOverlayOpen","open"],disableClose:[Ft.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[Ft.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",fr],lockPosition:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",fr],flexibleDimensions:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",fr],growAfterOpen:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",fr],push:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",fr],disposeOnNavigation:[Ft.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",fr]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Gi,Ui]})}const Rfe={provide:A$,deps:[Aa],useFactory:function Ofe(n){return()=>n.scrollStrategies.reposition()}};class Wl{static#e=this.\u0275fac=function(t){return new(t||Wl)};static#t=this.\u0275mod=$n({type:Wl,imports:[Ul,Gs,E0,M0,Ep],exports:[M0,Ep,E0]});static#n=this.\u0275inj=Er({providers:[Aa,Rfe],imports:[Ul,Gs,E0,E0]})}class h5 extends kp{constructor(e,t){super(e,t)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){const t=this._getEventName();t&&(this._fullScreenListener&&this._document.removeEventListener(t,this._fullScreenListener),this._document.addEventListener(t,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){const e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}static#e=this.\u0275fac=function(t){return new(t||h5)(zt(Mr),zt(Fi))};static#t=this.\u0275prov=_n({token:h5,factory:h5.\u0275fac,providedIn:"root"})}function I7(n){return new yr(e=>{ml(n()).subscribe(e)})}const Ffe=["trigger"],Pfe=["panel"],Bfe=[[["mat-select-trigger"]],"*"],Lfe=["mat-select-trigger","*"];function zfe(n,e){if(1&n&&(Bt(0,"span",4),xi(1),qt()),2&n){const t=fn();Gt(),Xa(t.placeholder)}}function Vfe(n,e){1&n&&rr(0)}function qfe(n,e){if(1&n&&(Bt(0,"span",11),xi(1),qt()),2&n){const t=fn(2);Gt(),Xa(t.triggerValue)}}function jfe(n,e){if(1&n&&(Bt(0,"span",10),sr(1,Vfe,1,0)(2,qfe,2,1),qt()),2&n){const t=fn();Gt(),yi(1,t.customTrigger?1:2)}}function Ufe(n,e){if(1&n){const t=Ai();Bt(0,"div",12,1),Fn("@transformPanel.done",function(i){Cn(t);return kn(fn()._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){Cn(t);return kn(fn()._handleKeydown(i))}),rr(2,1),qt()}if(2&n){const t=fn();Rx("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",t._getPanelTheme(),""),En("ngClass",t.panelClass)("@transformPanel","showing"),vr("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const Hfe={transformPanelWrap:vc("transformPanelWrap",[Na("* => void",JE("@transformPanel",[QE()],{optional:!0}))]),transformPanel:vc("transformPanel",[fa("void",Hi({opacity:0,transform:"scale(1, 0.8)"})),Na("void => showing",ja("120ms cubic-bezier(0, 0, 0.2, 1)",Hi({opacity:1,transform:"scale(1, 1)"}))),Na("* => void",ja("100ms linear",Hi({opacity:0})))])};let D$=0;const M$=new pn("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.reposition()}});const Wfe=new pn("MAT_SELECT_CONFIG"),Gfe={provide:M$,deps:[Aa],useFactory:function $fe(n){return()=>n.scrollStrategies.reposition()}},T$=new pn("MatSelectTrigger");class Xfe{constructor(e,t){this.source=e,this.value=t}}class Ng{_scrollOptionIntoView(e){const t=this.options.toArray()[e];if(t){const r=this.panel.nativeElement,i=function hhe(n,e,t){if(t.length){let r=e.toArray(),i=t.toArray(),a=0;for(let l=0;lt+r?Math.max(0,n-r+e):t}(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Xfe(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(HU.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,r,i,a,l,d,h,p,y,S,R,B,q){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=l,this._parentFormField=p,this.ngControl=y,this._liveAnnouncer=B,this._defaultOptions=q,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(V,ee)=>V===ee,this._uid="mat-select-"+D$++,this._triggerAriaLabelledBy=null,this._destroy=new ln,this.stateChanges=new ln,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+D$++,this._panelDoneAnimatingStream=new ln,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new ln,this.optionSelectionChanges=I7(()=>{const V=this.options;return V?V.changes.pipe(Sa(V),Bh(()=>$l(...V.map(ee=>ee.onSelectionChange)))):this._initialized.pipe(Bh(()=>this.optionSelectionChanges))}),this.openedChange=new cn,this._openedStream=this.openedChange.pipe(Io(V=>V),kt(()=>{})),this._closedStream=this.openedChange.pipe(Io(V=>!V),kt(()=>{})),this.selectionChange=new cn,this.valueChange=new cn,this._trackedModal=null,this._skipPredicate=V=>!this.panelOpen&&V.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=q?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=q.typeaheadDebounceInterval),this._errorStateTracker=new f7(i,y,h,d,this.stateChanges),this._scrollStrategyFactory=R,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(S)||0,this.id=this.id}ngOnInit(){this._selectionModel=new hfe(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(p0(),jr(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(jr(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(jr(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Sa(null),jr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const t=`${this.id}-panel`;this._trackedModal&&s7(this._trackedModal,"aria-owns",t),PH(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;const e=`${this.id}-panel`;s7(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,i=13===t||32===t,a=this._keyManager;if(!a.isTyping()&&i&&!Yc(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const l=this.selected;a.onKeydown(e);const d=this.selected;d&&l!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,i=40===r||38===r,a=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!t.activeItem||Yc(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const l=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(l?d.select():d.deselect())})}else{const l=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==l&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ds(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof Ep?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new vue(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=$l(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(jr(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),$l(...this.options.map(t=>t._stateChanges)).pipe(jr(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static#e=this.\u0275fac=function(t){return new(t||Ng)(Ve(Od),Ve(mo),Ve(On),Ve(xp),Ve(jn),Ve(pa,8),Ve(Rh,8),Ve(Fh,8),Ve(S7,8),Ve(Oh,10),vd("tabindex"),Ve(M$),Ve(v0),Ve(Wfe,8))};static#t=this.\u0275cmp=Tr({type:Ng,selectors:[["mat-select"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,T$,5),ho(i,_0,5),ho(i,x7,5)),2&t){let a;or(a=ar())&&(r.customTrigger=a.first),or(a=ar())&&(r.options=a),or(a=ar())&&(r.optionGroups=a)}},viewQuery:function(t,r){if(1&t&&(_i(Ffe,5),_i(Pfe,5),_i(M0,5)),2&t){let i;or(i=ar())&&(r.trigger=i.first),or(i=ar())&&(r.panel=i.first),or(i=ar())&&(r._overlayDir=i.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,r){1&t&&Fn("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&t&&(vr("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),Jn("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[Ft.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr],disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr],tabIndex:[Ft.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:cs(e)],hideSingleSelectionIndicator:[Ft.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",fr],placeholder:"placeholder",required:[Ft.HasDecoratorInputTransform,"required","required",fr],multiple:[Ft.HasDecoratorInputTransform,"multiple","multiple",fr],disableOptionCentering:[Ft.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",fr],compareWith:"compareWith",value:"value",ariaLabel:[Ft.None,"aria-label","ariaLabel"],ariaLabelledby:[Ft.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[Ft.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",cs],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ir([{provide:F1,useExisting:Ng},{provide:_7,useExisting:Ng}]),Gi,Ui,qr],ngContentSelectors:Lfe,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,r){if(1&t){const i=Ai();Ri(Bfe),Bt(0,"div",2,0),Fn("click",function(){return Cn(i),kn(r.open())}),Bt(3,"div",3),sr(4,zfe,2,1,"span",4)(5,jfe,3,1),qt(),Bt(6,"div",5)(7,"div",6),Fs(),Bt(8,"svg",7),kr(9,"path",8),qt()()()(),sr(10,Ufe,3,9,"ng-template",9),Fn("backdropClick",function(){return Cn(i),kn(r.close())})("attach",function(){return Cn(i),kn(r._onAttached())})("detach",function(){return Cn(i),kn(r.close())})}if(2&t){const i=Eh(1);Gt(3),vr("id",r._valueId),Gt(),yi(4,r.empty?4:5),Gt(6),En("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||i)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ep,M0,og],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Hfe.transformPanel]},changeDetection:0})}class H1{static#e=this.\u0275fac=function(t){return new(t||H1)};static#t=this.\u0275dir=hn({type:H1,selectors:[["mat-select-trigger"]],standalone:!0,features:[Ir([{provide:T$,useExisting:H1}])]})}class T0{static#e=this.\u0275fac=function(t){return new(t||T0)};static#t=this.\u0275mod=$n({type:T0,imports:[Ea,Wl,x0,er,Ng,H1],exports:[$s,wp,Ng,H1,x0,er]});static#n=this.\u0275inj=Er({providers:[Gfe],imports:[Ea,Wl,x0,er,$s,wp,x0,er]})}const I$=["mat-button",""],$1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],W1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],N7=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",N$=["mat-fab",""],O$=["mat-mini-fab",""],O7='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}',R$=["mat-icon-button",""],F$=["*"],Zfe=new pn("MAT_BUTTON_CONFIG"),Qfe=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];class I0{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,t,r,i){this._elementRef=e,this._platform=t,this._ngZone=r,this._animationMode=i,this._focusMonitor=xn(jl),this._rippleLoader=xn(qS),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const a=xn(Zfe,{optional:!0}),l=e.nativeElement,d=l.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(const{attribute:h,mdcClasses:p}of Qfe)l.hasAttribute(h)&&d.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(t){O_()};static#t=this.\u0275dir=hn({type:I0,inputs:{color:"color",disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr],disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr],ariaDisabled:[Ft.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",fr],disabledInteractive:[Ft.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",fr]},features:[Gi]})}class f5 extends I0{constructor(e,t,r,i){super(e,t,r,i),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static#e=this.\u0275fac=function(t){O_()};static#t=this.\u0275dir=hn({type:f5,inputs:{tabIndex:[Ft.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:cs(e)]},features:[Gi,hr]})}class G1 extends I0{constructor(e,t,r,i){super(e,t,r,i)}static#e=this.\u0275fac=function(t){return new(t||G1)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:G1,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[hr,qr],attrs:I$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}class N0 extends f5{constructor(e,t,r,i){super(e,t,r,i)}static#e=this.\u0275fac=function(t){return new(t||N0)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:N0,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[hr,qr],attrs:I$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',N7],encapsulation:2,changeDetection:0})}const p5=new pn("mat-mdc-fab-default-options",{providedIn:"root",factory:P$});function P$(){return{color:"accent"}}const Og={color:"accent"};class eA extends I0{constructor(e,t,r,i,a){super(e,t,r,i),this._options=a,this._isFab=!0,this._options=this._options||Og,this.color=this._options.color||Og.color}static#e=this.\u0275fac=function(t){return new(t||eA)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8),Ve(p5,8))};static#t=this.\u0275cmp=Tr({type:eA,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0)("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended))},inputs:{extended:[Ft.HasDecoratorInputTransform,"extended","extended",fr]},exportAs:["matButton"],standalone:!0,features:[Gi,hr,qr],attrs:N$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0})}class tA extends I0{constructor(e,t,r,i,a){super(e,t,r,i),this._options=a,this._isFab=!0,this._options=this._options||Og,this.color=this._options.color||Og.color}static#e=this.\u0275fac=function(t){return new(t||tA)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8),Ve(p5,8))};static#t=this.\u0275cmp=Tr({type:tA,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[hr,qr],attrs:O$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[O7],encapsulation:2,changeDetection:0})}class nA extends N0{constructor(e,t,r,i,a){super(e,t,r,i),this._options=a,this._isFab=!0,this._options=this._options||Og,this.color=this._options.color||Og.color}static#e=this.\u0275fac=function(t){return new(t||nA)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8),Ve(p5,8))};static#t=this.\u0275cmp=Tr({type:nA,selectors:[["a","mat-fab",""]],hostVars:19,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0)("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended))},inputs:{extended:[Ft.HasDecoratorInputTransform,"extended","extended",fr]},exportAs:["matButton","matAnchor"],standalone:!0,features:[Gi,hr,qr],attrs:N$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[O7],encapsulation:2,changeDetection:0})}class rA extends N0{constructor(e,t,r,i,a){super(e,t,r,i),this._options=a,this._isFab=!0,this._options=this._options||Og,this.color=this._options.color||Og.color}static#e=this.\u0275fac=function(t){return new(t||rA)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8),Ve(p5,8))};static#t=this.\u0275cmp=Tr({type:rA,selectors:[["a","mat-mini-fab",""]],hostVars:15,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[hr,qr],attrs:O$,ngContentSelectors:W1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri($1),kr(0,"span",0),rr(1),Bt(2,"span",1),rr(3,1),qt(),rr(4,2),kr(5,"span",2)(6,"span",3)),2&t&&Jn("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[O7],encapsulation:2,changeDetection:0})}class X1 extends I0{constructor(e,t,r,i){super(e,t,r,i),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(t){return new(t||X1)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:X1,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[hr,qr],attrs:R$,ngContentSelectors:F$,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri(),kr(0,"span",0),rr(1),kr(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',N7],encapsulation:2,changeDetection:0})}class iA extends f5{constructor(e,t,r,i){super(e,t,r,i)}static#e=this.\u0275fac=function(t){return new(t||iA)(Ve(jn),Ve(Fi),Ve(On),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:iA,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(t,r){2&t&&(vr("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),ea(r.color?"mat-"+r.color:""),Jn("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[hr,qr],attrs:R$,ngContentSelectors:F$,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,r){1&t&&(Ri(),kr(0,"span",0),rr(1),kr(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',N7],encapsulation:2,changeDetection:0})}class Sp{static#e=this.\u0275fac=function(t){return new(t||Sp)};static#t=this.\u0275mod=$n({type:Sp,imports:[er,Mu,N0,G1,iA,rA,tA,X1,nA,eA],exports:[N0,G1,iA,X1,rA,tA,nA,eA,er]});static#n=this.\u0275inj=Er({imports:[er,Mu,er]})}function m5(n){return Hr((e,t)=>{let a,r=null,i=!1;r=e.subscribe(Yn(t,void 0,void 0,l=>{a=ml(n(l,m5(n)(e))),r?(r.unsubscribe(),r=null,a.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,a.subscribe(t))})}function R7(n){return Hr((e,t)=>{try{e.subscribe(t)}finally{t.add(n)}})}class g5{}class b5{}class Jc{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),a=i.toLowerCase(),l=t.slice(r+1).trim();this.maybeSetNormalizedName(i,a),this.headers.has(a)?this.headers.get(a).push(l):this.headers.set(a,[l])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Jc?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Jc;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Jc?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const a=e.value;if(a){let l=this.headers.get(t);if(!l)return;l=l.filter(d=>-1===a.indexOf(d)),0===l.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,l)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(e,t){const r=(Array.isArray(t)?t:[t]).map(a=>a.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class tpe{encodeKey(e){return B$(e)}encodeValue(e){return B$(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const rpe=/%(\d[a-f0-9])/gi,ipe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function B$(n){return encodeURIComponent(n).replace(rpe,(e,t)=>ipe[t]??e)}function v5(n){return`${n}`}class Rg{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new tpe,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function npe(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const a=i.indexOf("="),[l,d]=-1==a?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,a)),e.decodeValue(i.slice(a+1))],h=t.get(l)||[];h.push(d),t.set(l,h)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t],i=Array.isArray(r)?r.map(v5):[v5(r)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)?i.forEach(a=>{t.push({param:r,value:a,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Rg({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(v5(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const i=r.indexOf(v5(e.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class ope{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function L$(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function z$(n){return typeof Blob<"u"&&n instanceof Blob}function V$(n){return typeof FormData<"u"&&n instanceof FormData}class oA{constructor(e,t,r,i){let a;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function ape(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,a=i):a=r,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new Jc,this.context??=new ope,this.params){const l=this.params.toString();if(0===l.length)this.urlWithParams=t;else{const d=t.indexOf("?"),h=-1===d?"?":dR.set(B,e.setHeaders[B]),p)),e.setParams&&(y=Object.keys(e.setParams).reduce((R,B)=>R.set(B,e.setParams[B]),y)),new oA(t,r,l,{params:y,headers:p,context:S,reportProgress:h,responseType:i,withCredentials:d,transferCache:a})}}var zh,O0;!function(n){n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User"}(zh||(zh={}));class F7{constructor(e,t=O0.Ok,r="OK"){this.headers=e.headers||new Jc,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class y5 extends F7{constructor(e={}){super(e),this.type=zh.ResponseHeader}clone(e={}){return new y5({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Fg extends F7{constructor(e={}){super(e),this.type=zh.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Fg({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pg extends F7{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function P7(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}!function(n){n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired"}(O0||(O0={}));class Tu{constructor(e){this.handler=e}request(e,t,r={}){let i;if(e instanceof oA)i=e;else{let d,h;d=r.headers instanceof Jc?r.headers:new Jc(r.headers),r.params&&(h=r.params instanceof Rg?r.params:new Rg({fromObject:r.params})),i=new oA(e,t,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const a=As(i).pipe(function epe(n,e){return me(e)?h1(n,e,1):h1(n,1)}(d=>this.handler.handle(d)));if(e instanceof oA||"events"===r.observe)return a;const l=a.pipe(Io(d=>d instanceof Fg));switch(r.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(kt(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(kt(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(kt(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return l.pipe(kt(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Rg).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,r={}){return this.request("PATCH",e,P7(r,t))}post(e,t,r={}){return this.request("POST",e,P7(r,t))}put(e,t,r={}){return this.request("PUT",e,P7(r,t))}static#e=this.\u0275fac=function(t){return new(t||Tu)(zt(g5))};static#t=this.\u0275prov=_n({token:Tu,factory:Tu.\u0275fac})}const lpe=/^\)\]\}',?\n/;function q$(n){if(n.url)return n.url;const e="X-Request-URL".toLocaleLowerCase();return n.headers.get(e)}class R0{constructor(){this.fetchImpl=xn(dpe,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=xn(On)}handle(e){return new yr(t=>{const r=new AbortController;return this.doRequest(e,r.signal,t).then(B7,i=>t.error(new Pg({error:i}))),()=>r.abort()})}doRequest(e,t,r){var i=this;return xt(function*(){const a=i.createRequestInit(e);let l;try{const B=i.fetchImpl(e.urlWithParams,{signal:t,...a});(function upe(n){n.then(B7,B7)})(B),r.next({type:zh.Sent}),l=yield B}catch(B){return void r.error(new Pg({error:B,status:B.status??0,statusText:B.statusText,url:e.urlWithParams,headers:B.headers}))}const d=new Jc(l.headers),h=l.statusText,p=q$(l)??e.urlWithParams;let y=l.status,S=null;if(e.reportProgress&&r.next(new y5({headers:d,status:y,statusText:h,url:p})),l.body){const B=l.headers.get("content-length"),q=[],V=l.body.getReader();let ne,he,ee=0;const re=typeof Zone<"u"&&Zone.current;yield i.ngZone.runOutsideAngular(xt(function*(){for(;;){const{done:pe,value:oe}=yield V.read();if(pe)break;if(q.push(oe),ee+=oe.length,e.reportProgress){he="text"===e.responseType?(he??"")+(ne??=new TextDecoder).decode(oe,{stream:!0}):void 0;const Ae=()=>r.next({type:zh.DownloadProgress,total:B?+B:void 0,loaded:ee,partialText:he});re?re.run(Ae):Ae()}}}));const ce=i.concatChunks(q,ee);try{const pe=l.headers.get("Content-Type")??"";S=i.parseBody(e,ce,pe)}catch(pe){return void r.error(new Pg({error:pe,headers:new Jc(l.headers),status:l.status,statusText:l.statusText,url:q$(l)??e.urlWithParams}))}}0===y&&(y=S?O0.Ok:0),y>=200&&y<300?(r.next(new Fg({body:S,headers:d,status:y,statusText:h,url:p})),r.complete()):r.error(new Pg({error:S,headers:d,status:y,statusText:h,url:p}))})()}parseBody(e,t,r){switch(e.responseType){case"json":const i=(new TextDecoder).decode(t).replace(lpe,"");return""===i?null:JSON.parse(i);case"text":return(new TextDecoder).decode(t);case"blob":return new Blob([t],{type:r});case"arraybuffer":return t.buffer}}createRequestInit(e){const t={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((i,a)=>t[i]=a.join(",")),t.Accept??="application/json, text/plain, */*",!t["Content-Type"]){const i=e.detectContentTypeHeader();null!==i&&(t["Content-Type"]=i)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:r}}concatChunks(e,t){const r=new Uint8Array(t);let i=0;for(const a of e)r.set(a,i),i+=a.length;return r}static#e=this.\u0275fac=function(t){return new(t||R0)};static#t=this.\u0275prov=_n({token:R0,factory:R0.\u0275fac})}class dpe{}function B7(){}function j$(n,e){return e(n)}function hpe(n,e){return(t,r)=>e.intercept(t,{handle:i=>n(i,r)})}const U$=new pn(""),aA=new pn(""),H$=new pn(""),$$=new pn("");function ppe(){let n=null;return(e,t)=>{null===n&&(n=(xn(U$,{optional:!0})??[]).reduceRight(hpe,j$));const r=xn(Ll),i=r.add();return n(e,t).pipe(R7(()=>r.remove(i)))}}class Y1 extends g5{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=xn(Ll);const r=xn($$,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(aA),...this.injector.get(H$,[])]));this.chain=r.reduceRight((i,a)=>function fpe(n,e,t){return(r,i)=>_b(t,()=>e(r,a=>n(a,i)))}(i,a,this.injector),j$)}const t=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(R7(()=>this.pendingTasks.remove(t)))}static#e=this.\u0275fac=function(t){return new(t||Y1)(zt(b5),zt(ns))};static#t=this.\u0275prov=_n({token:Y1,factory:Y1.\u0275fac})}let W$,gpe=0;class G${}function xpe(){return"object"==typeof window?window:{}}class K1{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+gpe++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new yr(t=>{const r=this.nextCallback(),i=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${r}$1`),a=this.document.createElement("script");a.src=i;let l=null,d=!1;this.callbackMap[r]=S=>{delete this.callbackMap[r],l=S,d=!0};const h=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[r]};return a.addEventListener("load",S=>{this.resolvedPromise.then(()=>{h(),d?(t.next(new Fg({body:l,status:O0.Ok,statusText:"OK",url:i})),t.complete()):t.error(new Pg({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),a.addEventListener("error",S=>{h(),t.error(new Pg({error:S,status:0,statusText:"JSONP Error",url:i}))}),this.document.body.appendChild(a),t.next({type:zh.Sent}),()=>{d||this.removeListeners(a),h()}})}removeListeners(e){W$??=this.document.implementation.createHTMLDocument(),W$.adoptNode(e)}static#e=this.\u0275fac=function(t){return new(t||K1)(zt(G$),zt(Mr))};static#t=this.\u0275prov=_n({token:K1,factory:K1.\u0275fac})}function X$(n,e){return"JSONP"===n.method?xn(K1).handle(n):e(n)}class _5{constructor(e){this.injector=e}intercept(e,t){return _b(this.injector,()=>X$(e,r=>t.handle(r)))}static#e=this.\u0275fac=function(t){return new(t||_5)(zt(ns))};static#t=this.\u0275prov=_n({token:_5,factory:_5.\u0275fac})}const wpe=/^\)\]\}',?\n/;class Z1{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new At(-2800,!1);const t=this.xhrFactory;return(t.\u0275loadImpl?ug(t.\u0275loadImpl()):As(null)).pipe(Bh(()=>new yr(i=>{const a=t.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((q,V)=>a.setRequestHeader(q,V.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const q=e.detectContentTypeHeader();null!==q&&a.setRequestHeader("Content-Type",q)}if(e.responseType){const q=e.responseType.toLowerCase();a.responseType="json"!==q?q:"text"}const l=e.serializeBody();let d=null;const h=()=>{if(null!==d)return d;const q=a.statusText||"OK",V=new Jc(a.getAllResponseHeaders()),ee=function Cpe(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(a)||e.url;return d=new y5({headers:V,status:a.status,statusText:q,url:ee}),d},p=()=>{let{headers:q,status:V,statusText:ee,url:ne}=h(),he=null;V!==O0.NoContent&&(he=typeof a.response>"u"?a.responseText:a.response),0===V&&(V=he?O0.Ok:0);let re=V>=200&&V<300;if("json"===e.responseType&&"string"==typeof he){const ce=he;he=he.replace(wpe,"");try{he=""!==he?JSON.parse(he):null}catch(pe){he=ce,re&&(re=!1,he={error:pe,text:he})}}re?(i.next(new Fg({body:he,headers:q,status:V,statusText:ee,url:ne||void 0})),i.complete()):i.error(new Pg({error:he,headers:q,status:V,statusText:ee,url:ne||void 0}))},y=q=>{const{url:V}=h(),ee=new Pg({error:q,status:a.status||0,statusText:a.statusText||"Unknown Error",url:V||void 0});i.error(ee)};let S=!1;const R=q=>{S||(i.next(h()),S=!0);let V={type:zh.DownloadProgress,loaded:q.loaded};q.lengthComputable&&(V.total=q.total),"text"===e.responseType&&a.responseText&&(V.partialText=a.responseText),i.next(V)},B=q=>{let V={type:zh.UploadProgress,loaded:q.loaded};q.lengthComputable&&(V.total=q.total),i.next(V)};return a.addEventListener("load",p),a.addEventListener("error",y),a.addEventListener("timeout",y),a.addEventListener("abort",y),e.reportProgress&&(a.addEventListener("progress",R),null!==l&&a.upload&&a.upload.addEventListener("progress",B)),a.send(l),i.next({type:zh.Sent}),()=>{a.removeEventListener("error",y),a.removeEventListener("abort",y),a.removeEventListener("load",p),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",R),null!==l&&a.upload&&a.upload.removeEventListener("progress",B)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(t){return new(t||Z1)(zt(fj))};static#t=this.\u0275prov=_n({token:Z1,factory:Z1.\u0275fac})}const x5=new pn(""),Y$="XSRF-TOKEN",K$=new pn("",{providedIn:"root",factory:()=>Y$}),Z$="X-XSRF-TOKEN",Q$=new pn("",{providedIn:"root",factory:()=>Z$});class L7{}class Q1{constructor(e,t,r){this.doc=e,this.platform=t,this.cookieName=r,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=aj(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(t){return new(t||Q1)(zt(Mr),zt(Rl),zt(K$))};static#t=this.\u0275prov=_n({token:Q1,factory:Q1.\u0275fac})}function J$(n,e){const t=n.url.toLowerCase();if(!xn(x5)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const r=xn(L7).getToken(),i=xn(Q$);return null!=r&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,r)})),e(n)}class J1{constructor(e){this.injector=e}intercept(e,t){return _b(this.injector,()=>J$(e,r=>t.handle(r)))}static#e=this.\u0275fac=function(t){return new(t||J1)(zt(ns))};static#t=this.\u0275prov=_n({token:J1,factory:J1.\u0275fac})}var Ap;function F0(n,e){return{\u0275kind:n,\u0275providers:e}}function kpe(...n){const e=[Tu,Z1,Y1,{provide:g5,useExisting:Y1},{provide:b5,useExisting:Z1},{provide:aA,useValue:J$,multi:!0},{provide:x5,useValue:!0},{provide:L7,useClass:Q1}];for(const t of n)e.push(...t.\u0275providers);return cf(e)}!function(n){n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch"}(Ap||(Ap={}));const eW=new pn("");function Epe(){return F0(Ap.LegacyInterceptors,[{provide:eW,useFactory:ppe},{provide:aA,useExisting:eW,multi:!0}])}function tW({cookieName:n,headerName:e}){const t=[];return void 0!==n&&t.push({provide:K$,useValue:n}),void 0!==e&&t.push({provide:Q$,useValue:e}),F0(Ap.CustomXsrfConfiguration,t)}function Ape(){return F0(Ap.JsonpSupport,[K1,{provide:G$,useFactory:xpe},{provide:aA,useValue:X$,multi:!0}])}class sA{static disable(){return{ngModule:sA,providers:[F0(Ap.NoXsrfProtection,[{provide:x5,useValue:!1}]).\u0275providers]}}static withOptions(e={}){return{ngModule:sA,providers:tW(e).\u0275providers}}static#e=this.\u0275fac=function(t){return new(t||sA)};static#t=this.\u0275mod=$n({type:sA});static#n=this.\u0275inj=Er({providers:[J1,{provide:U$,useExisting:J1,multi:!0},{provide:L7,useClass:Q1},tW({cookieName:Y$,headerName:Z$}).\u0275providers,{provide:x5,useValue:!0}]})}class w5{static#e=this.\u0275fac=function(t){return new(t||w5)};static#t=this.\u0275mod=$n({type:w5});static#n=this.\u0275inj=Er({providers:[kpe(Epe())]})}class z7{static#e=this.\u0275fac=function(t){return new(t||z7)};static#t=this.\u0275mod=$n({type:z7});static#n=this.\u0275inj=Er({providers:[Ape().\u0275providers]})}new pn("");const Ope=["*"];let k5;function lA(n){return function Rpe(){if(void 0===k5&&(k5=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(k5=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return k5}()?.createHTML(n)||n}function cW(n){return Error(`Unable to find icon with the name "${n}"`)}function dW(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function uW(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class P0{constructor(e,t,r){this.url=e,this.svgText=t,this.options=r}}class Dp{constructor(e,t,r,i){this._httpClient=e,this._sanitizer=t,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,i){return this._addSvgIconConfig(e,t,new P0(r,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,i){const a=this._sanitizer.sanitize(za.HTML,r);if(!a)throw uW(r);const l=lA(a);return this._addSvgIconConfig(e,t,new P0("",l,i))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new P0(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const i=this._sanitizer.sanitize(za.HTML,t);if(!i)throw uW(t);const a=lA(i);return this._addSvgIconSetConfig(e,new P0("",a,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(za.RESOURCE_URL,e);if(!t)throw dW(e);const r=this._cachedIconsByUrl.get(t);return r?As(E5(r)):this._loadSvgIconFromConfig(new P0(e,null)).pipe(TS(i=>this._cachedIconsByUrl.set(t,i)),kt(i=>E5(i)))}getNamedSvgIcon(e,t=""){const r=hW(t,e);let i=this._svgIconConfigs.get(r);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e),i)return this._svgIconConfigs.set(r,i),this._getSvgFromConfig(i);const a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):function Jfe(n,e){const t=me(n)?n:()=>n,r=i=>i.error(t());return new yr(e?i=>e.schedule(r,0,i):r)}(cW(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?As(E5(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(kt(t=>E5(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);if(r)return As(r);return bS(t.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(m5(l=>{const h=`Loading icon set URL: ${this._sanitizer.sanitize(za.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(h)),As(null)})))).pipe(kt(()=>{const a=this._extractIconWithNameFromAnySet(e,t);if(!a)throw cW(e);return a}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const i=t[r];if(i.svgText&&i.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(i),l=this._extractSvgIconFromSet(a,e,i.options);if(l)return l}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(TS(t=>e.svgText=t),kt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?As(null):this._fetchIcon(e).pipe(TS(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const i=e.querySelector(`[id="${t}"]`);if(!i)return null;const a=i.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const l=this._svgElementFromString(lA(""));return l.appendChild(a),this._setSvgAttributes(l,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(lA("")),r=e.attributes;for(let i=0;ilA(h)),R7(()=>this._inProgressUrlFetches.delete(a)),o$());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(hW(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;re?e.pathname+e.search:""}}});const fW=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],qpe=fW.map(n=>`[${n}]`).join(", "),jpe=/^url\(['"]?#(.*?)['"]?\)$/;class ew{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}constructor(e,t,r,i,a,l){this._elementRef=e,this._iconRegistry=t,this._location=i,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ke.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,i)=>{r.forEach(a=>{i.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(qpe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const l=t[i],d=l.getAttribute(a),h=d?d.match(jpe):null;if(h){let p=r.get(l);p||(p=[],r.set(l,p)),p.push({name:a,value:h[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe(ds(1)).subscribe(i=>this._setSvgElement(i),i=>{const a=`Error retrieving icon ${t}:${r}! ${i.message}`;this._errorHandler.handleError(new Error(a))})}}static#e=this.\u0275fac=function(t){return new(t||ew)(Ve(jn),Ve(Dp),vd("aria-hidden"),Ve(zpe),Ve(wo),Ve(Lpe,8))};static#t=this.\u0275cmp=Tr({type:ew,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,r){2&t&&(vr("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),ea(r.color?"mat-"+r.color:""),Jn("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[Ft.HasDecoratorInputTransform,"inline","inline",fr],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Gi,qr],ngContentSelectors:Ope,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}class B0{static#e=this.\u0275fac=function(t){return new(t||B0)};static#t=this.\u0275mod=$n({type:B0,imports:[er,ew],exports:[ew,er]});static#n=this.\u0275inj=Er({imports:[er,er]})}const Upe=["determinateSpinner"];function Hpe(n,e){if(1&n&&(Fs(),Bt(0,"svg",11),kr(1,"circle",12),qt()),2&n){const t=fn();vr("viewBox",t._viewBox()),Gt(),co("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),vr("r",t._circleRadius())}}const $pe=new pn("mat-progress-spinner-default-options",{providedIn:"root",factory:function Wpe(){return{diameter:pW}}});const pW=100;class tw{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,t,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=pW,this._noopAnimations="NoopAnimations"===t&&!!r&&!r._forceAnimations,this.mode="mat-spinner"===e.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const e=2*this._circleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(t){return new(t||tw)(Ve(jn),Ve(Co,8),Ve($pe))};static#t=this.\u0275cmp=Tr({type:tw,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,r){if(1&t&&_i(Upe,5),2&t){let i;or(i=ar())&&(r._determinateCircle=i.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,r){2&t&&(vr("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),ea("mat-"+r.color),co("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),Jn("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===r.mode))},inputs:{color:"color",mode:"mode",value:[Ft.HasDecoratorInputTransform,"value","value",cs],diameter:[Ft.HasDecoratorInputTransform,"diameter","diameter",cs],strokeWidth:[Ft.HasDecoratorInputTransform,"strokeWidth","strokeWidth",cs]},exportAs:["matProgressSpinner"],standalone:!0,features:[Gi,qr],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,r){if(1&t&&(sr(0,Hpe,2,8,"ng-template",null,0,O3),Bt(2,"div",2,1),Fs(),Bt(4,"svg",3),kr(5,"circle",4),qt()(),Ib(),Bt(6,"div",5)(7,"div",6)(8,"div",7),fl(9,8),qt(),Bt(10,"div",9),fl(11,8),qt(),Bt(12,"div",10),fl(13,8),qt()()()),2&t){const i=Eh(1);Gt(4),vr("viewBox",r._viewBox()),Gt(),co("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),vr("r",r._circleRadius()),Gt(4),En("ngTemplateOutlet",i),Gt(2),En("ngTemplateOutlet",i),Gt(2),En("ngTemplateOutlet",i)}},dependencies:[wu],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}const mW=tw;class S5{static#e=this.\u0275fac=function(t){return new(t||S5)};static#t=this.\u0275mod=$n({type:S5,imports:[Ea,tw,mW],exports:[tw,mW,er]});static#n=this.\u0275inj=Er({imports:[Ea,er]})}const Xpe=["tooltip"];const bW=new pn("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.reposition({scrollThrottle:20})}});const Kpe={provide:bW,deps:[Aa],useFactory:function Ype(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}};const Qpe=new pn("mat-tooltip-default-options",{providedIn:"root",factory:function Zpe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),vW="tooltip-panel",yW=cg({passive:!0});class nw{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=yc(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=yc(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Xc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Xc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,t,r,i,a,l,d,h,p,y,S,R){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=i,this._ngZone=a,this._platform=l,this._ariaDescriber=d,this._focusMonitor=h,this._dir=y,this._defaultOptions=S,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=rw,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ln,this._scrollStrategy=p,this._document=R,S&&(this._showDelay=S.showDelay,this._hideDelay=S.hideDelay,S.position&&(this.position=S.position),S.positionAtOrigin&&(this.positionAtOrigin=S.positionAtOrigin),S.touchGestures&&(this.touchGestures=S.touchGestures)),y.change.pipe(jr(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(jr(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,yW)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(t);this._detach(),this._portal=this._portal||new j1(this._tooltipComponent,this._viewContainerRef);const i=this._tooltipInstance=r.attach(this._portal).instance;i._triggerElement=this._elementRef.nativeElement,i._mouseLeaveHideDelay=this._hideDelay,i.afterHidden().pipe(jr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),i.show(e)}hide(e=this.hideDelay){const t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const i=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&i._origin instanceof jn)return this._overlayRef;this._detach()}const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(jr(this._destroyed)).subscribe(i=>{this._updateCurrentPositionClass(i.connectionPair),this._tooltipInstance&&i.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${vW}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(jr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(jr(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(jr(this._destroyed)).subscribe(i=>{this._isTooltipVisible()&&27===i.keyCode&&!Yc(i)&&(i.preventDefault(),i.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...i.main}),this._addOffset({...r.fallback,...i.fallback})])}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:i,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:i,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:i,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:i,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ds(1),jr(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:i}=e;let a;if(a="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===i?"above":"below",a!==this._currentPosition){const l=this._overlayRef;if(l){const d=`${this._cssClassPrefix}-${vW}-`;l.removePanelClass(d+this._currentPosition),l.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let t;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(t=e),this.show(void 0,t)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const t=e.targetTouches?.[0],r=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,yW)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(t){return new(t||nw)(Ve(Aa),Ve(jn),Ve(Zc),Ve(Wo),Ve(On),Ve(Fi),Ve(NS),Ve(jl),Ve(bW),Ve(pa),Ve(Qpe,8),Ve(Mr))};static#t=this.\u0275dir=hn({type:nw,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[Ft.None,"matTooltipPosition","position"],positionAtOrigin:[Ft.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[Ft.None,"matTooltipDisabled","disabled"],showDelay:[Ft.None,"matTooltipShowDelay","showDelay"],hideDelay:[Ft.None,"matTooltipHideDelay","hideDelay"],touchGestures:[Ft.None,"matTooltipTouchGestures","touchGestures"],message:[Ft.None,"matTooltip","message"],tooltipClass:[Ft.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}class rw{constructor(e,t,r){this._changeDetectorRef=e,this._elementRef=t,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ln,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===r}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,i=this._hideAnimation;if(t.classList.remove(e?i:r),t.classList.add(e?r:i),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(t);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(t){return new(t||rw)(Ve(mo),Ve(jn),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:rw,selectors:[["mat-tooltip-component"]],viewQuery:function(t,r){if(1&t&&_i(Xpe,7),2&t){let i;or(i=ar())&&(r._tooltip=i.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,r){1&t&&Fn("mouseleave",function(a){return r._handleMouseLeave(a)}),2&t&&co("zoom",r.isVisible()?1:null)},standalone:!0,features:[qr],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(t,r){if(1&t){const i=Ai();Bt(0,"div",1,0),Fn("animationend",function(l){return Cn(i),kn(r._handleAnimationEnd(l))}),Bt(2,"div",2),xi(3),qt()()}2&t&&(Jn("mdc-tooltip--multiline",r._isMultiline),En("ngClass",r.tooltipClass),Gt(3),Xa(r.message))},dependencies:[og],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}vc("state",[fa("initial, void, hidden",Hi({opacity:0,transform:"scale(0.8)"})),fa("visible",Hi({transform:"scale(1)"})),Na("* => visible",ja("150ms cubic-bezier(0, 0, 0.2, 1)")),Na("* => hidden",ja("75ms cubic-bezier(0.4, 0, 1, 1)"))]);class L0{static#e=this.\u0275fac=function(t){return new(t||L0)};static#t=this.\u0275mod=$n({type:L0,imports:[y0,Ea,Wl,er,nw,rw],exports:[nw,rw,er,$s]});static#n=this.\u0275inj=Er({providers:[Kpe],imports:[y0,Ea,Wl,er,er,$s]})}const rme=["input"],ime=["label"],ome=["*"],ame=new pn("mat-checkbox-default-options",{providedIn:"root",factory:_W});function _W(){return{color:"accent",clickAction:"check-indeterminate"}}var Xs;!function(n){n[n.Init=0]="Init",n[n.Checked=1]="Checked",n[n.Unchecked=2]="Unchecked",n[n.Indeterminate=3]="Indeterminate"}(Xs||(Xs={}));const sme={provide:Du,useExisting:Gn(()=>Bg),multi:!0};class lme{}let cme=0;const xW={color:"accent",clickAction:"check-indeterminate"};class Bg{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const t=new lme;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,r,i,a,l){this._elementRef=e,this._changeDetectorRef=t,this._ngZone=r,this._animationMode=a,this._options=l,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new cn,this.indeterminateChange=new cn,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Xs.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||xW,this.color=this._options.color||xW.color,this.tabIndex=parseInt(i)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++cme}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(Xs.Indeterminate):this._transitionCheckState(this.checked?Xs.Checked:Xs.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(i)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Xs.Checked:Xs.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case Xs.Init:if(t===Xs.Checked)return this._animationClasses.uncheckedToChecked;if(t==Xs.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Xs.Unchecked:return t===Xs.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Xs.Checked:return t===Xs.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Xs.Indeterminate:return t===Xs.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(t){return new(t||Bg)(Ve(jn),Ve(mo),Ve(On),vd("tabindex"),Ve(Co,8),Ve(ame,8))};static#t=this.\u0275cmp=Tr({type:Bg,selectors:[["mat-checkbox"]],viewQuery:function(t,r){if(1&t&&(_i(rme,5),_i(ime,5),_i(Hl,5)),2&t){let i;or(i=ar())&&(r._inputElement=i.first),or(i=ar())&&(r._labelElement=i.first),or(i=ar())&&(r.ripple=i.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(t,r){2&t&&(js("id",r.id),vr("tabindex",null)("aria-label",null)("aria-labelledby",null),ea(r.color?"mat-"+r.color:"mat-accent"),Jn("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:[Ft.None,"aria-label","ariaLabel"],ariaLabelledby:[Ft.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[Ft.None,"aria-describedby","ariaDescribedby"],id:"id",required:[Ft.HasDecoratorInputTransform,"required","required",fr],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr],tabIndex:[Ft.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:cs(e)],color:"color",checked:[Ft.HasDecoratorInputTransform,"checked","checked",fr],disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr],indeterminate:[Ft.HasDecoratorInputTransform,"indeterminate","indeterminate",fr]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Ir([sme,{provide:Ss,useExisting:Bg,multi:!0}]),Gi,Ui,qr],ngContentSelectors:ome,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,r){if(1&t){const i=Ai();Ri(),Bt(0,"div",3),Fn("click",function(l){return Cn(i),kn(r._preventBubblingFromLabel(l))}),Bt(1,"div",4,0)(3,"div",5),Fn("click",function(){return Cn(i),kn(r._onTouchTargetClick())}),qt(),Bt(4,"input",6,1),Fn("blur",function(){return Cn(i),kn(r._onBlur())})("click",function(){return Cn(i),kn(r._onInputClick())})("change",function(l){return Cn(i),kn(r._onInteractionEvent(l))}),qt(),kr(6,"div",7),Bt(7,"div",8),Fs(),Bt(8,"svg",9),kr(9,"path",10),qt(),Ib(),kr(10,"div",11),qt(),kr(11,"div",12),qt(),Bt(12,"label",13,2),rr(14),qt()()}if(2&t){const i=Eh(2);En("labelPosition",r.labelPosition),Gt(4),Jn("mdc-checkbox--selected",r.checked),En("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),vr("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),Gt(7),En("matRippleTrigger",i)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),Gt(),En("for",r.inputId)}},dependencies:[Hl,o5],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}const dme={provide:Ss,useExisting:Gn(()=>z0),multi:!0};class z0 extends vp{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(z0)))(r||z0)}})();static#t=this.\u0275dir=hn({type:z0,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],standalone:!0,features:[Ir([dme]),hr]})}class V7{static#e=this.\u0275fac=function(t){return new(t||V7)};static#t=this.\u0275mod=$n({type:V7,imports:[z0],exports:[z0]});static#n=this.\u0275inj=Er({})}class A5{static#e=this.\u0275fac=function(t){return new(t||A5)};static#t=this.\u0275mod=$n({type:A5,imports:[Bg,er],exports:[Bg,er]});static#n=this.\u0275inj=Er({imports:[Bg,er,er]})}function ume(n,e){}class D5{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}class V0 extends d5{constructor(e,t,r,i,a,l,d,h){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=i,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=d,this._focusMonitor=h,this._platform=xn(Fi),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=xn(mo),this.attachDomPortal=p=>{this._portalOutlet.hasAttached();const y=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),y},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){const t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(t=>{t||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=uS(),i=this._elementRef.nativeElement;(!r||r===this._document.body||r===i||i.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=uS();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=uS()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(t){return new(t||V0)(Ve(jn),Ve(Dg),Ve(Mr,8),Ve(D5),Ve(_p),Ve(On),Ve(u5),Ve(jl))};static#t=this.\u0275cmp=Tr({type:V0,selectors:[["cdk-dialog-container"]],viewQuery:function(t,r){if(1&t&&_i(Ws,7),2&t){let i;or(i=ar())&&(r._portalOutlet=i.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,r){2&t&&vr("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[hr,qr],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,r){1&t&&sr(0,ume,0,0,"ng-template",0)},dependencies:[Ws],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}class q7{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new ln,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(r=>{27===r.keyCode&&!this.disableClose&&!Yc(r)&&(r.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{!1!==t.closeOnOverlayDetachments&&this.close()})}close(e,t){if(this.containerInstance){const r=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),r.next(e),r.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}}const wW=new pn("DialogScrollStrategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.block()}}),hme=new pn("DialogData"),fme=new pn("DefaultDialogConfig");let mme=0;class q0{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,t,r,i,a,l){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=i,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ln,this._afterOpenedAtThisLevel=new ln,this._ariaHiddenElements=new Map,this.afterAllClosed=I7(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sa(void 0))),this._scrollStrategy=l}open(e,t){(t={...this._defaultOptions||new D5,...t}).id=t.id||"cdk-dialog-"+mme++,t.id&&this.getDialogById(t.id);const i=this._getOverlayConfig(t),a=this._overlay.create(i),l=new q7(a,t),d=this._attachContainer(a,l,t);return l.containerInstance=d,this._attachDialogContent(e,l,d,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){j7(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){j7(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),j7(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new KS({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const i=r.injector||r.viewContainerRef?.injector,a=[{provide:D5,useValue:r},{provide:q7,useValue:t},{provide:u5,useValue:e}];let l;r.container?"function"==typeof r.container?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=V0;const d=new j1(l,r.viewContainerRef,di.create({parent:i||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,i){if(e instanceof $o){const a=this._createInjector(i,t,r,void 0);let l={$implicit:i.data,dialogRef:t};i.templateContext&&(l={...l,..."function"==typeof i.templateContext?i.templateContext():i.templateContext}),r.attachTemplatePortal(new Lh(e,null,l,a))}else{const a=this._createInjector(i,t,r,this._injector),l=r.attachComponentPortal(new j1(e,i.viewContainerRef,a,i.componentFactoryResolver));t.componentRef=l,t.componentInstance=l.instance}}_createInjector(e,t,r,i){const a=e.injector||e.viewContainerRef?.injector,l=[{provide:hme,useValue:e.data},{provide:q7,useValue:t}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(t,e,r)):l.push(...e.providers)),e.direction&&(!a||!a.get(pa,null,{optional:!0}))&&l.push({provide:pa,useValue:{value:e.direction,change:As()}}),di.create({parent:a||i,providers:l})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((i,a)=>{i?a.setAttribute("aria-hidden",i):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const i=t[r];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(t){return new(t||q0)(zt(Aa),zt(di),zt(fme,8),zt(q0,12),zt(kp),zt(wW))};static#t=this.\u0275prov=_n({token:q0,factory:q0.\u0275fac,providedIn:"root"})}function j7(n,e){let t=n.length;for(;t--;)e(n[t])}class cA{static#e=this.\u0275fac=function(t){return new(t||cA)};static#t=this.\u0275mod=$n({type:cA,imports:[Wl,Gs,y0,V0],exports:[Gs,V0]});static#n=this.\u0275inj=Er({providers:[q0],imports:[Wl,Gs,y0,Gs]})}function gme(n,e){}class U7{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const H7="mdc-dialog--open",CW="mdc-dialog--opening",kW="mdc-dialog--closing";class j0 extends V0{constructor(e,t,r,i,a,l,d,h,p){super(e,t,r,i,a,l,d,p),this._animationMode=h,this._animationStateChanged=new cn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?SW(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?SW(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(EW,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CW,H7)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(H7),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(H7),this._animationsEnabled?(this._hostElement.style.setProperty(EW,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(kW)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(CW,kW)}_waitForAnimationToComplete(e,t){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(e){const t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static#e=this.\u0275fac=function(t){return new(t||j0)(Ve(jn),Ve(Dg),Ve(Mr,8),Ve(U7),Ve(_p),Ve(On),Ve(u5),Ve(Co,8),Ve(jl))};static#t=this.\u0275cmp=Tr({type:j0,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,r){2&t&&(js("id",r._config.id),vr("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Jn("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[hr,qr],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,r){1&t&&(Bt(0,"div",0)(1,"div",1),sr(2,gme,0,0,"ng-template",2),qt()())},dependencies:[Ws],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-title{padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}const EW="--mat-dialog-transition-duration";function SW(n){return null==n?null:"number"==typeof n?n:n.endsWith("ms")?Xc(n.substring(0,n.length-2)):n.endsWith("s")?1e3*Xc(n.substring(0,n.length-1)):"0"===n?0:null}var dA;!function(n){n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED"}(dA||(dA={}));class uA{constructor(e,t,r){this._ref=e,this._containerInstance=r,this._afterOpened=new ln,this._beforeClosed=new ln,this._state=dA.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),r._animationStateChanged.pipe(Io(i=>"opened"===i.state),ds(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),r._animationStateChanged.pipe(Io(i=>"closed"===i.state),ds(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),$l(this.backdropClick(),this.keydownEvents().pipe(Io(i=>27===i.keyCode&&!this.disableClose&&!Yc(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),AW(this,"keydown"===i.type?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Io(t=>"closing"===t.state),ds(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=dA.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=dA.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function AW(n,e,t){return n._closeInteractionType=e,n.close(t)}const hA=new pn("MatMdcDialogData"),yme=new pn("mat-mdc-dialog-default-options"),DW=new pn("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.block()}});let xme=0;class Iu{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,t,r,i,a,l,d,h){this._overlay=e,this._defaultOptions=i,this._scrollStrategy=a,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ln,this._afterOpenedAtThisLevel=new ln,this.dialogConfigClass=U7,this.afterAllClosed=I7(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sa(void 0))),this._dialog=t.get(q0),this._dialogRefConstructor=uA,this._dialogContainerType=j0,this._dialogDataToken=hA}open(e,t){let r;(t={...this._defaultOptions||new U7,...t}).id=t.id||"mat-mdc-dialog-"+xme++,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const i=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:D5,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(a,l,d)=>(r=new this._dialogRefConstructor(a,t,d),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=i.componentRef,r.componentInstance=i.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}static#e=this.\u0275fac=function(t){return new(t||Iu)(zt(Aa),zt(di),zt(Vv,8),zt(yme,8),zt(DW),zt(Iu,12),zt(kp),zt(Co,8))};static#t=this.\u0275prov=_n({token:Iu,factory:Iu.\u0275fac,providedIn:"root"})}let wme=0;class iw{constructor(e,t,r){this.dialogRef=e,this._elementRef=t,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=MW(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}_onButtonClick(e){AW(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(t){return new(t||iw)(Ve(uA,8),Ve(jn),Ve(Iu))};static#t=this.\u0275dir=hn({type:iw,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,r){1&t&&Fn("click",function(a){return r._onButtonClick(a)}),2&t&&vr("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[Ft.None,"aria-label","ariaLabel"],type:"type",dialogResult:[Ft.None,"mat-dialog-close","dialogResult"],_matDialogClose:[Ft.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Ui]})}class fA{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=MW(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static#e=this.\u0275fac=function(t){return new(t||fA)(Ve(uA,8),Ve(jn),Ve(Iu))};static#t=this.\u0275dir=hn({type:fA,standalone:!0})}class U0 extends fA{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+wme++}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(U0)))(r||U0)}})();static#t=this.\u0275dir=hn({type:U0,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,r){2&t&&js("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[hr]})}class ow{static#e=this.\u0275fac=function(t){return new(t||ow)};static#t=this.\u0275dir=hn({type:ow,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}class H0 extends fA{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(H0)))(r||H0)}})();static#t=this.\u0275dir=hn({type:H0,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,r){2&t&&Jn("mat-mdc-dialog-actions-align-start","start"===r.align)("mat-mdc-dialog-actions-align-center","center"===r.align)("mat-mdc-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"},standalone:!0,features:[hr]})}function MW(n,e){let t=n.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(r=>r.id===t.id):null}class M5{static#e=this.\u0275fac=function(t){return new(t||M5)};static#t=this.\u0275mod=$n({type:M5,imports:[cA,Wl,Gs,er,j0,iw,U0,H0,ow],exports:[er,j0,iw,U0,H0,ow]});static#n=this.\u0275inj=Er({providers:[Iu],imports:[cA,Wl,Gs,er,er]})}const TW={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}};vc("dialogContainer",[fa("void, exit",Hi({opacity:0,transform:"scale(0.7)"})),fa("enter",Hi({transform:"none"})),Na("* => enter",m4([ja("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Hi({transform:"none",opacity:1})),JE("@*",QE(),{optional:!0})]),TW),Na("* => void, * => exit",m4([ja("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Hi({opacity:0})),JE("@*",QE(),{optional:!0})]),TW)]);function Cme(n,e){if(1&n){const t=Ai();Bt(0,"div",1)(1,"button",2),Fn("click",function(){Cn(t);return kn(fn().action())}),xi(2),qt()()}if(2&n){const t=fn();Gt(2),_u(" ",t.data.action," ")}}const kme=["label"];function Eme(n,e){}const Sme=Math.pow(2,31)-1;class $7{constructor(e,t){this._overlayRef=t,this._afterDismissed=new ln,this._afterOpened=new ln,this._onAction=new ln,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,Sme))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const IW=new pn("MatSnackBarData");class T5{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}class $0{static#e=this.\u0275fac=function(t){return new(t||$0)};static#t=this.\u0275dir=hn({type:$0,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}class W0{static#e=this.\u0275fac=function(t){return new(t||W0)};static#t=this.\u0275dir=hn({type:W0,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}class G0{static#e=this.\u0275fac=function(t){return new(t||G0)};static#t=this.\u0275dir=hn({type:G0,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}class aw{constructor(e,t){this.snackBarRef=e,this.data=t}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(t){return new(t||aw)(Ve($7),Ve(IW))};static#t=this.\u0275cmp=Tr({type:aw,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[qr],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(t,r){1&t&&(Bt(0,"div",0),xi(1),qt(),sr(2,Cme,3,1,"div",1)),2&t&&(Gt(),_u(" ",r.data.message,"\n"),Gt(),yi(2,r.hasAction?2:-1))},dependencies:[G1,$0,W0,G0],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}const Ame={snackBarState:vc("state",[fa("void, hidden",Hi({transform:"scale(0.8)",opacity:0})),fa("visible",Hi({transform:"scale(1)",opacity:1})),Na("* => visible",ja("150ms cubic-bezier(0, 0, 0.2, 1)")),Na("* => void, * => hidden",ja("75ms cubic-bezier(0.4, 0.0, 1, 1)",Hi({opacity:0})))])};let Dme=0;class X0 extends d5{constructor(e,t,r,i,a){super(),this._ngZone=e,this._elementRef=t,this._changeDetectorRef=r,this._platform=i,this.snackBarConfig=a,this._document=xn(Mr),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ln,this._onExit=new ln,this._onEnter=new ln,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Dme++,this.attachDomPortal=l=>{this._assertNotAttached();const d=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),d},"assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?this._live="off":this._live="polite":this._live="assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}onAnimationEnd(e){const{fromState:t,toState:r}=e;if(("void"===r&&"void"!==t||"hidden"===r)&&this._completeExit(),"visible"===r){const i=this._onEnter;this._ngZone.run(()=>{i.next(),i.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(a=>e.classList.add(a)):e.classList.add(t)),this._exposeToModals();const r=this._label.nativeElement,i="mdc-snackbar__label";r.classList.toggle(i,!r.querySelector(`.${i}`))}_exposeToModals(){const e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const t=e.getAttribute("aria-owns");if(t){const r=t.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),t=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&t){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),t.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(t){return new(t||X0)(Ve(On),Ve(jn),Ve(mo),Ve(Fi),Ve(T5))};static#t=this.\u0275cmp=Tr({type:X0,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,r){if(1&t&&(_i(Ws,7),_i(kme,7)),2&t){let i;or(i=ar())&&(r._portalOutlet=i.first),or(i=ar())&&(r._label=i.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(t,r){1&t&&M3("@state.done",function(a){return r.onAnimationEnd(a)}),2&t&&Fx("@state",r._animationState)},standalone:!0,features:[hr,qr],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,r){1&t&&(Bt(0,"div",1)(1,"div",2,0)(3,"div",3),sr(4,Eme,0,0,"ng-template",4),qt(),kr(5,"div"),qt()()),2&t&&(Gt(5),vr("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Ws],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[Ame.snackBarState]}})}const Tme=new pn("mat-snack-bar-default-options",{providedIn:"root",factory:function Mme(){return new T5}});class Y0{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,t,r,i,a,l){this._overlay=e,this._live=t,this._injector=r,this._breakpointObserver=i,this._parentSnackBar=a,this._defaultConfig=l,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=aw,this.snackBarContainerComponent=X0,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",r){const i={...this._defaultConfig,...r};return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){const r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=di.create({parent:r||this._injector,providers:[{provide:T5,useValue:t}]}),a=new j1(this.snackBarContainerComponent,t.viewContainerRef,i),l=e.attach(a);return l.instance.snackBarConfig=t,l.instance}_attach(e,t){const r={...new T5,...this._defaultConfig,...t},i=this._createOverlay(r),a=this._attachSnackBarContainer(i,r),l=new $7(a,i);if(e instanceof $o){const d=new Lh(e,null,{$implicit:r.data,snackBarRef:l});l.instance=a.attachTemplatePortal(d)}else{const d=this._createInjector(r,l),h=new j1(e,void 0,d),p=a.attachComponentPortal(h);l.instance=p.instance}return this._breakpointObserver.observe(bue_HandsetPortrait).pipe(jr(i.detachments())).subscribe(d=>{i.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(l,r),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration))}_createOverlay(e){const t=new KS;t.direction=e.direction;let r=this._overlay.position().global();const i="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,l=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):l?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),t.positionStrategy=r,this._overlay.create(t)}_createInjector(e,t){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return di.create({parent:r||this._injector,providers:[{provide:$7,useValue:t},{provide:IW,useValue:e.data}]})}static#e=this.\u0275fac=function(t){return new(t||Y0)(zt(Aa),zt(v0),zt(di),zt(k1),zt(Y0,12),zt(Tme))};static#t=this.\u0275prov=_n({token:Y0,factory:Y0.\u0275fac,providedIn:"root"})}class I5{static#e=this.\u0275fac=function(t){return new(t||I5)};static#t=this.\u0275mod=$n({type:I5,imports:[Wl,Gs,Sp,er,aw,X0,$0,W0,G0],exports:[er,X0,$0,W0,G0]});static#n=this.\u0275inj=Er({providers:[Y0],imports:[Wl,Gs,Sp,er,aw,er]})}function N5(n){return kt(()=>n)}function NW(n,e){return e?t=>K4(e.pipe(ds(1),function Ime(){return Hr((n,e)=>{n.subscribe(Yn(e,at))})}()),t.pipe(NW(n))):h1((t,r)=>ml(n(t,r)).pipe(ds(1),N5(t)))}function OW(n,e=N4){const t=O4(n,e);return NW(()=>t)}const Nme=["mat-menu-item",""],Ome=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Rme=["mat-icon, [matMenuItemIcon]","*"];function Fme(n,e){1&n&&(Fs(),Bt(0,"svg",2),kr(1,"polygon",3),qt())}const Pme=["*"];function Bme(n,e){if(1&n){const t=Ai();Bt(0,"div",0),Fn("keydown",function(i){Cn(t);return kn(fn()._handleKeydown(i))})("click",function(){Cn(t);return kn(fn().closed.emit("click"))})("@transformMenu.start",function(i){Cn(t);return kn(fn()._onAnimationStart(i))})("@transformMenu.done",function(i){Cn(t);return kn(fn()._onAnimationDone(i))}),Bt(1,"div",1),rr(2),qt()()}if(2&n){const t=fn();ea(t._classList),En("id",t.panelId)("@transformMenu",t._panelAnimationState),vr("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const W7=new pn("MAT_MENU_PANEL");class Lg{constructor(e,t,r,i,a){this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=i,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new ln,this._focused=new ln,this._highlighted=!1,this._triggersSubmenu=!1,i?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",ja("120ms cubic-bezier(0, 0, 0.2, 1)",Hi({opacity:1,transform:"scale(1)"}))),Na("* => void",ja("100ms 25ms linear",Hi({opacity:0})))]),fadeInItems:vc("fadeInItems",[fa("showing",Hi({opacity:1})),Na("void => *",[Hi({opacity:0}),ja("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};O5.fadeInItems,O5.transformMenu;let Lme=0;const zme=new pn("mat-menu-default-options",{providedIn:"root",factory:function Vme(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});class Vh{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){const t=this._previousPanelClass,r={...this._classList};t&&t.length&&t.split(" ").forEach(i=>{r[i]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(i=>{r[i]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,r,i){this._elementRef=e,this._ngZone=t,this._changeDetectorRef=i,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new lo,this._classList={},this._panelAnimationState="void",this._animationDone=new ln,this.closed=new cn,this.close=this.closed,this.panelId="mat-menu-panel-"+Lme++,this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new J4(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Sa(this._directDescendantItems),Bh(e=>$l(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),i=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[i]&&!r[i].disabled?t.setActiveItem(i):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Sa(this._directDescendantItems),Bh(t=>$l(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Yc(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ds(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,i=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!i||i===this._previousElevation){const a={...this._classList};this._previousElevation&&(a[this._previousElevation]=!1),a[r]=!0,this._previousElevation=r,this._classList=a}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===e,"mat-menu-after":"after"===e,"mat-menu-above":"above"===t,"mat-menu-below":"below"===t},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Sa(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(t){return new(t||Vh)(Ve(jn),Ve(On),Ve(zme),Ve(mo))};static#t=this.\u0275cmp=Tr({type:Vh,selectors:[["mat-menu"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,RW,5),ho(i,Lg,5),ho(i,Lg,4)),2&t){let a;or(a=ar())&&(r.lazyContent=a.first),or(a=ar())&&(r._allItems=a),or(a=ar())&&(r.items=a)}},viewQuery:function(t,r){if(1&t&&_i($o,5),2&t){let i;or(i=ar())&&(r.templateRef=i.first)}},hostVars:3,hostBindings:function(t,r){2&t&&vr("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[Ft.None,"aria-label","ariaLabel"],ariaLabelledby:[Ft.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[Ft.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[Ft.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",fr],hasBackdrop:[Ft.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>null==e?null:fr(e)],panelClass:[Ft.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Ir([{provide:W7,useExisting:Vh}]),Gi,qr],ngContentSelectors:Pme,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,r){1&t&&(Ri(),sr(0,Bme,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[O5.transformMenu,O5.fadeInItems]},changeDetection:0})}const FW=new pn("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const n=xn(Aa);return()=>n.scrollStrategies.reposition()}});const jme={provide:FW,deps:[Aa],useFactory:function qme(n){return()=>n.scrollStrategies.reposition()}},PW=cg({passive:!0});class pA{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,r,i,a,l,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=l,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ke.EMPTY,this._hoverSubscription=ke.EMPTY,this._menuCloseSubscription=ke.EMPTY,this._changeDetectorRef=xn(mo),this._handleTouchStart=y=>{u7(y)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new cn,this.onMenuOpen=this.menuOpened,this.menuClosed=new cn,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=a instanceof Vh?a:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,PW)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,PW),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),i=r.positionStrategy;this._setPosition(e,i),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Vh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(jr(e.close)).subscribe(()=>{i.withLockedPosition(!1).reapplyLastPosition(),i.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Vh?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Io(r=>"void"===r.toState),ds(1),jr(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new KS({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const i="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(i,a)):e.setPositionClasses(i,a)})}_setPosition(e,t){let[r,i]="before"===e.xPosition?["end","start"]:["start","end"],[a,l]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[d,h]=[a,l],[p,y]=[r,i],S=0;if(this.triggersSubmenu()){if(y=r="before"===e.xPosition?"start":"end",i=p="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const R=this._parentMaterialMenu.items.first;this._parentInnerPadding=R?R._getHostElement().offsetTop:0}S="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d="top"===a?"bottom":"top",h="top"===l?"bottom":"top");t.withPositions([{originX:r,originY:d,overlayX:p,overlayY:a,offsetY:S},{originX:i,originY:d,overlayX:y,overlayY:a,offsetY:S},{originX:r,originY:h,overlayX:p,overlayY:l,offsetY:-S},{originX:i,originY:h,overlayX:y,overlayY:l,offsetY:-S}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments();return $l(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:As(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Io(a=>a!==this._menuItemInstance),Io(()=>this._menuOpen)):As(),t)}_handleMousedown(e){d7(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Io(e=>e===this._menuItemInstance&&!e.disabled),OW(0,D7)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Vh&&this.menu._isAnimating?this.menu._animationDone.pipe(ds(1),OW(0,D7),jr(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Lh(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(t){return new(t||pA)(Ve(Aa),Ve(jn),Ve(Wo),Ve(FW),Ve(W7,8),Ve(Lg,10),Ve(pa,8),Ve(jl),Ve(On))};static#t=this.\u0275dir=hn({type:pA,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,r){1&t&&Fn("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),2&t&&vr("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[Ft.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[Ft.None,"matMenuTriggerFor","menu"],menuData:[Ft.None,"matMenuTriggerData","menuData"],restoreFocus:[Ft.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}class mA{static#e=this.\u0275fac=function(t){return new(t||mA)};static#t=this.\u0275mod=$n({type:mA,imports:[Ea,Mu,er,Wl,Vh,Lg,sw,pA],exports:[$s,Vh,er,Lg,sw,pA]});static#n=this.\u0275inj=Er({providers:[jme],imports:[Ea,Mu,er,Wl,$s,er]})}let Ume=0;const G7=new pn("CdkAccordion");class K0{constructor(){this._stateChanges=new ln,this._openCloseAllActions=new ln,this.id="cdk-accordion-"+Ume++,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(t){return new(t||K0)};static#t=this.\u0275dir=hn({type:K0,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[Ft.HasDecoratorInputTransform,"multi","multi",fr]},exportAs:["cdkAccordion"],standalone:!0,features:[Ir([{provide:G7,useExisting:K0}]),Gi,Ui]})}let Hme=0;class lw{get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();const t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=ke.EMPTY,this.closed=new cn,this.opened=new cn,this.destroyed=new cn,this.expandedChange=new cn,this.id="cdk-accordion-child-"+Hme++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((i,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==i&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(t){return new(t||lw)(Ve(G7,12),Ve(mo),Ve(B1))};static#t=this.\u0275dir=hn({type:lw,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[Ft.HasDecoratorInputTransform,"expanded","expanded",fr],disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[Ir([{provide:G7,useValue:void 0}]),Gi]})}class gA{static#e=this.\u0275fac=function(t){return new(t||gA)};static#t=this.\u0275mod=$n({type:gA,imports:[K0,lw],exports:[K0,lw]});static#n=this.\u0275inj=Er({})}const $me=["body"],Wme=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Gme=["mat-expansion-panel-header","*","mat-action-row"];function Xme(n,e){}const Yme=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Kme=["mat-panel-title","mat-panel-description","*"];function Zme(n,e){if(1&n&&(Bt(0,"span",1),Fs(),Bt(1,"svg",2),kr(2,"path",3),qt()()),2&n){En("@indicatorRotate",fn()._getExpandedState())}}const X7=new pn("MAT_ACCORDION"),BW="225ms cubic-bezier(0.4,0.0,0.2,1)",LW={indicatorRotate:vc("indicatorRotate",[fa("collapsed, void",Hi({transform:"rotate(0deg)"})),fa("expanded",Hi({transform:"rotate(180deg)"})),Na("expanded <=> collapsed, void => collapsed",ja(BW))]),bodyExpansion:vc("bodyExpansion",[fa("collapsed, void",Hi({height:"0px",visibility:"hidden"})),fa("expanded",Hi({height:"*",visibility:""})),Na("expanded <=> collapsed, void => collapsed",ja(BW))])},zW=new pn("MAT_EXPANSION_PANEL");class cw{constructor(e,t){this._template=e,this._expansionPanel=t}static#e=this.\u0275fac=function(t){return new(t||cw)(Ve($o),Ve(zW,8))};static#t=this.\u0275dir=hn({type:cw,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}let Qme=0;const VW=new pn("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");class zg extends lw{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,t,r,i,a,l,d){super(e,t,r),this._viewContainerRef=i,this._animationMode=l,this._hideToggle=!1,this.afterExpand=new cn,this.afterCollapse=new cn,this._inputChanges=new ln,this._headerId="mat-expansion-panel-header-"+Qme++,this.accordion=e,this._document=a,this._animationsDisabled="NoopAnimations"===l,d&&(this.hideToggle=d.hideToggle)}_hasSpacing(){return!!this.accordion&&(this.expanded&&"default"===this.accordion.displayMode)}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Sa(null),Io(()=>this.expanded&&!this._portal),ds(1)).subscribe(()=>{this._portal=new Lh(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_animationStarted(e){!qW(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){qW(e)||("expanded"===e.toState?this.afterExpand.emit():"collapsed"===e.toState&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static#e=this.\u0275fac=function(t){return new(t||zg)(Ve(X7,12),Ve(mo),Ve(B1),Ve(Wo),Ve(Mr),Ve(Co,8),Ve(VW,8))};static#t=this.\u0275cmp=Tr({type:zg,selectors:[["mat-expansion-panel"]],contentQueries:function(t,r,i){if(1&t&&ho(i,cw,5),2&t){let a;or(a=ar())&&(r._lazyContent=a.first)}},viewQuery:function(t,r){if(1&t&&_i($me,5),2&t){let i;or(i=ar())&&(r._body=i.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,r){2&t&&Jn("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[Ft.HasDecoratorInputTransform,"hideToggle","hideToggle",fr],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[Ir([{provide:X7,useValue:void 0},{provide:zW,useExisting:zg}]),Gi,hr,Ui,qr],ngContentSelectors:Gme,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,r){if(1&t){const i=Ai();Ri(Wme),rr(0),Bt(1,"div",1,0),Fn("@bodyExpansion.start",function(l){return Cn(i),kn(r._animationStarted(l))})("@bodyExpansion.done",function(l){return Cn(i),kn(r._animationDone(l))}),Bt(3,"div",2),rr(4,1),sr(5,Xme,0,0,"ng-template",3),qt(),rr(6,2),qt()}2&t&&(Gt(),En("@bodyExpansion",r._getExpandedState())("id",r.id),vr("aria-labelledby",r._headerId),Gt(4),En("cdkPortalOutlet",r._portal))},dependencies:[Ws],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[LW.bodyExpansion]},changeDetection:0})}function qW(n){return"void"===n.fromState}class bA{static#e=this.\u0275fac=function(t){return new(t||bA)};static#t=this.\u0275dir=hn({type:bA,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"],standalone:!0})}class dw{constructor(e,t,r,i,a,l,d){this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=i,this._animationMode=l,this._parentChangeSubscription=ke.EMPTY,this.tabIndex=0;const h=e.accordion?e.accordion._stateChanges.pipe(Io(p=>!(!p.hideToggle&&!p.togglePosition))):u1;this.tabIndex=parseInt(d||"")||0,this._parentChangeSubscription=$l(e.opened,e.closed,h,e._inputChanges.pipe(Io(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Io(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Yc(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#e=this.\u0275fac=function(t){return new(t||dw)(Ve(zg,1),Ve(jn),Ve(jl),Ve(mo),Ve(VW,8),Ve(Co,8),vd("tabindex"))};static#t=this.\u0275cmp=Tr({type:dw,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,r){1&t&&Fn("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),2&t&&(vr("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),co("height",r._getHeaderHeight()),Jn("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after","after"===r._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===r._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===r._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[Ft.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:cs(e)]},standalone:!0,features:[Gi,qr],ngContentSelectors:Kme,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,r){1&t&&(Ri(Yme),Bt(0,"span",0),rr(1),rr(2,1),rr(3,2),qt(),sr(4,Zme,3,1,"span",1)),2&t&&(Jn("mat-content-hide-toggle",!r._showToggle()),Gt(4),yi(4,r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[LW.indicatorRotate]},changeDetection:0})}class vA{static#e=this.\u0275fac=function(t){return new(t||vA)};static#t=this.\u0275dir=hn({type:vA,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"],standalone:!0})}class yA{static#e=this.\u0275fac=function(t){return new(t||yA)};static#t=this.\u0275dir=hn({type:yA,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}class Z0 extends K0{constructor(){super(...arguments),this._ownHeaders=new lo,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Sa(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new J4(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Z0)))(r||Z0)}})();static#t=this.\u0275dir=hn({type:Z0,selectors:[["mat-accordion"]],contentQueries:function(t,r,i){if(1&t&&ho(i,dw,5),2&t){let a;or(a=ar())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-accordion-multi",r.multi)},inputs:{hideToggle:[Ft.HasDecoratorInputTransform,"hideToggle","hideToggle",fr],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[Ir([{provide:X7,useExisting:Z0}]),Gi,hr]})}class _A{static#e=this.\u0275fac=function(t){return new(t||_A)};static#t=this.\u0275mod=$n({type:_A,imports:[er,gA,Gs,Z0,zg,bA,dw,yA,vA,cw],exports:[Z0,zg,bA,dw,yA,vA,cw]});static#n=this.\u0275inj=Er({imports:[er,gA,Gs]})}const R5=["*"],Jme=["content"],ege=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tge=["mat-drawer","mat-drawer-content","*"];function nge(n,e){if(1&n){const t=Ai();Bt(0,"div",1),Fn("click",function(){Cn(t);return kn(fn()._onBackdropClicked())}),qt()}if(2&n){Jn("mat-drawer-shown",fn()._isShowingBackdrop())}}function rge(n,e){1&n&&(Bt(0,"mat-drawer-content"),rr(1,2),qt())}const ige=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],oge=["mat-sidenav","mat-sidenav-content","*"];function age(n,e){if(1&n){const t=Ai();Bt(0,"div",1),Fn("click",function(){Cn(t);return kn(fn()._onBackdropClicked())}),qt()}if(2&n){Jn("mat-drawer-shown",fn()._isShowingBackdrop())}}function sge(n,e){1&n&&(Bt(0,"mat-sidenav-content"),rr(1,2),qt())}const jW={transformDrawer:vc("transform",[fa("open, open-instant",Hi({transform:"none",visibility:"visible"})),fa("void",Hi({"box-shadow":"none",visibility:"hidden"})),Na("void => open-instant",ja("0ms")),Na("void <=> open, open-instant => void",ja("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};const cge=new pn("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function dge(){return!1}}),Y7=new pn("MAT_DRAWER_CONTAINER");class qh extends Qc{constructor(e,t,r,i,a){super(r,i,a),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(t){return new(t||qh)(Ve(mo),Ve(Gn(()=>Vg)),Ve(jn),Ve(Zc),Ve(On))};static#t=this.\u0275cmp=Tr({type:qh,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,r){2&t&&co("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[Ir([{provide:Qc,useExisting:qh}]),hr,qr],ngContentSelectors:R5,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},encapsulation:2,changeDetection:0})}class Q0{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=yc(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=yc(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(yc(e))}constructor(e,t,r,i,a,l,d,h){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=i,this._ngZone=a,this._interactivityChecker=l,this._doc=d,this._container=h,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ln,this._animationEnd=new ln,this._animationState="void",this.openedChange=new cn(!0),this._openedStream=this.openedChange.pipe(Io(p=>p),kt(()=>{})),this.openedStart=this._animationStarted.pipe(Io(p=>p.fromState!==p.toState&&0===p.toState.indexOf("open")),N5(void 0)),this._closedStream=this.openedChange.pipe(Io(p=>!p),kt(()=>{})),this.closedStart=this._animationStarted.pipe(Io(p=>p.fromState!==p.toState&&"void"===p.toState),N5(void 0)),this._destroyed=new ln,this.onPositionChanged=new cn,this._modeChanged=new ln,this.openedChange.subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Nh(this._elementRef.nativeElement,"keydown").pipe(Io(p=>27===p.keyCode&&!this.disableClose&&!Yc(p)),jr(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(p0((p,y)=>p.fromState===y.fromState&&p.toState===y.toState)).subscribe(p=>{const{fromState:y,toState:S}=p;(0===S.indexOf("open")&&"void"===y||"void"===S&&0===y.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(i=>{this.openedChange.pipe(ds(1)).subscribe(a=>i(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}static#e=this.\u0275fac=function(t){return new(t||Q0)(Ve(jn),Ve(Dg),Ve(jl),Ve(Fi),Ve(On),Ve(_p),Ve(Mr,8),Ve(Y7,8))};static#t=this.\u0275cmp=Tr({type:Q0,selectors:[["mat-drawer"]],viewQuery:function(t,r){if(1&t&&_i(Jme,5),2&t){let i;or(i=ar())&&(r._content=i.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,r){1&t&&M3("@transform.start",function(a){return r._animationStarted.next(a)})("@transform.done",function(a){return r._animationEnd.next(a)}),2&t&&(Fx("@transform",r._animationState),vr("align",null),Jn("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[qr],ngContentSelectors:R5,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){1&t&&(Ri(),Bt(0,"div",1,0),rr(2),qt())},dependencies:[Qc],encapsulation:2,data:{animation:[jW.transformDrawer]},changeDetection:0})}class Vg{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=yc(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:yc(e)}get scrollable(){return this._userContent||this._content}constructor(e,t,r,i,a,l=!1,d){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=i,this._animationMode=d,this._drawers=new lo,this.backdropClick=new cn,this._destroyed=new ln,this._doCheckSubject=new ln,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ln,e&&e.change.pipe(jr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(jr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}ngAfterContentInit(){this._allDrawers.changes.pipe(Sa(this._allDrawers),jr(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Sa(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Y4(10),jr(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Io(t=>t.fromState!==t.toState),jr(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(jr(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(jr(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(ds(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(jr($l(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?(this._end,this._end=e):(this._start,this._start=e)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return null!=e&&e.opened}_drawerHasBackdrop(e){return null==this._backdropOverride?!!e&&"side"!==e.mode:this._backdropOverride}static#e=this.\u0275fac=function(t){return new(t||Vg)(Ve(pa,8),Ve(jn),Ve(On),Ve(mo),Ve(Od),Ve(cge),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:Vg,selectors:[["mat-drawer-container"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,qh,5),ho(i,Q0,5)),2&t){let a;or(a=ar())&&(r._content=a.first),or(a=ar())&&(r._allDrawers=a)}},viewQuery:function(t,r){if(1&t&&_i(qh,5),2&t){let i;or(i=ar())&&(r._userContent=i.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[Ir([{provide:Y7,useExisting:Vg}]),qr],ngContentSelectors:tge,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(Ri(ege),sr(0,nge,1,2,"div",0),rr(1),rr(2,1),sr(3,rge,2,0,"mat-drawer-content")),2&t&&(yi(0,r.hasBackdrop?0:-1),Gt(3),yi(3,r._content?-1:3))},dependencies:[qh],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}class qg extends qh{constructor(e,t,r,i,a){super(e,t,r,i,a)}static#e=this.\u0275fac=function(t){return new(t||qg)(Ve(mo),Ve(Gn(()=>jg)),Ve(jn),Ve(Zc),Ve(On))};static#t=this.\u0275cmp=Tr({type:qg,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,r){2&t&&co("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[Ir([{provide:Qc,useExisting:qg}]),hr,qr],ngContentSelectors:R5,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},encapsulation:2,changeDetection:0})}class J0 extends Q0{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=yc(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Xc(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Xc(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(J0)))(r||J0)}})();static#t=this.\u0275cmp=Tr({type:J0,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,r){2&t&&(vr("align",null),co("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),Jn("mat-drawer-end","end"===r.position)("mat-drawer-over","over"===r.mode)("mat-drawer-push","push"===r.mode)("mat-drawer-side","side"===r.mode)("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[hr,qr],ngContentSelectors:R5,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,r){1&t&&(Ri(),Bt(0,"div",1,0),rr(2),qt())},dependencies:[Qc],encapsulation:2,data:{animation:[jW.transformDrawer]},changeDetection:0})}class jg extends Vg{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(jg)))(r||jg)}})();static#t=this.\u0275cmp=Tr({type:jg,selectors:[["mat-sidenav-container"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,qg,5),ho(i,J0,5)),2&t){let a;or(a=ar())&&(r._content=a.first),or(a=ar())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[Ir([{provide:Y7,useExisting:jg}]),hr,qr],ngContentSelectors:oge,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,r){1&t&&(Ri(ige),sr(0,age,1,2,"div",0),rr(1),rr(2,1),sr(3,sge,2,0,"mat-sidenav-content")),2&t&&(yi(0,r.hasBackdrop?0:-1),Gt(3),yi(3,r._content?-1:3))},dependencies:[qg],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}class F5{static#e=this.\u0275fac=function(t){return new(t||F5)};static#t=this.\u0275mod=$n({type:F5,imports:[er,$s,Q0,Vg,qh,J0,jg,qg],exports:[$s,er,Q0,Vg,qh,J0,jg,qg]});static#n=this.\u0275inj=Er({imports:[er,$s,$s,er]})}const uge=["dialogPopup"],hge=["hueSlider"],fge=["alphaSlider"];function pge(n,e){if(1&n&&kr(0,"div"),2&n){const t=fn();Rx("arrow arrow-",t.cpUsePosition,""),co("left",t.cpArrowPosition)("top",t.arrowTop,"px")}}function mge(n,e){if(1&n){const t=Ai();Bt(0,"div",28),Fn("newValue",function(i){Cn(t);return kn(fn().onColorChange(i))})("dragStart",function(){Cn(t);return kn(fn().onDragStart("saturation-lightness"))})("dragEnd",function(){Cn(t);return kn(fn().onDragEnd("saturation-lightness"))}),kr(1,"div",16),qt()}if(2&n){const t=fn();co("background-color",t.hueSliderColor),En("rgX",1)("rgY",1),Gt(),co("top",null==t.slider?null:t.slider.v,"px")("left",null==t.slider?null:t.slider.s,"px")}}function gge(n,e){1&n&&(Fs(),Bt(0,"svg",29),kr(1,"path",30)(2,"path",31),qt())}function bge(n,e){if(1&n){const t=Ai();Bt(0,"button",32),Fn("click",function(i){Cn(t);const a=fn();return kn(a.onAddPresetColor(i,a.selectedColor))}),xi(1),qt()}if(2&n){const t=fn();ea(t.cpAddColorButtonClass),En("disabled",t.cpPresetColors&&t.cpPresetColors.length>=t.cpMaxPresetColorsLength),Gt(),_u(" ",t.cpAddColorButtonText," ")}}function vge(n,e){1&n&&kr(0,"div",33)}function yge(n,e){if(1&n){const t=Ai();Bt(0,"input",39),Fn("keyup.enter",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn(2).onAlphaInput(i))}),qt()}if(2&n){const t=fn(2);En("rg",1)("value",null==t.cmykText?null:t.cmykText.a)}}function _ge(n,e){1&n&&(Bt(0,"div"),xi(1,"A"),qt())}function xge(n,e){if(1&n){const t=Ai();Bt(0,"div",34)(1,"div",35)(2,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onCyanInput(i))}),qt(),Bt(3,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onMagentaInput(i))}),qt(),Bt(4,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onYellowInput(i))}),qt(),Bt(5,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onBlackInput(i))}),qt(),sr(6,yge,1,2,"input",37),qt(),Bt(7,"div",35)(8,"div"),xi(9,"C"),qt(),Bt(10,"div"),xi(11,"M"),qt(),Bt(12,"div"),xi(13,"Y"),qt(),Bt(14,"div"),xi(15,"K"),qt(),sr(16,_ge,2,0,"div",38),qt()()}if(2&n){const t=fn();co("display",3!==t.format?"none":"block"),Gt(2),En("rg",100)("value",null==t.cmykText?null:t.cmykText.c),Gt(),En("rg",100)("value",null==t.cmykText?null:t.cmykText.m),Gt(),En("rg",100)("value",null==t.cmykText?null:t.cmykText.y),Gt(),En("rg",100)("value",null==t.cmykText?null:t.cmykText.k),Gt(),En("ngIf","disabled"!==t.cpAlphaChannel),Gt(10),En("ngIf","disabled"!==t.cpAlphaChannel)}}function wge(n,e){if(1&n){const t=Ai();Bt(0,"input",39),Fn("keyup.enter",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn(2).onAlphaInput(i))}),qt()}if(2&n){const t=fn(2);En("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function Cge(n,e){1&n&&(Bt(0,"div"),xi(1,"A"),qt())}function kge(n,e){if(1&n){const t=Ai();Bt(0,"div",40)(1,"div",35)(2,"input",41),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onHueInput(i))}),qt(),Bt(3,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onSaturationInput(i))}),qt(),Bt(4,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onLightnessInput(i))}),qt(),sr(5,wge,1,2,"input",37),qt(),Bt(6,"div",35)(7,"div"),xi(8,"H"),qt(),Bt(9,"div"),xi(10,"S"),qt(),Bt(11,"div"),xi(12,"L"),qt(),sr(13,Cge,2,0,"div",38),qt()()}if(2&n){const t=fn();co("display",2!==t.format?"none":"block"),Gt(2),En("rg",360)("value",null==t.hslaText?null:t.hslaText.h),Gt(),En("rg",100)("value",null==t.hslaText?null:t.hslaText.s),Gt(),En("rg",100)("value",null==t.hslaText?null:t.hslaText.l),Gt(),En("ngIf","disabled"!==t.cpAlphaChannel),Gt(8),En("ngIf","disabled"!==t.cpAlphaChannel)}}function Ege(n,e){if(1&n){const t=Ai();Bt(0,"input",39),Fn("keyup.enter",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn(2).onAlphaInput(i))}),qt()}if(2&n){const t=fn(2);En("rg",1)("value",null==t.rgbaText?null:t.rgbaText.a)}}function Sge(n,e){1&n&&(Bt(0,"div"),xi(1,"A"),qt())}function Age(n,e){if(1&n){const t=Ai();Bt(0,"div",42)(1,"div",35)(2,"input",43),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onRedInput(i))}),qt(),Bt(3,"input",43),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onGreenInput(i))}),qt(),Bt(4,"input",43),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onBlueInput(i))}),qt(),sr(5,Ege,1,2,"input",37),qt(),Bt(6,"div",35)(7,"div"),xi(8,"R"),qt(),Bt(9,"div"),xi(10,"G"),qt(),Bt(11,"div"),xi(12,"B"),qt(),sr(13,Sge,2,0,"div",38),qt()()}if(2&n){const t=fn();co("display",1!==t.format?"none":"block"),Gt(2),En("rg",255)("value",null==t.rgbaText?null:t.rgbaText.r),Gt(),En("rg",255)("value",null==t.rgbaText?null:t.rgbaText.g),Gt(),En("rg",255)("value",null==t.rgbaText?null:t.rgbaText.b),Gt(),En("ngIf","disabled"!==t.cpAlphaChannel),Gt(8),En("ngIf","disabled"!==t.cpAlphaChannel)}}function Dge(n,e){if(1&n){const t=Ai();Bt(0,"input",39),Fn("keyup.enter",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn(2).onAlphaInput(i))}),qt()}if(2&n){const t=fn(2);En("rg",1)("value",t.hexAlpha)}}function Mge(n,e){1&n&&(Bt(0,"div"),xi(1,"A"),qt())}function Tge(n,e){if(1&n){const t=Ai();Bt(0,"div",44)(1,"div",35)(2,"input",45),Fn("blur",function(){Cn(t);return kn(fn().onHexInput(null))})("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onHexInput(i))}),qt(),sr(3,Dge,1,2,"input",37),qt(),Bt(4,"div",35)(5,"div"),xi(6,"Hex"),qt(),sr(7,Mge,2,0,"div",38),qt()()}if(2&n){const t=fn();co("display",0!==t.format?"none":"block"),Jn("hex-alpha","forced"===t.cpAlphaChannel),Gt(2),En("value",t.hexText),Gt(),En("ngIf","forced"===t.cpAlphaChannel),Gt(4),En("ngIf","forced"===t.cpAlphaChannel)}}function Ige(n,e){if(1&n){const t=Ai();Bt(0,"input",39),Fn("keyup.enter",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn(2).onAlphaInput(i))}),qt()}if(2&n){const t=fn(2);En("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function Nge(n,e){if(1&n){const t=Ai();Bt(0,"div",46)(1,"div",35)(2,"input",36),Fn("keyup.enter",function(i){Cn(t);return kn(fn().onAcceptColor(i))})("newValue",function(i){Cn(t);return kn(fn().onValueInput(i))}),qt(),sr(3,Ige,1,2,"input",37),qt(),Bt(4,"div",35)(5,"div"),xi(6,"V"),qt(),Bt(7,"div"),xi(8,"A"),qt()()()}if(2&n){const t=fn();Gt(2),En("rg",100)("value",null==t.hslaText?null:t.hslaText.l),Gt(),En("ngIf","disabled"!==t.cpAlphaChannel)}}function Oge(n,e){if(1&n){const t=Ai();Bt(0,"div",47)(1,"span",48),Fn("click",function(){Cn(t);return kn(fn().onFormatToggle(-1))}),qt(),Bt(2,"span",48),Fn("click",function(){Cn(t);return kn(fn().onFormatToggle(1))}),qt()()}}function Rge(n,e){if(1&n){const t=Ai();Bt(0,"span",55),Fn("click",function(i){Cn(t);const a=fn().$implicit;return kn(fn(3).onRemovePresetColor(i,a))}),qt()}if(2&n){ea(fn(4).cpRemoveColorButtonClass)}}function Fge(n,e){if(1&n){const t=Ai();Bt(0,"div",53),Fn("click",function(){const i=Cn(t).$implicit;return kn(fn(3).setColorFromString(i))}),sr(1,Rge,1,3,"span",54),qt()}if(2&n){const t=e.$implicit,r=fn(3);co("background-color",t),Gt(),En("ngIf",r.cpAddColorButton)}}function Pge(n,e){if(1&n&&(Bt(0,"div"),sr(1,Fge,2,3,"div",52),qt()),2&n){const t=fn(2);ea(t.cpPresetColorsClass),Gt(),En("ngForOf",t.cpPresetColors)}}function Bge(n,e){if(1&n&&(Bt(0,"div"),xi(1),qt()),2&n){const t=fn(2);ea(t.cpPresetEmptyMessageClass),Gt(),Xa(t.cpPresetEmptyMessage)}}function Lge(n,e){if(1&n&&(Bt(0,"div",49),kr(1,"hr"),Bt(2,"div",50),xi(3),qt(),sr(4,Pge,2,4,"div",51)(5,Bge,2,4,"div",51),qt()),2&n){const t=fn();Gt(3),Xa(t.cpPresetLabel),Gt(),En("ngIf",null==t.cpPresetColors?null:t.cpPresetColors.length),Gt(),En("ngIf",!(null!=t.cpPresetColors&&t.cpPresetColors.length)&&t.cpAddColorButton)}}function zge(n,e){if(1&n){const t=Ai();Bt(0,"button",58),Fn("click",function(i){Cn(t);return kn(fn(2).onCancelColor(i))}),xi(1),qt()}if(2&n){const t=fn(2);ea(t.cpCancelButtonClass),Gt(),Xa(t.cpCancelButtonText)}}function Vge(n,e){if(1&n){const t=Ai();Bt(0,"button",58),Fn("click",function(i){Cn(t);return kn(fn(2).onAcceptColor(i))}),xi(1),qt()}if(2&n){const t=fn(2);ea(t.cpOKButtonClass),Gt(),Xa(t.cpOKButtonText)}}function qge(n,e){if(1&n&&(Bt(0,"div",56),sr(1,zge,2,4,"button",57)(2,Vge,2,4,"button",57),qt()),2&n){const t=fn();Gt(),En("ngIf",t.cpCancelButton),Gt(),En("ngIf",t.cpOKButton)}}function jge(n,e){1&n&&fl(0)}function Uge(n,e){if(1&n&&(Bt(0,"div",59),sr(1,jge,1,0,"ng-container",60),qt()),2&n){const t=fn();Gt(),En("ngTemplateOutlet",t.cpExtraTemplate)}}var gl;!function(n){n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK"}(gl||(gl={}));class Mp{r;g;b;a;constructor(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}class P5{h;s;v;a;constructor(e,t,r,i){this.h=e,this.s=t,this.v=r,this.a=i}}class ey{h;s;l;a;constructor(e,t,r,i){this.h=e,this.s=t,this.l=r,this.a=i}}class xA{c;m;y;k;a;constructor(e,t,r,i,a=1){this.c=e,this.m=t,this.y=r,this.k=i,this.a=a}}class wA{rg;text;newValue=new cn;inputChange(e){const t=e.target.value;if(void 0===this.rg)this.newValue.emit(t);else{const r=parseFloat(t);this.newValue.emit({v:r,rg:this.rg})}}static \u0275fac=function(t){return new(t||wA)};static \u0275dir=hn({type:wA,selectors:[["","text",""]],hostBindings:function(t,r){1&t&&Fn("input",function(a){return r.inputChange(a)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}class CA{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new cn;dragStart=new cn;newValue=new cn;mouseDown(e){this.start(e)}touchStart(e){this.start(e)}constructor(e){this.elRef=e,this.listenerMove=t=>this.move(t),this.listenerStop=()=>this.stop()}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){const t=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageX?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){const t=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageY?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){const t=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),r));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:i/t,v:1-a/r,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:a/r,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:i/t,rgX:this.rgX})}static \u0275fac=function(t){return new(t||CA)(Ve(jn))};static \u0275dir=hn({type:CA,selectors:[["","slider",""]],hostBindings:function(t,r){1&t&&Fn("mousedown",function(a){return r.mouseDown(a)})("touchstart",function(a){return r.touchStart(a)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}class UW{h;s;v;a;constructor(e,t,r,i){this.h=e,this.s=t,this.v=r,this.a=i}}class HW{h;s;v;a;constructor(e,t,r,i){this.h=e,this.s=t,this.v=r,this.a=i}}class ty{active=null;setActive(e){this.active&&this.active!==e&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=e}hsva2hsla(e){const t=e.h,r=e.s,i=e.v,a=e.a;if(0===i)return new ey(t,0,0,a);if(0===r&&1===i)return new ey(t,1,1,a);{const l=i*(2-r)/2;return new ey(t,i*r/(1-Math.abs(2*l-1)),l,a)}}hsla2hsva(e){const t=Math.min(e.h,1),r=Math.min(e.s,1),i=Math.min(e.l,1),a=Math.min(e.a,1);if(0===i)return new P5(t,0,0,a);{const l=i+r*(1-Math.abs(2*i-1))/2;return new P5(t,2*(l-i)/l,l,a)}}hsvaToRgba(e){let t,r,i;const a=e.h,l=e.s,d=e.v,h=e.a,p=Math.floor(6*a),y=6*a-p,S=d*(1-l),R=d*(1-y*l),B=d*(1-(1-y)*l);switch(p%6){case 0:t=d,r=B,i=S;break;case 1:t=R,r=d,i=S;break;case 2:t=S,r=d,i=B;break;case 3:t=S,r=R,i=d;break;case 4:t=B,r=S,i=d;break;case 5:t=d,r=S,i=R;break;default:t=0,r=0,i=0}return new Mp(t,r,i,h)}cmykToRgb(e){const t=(1-e.c)*(1-e.k),r=(1-e.m)*(1-e.k),i=(1-e.y)*(1-e.k);return new Mp(t,r,i,e.a)}rgbaToCmyk(e){const t=1-Math.max(e.r,e.g,e.b);if(1===t)return new xA(0,0,0,1,e.a);{const r=(1-e.r-t)/(1-t),i=(1-e.g-t)/(1-t),a=(1-e.b-t)/(1-t);return new xA(r,i,a,t,e.a)}}rgbaToHsva(e){let t,r;const i=Math.min(e.r,1),a=Math.min(e.g,1),l=Math.min(e.b,1),d=Math.min(e.a,1),h=Math.max(i,a,l),p=Math.min(i,a,l),y=h,S=h-p;if(r=0===h?0:S/h,h===p)t=0;else{switch(h){case i:t=(a-l)/S+(a{this.onMouseDown(r)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(230!==this.cpWidth||"inline"===this.cpDialogDisplay){const e=this.hueSlider.nativeElement.offsetWidth||140,t=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new HW(e,this.cpWidth,130,t),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(e,t=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,t),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,t,r,i,a,l,d,h,p,y,S,R,B,q,V,ee,ne,he,re,ce,pe,oe,Ae,De,Ce,_e,Re,Be,Ge,Ye,$e,Oe,Ie,Ze,Pe,bt,Dt,ht){this.setInitialColor(r),this.setColorMode(h),this.isIE10=10===function $ge(){let n="";typeof navigator<"u"&&(n=navigator.userAgent.toLowerCase());const e=n.indexOf("msie ");return e>0&&parseInt(n.substring(e+5,n.indexOf(".",e)),10)}(),this.directiveInstance=e,this.directiveElementRef=t,this.cpDisableInput=R,this.cpCmykEnabled=p,this.cpAlphaChannel=y,this.cpOutputFormat=S,this.cpDialogDisplay=l,this.cpIgnoredElements=B,this.cpSaveClickOutside=q,this.cpCloseClickOutside=V,this.useRootViewContainer=ee,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(a,10),this.cpPosition=ne,this.cpPositionOffset=parseInt(he,10),this.cpOKButton=_e,this.cpOKButtonText=Be,this.cpOKButtonClass=Re,this.cpCancelButton=Ge,this.cpCancelButtonText=$e,this.cpCancelButtonClass=Ye,this.cpEyeDropper=bt,this.fallbackColor=d||"#fff",this.setPresetConfig(ce,pe),this.cpPresetColorsClass=oe,this.cpMaxPresetColorsLength=Ae,this.cpPresetEmptyMessage=De,this.cpPresetEmptyMessageClass=Ce,this.cpAddColorButton=Oe,this.cpAddColorButtonText=Ze,this.cpAddColorButtonClass=Ie,this.cpRemoveColorButtonClass=Pe,this.cpTriggerElement=Dt,this.cpExtraTemplate=ht,re||(this.dialogArrowOffset=0),"inline"===l&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===S&&"always"!==y&&"forced"!==y&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,t){this.cpPresetLabel=e,this.cpPresetColors=t}setColorFromString(e,t=!0,r=!0){let i;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(i=this.service.stringToHsva(e,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(e,!1))):i=this.service.stringToHsva(e,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(t,r))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&e.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,e.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,e.target)&&0===this.cpIgnoredElements.filter(t=>t===e.target).length&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){this.eyeDropperSupported&&(new window.EyeDropper).open().then(t=>{this.setColorFromString(t.sRGBHex,!0)})}onFormatToggle(e){const t=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+e)%t+t)%t;this.format=this.dialogInputFields[r]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(null===e)this.updateColorPicker();else{e&&"#"!==e[0]&&(e="#"+e);let t=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(t=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const r=t.test(e);r&&(e.length<5&&(e="#"+e.substring(1).split("").map(i=>i+i).join("")),"forced"===this.cpAlphaChannel&&(e+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:e,color:this.outputColor})}}onRedInput(e){const t=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(t.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:r,value:t.r,color:this.outputColor})}onBlueInput(e){const t=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(t.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:r,value:t.b,color:this.outputColor})}onGreenInput(e){const t=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(t.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:r,value:t.g,color:this.outputColor})}onHueInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:t,value:this.hsva.h,color:this.outputColor})}onValueInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:t,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:t,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){const t=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(t.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:r,value:t.l,color:this.outputColor})}onSaturationInput(e){const t=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(t.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:r,value:t.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,t){e.stopPropagation(),this.cpPresetColors.filter(r=>r===t).length||(this.cpPresetColors=this.cpPresetColors.concat(t),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,t){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(r=>r!==t),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{$W?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||($W?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,t=!0,r=!1){if(this.sliderDimMax){let i,a,l;2===this.cpColorMode&&(this.hsva.s=0);const d=this.outputColor;if(a=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(r?(l=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(l)):(l=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(l))),l=this.service.denormalizeRGBA(l),this.sliderH=this.hsva.h):l=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new P5(this.sliderH||this.hsva.h,1,1,1))),t){this.hslaText=new ey(Math.round(360*a.h),Math.round(100*a.s),Math.round(100*a.l),Math.round(100*a.a)/100),this.rgbaText=new Mp(l.r,l.g,l.b,Math.round(100*l.a)/100),this.cpCmykEnabled&&(this.cmykText=new xA(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100));const h="always"===this.cpAlphaChannel;this.hexText=this.service.rgbaToHex(l,h),this.hexAlpha=this.rgbaText.a}if("auto"===this.cpOutputFormat&&this.format!==gl.RGBA&&this.format!==gl.CMYK&&this.format!==gl.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?gl.RGBA:gl.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+l.r+","+l.g+","+l.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==gl.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const h=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${h})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new UW((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&d!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let r,e="static",t="",i=null,a=null,l=this.directiveElementRef.nativeElement.parentNode;const d=this.dialogElement.nativeElement.offsetHeight;for(;null!==l&&"HTML"!==l.tagName;){if(r=window.getComputedStyle(l),e=r.getPropertyValue("position"),t=r.getPropertyValue("transform"),"static"!==e&&null===i&&(i=l),t&&"none"!==t&&null===a&&(a=l),"fixed"===e){i=a;break}l=l.parentNode}const h=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==e);if(this.useRootViewContainer||"fixed"===e&&(!i||i instanceof HTMLUnknownElement))this.top=h.top,this.left=h.left;else{null===i&&(i=l);const ee=this.createDialogBox(i,"fixed"!==e);this.top=h.top-ee.top,this.left=h.left-ee.left}"fixed"===e&&(this.position="fixed");let p=this.cpPosition;const y=this.dialogElement.nativeElement.getBoundingClientRect();if("auto"===this.cpPosition){p=function Hge(n,e){let t="right",r="bottom";const{height:i,width:a}=n,{top:l,left:d}=e,h=l+e.height,p=d+e.width,y=l-i<0,S=h+i>(window.innerHeight||document.documentElement.clientHeight),R=d-a<0,B=p+a>(window.innerWidth||document.documentElement.clientWidth);return S&&(r="top"),y&&(r="bottom"),R&&(t="right"),B&&(t="left"),y&&S&&R&&B?["left","right","top","bottom"].reduce((ee,ne)=>n[ee]>n[ne]?ee:ne):R&&B?y?"bottom":S||l>h?"top":"bottom":y&&S?R?"right":B||d>p?"left":"right":`${r}-${t}`}(y,this.cpTriggerElement.nativeElement.getBoundingClientRect())}switch(this.arrowTop="top"===p?d-1:void 0,this.cpArrowPosition=void 0,p){case"top":this.top-=d+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*h.width-this.dialogArrowOffset;break;case"bottom":this.top+=h.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*h.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=d-h.height+h.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=d-h.height+h.height*this.cpPositionOffset/100,this.left+=h.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=h.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;default:this.top+=h.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=h.width+this.dialogArrowSize-2}const S=window.innerHeight,R=window.innerWidth,B=this.elRef.nativeElement.getBoundingClientRect();this.top+y.height>S&&(this.top=S-y.height,this.cpArrowPosition=B.x/2-20),this.left+y.width>R&&(this.left=R-y.width,this.cpArrowPosition=B.x/2-20),this.cpUsePosition=p}}isDescendant(e,t){let r=t.parentNode;for(;null!==r;){if(r===e)return!0;r=r.parentNode}return!1}createDialogBox(e,t){const{top:r,left:i}=e.getBoundingClientRect();return{top:r+(t?window.pageYOffset:0),left:i+(t?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}static \u0275fac=function(t){return new(t||kA)(Ve(On),Ve(jn),Ve(mo),Ve(Mr),Ve(Rl),Ve(ty))};static \u0275cmp=Tr({type:kA,selectors:[["color-picker"]],viewQuery:function(t,r){if(1&t&&(_i(uge,7),_i(hge,7),_i(fge,7)),2&t){let i;or(i=ar())&&(r.dialogElement=i.first),or(i=ar())&&(r.hueSlider=i.first),or(i=ar())&&(r.alphaSlider=i.first)}},hostBindings:function(t,r){1&t&&Fn("keyup.esc",function(a){return r.handleEsc(a)},0,Vf)("keyup.enter",function(a){return r.handleEnter(a)},!1,Vf)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(t,r){if(1&t){const i=Ai();Bt(0,"div",4,0),Fn("click",function(l){return Cn(i),kn(l.stopPropagation())}),sr(2,pge,1,7,"div",5)(3,mge,2,8,"div",6),Bt(4,"div",7)(5,"div",8),kr(6,"div",9),Bt(7,"div",10),Fn("click",function(){return Cn(i),kn(r.eyeDropperSupported&&r.cpEyeDropper&&r.onEyeDropper())}),sr(8,gge,3,0,"svg",11),qt(),sr(9,bge,2,5,"button",12),qt(),Bt(10,"div",13),sr(11,vge,1,0,"div",14),Bt(12,"div",15,1),Fn("newValue",function(l){return Cn(i),kn(r.onHueChange(l))})("dragStart",function(){return Cn(i),kn(r.onDragStart("hue"))})("dragEnd",function(){return Cn(i),kn(r.onDragEnd("hue"))}),kr(14,"div",16),qt(),Bt(15,"div",17,2),Fn("newValue",function(l){return Cn(i),kn(r.onValueChange(l))})("dragStart",function(){return Cn(i),kn(r.onDragStart("value"))})("dragEnd",function(){return Cn(i),kn(r.onDragEnd("value"))}),kr(17,"div",16),qt(),Bt(18,"div",18,3),Fn("newValue",function(l){return Cn(i),kn(r.onAlphaChange(l))})("dragStart",function(){return Cn(i),kn(r.onDragStart("alpha"))})("dragEnd",function(){return Cn(i),kn(r.onDragEnd("alpha"))}),kr(20,"div",16),qt()()(),sr(21,xge,17,12,"div",19)(22,kge,14,10,"div",20)(23,Age,14,10,"div",21)(24,Tge,8,7,"div",22)(25,Nge,9,3,"div",23)(26,Oge,3,0,"div",24)(27,Lge,6,3,"div",25)(28,qge,3,2,"div",26)(29,Uge,2,1,"div",27),qt()}2&t&&(co("display",r.show?"block":"none")("visibility",r.hidden?"hidden":"visible")("top",r.top,"px")("left",r.left,"px")("position",r.position)("height",r.cpHeight,"px")("width",r.cpWidth,"px"),Jn("open",r.show),Gt(2),En("ngIf","popup"===r.cpDialogDisplay),Gt(),En("ngIf",1===(r.cpColorMode||1)),Gt(4),co("background-color",r.selectedColor)("cursor",r.eyeDropperSupported&&r.cpEyeDropper?"pointer":null),Gt(),En("ngIf",r.eyeDropperSupported&&r.cpEyeDropper),Gt(),En("ngIf",r.cpAddColorButton),Gt(2),En("ngIf","disabled"===r.cpAlphaChannel),Gt(),co("display",1===(r.cpColorMode||1)?"block":"none"),En("rgX",1),Gt(2),co("left",null==r.slider?null:r.slider.h,"px"),Gt(),co("display",2===(r.cpColorMode||1)?"block":"none"),En("rgX",1),Gt(2),co("right",null==r.slider?null:r.slider.v,"px"),Gt(),co("display","disabled"===r.cpAlphaChannel?"none":"block")("background-color",r.alphaSliderColor),En("rgX",1),Gt(2),co("left",null==r.slider?null:r.slider.a,"px"),Gt(),En("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),Gt(),En("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),Gt(),En("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),Gt(),En("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),Gt(),En("ngIf",!r.cpDisableInput&&2===(r.cpColorMode||1)),Gt(),En("ngIf",!r.cpDisableInput&&1===(r.cpColorMode||1)),Gt(),En("ngIf",(null==r.cpPresetColors?null:r.cpPresetColors.length)||r.cpAddColorButton),Gt(),En("ngIf",r.cpOKButton||r.cpCancelButton),Gt(),En("ngIf",r.cpExtraTemplate))},dependencies:[jv,Uv,wu,wA,CA],styles:['.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}\n'],encapsulation:2})}class EA{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new cn(!0);cpToggleChange=new cn(!0);cpSliderChange=new cn(!0);cpSliderDragEnd=new cn(!0);cpSliderDragStart=new cn(!0);colorPickerOpen=new cn(!0);colorPickerClose=new cn(!0);colorPickerCancel=new cn(!0);colorPickerSelect=new cn(!0);colorPickerChange=new cn(!1);cpCmykColorChange=new cn(!0);cpPresetColorsChange=new cn(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}constructor(e,t,r,i,a,l){this.injector=e,this.cfr=t,this.appRef=r,this.vcRef=i,this.elRef=a,this._service=l}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const r=this.appRef.componentTypes[0],i=this.injector.get(r,di.NULL);i!==di.NULL?e=i.vcRef||i.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const t=this.cfr.resolveComponentFactory(kA);if(this.viewAttachedToAppRef)this.cmpRef=t.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const r=di.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(t,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,t=!0){this.ignoreChanges=t,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const e=this.elRef.nativeElement,t=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!t.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}static \u0275fac=function(t){return new(t||EA)(Ve(di),Ve(fu),Ve(gc),Ve(Wo),Ve(jn),Ve(ty))};static \u0275dir=hn({type:EA,selectors:[["","colorPicker",""]],hostBindings:function(t,r){1&t&&Fn("click",function(){return r.handleClick()})("focus",function(){return r.handleFocus()})("input",function(a){return r.handleInput(a)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Ui]})}class B5{static \u0275fac=function(t){return new(t||B5)};static \u0275mod=$n({type:B5,declarations:[kA,EA,wA,CA],imports:[Ea],exports:[EA]});static \u0275inj=Er({providers:[ty],imports:[Ea]})}const WW=["move","copy","link"],L5="application/x-dnd",K7="application/json",z5="Text";function GW(n){return n.substr(0,L5.length)===L5}function XW(n){if(n.dataTransfer){const e=n.dataTransfer.types;if(!e)return z5;for(let t=0;tny));elementRef=xn(jn);ngOnInit(){this.dndDraggableDirective.registerDragImage(this.elementRef)}static \u0275fac=function(t){return new(t||SA)};static \u0275dir=hn({type:SA,selectors:[["","dndDragImageRef",""]],standalone:!0})}class ny{dndDraggable;dndEffectAllowed="copy";dndType;dndDraggingClass="dndDragging";dndDraggingSourceClass="dndDraggingSource";dndDraggableDisabledClass="dndDraggableDisabled";dndDragImageOffsetFunction=Zge;dndStart=new cn;dndDrag=new cn;dndEnd=new cn;dndMoved=new cn;dndCopied=new cn;dndLinked=new cn;dndCanceled=new cn;draggable=!0;dndHandle;dndDragImageElementRef;dragImage;isDragStarted=!1;elementRef=xn(jn);renderer=xn(hc);ngZone=xn(On);set dndDisableIf(e){this.draggable=!e,this.draggable?this.renderer.removeClass(this.elementRef.nativeElement,this.dndDraggableDisabledClass):this.renderer.addClass(this.elementRef.nativeElement,this.dndDraggableDisabledClass)}set dndDisableDragIf(e){this.dndDisableIf=e}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.elementRef.nativeElement.addEventListener("drag",this.dragEventHandler)})}ngOnDestroy(){this.elementRef.nativeElement.removeEventListener("drag",this.dragEventHandler),this.isDragStarted&&YW()}onDragStart(e){if(!this.draggable)return!1;if(null!=this.dndHandle&&null==e._dndUsingHandle)return e.stopPropagation(),!1;(function Jge(n,e,t){bl.isDragging=!0,bl.dropEffect="none",bl.effectAllowed=e,bl.type=t,n.dataTransfer&&(n.dataTransfer.effectAllowed=e)})(e,this.dndEffectAllowed,this.dndType),this.isDragStarted=!0,function Gge(n,e,t){const r=L5+(e.type?"-"+e.type:""),i=JSON.stringify(e);try{n.dataTransfer?.setData(r,i)}catch{try{n.dataTransfer?.setData(K7,i)}catch{const d=V5(WW,t);n.dataTransfer&&(n.dataTransfer.effectAllowed=d[0]),n.dataTransfer?.setData(z5,i)}}}(e,{data:this.dndDraggable,type:this.dndType},ZW.effectAllowed),this.dragImage=this.determineDragImage(),this.renderer.addClass(this.dragImage,this.dndDraggingClass),(null!=this.dndDragImageElementRef||null!=e._dndUsingHandle)&&function Qge(n,e,t){const r=t(n,e)||{x:0,y:0};n.dataTransfer.setDragImage(e,r.x,r.y)}(e,this.dragImage,this.dndDragImageOffsetFunction);const t=this.renderer.listen(this.elementRef.nativeElement,"drag",()=>{this.renderer.addClass(this.elementRef.nativeElement,this.dndDraggingSourceClass),t()});return this.dndStart.emit(e),e.stopPropagation(),setTimeout(()=>{this.renderer.setStyle(this.dragImage,"pointer-events","none")},100),!0}onDrag(e){this.dndDrag.emit(e)}onDragEnd(e){if(!this.draggable||!this.isDragStarted)return;const t=ZW.dropEffect;let r;switch(this.renderer.setStyle(this.dragImage,"pointer-events","unset"),t){case"copy":r=this.dndCopied;break;case"link":r=this.dndLinked;break;case"move":r=this.dndMoved;break;default:r=this.dndCanceled}r.emit(e),this.dndEnd.emit(e),YW(),this.isDragStarted=!1,this.renderer.removeClass(this.dragImage,this.dndDraggingClass),window.setTimeout(()=>{this.renderer.removeClass(this.elementRef.nativeElement,this.dndDraggingSourceClass)},0),e.stopPropagation()}registerDragHandle(e){this.dndHandle=e}registerDragImage(e){this.dndDragImageElementRef=e}dragEventHandler=e=>this.onDrag(e);determineDragImage(){return typeof this.dndDragImageElementRef<"u"?this.dndDragImageElementRef.nativeElement:this.elementRef.nativeElement}static \u0275fac=function(t){return new(t||ny)};static \u0275dir=hn({type:ny,selectors:[["","dndDraggable",""]],hostVars:1,hostBindings:function(t,r){1&t&&Fn("dragstart",function(a){return r.onDragStart(a)})("dragend",function(a){return r.onDragEnd(a)}),2&t&&vr("draggable",r.draggable)},inputs:{dndDraggable:"dndDraggable",dndEffectAllowed:"dndEffectAllowed",dndType:"dndType",dndDraggingClass:"dndDraggingClass",dndDraggingSourceClass:"dndDraggingSourceClass",dndDraggableDisabledClass:"dndDraggableDisabledClass",dndDragImageOffsetFunction:"dndDragImageOffsetFunction",dndDisableIf:"dndDisableIf",dndDisableDragIf:"dndDisableDragIf"},outputs:{dndStart:"dndStart",dndDrag:"dndDrag",dndEnd:"dndEnd",dndMoved:"dndMoved",dndCopied:"dndCopied",dndLinked:"dndLinked",dndCanceled:"dndCanceled"},standalone:!0})}class uw{elementRef;constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.style.pointerEvents="none"}static \u0275fac=function(t){return new(t||uw)(Ve(jn))};static \u0275dir=hn({type:uw,selectors:[["","dndPlaceholderRef",""]],standalone:!0})}class AA{ngZone;elementRef;renderer;dndDropzone="";dndEffectAllowed="uninitialized";dndAllowExternal=!1;dndHorizontal=!1;dndDragoverClass="dndDragover";dndDropzoneDisabledClass="dndDropzoneDisabled";dndDragover=new cn;dndDrop=new cn;dndPlaceholderRef;placeholder=null;disabled=!1;constructor(e,t,r){this.ngZone=e,this.elementRef=t,this.renderer=r}set dndDisableIf(e){this.disabled=e,this.disabled?this.renderer.addClass(this.elementRef.nativeElement,this.dndDropzoneDisabledClass):this.renderer.removeClass(this.elementRef.nativeElement,this.dndDropzoneDisabledClass)}set dndDisableDropIf(e){this.dndDisableIf=e}ngAfterViewInit(){this.placeholder=this.tryGetPlaceholder(),this.removePlaceholderFromDOM(),this.ngZone.runOutsideAngular(()=>{this.elementRef.nativeElement.addEventListener("dragenter",this.dragEnterEventHandler),this.elementRef.nativeElement.addEventListener("dragover",this.dragOverEventHandler),this.elementRef.nativeElement.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){this.elementRef.nativeElement.removeEventListener("dragenter",this.dragEnterEventHandler),this.elementRef.nativeElement.removeEventListener("dragover",this.dragOverEventHandler),this.elementRef.nativeElement.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragEnter(e){if(!0===e._dndDropzoneActive)return void this.cleanupDragoverState();if(null==e._dndDropzoneActive){const r=document.elementFromPoint(e.clientX,e.clientY);this.elementRef.nativeElement.contains(r)&&(e._dndDropzoneActive=!0)}const t=Q7(e);this.isDropAllowed(t)&&e.preventDefault()}onDragOver(e){if(e.defaultPrevented)return;const t=Q7(e);if(!this.isDropAllowed(t))return;this.checkAndUpdatePlaceholderPosition(e);const r=KW(e,this.dndEffectAllowed);"none"!==r?(e.preventDefault(),Z7(e,r),this.dndDragover.emit(e),this.renderer.addClass(this.elementRef.nativeElement,this.dndDragoverClass)):this.cleanupDragoverState()}onDrop(e){try{const t=Q7(e);if(!this.isDropAllowed(t))return;const r=function Xge(n,e){const t=XW(n);return!0===e?null!==t&&GW(t)?JSON.parse(n.dataTransfer?.getData(t)??"{}"):{}:null!==t?JSON.parse(n.dataTransfer?.getData(t)??"{}"):{}}(e,J7());if(!this.isDropAllowed(r.type))return;e.preventDefault();const i=KW(e);if(Z7(e,i),"none"===i)return;const a=this.getPlaceholderIndex();if(-1===a)return;this.dndDrop.emit({event:e,dropEffect:i,isExternal:J7(),data:r.data,index:a,type:t}),e.stopPropagation()}finally{this.cleanupDragoverState()}}onDragLeave(e){e.preventDefault(),e.stopPropagation(),null==e._dndDropzoneActive&&this.elementRef.nativeElement.contains(e.relatedTarget)?e._dndDropzoneActive=!0:(this.cleanupDragoverState(),Z7(e,"none"))}dragEnterEventHandler=e=>this.onDragEnter(e);dragOverEventHandler=e=>this.onDragOver(e);dragLeaveEventHandler=e=>this.onDragLeave(e);isDropAllowed(e){if(this.disabled||J7()&&!this.dndAllowExternal)return!1;if(!this.dndDropzone||!e)return!0;if(!Array.isArray(this.dndDropzone))throw new Error("dndDropzone: bound value to [dndDropzone] must be an array!");return-1!==this.dndDropzone.indexOf(e)}tryGetPlaceholder(){return typeof this.dndPlaceholderRef<"u"?this.dndPlaceholderRef.elementRef.nativeElement:this.elementRef.nativeElement.querySelector("[dndPlaceholderRef]")}removePlaceholderFromDOM(){null!==this.placeholder&&null!==this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder)}checkAndUpdatePlaceholderPosition(e){if(null===this.placeholder)return;this.placeholder.parentNode!==this.elementRef.nativeElement&&this.renderer.appendChild(this.elementRef.nativeElement,this.placeholder);const t=function Yge(n,e){let t=e;for(;t.parentNode!==n;){if(!t.parentNode)return null;t=t.parentNode}return t}(this.elementRef.nativeElement,e.target);null!==t&&t!==this.placeholder&&(!function Kge(n,e,t){const r=e.getBoundingClientRect();return t?n.clientX0?this.url=e.external_references[0].url:this.url=""}compareVersion(e){if(!this.version||!e.version)return 0;let t=this.version.split("."),r=e.version.split(".");for(let i=0;i{const l=r.techniques.find(d=>d.id===a);l&&t.push(l)}),t}source(e){const t=this.dataService.getDomain(e).dataSources;if(t.has(this.dataSource)){const r=t.get(this.dataSource);let i="";return r.external_references&&r.external_references[0]&&r.external_references[0].url&&(i=r.external_references[0].url),{name:r.name,url:i}}return{name:"",url:""}}}class JW extends Tp{used(e){let t=this.dataService.getDomain(e).relationships.group_uses;return t.has(this.id)?t.get(this.id):[]}campaignsUsed(e){let t=this.dataService.getDomain(e).relationships.campaigns_attributed_to,r=this.dataService.getDomain(e).relationships.campaign_uses;if(t.has(this.id)){let i=[];return t.get(this.id).forEach(a=>{r.has(a)&&(i=i.concat(r.get(a)))}),i}return[]}relatedTechniques(e){let t=new Set(this.used(e).concat(this.campaignsUsed(e)));return Array.from(t)}}class eG extends Tp{constructor(e,t,r){super(e,r),this.shortname=e.x_mitre_shortname,this.techniques=t.filter(i=>{if(!i.revoked&&!i.deprecated)return i.tactics.includes(this.shortname)})}}class lbe extends Tp{constructor(e,t,r,i){super(e,i),this.tactics=e.tactic_refs.map(a=>t.get(a)).filter(a=>a).map(a=>new eG(a,r,this.dataService))}}class tG extends Tp{mitigated(e){let t=this.dataService.getDomain(e).relationships.mitigates;return t.has(this.id)?t.get(this.id):[]}relatedTechniques(e){return this.mitigated(e)}}class cbe{constructor(e){e.abstract&&(this.abstract=e.abstract),this.content=e.content,this.object_refs=e.object_refs}}class nG extends Tp{constructor(e,t){super(e,t),this.platforms=[],this.platforms=e.x_mitre_platforms?e.x_mitre_platforms.map(r=>r.trim()):void 0}used(e){let t=this.dataService.getDomain(e).relationships.software_uses;return t.has(this.id)?t.get(this.id):[]}relatedTechniques(e){return this.used(e)}}class rG extends Tp{get isSubtechnique(){return null!=this.parent}constructor(e,t,r){super(e,r),this.parent=null,this.platforms=e.x_mitre_platforms?e.x_mitre_platforms.map(i=>i.trim()):void 0,this.datasources=e.x_mitre_data_sources?e.x_mitre_data_sources.toString():"",!this.revoked&&!this.deprecated&&(this.tactics=e.kill_chain_phases.map(i=>i.phase_name)),this.subtechniques=t.filter(i=>!(i.deprecated||i.revoked));for(let i of this.subtechniques)i.parent=this}get_technique_tactic_id(e){let t=e instanceof eG?e.shortname:e;if(!this.tactics.includes(t))throw new Error(t+" is not a tactic of "+this.attackID);return this.attackID+"^"+t}get_all_technique_tactic_ids(){return this.revoked||this.deprecated?[]:this.tactics.map(e=>this.get_technique_tactic_id(e))}}class iG extends Tp{targeted(e){let t=this.dataService.getDomain(e).relationships.targeted_assets;return t.has(this.id)?t.get(this.id):[]}relatedTechniques(e){return this.targeted(e)}}class hw{constructor(e,t,r,i=1e4){this.baseURL=hw.withoutLastSlash(e),this.user=t,this.password=r,this.hash=btoa(this.user+":"+this.password),this.timeout=i,this.version="2.1",this.mediaType=`application/taxii+json;version=${this.version}`,e.includes("cti-taxii.mitre.org")&&(this.version="2.0",this.mediaType="application/vnd.oasis.stix+json"),this.getConfig={method:"get",headers:new Headers({Accept:this.mediaType,version:this.version,Authorization:"Basic "+this.hash})},this.getStixConfig={method:"get",headers:new Headers({Accept:this.mediaType,version:this.version,Authorization:"Basic "+this.hash})}}timeoutPromise(e,t,r){return new Promise((i,a)=>{setTimeout(()=>a(r),t),e.then(i,a)})}fetchTimeout(e,t,r,i){return i=i||"Timeout error",t=t||{},r=r||1e4,this.timeoutPromise(fetch(e,t),r,i)}asyncFetch(e,t,r){var i=this;return xt(function*(){let a=r?e+"?"+hw.asQueryString(r):e;return yield i.fetchTimeout(a,t,i.timeout,"connection timeout").then(l=>l.json()).catch(l=>{throw new Error("fetch error: "+l)})})()}fetchThis(e,t,r,i){var a=this;return xt(function*(){let l=void 0===i?a.getConfig:i;return t.flag||(t.cache=yield a.asyncFetch(e,l,r),t.flag=!0),t.cache})()}static withoutLastSlash(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e}static withLastSlash(e){return"/"===e.substr(-1)?e:e+"/"}static asQueryString(e){return Object.keys(e).map(t=>encodeURIComponent("added_after"===t?t:"match["+t+"]")+"="+encodeURIComponent(e[t])).join("&")}}class dbe{constructor(e,t,r){this.collectionInfo=e,this.api_root_path=hw.withLastSlash(t+"api/v21"),t.includes("cti-taxii.mitre.org")&&(this.api_root_path=hw.withLastSlash(t+"stix")),this.conn=r,this.path=this.api_root_path+"collections/"+e.id+"/",this.colOptions={cache:{},flag:!1},this.objsOptions={cache:{},flag:!1},this.objOptions={cache:{},flag:!1},this.manOptions={cache:{},flag:!1}}ifCanRead(e){if(this.collectionInfo.can_read)return e;console.log("this collection does not allow reading: \n"+JSON.stringify(this.collectionInfo))}ifCanWrite(e){if(this.collectionInfo.can_write)return e;console.log("this collection does not allow writing: \n"+JSON.stringify(this.collectionInfo))}getObjects(e,t){var r=this;return xt(function*(){let i=r.conn.getStixConfig;return void 0!==t&&(i={method:"get",headers:new Headers({Accept:r.conn.mediaType,version:r.conn.version,Authorization:"Basic "+r.conn.hash,Range:"items="+t})}),r.ifCanRead(r.conn.fetchThis(r.path+"objects/",r.objsOptions,e,i))})()}}class ube{constructor(e,t){this.additions=[],this.changes=[],this.minor_changes=[],this.deprecations=[],this.revocations=[],this.unchanged=[],this.reviewed=new Set,this.copied=new Set,this.oldDomainVersionID=e,this.newDomainVersionID=t}length(){return this.additions.length+this.changes.length+this.minor_changes.length+this.deprecations.length+this.revocations.length+this.unchanged.length}}class oG{constructor(e,t){this.name=e,this.number=t}}class eB{get tactics(){let e=[];for(let t of this.matrices)e=e.concat(t.tactics);return e}constructor(e,t,r,i){this.urls=[],this.taxii_url="",this.taxii_collection="",this.dataLoaded=!1,this.dataLoadedCallbacks=[],this.isCustom=!1,this.matrices=[],this.techniques=[],this.platforms=[],this.subtechniques=[],this.software=[],this.campaigns=[],this.assets=[],this.dataComponents=[],this.dataSources=new Map,this.groups=[],this.mitigations=[],this.notes=[],this.relationships={subtechniques_of:new Map,component_rel:new Map,group_uses:new Map,software_uses:new Map,campaign_uses:new Map,campaigns_attributed_to:new Map,mitigates:new Map,revoked_by:new Map,targeted_assets:new Map},this.id=`${e}-${r.number}`,this.domain_identifier=e,this.name=t,this.version=r,i&&(this.urls=i)}getVersion(){return this.version.number}executeCallbacks(){for(let e of this.dataLoadedCallbacks)e()}}function j5(n){return(j5="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)}var hbe=/^\s+/,fbe=/\s+$/;function cr(n,e){if(e=e||{},(n=n||"")instanceof cr)return n;if(!(this instanceof cr))return new cr(n,e);var t=function pbe(n){var e={r:0,g:0,b:0},t=1,r=null,i=null,a=null,l=!1,d=!1;return"string"==typeof n&&(n=function Rbe(n){n=n.replace(hbe,"").replace(fbe,"").toLowerCase();var t,e=!1;if(tB[n])n=tB[n],e=!0;else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Ou.rgb.exec(n))?{r:t[1],g:t[2],b:t[3]}:(t=Ou.rgba.exec(n))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Ou.hsl.exec(n))?{h:t[1],s:t[2],l:t[3]}:(t=Ou.hsla.exec(n))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Ou.hsv.exec(n))?{h:t[1],s:t[2],v:t[3]}:(t=Ou.hsva.exec(n))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Ou.hex8.exec(n))?{r:ed(t[1]),g:ed(t[2]),b:ed(t[3]),a:fG(t[4]),format:e?"name":"hex8"}:(t=Ou.hex6.exec(n))?{r:ed(t[1]),g:ed(t[2]),b:ed(t[3]),format:e?"name":"hex"}:(t=Ou.hex4.exec(n))?{r:ed(t[1]+""+t[1]),g:ed(t[2]+""+t[2]),b:ed(t[3]+""+t[3]),a:fG(t[4]+""+t[4]),format:e?"name":"hex8"}:!!(t=Ou.hex3.exec(n))&&{r:ed(t[1]+""+t[1]),g:ed(t[2]+""+t[2]),b:ed(t[3]+""+t[3]),format:e?"name":"hex"}}(n)),"object"==j5(n)&&(Ip(n.r)&&Ip(n.g)&&Ip(n.b)?(e=function mbe(n,e,t){return{r:255*ya(n,255),g:255*ya(e,255),b:255*ya(t,255)}}(n.r,n.g,n.b),l=!0,d="%"===String(n.r).substr(-1)?"prgb":"rgb"):Ip(n.h)&&Ip(n.s)&&Ip(n.v)?(r=MA(n.s),i=MA(n.v),e=function bbe(n,e,t){n=6*ya(n,360),e=ya(e,100),t=ya(t,100);var r=Math.floor(n),i=n-r,a=t*(1-e),l=t*(1-i*e),d=t*(1-(1-i)*e),h=r%6,p=[t,l,a,a,d,t][h],y=[d,t,t,l,a,a][h],S=[a,a,d,t,t,l][h];return{r:255*p,g:255*y,b:255*S}}(n.h,r,i),l=!0,d="hsv"):Ip(n.h)&&Ip(n.s)&&Ip(n.l)&&(r=MA(n.s),a=MA(n.l),e=function gbe(n,e,t){var r,i,a;function l(p,y,S){return S<0&&(S+=1),S>1&&(S-=1),S<1/6?p+6*(y-p)*S:S<.5?y:S<2/3?p+(y-p)*(2/3-S)*6:p}if(n=ya(n,360),e=ya(e,100),t=ya(t,100),0===e)r=i=a=t;else{var d=t<.5?t*(1+e):t+e-t*e,h=2*t-d;r=l(h,d,n+1/3),i=l(h,d,n),a=l(h,d,n-1/3)}return{r:255*r,g:255*i,b:255*a}}(n.h,r,a),l=!0,d="hsl"),n.hasOwnProperty("a")&&(t=n.a)),t=uG(t),{ok:l,format:n.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}(n);this._originalInput=n,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}function aG(n,e,t){n=ya(n,255),e=ya(e,255),t=ya(t,255);var a,l,r=Math.max(n,e,t),i=Math.min(n,e,t),d=(r+i)/2;if(r==i)a=l=0;else{var h=r-i;switch(l=d>.5?h/(2-r-i):h/(r+i),r){case n:a=(e-t)/h+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(cr(r));return a}function Mbe(n,e){e=e||6;for(var t=cr(n).toHsv(),r=t.h,i=t.s,a=t.v,l=[],d=1/e;e--;)l.push(cr({h:r,s:i,v:a})),a=(a+d)%1;return l}cr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,r,i,e=this.toRgb();return t=e.r/255,r=e.g/255,i=e.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},setAlpha:function(e){return this._a=uG(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=sG(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=sG(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+i+"%)":"hsva("+t+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=aG(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=aG(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+i+"%)":"hsla("+t+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return lG(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function vbe(n,e,t,r,i){var a=[Nu(Math.round(n).toString(16)),Nu(Math.round(e).toString(16)),Nu(Math.round(t).toString(16)),Nu(hG(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ya(this._r,255))+"%",g:Math.round(100*ya(this._g,255))+"%",b:Math.round(100*ya(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ya(this._r,255))+"%, "+Math.round(100*ya(this._g,255))+"%, "+Math.round(100*ya(this._b,255))+"%)":"rgba("+Math.round(100*ya(this._r,255))+"%, "+Math.round(100*ya(this._g,255))+"%, "+Math.round(100*ya(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Tbe[lG(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+cG(this._r,this._g,this._b,this._a),r=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=cr(e);r="#"+cG(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0;return!t&&i&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return cr(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(wbe,arguments)},brighten:function(){return this._applyModification(Cbe,arguments)},darken:function(){return this._applyModification(kbe,arguments)},desaturate:function(){return this._applyModification(ybe,arguments)},saturate:function(){return this._applyModification(_be,arguments)},greyscale:function(){return this._applyModification(xbe,arguments)},spin:function(){return this._applyModification(Ebe,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Dbe,arguments)},complement:function(){return this._applyCombination(Sbe,arguments)},monochromatic:function(){return this._applyCombination(Mbe,arguments)},splitcomplement:function(){return this._applyCombination(Abe,arguments)},triad:function(){return this._applyCombination(dG,[3])},tetrad:function(){return this._applyCombination(dG,[4])}},cr.fromRatio=function(n,e){if("object"==j5(n)){var t={};for(var r in n)n.hasOwnProperty(r)&&(t[r]="a"===r?n[r]:MA(n[r]));n=t}return cr(n,e)},cr.equals=function(n,e){return!(!n||!e)&&cr(n).toRgbString()==cr(e).toRgbString()},cr.random=function(){return cr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},cr.mix=function(n,e,t){t=0===t?0:t||50;var r=cr(n).toRgb(),i=cr(e).toRgb(),a=t/100;return cr({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},cr.readability=function(n,e){var t=cr(n),r=cr(e);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)},cr.isReadable=function(n,e,t){var i,a,r=cr.readability(n,e);switch(a=!1,i=function Fbe(n){var e,t;return n=n||{level:"AA",size:"small"},e=(n.level||"AA").toUpperCase(),t=(n.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==t&&"large"!==t&&(t="small"),{level:e,size:t}}(t),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7}return a},cr.mostReadable=function(n,e,t){var a,l,d,h,r=null,i=0;l=(t=t||{}).includeFallbackColors,d=t.level,h=t.size;for(var p=0;pi&&(i=a,r=cr(e[p]));return cr.isReadable(n,r,{level:d,size:h})||!l?r:(t.includeFallbackColors=!1,cr.mostReadable(n,["#fff","#000"],t))};var tB=cr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Tbe=cr.hexNames=function Ibe(n){var e={};for(var t in n)n.hasOwnProperty(t)&&(e[n[t]]=t);return e}(tB);function uG(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function ya(n,e){(function Nbe(n){return"string"==typeof n&&-1!=n.indexOf(".")&&1===parseFloat(n)})(n)&&(n="100%");var t=function Obe(n){return"string"==typeof n&&-1!=n.indexOf("%")}(n);return n=Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(n*e,10)/100),Math.abs(n-e)<1e-6?1:n%e/parseFloat(e)}function U5(n){return Math.min(1,Math.max(0,n))}function ed(n){return parseInt(n,16)}function Nu(n){return 1==n.length?"0"+n:""+n}function MA(n){return n<=1&&(n=100*n+"%"),n}function hG(n){return Math.round(255*parseFloat(n)).toString(16)}function fG(n){return ed(n)/255}var t,r,i,Ou=(r="[\\s|\\(]+("+(t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",i="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Ip(n){return!!Ou.CSS_UNIT.exec(n)}var pG=mt(8150);class nB{constructor(){this.colors=[new Ua("red"),new Ua("green")],this.options=["#ffffff","#ff6666","#ffaf66","#ffe766","#8ec843","#66b1ff","#ff66f4"],this.minValue=0,this.maxValue=100,this.presets={redgreen:[new Ua("#ff6666"),new Ua("#ffe766"),new Ua("#8ec843")],greenred:[new Ua("#8ec843"),new Ua("#ffe766"),new Ua("#ff6666")],bluered:[new Ua("#66b1ff"),new Ua("#ff66f4"),new Ua("#ff6666")],redblue:[new Ua("#ff6666"),new Ua("#ff66f4"),new Ua("#66b1ff")],transparentblue:[new Ua("#ffffff00"),new Ua("#66b1ff")],transparentred:[new Ua("#ffffff00"),new Ua("#ff6666")]},this.setGradientPreset("redgreen")}serialize(){let e=[];this.colors.forEach(function(r){let i=cr(r.color).toHex8String();e.push(i)});let t={colors:e,minValue:this.minValue,maxValue:this.maxValue};return JSON.stringify(t,null,"\t")}deserialize(e){let t=JSON.parse(e);if(function(i){for(let a of i)if("string"!=typeof a||!cr(a).isValid())return console.error("TypeError:",a,"(",typeof a,")","is not a color-string"),!1;return!0}(t.colors)){this.colors=[];let i=this;t.colors.forEach(function(a){i.colors.push(new Ua(a))})}else console.error("TypeError: gradient colors field is not a color-string[]");this.minValue=t.minValue,this.maxValue=t.maxValue,this.updateGradient()}presetToTinyColor(e){let t=[];return this.presets[e].forEach(function(r){t.push(r.color)}),pG(t).css("linear","to right")}setGradientPreset(e){this.colors=this.presets[e].map(t=>new Ua(t.color)),this.updateGradient()}updateGradient(){let e=[];this.colors.forEach(function(t){e.push(t.color)}),this.gradient=pG(e),this.gradientRGB=this.gradient.rgb(100)}addColor(){this.colors.push(new Ua(this.colors[this.colors.length-1].color))}removeColor(e){this.colors.splice(e,1)}getHexColor(e){let t;if(this.gradient||this.updateGradient(),0==e.length)return;if(t=Number(e),t>=this.maxValue)return this.gradientRGB[this.gradientRGB.length-1].toHexString();if(t<=this.minValue)return this.gradientRGB[0].toHexString();let r=(t-this.minValue)/(this.maxValue-this.minValue)*100;return this.gradientRGB[Math.round(r)].toHexString()}}class Ua{constructor(e){this.color=e}}class H5{constructor(){}serialize(){return this.label&&this.url?{label:this.label,url:this.url}:{divider:this.divider}}deserialize(e){let t="string"==typeof e?JSON.parse(e):e;"url"in t?("string"==typeof t.url?this.url=t.url:console.error("TypeError: Link field 'url' is not a string"),"label"in t?"string"==typeof t.label?this.label=t.label:console.error("TypeError: Link field 'label' is not a string"):console.error("Error: Link required field 'label' not present")):"divider"in t?"boolean"==typeof t.divider?this.divider=t.divider:console.error("TypeError: Link field 'divider' is not a boolean"):console.error("Error: Link required field 'url' or 'divider' not present")}valid(){return this.label&&this.label.length>0&&this.url&&this.url.length>0||void 0!==this.divider}}class $5{serialize(){return this.name&&this.value?{name:this.name,value:this.value}:{divider:this.divider}}deserialize(e){let t="string"==typeof e?JSON.parse(e):e;"name"in t?("string"==typeof t.name?this.name=t.name:console.error("TypeError: Metadata field 'name' is not a string"),"value"in t?"string"==typeof t.value?this.value=t.value:console.error("TypeError: Metadata field 'value' is not a string"):console.error("Error: Metadata required field 'value' not present")):"divider"in t?"boolean"==typeof t.divider?this.divider=t.divider:console.error("TypeError: Metadata field 'divider' is not a boolean"):console.error("Error: Metadata required field 'name' or 'divider' not present")}valid(){return this.name&&this.name.length>0&&this.value&&this.value.length>0||void 0!==this.divider}}class ry{get metadataStr(){return JSON.stringify(this.metadata)}get linkStr(){return JSON.stringify(this.links)}constructor(e){this.score="",this.color="",this.enabled=!0,this.comment="",this.metadata=[],this.links=[],this.showSubtechniques=!1,this.isVisible=!0,this.technique_tactic_union_id=e;let t=e.split("^");this.techniqueID=t[0],this.tactic=t[1]}modified(){return this.annotated()||this.showSubtechniques}annotated(){return""!=this.score||""!=this.color||!this.enabled||""!=this.comment||0!==this.links.length||0!==this.metadata.length}resetAnnotations(){this.score="",this.comment="",this.color="",this.enabled=!0,this.aggregateScore="",this.aggregateScoreColor="",this.links=[],this.metadata=[]}setIsVisible(e){this.isVisible=e}serialize(){let e={};return e.techniqueID=this.techniqueID,e.tactic=this.tactic,""!==this.score&&!isNaN(Number(this.score))&&(e.score=Number(this.score)),e.color=this.color,e.comment=this.comment,e.enabled=this.enabled,e.metadata=this.metadata.filter(t=>t.valid()).map(t=>t.serialize()),e.links=this.links.filter(t=>t.valid()).map(t=>t.serialize()),e.showSubtechniques=this.showSubtechniques,JSON.stringify(e,null,"\t")}deserialize(e,t,r){let i=JSON.parse(e);if(void 0!==t?this.techniqueID=t:console.error("ERROR: TechniqueID field not present in technique"),void 0!==r&&""!==r?this.tactic=r:(console.error("WARNING: tactic field not present in technique"),alert(`WARNING: The tactic field on the technique ID ${t} is not defined. Annotations for this technique may not be restored.`)),"comment"in i&&("string"==typeof i.comment?this.comment=i.comment:console.error("TypeError: technique comment field is not a number:",i.comment,"(",typeof i.comment,")")),"color"in i&&""!==i.color&&("string"==typeof i.color&&cr(i.color).isValid()?this.color=i.color:console.error("TypeError: technique color field is not a color-string:",i.color,"(",typeof i.color,")")),"score"in i&&("number"==typeof i.score?this.score=String(i.score):console.error("TypeError: technique score field is not a number:",i.score,"(",typeof i.score,")")),"enabled"in i&&("boolean"==typeof i.enabled?this.enabled=i.enabled:console.error("TypeError: technique enabled field is not a boolean:",i.enabled,"(",typeof i.enabled,")")),"showSubtechniques"in i&&("boolean"==typeof i.showSubtechniques?this.showSubtechniques=i.showSubtechniques:console.error("TypeError: technique showSubtechnique field is not a boolean:",i.showSubtechniques,"(",typeof i.showSubtechniques,")")),void 0!==this.tactic&&void 0!==this.techniqueID?this.technique_tactic_union_id=this.techniqueID+"^"+this.tactic:console.error("ERROR: Tactic and TechniqueID field needed."),"metadata"in i)for(let a of i.metadata){let l=new $5;l.deserialize(a),l.valid()&&this.metadata.push(l)}if("links"in i)for(let a of i.links){let l=new H5;l.deserialize(a),l.valid()&&this.links.push(l)}}}class Pbe{constructor(){this.platforms={selection:[],options:[]}}initPlatformOptions(e){this.platforms.options=JSON.parse(JSON.stringify(e.platforms)),this.platforms.selection.length||(this.platforms.selection=JSON.parse(JSON.stringify(e.platforms)))}toggleInFilter(e,t){if(this[e].options.includes(t))if(this[e].selection.includes(t)){let r=this[e].selection.indexOf(t);this[e].selection.splice(r,1)}else this[e].selection.push(t);else console.error("not a valid option to toggle",t,this[e])}inFilter(e,t){return this[e].selection.includes(t)}serialize(){return JSON.stringify({platforms:this.platforms.selection})}deserialize(e){if(e.platforms)if(function(r){for(let i of r)if("string"!=typeof i)return console.error("TypeError:",i,"(",typeof i,")","is not a string"),!1;return!0}(e.platforms)){let r={android:"Android",ios:"iOS",windows:"Windows",linux:"Linux",mac:"macOS",AWS:"IaaS",GCP:"IaaS",Azure:"IaaS"};const i=new Set;e.platforms.forEach(function(a){a in r?i.add(r[a]):i.add(a)}),this.platforms.selection=Array.from(i)}else console.error("TypeError: filter platforms field is not a string[]")}}class Bbe{constructor(){this.layoutOptions=["side","flat","mini"],this._layout=this.layoutOptions[0],this.aggregateFunctionOptions=["average","min","max","sum"],this._aggregateFunction=this.aggregateFunctionOptions[0],this._showID=!1,this._showName=!0,this._showAggregateScores=!1,this._countUnscored=!1,this.expandedSubtechniquesOptions=["none","annotated","all"],this._expandedSubtechniques=this.expandedSubtechniquesOptions[0]}set layout(e){if(!this.layoutOptions.includes(e))return void console.warn("invalid matrix layout",e);let t=this._layout;this._layout=e,"mini"==this._layout&&(this.showID=!1,this.showName=!1),"mini"==t&&"mini"!=e&&(this.showName=!0)}get layout(){return this._layout}set aggregateFunction(e){this.aggregateFunctionOptions.includes(e)?this._aggregateFunction=e:console.warn("invalid aggregate fx option",e)}get aggregateFunction(){return this._aggregateFunction}set showID(e){this._showID=e,e&&"mini"==this._layout&&(this._layout="side")}get showID(){return this._showID}set showName(e){this._showName=e,e&&"mini"==this._layout&&(this._layout="side")}get showName(){return this._showName}set showAggregateScores(e){this._showAggregateScores=e}get showAggregateScores(){return this._showAggregateScores}set countUnscored(e){this._countUnscored=e}get countUnscored(){return"average"===this.aggregateFunction&&this._countUnscored}set expandedSubtechniques(e){this.expandedSubtechniquesOptions.includes(e)?this._expandedSubtechniques=e:console.warn("invalid expand subtechnique option",e)}get expandedSubtechniques(){return this._expandedSubtechniques}serialize(){return{layout:this.layout,aggregateFunction:this.aggregateFunction,showID:this.showID,showName:this.showName,showAggregateScores:this.showAggregateScores,countUnscored:this.countUnscored,expandedSubtechniques:this.expandedSubtechniques}}deserialize(e){"showID"in e&&("boolean"==typeof e.showID?this.showID=e.showID:console.error("TypeError: layout field 'showID' is not a boolean:",e.showID,"(",typeof e.showID,")")),"showName"in e&&("boolean"==typeof e.showName?this.showName=e.showName:console.error("TypeError: layout field 'showName' is not a boolean:",e.showName,"(",typeof e.showName,")")),"layout"in e&&("string"==typeof e.layout?this.layout=e.layout:console.error("TypeError: layout field 'layout' is not a string:",e.layout,"(",typeof e.layout,")")),"aggregateFunction"in e&&("string"==typeof e.aggregateFunction?this.aggregateFunction=e.aggregateFunction:console.error("TypeError: layout field 'aggregateFunction' is not a boolean:",e.aggregateFunction,"(",typeof e.aggregateFunction,")")),"showAggregateScores"in e&&("boolean"==typeof e.showAggregateScores?this.showAggregateScores=e.showAggregateScores:console.error("TypeError: layout field 'showAggregateScores' is not a boolean:",e.showAggregateScores,"(",typeof e.showAggregateScores,")")),"countUnscored"in e&&("boolean"==typeof e.countUnscored?this.countUnscored=e.countUnscored:console.error("TypeError: layout field 'countUnscored' is not a boolean:",e.countUnscored,"(",typeof e.countUnscored,")")),"expandedSubtechniques"in e&&("string"==typeof e.expandedSubtechniques?this.expandedSubtechniques=e.expandedSubtechniques:console.error("TypeError: layout field 'expandedSubtechniques' is not a string:",e.expandedSubtechniques,"(",typeof e.expandedSubtechniques,")"))}}const W5="5.1.0",TA="4.5";class gG{get linksMatch(){return!this.linkMismatches.length}get metadataMatch(){return!this.metadataMismatches.length}get sidebarOpened(){return this._sidebarOpened}set sidebarOpened(e){this._sidebarOpened=e}get sidebarContentType(){return this._sidebarContentType}set sidebarContentType(e){this.sidebarContentTypes.includes(e)?this._sidebarContentType=e:this._sidebarContentType=""}constructor(e,t,r,i){this.dataService=i,this.domain="",this.version="",this.description="",this.loaded=!1,this.techniqueVMs=new Map,this.selectedTechniques=new Set,this.linkMismatches=[],this.metadataMismatches=[],this.highlightedTactic=null,this.highlightedTechniques=new Set,this.highlightedTechnique=null,this.layout=new Bbe,this.hideDisabled=!1,this.showTacticRowBackground=!1,this.tacticRowBackground="#dddddd",this.stickyToolbar=!0,this.gradient=new nB,this.legendItems=[],this.backgroundPresets=["#e60d0d","#fc3b3b","#fc6b6b","#fca2a2","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#e6d60d","#fce93b","#fcf26b","#fcf3a2","#31a354","#74c476","#a1d99b","#c7e9c0","#3182bd","#6baed6","#9ecae1","#c6dbef","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"],this.legendColorPresets=[],this.initializeScoresTo="",this.metadata=[],this.links=[],this.technique_show_subtechnique=!1,this.sorting=0,this.selectTechniquesAcrossTactics=!0,this.selectSubtechniquesWithParent=!1,this.selectVisibleTechniques=!1,this.sidebarContentTypes=["layerUpgrade","search","layerSettings"],console.debug("initializing ViewModel '"+e+"'"),this.domainVersionID=r,this.filters=new Pbe,this.name=e,this.uid=t,this.legendColorPresets=this.backgroundPresets}openSidebar(e){this.sidebarContentType=e,this.sidebarOpened=!0}loadVMData(){let e=this.dataService.getDomain(this.domainVersionID);if(e.isCustom&&(this.bundleURL=e.urls[0]),this.domainVersionID&&e.dataLoaded)this.initTechniqueVMs(),this.filters.initPlatformOptions(e);else{let t=this;this.dataService.onDataLoad(this.domainVersionID,function(){t.initTechniqueVMs(),t.filters.initPlatformOptions(t.dataService.getDomain(t.domainVersionID))})}this.loaded=!0}initTechniqueVMs(){for(let e of this.dataService.getDomain(this.domainVersionID).techniques){for(let t of e.get_all_technique_tactic_ids()){let r=new ry(t);r.score=this.initializeScoresTo,this.setTechniqueVM(r,!1)}for(let t of e.subtechniques)for(let r of t.get_all_technique_tactic_ids()){let i=new ry(r);i.score=this.initializeScoresTo,this.setTechniqueVM(i,!1)}}if("annotated"==this.layout.expandedSubtechniques){for(let e of this.dataService.getDomain(this.domainVersionID).techniques)if(e.subtechniques.length>0)for(let t of e.get_all_technique_tactic_ids()){let r=this.getTechniqueVM_id(t);for(let i of e.subtechniques)r.showSubtechniques=r.showSubtechniques||i.get_all_technique_tactic_ids().some(a=>this.getTechniqueVM_id(a).annotated())}}else if("all"==this.layout.expandedSubtechniques){for(let e of this.dataService.getDomain(this.domainVersionID).techniques)if(e.subtechniques.length>0)for(let t of e.get_all_technique_tactic_ids()){this.getTechniqueVM_id(t).showSubtechniques=!0}}else{for(let e of this.dataService.getDomain(this.domainVersionID).techniques)if(e.subtechniques.length>0)for(let t of e.get_all_technique_tactic_ids())if(this.getTechniqueVM_id(t).showSubtechniques){this.technique_show_subtechnique=!0;break}"none"==this.layout.expandedSubtechniques&&!this.technique_show_subtechnique&&this.techniqueVMs.forEach(function(e){e.showSubtechniques=!1})}}getTechniqueVM(e,t){if(!this.hasTechniqueVM(e,t))throw Error("technique VM not found: "+e.attackID+", "+t.attackID);return this.techniqueVMs.get(e.get_technique_tactic_id(t))}getTechniqueVM_id(e){if(!this.hasTechniqueVM_id(e))throw Error("technique VM not found: "+e);return this.techniqueVMs.get(e)}setTechniqueVM(e,t=!0){if(this.techniqueVMs.has(e.technique_tactic_union_id)){if(!t)return;this.techniqueVMs.delete(e.technique_tactic_union_id)}this.techniqueVMs.set(e.technique_tactic_union_id,e)}hasTechniqueVM(e,t){return this.techniqueVMs.has(e.get_technique_tactic_id(t))}hasTechniqueVM_id(e){return this.techniqueVMs.has(e)}highlightTechnique(e,t){this.selectSubtechniquesWithParent&&e.isSubtechnique&&this.highlightedTechniques.add(e.parent.id),this.highlightedTechnique=e,this.highlightedTechniques.add(e.id),this.highlightedTactic=t}clearHighlight(){this.highlightedTactic=null,this.highlightedTechnique=null,this.highlightedTechniques=new Set}selectTechnique(e,t){this.selectTechniquesAcrossTactics?this.selectTechniqueAcrossTactics(e):this.selectTechniqueInTactic(e,t)}unselectTechnique(e,t){this.selectTechniquesAcrossTactics?this.unselectTechniqueAcrossTactics(e):this.unselectTechniqueInTactic(e,t)}selectTechniqueInTactic(e,t,r=!0){if(this.selectSubtechniquesWithParent&&r){if(e.isSubtechnique)return void this.selectTechniqueInTactic(e.parent,t,!0);for(let a of e.subtechniques)this.selectTechniqueInTactic(a,t,!1)}let i=e.get_technique_tactic_id(t);this.isCurrentlyEditing()||(this.activeTvm=this.getTechniqueVM_id(i)),(this.selectVisibleTechniques&&this.getTechniqueVM_id(i).isVisible||!this.selectVisibleTechniques)&&(this.selectedTechniques.add(i),this.checkValues(!0,i))}selectAllTechniquesInTactic(e){for(let t of e.techniques)this.selectTechnique(t,e)}selectTechniqueAcrossTactics(e,t=!0,r=!1){if(this.selectSubtechniquesWithParent&&t){if(e.isSubtechnique)return void this.selectTechniqueAcrossTactics(e.parent,!0,r);for(let i of e.subtechniques)this.selectTechniqueAcrossTactics(i,!1,r)}if(r)this.highlightTechnique(e);else for(let i of e.get_all_technique_tactic_ids())this.isCurrentlyEditing()||(this.activeTvm=this.getTechniqueVM_id(i)),(this.selectVisibleTechniques&&this.getTechniqueVM_id(i).isVisible||!this.selectVisibleTechniques)&&(this.selectedTechniques.add(i),this.checkValues(!0,i))}unselectTechniqueInTactic(e,t,r=!0){if(this.selectSubtechniquesWithParent&&r){if(e.isSubtechnique)return void this.unselectTechniqueInTactic(e.parent,t,!0);for(let a of e.subtechniques)this.unselectTechniqueInTactic(a,t,!1)}let i=e.get_technique_tactic_id(t);this.selectedTechniques.delete(i),this.checkValues(!1,i)}unselectAllTechniquesInTactic(e){for(let t of e.techniques)this.unselectTechnique(t,e)}unselectTechniqueAcrossTactics(e,t=!0){if(this.selectSubtechniquesWithParent&&t){if(e.isSubtechnique)return void this.unselectTechniqueAcrossTactics(e.parent,!0);for(let r of e.subtechniques)this.unselectTechniqueAcrossTactics(r,!1)}for(let r of e.get_all_technique_tactic_ids())this.selectedTechniques.delete(r),this.checkValues(!1,r)}clearSelectedTechniques(){this.selectedTechniques.clear(),this.activeTvm=void 0,this.linkMismatches=[],this.metadataMismatches=[]}selectAllTechniques(){this.clearSelectedTechniques(),this.invertSelection()}invertSelection(){let e=new Set(this.selectedTechniques);this.clearSelectedTechniques();let t=this;this.techniqueVMs.forEach(function(r,i){e.has(r.technique_tactic_union_id)||(t.selectVisibleTechniques&&r.isVisible||!t.selectVisibleTechniques)&&(t.isCurrentlyEditing()||(t.activeTvm=t.getTechniqueVM_id(r.technique_tactic_union_id)),t.selectedTechniques.add(r.technique_tactic_union_id),t.checkValues(!0,r.technique_tactic_union_id))})}selectAnnotated(){let e=this;if(this.isCurrentlyEditing()){let t=new Set(this.selectedTechniques);this.techniqueVMs.forEach(function(r,i){t.has(r.technique_tactic_union_id)&&!r.annotated()&&(e.selectedTechniques.delete(r.technique_tactic_union_id),e.checkValues(!1,r.technique_tactic_union_id))})}else this.techniqueVMs.forEach(function(t,r){t.annotated()&&(e.selectVisibleTechniques&&t.isVisible||!e.selectVisibleTechniques)&&(e.isCurrentlyEditing()||(e.activeTvm=e.getTechniqueVM_id(t.technique_tactic_union_id)),e.selectedTechniques.add(t.technique_tactic_union_id),e.checkValues(!0,t.technique_tactic_union_id))})}selectUnannotated(){let e=this;if(this.isCurrentlyEditing()){let t=new Set(this.selectedTechniques);this.techniqueVMs.forEach(function(r,i){t.has(r.technique_tactic_union_id)&&r.annotated()&&(e.selectedTechniques.delete(r.technique_tactic_union_id),e.checkValues(!1,r.technique_tactic_union_id))})}else this.selectAnnotated(),this.invertSelection()}initCopyAnnotations(){let e=this;function t(r){let i=e.dataService.getTechnique(r,e.compareTo.domainVersionID),a=e.dataService.getDomain(e.domainVersionID);i.tactics.map(d=>a.tactics.find(h=>h.shortname==d)).forEach(d=>{if(e.compareTo.getTechniqueVM(i,d).annotated()){let p=e.dataService.getTechnique(r,e.domainVersionID);e.copyAnnotations(i,p,d)}})}this.versionChangelog&&(this.versionChangelog.unchanged.forEach(r=>t(r)),this.versionChangelog.minor_changes.forEach(r=>t(r)))}copyAnnotations(e,t,r){let i=this.compareTo.getTechniqueVM(e,r),a=this.getTechniqueVM(t,r);this.versionChangelog.reviewed.delete(e.attackID),a.deserialize(i.serialize(),e.attackID,r.shortname),this.updateScoreColor(a),i.enabled=!1,this.versionChangelog.copied.add(i.technique_tactic_union_id),e.get_all_technique_tactic_ids().every(l=>this.versionChangelog.copied.has(l))&&this.versionChangelog.reviewed.add(e.attackID)}revertCopy(e,t,r){let i=this.compareTo.getTechniqueVM(e,r),a=this.getTechniqueVM(t,r);this.versionChangelog.reviewed.delete(e.attackID),a.resetAnnotations(),i.enabled=!0,this.versionChangelog.copied.delete(i.technique_tactic_union_id),e.get_all_technique_tactic_ids().every(l=>this.versionChangelog.copied.has(l))||this.versionChangelog.reviewed.delete(e.attackID)}isTechniqueSelected(e,t,r=!0){if(this.selectTechniquesAcrossTactics){if(this.selectSubtechniquesWithParent&&r){if(e.isSubtechnique)return this.isTechniqueSelected(e.parent,t,!0);for(let i of e.subtechniques)if(this.isTechniqueSelected(i,t,!1))return!0}for(let i of e.get_all_technique_tactic_ids())if(this.selectedTechniques.has(i))return!0;return!1}if(this.selectSubtechniquesWithParent&&r){if(e.isSubtechnique)return this.isTechniqueSelected(e.parent,t,!0);for(let i of e.subtechniques)if(this.isTechniqueSelected(i,t,!1))return!0}return this.selectedTechniques.has(e.get_technique_tactic_id(t))}getSelectedTechniqueCount(){if(this.selectTechniquesAcrossTactics){if(this.selectSubtechniquesWithParent){let e=new Set;return this.selectedTechniques.forEach(t=>e.add(t.split("^")[0].split(".")[0])),e.size}{let e=new Set;return this.selectedTechniques.forEach(t=>e.add(t.split("^")[0])),e.size}}if(this.selectSubtechniquesWithParent){let e=new Set;return this.selectedTechniques.forEach(t=>{let r=t.split("^"),i=r[1],a=r[0].split(".")[0];e.add(a+"^"+i)}),e.size}return this.selectedTechniques.size}isTacticSelected(e){let t=this;return e.techniques.every(function(i){return t.isTechniqueSelected(i,e)})}isCurrentlyEditing(){return this.getSelectedTechniqueCount()>0}editSelectedTechniques(e,t){this.selectedTechniques.forEach(r=>{this.getTechniqueVM_id(r)[e]=t})}editSelectedTechniqueValues(e,t){let r={links:H5,metadata:$5};this.selectedTechniques.forEach(i=>{const a=t.map(l=>{let d=new r[e];return d.deserialize(l.serialize()),d});this.getTechniqueVM_id(i)[e]=a})}resetSelectedTechniques(){this.selectedTechniques.forEach(e=>{this.getTechniqueVM_id(e).resetAnnotations()})}getEditingCommonValue(e){if(!this.isCurrentlyEditing())return"";let t=Array.from(this.selectedTechniques),r=this.getTechniqueVM_id(t[0])[e];for(let i=1;ithis.filterTechniques(r.techniques,r,t).length>0)}filterTechniques(e,t,r){return e.filter(i=>{let a=this.getTechniqueVM(i,t);if(this.hideDisabled&&!this.isSubtechniqueEnabled(i,a,t))return a.setIsVisible(!1),i.subtechniques.forEach(d=>{this.getTechniqueVM(d,t).setIsVisible(!1)}),!1;if("PRE-ATT&CK"==r.name)return a.setIsVisible(!0),i.subtechniques.forEach(d=>{this.getTechniqueVM(d,t).setIsVisible(!0)}),!0;let l=new Set(i.platforms);0==l.size&&l.add("None");for(let d of this.filters.platforms.selection)if(l.has(d))return a.setIsVisible(!0),i.subtechniques.forEach(h=>{this.getTechniqueVM(h,t).setIsVisible(!0)}),!0;return a.setIsVisible(!1),i.subtechniques.forEach(d=>{this.getTechniqueVM(d,t).setIsVisible(!1)}),!1})}isSubtechniqueEnabled(e,t,r){return!!t.enabled||e.subtechniques.length>0&&e.subtechniques.some(i=>{let a=new Set(i.platforms),l=new Set(this.filters.platforms.selection),d=new Set(Array.from(l.values()).filter(h=>a.has(h)));return this.getTechniqueVM(i,r).enabled&&d.size>0})}sortTechniques(e,t){return e.sort((r,i)=>{const a=this.getTechniqueVM(r,t),l=this.getTechniqueVM(i,t);this.sortSubTechniques(r,t),this.sortSubTechniques(i,t);let d=a.score.length>0?Number(a.score):Number.NEGATIVE_INFINITY,h=l.score.length>0?Number(l.score):Number.NEGATIVE_INFINITY;return this.layout.showAggregateScores&&(r.subtechniques.length>0&&(d=this.calculateAggregateScore(r,t)),i.subtechniques.length>0&&(h=this.calculateAggregateScore(i,t))),this.sortingAlgorithm(r,i,d,h)})}sortSubTechniques(e,t){e.subtechniques.sort((r,i)=>{const a=this.getTechniqueVM(r,t),l=this.getTechniqueVM(i,t),d=a.score.length>0?Number(a.score):0,h=l.score.length>0?Number(l.score):0;return this.sortingAlgorithm(r,i,d,h)})}sortingAlgorithm(e,t,r,i){switch(this.sorting){case 1:return t.name.localeCompare(e.name);case 2:return r===i?e.name.localeCompare(t.name):r-i;case 3:return r===i?e.name.localeCompare(t.name):i-r;default:return e.name.localeCompare(t.name)}}calculateAggregateScore(e,t){const r=this.getTechniqueVM(e,t);let i=r.score.length>0?Number(r.score):0,a=r.score.length>0?1:0,l=[i];if(e.subtechniques.forEach(h=>{const p=this.getTechniqueVM(h,t),y=p.score.length>0?Number(p.score):0;p.score.length>0&&(a+=1,l.push(y))}),0===a)return r.score.length>0?i:Number.NEGATIVE_INFINITY;let d=0;switch(this.layout.aggregateFunction){case"min":l.length>0&&(d=Math.min(...l));break;case"max":l.length>0&&(d=Math.max(...l));break;case"sum":d=l.reduce((h,p)=>h+p);break;default:i=l.reduce((h,p)=>h+p),d=i/(this.layout.countUnscored?e.subtechniques.length+1:a)}return d=d.toFixed(2),r.aggregateScoreColor=this.gradient.getHexColor(d.toString()),r.aggregateScore=Number.isFinite(+d)?(+d).toString():"",+d}applyControls(e,t,r){return this.sortTechniques(this.filterTechniques(e,t,r),t)}getVisibleTechniquesList(){let e=[];return this.techniqueVMs.forEach(t=>{t.isVisible&&e.push(t.technique_tactic_union_id)}),e}modifiedHiddenTechniques(){let e=0;return this.techniqueVMs.forEach(function(t,r){t.modified()&&!1===t.isVisible&&e++}),e}serialize(e){let t=[];this.techniqueVMs.forEach(function(a,l){(a.modified()&&!e||a.modified()&&!0===a.isVisible&&e)&&t.push(JSON.parse(a.serialize()))});let r={};r.name=this.name,r.versions={attack:this.dataService.getDomain(this.domainVersionID).getVersion(),navigator:W5,layer:TA};let i=this.dataService.getDomain(this.domainVersionID);return r.domain=i.domain_identifier,i.isCustom&&(r.customDataURL=i.urls[0]),r.description=this.description,r.filters=JSON.parse(this.filters.serialize()),r.sorting=this.sorting,r.layout=this.layout.serialize(),r.hideDisabled=this.hideDisabled,r.techniques=t,r.gradient=JSON.parse(this.gradient.serialize()),r.legendItems=JSON.parse(JSON.stringify(this.legendItems)),r.metadata=this.metadata.filter(a=>a.valid()).map(a=>a.serialize()),r.links=this.links.filter(a=>a.valid()).map(a=>a.serialize()),r.showTacticRowBackground=this.showTacticRowBackground,r.tacticRowBackground=this.tacticRowBackground,r.selectTechniquesAcrossTactics=this.selectTechniquesAcrossTactics,r.selectSubtechniquesWithParent=this.selectSubtechniquesWithParent,r.selectVisibleTechniques=this.selectVisibleTechniques,JSON.stringify(r,null,"\t")}deserializeDomainVersionID(e){let t="",r="string"==typeof e?JSON.parse(e):e;return this.name=r.name,this.version=this.dataService.latestVersion.number,"versions"in r&&("attack"in r.versions&&("string"==typeof r.versions.attack?r.versions.attack.length>0&&(this.version=r.versions.attack.match(/\d+/g)[0]):console.error("TypeError: attack version field is not a string")),t=String(r.versions.layer)),"version"in r&&(t=String(r.version)),r.domain in this.dataService.domain_backwards_compatibility?this.domain=this.dataService.domain_backwards_compatibility[r.domain]:this.domain=r.domain,this.domainVersionID=this.dataService.getDomainVersionID(this.domain,this.version),t}deserialize(e,t=!0){let r="string"==typeof e?JSON.parse(e):e;if("description"in r&&("string"==typeof r.description?this.description=r.description:console.error("TypeError: description field is not a string")),"filters"in r&&this.filters.deserialize(r.filters),"sorting"in r&&("number"==typeof r.sorting?this.sorting=r.sorting:console.error("TypeError: sorting field is not a number")),"hideDisabled"in r&&("boolean"==typeof r.hideDisabled?this.hideDisabled=r.hideDisabled:console.error("TypeError: hideDisabled field is not a boolean")),"gradient"in r&&(this.gradient=new nB,this.gradient.deserialize(JSON.stringify(r.gradient))),"legendItems"in r)for(let i of r.legendItems){let a={color:"#defa217",label:"default label"};"label"in i?"color"in i?"string"==typeof i.label?(a.label=i.label,"string"==typeof i.color&&cr(i.color).isValid()?(a.color=i.color,this.legendItems.push(a)):console.error("TypeError: legendItem color field is not a color-string:",i.color,"(",typeof i.color,")")):console.error("TypeError: legendItem label field is not a string"):console.error("Error: LegendItem required field 'label' not present"):console.error("Error: LegendItem required field 'label' not present")}if("showTacticRowBackground"in r&&("boolean"==typeof r.showTacticRowBackground?this.showTacticRowBackground=r.showTacticRowBackground:console.error("TypeError: showTacticRowBackground field is not a boolean")),"tacticRowBackground"in r&&("string"==typeof r.tacticRowBackground&&cr(r.tacticRowBackground).isValid()?this.tacticRowBackground=r.tacticRowBackground:console.error("TypeError: tacticRowBackground field is not a color-string:",r.tacticRowBackground,"(",typeof r.tacticRowBackground,")")),"selectTechniquesAcrossTactics"in r&&("boolean"==typeof r.selectTechniquesAcrossTactics?this.selectTechniquesAcrossTactics=r.selectTechniquesAcrossTactics:console.error("TypeError: selectTechniquesAcrossTactics field is not a boolean")),"selectSubtechniquesWithParent"in r&&("boolean"==typeof r.selectSubtechniquesWithParent?this.selectSubtechniquesWithParent=r.selectSubtechniquesWithParent:console.error("TypeError: selectSubtechniquesWithParent field is not a boolean")),"selectVisibleTechniques"in r&&("boolean"==typeof r.selectVisibleTechniques?this.selectVisibleTechniques=r.selectVisibleTechniques:console.error("TypeError: selectVisibleTechniques field is not a boolean")),"techniques"in r&&t&&r.techniques.length>0)for(let i of r.techniques)if("tactic"in i){let a=new ry("");a.deserialize(JSON.stringify(i),i.techniqueID,i.tactic),this.setTechniqueVM(a)}else for(let a of this.dataService.getDomain(this.domainVersionID).techniques){if(a.attackID==i.techniqueID){if(a.deprecated||a.revoked)break;for(let l of a.tactics){let d=new ry("");d.deserialize(JSON.stringify(i),i.techniqueID,l),this.setTechniqueVM(d)}break}for(let l of a.subtechniques)if(l.attackID==i.techniqueID){if(l.deprecated||l.revoked)break;for(let d of l.tactics){let h=new ry("");h.deserialize(JSON.stringify(i),i.techniqueID,d),this.setTechniqueVM(h)}break}}if("metadata"in r)for(let i of r.metadata){let a=new $5;a.deserialize(i),a.valid()&&this.metadata.push(a)}if("links"in r)for(let i of r.links){let a=new H5;a.deserialize(i),a.valid()&&this.links.push(a)}if("customDataURL"in r&&(this.bundleURL=r.customDataURL),"layout"in r)this.layout.deserialize(r.layout);else if("viewMode"in r)if("number"==typeof r.viewMode)switch(r.viewMode){case 1:this.layout.layout="side",this.layout.showName=!1,this.layout.showID=!0;break;case 2:this.layout.layout="mini",this.layout.showName=!1,this.layout.showID=!1}else console.error("TypeError: viewMode field is not a number");this.updateGradient()}addGradientColor(){this.gradient.addColor(),this.updateGradient()}removeGradientColor(e){this.gradient.removeColor(e),this.updateGradient()}updateGradient(){this.gradient.updateGradient();let e=this;this.techniqueVMs.forEach(function(t,r){t.scoreColor=e.gradient.getHexColor(t.score)}),this.updateLegendColorPresets()}updateScoreColor(e){e.scoreColor=this.gradient.getHexColor(e.score)}addLegendItem(){this.legendItems.push({label:"NewItem",color:"#00ffff"})}deleteLegendItem(e){this.legendItems.splice(e,1)}clearLegend(){this.legendItems=[]}updateLegendColorPresets(){this.legendColorPresets=[],this.backgroundPresets.forEach(e=>this.legendColorPresets.push(e)),this.gradient.colors.forEach(e=>this.legendColorPresets.push(e.color))}}class Lbe{constructor(e,t,r,i,a){this.domain="",this.isCloseable=!1,this.showScoreVariables=!1,this.title=e,this.isCloseable=t,this.showScoreVariables=r,this.domain=i,this.isDataTable=a}}class zbe{constructor(e,t,r=null){this.label=e,this.url=t,this.subtechnique_url=r}getReplacedURL(e,t){return this.subtechnique_url&&e.isSubtechnique?this.subtechnique_url.replace(/{{parent_technique_attackID}}/g,e.parent.attackID).replace(/{{parent_technique_stixID}}/g,e.parent.id).replace(/{{parent_technique_name}}/g,e.parent.name.replace(/ /g,"-").toLowerCase()).replace(/{{subtechnique_attackID}}/g,e.attackID).replace(/{{subtechnique_attackID_suffix}}/g,e.attackID.split(".")[1]).replace(/{{subtechnique_stixID}}/g,e.id).replace(/{{subtechnique_name}}/g,e.name.replace(/ /g,"-").toLowerCase()).replace(/{{tactic_attackID}}/g,t.attackID).replace(/{{tactic_stixID}}/g,t.id).replace(/{{tactic_name}}/g,t.shortname):this.url.replace(/{{technique_attackID}}/g,e.attackID).replace(/{{technique_stixID}}/g,e.id).replace(/{{technique_name}}/g,e.name.replace(/ /g,"-").toLowerCase()).replace(/{{tactic_attackID}}/g,t.attackID).replace(/{{tactic_stixID}}/g,t.id).replace(/{{tactic_name}}/g,t.shortname)}}let Ys=class{get subtechniquesEnabled(){return this.features.get("subtechniques")}constructor(e){this.http=e,this.versions={enabled:!1,entries:[]},this.contextMenuItems=[],this.commentColor="yellow",this.linkColor="blue",this.metadataColor="purple",this.featureList=[],this.customizefeatureList=[],this.features=new Map,this.featureGroups=new Map}getFeature(e){return this.features.get(e)}getFeatureGroup(e,t){if(!this.featureGroups.has(e))return!0;let r=this.featureGroups.get(e),i=this.getFeatureGroupCount(e);return"any"==t?i>0:i===r.length}getFeatureGroupCount(e){return this.featureGroups.has(e)?this.featureGroups.get(e).filter(i=>this.getFeature(i)).length:-1}setFeature(e,t){let r=this;if("boolean"==typeof t)return this.featureGroups.has(e)?this.featureGroups.get(e).forEach(function(i){r.setFeature(i,t)}):this.features.set(e,t),[e];if("object"==typeof t){let i=[];return Object.keys(t).forEach(function(a){i=Array.prototype.concat(i,r.setFeature(a,t[a]))}),this.featureGroups.set(e,i),i}}setFeature_object(e,t=null){let r=this;if(e.hasOwnProperty("subfeatures")){t||(t=!!e.enabled&&null);let i=[];return e.subfeatures.forEach(function(a){i=Array.prototype.concat(i,r.setFeature_object(a,t))}),this.featureGroups.set(e.name,i),i}{let i=null!==t?t:e.enabled;return this.features.set(e.name,i),[e.name]}}isFeature(e){return this.features.has(e)}isFeatureGroup(e){return this.featureGroups.has(e)}getAllFragments(e){e||(e=window.location.href);let i,t=new Map,r=/[#&](\w+)=(\w+)/g;for(;i=r.exec(e);)t.set(i[1],i[2]);return t}validateConfig(e){if(!e.collection_index_url&&!e.versions?.entries?.length)throw new Error("'collection_index_url' or 'versions' must be defined");if(e.collection_index_url&&"string"!=typeof e.collection_index_url)throw new Error("'collection_index_url' must be a string");return e}loadConfig(){return this.http.get("./assets/config.json").pipe(kt(e=>this.validateConfig(e)),Bh(e=>(console.debug("loaded app configuration settings"),e.custom_context_menu_items.forEach(t=>{this.contextMenuItems.push(new zbe(t.label,t.url,t.subtechnique_url))}),this.defaultLayers=e.default_layers,this.commentColor=e.comment_color,this.linkColor=e.link_color,this.metadataColor=e.metadata_color,this.banner=e.banner,this.featureList=e.features,this.customizefeatureList=e.customize_features,e.features.forEach(t=>{this.setFeature_object(t)}),e.customize_features.forEach(t=>{this.setFeature_object(t)}),this.getAllFragments().forEach((t,r)=>{(this.isFeature(r)||this.isFeatureGroup(r))&&this.setFeature(r,"true"==t)}),this.versions=e.versions,e.collection_index_url?this.http.get(e.collection_index_url).pipe(TS(t=>console.log("loaded collection index from",e.collection_index_url)),m5(t=>{throw new Error("collection index failed to load. "+t.message)})):As(null))),kt(e=>{e&&(this.collectionIndex=e)}),m5(e=>{throw alert("ERROR the configuration file failed to parse. See the javascript console for more details."),e})).toPromise()}static#e=this.ctorParameters=()=>[{type:Tu}]};Ys=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([Cr({providedIn:"root"})],Ys);let Gl=class{constructor(e,t){this.http=e,this.configService=t,this.domain_backwards_compatibility={"mitre-enterprise":"enterprise-attack","mitre-mobile":"mobile-attack"},this.domains=[],this.versions=[],console.debug("initializing data service"),t.versions?.enabled&&this.setUpDomains(t.versions.entries),t.collectionIndex&&this.parseCollectionIndex(t.collectionIndex),this.versions.sort((r,i)=>+r.number>+i.number?-1:1),this.latestVersion=this.versions[0]}onDataLoad(e,t){this.getDomain(e).dataLoadedCallbacks.push(t)}parseBundles(e,t){let r=new Set,i=new Set,a=[],l=new Map,d=new Map;for(let h of t){let p=[],y=[],S=new Map;for(let R of h.objects){if("x-mitre-matrix"!=R.type){if(i.has(R.id))continue;i.add(R.id)}switch(R.type){case"x-mitre-data-component":e.dataComponents.push(new sbe(R,this));break;case"x-mitre-data-source":e.dataSources.set(R.id,{name:R.name,external_references:R.external_references});break;case"intrusion-set":e.groups.push(new JW(R,this));break;case"malware":case"tool":e.software.push(new nG(R,this));break;case"campaign":e.campaigns.push(new QW(R,this));break;case"x-mitre-asset":e.assets.push(new iG(R,this));break;case"course-of-action":e.mitigations.push(new tG(R,this));break;case"relationship":this.parseRelationship(R,e);break;case"attack-pattern":S.set(R.id,R),R.x_mitre_is_subtechnique||p.push(R);break;case"x-mitre-tactic":l.set(R.id,R);break;case"x-mitre-matrix":a.push(R),y.push(R);break;case"note":e.notes.push(new cbe(R))}}this.createTechniques(p,S,e);for(let R of y)d.get(R.id)?d.get(R.id).push(...p):d.set(R.id,p);this.parsePlatforms(e).forEach(r.add,r)}this.createMatrices(a,l,d,e),e.platforms=Array.from(r),e.dataLoaded=!0,e.executeCallbacks()}createTechniques(e,t,r){for(let i of e){let a=[];this.configService.subtechniquesEnabled&&r.relationships.subtechniques_of.has(i.id)&&r.relationships.subtechniques_of.get(i.id).forEach(l=>{if(t.has(l)){let d=new rG(t.get(l),[],this);a.push(d),r.subtechniques.push(d)}}),r.techniques.push(new rG(i,a,this))}}createMatrices(e,t,r,i){let a=[];for(let l of e){if(a.includes(l.id)||l.x_mitre_deprecated)continue;let h=r.get(l.id).map(y=>y.id),p=i.techniques.filter(y=>h.includes(y.id));i.matrices.push(new lbe(l,t,p,this)),a.push(l.id)}}parsePlatforms(e){let t=new Set;return e.techniques.concat(e.subtechniques).forEach(i=>{!i.deprecated&&!i.revoked&&i.platforms?.forEach(t.add,t)}),t}parseRelationship(e,t){let r=function(i,a,l){i.has(a)?i.get(a).push(l):i.set(a,[l])};switch(e.relationship_type){case"subtechnique-of":if(!this.configService.subtechniquesEnabled)return;r(t.relationships.subtechniques_of,e.target_ref,e.source_ref);break;case"uses":e.source_ref.startsWith("intrusion-set")&&e.target_ref.startsWith("attack-pattern")?r(t.relationships.group_uses,e.source_ref,e.target_ref):(e.source_ref.startsWith("malware")||e.source_ref.startsWith("tool"))&&e.target_ref.startsWith("attack-pattern")?r(t.relationships.software_uses,e.source_ref,e.target_ref):e.source_ref.startsWith("campaign")&&e.target_ref.startsWith("attack-pattern")&&r(t.relationships.campaign_uses,e.source_ref,e.target_ref);break;case"mitigates":r(t.relationships.mitigates,e.source_ref,e.target_ref);break;case"revoked-by":t.relationships.revoked_by.set(e.source_ref,e.target_ref);break;case"detects":r(t.relationships.component_rel,e.source_ref,e.target_ref);break;case"attributed-to":r(t.relationships.campaigns_attributed_to,e.target_ref,e.source_ref);break;case"targets":r(t.relationships.targeted_assets,e.target_ref,e.source_ref)}}setUpDomains(e){e.forEach(t=>{let r=this.addVersion(t.name,t.version.match(/\d+/g)[0]);t.domains.forEach(i=>{let a=i.identifier,l=new eB(a,i.name,r);t.authentication&&(l.authentication=t.authentication),i.taxii_url&&i.taxii_collection?(l.taxii_url=i.taxii_url,l.taxii_collection=i.taxii_collection):l.urls=i.data,this.domains.push(l)})})}parseCollectionIndex(e){for(let t of e.collections){let r=this.getDomainIdentifier(t.name),i=t.versions.reduce((l,d)=>{const[h,p]=d.version.split(".").map(Number);return(!l[h]||l[h].minori.name===e&&i.number===t);if(!r){let i=new oG(e,t);return this.versions.push(i),i}return r}getDomainData(e,t=!1){if(e.taxii_collection&&e.taxii_url){console.debug("fetching data from TAXII server");let r=new hw(e.taxii_url,"",""),i={id:e.taxii_collection,title:e.name,description:"",can_read:!0,can_write:!1};const a=new dbe(i,e.taxii_url,r);this.domainData$=bS(ug(a.getObjects("",void 0)))}else if(t||!this.domainData$){console.debug("retrieving data",e.urls);let r=[];const i={headers:void 0};if(e.authentication&&e.authentication.enabled){let a=`${e.authentication.serviceName}:${e.authentication.apiKey}`;i.headers=new Jc({Authorization:"Basic "+abe.hp.from(a).toString("base64")})}e.urls.forEach(a=>{r.push(this.http.get(a,i))}),this.domainData$=bS(r)}return this.domainData$}loadDomainData(e,t=!1){return new Promise((i,a)=>{let l=this.getDomain(e);if(l){let d;l.dataLoaded&&!t&&i(null),d=this.getDomainData(l,t).subscribe({next:h=>{this.parseBundles(l,h),i(null)},complete:()=>{d&&d.unsubscribe()}})}else l||a(new Error("'"+e+"' is not a valid domain & version."))})}getDomain(e){return this.domains.find(t=>t.id===e)}getDomainVersionID(e,t){return t||(t=this.versions[0].number),e+"-"+t}getTechnique(e,t){let r=this.getDomain(t);return r.techniques.concat(r.subtechniques).find(a=>a.attackID==e)}isSupported(e){let t=this.versions.map(i=>i.number),r=e.match(/\d+/g)[0];return t.includes(r)}compareVersions(e,t){let r=new ube(e,t),i=this.getDomain(e),a=this.getDomain(t),l=i.techniques.concat(i.subtechniques),d=a.techniques.concat(a.subtechniques),h=new Map(d.map(p=>[p.id,l.find(y=>y.id==p.id)]));for(let p of d){if(!p)continue;let y=h.get(p.id);if(y)if(p.modified==y.modified){if(y.revoked||y.deprecated)continue;r.unchanged.push(p.attackID)}else if(p.revoked&&!y.revoked)r.revocations.push(p.attackID);else{if(p.revoked&&y.revoked)continue;if(p.deprecated&&!y.deprecated)r.deprecations.push(p.attackID);else{if(p.deprecated&&y.deprecated)continue;0!=p.compareVersion(y)?r.changes.push(p.attackID):r.minor_changes.push(p.attackID)}}else{if(p.deprecated||p.revoked)continue;r.additions.push(p.attackID)}}return r}static#e=this.ctorParameters=()=>[{type:Tu},{type:Ys}]};Gl=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([Cr({providedIn:"root"})],Gl);var Ube=mt(1134),Hbe=mt.n(Ube);function us(){return us=Object.assign?Object.assign.bind():function(n){for(var e=1;e!function dve(n){return n&&"?"===n[0]}(a)).every(a=>void 0!==t[a]);if(!r){var i=e.filter(a=>void 0===t[a]);throw new Error('Cannot create function "'.concat(n,'", ')+"some dependencies are missing: ".concat(i.map(a=>'"'.concat(a,'"')).join(", "),"."))}}(n,e,a),t(l)}return i.isFactory=!0,i.fn=n,i.dependencies=e.slice().sort(),r&&(i.meta=r),i}function uve(n){return n&&"?"===n[0]?n.slice(1):n}function Xl(n,e){if(DG(n)&&AG(n,e))return n[e];throw"function"==typeof n[e]&&lB(n,e)?new Error('Cannot access method "'+e+'" as a property'):new Error('No access to property "'+e+'"')}function pw(n,e,t){if(DG(n)&&AG(n,e))return n[e]=t,t;throw new Error('No access to property "'+e+'"')}function AG(n,e){return!(!n||"object"!=typeof n)&&(!!br(pve,e)||!(e in Object.prototype||e in Function.prototype))}function lB(n,e){return!(null==n||"function"!=typeof n[e]||br(n,e)&&Object.getPrototypeOf&&e in Object.getPrototypeOf(n))&&(!!br(mve,e)||!(e in Object.prototype||e in Function.prototype))}function DG(n){return"object"==typeof n&&n&&n.constructor===Object}var pve={length:!0,name:!0},mve={toString:!0,valueOf:!0,toLocaleString:!0};class Z5{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).values()}get(e){return Xl(this.wrappedObject,e)}set(e,t){return pw(this.wrappedObject,e,t),this}has(e){return function hve(n,e){return e in n}(this.wrappedObject,e)}entries(){return TG(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}}class MG{constructor(e,t,r){this.a=e,this.b=t,this.bKeys=r,this[Symbol.iterator]=this.entries}get(e){return this.bKeys.has(e)?this.b.get(e):this.a.get(e)}set(e,t){return this.bKeys.has(e)?this.b.set(e,t):this.a.set(e,t),this}has(e){return this.b.has(e)||this.a.has(e)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return TG(this.keys(),e=>[e,this.get(e)])}forEach(e){for(var t of this.keys())e(this.get(t),t,this)}delete(e){return this.bKeys.has(e)?this.b.delete(e):this.a.delete(e)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function TG(n,e){return{next:()=>{var t=n.next();return t.done?t:{value:e(t.value),done:!1}}}}function OA(){return new Map}function mw(n){if(!n)return OA();if(cB(n))return n;if(Y5(n))return new Z5(n);throw new Error("createMap can create maps from objects or Maps")}function cB(n){return!!n&&(n instanceof Map||n instanceof Z5||"function"==typeof n.set&&"function"==typeof n.get&&"function"==typeof n.keys&&"function"==typeof n.has)}var yve=Ke("Node",["mathWithTransform"],n=>{var{mathWithTransform:e}=n;return class r{get type(){return"Node"}get isNode(){return!0}evaluate(a){return this.compile().evaluate(a)}compile(){var a=this._compile(e,{}),l={};return{evaluate:function h(p){var y=mw(p);return function t(i){for(var a of[...xG])if(i.has(a))throw new Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword')}(y),a(y,l,null)}}}_compile(a,l){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(a){throw new Error("Cannot run forEach on a Node interface")}map(a){throw new Error("Cannot run map on a Node interface")}_ifNode(a){if(!So(a))throw new TypeError("Callback function must return a Node");return a}traverse(a){a(this,null,null),function l(d,h){d.forEach(function(p,y,S){h(p,y,S),l(p,h)})}(this,a)}transform(a){return function l(d,h,p){var y=a(d,h,p);return y!==d?y:d.map(l)}(this,null,null)}filter(a){var l=[];return this.traverse(function(d,h,p){a(d,h,p)&&l.push(d)}),l}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(a){return a.cloneDeep()})}equals(a){return!!a&&(this.type===a.type&&ay(this,a))}toString(a){var l=this._getCustomString(a);return typeof l<"u"?l:this._toString(a)}_toString(){throw new Error("_toString not implemented for "+this.type)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(a){var l=this._getCustomString(a);return typeof l<"u"?l:this._toHTML(a)}_toHTML(){throw new Error("_toHTML not implemented for "+this.type)}toTex(a){var l=this._getCustomString(a);return typeof l<"u"?l:this._toTex(a)}_toTex(a){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(a){if(a&&"object"==typeof a)switch(typeof a.handler){case"object":case"undefined":return;case"function":return a.handler(this,a);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}},{isClass:!0,isNode:!0});function RA(n){return(RA="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 xve(n){var e=function _ve(n,e){if("object"!=RA(n)||!n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!=RA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"==RA(e)?e:e+""}function hs(n,e,t){return(e=xve(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function wr(n){return"boolean"==typeof n||!!isFinite(n)&&n===Math.round(n)}var Hg=Math.sign||function(n){return n>0?1:n<0?-1:0},wve=Math.log2||function(e){return Math.log(e)/Math.LN2},Cve=Math.log10||function(e){return Math.log(e)/Math.LN10},IG=Math.log1p||function(n){return Math.log(n+1)},kve=Math.cbrt||function(e){if(0===e)return e;var r,t=e<0;return t&&(e=-e),isFinite(e)?r=(e/((r=Math.exp(Math.log(e)/3))*r)+2*r)/3:r=e,t?-r:r},Eve=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function dB(n,e,t){var i={2:"0b",8:"0o",16:"0x"}[e],a="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!wr(t))throw new Error("size must be an integer");if(n>2**(t-1)-1||n<-(2**(t-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!wr(n))throw new Error("Value must be an integer");n<0&&(n+=2**t),a="i".concat(t)}var l="";return n<0&&(n=-n,l="-"),"".concat(l).concat(i).concat(n.toString(e)).concat(a)}function sy(n,e){if("function"==typeof e)return e(n);if(n===1/0)return"Infinity";if(n===-1/0)return"-Infinity";if(isNaN(n))return"NaN";var{notation:t,precision:r,wordSize:i}=NG(e);switch(t){case"fixed":return OG(n,r);case"exponential":return RG(n,r);case"engineering":return function Sve(n,e){if(isNaN(n)||!isFinite(n))return String(n);var t=FA(n),r=Q5(t,e),i=r.exponent,a=r.coefficients,l=i%3==0?i:i<0?i-3-i%3:i-i%3;if(wi(e))for(;e>a.length||i-l+1>a.length;)a.push(0);else for(var d=Math.abs(i-l)-(a.length-1),h=0;h0;)y++,p--;var S=a.slice(y).join(""),R=wi(e)&&S.length||S.match(/[1-9]/)?"."+S:"",B=a.slice(0,y).join("")+R+"e"+(i>=0?"+":"")+l.toString();return r.sign+B}(n,r);case"bin":return dB(n,2,i);case"oct":return dB(n,8,i);case"hex":return dB(n,16,i);case"auto":return function Ave(n,e,t){if(isNaN(n)||!isFinite(n))return String(n);var r=LG(t?.lowerExp,-3),i=LG(t?.upperExp,5),a=FA(n),l=e?Q5(a,e):a;if(l.exponent=i)return RG(n,e);var d=l.coefficients,h=l.exponent;d.length0?h:0;return p{throw new Error('Option "precision" must be a number or BigNumber')})),void 0!==n.wordSize&&(r=BG(n.wordSize,()=>{throw new Error('Option "wordSize" must be a number or BigNumber')})),n.notation&&(e=n.notation)}return{notation:e,precision:t,wordSize:r}}function FA(n){var e=String(n).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!e)throw new SyntaxError("Invalid number "+n);var t=e[1],r=e[2],i=parseFloat(e[4]||"0"),a=r.indexOf(".");i+=-1!==a?a-1:r.length-1;var l=r.replace(".","").replace(/^0*/,function(d){return i-=d.length,""}).replace(/0*$/,"").split("").map(function(d){return parseInt(d)});return 0===l.length&&(l.push(0),i++),{sign:t,coefficients:l,exponent:i}}function OG(n,e){if(isNaN(n)||!isFinite(n))return String(n);var t=FA(n),r="number"==typeof e?Q5(t,t.exponent+1+e):t,i=r.coefficients,a=r.exponent+1,l=a+(e||0);return i.length0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function Q5(n,e){for(var t={sign:n.sign,coefficients:n.coefficients,exponent:n.exponent},r=t.coefficients;e<=0;)r.unshift(0),t.exponent++,e++;if(r.length>e&&r.splice(e,r.length-e)[0]>=5){var a=e-1;for(r[a]++;10===r[a];)r.pop(),0===a&&(r.unshift(0),t.exponent++,a++),r[--a]++}return t}function gw(n){for(var e=[],t=0;t=0?"+":"")+r.toString()}(n,r);case"bin":return uB(n,2,i);case"oct":return uB(n,8,i);case"hex":return uB(n,16,i);case"auto":var a=VG(e?.lowerExp,-3),l=VG(e?.upperExp,5);if(n.isZero())return"0";var h=n.toSignificantDigits(r),p=h.e;return(p>=a&&pbw(r)+": "+Ti(n[r],e));return"{"+t.join(", ")+"}"}return String(n)}(n,e);return e&&"object"==typeof e&&"truncate"in e&&t.length>e.truncate?t.substring(0,e.truncate-3)+"...":t}function bw(n){for(var e=String(n),t="",r=0;r/g,">")}function jG(n,e){if(Array.isArray(n)){for(var t="[",r=n.length,i=0;ie?1:-1}var J5="ObjectNode",jve=Ke(J5,["Node"],n=>{var{Node:e}=n;class t extends e{constructor(i){if(super(),this.properties=i||{},i&&("object"!=typeof i||!Object.keys(i).every(function(a){return So(i[a])})))throw new TypeError("Object containing Nodes expected")}get type(){return J5}get isObjectNode(){return!0}_compile(i,a){var l={};for(var d in this.properties)if(br(this.properties,d)){var h=bw(d),p=JSON.parse(h),y=Xl(this.properties,d);l[p]=y._compile(i,a)}return function(R,B,q){var V={};for(var ee in l)br(l,ee)&&(V[ee]=l[ee](R,B,q));return V}}forEach(i){for(var a in this.properties)br(this.properties,a)&&i(this.properties[a],"properties["+bw(a)+"]",this)}map(i){var a={};for(var l in this.properties)br(this.properties,l)&&(a[l]=this._ifNode(i(this.properties[l],"properties["+bw(l)+"]",this)));return new t(a)}clone(){var i={};for(var a in this.properties)br(this.properties,a)&&(i[a]=this.properties[a]);return new t(i)}_toString(i){var a=[];for(var l in this.properties)br(this.properties,l)&&a.push(bw(l)+": "+this.properties[l].toString(i));return"{"+a.join(", ")+"}"}toJSON(){return{mathjs:J5,properties:this.properties}}static fromJSON(i){return new t(i.properties)}_toHTML(i){var a=[];for(var l in this.properties)br(this.properties,l)&&a.push(''+Bd(l)+':'+this.properties[l].toHTML(i));return'{'+a.join(',')+'}'}_toTex(i){var a=[];for(var l in this.properties)br(this.properties,l)&&a.push("\\mathbf{"+l+":} & "+this.properties[l].toTex(i)+"\\\\");return"\\left\\{\\begin{array}{ll}"+a.join("\n")+"\\end{array}\\right\\}"}}return hs(t,"name",J5),t},{isClass:!0,isNode:!0});function Ii(n,e,t){if(!(this instanceof Ii))throw new SyntaxError("Constructor must be called with the new operator");this.actual=n,this.expected=e,this.relation=t,this.message="Dimension mismatch ("+(Array.isArray(n)?"["+n.join(", ")+"]":n)+" "+(this.relation||"!=")+" "+(Array.isArray(e)?"["+e.join(", ")+"]":e)+")",this.stack=(new Error).stack}function Ru(n,e,t){if(!(this instanceof Ru))throw new SyntaxError("Constructor must be called with the new operator");this.index=n,arguments.length<3?(this.min=0,this.max=e):(this.min=e,this.max=t),void 0!==this.min&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}function hi(n){for(var e=[];Array.isArray(n);)e.push(n.length),n=n[0];return e}function UG(n,e,t){var r,i=n.length;if(i!==e[t])throw new Ii(i,e[t]);if(t")}function HG(n,e){if(0===e.length){if(Array.isArray(n))throw new Ii(n.length,0)}else UG(n,e,0)}function e8(n,e){var t=n.isMatrix?n._size:hi(n);e._sourceSize.forEach((i,a)=>{if(null!==i&&i!==t[a])throw new Ii(i,t[a])})}function Oo(n,e){if(void 0!==n){if(!wi(n)||!wr(n))throw new TypeError("Index must be an integer (value: "+n+")");if(n<0||"number"==typeof e&&n>=e)throw new Ru(n,e)}}function vw(n){for(var e=0;e=0){if(!(e%t==0))throw new Error("Could not replace wildcard, since "+e+" is no multiple of "+-t);r[a]=-e/t}return r}function $G(n){return n.reduce((e,t)=>e*t,1)}function t8(n,e){for(var t=e||hi(n);Array.isArray(n)&&1===n.length;)n=n[0],t.shift();for(var r=t.length;1===t[r-1];)r--;return re.test(t))}function KG(n,e){return Array.prototype.join.call(n,e)}function _w(n){if(!Array.isArray(n))throw new TypeError("Array input expected");if(0===n.length)return n;var e=[],t=0;e[0]={value:n[0],identifier:0};for(var r=1;r1)return n.slice(1).reduce(function(t,r){return ZG(t,r,e,0)},n[0]);throw new Error("Wrong number of arguments in function concat")}function JG(){for(var n=arguments.length,e=new Array(n),t=0;tR.length),i=Math.max(...r),a=new Array(i).fill(null),l=0;la[y]&&(a[y]=d[p])}for(var S=0;S1||n[i]>e[a])throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(n,") not possible to broadcast dimension ").concat(r," with size ").concat(n[i]," to size ").concat(e[a]))}}function gB(n,e){var t=hi(n);if(ay(t,e))return n;o8(t,e);var r=JG(t,e),i=r.length,a=[...Array(i-t.length).fill(1),...t],l=function $ve(n){return us([],n)}(n);t.length",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function a8(n,e){if(!e||"auto"!==e)return n;for(var t=n;Op(t);)t=t.content;return t}function Ro(n,e,t,r){var i=n;"keep"!==e&&(i=n.getContent());for(var a=i.getIdentifier(),l=null,d=0;d>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},eX={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(io.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(io.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(io.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(io.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(io.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(io.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(io.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(io.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(io.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(io.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(io.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(io.bitAnd,"${args[1]}\\right)")},bitNot:{1:io.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(io.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(io.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(io.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(io.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(io.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(io.and,"${args[1]}\\right)")},not:{1:io.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(io.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(io.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(io.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(io.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(io.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(io.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(io.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(io.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(io.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(io.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(io.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(io.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(io.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(vB.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},tX={deg:"^\\circ"};function yB(n){return Gve(n,{preserveFormatting:!0})}function nX(n,e){return(e=!(typeof e>"u")&&e)?br(tX,n)?tX[n]:"\\mathrm{"+yB(n)+"}":br(vB,n)?vB[n]:yB(n)}var s8="OperatorNode",Kve=Ke(s8,["Node"],n=>{var{Node:e}=n;function t(a,l){var d=a;if("auto"===l)for(;Op(d);)d=d.content;return!!Zi(d)||!!Qa(d)&&t(d.args[0],l)}function r(a,l,d,h,p){var R,y=Ro(a,l,d),S=LA(a,l);if("all"===l||h.length>2&&"OperatorNode:add"!==a.getIdentifier()&&"OperatorNode:multiply"!==a.getIdentifier())return h.map(function(_e){switch(_e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});switch(h.length){case 0:R=[];break;case 1:var B=Ro(h[0],l,d,a);if(p&&null!==B){var q,V;if("keep"===l?(q=h[0].getIdentifier(),V=a.getIdentifier()):(q=h[0].getContent().getIdentifier(),V=a.getContent().getIdentifier()),!1===Fu[y][V].latexLeftParens){R=[!1];break}if(!1===Fu[B][q].latexParens){R=[!1];break}}if(null===B){R=[!1];break}if(B<=y){R=[!0];break}R=[!1];break;case 2:var ee,ne=Ro(h[0],l,d,a),he=bB(a,h[0],l);ee=null!==ne&&(ne===y&&"right"===S&&!he||ne=2&&"OperatorNode:multiply"===a.getIdentifier()&&a.implicit&&"all"!==l&&"hide"===d)for(var Ce=1;Ce2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var ee=p.map(function(ne,he){return ne=ne.toString(l),y[he]&&(ne="("+ne+")"),ne});return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===h?ee.join(" "):ee.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:s8,op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(l){return new i(l.op,l.fn,l.args,l.implicit,l.isPercentage)}_toHTML(l){var d=l&&l.parenthesis?l.parenthesis:"keep",h=l&&l.implicit?l.implicit:"hide",p=this.args,y=r(this,d,h,p,!1);if(1===p.length){var S=LA(this,d),R=p[0].toHTML(l);return y[0]&&(R='('+R+')'),"right"===S?''+Bd(this.op)+""+R:R+''+Bd(this.op)+""}if(2===p.length){var B=p[0].toHTML(l),q=p[1].toHTML(l);return y[0]&&(B='('+B+')'),y[1]&&(q='('+q+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===h?B+''+q:B+''+Bd(this.op)+""+q}var V=p.map(function(ee,ne){return ee=ee.toHTML(l),y[ne]&&(ee='('+ee+')'),ee});return p.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===h?V.join(''):V.join(''+Bd(this.op)+""):''+Bd(this.fn)+'('+V.join(',')+')'}_toTex(l){var d=l&&l.parenthesis?l.parenthesis:"keep",h=l&&l.implicit?l.implicit:"hide",p=this.args,y=r(this,d,h,p,!0),S=io[this.fn];if(S=typeof S>"u"?this.op:S,1===p.length){var R=LA(this,d),B=p[0].toTex(l);return y[0]&&(B="\\left(".concat(B,"\\right)")),"right"===R?S+B:B+S}if(2===p.length){var q=p[0],V=q.toTex(l);y[0]&&(V="\\left(".concat(V,"\\right)"));var he,ne=p[1].toTex(l);switch(y[1]&&(ne="\\left(".concat(ne,"\\right)")),he="keep"===d?q.getIdentifier():q.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return S+"{"+V+"}{"+ne+"}";case"OperatorNode:pow":switch(V="{"+V+"}",ne="{"+ne+"}",he){case"ConditionalNode":case"OperatorNode:divide":V="\\left(".concat(V,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===h)return V+"~"+ne}return V+S+ne}if(p.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var re=p.map(function(ce,pe){return ce=ce.toTex(l),y[pe]&&(ce="\\left(".concat(ce,"\\right)")),ce});return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit&&"hide"===h?re.join("~"):re.join(S)}return"\\mathrm{"+this.fn+"}\\left("+p.map(function(ce){return ce.toTex(l)}).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return hs(i,"name",s8),i},{isClass:!0,isNode:!0}),l8="ParenthesisNode",Qve=Ke(l8,["Node"],n=>{var{Node:e}=n;class t extends e{constructor(i){if(super(),!So(i))throw new TypeError('Node expected for parameter "content"');this.content=i}get type(){return l8}get isParenthesisNode(){return!0}_compile(i,a){return this.content._compile(i,a)}getContent(){return this.content.getContent()}forEach(i){i(this.content,"content",this)}map(i){var a=i(this.content,"content",this);return new t(a)}clone(){return new t(this.content)}_toString(i){return!i||i&&!i.parenthesis||i&&"keep"===i.parenthesis?"("+this.content.toString(i)+")":this.content.toString(i)}toJSON(){return{mathjs:l8,content:this.content}}static fromJSON(i){return new t(i.content)}_toHTML(i){return!i||i&&!i.parenthesis||i&&"keep"===i.parenthesis?'('+this.content.toHTML(i)+')':this.content.toHTML(i)}_toTex(i){return!i||i&&!i.parenthesis||i&&"keep"===i.parenthesis?"\\left(".concat(this.content.toTex(i),"\\right)"):this.content.toTex(i)}}return hs(t,"name",l8),t},{isClass:!0,isNode:!0}),c8="RelationalNode",e0e=Ke(c8,["Node"],n=>{var{Node:e}=n,t={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class r extends e{constructor(a,l){if(super(),!Array.isArray(a))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(l))throw new TypeError("Parameter params must be an array");if(a.length!==l.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=a,this.params=l}get type(){return c8}get isRelationalNode(){return!0}_compile(a,l){var d=this,h=this.params.map(p=>p._compile(a,l));return function(y,S,R){for(var B,q=h[0](y,S,R),V=0;Va(l,"params["+d+"]",this),this)}map(a){return new r(this.conditionals.slice(),this.params.map((l,d)=>this._ifNode(a(l,"params["+d+"]",this)),this))}clone(){return new r(this.conditionals,this.params)}_toString(a){for(var l=a&&a.parenthesis?a.parenthesis:"keep",d=Ro(this,l,a&&a.implicit),h=this.params.map(function(S,R){var B=Ro(S,l,a&&a.implicit);return"all"===l||null!==B&&B<=d?"("+S.toString(a)+")":S.toString(a)}),p=h[0],y=0;y('+S.toHTML(a)+')':S.toHTML(a)}),p=h[0],y=0;y'+Bd(t[this.conditionals[y]])+""+h[y+1];return p}_toTex(a){for(var l=a&&a.parenthesis?a.parenthesis:"keep",d=Ro(this,l,a&&a.implicit),h=this.params.map(function(S,R){var B=Ro(S,l,a&&a.implicit);return"all"===l||null!==B&&B<=d?"\\left("+S.toTex(a)+"\right)":S.toTex(a)}),p=h[0],y=0;y{var{Node:e}=n;class t extends e{constructor(i){if(super(),this.items=i||[],!Array.isArray(this.items)||!this.items.every(So))throw new TypeError("Array containing Nodes expected")}get type(){return d8}get isArrayNode(){return!0}_compile(i,a){var l=Rp(this.items,function(p){return p._compile(i,a)});if("Array"!==i.config.matrix){var h=i.matrix;return function(y,S,R){return h(Rp(l,function(B){return B(y,S,R)}))}}return function(y,S,R){return Rp(l,function(B){return B(y,S,R)})}}forEach(i){for(var a=0;a['+this.items.map(function(l){return l.toHTML(i)}).join(',')+']'}_toTex(i){return function a(l,d){var h=l.some(Pd)&&!l.every(Pd),p=d||h,y=p?"&":"\\\\",S=l.map(function(R){return R.items?a(R.items,!d):R.toTex(i)}).join(y);return h||!p||p&&!d?"\\begin{bmatrix}"+S+"\\end{bmatrix}":S}(this.items,!1)}}return hs(t,"name",d8),t},{isClass:!0,isNode:!0}),u8="BlockNode",i0e=Ke(u8,["ResultSet","Node"],n=>{var{ResultSet:e,Node:t}=n;class r extends t{constructor(a){if(super(),!Array.isArray(a))throw new Error("Array expected");this.blocks=a.map(function(l){var d=l&&l.node,h=!l||void 0===l.visible||l.visible;if(!So(d))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof h)throw new TypeError('Property "visible" must be a boolean');return{node:d,visible:h}})}get type(){return u8}get isBlockNode(){return!0}_compile(a,l){var d=Rp(this.blocks,function(h){return{evaluate:h.node._compile(a,l),visible:h.visible}});return function(p,y,S){var R=[];return n8(d,function(q){var V=q.evaluate(p,y,S);q.visible&&R.push(V)}),new e(R)}}forEach(a){for(var l=0;l;')}).join('
')}_toTex(a){return this.blocks.map(function(l){return l.node.toTex(a)+(l.visible?"":";")}).join("\\;\\;\n")}}return hs(r,"name",u8),r},{isClass:!0,isNode:!0}),h8="ConditionalNode",a0e=Ke(h8,["Node"],n=>{var{Node:e}=n;class r extends e{constructor(a,l,d){if(super(),!So(a))throw new TypeError("Parameter condition must be a Node");if(!So(l))throw new TypeError("Parameter trueExpr must be a Node");if(!So(d))throw new TypeError("Parameter falseExpr must be a Node");this.condition=a,this.trueExpr=l,this.falseExpr=d}get type(){return h8}get isConditionalNode(){return!0}_compile(a,l){var d=this.condition._compile(a,l),h=this.trueExpr._compile(a,l),p=this.falseExpr._compile(a,l);return function(S,R,B){return function t(i){if("number"==typeof i||"boolean"==typeof i||"string"==typeof i)return!!i;if(i){if(Ci(i))return!i.isZero();if(Np(i))return!(!i.re&&!i.im);if(Rd(i))return!!i.value}if(null==i)return!1;throw new TypeError('Unsupported type of condition "'+No(i)+'"')}(d(S,R,B))?h(S,R,B):p(S,R,B)}}forEach(a){a(this.condition,"condition",this),a(this.trueExpr,"trueExpr",this),a(this.falseExpr,"falseExpr",this)}map(a){return new r(this._ifNode(a(this.condition,"condition",this)),this._ifNode(a(this.trueExpr,"trueExpr",this)),this._ifNode(a(this.falseExpr,"falseExpr",this)))}clone(){return new r(this.condition,this.trueExpr,this.falseExpr)}_toString(a){var l=a&&a.parenthesis?a.parenthesis:"keep",d=Ro(this,l,a&&a.implicit),h=this.condition.toString(a),p=Ro(this.condition,l,a&&a.implicit);("all"===l||"OperatorNode"===this.condition.type||null!==p&&p<=d)&&(h="("+h+")");var y=this.trueExpr.toString(a),S=Ro(this.trueExpr,l,a&&a.implicit);("all"===l||"OperatorNode"===this.trueExpr.type||null!==S&&S<=d)&&(y="("+y+")");var R=this.falseExpr.toString(a),B=Ro(this.falseExpr,l,a&&a.implicit);return("all"===l||"OperatorNode"===this.falseExpr.type||null!==B&&B<=d)&&(R="("+R+")"),h+" ? "+y+" : "+R}toJSON(){return{mathjs:h8,condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(a){return new r(a.condition,a.trueExpr,a.falseExpr)}_toHTML(a){var l=a&&a.parenthesis?a.parenthesis:"keep",d=Ro(this,l,a&&a.implicit),h=this.condition.toHTML(a),p=Ro(this.condition,l,a&&a.implicit);("all"===l||"OperatorNode"===this.condition.type||null!==p&&p<=d)&&(h='('+h+')');var y=this.trueExpr.toHTML(a),S=Ro(this.trueExpr,l,a&&a.implicit);("all"===l||"OperatorNode"===this.trueExpr.type||null!==S&&S<=d)&&(y='('+y+')');var R=this.falseExpr.toHTML(a),B=Ro(this.falseExpr,l,a&&a.implicit);return("all"===l||"OperatorNode"===this.falseExpr.type||null!==B&&B<=d)&&(R='('+R+')'),h+'?'+y+':'+R}_toTex(a){return"\\begin{cases} {"+this.trueExpr.toTex(a)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(a)+"}\\\\{"+this.falseExpr.toTex(a)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return hs(r,"name",h8),r},{isClass:!0,isNode:!0}),f8="ConstantNode",l0e=Ke(f8,["Node"],n=>{var{Node:e}=n;class t extends e{constructor(i){super(),this.value=i}get type(){return f8}get isConstantNode(){return!0}_compile(i,a){var l=this.value;return function(){return l}}forEach(i){}map(i){return this.clone()}clone(){return new t(this.value)}_toString(i){return Ti(this.value,i)}_toHTML(i){var a=this._toString(i);switch(No(this.value)){case"number":case"BigNumber":case"Fraction":return''+a+"";case"string":return''+a+"";case"boolean":return''+a+"";case"null":return''+a+"";case"undefined":return''+a+"";default:return''+a+""}}toJSON(){return{mathjs:f8,value:this.value}}static fromJSON(i){return new t(i.value)}_toTex(i){var a=this._toString(i),l=No(this.value);switch(l){case"string":return"\\mathtt{"+yB(a)+"}";case"number":case"BigNumber":if(!("BigNumber"===l?this.value.isFinite():isFinite(this.value)))return this.value.valueOf()<0?"-\\infty":"\\infty";var h=a.toLowerCase().indexOf("e");return-1!==h?a.substring(0,h)+"\\cdot10^{"+a.substring(h+1)+"}":a;case"Fraction":return this.value.toLatex();default:return a}}}return hs(t,"name",f8),t},{isClass:!0,isNode:!0}),p8="RangeNode",d0e=Ke(p8,["Node"],n=>{var{Node:e}=n;function t(i,a,l){var d=Ro(i,a,l),h={},p=Ro(i.start,a,l);if(h.start=null!==p&&p<=d||"all"===a,i.step){var y=Ro(i.step,a,l);h.step=null!==y&&y<=d||"all"===a}var S=Ro(i.end,a,l);return h.end=null!==S&&S<=d||"all"===a,h}class r extends e{constructor(a,l,d){if(super(),!So(a))throw new TypeError("Node expected");if(!So(l))throw new TypeError("Node expected");if(d&&!So(d))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=a,this.end=l,this.step=d||null}get type(){return p8}get isRangeNode(){return!0}needsEnd(){return this.filter(function(l){return Ds(l)&&"end"===l.name}).length>0}_compile(a,l){var d=a.range,h=this.start._compile(a,l),p=this.end._compile(a,l);if(this.step){var y=this.step._compile(a,l);return function(R,B,q){return d(h(R,B,q),p(R,B,q),y(R,B,q))}}return function(R,B,q){return d(h(R,B,q),p(R,B,q))}}forEach(a){a(this.start,"start",this),a(this.end,"end",this),this.step&&a(this.step,"step",this)}map(a){return new r(this._ifNode(a(this.start,"start",this)),this._ifNode(a(this.end,"end",this)),this.step&&this._ifNode(a(this.step,"step",this)))}clone(){return new r(this.start,this.end,this.step&&this.step)}_toString(a){var h,d=t(this,a&&a.parenthesis?a.parenthesis:"keep",a&&a.implicit),p=this.start.toString(a);if(d.start&&(p="("+p+")"),h=p,this.step){var y=this.step.toString(a);d.step&&(y="("+y+")"),h+=":"+y}var S=this.end.toString(a);return d.end&&(S="("+S+")"),h+=":"+S}toJSON(){return{mathjs:p8,start:this.start,end:this.end,step:this.step}}static fromJSON(a){return new r(a.start,a.end,a.step)}_toHTML(a){var h,d=t(this,a&&a.parenthesis?a.parenthesis:"keep",a&&a.implicit),p=this.start.toHTML(a);if(d.start&&(p='('+p+')'),h=p,this.step){var y=this.step.toHTML(a);d.step&&(y='('+y+')'),h+=':'+y}var S=this.end.toHTML(a);return d.end&&(S='('+S+')'),h+=':'+S}_toTex(a){var d=t(this,a&&a.parenthesis?a.parenthesis:"keep",a&&a.implicit),h=this.start.toTex(a);if(d.start&&(h="\\left(".concat(h,"\\right)")),this.step){var p=this.step.toTex(a);d.step&&(p="\\left(".concat(p,"\\right)")),h+=":"+p}var y=this.end.toTex(a);return d.end&&(y="\\left(".concat(y,"\\right)")),h+=":"+y}}return hs(r,"name",p8),r},{isClass:!0,isNode:!0}),f0e=Ke("reviver",["classes"],n=>{var{classes:e}=n;return function(r,i){var a=e[i&&i.mathjs];return a&&"function"==typeof a.fromJSON?a.fromJSON(i):i}}),g0e=Ke("Chain",["?on","math","typed"],n=>{var{on:e,math:t,typed:r}=n;function i(p){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");_G(p)?this.value=p.value:this.value=p}function l(p,y){!function ove(n,e,t){var i,r=!0;Object.defineProperty(n,e,{get:function(){return r&&(i=t(),r=!1),i},set:function(l){i=l,r=!1},configurable:!0,enumerable:!0})}(i.prototype,p,function(){var R=y();if("function"==typeof R)return d(R)})}function d(p){return function(){if(0===arguments.length)return new i(p(this.value));for(var y=[this.value],S=0;Sp[q])};for(var R in p)S(R)}};var h={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return i.createProxy(t),e&&e("import",function(p,y,S){S||l(p,y)}),i},{isClass:!0}),m8="FunctionAssignmentNode",v0e=Ke(m8,["typed","Node"],n=>{var{typed:e,Node:t}=n;function r(a,l,d){var h=Ro(a,l,d),p=Ro(a.expr,l,d);return"all"===l||null!==p&&p<=h}class i extends t{constructor(l,d,h){if(super(),"string"!=typeof l)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(d))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!So(h))throw new TypeError('Node expected for parameter "expr"');if(xG.has(l))throw new Error('Illegal function name, "'+l+'" is a reserved keyword');var p=new Set;for(var y of d){var S="string"==typeof y?y:y.name;if(p.has(S))throw new Error('Duplicate parameter name "'.concat(S,'"'));p.add(S)}this.name=l,this.params=d.map(function(R){return R&&R.name||R}),this.types=d.map(function(R){return R&&R.type||"any"}),this.expr=h}get type(){return m8}get isFunctionAssignmentNode(){return!0}_compile(l,d){var h=Object.create(d);n8(this.params,function(q){h[q]=!0});var p=this.expr._compile(l,h),y=this.name,S=this.params,R=KG(this.types,","),B=y+"("+KG(this.params,", ")+")";return function(V,ee,ne){var he={};he[R]=function(){for(var ce=Object.create(ee),pe=0;pe'+Bd(this.params[p])+"");var y=this.expr.toHTML(l);return r(this,d,l&&l.implicit)&&(y='('+y+')'),''+Bd(this.name)+'('+h.join(',')+')='+y}_toTex(l){var d=l&&l.parenthesis?l.parenthesis:"keep",h=this.expr.toTex(l);return r(this,d,l&&l.implicit)&&(h="\\left(".concat(h,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(nX).join(",")+"\\right)="+h}}return hs(i,"name",m8),i},{isClass:!0,isNode:!0}),_0e=Ke("chain",["typed","Chain"],n=>{var{typed:e,Chain:t}=n;return e("chain",{"":function(){return new t},any:function(i){return new t(i)}})}),g8="IndexNode",w0e=Ke(g8,["Node","size"],n=>{var{Node:e,size:t}=n;class r extends e{constructor(a,l){if(super(),this.dimensions=a,this.dotNotation=l||!1,!Array.isArray(a)||!a.every(So))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return g8}get isIndexNode(){return!0}_compile(a,l){var d=Rp(this.dimensions,function(p,y){if(p.filter(q=>q.isSymbolNode&&"end"===q.name).length>0){var R=Object.create(l);R.end=!0;var B=p._compile(a,R);return function(V,ee,ne){if(!Ur(ne)&&!fo(ne)&&!vl(ne))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+No(ne));var he=t(ne).valueOf(),re=Object.create(ee);return re.end=he[y],B(V,re,ne)}}return p._compile(a,l)}),h=Xl(a,"index");return function(y,S,R){var B=Rp(d,function(q){return q(y,S,R)});return h(...B)}}forEach(a){for(var l=0;l.'+Bd(this.getObjectProperty())+"":'['+l.join(',')+']'}_toTex(a){var l=this.dimensions.map(function(d){return d.toTex(a)});return this.dotNotation?"."+this.getObjectProperty():"_{"+l.join(",")+"}"}}return hs(r,"name",g8),r},{isClass:!0,isNode:!0});function Kl(n){return n&&n.isIndexError?new Ru(n.index+1,n.min+1,void 0!==n.max?n.max+1:void 0):n}function iX(n){var{subset:e}=n;return function(r,i){try{if(Array.isArray(r))return e(r,i);if(r&&"function"==typeof r.subset)return r.subset(i);if("string"==typeof r)return e(r,i);if("object"==typeof r){if(!i.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return Xl(r,i.getObjectProperty())}throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw Kl(a)}}}var b8="AccessorNode",k0e=Ke(b8,["subset","Node"],n=>{var{subset:e,Node:t}=n,r=iX({subset:e});function i(l){return!(oy(l)||Pd(l)||Zi(l)||Ug(l)||K5(l)||Op(l)||Ds(l))}class a extends t{constructor(d,h){if(super(),!So(d))throw new TypeError('Node expected for parameter "object"');if(!fw(h))throw new TypeError('IndexNode expected for parameter "index"');this.object=d,this.index=h}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return b8}get isAccessorNode(){return!0}_compile(d,h){var p=this.object._compile(d,h),y=this.index._compile(d,h);if(this.index.isObjectProperty()){var S=this.index.getObjectProperty();return function(B,q,V){return Xl(p(B,q,V),S)}}return function(B,q,V){var ee=p(B,q,V),ne=y(B,q,ee);return r(ee,ne)}}forEach(d){d(this.object,"object",this),d(this.index,"index",this)}map(d){return new a(this._ifNode(d(this.object,"object",this)),this._ifNode(d(this.index,"index",this)))}clone(){return new a(this.object,this.index)}_toString(d){var h=this.object.toString(d);return i(this.object)&&(h="("+h+")"),h+this.index.toString(d)}_toHTML(d){var h=this.object.toHTML(d);return i(this.object)&&(h='('+h+')'),h+this.index.toHTML(d)}_toTex(d){var h=this.object.toTex(d);return i(this.object)&&(h="\\left(' + object + '\\right)"),h+this.index.toTex(d)}toJSON(){return{mathjs:b8,object:this.object,index:this.index}}static fromJSON(d){return new a(d.object,d.index)}}return hs(a,"name",b8),a},{isClass:!0,isNode:!0});var v8="AssignmentNode",A0e=Ke(v8,["subset","?matrix","Node"],n=>{var{subset:e,matrix:t,Node:r}=n,i=iX({subset:e}),a=function E0e(n){var{subset:e,matrix:t}=n;return function(i,a,l){try{if(Array.isArray(i))return t(i).subset(a,l).valueOf().forEach((h,p)=>{i[p]=h}),i;if(i&&"function"==typeof i.subset)return i.subset(a,l);if("string"==typeof i)return e(i,a,l);if("object"==typeof i){if(!a.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return pw(i,a.getObjectProperty(),l),i}throw new TypeError("Cannot apply index: unsupported type of object")}catch(h){throw Kl(h)}}}({subset:e,matrix:t});function l(h,p,y){p||(p="keep");var S=Ro(h,p,y),R=Ro(h.value,p,y);return"all"===p||null!==R&&R<=S}class d extends r{constructor(p,y,S){if(super(),this.object=p,this.index=S?y:null,this.value=S||y,!Ds(p)&&!oy(p))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(Ds(p)&&"end"===p.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!fw(this.index))throw new TypeError('IndexNode expected as "index"');if(!So(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return v8}get isAssignmentNode(){return!0}_compile(p,y){var S=this.object._compile(p,y),R=this.index?this.index._compile(p,y):null,B=this.value._compile(p,y),q=this.object.name;if(this.index){if(this.index.isObjectProperty()){var V=this.index.getObjectProperty();return function(ce,pe,oe){var Ae=S(ce,pe,oe),De=B(ce,pe,oe);return pw(Ae,V,De),De}}if(Ds(this.object))return function(ce,pe,oe){var Ae=S(ce,pe,oe),De=B(ce,pe,oe),Ce=R(ce,pe,Ae);return ce.set(q,a(Ae,Ce,De)),De};var ee=this.object.object._compile(p,y);if(this.object.index.isObjectProperty()){var ne=this.object.index.getObjectProperty();return function(ce,pe,oe){var Ae=ee(ce,pe,oe),De=Xl(Ae,ne),Ce=R(ce,pe,De),_e=B(ce,pe,oe);return pw(Ae,ne,a(De,Ce,_e)),_e}}var he=this.object.index._compile(p,y);return function(ce,pe,oe){var Ae=ee(ce,pe,oe),De=he(ce,pe,Ae),Ce=i(Ae,De),_e=R(ce,pe,Ce),Re=B(ce,pe,oe);return a(Ae,De,a(Ce,_e,Re)),Re}}if(!Ds(this.object))throw new TypeError("SymbolNode expected as object");return function(ce,pe,oe){var Ae=B(ce,pe,oe);return ce.set(q,Ae),Ae}}forEach(p){p(this.object,"object",this),this.index&&p(this.index,"index",this),p(this.value,"value",this)}map(p){var y=this._ifNode(p(this.object,"object",this)),S=this.index?this._ifNode(p(this.index,"index",this)):null,R=this._ifNode(p(this.value,"value",this));return new d(y,S,R)}clone(){return new d(this.object,this.index,this.value)}_toString(p){var y=this.object.toString(p),S=this.index?this.index.toString(p):"",R=this.value.toString(p);return l(this,p&&p.parenthesis,p&&p.implicit)&&(R="("+R+")"),y+S+" = "+R}toJSON(){return{mathjs:v8,object:this.object,index:this.index,value:this.value}}static fromJSON(p){return new d(p.object,p.index,p.value)}_toHTML(p){var y=this.object.toHTML(p),S=this.index?this.index.toHTML(p):"",R=this.value.toHTML(p);return l(this,p&&p.parenthesis,p&&p.implicit)&&(R='('+R+')'),y+S+'='+R}_toTex(p){var y=this.object.toTex(p),S=this.index?this.index.toTex(p):"",R=this.value.toTex(p);return l(this,p&&p.parenthesis,p&&p.implicit)&&(R="\\left(".concat(R,"\\right)")),y+S+"="+R}}return hs(d,"name",v8),d},{isClass:!0,isNode:!0}),T0e=Ke("SymbolNode",["math","?Unit","Node"],n=>{var{math:e,Unit:t,Node:r}=n;function i(l){return!!t&&t.isValuelessUnit(l)}class a extends r{constructor(d){if(super(),"string"!=typeof d)throw new TypeError('String expected for parameter "name"');this.name=d}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(d,h){var p=this.name;if(!0===h[p])return function(S,R,B){return Xl(R,p)};if(p in d)return function(S,R,B){return S.has(p)?S.get(p):Xl(d,p)};var y=i(p);return function(S,R,B){return S.has(p)?S.get(p):y?new t(null,p):a.onUndefinedSymbol(p)}}forEach(d){}map(d){return this.clone()}static onUndefinedSymbol(d){throw new Error("Undefined symbol "+d)}clone(){return new a(this.name)}_toString(d){return this.name}_toHTML(d){var h=Bd(this.name);return"true"===h||"false"===h?''+h+"":"i"===h?''+h+"":"Infinity"===h?''+h+"":"NaN"===h?''+h+"":"null"===h?''+h+"":"undefined"===h?''+h+"":''+h+""}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(d){return new a(d.name)}_toTex(d){var h=!1;typeof e[this.name]>"u"&&i(this.name)&&(h=!0);var p=nX(this.name,h);return"\\"===p[0]?p:" "+p}}return a},{isClass:!0,isNode:!0}),y8="FunctionNode",N0e=Ke(y8,["math","Node","SymbolNode"],n=>{var e,{math:t,Node:r,SymbolNode:i}=n,a=h=>Ti(h,{truncate:78});function l(h,p,y){for(var q,S="",R=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,B=0;null!==(q=R.exec(h));)if(S+=h.substring(B,q.index),B=q.index,"$$"===q[0])S+="$",B++;else{B+=q[0].length;var V=p[q[1]];if(!V)throw new ReferenceError("Template: Property "+q[1]+" does not exist.");if(void 0===q[2])switch(typeof V){case"string":S+=V;break;case"object":if(So(V))S+=V.toTex(y);else{if(!Array.isArray(V))throw new TypeError("Template: "+q[1]+" has to be a Node, String or array of Nodes");S+=V.map(function(ee,ne){if(So(ee))return ee.toTex(y);throw new TypeError("Template: "+q[1]+"["+ne+"] is not a Node.")}).join(",")}break;default:throw new TypeError("Template: "+q[1]+" has to be a Node, String or array of Nodes")}else{if(!So(V[q[2]]&&V[q[2]]))throw new TypeError("Template: "+q[1]+"["+q[2]+"] is not a Node.");S+=V[q[2]].toTex(y)}}return S+=h.slice(B)}class d extends r{constructor(p,y){if(super(),"string"==typeof p&&(p=new i(p)),!So(p))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(y)||!y.every(So))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=p,this.args=y||[]}get name(){return this.fn.name||""}get type(){return y8}get isFunctionNode(){return!0}_compile(p,y){var S=this.args.map(De=>De._compile(p,y));if(!Ds(this.fn)){if(oy(this.fn)&&fw(this.fn.index)&&this.fn.index.isObjectProperty()){var he=this.fn.object._compile(p,y),re=this.fn.index.getObjectProperty(),ce=this.args;return function(Ce,_e,Re){var Be=he(Ce,_e,Re),Ge=function fve(n,e){if(!lB(n,e))throw new Error('No access to method "'+e+'"');return n[e]}(Be,re);if(null!=Ge&&Ge.rawArgs)return Ge(ce,p,BA(Ce,_e));var Ye=S.map($e=>$e(Ce,_e,Re));return Ge.apply(Be,Ye)}}var pe=this.fn.toString(),oe=this.fn._compile(p,y),Ae=this.args;return function(Ce,_e,Re){var Be=oe(Ce,_e,Re);if("function"!=typeof Be)throw new TypeError("Expression '".concat(pe,"' did not evaluate to a function; value is:")+"\n ".concat(a(Be)));if(Be.rawArgs)return Be(Ae,p,BA(Ce,_e));var Ge=S.map(Ye=>Ye(Ce,_e,Re));return Be.apply(Be,Ge)}}var R=this.fn.name;if(y[R]){var ne=this.args;return function(Ce,_e,Re){var Be=Xl(_e,R);if("function"!=typeof Be)throw new TypeError("Argument '".concat(R,"' was not a function; received: ").concat(a(Be)));if(Be.rawArgs)return Be(ne,p,BA(Ce,_e));var Ge=S.map(Ye=>Ye(Ce,_e,Re));return Be.apply(Be,Ge)}}var B=R in p?Xl(p,R):void 0,q="function"==typeof B&&!0===B.rawArgs,V=De=>{var Ce;if(De.has(R))Ce=De.get(R);else{if(!(R in p))return d.onUndefinedFunction(R);Ce=Xl(p,R)}if("function"==typeof Ce)return Ce;throw new TypeError("'".concat(R,"' is not a function; its value is:\n ").concat(a(Ce)))};if(q){var ee=this.args;return function(Ce,_e,Re){return V(Ce)(ee,p,BA(Ce,_e))}}switch(S.length){case 0:return function(Ce,_e,Re){return V(Ce)()};case 1:return function(Ce,_e,Re){return V(Ce)((0,S[0])(Ce,_e,Re))};case 2:return function(Ce,_e,Re){var Be=V(Ce),Ge=S[0],Ye=S[1];return Be(Ge(Ce,_e,Re),Ye(Ce,_e,Re))};default:return function(Ce,_e,Re){return V(Ce)(...S.map(Ye=>Ye(Ce,_e,Re)))}}}forEach(p){p(this.fn,"fn",this);for(var y=0;y'+Bd(this.fn)+'('+y.join(',')+')'}toTex(p){var y;return p&&"object"==typeof p.handler&&br(p.handler,this.name)&&(y=p.handler[this.name](this,p)),typeof y<"u"?y:super.toTex(p)}_toTex(p){var S,R,y=this.args.map(function(B){return B.toTex(p)});switch(eX[this.name]&&(S=eX[this.name]),t[this.name]&&("function"==typeof t[this.name].toTex||"object"==typeof t[this.name].toTex||"string"==typeof t[this.name].toTex)&&(S=t[this.name].toTex),typeof S){case"function":R=S(this,p);break;case"string":R=l(S,this,p);break;case"object":switch(typeof S[y.length]){case"function":R=S[y.length](this,p);break;case"string":R=l(S[y.length],this,p)}}return typeof R<"u"?R:l("\\mathrm{${name}}\\left(${args}\\right)",this,p)}getIdentifier(){return this.type+":"+this.name}}return e=d,hs(d,"name",y8),hs(d,"onUndefinedFunction",function(h){throw new Error("Undefined function "+h)}),hs(d,"fromJSON",function(h){return new e(h.fn,h.args)}),d},{isClass:!0,isNode:!0});function oX(n){var r,i,e=n.length,t=n[0].length,a=[];for(i=0;i=r.length)throw new Ru(e,r.length);return Ur(n)?n.create(x8(n.valueOf(),e,t)):x8(n,e,t)}function x8(n,e,t){var r,i,a,l;if(e<=0){if(Array.isArray(n[0])){for(l=oX(n),i=[],r=0;r{var{typed:e,numeric:t,config:r,AccessorNode:i,ArrayNode:a,AssignmentNode:l,BlockNode:d,ConditionalNode:h,ConstantNode:p,FunctionAssignmentNode:y,FunctionNode:S,IndexNode:R,ObjectNode:B,OperatorNode:q,ParenthesisNode:V,RangeNode:ee,RelationalNode:ne,SymbolNode:he}=n,re=e("parse",{string:function(_t){return Dt(_t,{})},"Array | Matrix":function(_t){return ce(_t,{})},"string, Object":function(_t,dn){return Dt(_t,void 0!==dn.nodes?dn.nodes:{})},"Array | Matrix, Object":ce});function ce(Fe){var _t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},dn=void 0!==_t.nodes?_t.nodes:{};return Ni(Fe,function(Hn){if("string"!=typeof Hn)throw new TypeError("String expected");return Dt(Hn,dn)})}var pe={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},oe={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},Ae={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},De={true:!0,false:!1,null:null,undefined:void 0},Ce=["NaN","Infinity"],_e={'"':'"',"'":"'","\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function Be(Fe,_t){return Fe.expression.substr(Fe.index,_t)}function Ge(Fe){return Be(Fe,1)}function Ye(Fe){Fe.index++}function $e(Fe){return Fe.expression.charAt(Fe.index-1)}function Oe(Fe){return Fe.expression.charAt(Fe.index+1)}function Ie(Fe){for(Fe.tokenType=pe.NULL,Fe.token="",Fe.comment="";;){if("#"===Ge(Fe))for(;"\n"!==Ge(Fe)&&""!==Ge(Fe);)Fe.comment+=Ge(Fe),Ye(Fe);if(!re.isWhitespace(Ge(Fe),Fe.nestingLevel))break;Ye(Fe)}if(""!==Ge(Fe)){if("\n"===Ge(Fe)&&!Fe.nestingLevel)return Fe.tokenType=pe.DELIMITER,Fe.token=Ge(Fe),void Ye(Fe);var _t=Ge(Fe),dn=Be(Fe,2),Hn=Be(Fe,3);if(3===Hn.length&&oe[Hn])return Fe.tokenType=pe.DELIMITER,Fe.token=Hn,Ye(Fe),Ye(Fe),void Ye(Fe);if(2===dn.length&&oe[dn])return Fe.tokenType=pe.DELIMITER,Fe.token=dn,Ye(Fe),void Ye(Fe);if(oe[_t])return Fe.tokenType=pe.DELIMITER,Fe.token=_t,void Ye(Fe);if(re.isDigitDot(_t)){Fe.tokenType=pe.NUMBER;var gi=Be(Fe,2);if("0b"===gi||"0o"===gi||"0x"===gi){for(Fe.token+=Ge(Fe),Ye(Fe),Fe.token+=Ge(Fe),Ye(Fe);re.isHexDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);if("."===Ge(Fe))for(Fe.token+=".",Ye(Fe);re.isHexDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);else if("i"===Ge(Fe))for(Fe.token+="i",Ye(Fe);re.isDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);return}if("."===Ge(Fe)){if(Fe.token+=Ge(Fe),Ye(Fe),!re.isDigit(Ge(Fe)))return void(Fe.tokenType=pe.DELIMITER)}else{for(;re.isDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);re.isDecimalMark(Ge(Fe),Oe(Fe))&&(Fe.token+=Ge(Fe),Ye(Fe))}for(;re.isDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);if("E"===Ge(Fe)||"e"===Ge(Fe))if(re.isDigit(Oe(Fe))||"-"===Oe(Fe)||"+"===Oe(Fe)){if(Fe.token+=Ge(Fe),Ye(Fe),("+"===Ge(Fe)||"-"===Ge(Fe))&&(Fe.token+=Ge(Fe),Ye(Fe)),!re.isDigit(Ge(Fe)))throw Ji(Fe,'Digit expected, got "'+Ge(Fe)+'"');for(;re.isDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);if(re.isDecimalMark(Ge(Fe),Oe(Fe)))throw Ji(Fe,'Digit expected, got "'+Ge(Fe)+'"')}else if("."===Oe(Fe))throw Ye(Fe),Ji(Fe,'Digit expected, got "'+Ge(Fe)+'"')}else{if(!re.isAlpha(Ge(Fe),$e(Fe),Oe(Fe))){for(Fe.tokenType=pe.UNKNOWN;""!==Ge(Fe);)Fe.token+=Ge(Fe),Ye(Fe);throw Ji(Fe,'Syntax error in part "'+Fe.token+'"')}for(;re.isAlpha(Ge(Fe),$e(Fe),Oe(Fe))||re.isDigit(Ge(Fe));)Fe.token+=Ge(Fe),Ye(Fe);br(Ae,Fe.token)?Fe.tokenType=pe.DELIMITER:Fe.tokenType=pe.SYMBOL}}else Fe.tokenType=pe.DELIMITER}function Ze(Fe){do{Ie(Fe)}while("\n"===Fe.token)}function Pe(Fe){Fe.nestingLevel++}function bt(Fe){Fe.nestingLevel--}function Dt(Fe,_t){var dn=function Re(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:pe.NULL,nestingLevel:0,conditionalLevel:null}}();us(dn,{expression:Fe,extraNodes:_t}),Ie(dn);var Hn=function ht(Fe){var _t,Hn,dn=[];for(""!==Fe.token&&"\n"!==Fe.token&&";"!==Fe.token&&(_t=et(Fe),Fe.comment&&(_t.comment=Fe.comment));"\n"===Fe.token||";"===Fe.token;)0===dn.length&&_t&&(Hn=";"!==Fe.token,dn.push({node:_t,visible:Hn})),Ie(Fe),"\n"!==Fe.token&&";"!==Fe.token&&""!==Fe.token&&(_t=et(Fe),Fe.comment&&(_t.comment=Fe.comment),Hn=";"!==Fe.token,dn.push({node:_t,visible:Hn}));return dn.length>0?new d(dn):(_t||(_t=new p(void 0),Fe.comment&&(_t.comment=Fe.comment)),_t)}(dn);if(""!==dn.token)throw dn.tokenType===pe.DELIMITER?db(dn,"Unexpected operator "+dn.token):Ji(dn,'Unexpected part "'+dn.token+'"');return Hn}function et(Fe){var _t,dn,Hn,gi,Bi=function Et(Fe){for(var _t=function mn(Fe){for(var _t=Pt(Fe);"or"===Fe.token;)Ze(Fe),_t=new q("or","or",[_t,Pt(Fe)]);return _t}(Fe);"?"===Fe.token;){var dn=Fe.conditionalLevel;Fe.conditionalLevel=Fe.nestingLevel,Ze(Fe);var Hn=_t,gi=et(Fe);if(":"!==Fe.token)throw Ji(Fe,"False part of conditional expression expected");Fe.conditionalLevel=null,Ze(Fe);var Bi=et(Fe);_t=new h(Hn,gi,Bi),Fe.conditionalLevel=dn}return _t}(Fe);if("="===Fe.token){if(Ds(Bi))return _t=Bi.name,Ze(Fe),Hn=et(Fe),new l(new he(_t),Hn);if(oy(Bi))return Ze(Fe),Hn=et(Fe),new l(Bi.object,Bi.index,Hn);if(Ug(Bi)&&Ds(Bi.fn)&&(gi=!0,dn=[],_t=Bi.name,Bi.args.forEach(function(Hu,R7e){Ds(Hu)?dn[R7e]=Hu.name:gi=!1}),gi))return Ze(Fe),Hn=et(Fe),new y(_t,dn,Hn);throw Ji(Fe,"Invalid left hand side of assignment operator =")}return Bi}function Pt(Fe){for(var _t=Rt(Fe);"xor"===Fe.token;)Ze(Fe),_t=new q("xor","xor",[_t,Rt(Fe)]);return _t}function Rt(Fe){for(var _t=Zt(Fe);"and"===Fe.token;)Ze(Fe),_t=new q("and","and",[_t,Zt(Fe)]);return _t}function Zt(Fe){for(var _t=Lt(Fe);"|"===Fe.token;)Ze(Fe),_t=new q("|","bitOr",[_t,Lt(Fe)]);return _t}function Lt(Fe){for(var _t=Ht(Fe);"^|"===Fe.token;)Ze(Fe),_t=new q("^|","bitXor",[_t,Ht(Fe)]);return _t}function Ht(Fe){for(var _t=tn(Fe);"&"===Fe.token;)Ze(Fe),_t=new q("&","bitAnd",[_t,tn(Fe)]);return _t}function tn(Fe){for(var _t=[vn(Fe)],dn=[],Hn={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};br(Hn,Fe.token);){var gi={name:Fe.token,fn:Hn[Fe.token]};dn.push(gi),Ze(Fe),_t.push(vn(Fe))}return 1===_t.length?_t[0]:2===_t.length?new q(dn[0].name,dn[0].fn,_t):new ne(dn.map(Bi=>Bi.fn),_t)}function vn(Fe){var _t,dn,Hn,gi;_t=Bn(Fe);for(var Bi={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};br(Bi,Fe.token);)Hn=Bi[dn=Fe.token],Ze(Fe),gi=[_t,Bn(Fe)],_t=new q(dn,Hn,gi);return _t}function Bn(Fe){var _t,dn,Hn,gi;_t=ir(Fe);for(var Bi={to:"to",in:"to"};br(Bi,Fe.token);)Hn=Bi[dn=Fe.token],Ze(Fe),"in"===dn&&""===Fe.token?_t=new q("*","multiply",[_t,new he("in")],!0):(gi=[_t,ir(Fe)],_t=new q(dn,Hn,gi));return _t}function ir(Fe){var _t,dn=[];if(_t=":"===Fe.token?new p(1):ot(Fe),":"===Fe.token&&Fe.conditionalLevel!==Fe.nestingLevel){for(dn.push(_t);":"===Fe.token&&dn.length<3;)Ze(Fe),")"===Fe.token||"]"===Fe.token||","===Fe.token||""===Fe.token?dn.push(new he("end")):dn.push(ot(Fe));_t=3===dn.length?new ee(dn[0],dn[2],dn[1]):new ee(dn[0],dn[1])}return _t}function ot(Fe){var _t,dn,Hn,gi;_t=ct(Fe);for(var Bi={"+":"add","-":"subtract"};br(Bi,Fe.token);){Hn=Bi[dn=Fe.token],Ze(Fe);var Hu=ct(Fe);gi=Hu.isPercentage?[_t,new q("*","multiply",[_t,Hu])]:[_t,Hu],_t=new q(dn,Hn,gi)}return _t}function ct(Fe){var _t,dn,Hn,gi;dn=_t=jt(Fe);for(var Bi={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};br(Bi,Fe.token);)gi=Bi[Hn=Fe.token],Ze(Fe),dn=jt(Fe),_t=new q(Hn,gi,[_t,dn]);return _t}function jt(Fe){var _t,dn;for(dn=_t=st(Fe);Fe.tokenType===pe.SYMBOL||"in"===Fe.token&&Zi(_t)||Fe.tokenType===pe.NUMBER&&!Zi(dn)&&(!Qa(dn)||"!"===dn.op)||"("===Fe.token;)dn=st(Fe),_t=new q("*","multiply",[_t,dn],!0);return _t}function st(Fe){for(var _t=vt(Fe),dn=_t,Hn=[];"/"===Fe.token&&aB(dn);){if(Hn.push(us({},Fe)),Ze(Fe),Fe.tokenType!==pe.NUMBER){us(Fe,Hn.pop());break}if(Hn.push(us({},Fe)),Ze(Fe),Fe.tokenType!==pe.SYMBOL&&"("!==Fe.token){Hn.pop(),us(Fe,Hn.pop());break}us(Fe,Hn.pop()),Hn.pop(),dn=vt(Fe),_t=new q("/","divide",[_t,dn])}return _t}function vt(Fe){var _t,dn,Hn,gi;_t=Tt(Fe);for(var Bi={"%":"mod",mod:"mod"};br(Bi,Fe.token);)Hn=Bi[dn=Fe.token],Ze(Fe),"%"===dn&&Fe.tokenType===pe.DELIMITER&&"("!==Fe.token?_t=new q("/","divide",[_t,new p(100)],!1,!0):(gi=[_t,Tt(Fe)],_t=new q(dn,Hn,gi));return _t}function Tt(Fe){var _t,dn,Hn,gi={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return br(gi,Fe.token)?(Hn=gi[Fe.token],_t=Fe.token,Ze(Fe),dn=[Tt(Fe)],new q(_t,Hn,dn)):function gn(Fe){var _t,dn,Hn,gi;return _t=function bn(Fe){var _t,dn,Hn;_t=function Wn(Fe){var _t=[];if(Fe.tokenType===pe.SYMBOL&&br(Fe.extraNodes,Fe.token)){var dn=Fe.extraNodes[Fe.token];if(Ie(Fe),"("===Fe.token){if(_t=[],Pe(Fe),Ie(Fe),")"!==Fe.token)for(_t.push(et(Fe));","===Fe.token;)Ie(Fe),_t.push(et(Fe));if(")"!==Fe.token)throw Ji(Fe,"Parenthesis ) expected");bt(Fe),Ie(Fe)}return new dn(_t)}return function An(Fe){var _t,dn;return Fe.tokenType===pe.SYMBOL||Fe.tokenType===pe.DELIMITER&&Fe.token in Ae?(dn=Fe.token,Ie(Fe),_t=br(De,dn)?new p(De[dn]):Ce.includes(dn)?new p(t(dn,"number")):new he(dn),_t=Yr(Fe,_t),_t):function mi(Fe){var _t,dn;return'"'===Fe.token||"'"===Fe.token?(dn=ao(Fe,Fe.token),_t=new p(dn),_t=Yr(Fe,_t),_t):function Uo(Fe){var _t,dn,Hn,gi;if("["===Fe.token){if(Pe(Fe),Ie(Fe),"]"!==Fe.token){var Bi=ra(Fe);if(";"===Fe.token){for(Hn=1,dn=[Bi];";"===Fe.token;)Ie(Fe),"]"!==Fe.token&&(dn[Hn]=ra(Fe),Hn++);if("]"!==Fe.token)throw Ji(Fe,"End of matrix ] expected");bt(Fe),Ie(Fe),gi=dn[0].items.length;for(var Hu=1;Hu0},re.isDecimalMark=function(_t,dn){return"."===_t&&"/"!==dn&&"*"!==dn&&"^"!==dn},re.isDigitDot=function(_t){return _t>="0"&&_t<="9"||"."===_t},re.isDigit=function(_t){return _t>="0"&&_t<="9"},re.isHexDigit=function(_t){return _t>="0"&&_t<="9"||_t>="a"&&_t<="f"||_t>="A"&&_t<="F"},e.addConversion({from:"string",to:"Node",convert:re}),re}),B0e=Ke("resolve",["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],n=>{var{typed:e,parse:t,ConstantNode:r,FunctionNode:i,OperatorNode:a,ParenthesisNode:l}=n;function d(h,p){var y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!p)return h;if(Ds(h)){if(y.has(h.name)){var S=Array.from(y).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(S,"}"))}var R=p.get(h.name);if(So(R)){var B=new Set(y);return B.add(h.name),d(R,p,B)}return"number"==typeof R?t(String(R)):void 0!==R?new r(R):h}if(Qa(h)){var q=h.args.map(function(ee){return d(ee,p,y)});return new a(h.op,h.fn,q,h.implicit)}if(Op(h))return new l(d(h.content,p,y));if(Ug(h)){var V=h.args.map(function(ee){return d(ee,p,y)});return new i(h.name,V)}return h.map(ee=>d(ee,p,y))}return e("resolve",{Node:d,"Node, Map | null | undefined":d,"Node, Object":(h,p)=>d(h,mw(p)),"Array | Matrix":e.referToSelf(h=>p=>p.map(y=>h(y))),"Array | Matrix, null | undefined":e.referToSelf(h=>p=>p.map(y=>h(y))),"Array, Object":e.referTo("Array,Map",h=>(p,y)=>h(p,mw(y))),"Matrix, Object":e.referTo("Matrix,Map",h=>(p,y)=>h(p,mw(y))),"Array | Matrix, Map":e.referToSelf(h=>(p,y)=>p.map(S=>h(S,y)))})});function lX(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function _B(n){for(var e=1;e{var{FunctionNode:e,OperatorNode:t,SymbolNode:r}=n,i=!0,a=!1,l="defaultF",d={add:{trivial:i,total:i,commutative:i,associative:i},unaryPlus:{trivial:i,total:i,commutative:i,associative:i},subtract:{trivial:a,total:i,commutative:a,associative:a},multiply:{trivial:i,total:i,commutative:i,associative:i},divide:{trivial:a,total:i,commutative:a,associative:a},paren:{trivial:i,total:i,commutative:i,associative:a},defaultF:{trivial:a,total:i,commutative:a,associative:a}};function y(re,ce){var pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,oe=l;if("string"==typeof re?oe=re:Qa(re)?oe=re.fn.toString():Ug(re)?oe=re.name:Op(re)&&(oe="paren"),br(pe,oe)){var Ae=pe[oe];if(br(Ae,ce))return Ae[ce];if(br(d,oe))return d[oe][ce]}if(br(pe,l)){var De=pe[l];return br(De,ce)?De[ce]:d[l][ce]}if(br(d,oe)){var Ce=d[oe];if(br(Ce,ce))return Ce[ce]}return d[l][ce]}function R(re){return y(re,"associative",arguments.length>1&&void 0!==arguments[1]?arguments[1]:d)}function V(re,ce){var pe,oe=[];return R(re,ce)?(pe=re.op,function De(Ce){for(var _e=0;_e1&&void 0!==arguments[1]?arguments[1]:d)},isAssociative:R,mergeContext:function B(re,ce){var pe=_B({},re);for(var oe in ce)br(re,oe)?pe[oe]=_B(_B({},ce[oe]),re[oe]):pe[oe]=ce[oe];return pe},flatten:function q(re,ce){if(!re.args||0===re.args.length)return re;re.args=V(re,ce);for(var pe=0;pe2&&R(re,ce)){for(var De=re.args.pop();re.args.length>0;)De=pe([re.args.pop(),De]);re.args=De.args}}},unflattenl:function ne(re,ce){if(re.args&&0!==re.args.length){for(var pe=he(re),oe=re.args.length,Ae=0;Ae2&&R(re,ce)){for(var De=re.args.shift();re.args.length>0;)De=pe([De,re.args.shift()]);re.args=De.args}}},defaultContext:d,realContext:{divide:{total:a},log:{total:a}},positiveContext:{subtract:{total:a},abs:{trivial:i},log:{total:i}}}});function wB(){throw new Error('No "bignumber" implementation available')}function cX(){throw new Error('No "fraction" implementation available')}function dX(){throw new Error('No "matrix" implementation available')}var j0e=Ke("simplifyConstant",["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],n=>{var{typed:e,config:t,mathWithTransform:r,matrix:i,fraction:a,bignumber:l,AccessorNode:d,ArrayNode:h,ConstantNode:p,FunctionNode:y,IndexNode:S,ObjectNode:R,OperatorNode:B,SymbolNode:q}=n,{isCommutative:V,isAssociative:ee,allChildren:ne,createMakeNodeFunction:he}=xB({FunctionNode:y,OperatorNode:B,SymbolNode:q}),re=e("simplifyConstant",{Node:$e=>Ae(Ye($e,{})),"Node, Object":function(Oe,Ie){return Ae(Ye(Oe,Ie))}});function ce($e){return IA($e)?$e.valueOf():$e instanceof Array?$e.map(ce):Ur($e)?i(ce($e.valueOf())):$e}function pe($e,Oe,Ie){try{return r[$e].apply(null,Oe)}catch{return Oe=Oe.map(ce),Ce(r[$e].apply(null,Oe),Ie)}}var oe=e({Fraction:function Re($e){var Oe,Ie=$e.s*$e.n;return Oe=Ie<0?new B("-","unaryMinus",[new p(-Ie)]):new p(Ie),1===$e.d?Oe:new B("/","divide",[Oe,new p($e.d)])},number:function(Oe){return Oe<0?_e(new p(-Oe)):new p(Oe)},BigNumber:function(Oe){return Oe<0?_e(new p(-Oe)):new p(Oe)},Complex:function(Oe){throw new Error("Cannot convert Complex number to Node")},string:function(Oe){return new p(Oe)},Matrix:function(Oe){return new h(Oe.valueOf().map(Ie=>oe(Ie)))}});function Ae($e){return So($e)?$e:oe($e)}function De($e,Oe){if(Oe&&!1!==Oe.exactFractions&&isFinite($e)&&a){var Ze=a($e),Pe=Oe&&"number"==typeof Oe.fractionsLimit?Oe.fractionsLimit:1/0;if(Ze.valueOf()===$e&&Ze.n{if(!So(ht)){var et=Dt.pop();if(So(et))return[et,ht];try{return Dt.push(pe($e,[et,ht],Ze)),Dt}catch{Dt.push(et)}}Dt.push(Ae(Dt.pop()));var Et=1===Dt.length?Dt[0]:Ie(Dt);return[Ie([Et,Ae(ht)])]},[Pe]);return 1===bt.length?bt[0]:Ie([bt[0],oe(bt[1])])}function Ye($e,Oe){switch($e.type){case"SymbolNode":return $e;case"ConstantNode":switch(typeof $e.value){case"number":return Ce($e.value,Oe);case"string":return $e.value;default:if(!isNaN($e.value))return Ce($e.value,Oe)}return $e;case"FunctionNode":if(r[$e.name]&&r[$e.name].rawArgs)return $e;if(!["add","multiply"].includes($e.name)){var Ze=$e.args.map(tn=>Ye(tn,Oe));if(!Ze.some(So))try{return pe($e.name,Ze,Oe)}catch{}if("size"===$e.name&&1===Ze.length&&Pd(Ze[0])){for(var Pe=[],bt=Ze[0];Pd(bt);)Pe.push(bt.items.length),bt=bt.items[0];return i(Pe)}return new y($e.name,Ze.map(Ae))}case"OperatorNode":var ht,et,Dt=$e.fn.toString(),Et=he($e);if(Qa($e)&&$e.isUnary())et=So((ht=[Ye($e.args[0],Oe)])[0])?Et(ht):pe(Dt,ht,Oe);else if(ee($e,Oe.context))if(ht=(ht=ne($e,Oe.context)).map(tn=>Ye(tn,Oe)),V(Dt,Oe.context)){for(var mn=[],Pt=[],Rt=0;Rt1?(et=Ge(Dt,mn,Et,Oe),Pt.unshift(et),et=Ge(Dt,Pt,Et,Oe)):et=Ge(Dt,ht,Et,Oe)}else et=Ge(Dt,ht,Et,Oe);else et=Ge(Dt,ht=$e.args.map(tn=>Ye(tn,Oe)),Et,Oe);return et;case"ParenthesisNode":return Ye($e.content,Oe);case"AccessorNode":return function Be($e,Oe,Ie){if(!fw(Oe))return new d(Ae($e),Ae(Oe));if(Pd($e)||Ur($e)){for(var Ze=Array.from(Oe.dimensions);Ze.length>0;)if(Zi(Ze[0])&&"string"!=typeof Ze[0].value){var Pe=Ce(Ze.shift().value,Ie);Pd($e)?$e=$e.items[Pe-1]:($e=$e.valueOf()[Pe-1])instanceof Array&&($e=i($e))}else{if(!(Ze.length>1&&Zi(Ze[1])&&"string"!=typeof Ze[1].value))break;var bt=Ce(Ze[1].value,Ie),Dt=[],ht=Pd($e)?$e.items:$e.valueOf();for(var et of ht)if(Pd(et))Dt.push(et.items[bt-1]);else{if(!Ur($e))break;Dt.push(et[bt-1])}if(Dt.length!==ht.length)break;$e=Pd($e)?new h(Dt):i(Dt),Ze.splice(1,1)}return Ze.length===Oe.dimensions.length?new d(Ae($e),Oe):Ze.length>0?(Oe=new S(Ze),new d(Ae($e),Oe)):$e}if(K5($e)&&1===Oe.dimensions.length&&Zi(Oe.dimensions[0])){var Et=Oe.dimensions[0].value;return Et in $e.properties?$e.properties[Et]:new p}return new d(Ae($e),Oe)}(Ye($e.object,Oe),Ye($e.index,Oe),Oe);case"ArrayNode":var Zt=$e.items.map(tn=>Ye(tn,Oe));return Zt.some(So)?new h(Zt.map(Ae)):i(Zt);case"IndexNode":return new S($e.dimensions.map(tn=>re(tn,Oe)));case"ObjectNode":var Lt={};for(var Ht in $e.properties)Lt[Ht]=re($e.properties[Ht],Oe);return new R(Lt);default:throw new Error("Unimplemented node type in simplifyConstant: ".concat($e.type))}}return re}),uX="compile",H0e=Ke(uX,["typed","parse"],n=>{var{typed:e,parse:t}=n;return e(uX,{string:function(i){return t(i).compile()},"Array | Matrix":function(i){return Ni(i,function(a){return t(a).compile()})}})}),hX="simplifyCore",W0e=Ke(hX,["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],n=>{var{typed:e,parse:t,equal:r,isZero:i,add:a,subtract:l,multiply:d,divide:h,pow:p,AccessorNode:y,ArrayNode:S,ConstantNode:R,FunctionNode:B,IndexNode:q,ObjectNode:V,OperatorNode:ee,ParenthesisNode:ne,SymbolNode:he}=n,re=new R(0),ce=new R(1),pe=new R(!0),oe=new R(!1);function Ae(Re){return Qa(Re)&&["and","not","or"].includes(Re.op)}var{hasProperty:De,isCommutative:Ce}=xB({FunctionNode:B,OperatorNode:ee,SymbolNode:he});function _e(Re){var Be=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ge=Be?Be.context:void 0;if(De(Re,"trivial",Ge)){if(Ug(Re)&&1===Re.args.length)return _e(Re.args[0],Be);var Ye=!1,$e=0;if(Re.forEach(Pt=>{1===++$e&&(Ye=_e(Pt,Be))}),1===$e)return Ye}var Oe=Re;if(Ug(Oe)){var Ie=function Wve(n){var e="OperatorNode:"+n;for(var t of Fu)if(e in t)return t[e].op;return null}(Oe.name);if(!Ie)return new B(_e(Oe.fn),Oe.args.map(Pt=>_e(Pt,Be)));if(Oe.args.length>2&&De(Oe,"associative",Ge))for(;Oe.args.length>2;){var Ze=Oe.args.pop(),Pe=Oe.args.pop();Oe.args.push(new ee(Ie,Oe.name,[Ze,Pe]))}Oe=new ee(Ie,Oe.name,Oe.args)}if(Qa(Oe)&&Oe.isUnary()){var bt=_e(Oe.args[0],Be);if("~"===Oe.op&&Qa(bt)&&bt.isUnary()&&"~"===bt.op||"not"===Oe.op&&Qa(bt)&&bt.isUnary()&&"not"===bt.op&&Ae(bt.args[0]))return bt.args[0];var Dt=!0;if("-"===Oe.op&&Qa(bt)&&(bt.isBinary()&&"subtract"===bt.fn&&(Oe=new ee("-","subtract",[bt.args[1],bt.args[0]]),Dt=!1),bt.isUnary()&&"-"===bt.op))return bt.args[0];if(Dt)return new ee(Oe.op,Oe.fn,[bt])}if(Qa(Oe)&&Oe.isBinary()){var ht=_e(Oe.args[0],Be),et=_e(Oe.args[1],Be);if("+"===Oe.op){if(Zi(ht)&&i(ht.value))return et;if(Zi(et)&&i(et.value))return ht;Qa(et)&&et.isUnary()&&"-"===et.op&&(et=et.args[0],Oe=new ee("-","subtract",[ht,et]))}if("-"===Oe.op)return Qa(et)&&et.isUnary()&&"-"===et.op?_e(new ee("+","add",[ht,et.args[0]]),Be):Zi(ht)&&i(ht.value)?_e(new ee("-","unaryMinus",[et])):Zi(et)&&i(et.value)?ht:new ee(Oe.op,Oe.fn,[ht,et]);if("*"===Oe.op){if(Zi(ht)){if(i(ht.value))return re;if(r(ht.value,1))return et}if(Zi(et)){if(i(et.value))return re;if(r(et.value,1))return ht;if(Ce(Oe,Ge))return new ee(Oe.op,Oe.fn,[et,ht],Oe.implicit)}return new ee(Oe.op,Oe.fn,[ht,et],Oe.implicit)}if("/"===Oe.op)return Zi(ht)&&i(ht.value)?re:Zi(et)&&r(et.value,1)?ht:new ee(Oe.op,Oe.fn,[ht,et]);if("^"===Oe.op&&Zi(et)){if(i(et.value))return ce;if(r(et.value,1))return ht}if("and"===Oe.op){if(Zi(ht)){if(!ht.value)return oe;if(Ae(et))return et;if(Zi(et))return et.value?pe:oe}if(Zi(et)){if(!et.value)return oe;if(Ae(ht))return ht}}if("or"===Oe.op){if(Zi(ht)){if(ht.value)return pe;if(Ae(et))return et}if(Zi(et)){if(et.value)return pe;if(Ae(ht))return ht}}return new ee(Oe.op,Oe.fn,[ht,et])}if(Qa(Oe))return new ee(Oe.op,Oe.fn,Oe.args.map(Pt=>_e(Pt,Be)));if(Pd(Oe))return new S(Oe.items.map(Pt=>_e(Pt,Be)));if(oy(Oe))return new y(_e(Oe.object,Be),_e(Oe.index,Be));if(fw(Oe))return new q(Oe.dimensions.map(Pt=>_e(Pt,Be)));if(K5(Oe)){var Et={};for(var mn in Oe.properties)Et[mn]=_e(Oe.properties[mn],Be);return new V(Et)}return Oe}return e(hX,{Node:_e,"Node,Object":_e})}),fX="evaluate",X0e=Ke(fX,["typed","parse"],n=>{var{typed:e,parse:t}=n;return e(fX,{string:function(i){var a=OA();return t(i).compile().evaluate(a)},"string, Map | Object":function(i,a){return t(i).compile().evaluate(a)},"Array | Matrix":function(i){var a=OA();return Ni(i,function(l){return t(l).compile().evaluate(a)})},"Array | Matrix, Map | Object":function(i,a){return Ni(i,function(l){return t(l).compile().evaluate(a)})}})}),Z0e=Ke("Help",["evaluate"],n=>{var{evaluate:e}=n;function t(r){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!r)throw new Error('Argument "doc" missing');this.doc=r}return t.prototype.type="Help",t.prototype.isHelp=!0,t.prototype.toString=function(){var r=this.doc||{},i="\n";if(r.name&&(i+="Name: "+r.name+"\n\n"),r.category&&(i+="Category: "+r.category+"\n\n"),r.description&&(i+="Description:\n "+r.description+"\n\n"),r.syntax&&(i+="Syntax:\n "+r.syntax.join("\n ")+"\n\n"),r.examples){i+="Examples:\n";for(var a=!1,l=e("config()"),d={config:S=>(a=!0,e("config(newConfig)",{newConfig:S}))},h=0;h"mathjs"!==a).forEach(a=>{i[a]=r[a]}),new t(i)},t.prototype.valueOf=t.prototype.toString,t},{isClass:!0}),eye=Ke("Parser",["evaluate"],n=>{var{evaluate:e}=n;function t(){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:OA(),writable:!1})}return t.prototype.type="Parser",t.prototype.isParser=!0,t.prototype.evaluate=function(r){return e(r,this.scope)},t.prototype.get=function(r){if(this.scope.has(r))return this.scope.get(r)},t.prototype.getAll=function(){return function gve(n){if(n instanceof Z5)return n.wrappedObject;var e={};for(var t of n.keys())pw(e,t,n.get(t));return e}(this.scope)},t.prototype.getAllAsMap=function(){return this.scope},t.prototype.set=function(r,i){return this.scope.set(r,i),i},t.prototype.remove=function(r){this.scope.delete(r)},t.prototype.clear=function(){this.scope.clear()},t},{isClass:!0});function pX(n){return Zi(n)||Qa(n)&&n.isUnary()&&Zi(n.args[0])}function w8(n){return!!(Zi(n)||(Ug(n)||Qa(n))&&n.args.every(w8)||Op(n)&&w8(n.content))}var nye=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],rye=Ke("simplify",nye,n=>{var{config:e,typed:t,parse:r,add:i,subtract:a,multiply:l,divide:d,pow:h,isZero:p,equal:y,resolve:S,simplifyConstant:R,simplifyCore:B,fraction:q,bignumber:V,mathWithTransform:ee,matrix:ne,AccessorNode:he,ArrayNode:re,ConstantNode:ce,FunctionNode:pe,IndexNode:oe,ObjectNode:Ae,OperatorNode:De,ParenthesisNode:Ce,SymbolNode:_e}=n,{hasProperty:Re,isCommutative:Be,isAssociative:Ge,mergeContext:Ye,flatten:$e,unflattenr:Oe,unflattenl:Ie,createMakeNodeFunction:Ze,defaultContext:Pe,realContext:bt,positiveContext:Dt}=xB({FunctionNode:pe,OperatorNode:De,SymbolNode:_e});t.addConversion({from:"Object",to:"Map",convert:mw});var ht=t("simplify",{Node:Lt,"Node, Map":(st,vt)=>Lt(st,!1,vt),"Node, Map, Object":(st,vt,Tt)=>Lt(st,!1,vt,Tt),"Node, Array":Lt,"Node, Array, Map":Lt,"Node, Array, Map, Object":Lt});function et(st){return st.transform(function(vt,Tt,gn){return Op(vt)?et(vt.content):vt})}t.removeConversion({from:"Object",to:"Map",convert:mw}),ht.defaultContext=Pe,ht.realContext=bt,ht.positiveContext=Dt;var Et={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};function mn(st,vt){var Tt={};if(st.s){var gn=st.s.split("->");if(2!==gn.length)throw SyntaxError("Could not parse rule: "+st.s);Tt.l=gn[0],Tt.r=gn[1]}else Tt.l=st.l,Tt.r=st.r;for(var bn of(Tt.l=et(r(Tt.l)),Tt.r=et(r(Tt.r)),["imposeContext","repeat","assuming"]))bn in st&&(Tt[bn]=st[bn]);if(st.evaluate&&(Tt.evaluate=r(st.evaluate)),Ge(Tt.l,vt)){var An,Wn=!Be(Tt.l,vt);Wn&&(An=Zt());var Yr=Ze(Tt.l),mi=Zt();Tt.expanded={},Tt.expanded.l=Yr([Tt.l,mi]),$e(Tt.expanded.l,vt),Oe(Tt.expanded.l,vt),Tt.expanded.r=Yr([Tt.r,mi]),Wn&&(Tt.expandedNC1={},Tt.expandedNC1.l=Yr([An,Tt.l]),Tt.expandedNC1.r=Yr([An,Tt.r]),Tt.expandedNC2={},Tt.expandedNC2.l=Yr([An,Tt.expanded.l]),Tt.expandedNC2.r=Yr([An,Tt.expanded.r]))}return Tt}ht.rules=[B,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},R,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},R,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var Rt=0;function Zt(){return new _e("_p"+Rt++)}function Lt(st,vt){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OA(),gn=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},bn=gn.consoleDebug;vt=function Pt(st,vt){for(var Tt=[],gn=0;gn ").concat(vt[ao].r.toString()))),bn){var ra=Wn.toString({parenthesis:"all"});ra!==mi&&(console.log("Applying",Uo,"produced",ra),mi=ra)}Ie(Wn,gn.context)}Yr=Wn.toString({parenthesis:"all"})}return Wn}function Ht(st,vt,Tt){var gn=st;if(st)for(var bn=0;bn=2&&2===st.args.length){for(var Uo=function vn(st,vt){var gn,bn,Tt=[],Wn=Ze(st);if(Be(st,vt))for(var An=0;An1&&(mi=Wn(st.args.slice(0,Yr))),gn=1===(bn=st.args.slice(Yr)).length?bn[0]:Wn(bn),Tt.push(Wn([mi,gn]))}return Tt}(vt,Tt),ra=[],nc=0;nc2)throw Error("Unexpected non-binary associative function: "+st.toString());return[]}for(var Wn=[],An=0;An2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var mi=ct(st.args[0],vt.args[1],Tt);if(0===mi.length)return[];var ao=ct(st.args[1],vt.args[0],Tt);if(0===ao.length)return[];Wn=[mi,ao]}bn=function ot(st){if(0===st.length)return st;for(var vt=st.reduce(ir),Tt=[],gn={},bn=0;bn="a"&&st.name[1]<="z"?st.name.substring(0,2):st.name[0]){case"n":case"_p":bn[0].placeholders[st.name]=vt;break;case"c":case"cl":if(!Zi(vt))return[];bn[0].placeholders[st.name]=vt;break;case"v":if(Zi(vt))return[];bn[0].placeholders[st.name]=vt;break;case"vl":if(!Ds(vt))return[];bn[0].placeholders[st.name]=vt;break;case"cd":if(!pX(vt))return[];bn[0].placeholders[st.name]=vt;break;case"vd":if(pX(vt))return[];bn[0].placeholders[st.name]=vt;break;case"ce":if(!w8(vt))return[];bn[0].placeholders[st.name]=vt;break;case"ve":if(w8(vt))return[];bn[0].placeholders[st.name]=vt;break;default:throw new Error("Invalid symbol in rule: "+st.name)}}else{if(!(st instanceof ce))return[];if(!y(st.value,vt.value))return[]}return bn}function jt(st,vt){if(st instanceof ce&&vt instanceof ce){if(!y(st.value,vt.value))return!1}else if(st instanceof _e&&vt instanceof _e){if(st.name!==vt.name)return!1}else{if(!(st instanceof De&&vt instanceof De||st instanceof pe&&vt instanceof pe))return!1;if(st instanceof De){if(st.op!==vt.op||st.fn!==vt.fn)return!1}else if(st instanceof pe&&st.name!==vt.name)return!1;if(st.args.length!==vt.args.length)return!1;for(var Tt=0;Tt{var{parse:e,simplify:t,typed:r,OperatorNode:i}=n;function a(l,d){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=new i("-","subtract",[l,d]),y=t(p,{},h);return Zi(y)&&!y.value}return r(mX,{"Node, Node":a,"Node, Node, Object":a})}),gX="leafCount",aye=["parse","typed"],sye=Ke(gX,aye,n=>{var{parse:e,typed:t}=n;function r(i){var a=0;return i.forEach(l=>{a+=r(l)}),a||1}return t(gX,{Node:function(a){return r(a)}})}),lye=["typed","Parser"],cye=Ke("parser",lye,n=>{var{typed:e,Parser:t}=n;return e("parser",{"":function(){return new t}})}),vX="rationalize",dye=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],uye=Ke(vX,dye,n=>{var{config:e,typed:t,equal:r,isZero:i,add:a,subtract:l,multiply:d,divide:h,pow:p,parse:y,simplifyConstant:S,simplifyCore:R,simplify:B,fraction:q,bignumber:V,mathWithTransform:ee,matrix:ne,AccessorNode:he,ArrayNode:re,ConstantNode:ce,FunctionNode:pe,IndexNode:oe,ObjectNode:Ae,OperatorNode:De,SymbolNode:Ce,ParenthesisNode:_e}=n;function Re(Oe){var Ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ze=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pe=function Ge(){var Oe=[R,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},S,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],Ie=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],Ze=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],Pe=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],bt={};return bt.firstRules=Oe.concat(Ie,Pe),bt.distrDivRules=Ze,bt.sucDivRules=Pe,bt.firstRulesAgain=Oe.concat(Ie),bt.finalRules=[R,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},S,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],bt}(),bt=function Be(Oe,Ie,Ze,Pe){var bt=[],Dt=B(Oe,Pe,Ie,{exactFractions:!1});Ze=!!Ze;var ht="+-*"+(Ze?"/":"");Et(Dt);var et={};return et.expression=Dt,et.variables=bt,et;function Et(mn){var Pt=mn.type;if("FunctionNode"===Pt)throw new Error("There is an unsolved function call");if("OperatorNode"===Pt)if("^"===mn.op){if("ConstantNode"!==mn.args[1].type||!wr(parseFloat(mn.args[1].value)))throw new Error("There is a non-integer exponent");Et(mn.args[0])}else{if(!ht.includes(mn.op))throw new Error("Operator "+mn.op+" invalid in polynomial expression");for(var Rt=0;Rt=1){Oe=Ye(Oe);var Et,mn,Zt,Pt=!0,Rt=!1;for(Oe=B(Oe,Pe.firstRules,{},ht);mn=Pt?Pe.distrDivRules:Pe.sucDivRules,Pt=!Pt,(Zt=(Oe=B(Oe,mn,{},et)).toString())!==Et;)Rt=!0,Et=Zt;Rt&&(Oe=B(Oe,Pe.firstRulesAgain,{},ht)),Oe=B(Oe,Pe.finalRules,{},ht)}var Lt=[],Ht={};return"OperatorNode"===Oe.type&&Oe.isBinary()&&"/"===Oe.op?(1===Dt&&(Oe.args[0]=$e(Oe.args[0],Lt),Oe.args[1]=$e(Oe.args[1])),Ze&&(Ht.numerator=Oe.args[0],Ht.denominator=Oe.args[1])):(1===Dt&&(Oe=$e(Oe,Lt)),Ze&&(Ht.numerator=Oe,Ht.denominator=null)),Ze?(Ht.coefficients=Lt,Ht.variables=bt.variables,Ht.expression=Oe,Ht):Oe}return t(vX,{Node:Re,"Node, boolean":(Oe,Ie)=>Re(Oe,{},Ie),"Node, Object":Re,"Node, Object, boolean":Re});function Ye(Oe,Ie,Ze){var Pe=Oe.type,bt=arguments.length>1;if("OperatorNode"===Pe&&Oe.isBinary()){var ht,Dt=!1;if("^"===Oe.op&&("ParenthesisNode"===Oe.args[0].type||"OperatorNode"===Oe.args[0].type)&&"ConstantNode"===Oe.args[1].type&&(Dt=(ht=parseFloat(Oe.args[1].value))>=2&&wr(ht)),Dt){if(ht>2){var et=Oe.args[0],Et=new De("^","pow",[Oe.args[0].cloneDeep(),new ce(ht-1)]);Oe=new De("*","multiply",[et,Et])}else Oe=new De("*","multiply",[Oe.args[0],Oe.args[0].cloneDeep()]);bt&&("content"===Ze?Ie.content=Oe:Ie.args[Ze]=Oe)}}if("ParenthesisNode"===Pe)Ye(Oe.content,Oe,"content");else if("ConstantNode"!==Pe&&"SymbolNode"!==Pe)for(var mn=0;mnPe&&(Ie[ir]=0),Ie[ir]+=tn.cte*("+"===tn.oper?1:-1),void(Pe=Math.max(ir,Pe))}tn.cte=ir,""===tn.fire&&(Ie[0]+=tn.cte*("+"===tn.oper?1:-1))}})(Oe,null,Ze);for(var ht,Dt=!0,et=Pe=Ie.length-1;et>=0;et--)if(0!==Ie[et]){var Et=new ce(Dt?Ie[et]:Math.abs(Ie[et])),mn=Ie[et]<0?"-":"+";if(et>0){var Pt=new Ce(bt);if(et>1){var Rt=new ce(et);Pt=new De("^","pow",[Pt,Rt])}Et=-1===Ie[et]&&Dt?new De("-","unaryMinus",[Pt]):1===Math.abs(Ie[et])?Pt:new De("*","multiply",[Et,Pt])}ht=Dt?Et:"+"===mn?new De("+","add",[ht,Et]):new De("-","subtract",[ht,Et]),Dt=!1}return Dt?new ce(0):ht}}),yX="derivative",hye=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],fye=Ke(yX,hye,n=>{var{typed:e,config:t,parse:r,simplify:i,equal:a,isZero:l,numeric:d,ConstantNode:h,FunctionNode:p,OperatorNode:y,ParenthesisNode:S,SymbolNode:R}=n;function B(re,ce){var pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{simplify:!0},oe={};ee(oe,re,ce.name);var Ae=ne(re,oe);return pe.simplify?i(Ae):Ae}e.addConversion({from:"identifier",to:"SymbolNode",convert:r});var q=e(yX,{"Node, SymbolNode":B,"Node, SymbolNode, Object":B});e.removeConversion({from:"identifier",to:"SymbolNode",convert:r}),q._simplify=!0,q.toTex=function(re){return V.apply(null,re.args)};var V=e("_derivTex",{"Node, SymbolNode":function(ce,pe){return Zi(ce)&&"string"===No(ce.value)?V(r(ce.value).toString(),pe.toString(),1):V(ce.toTex(),pe.toString(),1)},"Node, ConstantNode":function(ce,pe){if("string"===No(pe.value))return V(ce,r(pe.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(ce,pe,oe){return V(ce.toString(),pe.name,oe.value)},"string, string, number":function(ce,pe,oe){return(1===oe?"{d\\over d"+pe+"}":"{d^{"+oe+"}\\over d"+pe+"^{"+oe+"}}")+"\\left[".concat(ce,"\\right]")}}),ee=e("constTag",{"Object, ConstantNode, string":function(ce,pe){return ce[pe]=!0,!0},"Object, SymbolNode, string":function(ce,pe,oe){return pe.name!==oe&&(ce[pe]=!0,!0)},"Object, ParenthesisNode, string":function(ce,pe,oe){return ee(ce,pe.content,oe)},"Object, FunctionAssignmentNode, string":function(ce,pe,oe){return pe.params.includes(oe)?ee(ce,pe.expr,oe):(ce[pe]=!0,!0)},"Object, FunctionNode | OperatorNode, string":function(ce,pe,oe){if(pe.args.length>0){for(var Ae=ee(ce,pe.args[0],oe),De=1;De0){var Ae=ce.args.filter(function($e){return void 0===pe[$e]}),De=1===Ae.length?Ae[0]:new y("*","multiply",Ae),Ce=oe.concat(ne(De,pe));return new y("*","multiply",Ce)}return new y("+","add",ce.args.map(function($e){return new y("*","multiply",ce.args.map(function(Oe){return Oe===$e?ne(Oe,pe):Oe.clone()}))}))}if("/"===ce.op&&ce.isBinary()){var _e=ce.args[0],Re=ce.args[1];return void 0!==pe[Re]?new y("/","divide",[ne(_e,pe),Re]):void 0!==pe[_e]?new y("*","multiply",[new y("-","unaryMinus",[_e]),new y("/","divide",[ne(Re,pe),new y("^","pow",[Re.clone(),he(2)])])]):new y("/","divide",[new y("-","subtract",[new y("*","multiply",[ne(_e,pe),Re.clone()]),new y("*","multiply",[_e.clone(),ne(Re,pe)])]),new y("^","pow",[Re.clone(),he(2)])])}if("^"===ce.op&&ce.isBinary()){var Be=ce.args[0],Ge=ce.args[1];if(void 0!==pe[Be])return Zi(Be)&&(l(Be.value)||a(Be.value,1))?he(0):new y("*","multiply",[ce,new y("*","multiply",[new p("log",[Be.clone()]),ne(Ge.clone(),pe)])]);if(void 0!==pe[Ge]){if(Zi(Ge)){if(l(Ge.value))return he(0);if(a(Ge.value,1))return ne(Be,pe)}var Ye=new y("^","pow",[Be.clone(),new y("-","subtract",[Ge,he(1)])]);return new y("*","multiply",[Ge.clone(),new y("*","multiply",[ne(Be,pe),Ye])])}return new y("*","multiply",[new y("^","pow",[Be.clone(),Ge.clone()]),new y("+","add",[new y("*","multiply",[ne(Be,pe),new y("/","divide",[Ge.clone(),Be.clone()])]),new y("*","multiply",[ne(Ge,pe),new p("log",[Be.clone()])])])])}throw new Error('Cannot process operator "'+ce.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function he(re,ce){return new h(d(re,ce||t.number))}return q}),_X={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},xX={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},zwe={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:_X,E:_X,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:xX,PI:xX,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},leafCount:{name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},polynomialRoot:{name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},resolve:{name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},simplifyConstant:{name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},simplifyCore:{name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},symbolicEqual:{name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},invmod:{name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax \u2263 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:[]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},pinv:{name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore\u2013Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},fft:{name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ifft:{name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},sylvester:{name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},schur:{name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},lyap:{name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},solveODE:{name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},lgamma:{name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},zpk2tf:{name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},freqz:{name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},zeta:{name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},cumsum:{name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},corr:{name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},print:{name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","fraction","bignumber","string","format"]}},qwe=Ke("help",["typed","mathWithTransform","Help"],n=>{var{typed:e,mathWithTransform:t,Help:r}=n;return e("help",{any:function(a){var l,d=a;if("string"!=typeof a)for(l in t)if(br(t,l)&&a===t[l]){d=l;break}var h=Xl(zwe,d);if(!h){var p="function"==typeof d?d.name:d;throw new Error('No documentation found on "'+p+'"')}return new r(h)}})}),ww=mt(616);function Cw(n,e,t,r,i){if(ww.isTypedFunction(n)){var a=[e,t,r],l=ww.resolve(n,a);if(l)return S(l.implementation,a);var d=[e,t],h=ww.resolve(n,d);if(h)return S(h.implementation,d);var p=[e],y=ww.resolve(n,p);return y?S(y.implementation,p):S(n,a)}return n(e,t,r);function S(R,B){try{return R.apply(R,B)}catch(ee){var q;if(ee instanceof TypeError&&"wrongType"===(null===(q=ee.data)||void 0===q?void 0:q.category)){var V=[];throw V.push("value: ".concat(No(e))),B.length>=2&&V.push("index: ".concat(No(t))),B.length>=3&&V.push("array: ".concat(No(r))),new TypeError("Function ".concat(i," cannot apply callback arguments ")+"".concat(n.name,"(").concat(V.join(", "),") at index ").concat(JSON.stringify(t)))}throw new TypeError("Function ".concat(i," cannot apply callback arguments ")+"to function ".concat(n.name,": ").concat(ee.message))}}}function CB(n,e,t){var r=n.filter(function(h){return Ds(h)&&!(h.name in e)&&!t.has(h.name)})[0];if(!r)throw new Error('No undefined variable found in inline expression "'+n+'"');var i=r.name,a=new Map,l=new MG(t,a,new Set([i])),d=n.compile();return function(p){return a.set(i,p),d.evaluate(l)}}var Hwe=Ke("filter",["typed"],n=>{var{typed:e}=n;function t(i,a,l){var d,h;return i[0]&&(d=i[0].compile().evaluate(l)),i[1]&&(h=Ds(i[1])||NA(i[1])?i[1].compile().evaluate(l):CB(i[1],a,l)),r(d,h)}t.rawArgs=!0;var r=e("filter",{"Array, function":CX,"Matrix, function":function(a,l){return a.create(CX(a.toArray(),l))},"Array, RegExp":r8,"Matrix, RegExp":function(a,l){return a.create(r8(a.toArray(),l))}});return t},{isTransformFunction:!0});function CX(n,e){return YG(n,function(t,r,i){return Cw(e,t,[r+1],i,"filter")})}var Gwe=Ke("forEach",["typed"],n=>{var{typed:e}=n;function t(i,a,l){var d,h;return i[0]&&(d=i[0].compile().evaluate(l)),i[1]&&(h=Ds(i[1])||NA(i[1])?i[1].compile().evaluate(l):CB(i[1],a,l)),r(d,h)}t.rawArgs=!0;var r=e("forEach",{"Array | Matrix, function":function(a,l){!function h(p,y){if(!Array.isArray(p))return Cw(l,p,y,a,"forEach");n8(p,function(S,R){h(S,y.concat(R+1))})}(a.valueOf(),[])}});return t},{isTransformFunction:!0}),Kwe=Ke("map",["typed"],n=>{var{typed:e}=n;function t(i,a,l){var d,h;return i[0]&&(d=i[0].compile().evaluate(l)),i[1]&&(h=Ds(i[1])||NA(i[1])?i[1].compile().evaluate(l):CB(i[1],a,l)),r(d,h)}t.rawArgs=!0;var r=e("map",{"Array, function":function(a,l){return kX(a,l,a)},"Matrix, function":function(a,l){return a.create(kX(a.valueOf(),l,a))}});return t},{isTransformFunction:!0});function kX(n,e,t){return function r(i,a){return Array.isArray(i)?Rp(i,function(l,d){return r(l,a.concat(d+1))}):Cw(e,i,a,t,"map")}(n,[])}var kB=Ke("apply",["typed","isInteger"],n=>{var{typed:e,isInteger:t}=n;return e("apply",{"Array | Matrix, number | BigNumber, function":function(i,a,l){if(!t(a))throw new TypeError("Integer number expected for dimension");var d=Array.isArray(i)?hi(i):i.size();if(a<0||a>=d.length)throw new Ru(a,d.length);return Ur(i)?i.create(C8(i.valueOf(),a,l)):C8(i,a,l)}})});function C8(n,e,t){var r,i,a;if(e<=0){if(Array.isArray(n[0])){for(a=function Qwe(n){var r,i,e=n.length,t=n[0].length,a=[];for(i=0;i{var{typed:e,isInteger:t}=n,r=kB({typed:e,isInteger:t});return e("apply",{"...any":function(a){var l=a[1];wi(l)?a[1]=l-1:Ci(l)&&(a[1]=l.minus(1));try{return r.apply(null,a)}catch(d){throw Kl(d)}}})},{isTransformFunction:!0}),Zl=Ke("matAlgo03xDSf",["typed"],n=>{var{typed:e}=n;return function(r,i,a,l){var d=r._data,h=r._size,p=r._datatype||r.getDataType(),y=i._values,S=i._index,R=i._ptr,B=i._size,q=i._datatype||void 0===i._data?i._datatype:i.getDataType();if(h.length!==B.length)throw new Ii(h.length,B.length);if(h[0]!==B[0]||h[1]!==B[1])throw new RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+B+")");if(!y)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var ne,V=h[0],ee=h[1],he=0,re=a;"string"==typeof p&&p===q&&"mixed"!==p&&(ne=p,he=e.convert(0,ne),re=e.find(a,[ne,ne]));for(var ce=[],pe=0;pe{var{typed:e,DenseMatrix:t}=n;return function(i,a,l,d){var h=i._values,p=i._index,y=i._ptr,S=i._size,R=i._datatype;if(!h)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var V,B=S[0],q=S[1],ee=l;"string"==typeof R&&(V=R,a=e.convert(a,V),ee=e.find(l,[V,V]));for(var ne=[],he=[],re=[],ce=0;ce{var{typed:e,equalScalar:t}=n;return function(i,a,l){var d=i._values,h=i._index,p=i._ptr,y=i._size,S=i._datatype||void 0===i._data?i._datatype:i.getDataType(),R=a._values,B=a._index,q=a._ptr,V=a._size,ee=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(y.length!==V.length)throw new Ii(y.length,V.length);if(y[0]!==V[0]||y[1]!==V[1])throw new RangeError("Dimension mismatch. Matrix A ("+y+") must match Matrix B ("+V+")");var re,ne=y[0],he=y[1],ce=t,pe=0,oe=l;"string"==typeof S&&S===ee&&"mixed"!==S&&(re=S,ce=e.find(t,[re,re]),pe=e.convert(0,re),oe=e.find(l,[re,re]));var Ye,$e,Oe,Ie,Ae=d&&R?[]:void 0,De=[],Ce=[],_e=Ae?[]:void 0,Re=Ae?[]:void 0,Be=[],Ge=[];for($e=0;$e{var{typed:e}=n;return function(i,a,l){var d=i._data,h=i._size,p=i._datatype,y=a._data,S=a._size,R=a._datatype,B=[];if(h.length!==S.length)throw new Ii(h.length,S.length);for(var q=0;q0?t(ee,0,B,B[0],d,y):[];return i.createDenseMatrix({data:ne,size:B,datatype:V})};function t(r,i,a,l,d,h){var p=[];if(i===a.length-1)for(var y=0;y{var{typed:e}=n;return function(i,a,l,d){var S,h=i._data,p=i._size,y=i._datatype,R=l;"string"==typeof y&&(S=y,a=e.convert(a,S),R=e.find(l,[S,S]));var B=p.length>0?t(R,0,p,p[0],h,a,d):[];return i.createDenseMatrix({data:B,size:ci(p),datatype:S})};function t(r,i,a,l,d,h,p){var y=[];if(i===a.length-1)for(var S=0;S{var{concat:e}=n;return function(i,a){var l=Math.max(i._size.length,a._size.length);if(i._size.length===a._size.length&&i._size.every((q,V)=>q===a._size[V]))return[i,a];for(var d=t(i._size,l,0),h=t(a._size,l,0),p=[],y=0;y{var{typed:e,matrix:t,concat:r}=n,i=d2e({typed:e}),a=Pu({typed:e}),l=m2e({concat:r});return function(h){var S,p=h.elop,y=h.SD||h.DS;p?(S={"DenseMatrix, DenseMatrix":(V,ee)=>i(...l(V,ee),p),"Array, Array":(V,ee)=>i(...l(t(V),t(ee)),p).valueOf(),"Array, DenseMatrix":(V,ee)=>i(...l(t(V),ee),p),"DenseMatrix, Array":(V,ee)=>i(...l(V,t(ee)),p)},h.SS&&(S["SparseMatrix, SparseMatrix"]=(V,ee)=>h.SS(...l(V,ee),p,!1)),h.DS&&(S["DenseMatrix, SparseMatrix"]=(V,ee)=>h.DS(...l(V,ee),p,!1),S["Array, SparseMatrix"]=(V,ee)=>h.DS(...l(t(V),ee),p,!1)),y&&(S["SparseMatrix, DenseMatrix"]=(V,ee)=>y(...l(ee,V),p,!0),S["SparseMatrix, Array"]=(V,ee)=>y(...l(t(ee),V),p,!0))):(S={"DenseMatrix, DenseMatrix":e.referToSelf(V=>(ee,ne)=>i(...l(ee,ne),V)),"Array, Array":e.referToSelf(V=>(ee,ne)=>i(...l(t(ee),t(ne)),V).valueOf()),"Array, DenseMatrix":e.referToSelf(V=>(ee,ne)=>i(...l(t(ee),ne),V)),"DenseMatrix, Array":e.referToSelf(V=>(ee,ne)=>i(...l(ee,t(ne)),V))},h.SS&&(S["SparseMatrix, SparseMatrix"]=e.referToSelf(V=>(ee,ne)=>h.SS(...l(ee,ne),V,!1))),h.DS&&(S["DenseMatrix, SparseMatrix"]=e.referToSelf(V=>(ee,ne)=>h.DS(...l(ee,ne),V,!1)),S["Array, SparseMatrix"]=e.referToSelf(V=>(ee,ne)=>h.DS(...l(t(ee),ne),V,!1))),y&&(S["SparseMatrix, DenseMatrix"]=e.referToSelf(V=>(ee,ne)=>y(...l(ne,ee),V,!0)),S["SparseMatrix, Array"]=e.referToSelf(V=>(ee,ne)=>y(...l(t(ne),ee),V,!0))));var R=h.scalar||"any";(h.Ds||h.Ss)&&(p?(S["DenseMatrix,"+R]=(V,ee)=>a(V,ee,p,!1),S[R+", DenseMatrix"]=(V,ee)=>a(ee,V,p,!0),S["Array,"+R]=(V,ee)=>a(t(V),ee,p,!1).valueOf(),S[R+", Array"]=(V,ee)=>a(t(ee),V,p,!0).valueOf()):(S["DenseMatrix,"+R]=e.referToSelf(V=>(ee,ne)=>a(ee,ne,V,!1)),S[R+", DenseMatrix"]=e.referToSelf(V=>(ee,ne)=>a(ne,ee,V,!0)),S["Array,"+R]=e.referToSelf(V=>(ee,ne)=>a(t(ee),ne,V,!1).valueOf()),S[R+", Array"]=e.referToSelf(V=>(ee,ne)=>a(t(ne),ee,V,!0).valueOf())));var q=void 0!==h.sS?h.sS:h.Ss;return p?(h.Ss&&(S["SparseMatrix,"+R]=(V,ee)=>h.Ss(V,ee,p,!1)),q&&(S[R+", SparseMatrix"]=(V,ee)=>q(ee,V,p,!0))):(h.Ss&&(S["SparseMatrix,"+R]=e.referToSelf(V=>(ee,ne)=>h.Ss(ee,ne,V,!1))),q&&(S[R+", SparseMatrix"]=e.referToSelf(V=>(ee,ne)=>q(ne,ee,V,!0)))),p&&p.signatures&&wG(S,p.signatures),S}}),EB="number, number";function SX(n){return!n}function AX(n,e){return!(!n&&!e)}function DX(n,e){return!!n!=!!e}function MX(n,e){return!(!n||!e)}SX.signature="number",AX.signature=EB,DX.signature=EB,MX.signature=EB;var IX=Ke("or",["typed","matrix","equalScalar","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=k8({typed:e,equalScalar:r}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:t,concat:a});return e("or",{"number, number":AX,"Complex, Complex":function(S,R){return 0!==S.re||0!==S.im||0!==R.re||0!==R.im},"BigNumber, BigNumber":function(S,R){return!S.isZero()&&!S.isNaN()||!R.isZero()&&!R.isNaN()},"Unit, Unit":e.referToSelf(y=>(S,R)=>y(S.value||0,R.value||0))},p({SS:d,DS:l,Ss:h}))}),w2e=Ke("or",["typed","matrix","equalScalar","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a}=n,l=IX({typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a});function d(h,p,y){var S=h[0].compile().evaluate(y);if(!Fd(S)&&l(S,!1))return!0;var R=h[1].compile().evaluate(y);return l(S,R)}return d.rawArgs=!0,d},{isTransformFunction:!0}),Bu=Ke("matAlgo02xDS0",["typed","equalScalar"],n=>{var{typed:e,equalScalar:t}=n;return function(i,a,l,d){var h=i._data,p=i._size,y=i._datatype||i.getDataType(),S=a._values,R=a._index,B=a._ptr,q=a._size,V=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(p.length!==q.length)throw new Ii(p.length,q.length);if(p[0]!==q[0]||p[1]!==q[1])throw new RangeError("Dimension mismatch. Matrix A ("+p+") must match Matrix B ("+q+")");if(!S)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var he,ee=p[0],ne=p[1],re=t,ce=0,pe=l;"string"==typeof y&&y===V&&"mixed"!==y&&(he=y,re=e.find(t,[he,he]),ce=e.convert(0,he),pe=e.find(l,[he,he]));for(var oe=[],Ae=[],De=[],Ce=0;Ce{var{typed:e,equalScalar:t}=n;return function(i,a,l,d){var h=i._values,p=i._index,y=i._ptr,S=i._size,R=i._datatype;if(!h)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var V,B=S[0],q=S[1],ee=t,ne=0,he=l;"string"==typeof R&&(V=R,ee=e.find(t,[V,V]),ne=e.convert(0,V),a=e.convert(a,V),he=e.find(l,[V,V]));for(var re=[],ce=[],pe=[],oe=0;oe{var{typed:e,equalScalar:t}=n;return function(i,a,l){var d=i._values,h=i._size,p=i._datatype||void 0===i._data?i._datatype:i.getDataType(),y=a._values,S=a._size,R=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(h.length!==S.length)throw new Ii(h.length,S.length);if(h[0]!==S[0]||h[1]!==S[1])throw new RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+S+")");var V,B=h[0],q=h[1],ee=t,ne=0,he=l;"string"==typeof p&&p===R&&"mixed"!==p&&(V=p,ee=e.find(t,[V,V]),ne=e.convert(0,V),he=e.find(l,[V,V]));for(var re=d&&y?[]:void 0,ce=[],pe=[],oe=re?[]:void 0,Ae=[],De=[],Ce=0;Ce{var{typed:e,matrix:t,equalScalar:r,zeros:i,not:a,concat:l}=n,d=Bu({typed:e,equalScalar:r}),h=E8({typed:e,equalScalar:r}),p=Ks({typed:e,equalScalar:r}),y=Pu({typed:e}),S=qo({typed:e,matrix:t,concat:l});return e("and",{"number, number":MX,"Complex, Complex":function(B,q){return!(0===B.re&&0===B.im||0===q.re&&0===q.im)},"BigNumber, BigNumber":function(B,q){return!(B.isZero()||q.isZero()||B.isNaN()||q.isNaN())},"Unit, Unit":e.referToSelf(R=>(B,q)=>R(B.value||0,q.value||0)),"SparseMatrix, any":e.referToSelf(R=>(B,q)=>a(q)?i(B.size(),B.storage()):p(B,q,R,!1)),"DenseMatrix, any":e.referToSelf(R=>(B,q)=>a(q)?i(B.size(),B.storage()):y(B,q,R,!1)),"any, SparseMatrix":e.referToSelf(R=>(B,q)=>a(B)?i(B.size(),B.storage()):p(q,B,R,!0)),"any, DenseMatrix":e.referToSelf(R=>(B,q)=>a(B)?i(B.size(),B.storage()):y(q,B,R,!0)),"Array, any":e.referToSelf(R=>(B,q)=>R(t(B),q).valueOf()),"any, Array":e.referToSelf(R=>(B,q)=>R(B,t(q)).valueOf())},S({SS:h,DS:d}))}),N2e=Ke("and",["typed","matrix","zeros","add","equalScalar","not","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,zeros:i,not:a,concat:l}=n,d=OX({typed:e,matrix:t,equalScalar:r,zeros:i,not:a,concat:l});function h(p,y,S){var R=p[0].compile().evaluate(S);if(!Fd(R)&&!d(R,!0))return!1;var B=p[1].compile().evaluate(S);return d(R,B)}return h.rawArgs=!0,h},{isTransformFunction:!0}),FX=Ke("concat",["typed","matrix","isInteger"],n=>{var{typed:e,matrix:t,isInteger:r}=n;return e("concat",{"...Array | Matrix | number | BigNumber":function(a){var l,p,d=a.length,h=-1,y=!1,S=[];for(l=0;l0&&h>p)throw new Ru(h,p+1)}else{var B=ci(R).valueOf(),q=hi(B);if(S[l]=B,p=h,h=q.length-1,l>0&&h!==p)throw new Ii(p+1,h+1)}}if(0===S.length)throw new SyntaxError("At least one matrix expected");for(var V=S.shift();S.length;)V=QG(V,S.shift(),h);return y?t(V):V},"...string":function(a){return a.join("")}})}),P2e=Ke("concat",["typed","matrix","isInteger"],n=>{var{typed:e,matrix:t,isInteger:r}=n,i=FX({typed:e,matrix:t,isInteger:r});return e("concat",{"...any":function(l){var d=l.length-1,h=l[d];wi(h)?l[d]=h-1:Ci(h)&&(l[d]=h.minus(1));try{return i.apply(null,l)}catch(p){throw Kl(p)}}})},{isTransformFunction:!0});function Ql(n,e,t){var r;return String(n).includes("Unexpected type")?(r=arguments.length>2?" (type: "+No(t)+", value: "+JSON.stringify(t)+")":" (type: "+n.data.actual+")",new TypeError("Cannot calculate "+e+", unexpected type of argument"+r)):String(n).includes("complex numbers")?(r=arguments.length>2?" (type: "+No(t)+", value: "+JSON.stringify(t)+")":"",new TypeError("Cannot calculate "+e+", no ordering relation is defined for complex numbers"+r)):n}var BX=Ke("max",["typed","config","numeric","larger"],n=>{var{typed:e,config:t,numeric:r,larger:i}=n;return e("max",{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(h,p){return _8(h,p.valueOf(),a)},"...":function(h){if(xw(h))throw new TypeError("Scalar values expected in function max");return l(h)}});function a(d,h){try{return i(d,h)?d:h}catch(p){throw Ql(p,"max",h)}}function l(d){var h;if(Fp(d,function(p){try{isNaN(p)&&"number"==typeof p?h=NaN:(void 0===h||i(p,h))&&(h=p)}catch(y){throw Ql(y,"max",p)}}),void 0===h)throw new Error("Cannot calculate max of an empty array");return"string"==typeof h&&(h=r(h,t.number)),h}});function $g(n){if(2===n.length&&Fd(n[0])){var e=(n=n.slice())[1];wi(e)?n[1]=e-1:Ci(e)&&(n[1]=e.minus(1))}return n}var V2e=Ke("max",["typed","config","numeric","larger"],n=>{var{typed:e,config:t,numeric:r,larger:i}=n,a=BX({typed:e,config:t,numeric:r,larger:i});return e("max",{"...any":function(d){d=$g(d);try{return a.apply(null,d)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),LX=/\$([\w.]+)/g,VX=Ke("print",["typed"],n=>{var{typed:e}=n;return e("print",{"string, Object | Array":qX,"string, Object | Array, number | Object":qX})});function qX(n,e,t){return n.replace(LX,function(r,i){var a=i.split("."),l=e[a.shift()];for(void 0!==l&&l.isMatrix&&(l=l.toArray());a.length&&void 0!==l;){var d=a.shift();l=d?l[d]:l+"."}return void 0!==l?vl(l)?l:Ti(l,t):r})}var U2e=Ke("print",["typed","matrix","zeros","add"],n=>{var{typed:e,matrix:t,zeros:r,add:i}=n,a=VX({typed:e,matrix:t,zeros:r,add:i});return e("print",{"string, Object | Array":function(h,p){return a(l(h),p)},"string, Object | Array, number | Object":function(h,p,y){return a(l(h),p,y)}});function l(d){return d.replace(LX,h=>"$"+h.slice(1).split(".").map(function(S){return!isNaN(S)&&S.length>0?parseInt(S)-1:S}).join("."))}},{isTransformFunction:!0});function H2e(n,e){if(n.isFinite()&&!n.isInteger()||e.isFinite()&&!e.isInteger())throw new Error("Integers expected in function bitAnd");var t=n.constructor;if(n.isNaN()||e.isNaN())return new t(NaN);if(n.isZero()||e.eq(-1)||n.eq(e))return n;if(e.isZero()||n.eq(-1))return e;if(!n.isFinite()||!e.isFinite()){if(!n.isFinite()&&!e.isFinite())return n.isNegative()===e.isNegative()?n:new t(0);if(!n.isFinite())return e.isNegative()?n:n.isNegative()?new t(0):e;if(!e.isFinite())return n.isNegative()?e:e.isNegative()?new t(0):n}return SB(n,e,function(r,i){return r&i})}function zA(n){if(n.isFinite()&&!n.isInteger())throw new Error("Integer expected in function bitNot");var e=n.constructor,t=e.precision;e.config({precision:1e9});var r=n.plus(new e(1));return r.s=-r.s||null,e.config({precision:t}),r}function $2e(n,e){if(n.isFinite()&&!n.isInteger()||e.isFinite()&&!e.isInteger())throw new Error("Integers expected in function bitOr");var t=n.constructor;if(n.isNaN()||e.isNaN())return new t(NaN);var r=new t(-1);return n.isZero()||e.eq(r)||n.eq(e)?e:e.isZero()||n.eq(r)?n:n.isFinite()&&e.isFinite()?SB(n,e,function(i,a){return i|a}):!n.isFinite()&&!n.isNegative()&&e.isNegative()||n.isNegative()&&!e.isNegative()&&!e.isFinite()?r:n.isNegative()&&e.isNegative()?n.isFinite()?n:e:n.isFinite()?e:n}function SB(n,e,t){var i,a,y,S,R,r=n.constructor,l=+(n.s<0),d=+(e.s<0);if(l){i=S8(zA(n));for(var h=0;h0;)t(y[--B],S[--q])===V&&(ee=ee.plus(ne)),ne=ne.times(he);for(;q>0;)t(R,S[--q])===V&&(ee=ee.plus(ne)),ne=ne.times(he);return r.config({precision:re}),0===V&&(ee.s=-ee.s),ee}function S8(n){for(var e=n.d,t=e[0]+"",r=1;r0)if(++d>p)for(d-=p;d--;)h+="0";else d1&&((null===y[B+1]||void 0===y[B+1])&&(y[B+1]=0),y[B+1]+=y[B]>>1,y[B]&=1)}return y.reverse()}function W2e(n,e){if(n.isFinite()&&!n.isInteger()||e.isFinite()&&!e.isInteger())throw new Error("Integers expected in function bitXor");var t=n.constructor;if(n.isNaN()||e.isNaN())return new t(NaN);if(n.isZero())return e;if(e.isZero())return n;if(n.eq(e))return new t(0);var r=new t(-1);return n.eq(r)?zA(e):e.eq(r)?zA(n):n.isFinite()&&e.isFinite()?SB(n,e,function(i,a){return i^a}):n.isFinite()||e.isFinite()?new t(n.isNegative()===e.isNegative()?1/0:-1/0):r}function G2e(n,e){if(n.isFinite()&&!n.isInteger()||e.isFinite()&&!e.isInteger())throw new Error("Integers expected in function leftShift");var t=n.constructor;return n.isNaN()||e.isNaN()||e.isNegative()&&!e.isZero()?new t(NaN):n.isZero()||e.isZero()?n:n.isFinite()||e.isFinite()?e.lt(55)?n.times(Math.pow(2,e.toNumber())+""):n.times(new t(2).pow(e)):new t(NaN)}function X2e(n,e){if(n.isFinite()&&!n.isInteger()||e.isFinite()&&!e.isInteger())throw new Error("Integers expected in function rightArithShift");var t=n.constructor;return n.isNaN()||e.isNaN()||e.isNegative()&&!e.isZero()?new t(NaN):n.isZero()||e.isZero()?n:e.isFinite()?e.lt(55)?n.div(Math.pow(2,e.toNumber())+"").floor():n.div(new t(2).pow(e)).floor():n.isNegative()?new t(-1):n.isFinite()?new t(0):new t(NaN)}var kw="number, number";function UX(n,e){if(!wr(n)||!wr(e))throw new Error("Integers expected in function bitAnd");return n&e}function HX(n){if(!wr(n))throw new Error("Integer expected in function bitNot");return~n}function $X(n,e){if(!wr(n)||!wr(e))throw new Error("Integers expected in function bitOr");return n|e}function WX(n,e){if(!wr(n)||!wr(e))throw new Error("Integers expected in function bitXor");return n^e}function GX(n,e){if(!wr(n)||!wr(e))throw new Error("Integers expected in function leftShift");return n<>e}function YX(n,e){if(!wr(n)||!wr(e))throw new Error("Integers expected in function rightLogShift");return n>>>e}UX.signature=kw,HX.signature="number",$X.signature=kw,WX.signature=kw,GX.signature=kw,XX.signature=kw,YX.signature=kw;var ZX=Ke("bitAnd",["typed","matrix","equalScalar","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,concat:i}=n,a=Bu({typed:e,equalScalar:r}),l=E8({typed:e,equalScalar:r}),d=Ks({typed:e,equalScalar:r});return e("bitAnd",{"number, number":UX,"BigNumber, BigNumber":H2e},qo({typed:e,matrix:t,concat:i})({SS:l,DS:a,Ss:d}))}),J2e=Ke("bitAnd",["typed","matrix","zeros","add","equalScalar","not","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,zeros:i,not:a,concat:l}=n,d=ZX({typed:e,matrix:t,equalScalar:r,zeros:i,not:a,concat:l});function h(p,y,S){var R=p[0].compile().evaluate(S);if(!Fd(R)){if(isNaN(R))return NaN;if(0===R||!1===R)return 0}var B=p[1].compile().evaluate(S);return d(R,B)}return h.rawArgs=!0,h},{isTransformFunction:!0}),JX=Ke("diff",["typed","matrix","subtract","number"],n=>{var{typed:e,matrix:t,subtract:r,number:i}=n;return e("diff",{"Array | Matrix":function(y){return Ur(y)?t(l(y.toArray())):l(y)},"Array | Matrix, number":function(y,S){if(!wr(S))throw new RangeError("Dimension must be a whole number");return Ur(y)?t(a(y.toArray(),S)):a(y,S)},"Array, BigNumber":e.referTo("Array,number",p=>(y,S)=>p(y,i(S))),"Matrix, BigNumber":e.referTo("Matrix,number",p=>(y,S)=>p(y,i(S)))});function a(p,y){if(Ur(p)&&(p=p.toArray()),!Array.isArray(p))throw RangeError("Array/Matrix does not have that many dimensions");if(y>0){var S=[];return p.forEach(R=>{S.push(a(R,y-1))}),S}if(0===y)return l(p);throw RangeError("Cannot have negative dimension")}function l(p){for(var y=[],S=p.length,R=1;R{var{typed:e,matrix:t,subtract:r,number:i,bignumber:a}=n,l=JX({typed:e,matrix:t,subtract:r,number:i,bignumber:a});return e("diff",{"...any":function(h){h=$g(h);try{return l.apply(null,h)}catch(p){throw Kl(p)}}})},{isTransformFunction:!0}),nY=Ke("min",["typed","config","numeric","smaller"],n=>{var{typed:e,config:t,numeric:r,smaller:i}=n;return e("min",{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(h,p){return _8(h,p.valueOf(),a)},"...":function(h){if(xw(h))throw new TypeError("Scalar values expected in function min");return l(h)}});function a(d,h){try{return i(d,h)?d:h}catch(p){throw Ql(p,"min",h)}}function l(d){var h;if(Fp(d,function(p){try{isNaN(p)&&"number"==typeof p?h=NaN:(void 0===h||i(p,h))&&(h=p)}catch(y){throw Ql(y,"min",p)}}),void 0===h)throw new Error("Cannot calculate min of an empty array");return"string"==typeof h&&(h=r(h,t.number)),h}}),aCe=Ke("min",["typed","config","numeric","smaller"],n=>{var{typed:e,config:t,numeric:r,smaller:i}=n,a=nY({typed:e,config:t,numeric:r,smaller:i});return e("min",{"...any":function(d){d=$g(d);try{return a.apply(null,d)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),iY=Ke("subset",["typed","matrix","zeros","add"],n=>{var{typed:e,matrix:t,zeros:r,add:i}=n;return e("subset",{"Matrix, Index":function(d,h){return vw(h)?t():(e8(d,h),d.subset(h))},"Array, Index":e.referTo("Matrix, Index",function(l){return function(d,h){var p=l(t(d),h);return h.isScalar()?p:p.valueOf()}}),"Object, Index":cCe,"string, Index":lCe,"Matrix, Index, any, any":function(d,h,p,y){return vw(h)?d:(e8(d,h),d.clone().subset(h,function a(l,d){if("string"==typeof l)throw new Error("can't boradcast a string");if(d._isScalar)return l;var h=d.size();if(!h.every(p=>p>0))return l;try{return i(l,r(h))}catch{return l}}(p,h),y))},"Array, Index, any, any":e.referTo("Matrix, Index, any, any",function(l){return function(d,h,p,y){var S=l(t(d),h,p,y);return S.isMatrix?S.valueOf():S}}),"Array, Index, any":e.referTo("Matrix, Index, any, any",function(l){return function(d,h,p){return l(t(d),h,p,void 0).valueOf()}}),"Matrix, Index, any":e.referTo("Matrix, Index, any, any",function(l){return function(d,h,p){return l(d,h,p,void 0)}}),"string, Index, string":oY,"string, Index, string, string":oY,"Object, Index, any":dCe})});function lCe(n,e){if(!X5(e))throw new TypeError("Index expected");if(vw(e))return"";if(e8(Array.from(n),e),1!==e.size().length)throw new Ii(e.size().length,1);var t=n.length;Oo(e.min()[0],t),Oo(e.max()[0],t);var r=e.dimension(0),i="";return r.forEach(function(a){i+=n.charAt(a)}),i}function oY(n,e,t,r){if(!e||!0!==e.isIndex)throw new TypeError("Index expected");if(vw(e))return n;if(e8(Array.from(n),e),1!==e.size().length)throw new Ii(e.size().length,1);if(void 0!==r){if("string"!=typeof r||1!==r.length)throw new TypeError("Single character expected as defaultValue")}else r=" ";var i=e.dimension(0);if(i.size()[0]!==t.length)throw new Ii(i.size()[0],t.length);var l=n.length;Oo(e.min()[0]),Oo(e.max()[0]);for(var d=[],h=0;hl)for(var p=l-1,y=d.length;p{var{typed:e,matrix:t,zeros:r,add:i}=n,a=iY({typed:e,matrix:t,zeros:r,add:i});return e("subset",{"...any":function(d){try{return a.apply(null,d)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),ly=Ke("matAlgo10xSids",["typed","DenseMatrix"],n=>{var{typed:e,DenseMatrix:t}=n;return function(i,a,l,d){var h=i._values,p=i._index,y=i._ptr,S=i._size,R=i._datatype;if(!h)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var V,B=S[0],q=S[1],ee=l;"string"==typeof R&&(V=R,a=e.convert(a,V),ee=e.find(l,[V,V]));for(var ne=[],he=[],re=[],ce=0;ce{var{typed:e,equalScalar:t}=n;return function(i,a,l){var d=i._values,h=i._index,p=i._ptr,y=i._size,S=i._datatype||void 0===i._data?i._datatype:i.getDataType(),R=a._values,B=a._index,q=a._ptr,V=a._size,ee=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(y.length!==V.length)throw new Ii(y.length,V.length);if(y[0]!==V[0]||y[1]!==V[1])throw new RangeError("Dimension mismatch. Matrix A ("+y+") must match Matrix B ("+V+")");var re,ne=y[0],he=y[1],ce=t,pe=0,oe=l;"string"==typeof S&&S===ee&&"mixed"!==S&&(re=S,ce=e.find(t,[re,re]),pe=e.convert(0,re),oe=e.find(l,[re,re]));var Ye,$e,Oe,Ie,Ze,Ae=d&&R?[]:void 0,De=[],Ce=[],_e=d&&R?[]:void 0,Re=d&&R?[]:void 0,Be=[],Ge=[];for($e=0;$e{var{typed:e}=n;return function(r,i,a,l){var d=r._data,h=r._size,p=r._datatype||r.getDataType(),y=i._values,S=i._index,R=i._ptr,B=i._size,q=i._datatype||void 0===i._data?i._datatype:i.getDataType();if(h.length!==B.length)throw new Ii(h.length,B.length);if(h[0]!==B[0]||h[1]!==B[1])throw new RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+B+")");if(!y)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var re,ce,V=h[0],ee=h[1],ne="string"==typeof p&&"mixed"!==p&&p===q?p:void 0,he=ne?e.find(a,[ne,ne]):a,pe=[];for(re=0;re{var{typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a}=n,l=Wg({typed:e}),d=AB({typed:e,equalScalar:r}),h=ly({typed:e,DenseMatrix:i});return e("bitOr",{"number, number":$X,"BigNumber, BigNumber":$2e},qo({typed:e,matrix:t,concat:a})({SS:d,DS:l,Ss:h}))}),CCe=Ke("bitOr",["typed","matrix","equalScalar","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a}=n,l=sY({typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a});function d(h,p,y){var S=h[0].compile().evaluate(y);if(!Fd(S)){if(isNaN(S))return NaN;if(-1===S)return-1;if(!0===S)return 1}var R=h[1].compile().evaluate(y);return l(S,R)}return d.rawArgs=!0,d},{isTransformFunction:!0}),A8="cumsum",lY=Ke(A8,["typed","add","unaryPlus"],n=>{var{typed:e,add:t,unaryPlus:r}=n;return e(A8,{Array:i,Matrix:function(p){return p.create(i(p.valueOf()))},"Array, number | BigNumber":l,"Matrix, number | BigNumber":function(p,y){return p.create(l(p.valueOf(),y))},"...":function(p){if(xw(p))throw new TypeError("All values expected to be scalar in function cumsum");return i(p)}});function i(h){try{return a(h)}catch(p){throw Ql(p,A8)}}function a(h){if(0===h.length)return[];for(var p=[r(h[0])],y=1;y=y.length)throw new Ru(p,y.length);try{return d(h,p)}catch(S){throw Ql(S,A8)}}function d(h,p){var y,S,R;if(p<=0){var B=h[0][0];if(Array.isArray(B)){for(R=oX(h),S=[],y=0;y{var{typed:e,add:t,unaryPlus:r}=n,i=lY({typed:e,add:t,unaryPlus:r});return e("cumsum",{"...any":function(l){if(2===l.length&&Fd(l[0])){var d=l[1];wi(d)?l[1]=d-1:Ci(d)&&(l[1]=d.minus(1))}try{return i.apply(null,l)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),MCe=Ke("index",["Index","getMatrixDataType"],n=>{var{Index:e,getMatrixDataType:t}=n;return function(){for(var i=[],a=0,l=arguments.length;a0?0:2;else if(d&&!0===d.isSet)d=d.map(function(p){return p-1});else if(fo(d)||Ur(d))"boolean"!==t(d)&&(d=d.map(function(p){return p-1}));else if(wi(d))d--;else if(Ci(d))d=d.toNumber()-1;else if("string"!=typeof d)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");i[a]=d}var h=new e;return e.apply(h,i),h}},{isTransformFunction:!0}),uY=Ke("sum",["typed","config","add","numeric"],n=>{var{typed:e,config:t,add:r,numeric:i}=n;return e("sum",{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function l(d,h){try{return _8(d,h,r)}catch(y){throw Ql(y,"sum")}},"...":function(h){if(xw(h))throw new TypeError("Scalar values expected in function sum");return a(h)}});function a(d){var h;return Fp(d,function(p){try{h=void 0===h?p:r(h,p)}catch(y){throw Ql(y,"sum",p)}}),void 0===h&&(h=i(0,t.number)),"string"==typeof h&&(h=i(h,t.number)),h}}),NCe=Ke("sum",["typed","config","add","numeric"],n=>{var{typed:e,config:t,add:r,numeric:i}=n,a=uY({typed:e,config:t,add:r,numeric:i});return e("sum",{"...any":function(d){d=$g(d);try{return a.apply(null,d)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),pY=Ke("range",["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],n=>{var{typed:e,config:t,matrix:r,bignumber:i,smaller:a,smallerEq:l,larger:d,largerEq:h,add:p,isPositive:y}=n;return e("range",{string:R,"string, boolean":R,"number, number":function(ee,ne){return S(B(ee,ne,1,!1))},"number, number, number":function(ee,ne,he){return S(B(ee,ne,he,!1))},"number, number, boolean":function(ee,ne,he){return S(B(ee,ne,1,he))},"number, number, number, boolean":function(ee,ne,he,re){return S(B(ee,ne,he,re))},"BigNumber, BigNumber":function(ee,ne){return S(B(ee,ne,new(0,ee.constructor)(1),!1))},"BigNumber, BigNumber, BigNumber":function(ee,ne,he){return S(B(ee,ne,he,!1))},"BigNumber, BigNumber, boolean":function(ee,ne,he){return S(B(ee,ne,new(0,ee.constructor)(1),he))},"BigNumber, BigNumber, BigNumber, boolean":function(ee,ne,he,re){return S(B(ee,ne,he,re))},"Unit, Unit, Unit":function(ee,ne,he){return S(B(ee,ne,he,!1))},"Unit, Unit, Unit, boolean":function(ee,ne,he,re){return S(B(ee,ne,he,re))}});function S(V){return"Matrix"===t.matrix?r?r(V):dX():V}function R(V,ee){var ne=function q(V){var ee=V.split(":"),ne=ee.map(function(re){return Number(re)}),he=ne.some(function(re){return isNaN(re)});if(he)return null;switch(ne.length){case 2:return{start:ne[0],end:ne[1],step:1};case 3:return{start:ne[0],end:ne[2],step:ne[1]};default:return null}}(V);if(!ne)throw new SyntaxError('String "'+V+'" is no valid range');return"BigNumber"===t.number?(void 0===i&&wB(),S(B(i(ne.start),i(ne.end),i(ne.step)))):S(B(ne.start,ne.end,ne.step,ee))}function B(V,ee,ne,he){for(var re=[],ce=y(ne)?he?l:a:he?h:d,pe=V;ce(pe,ee);)re.push(pe),pe=p(pe,ne);return re}}),PCe=Ke("range",["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],n=>{var{typed:e,config:t,matrix:r,bignumber:i,smaller:a,smallerEq:l,larger:d,largerEq:h,add:p,isPositive:y}=n,S=pY({typed:e,config:t,matrix:r,bignumber:i,smaller:a,smallerEq:l,larger:d,largerEq:h,add:p,isPositive:y});return e("range",{"...any":function(B){return"boolean"!=typeof B[B.length-1]&&B.push(!0),S.apply(null,B)}})},{isTransformFunction:!0}),gY=Ke("row",["typed","Index","matrix","range"],n=>{var{typed:e,Index:t,matrix:r,range:i}=n;return e("row",{"Matrix, number":a,"Array, number":function(d,h){return a(r(ci(d)),h).valueOf()}});function a(l,d){if(2!==l.size().length)throw new Error("Only two dimensional matrix is supported");Oo(d,l.size()[0]);var h=i(0,l.size()[1]),p=new t(d,h),y=l.subset(p);return Ur(y)?y:r([[y]])}}),VCe=Ke("row",["typed","Index","matrix","range"],n=>{var{typed:e,Index:t,matrix:r,range:i}=n,a=gY({typed:e,Index:t,matrix:r,range:i});return e("row",{"...any":function(d){var h=d.length-1,p=d[h];wi(p)&&(d[h]=p-1);try{return a.apply(null,d)}catch(y){throw Kl(y)}}})},{isTransformFunction:!0}),vY=Ke("column",["typed","Index","matrix","range"],n=>{var{typed:e,Index:t,matrix:r,range:i}=n;return e("column",{"Matrix, number":a,"Array, number":function(d,h){return a(r(ci(d)),h).valueOf()}});function a(l,d){if(2!==l.size().length)throw new Error("Only two dimensional matrix is supported");Oo(d,l.size()[1]);var h=i(0,l.size()[0]),p=new t(h,d),y=l.subset(p);return Ur(y)?y:r([[y]])}}),HCe=Ke("column",["typed","Index","matrix","range"],n=>{var{typed:e,Index:t,matrix:r,range:i}=n,a=vY({typed:e,Index:t,matrix:r,range:i});return e("column",{"...any":function(d){var h=d.length-1,p=d[h];wi(p)&&(d[h]=p-1);try{return a.apply(null,d)}catch(y){throw Kl(y)}}})},{isTransformFunction:!0}),_Y=Ke("mean",["typed","add","divide"],n=>{var{typed:e,add:t,divide:r}=n;return e("mean",{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function i(l,d){try{var h=_8(l,d,t),p=Array.isArray(l)?hi(l):l.size();return r(h,p[d])}catch(y){throw Ql(y,"mean")}},"...":function(d){if(xw(d))throw new TypeError("Scalar values expected in function mean");return a(d)}});function a(l){var d,h=0;if(Fp(l,function(p){try{d=void 0===d?p:t(d,p),h++}catch(y){throw Ql(y,"mean",p)}}),0===h)throw new Error("Cannot calculate the mean of an empty array");return r(d,h)}}),XCe=Ke("mean",["typed","add","divide"],n=>{var{typed:e,add:t,divide:r}=n,i=_Y({typed:e,add:t,divide:r});return e("mean",{"...any":function(l){l=$g(l);try{return i.apply(null,l)}catch(d){throw Kl(d)}}})},{isTransformFunction:!0}),xY="quantileSeq",wY=Ke(xY,["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],n=>{var{typed:e,bignumber:t,add:r,subtract:i,divide:a,multiply:l,partitionSelect:d,compare:h,isInteger:p,smaller:y,smallerEq:S,larger:R}=n,B=kB({typed:e,isInteger:p});return e(xY,{"Array | Matrix, number | BigNumber":(he,re)=>V(he,re,!1),"Array | Matrix, number | BigNumber, number":(he,re,ce)=>q(he,re,!1,ce,V),"Array | Matrix, number | BigNumber, boolean":V,"Array | Matrix, number | BigNumber, boolean, number":(he,re,ce,pe)=>q(he,re,ce,pe,V),"Array | Matrix, Array | Matrix":(he,re)=>ee(he,re,!1),"Array | Matrix, Array | Matrix, number":(he,re,ce)=>q(he,re,!1,ce,ee),"Array | Matrix, Array | Matrix, boolean":ee,"Array | Matrix, Array | Matrix, boolean, number":(he,re,ce,pe)=>q(he,re,ce,pe,ee)});function q(he,re,ce,pe,oe){return B(he,pe,Ae=>oe(Ae,re,ce))}function V(he,re,ce){var pe,oe=he.valueOf();if(y(re,0))throw new Error("N/prob must be non-negative");if(S(re,1))return wi(re)?ne(oe,re,ce):t(ne(oe,re,ce));if(R(re,1)){if(!p(re))throw new Error("N must be a positive integer");if(R(re,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var Ae=r(re,1);pe=[];for(var De=0;y(De,re);De++){var Ce=a(De+1,Ae);pe.push(ne(oe,Ce,ce))}return wi(re)?pe:t(pe)}}function ee(he,re,ce){for(var pe=he.valueOf(),oe=re.valueOf(),Ae=[],De=0;De0&&(_e=pe[Be])}return r(l(_e,i(1,Ce)),l(Re,Ce))}}),QCe=Ke("quantileSeq",["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],n=>{var{typed:e,bignumber:t,add:r,subtract:i,divide:a,multiply:l,partitionSelect:d,compare:h,isInteger:p,smaller:y,smallerEq:S,larger:R}=n,B=wY({typed:e,bignumber:t,add:r,subtract:i,divide:a,multiply:l,partitionSelect:d,compare:h,isInteger:p,smaller:y,smallerEq:S,larger:R});return e("quantileSeq",{"Array | Matrix, number | BigNumber":B,"Array | Matrix, number | BigNumber, number":(V,ee,ne)=>B(V,ee,q(ne)),"Array | Matrix, number | BigNumber, boolean":B,"Array | Matrix, number | BigNumber, boolean, number":(V,ee,ne,he)=>B(V,ee,ne,q(he)),"Array | Matrix, Array | Matrix":B,"Array | Matrix, Array | Matrix, number":(V,ee,ne)=>B(V,ee,q(ne)),"Array | Matrix, Array | Matrix, boolean":B,"Array | Matrix, Array | Matrix, boolean, number":(V,ee,ne,he)=>B(V,ee,ne,q(he))});function q(V){return $g([[],V])[1]}},{isTransformFunction:!0}),DB="unbiased",CY="variance",kY=Ke(CY,["typed","add","subtract","multiply","divide","apply","isNaN"],n=>{var{typed:e,add:t,subtract:r,multiply:i,divide:a,apply:l,isNaN:d}=n;return e(CY,{"Array | Matrix":function(S){return h(S,DB)},"Array | Matrix, string":h,"Array | Matrix, number | BigNumber":function(S,R){return p(S,R,DB)},"Array | Matrix, number | BigNumber, string":p,"...":function(S){return h(S,DB)}});function h(y,S){var R,B=0;if(0===y.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(Fp(y,function(ee){try{R=void 0===R?ee:t(R,ee),B++}catch(ne){throw Ql(ne,"variance",ee)}}),0===B)throw new Error("Cannot calculate variance of an empty array");var q=a(R,B);if(R=void 0,Fp(y,function(ee){var ne=r(ee,q);R=void 0===R?i(ne,ne):t(R,i(ne,ne))}),d(R))return R;switch(S){case"uncorrected":return a(R,B);case"biased":return a(R,B+1);case"unbiased":var V=Ci(R)?R.mul(0):0;return 1===B?V:a(R,B-1);default:throw new Error('Unknown normalization "'+S+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function p(y,S,R){try{if(0===y.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return l(y,S,B=>h(B,R))}catch(B){throw Ql(B,"variance")}}}),EY="variance",tke=Ke(EY,["typed","add","subtract","multiply","divide","apply","isNaN"],n=>{var{typed:e,add:t,subtract:r,multiply:i,divide:a,apply:l,isNaN:d}=n,h=kY({typed:e,add:t,subtract:r,multiply:i,divide:a,apply:l,isNaN:d});return e(EY,{"...any":function(y){y=$g(y);try{return h.apply(null,y)}catch(S){throw Kl(S)}}})},{isTransformFunction:!0}),AY=Ke("std",["typed","map","sqrt","variance"],n=>{var{typed:e,map:t,sqrt:r,variance:i}=n;return e("std",{"Array | Matrix":a,"Array | Matrix, string":a,"Array | Matrix, number | BigNumber":a,"Array | Matrix, number | BigNumber, string":a,"...":function(d){return a(d)}});function a(l,d){if(0===l.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var h=i.apply(null,arguments);return Fd(h)?t(h,r):r(h)}catch(p){throw p instanceof TypeError&&p.message.includes(" variance")?new TypeError(p.message.replace(" variance"," std")):p}}}),oke=Ke("std",["typed","map","sqrt","variance"],n=>{var{typed:e,map:t,sqrt:r,variance:i}=n,a=AY({typed:e,map:t,sqrt:r,variance:i});return e("std",{"...any":function(d){d=$g(d);try{return a.apply(null,d)}catch(h){throw Kl(h)}}})},{isTransformFunction:!0}),Ew=9e15,Gg=1e9,MB="0123456789abcdef",D8="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",M8="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",TB={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Ew,maxE:Ew,crypto:!1},fi=!0,T8="[DecimalError] ",Xg=T8+"Invalid argument: ",MY=T8+"Precision limit exceeded",TY=T8+"crypto unavailable",IY="[object Decimal]",yl=Math.floor,ps=Math.pow,ake=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ske=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,lke=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,NY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Lu=1e7,Xr=7,dke=D8.length-1,IB=M8.length-1,Mn={toStringTag:IY};function Zs(n){var e,t,r,i=n.length-1,a="",l=n[0];if(i>0){for(a+=l,e=1;et)throw Error(Xg+n)}function VA(n,e,t,r){var i,a,l,d;for(a=n[0];a>=10;a/=10)--e;return--e<0?(e+=Xr,i=0):(i=Math.ceil((e+1)/Xr),e%=Xr),a=ps(10,Xr-e),d=n[i]%a|0,null==r?e<3?(0==e?d=d/100|0:1==e&&(d=d/10|0),l=t<4&&99999==d||t>3&&49999==d||5e4==d||0==d):l=(t<4&&d+1==a||t>3&&d+1==a/2)&&(n[i+1]/a/100|0)==ps(10,e-2)-1||(d==a/2||0==d)&&!(n[i+1]/a/100|0):e<4?(0==e?d=d/1e3|0:1==e?d=d/100|0:2==e&&(d=d/10|0),l=(r||t<4)&&9999==d||!r&&t>3&&4999==d):l=((r||t<4)&&d+1==a||!r&&t>3&&d+1==a/2)&&(n[i+1]/a/1e3|0)==ps(10,e-3)-1,l}function I8(n,e,t){for(var r,a,i=[0],l=0,d=n.length;lt-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/t|0,i[r]%=t)}return i.reverse()}Mn.absoluteValue=Mn.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),Fr(n)},Mn.ceil=function(){return Fr(new this.constructor(this),this.e+1,2)},Mn.clampedTo=Mn.clamp=function(n,e){var r=this,i=r.constructor;if(n=new i(n),e=new i(e),!n.s||!e.s)return new i(NaN);if(n.gt(e))throw Error(Xg+e);return r.cmp(n)<0?n:r.cmp(e)>0?e:new i(r)},Mn.comparedTo=Mn.cmp=function(n){var e,t,r,i,a=this,l=a.d,d=(n=new a.constructor(n)).d,h=a.s,p=n.s;if(!l||!d)return h&&p?h!==p?h:l===d?0:!l^h<0?1:-1:NaN;if(!l[0]||!d[0])return l[0]?h:d[0]?-p:0;if(h!==p)return h;if(a.e!==n.e)return a.e>n.e^h<0?1:-1;for(e=0,t=(r=l.length)<(i=d.length)?r:i;ed[e]^h<0?1:-1;return r===i?0:r>i^h<0?1:-1},Mn.cosine=Mn.cos=function(){var n,e,t=this,r=t.constructor;return t.d?t.d[0]?(n=r.precision,e=r.rounding,r.precision=n+Math.max(t.e,t.sd())+Xr,r.rounding=1,t=function uke(n,e){var t,r,i;if(e.isZero())return e;r=e.d.length,r<32?(t=Math.ceil(r/3),i=(1/R8(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),n.precision+=t,e=Sw(n,1,e.times(i),new n(1));for(var a=t;a--;){var l=e.times(e);e=l.times(l).minus(l).times(8).plus(1)}return n.precision-=t,e}(r,LY(r,t)),r.precision=n,r.rounding=e,Fr(2==Pp||3==Pp?t.neg():t,n,e,!0)):new r(1):new r(NaN)},Mn.cubeRoot=Mn.cbrt=function(){var n,e,t,r,i,a,l,d,h,p,y=this,S=y.constructor;if(!y.isFinite()||y.isZero())return new S(y);for(fi=!1,(a=y.s*ps(y.s*y,1/3))&&Math.abs(a)!=1/0?r=new S(a.toString()):(t=Zs(y.d),(a=((n=y.e)-t.length+1)%3)&&(t+=1==a||-2==a?"0":"00"),a=ps(t,1/3),n=yl((n+1)/3)-(n%3==(n<0?-1:2)),a==1/0?t="5e"+n:t=(t=a.toExponential()).slice(0,t.indexOf("e")+1)+n,(r=new S(t)).s=y.s),l=(n=S.precision)+3;;)if(p=(h=(d=r).times(d).times(d)).plus(y),r=Xo(p.plus(y).times(d),p.plus(h),l+2,1),Zs(d.d).slice(0,l)===(t=Zs(r.d)).slice(0,l)){if("9999"!=(t=t.slice(l-3,l+1))&&(i||"4999"!=t)){(!+t||!+t.slice(1)&&"5"==t.charAt(0))&&(Fr(r,n+1,1),e=!r.times(r).times(r).eq(y));break}if(!i&&(Fr(d,n+1,0),d.times(d).times(d).eq(y))){r=d;break}l+=4,i=1}return fi=!0,Fr(r,n,S.rounding,e)},Mn.decimalPlaces=Mn.dp=function(){var n,e=this.d,t=NaN;if(e){if(t=((n=e.length-1)-yl(this.e/Xr))*Xr,n=e[n])for(;n%10==0;n/=10)t--;t<0&&(t=0)}return t},Mn.dividedBy=Mn.div=function(n){return Xo(this,new this.constructor(n))},Mn.dividedToIntegerBy=Mn.divToInt=function(n){var t=this.constructor;return Fr(Xo(this,new t(n),0,1,1),t.precision,t.rounding)},Mn.equals=Mn.eq=function(n){return 0===this.cmp(n)},Mn.floor=function(){return Fr(new this.constructor(this),this.e+1,3)},Mn.greaterThan=Mn.gt=function(n){return this.cmp(n)>0},Mn.greaterThanOrEqualTo=Mn.gte=function(n){var e=this.cmp(n);return 1==e||0===e},Mn.hyperbolicCosine=Mn.cosh=function(){var n,e,t,r,i,a=this,l=a.constructor,d=new l(1);if(!a.isFinite())return new l(a.s?1/0:NaN);if(a.isZero())return d;t=l.precision,r=l.rounding,l.precision=t+Math.max(a.e,a.sd())+4,l.rounding=1,(i=a.d.length)<32?e=(1/R8(4,n=Math.ceil(i/3))).toString():(n=16,e="2.3283064365386962890625e-10"),a=Sw(l,1,a.times(e),new l(1),!0);for(var h,p=n,y=new l(8);p--;)h=a.times(a),a=d.minus(h.times(y.minus(h.times(y))));return Fr(a,l.precision=t,l.rounding=r,!0)},Mn.hyperbolicSine=Mn.sinh=function(){var n,e,t,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(e=a.precision,t=a.rounding,a.precision=e+Math.max(i.e,i.sd())+4,a.rounding=1,(r=i.d.length)<3)i=Sw(a,2,i,i,!0);else{n=(n=1.4*Math.sqrt(r))>16?16:0|n,i=Sw(a,2,i=i.times(1/R8(5,n)),i,!0);for(var l,d=new a(5),h=new a(16),p=new a(20);n--;)l=i.times(i),i=i.times(d.plus(l.times(h.times(l).plus(p))))}return a.precision=e,a.rounding=t,Fr(i,e,t,!0)},Mn.hyperbolicTangent=Mn.tanh=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+7,r.rounding=1,Xo(t.sinh(),t.cosh(),r.precision=n,r.rounding=e)):new r(t.s)},Mn.inverseCosine=Mn.acos=function(){var n,e=this,t=e.constructor,r=e.abs().cmp(1),i=t.precision,a=t.rounding;return-1!==r?0===r?e.isNeg()?zu(t,i,a):new t(0):new t(NaN):e.isZero()?zu(t,i+4,a).times(.5):(t.precision=i+6,t.rounding=1,e=e.asin(),n=zu(t,i+4,a).times(.5),t.precision=i,t.rounding=a,n.minus(e))},Mn.inverseHyperbolicCosine=Mn.acosh=function(){var n,e,t=this,r=t.constructor;return t.lte(1)?new r(t.eq(1)?0:NaN):t.isFinite()?(n=r.precision,e=r.rounding,r.precision=n+Math.max(Math.abs(t.e),t.sd())+4,r.rounding=1,fi=!1,t=t.times(t).minus(1).sqrt().plus(t),fi=!0,r.precision=n,r.rounding=e,t.ln()):new r(t)},Mn.inverseHyperbolicSine=Mn.asinh=function(){var n,e,t=this,r=t.constructor;return!t.isFinite()||t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+2*Math.max(Math.abs(t.e),t.sd())+6,r.rounding=1,fi=!1,t=t.times(t).plus(1).sqrt().plus(t),fi=!0,r.precision=n,r.rounding=e,t.ln())},Mn.inverseHyperbolicTangent=Mn.atanh=function(){var n,e,t,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=a.precision,e=a.rounding,r=i.sd(),Math.max(r,n)<2*-i.e-1?Fr(new a(i),n,e,!0):(a.precision=t=r-i.e,i=Xo(i.plus(1),new a(1).minus(i),t+n,1),a.precision=n+4,a.rounding=1,i=i.ln(),a.precision=n,a.rounding=e,i.times(.5))):new a(NaN)},Mn.inverseSine=Mn.asin=function(){var n,e,t,r,i=this,a=i.constructor;return i.isZero()?new a(i):(e=i.abs().cmp(1),t=a.precision,r=a.rounding,-1!==e?0===e?((n=zu(a,t+4,r).times(.5)).s=i.s,n):new a(NaN):(a.precision=t+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=t,a.rounding=r,i.times(2)))},Mn.inverseTangent=Mn.atan=function(){var n,e,t,r,i,a,l,d,h,p=this,y=p.constructor,S=y.precision,R=y.rounding;if(p.isFinite()){if(p.isZero())return new y(p);if(p.abs().eq(1)&&S+4<=IB)return(l=zu(y,S+4,R).times(.25)).s=p.s,l}else{if(!p.s)return new y(NaN);if(S+4<=IB)return(l=zu(y,S+4,R).times(.5)).s=p.s,l}for(y.precision=d=S+10,y.rounding=1,n=t=Math.min(28,d/Xr+2|0);n;--n)p=p.div(p.times(p).plus(1).sqrt().plus(1));for(fi=!1,e=Math.ceil(d/Xr),r=1,h=p.times(p),l=new y(p),i=p;-1!==n;)if(i=i.times(h),a=l.minus(i.div(r+=2)),i=i.times(h),void 0!==(l=a.plus(i.div(r+=2))).d[e])for(n=e;l.d[n]===a.d[n]&&n--;);return t&&(l=l.times(2<this.d.length-2},Mn.isNaN=function(){return!this.s},Mn.isNegative=Mn.isNeg=function(){return this.s<0},Mn.isPositive=Mn.isPos=function(){return this.s>0},Mn.isZero=function(){return!!this.d&&0===this.d[0]},Mn.lessThan=Mn.lt=function(n){return this.cmp(n)<0},Mn.lessThanOrEqualTo=Mn.lte=function(n){return this.cmp(n)<1},Mn.logarithm=Mn.log=function(n){var e,t,r,i,a,l,d,h,p=this,y=p.constructor,S=y.precision,R=y.rounding;if(null==n)n=new y(10),e=!0;else{if(t=(n=new y(n)).d,n.s<0||!t||!t[0]||n.eq(1))return new y(NaN);e=n.eq(10)}if(t=p.d,p.s<0||!t||!t[0]||p.eq(1))return new y(t&&!t[0]?-1/0:1!=p.s?NaN:t?0:1/0);if(e)if(t.length>1)a=!0;else{for(i=t[0];i%10==0;)i/=10;a=1!==i}if(fi=!1,l=Kg(p,d=S+5),r=e?O8(y,d+10):Kg(n,d),VA((h=Xo(l,r,d,1)).d,i=S,R))do{if(l=Kg(p,d+=10),r=e?O8(y,d+10):Kg(n,d),h=Xo(l,r,d,1),!a){+Zs(h.d).slice(i+1,i+15)+1==1e14&&(h=Fr(h,S+1,0));break}}while(VA(h.d,i+=10,R));return fi=!0,Fr(h,S,R)},Mn.minus=Mn.sub=function(n){var e,t,r,i,a,l,d,h,p,y,S,R,B=this,q=B.constructor;if(n=new q(n),!B.d||!n.d)return B.s&&n.s?B.d?n.s=-n.s:n=new q(n.d||B.s!==n.s?B:NaN):n=new q(NaN),n;if(B.s!=n.s)return n.s=-n.s,B.plus(n);if(p=B.d,R=n.d,d=q.precision,h=q.rounding,!p[0]||!R[0]){if(R[0])n.s=-n.s;else{if(!p[0])return new q(3===h?-0:0);n=new q(B)}return fi?Fr(n,d,h):n}if(t=yl(n.e/Xr),y=yl(B.e/Xr),p=p.slice(),a=y-t){for((S=a<0)?(e=p,a=-a,l=R.length):(e=R,t=y,l=p.length),a>(r=Math.max(Math.ceil(d/Xr),l)+2)&&(a=r,e.length=1),e.reverse(),r=a;r--;)e.push(0);e.reverse()}else{for((S=(r=p.length)<(l=R.length))&&(l=r),r=0;r0;--r)p[l++]=0;for(r=R.length;r>a;){if(p[--r](l=(a=Math.ceil(d/Xr))>l?a+1:l+1)&&(i=l,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for((l=p.length)-(i=y.length)<0&&(i=l,t=y,y=p,p=t),e=0;i;)e=(p[--i]=p[i]+y[i]+e)/Lu|0,p[i]%=Lu;for(e&&(p.unshift(e),++r),l=p.length;0==p[--l];)p.pop();return n.d=p,n.e=N8(p,r),fi?Fr(n,d,h):n},Mn.precision=Mn.sd=function(n){var e,t=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(Xg+n);return t.d?(e=OY(t.d),n&&t.e+1>e&&(e=t.e+1)):e=NaN,e},Mn.round=function(){var n=this,e=n.constructor;return Fr(new e(n),n.e+1,e.rounding)},Mn.sine=Mn.sin=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+Math.max(t.e,t.sd())+Xr,r.rounding=1,t=function fke(n,e){var t,r=e.d.length;if(r<3)return e.isZero()?e:Sw(n,2,e,e);t=1.4*Math.sqrt(r),t=t>16?16:0|t,e=e.times(1/R8(5,t)),e=Sw(n,2,e,e);for(var i,a=new n(5),l=new n(16),d=new n(20);t--;)i=e.times(e),e=e.times(a.plus(i.times(l.times(i).minus(d))));return e}(r,LY(r,t)),r.precision=n,r.rounding=e,Fr(Pp>2?t.neg():t,n,e,!0)):new r(NaN)},Mn.squareRoot=Mn.sqrt=function(){var n,e,t,r,i,a,l=this,d=l.d,h=l.e,p=l.s,y=l.constructor;if(1!==p||!d||!d[0])return new y(!p||p<0&&(!d||d[0])?NaN:d?l:1/0);for(fi=!1,0==(p=Math.sqrt(+l))||p==1/0?(((e=Zs(d)).length+h)%2==0&&(e+="0"),p=Math.sqrt(e),h=yl((h+1)/2)-(h<0||h%2),p==1/0?e="5e"+h:e=(e=p.toExponential()).slice(0,e.indexOf("e")+1)+h,r=new y(e)):r=new y(p.toString()),t=(h=y.precision)+3;;)if(r=(a=r).plus(Xo(l,a,t+2,1)).times(.5),Zs(a.d).slice(0,t)===(e=Zs(r.d)).slice(0,t)){if("9999"!=(e=e.slice(t-3,t+1))&&(i||"4999"!=e)){(!+e||!+e.slice(1)&&"5"==e.charAt(0))&&(Fr(r,h+1,1),n=!r.times(r).eq(l));break}if(!i&&(Fr(a,h+1,0),a.times(a).eq(l))){r=a;break}t+=4,i=1}return fi=!0,Fr(r,h,y.rounding,n)},Mn.tangent=Mn.tan=function(){var n,e,t=this,r=t.constructor;return t.isFinite()?t.isZero()?new r(t):(n=r.precision,e=r.rounding,r.precision=n+10,r.rounding=1,(t=t.sin()).s=1,t=Xo(t,new r(1).minus(t.times(t)).sqrt(),n+10,0),r.precision=n,r.rounding=e,Fr(2==Pp||4==Pp?t.neg():t,n,e,!0)):new r(NaN)},Mn.times=Mn.mul=function(n){var e,t,r,i,a,l,d,h,p,y=this,S=y.constructor,R=y.d,B=(n=new S(n)).d;if(n.s*=y.s,!(R&&R[0]&&B&&B[0]))return new S(!n.s||R&&!R[0]&&!B||B&&!B[0]&&!R?NaN:R&&B?0*n.s:n.s/0);for(t=yl(y.e/Xr)+yl(n.e/Xr),(h=R.length)<(p=B.length)&&(a=R,R=B,B=a,l=h,h=p,p=l),a=[],r=l=h+p;r--;)a.push(0);for(r=p;--r>=0;){for(e=0,i=h+r;i>r;)d=a[i]+B[r]*R[i-r-1]+e,a[i--]=d%Lu|0,e=d/Lu|0;a[i]=(a[i]+e)%Lu|0}for(;!a[--l];)a.pop();return e?++t:a.shift(),n.d=a,n.e=N8(a,t),fi?Fr(n,S.precision,S.rounding):n},Mn.toBinary=function(n,e){return RB(this,2,n,e)},Mn.toDecimalPlaces=Mn.toDP=function(n,e){var t=this,r=t.constructor;return t=new r(t),void 0===n?t:(_c(n,0,Gg),void 0===e?e=r.rounding:_c(e,0,8),Fr(t,n+t.e+1,e))},Mn.toExponential=function(n,e){var t,r=this,i=r.constructor;return void 0===n?t=jh(r,!0):(_c(n,0,Gg),void 0===e?e=i.rounding:_c(e,0,8),t=jh(r=Fr(new i(r),n+1,e),!0,n+1)),r.isNeg()&&!r.isZero()?"-"+t:t},Mn.toFixed=function(n,e){var t,r,i=this,a=i.constructor;return void 0===n?t=jh(i):(_c(n,0,Gg),void 0===e?e=a.rounding:_c(e,0,8),t=jh(r=Fr(new a(i),n+i.e+1,e),!1,n+r.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t},Mn.toFraction=function(n){var e,t,r,i,a,l,d,h,p,y,S,R,B=this,q=B.d,V=B.constructor;if(!q)return new V(B);if(p=t=new V(1),r=h=new V(0),l=(a=(e=new V(r)).e=OY(q)-B.e-1)%Xr,e.d[0]=ps(10,l<0?Xr+l:l),null==n)n=a>0?e:p;else{if(!(d=new V(n)).isInt()||d.lt(p))throw Error(Xg+d);n=d.gt(e)?a>0?e:p:d}for(fi=!1,d=new V(Zs(q)),y=V.precision,V.precision=a=q.length*Xr*2;S=Xo(d,e,0,1,1),1!=(i=t.plus(S.times(r))).cmp(n);)t=r,r=i,i=p,p=h.plus(S.times(i)),h=i,i=e,e=d.minus(S.times(i)),d=i;return i=Xo(n.minus(t),r,0,1,1),h=h.plus(i.times(p)),t=t.plus(i.times(r)),h.s=p.s=B.s,R=Xo(p,r,a,1).minus(B).abs().cmp(Xo(h,t,a,1).minus(B).abs())<1?[p,r]:[h,t],V.precision=y,fi=!0,R},Mn.toHexadecimal=Mn.toHex=function(n,e){return RB(this,16,n,e)},Mn.toNearest=function(n,e){var t=this,r=t.constructor;if(t=new r(t),null==n){if(!t.d)return t;n=new r(1),e=r.rounding}else{if(n=new r(n),void 0===e?e=r.rounding:_c(e,0,8),!t.d)return n.s?t:n;if(!n.d)return n.s&&(n.s=t.s),n}return n.d[0]?(fi=!1,t=Xo(t,n,0,e,1).times(n),fi=!0,Fr(t)):(n.s=t.s,t=n),t},Mn.toNumber=function(){return+this},Mn.toOctal=function(n,e){return RB(this,8,n,e)},Mn.toPower=Mn.pow=function(n){var e,t,r,i,a,l,d=this,h=d.constructor,p=+(n=new h(n));if(!(d.d&&n.d&&d.d[0]&&n.d[0]))return new h(ps(+d,p));if((d=new h(d)).eq(1))return d;if(r=h.precision,a=h.rounding,n.eq(1))return Fr(d,r,a);if((e=yl(n.e/Xr))>=n.d.length-1&&(t=p<0?-p:p)<=9007199254740991)return i=RY(h,d,t,r),n.s<0?new h(1).div(i):Fr(i,r,a);if((l=d.s)<0){if(eh.maxE+1||e0?l/0:0):(fi=!1,h.rounding=d.s=1,t=Math.min(12,(e+"").length),(i=NB(n.times(Kg(d,r+t)),r)).d&&(VA((i=Fr(i,r+5,1)).d,r,a)&&(e=r+10,+Zs((i=Fr(NB(n.times(Kg(d,e+t)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Fr(i,r+1,0)))),i.s=l,fi=!0,h.rounding=a,Fr(i,r,a))},Mn.toPrecision=function(n,e){var t,r=this,i=r.constructor;return void 0===n?t=jh(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(_c(n,1,Gg),void 0===e?e=i.rounding:_c(e,0,8),t=jh(r=Fr(new i(r),n,e),n<=r.e||r.e<=i.toExpNeg,n)),r.isNeg()&&!r.isZero()?"-"+t:t},Mn.toSignificantDigits=Mn.toSD=function(n,e){var r=this.constructor;return void 0===n?(n=r.precision,e=r.rounding):(_c(n,1,Gg),void 0===e?e=r.rounding:_c(e,0,8)),Fr(new r(this),n,e)},Mn.toString=function(){var n=this,e=n.constructor,t=jh(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+t:t},Mn.truncated=Mn.trunc=function(){return Fr(new this.constructor(this),this.e+1,1)},Mn.valueOf=Mn.toJSON=function(){var n=this,e=n.constructor,t=jh(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+t:t};var Xo=function(){function n(r,i,a){var l,d=0,h=r.length;for(r=r.slice();h--;)l=r[h]*i+d,r[h]=l%a|0,d=l/a|0;return d&&r.unshift(d),r}function e(r,i,a,l){var d,h;if(a!=l)h=a>l?1:-1;else for(d=h=0;di[d]?1:-1;break}return h}function t(r,i,a,l){for(var d=0;a--;)r[a]-=d,d=r[a]1;)r.shift()}return function(r,i,a,l,d,h){var p,y,S,R,B,q,V,ee,ne,he,re,ce,pe,oe,Ae,De,Ce,_e,Re,Be,Ge=r.constructor,Ye=r.s==i.s?1:-1,$e=r.d,Oe=i.d;if(!($e&&$e[0]&&Oe&&Oe[0]))return new Ge(r.s&&i.s&&($e?!Oe||$e[0]!=Oe[0]:Oe)?$e&&0==$e[0]||!Oe?0*Ye:Ye/0:NaN);for(h?(B=1,y=r.e-i.e):(h=Lu,B=Xr,y=yl(r.e/B)-yl(i.e/B)),Re=Oe.length,Ce=$e.length,he=(ne=new Ge(Ye)).d=[],S=0;Oe[S]==($e[S]||0);S++);if(Oe[S]>($e[S]||0)&&y--,null==a?(oe=a=Ge.precision,l=Ge.rounding):oe=d?a+(r.e-i.e)+1:a,oe<0)he.push(1),q=!0;else{if(oe=oe/B+2|0,S=0,1==Re){for(R=0,Oe=Oe[0],oe++;(S1&&(Oe=n(Oe,R,h),$e=n($e,R,h),Re=Oe.length,Ce=$e.length),De=Re,ce=(re=$e.slice(0,Re)).length;ce=h/2&&++_e;do{R=0,(p=e(Oe,re,Re,ce))<0?(pe=re[0],Re!=ce&&(pe=pe*h+(re[1]||0)),(R=pe/_e|0)>1?(R>=h&&(R=h-1),1==(p=e(V=n(Oe,R,h),re,ee=V.length,ce=re.length))&&(R--,t(V,Re=10;R/=10)S++;ne.e=S+y*B-1,Fr(ne,d?a+ne.e+1:a,l,q)}return ne}}();function Fr(n,e,t,r){var i,a,l,d,h,p,y,S,R,B=n.constructor;e:if(null!=e){if(!(S=n.d))return n;for(i=1,d=S[0];d>=10;d/=10)i++;if((a=e-i)<0)a+=Xr,l=e,h=(y=S[R=0])/ps(10,i-l-1)%10|0;else if((R=Math.ceil((a+1)/Xr))>=(d=S.length)){if(!r)break e;for(;d++<=R;)S.push(0);y=h=0,i=1,l=(a%=Xr)-Xr+1}else{for(y=d=S[R],i=1;d>=10;d/=10)i++;h=(l=(a%=Xr)-Xr+i)<0?0:y/ps(10,i-l-1)%10|0}if(r=r||e<0||void 0!==S[R+1]||(l<0?y:y%ps(10,i-l-1)),p=t<4?(h||r)&&(0==t||t==(n.s<0?3:2)):h>5||5==h&&(4==t||r||6==t&&(a>0?l>0?y/ps(10,i-l):0:S[R-1])%10&1||t==(n.s<0?8:7)),e<1||!S[0])return S.length=0,p?(e-=n.e+1,S[0]=ps(10,(Xr-e%Xr)%Xr),n.e=-e||0):S[0]=n.e=0,n;if(0==a?(S.length=R,d=1,R--):(S.length=R+1,d=ps(10,Xr-a),S[R]=l>0?(y/ps(10,i-l)%ps(10,l)|0)*d:0),p)for(;;){if(0==R){for(a=1,l=S[0];l>=10;l/=10)a++;for(l=S[0]+=d,d=1;l>=10;l/=10)d++;a!=d&&(n.e++,S[0]==Lu&&(S[0]=1));break}if(S[R]+=d,S[R]!=Lu)break;S[R--]=0,d=1}for(a=S.length;0===S[--a];)S.pop()}return fi&&(n.e>B.maxE?(n.d=null,n.e=NaN):n.e0?a=a.charAt(0)+"."+a.slice(1)+Yg(r):l>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(n.e<0?"e":"e+")+n.e):i<0?(a="0."+Yg(-i-1)+a,t&&(r=t-l)>0&&(a+=Yg(r))):i>=l?(a+=Yg(i+1-l),t&&(r=t-i-1)>0&&(a=a+"."+Yg(r))):((r=i+1)0&&(i+1===l&&(a+="."),a+=Yg(r))),a}function N8(n,e){var t=n[0];for(e*=Xr;t>=10;t/=10)e++;return e}function O8(n,e,t){if(e>dke)throw fi=!0,t&&(n.precision=t),Error(MY);return Fr(new n(D8),e,1,!0)}function zu(n,e,t){if(e>IB)throw Error(MY);return Fr(new n(M8),e,t,!0)}function OY(n){var e=n.length-1,t=e*Xr+1;if(e=n[e]){for(;e%10==0;e/=10)t--;for(e=n[0];e>=10;e/=10)t++}return t}function Yg(n){for(var e="";n--;)e+="0";return e}function RY(n,e,t,r){var i,a=new n(1),l=Math.ceil(r/Xr+4);for(fi=!1;;){if(t%2&&(zY((a=a.times(e)).d,l)&&(i=!0)),0===(t=yl(t/2))){t=a.d.length-1,i&&0===a.d[t]&&++a.d[t];break}zY((e=e.times(e)).d,l)}return fi=!0,a}function FY(n){return 1&n.d[n.d.length-1]}function PY(n,e,t){for(var r,i=new n(e[0]),a=0;++a17)return new R(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==e?(fi=!1,h=q):h=e,d=new R(.03125);n.e>-2;)n=n.times(d),S+=5;for(h+=r=Math.log(ps(2,S))/Math.LN10*2+5|0,t=a=l=new R(1),R.precision=h;;){if(a=Fr(a.times(n),h,1),t=t.times(++y),Zs((d=l.plus(Xo(a,t,h,1))).d).slice(0,h)===Zs(l.d).slice(0,h)){for(i=S;i--;)l=Fr(l.times(l),h,1);if(null!=e)return R.precision=q,l;if(!(p<3&&VA(l.d,h-r,B,p)))return Fr(l,R.precision=q,B,fi=!0);R.precision=h+=10,t=a=d=new R(1),y=0,p++}l=d}}function Kg(n,e){var t,r,i,a,l,d,h,p,y,S,R,B=1,V=n,ee=V.d,ne=V.constructor,he=ne.rounding,re=ne.precision;if(V.s<0||!ee||!ee[0]||!V.e&&1==ee[0]&&1==ee.length)return new ne(ee&&!ee[0]?-1/0:1!=V.s?NaN:ee?0:V);if(null==e?(fi=!1,y=re):y=e,ne.precision=y+=10,r=(t=Zs(ee)).charAt(0),!(Math.abs(a=V.e)<15e14))return p=O8(ne,y+2,re).times(a+""),V=Kg(new ne(r+"."+t.slice(1)),y-10).plus(p),ne.precision=re,null==e?Fr(V,re,he,fi=!0):V;for(;r<7&&1!=r||1==r&&t.charAt(1)>3;)r=(t=Zs((V=V.times(n)).d)).charAt(0),B++;for(a=V.e,r>1?(V=new ne("0."+t),a++):V=new ne(r+"."+t.slice(1)),S=V,h=l=V=Xo(V.minus(1),V.plus(1),y,1),R=Fr(V.times(V),y,1),i=3;;){if(l=Fr(l.times(R),y,1),Zs((p=h.plus(Xo(l,new ne(i),y,1))).d).slice(0,y)===Zs(h.d).slice(0,y)){if(h=h.times(2),0!==a&&(h=h.plus(O8(ne,y+2,re).times(a+""))),h=Xo(h,new ne(B),y,1),null!=e)return ne.precision=re,h;if(!VA(h.d,y-10,he,d))return Fr(h,ne.precision=re,he,fi=!0);ne.precision=y+=10,p=l=V=Xo(S.minus(1),S.plus(1),y,1),R=Fr(V.times(V),y,1),i=d=1}h=p,i+=2}}function BY(n){return String(n.s*n.s/0)}function OB(n,e){var t,r,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(t<0&&(t=r),t+=+e.slice(r+1),e=e.substring(0,r)):t<0&&(t=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,n.e=t=t-r-1,n.d=[],r=(t+1)%Xr,t<0&&(r+=Xr),rn.constructor.maxE?(n.d=null,n.e=NaN):n.e=0&&(y=y.replace(".",""),(R=new B(1)).e=y.length-l,R.d=I8(jh(R),10,i),R.e=R.d.length),a=h=(S=I8(y,10,i)).length;0==S[--h];)S.pop();if(S[0]){if(l<0?a--:((n=new B(n)).d=S,n.e=a,S=(n=Xo(n,R,t,r,0,i)).d,a=n.e,p=DY),l=S[t],d=i/2,p=p||void 0!==S[t+1],p=r<4?(void 0!==l||p)&&(0===r||r===(n.s<0?3:2)):l>d||l===d&&(4===r||p||6===r&&1&S[t-1]||r===(n.s<0?8:7)),S.length=t,p)for(;++S[--t]>i-1;)S[t]=0,t||(++a,S.unshift(1));for(h=S.length;!S[h-1];--h);for(l=0,y="";l1)if(16==e||8==e){for(l=16==e?4:3,--h;h%l;h++)y+="0";for(h=(S=I8(y,i,e)).length;!S[h-1];--h);for(l=1,y="1.";lh)for(a-=h;a--;)y+="0";else ae)return n.length=e,!0}function pke(n){return new this(n).abs()}function mke(n){return new this(n).acos()}function gke(n){return new this(n).acosh()}function bke(n,e){return new this(n).plus(e)}function vke(n){return new this(n).asin()}function yke(n){return new this(n).asinh()}function _ke(n){return new this(n).atan()}function xke(n){return new this(n).atanh()}function wke(n,e){n=new this(n),e=new this(e);var t,r=this.precision,i=this.rounding,a=r+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(t=e.s<0?zu(this,r,i):new this(0)).s=n.s:!n.d||e.isZero()?(t=zu(this,a,1).times(.5)).s=n.s:e.s<0?(this.precision=a,this.rounding=1,t=this.atan(Xo(n,e,a,1)),e=zu(this,a,1),this.precision=r,this.rounding=i,t=n.s<0?t.minus(e):t.plus(e)):t=this.atan(Xo(n,e,a,1)):(t=zu(this,a,1).times(e.s>0?.25:.75)).s=n.s:t=new this(NaN),t}function Cke(n){return new this(n).cbrt()}function kke(n){return Fr(n=new this(n),n.e+1,2)}function Eke(n,e,t){return new this(n).clamp(e,t)}function Ske(n){if(!n||"object"!=typeof n)throw Error(T8+"Object expected");var e,t,r,i=!0===n.defaults,a=["precision",1,Gg,"rounding",0,8,"toExpNeg",-Ew,0,"toExpPos",0,Ew,"maxE",0,Ew,"minE",-Ew,0,"modulo",0,9];for(e=0;e=a[e+1]&&r<=a[e+2]))throw Error(Xg+t+": "+r);this[t]=r}if(t="crypto",i&&(this[t]=TB[t]),void 0!==(r=n[t])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Xg+t+": "+r);if(r){if(!(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)))throw Error(TY);this[t]=!0}else this[t]=!1}return this}function Ake(n){return new this(n).cos()}function Dke(n){return new this(n).cosh()}function Mke(n,e){return new this(n).div(e)}function Tke(n){return new this(n).exp()}function Ike(n){return Fr(n=new this(n),n.e+1,3)}function Nke(){var n,e,t=new this(0);for(fi=!1,n=0;n=429e7?e[a]=crypto.getRandomValues(new Uint32Array(1))[0]:d[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(TY);for(e=crypto.randomBytes(r*=4);a=214e7?crypto.randomBytes(4).copy(e,a):(d.push(i%1e7),a+=4);a=r/4}else for(;a=10;i/=10)r++;ri.maxE?(p.e=NaN,p.d=null):a.e=10;d/=10)l++;return void(fi?l>i.maxE?(p.e=NaN,p.d=null):l-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),NY.test(e))return OB(n,e)}else if("Infinity"===e||"NaN"===e)return+e||(n.s=NaN),n.e=NaN,n.d=null,n;if(ske.test(e))t=16,e=e.toLowerCase();else if(ake.test(e))t=2;else{if(!lke.test(e))throw Error(Xg+e);t=8}for((a=e.search(/p/i))>0?(h=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),l=(a=e.indexOf("."))>=0,r=n.constructor,l&&(a=(d=(e=e.replace(".","")).length)-a,i=RY(r,new r(t),a,2*a)),a=y=(p=I8(e,t,Lu)).length-1;0===p[a];--a)p.pop();return a<0?new r(0*n.s):(n.e=N8(p,y),n.d=p,fi=!1,l&&(n=Xo(n,i,4*d)),h&&(n=n.times(Math.abs(h)<54?ps(2,h):qA.pow(2,h))),fi=!0,n)}(p,a)}if(i.prototype=Mn,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Ske,i.clone=VY,i.isDecimal=qY,i.abs=pke,i.acos=mke,i.acosh=gke,i.add=bke,i.asin=vke,i.asinh=yke,i.atan=_ke,i.atanh=xke,i.atan2=wke,i.cbrt=Cke,i.ceil=kke,i.clamp=Eke,i.cos=Ake,i.cosh=Dke,i.div=Mke,i.exp=Tke,i.floor=Ike,i.hypot=Nke,i.ln=Oke,i.log=Rke,i.log10=Pke,i.log2=Fke,i.max=Bke,i.min=Lke,i.mod=zke,i.mul=Vke,i.pow=qke,i.random=jke,i.round=Uke,i.sign=Hke,i.sin=$ke,i.sinh=Wke,i.sqrt=Gke,i.sub=Xke,i.sum=Yke,i.tan=Kke,i.tanh=Zke,i.trunc=Qke,void 0===n&&(n={}),n&&!0!==n.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e{var{on:e,config:t}=n,r=F8.clone({precision:t.precision,modulo:F8.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type="BigNumber",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},r.fromJSON=function(i){return new r(i.value)},e&&e("config",function(i,a){i.precision!==a.precision&&r.config({precision:i.precision})}),r},{isClass:!0}),Qs=mt(9121),iEe=Ke("Complex",[],()=>(Object.defineProperty(Qs,"name",{value:"Complex"}),Qs.prototype.constructor=Qs,Qs.prototype.type="Complex",Qs.prototype.isComplex=!0,Qs.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},Qs.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},Qs.prototype.format=function(n){var t=this.im,r=this.re,i=sy(this.re,n),a=sy(this.im,n),l=wi(n)?n:n?n.precision:null;if(null!==l){var d=Math.pow(10,-l);Math.abs(r/t)e.re?1:n.ree.im?1:n.im1&&void 0!==arguments[1]?arguments[1]:{};return t=t??Number.POSITIVE_INFINITY,e=e??JSON.stringify,function r(){"object"!=typeof r.cache&&(r.cache={values:new Map,lru:aEe(t||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a!0),mEe=Ke("false",[],()=>!1),gEe=Ke("null",[],()=>null),bEe=td("Infinity",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(1/0):1/0}),vEe=td("NaN",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(NaN):NaN}),yEe=td("pi",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?FB(t):dEe}),_Ee=td("tau",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?cEe(t):uEe}),xEe=td("e",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?sEe(t):hEe}),wEe=td("phi",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?lEe(t):1.618033988749895}),CEe=td("LN2",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(2).ln():Math.LN2}),kEe=td("LN10",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(10).ln():Math.LN10}),EEe=td("LOG2E",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(1).div(new t(2).ln()):Math.LOG2E}),SEe=td("LOG10E",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(1).div(new t(10).ln()):Math.LOG10E}),AEe=td("SQRT1_2",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t("0.5").sqrt():Math.SQRT1_2}),DEe=td("SQRT2",["config","?BigNumber"],n=>{var{config:e,BigNumber:t}=n;return"BigNumber"===e.number?new t(2).sqrt():Math.SQRT2}),MEe=td("i",["Complex"],n=>{var{Complex:e}=n;return e.I}),TEe=Ke("version",[],()=>"12.4.3");function td(n,e,t){return Ke(n,e,t,{recreateOnConfigChange:!0})}var IEe=pi("speedOfLight","299792458","m s^-1"),NEe=pi("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),OEe=pi("planckConstant","6.62607015e-34","J s"),REe=pi("reducedPlanckConstant","1.0545718176461565e-34","J s"),FEe=pi("magneticConstant","1.25663706212e-6","N A^-2"),PEe=pi("electricConstant","8.8541878128e-12","F m^-1"),BEe=pi("vacuumImpedance","376.730313667","ohm"),LEe=pi("coulomb","8.987551792261171e9","N m^2 C^-2"),zEe=pi("elementaryCharge","1.602176634e-19","C"),VEe=pi("bohrMagneton","9.2740100783e-24","J T^-1"),qEe=pi("conductanceQuantum","7.748091729863649e-5","S"),jEe=pi("inverseConductanceQuantum","12906.403729652257","ohm"),UEe=pi("magneticFluxQuantum","2.0678338484619295e-15","Wb"),HEe=pi("nuclearMagneton","5.0507837461e-27","J T^-1"),$Ee=pi("klitzing","25812.807459304513","ohm"),WEe=pi("bohrRadius","5.29177210903e-11","m"),GEe=pi("classicalElectronRadius","2.8179403262e-15","m"),XEe=pi("electronMass","9.1093837015e-31","kg"),YEe=pi("fermiCoupling","1.1663787e-5","GeV^-2"),KEe=B8("fineStructure",.0072973525693),ZEe=pi("hartreeEnergy","4.3597447222071e-18","J"),QEe=pi("protonMass","1.67262192369e-27","kg"),JEe=pi("deuteronMass","3.3435830926e-27","kg"),eSe=pi("neutronMass","1.6749271613e-27","kg"),tSe=pi("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),nSe=pi("rydberg","10973731.568160","m^-1"),rSe=pi("thomsonCrossSection","6.6524587321e-29","m^2"),iSe=B8("weakMixingAngle",.2229),oSe=B8("efimovFactor",22.7),aSe=pi("atomicMass","1.66053906660e-27","kg"),sSe=pi("avogadro","6.02214076e23","mol^-1"),lSe=pi("boltzmann","1.380649e-23","J K^-1"),cSe=pi("faraday","96485.33212331001","C mol^-1"),dSe=pi("firstRadiation","3.7417718521927573e-16","W m^2"),uSe=pi("loschmidt","2.686780111798444e25","m^-3"),hSe=pi("gasConstant","8.31446261815324","J K^-1 mol^-1"),fSe=pi("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),pSe=pi("molarVolume","0.022413969545014137","m^3 mol^-1"),mSe=B8("sackurTetrode",-1.16487052358),gSe=pi("secondRadiation","0.014387768775039337","m K"),bSe=pi("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),vSe=pi("wienDisplacement","2.897771955e-3","m K"),ySe=pi("molarMass","0.99999999965e-3","kg mol^-1"),_Se=pi("molarMassC12","11.9999999958e-3","kg mol^-1"),xSe=pi("gravity","9.80665","m s^-2"),wSe=pi("planckLength","1.616255e-35","m"),CSe=pi("planckMass","2.176435e-8","kg"),kSe=pi("planckTime","5.391245e-44","s"),ESe=pi("planckCharge","1.87554603778e-18","C"),SSe=pi("planckTemperature","1.416785e+32","K");function pi(n,e,t){return Ke(n,["config","Unit","BigNumber"],i=>{var{config:a,Unit:l,BigNumber:d}=i,p=new l("BigNumber"===a.number?new d(e):parseFloat(e),t);return p.fixPrefix=!0,p})}function B8(n,e){return Ke(n,["config","BigNumber"],r=>{var{config:i,BigNumber:a}=r;return"BigNumber"===i.number?new a(e):e})}var Bp=mt(5228),MSe=Ke("Fraction",[],()=>(Object.defineProperty(Bp,"name",{value:"Fraction"}),Bp.prototype.constructor=Bp,Bp.prototype.type="Fraction",Bp.prototype.isFraction=!0,Bp.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},Bp.fromJSON=function(n){return new Bp(n)},Bp),{isClass:!0}),NSe=Ke("Matrix",[],()=>{function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator")}return n.prototype.type="Matrix",n.prototype.isMatrix=!0,n.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},n.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},n.prototype.create=function(e,t){throw new Error("Cannot invoke create on a Matrix interface")},n.prototype.subset=function(e,t,r){throw new Error("Cannot invoke subset on a Matrix interface")},n.prototype.get=function(e){throw new Error("Cannot invoke get on a Matrix interface")},n.prototype.set=function(e,t,r){throw new Error("Cannot invoke set on a Matrix interface")},n.prototype.resize=function(e,t){throw new Error("Cannot invoke resize on a Matrix interface")},n.prototype.reshape=function(e,t){throw new Error("Cannot invoke reshape on a Matrix interface")},n.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},n.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},n.prototype.map=function(e,t){throw new Error("Cannot invoke map on a Matrix interface")},n.prototype.forEach=function(e){throw new Error("Cannot invoke forEach on a Matrix interface")},n.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},n.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},n.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},n.prototype.format=function(e){throw new Error("Cannot invoke format on a Matrix interface")},n.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},n},{isClass:!0}),FSe=Ke("Range",[],()=>{function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");var i=null!=e,a=null!=t,l=null!=r;if(i)if(Ci(e))e=e.toNumber();else if("number"!=typeof e)throw new TypeError("Parameter start must be a number");if(a)if(Ci(t))t=t.toNumber();else if("number"!=typeof t)throw new TypeError("Parameter end must be a number");if(l)if(Ci(r))r=r.toNumber();else if("number"!=typeof r)throw new TypeError("Parameter step must be a number");this.start=i?parseFloat(e):0,this.end=a?parseFloat(t):0,this.step=l?parseFloat(r):1}return n.prototype.type="Range",n.prototype.isRange=!0,n.parse=function(e){if("string"!=typeof e)return null;var r=e.split(":").map(function(a){return parseFloat(a)});if(r.some(function(a){return isNaN(a)}))return null;switch(r.length){case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[2],r[1]);default:return null}},n.prototype.clone=function(){return new n(this.start,this.end,this.step)},n.prototype.size=function(){var e=0,t=this.start,r=this.step,a=this.end-t;return Hg(r)===Hg(a)?e=Math.ceil(a/r):0===a&&(e=0),isNaN(e)&&(e=0),[e]},n.prototype.min=function(){var e=this.size()[0];if(e>0)return this.step>0?this.start:this.start+(e-1)*this.step},n.prototype.max=function(){var e=this.size()[0];if(e>0)return this.step>0?this.start+(e-1)*this.step:this.start},n.prototype.forEach=function(e){var t=this.start,r=this.step,i=this.end,a=0;if(r>0)for(;ti;)e(t,[a],this),t+=r,a++},n.prototype.map=function(e){var t=[];return this.forEach(function(r,i,a){t[i[0]]=e(r,i,a)}),t},n.prototype.toArray=function(){var e=[];return this.forEach(function(t,r){e[r[0]]=t}),e},n.prototype.valueOf=function(){return this.toArray()},n.prototype.format=function(e){var t=sy(this.start,e);return 1!==this.step&&(t+=":"+sy(this.step,e)),t+=":"+sy(this.end,e)},n.prototype.toString=function(){return this.format()},n.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},n.fromJSON=function(e){return new n(e.start,e.end,e.step)},n},{isClass:!0}),LSe=Ke("ResultSet",[],()=>{function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this.entries=e||[]}return n.prototype.type="ResultSet",n.prototype.isResultSet=!0,n.prototype.valueOf=function(){return this.entries},n.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},n.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},n.fromJSON=function(e){return new n(e.entries)},n},{isClass:!0}),qSe=Ke("DenseMatrix",["Matrix"],n=>{var{Matrix:e}=n;function t(y,S){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(S&&!vl(S))throw new Error("Invalid datatype: "+S);if(Ur(y))"DenseMatrix"===y.type?(this._data=ci(y._data),this._size=ci(y._size),this._datatype=S||y._datatype):(this._data=y.toArray(),this._size=y.size(),this._datatype=S||y._datatype);else if(y&&fo(y.data)&&fo(y.size))this._data=y.data,this._size=y.size,HG(this._data,this._size),this._datatype=S||y.datatype;else if(fo(y))this._data=p(y),this._size=hi(this._data),HG(this._data,this._size),this._datatype=S;else{if(y)throw new TypeError("Unsupported type of data ("+No(y)+")");this._data=[],this._size=[0],this._datatype=S}}function i(y,S,R,B){var q=B===R-1,V=S.dimension(B);return q?V.map(function(ee){return Oo(ee,y.length),y[ee]}).valueOf():V.map(function(ee){return Oo(ee,y.length),i(y[ee],S,R,B+1)}).valueOf()}function l(y,S,R,B,q){var V=q===B-1,ee=S.dimension(q);V?ee.forEach(function(ne,he){Oo(ne),y[ne]=R[he[0]]}):ee.forEach(function(ne,he){Oo(ne),l(y[ne],S,R[he[0]],B,q+1)})}function d(y,S,R){if(0===S.length){for(var B=y._data;fo(B);)B=B[0];return B}return y._size=S.slice(0),y._data=yw(y._data,y._size,R),y}function h(y,S,R){for(var B=y._size.slice(0),q=!1;B.lengthB[V]&&(B[V]=S[V],q=!0);q&&d(y,B,R)}function p(y){return Ur(y)?p(y.valueOf()):fo(y)?y.map(p):y}return t.prototype=new e,t.prototype.createDenseMatrix=function(y,S){return new t(y,S)},Object.defineProperty(t,"name",{value:"DenseMatrix"}),t.prototype.constructor=t,t.prototype.type="DenseMatrix",t.prototype.isDenseMatrix=!0,t.prototype.getDataType=function(){return PA(this._data,No)},t.prototype.storage=function(){return"dense"},t.prototype.datatype=function(){return this._datatype},t.prototype.create=function(y,S){return new t(y,S)},t.prototype.subset=function(y,S,R){switch(arguments.length){case 1:return function r(y,S){if(!X5(S))throw new TypeError("Invalid index");var R=S.isScalar();if(R)return y.get(S.min());var B=S.size();if(B.length!==y._size.length)throw new Ii(B.length,y._size.length);for(var q=S.min(),V=S.max(),ee=0,ne=y._size.length;ee");h(y,S.max().map(function(oe){return oe+1}),B);var ce=q.length,pe=0;l(y._data,S,R,ce,pe)}return y}(this,y,S,R);default:throw new SyntaxError("Wrong number of arguments")}},t.prototype.get=function(y){if(!fo(y))throw new TypeError("Array expected");if(y.length!==this._size.length)throw new Ii(y.length,this._size.length);for(var S=0;SArray.isArray(V)&&1===V.length?V[0]:V);return d(R?this.clone():this,B,S)},t.prototype.reshape=function(y,S){var R=S?this.clone():this;R._data=pB(R._data,y);var B=R._size.reduce((q,V)=>q*V);return R._size=mB(y,B),R},t.prototype.clone=function(){return new t({data:ci(this._data),size:ci(this._size),datatype:this._datatype})},t.prototype.size=function(){return this._size.slice(0)},t.prototype.map=function(y){var S=this,R=jY(y),q=function ee(ne,he){return fo(ne)?ne.map(function(re,ce){return ee(re,he.concat(ce))}):1===R?y(ne):2===R?y(ne,he):y(ne,he,S)}(this._data,[]);return new t(q,void 0!==this._datatype?PA(q,No):void 0)},t.prototype.forEach=function(y){var S=this;!function B(q,V){fo(q)?q.forEach(function(ee,ne){B(ee,V.concat(ne))}):y(q,V,S)}(this._data,[])},t.prototype[Symbol.iterator]=function*(){yield*function*S(R,B){if(fo(R))for(var q=0;q[re[ne]]);S.push(new t(he,y._datatype))},V=0;V0?y:0,R=y<0?-y:0,B=this._size[0],q=this._size[1],V=Math.min(B-R,q-S),ee=[],ne=0;ne0?R:0,V=R<0?-R:0,ee=y[0],ne=y[1],he=Math.min(ee-V,ne-q);if(fo(S)){if(S.length!==he)throw new Error("Invalid value array length");re=function(De){return S[De]}}else if(Ur(S)){var ce=S.size();if(1!==ce.length||ce[0]!==he)throw new Error("Invalid matrix length");re=function(De){return S.get([De])}}else re=function(){return S};B||(B=Ci(re(0))?re(0).mul(0):0);var pe=[];if(y.length>0){pe=yw(pe,y,B);for(var oe=0;oefunction(e,t){return"number"!=typeof t||isFinite(t)&&!isNaN(t)?t:{mathjs:"number",value:String(t)}}),UY=function(){return UY=ww.create,ww},WSe=Ke("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:i,Fraction:a}=e,l=UY();return l.clear(),l.addTypes([{name:"number",test:wi},{name:"Complex",test:Np},{name:"BigNumber",test:Ci},{name:"Fraction",test:IA},{name:"Unit",test:Rd},{name:"identifier",test:d=>vl&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(d)},{name:"string",test:vl},{name:"Chain",test:_G},{name:"Array",test:fo},{name:"Matrix",test:Ur},{name:"DenseMatrix",test:G5},{name:"SparseMatrix",test:iy},{name:"Range",test:oB},{name:"Index",test:X5},{name:"boolean",test:$be},{name:"ResultSet",test:Wbe},{name:"Help",test:yG},{name:"function",test:Gbe},{name:"Date",test:Xbe},{name:"RegExp",test:Ybe},{name:"null",test:Kbe},{name:"undefined",test:Zbe},{name:"AccessorNode",test:oy},{name:"ArrayNode",test:Pd},{name:"AssignmentNode",test:Qbe},{name:"BlockNode",test:Jbe},{name:"ConditionalNode",test:eve},{name:"ConstantNode",test:Zi},{name:"FunctionNode",test:Ug},{name:"FunctionAssignmentNode",test:NA},{name:"IndexNode",test:fw},{name:"Node",test:So},{name:"ObjectNode",test:K5},{name:"OperatorNode",test:Qa},{name:"ParenthesisNode",test:Op},{name:"RangeNode",test:tve},{name:"RelationalNode",test:nve},{name:"SymbolNode",test:Ds},{name:"Map",test:cB},{name:"Object",test:Y5}]),l.addConversions([{from:"number",to:"BigNumber",convert:function(h){if(t||PB(h),function Dve(n){return n.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}(h)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+h+"). Use function bignumber(x) to convert to BigNumber.");return new t(h)}},{from:"number",to:"Complex",convert:function(h){return r||L8(h),new r(h,0)}},{from:"BigNumber",to:"Complex",convert:function(h){return r||L8(h),new r(h.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(h){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(h){return r||L8(h),new r(h.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(h){a||BB(h);var p=new a(h);if(p.valueOf()!==h)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+h+"). Use function fraction(x) to convert to Fraction.");return p}},{from:"string",to:"number",convert:function(h){var p=Number(h);if(isNaN(p))throw new Error('Cannot convert "'+h+'" to a number');return p}},{from:"string",to:"BigNumber",convert:function(h){t||PB(h);try{return new t(h)}catch{throw new Error('Cannot convert "'+h+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(h){a||BB(h);try{return new a(h)}catch{throw new Error('Cannot convert "'+h+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(h){r||L8(h);try{return new r(h)}catch{throw new Error('Cannot convert "'+h+'" to Complex')}}},{from:"boolean",to:"number",convert:function(h){return+h}},{from:"boolean",to:"BigNumber",convert:function(h){return t||PB(h),new t(+h)}},{from:"boolean",to:"Fraction",convert:function(h){return a||BB(h),new a(+h)}},{from:"boolean",to:"string",convert:function(h){return String(h)}},{from:"Array",to:"Matrix",convert:function(h){return i||function GSe(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new i(h)}},{from:"Matrix",to:"Array",convert:function(h){return h.valueOf()}}]),l.onMismatch=(d,h,p)=>{var y=l.createError(d,h,p);if(["wrongType","mismatch"].includes(y.data.category)&&1===h.length&&Fd(h[0])&&p.some(R=>!R.params.includes(","))){var S=new TypeError("Function '".concat(d,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(d,")'."));throw S.data=y.data,S}throw y},l.onMismatch=(d,h,p)=>{var y=l.createError(d,h,p);if(["wrongType","mismatch"].includes(y.data.category)&&1===h.length&&Fd(h[0])&&p.some(R=>!R.params.includes(","))){var S=new TypeError("Function '".concat(d,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(d,")'."));throw S.data=y.data,S}throw y},l});function PB(n){throw new Error("Cannot convert value ".concat(n," into a BigNumber: no class 'BigNumber' provided"))}function L8(n){throw new Error("Cannot convert value ".concat(n," into a Complex number: no class 'Complex' provided"))}function BB(n){throw new Error("Cannot convert value ".concat(n," into a Fraction, no class 'Fraction' provided."))}var xc="number",Lp="number, number";function HY(n){return Math.abs(n)}function $Y(n,e){return n+e}function WY(n,e){return n-e}function GY(n,e){return n*e}function XY(n){return-n}function YY(n){return n}function UA(n){return kve(n)}function KY(n){return n*n*n}function ZY(n){return Math.exp(n)}function QY(n){return Eve(n)}function JY(n,e){if(!wr(n)||!wr(e))throw new Error("Parameters in function lcm must be integer numbers");if(0===n||0===e)return 0;for(var t,r=n*e;0!==e;)e=n%(t=e),n=t;return Math.abs(r/n)}function eK(n){return Cve(n)}function tK(n){return wve(n)}function nK(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=e<0;if(t&&(e=-e),0===e)throw new Error("Root must be non-zero");if(n<0&&Math.abs(e)%2!=1)throw new Error("Root must be odd when a is negative.");if(0===n)return t?1/0:0;if(!isFinite(n))return t?0:n;var r=Math.pow(Math.abs(n),1/e);return r=n<0?-r:r,t?1/r:r}function LB(n){return Hg(n)}function rK(n){return n*n}function iK(n,e){var t,r,i,a=0,l=1,d=1,h=0;if(!wr(n)||!wr(e))throw new Error("Parameters in function xgcd must be integer numbers");for(;e;)i=n-(r=Math.floor(n/e))*e,t=a,a=l-r*a,l=t,t=d,d=h-r*d,h=t,n=e,e=i;return n<0?[-n,-l,-h]:[n,n?l:0,h]}function oK(n,e){return n*n<1&&e===1/0||n*n>1&&e===-1/0?0:Math.pow(n,e)}function HA(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!wr(e)||e<0||e>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(OG(n,e))}HY.signature=xc,$Y.signature=Lp,WY.signature=Lp,GY.signature=Lp,function XSe(n,e){return n/e}.signature=Lp,XY.signature=xc,YY.signature=xc,UA.signature=xc,KY.signature=xc,ZY.signature=xc,QY.signature=xc,function YSe(n,e){if(!wr(n)||!wr(e))throw new Error("Parameters in function gcd must be integer numbers");for(var t;0!==e;)t=n%e,n=e,e=t;return n<0?-n:n}.signature=Lp,JY.signature=Lp,eK.signature=xc,tK.signature=xc,function ZSe(n){return IG(n)}.signature=xc,function QSe(n,e){return 0===e?n:n-e*Math.floor(n/e)}.signature=Lp,LB.signature=xc,function JSe(n){return Math.sqrt(n)}.signature=xc,rK.signature=xc,iK.signature=Lp,oK.signature=Lp,function eAe(n){return Math.abs(n)}.signature=xc;var aK="unaryPlus",nAe=Ke(aK,["typed","config","BigNumber"],n=>{var{typed:e,config:t,BigNumber:r}=n;return e(aK,{number:YY,Complex:function(a){return a},BigNumber:function(a){return a},Fraction:function(a){return a},Unit:function(a){return a.clone()},"Array | Matrix":e.referToSelf(i=>a=>Ni(a,i,!0)),"boolean | string":function(a){return"BigNumber"===t.number?new r(+a):+a}})}),iAe=Ke("abs",["typed"],n=>{var{typed:e}=n;return e("abs",{number:HY,"Complex | BigNumber | Fraction | Unit":t=>t.abs(),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t,!0))})}),aAe=Ke("acos",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("acos",{number:function(a){return a>=-1&&a<=1||t.predictable?Math.acos(a):new r(a,0).acos()},Complex:function(a){return a.acos()},BigNumber:function(a){return a.acos()}})}),_a="number";function cK(n){return Tve(n)}function dK(n){return Math.atan(1/n)}function uK(n){return isFinite(n)?(Math.log((n+1)/n)+Math.log(n/(n-1)))/2:0}function hK(n){return Math.asin(1/n)}function fK(n){var e=1/n;return Math.log(e+Math.sqrt(e*e+1))}function pK(n){return Math.acos(1/n)}function mK(n){var e=1/n,t=Math.sqrt(e*e-1);return Math.log(t+e)}function gK(n){return Ive(n)}function bK(n){return Nve(n)}function vK(n){return 1/Math.tan(n)}function yK(n){var e=Math.exp(2*n);return(e+1)/(e-1)}function _K(n){return 1/Math.sin(n)}function xK(n){return 0===n?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(n)-Math.exp(-n)))*Hg(n)}function wK(n){return 1/Math.cos(n)}function CK(n){return 2/(Math.exp(n)+Math.exp(-n))}function kK(n){return Ove(n)}(function lAe(n){return Math.acos(n)}).signature=_a,cK.signature=_a,dK.signature=_a,uK.signature=_a,hK.signature=_a,fK.signature=_a,pK.signature=_a,mK.signature=_a,function cAe(n){return Math.asin(n)}.signature=_a,gK.signature=_a,function dAe(n){return Math.atan(n)}.signature=_a,function uAe(n,e){return Math.atan2(n,e)}.signature="number, number",bK.signature=_a,function hAe(n){return Math.cos(n)}.signature=_a,function fAe(n){return FG(n)}.signature=_a,vK.signature=_a,yK.signature=_a,_K.signature=_a,xK.signature=_a,wK.signature=_a,CK.signature=_a,function pAe(n){return Math.sin(n)}.signature=_a,kK.signature=_a,function mAe(n){return Math.tan(n)}.signature=_a,function gAe(n){return PG(n)}.signature=_a;var vAe=Ke("acot",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("acot",{number:dK,Complex:function(i){return i.acot()},BigNumber:function(i){return new t(1).div(i).atan()}})}),_Ae=Ke("acsc",["typed","config","Complex","BigNumber"],n=>{var{typed:e,config:t,Complex:r,BigNumber:i}=n;return e("acsc",{number:function(l){return l<=-1||l>=1||t.predictable?hK(l):new r(l,0).acsc()},Complex:function(l){return l.acsc()},BigNumber:function(l){return new i(1).div(l).asin()}})}),AK="addScalar",wAe=Ke(AK,["typed"],n=>{var{typed:e}=n;return e(AK,{"number, number":$Y,"Complex, Complex":function(r,i){return r.add(i)},"BigNumber, BigNumber":function(r,i){return r.plus(i)},"Fraction, Fraction":function(r,i){return r.add(i)},"Unit, Unit":e.referToSelf(t=>(r,i)=>{if(null===r.value||void 0===r.value)throw new Error("Parameter x contains a unit with undefined value");if(null===i.value||void 0===i.value)throw new Error("Parameter y contains a unit with undefined value");if(!r.equalBase(i))throw new Error("Units do not match");var a=r.clone();return a.value=e.find(t,[a.valueType(),i.valueType()])(a.value,i.value),a.fixPrefix=!1,a})})}),kAe=Ke("arg",["typed"],n=>{var{typed:e}=n;return e("arg",{number:function(r){return Math.atan2(0,r)},BigNumber:function(r){return r.constructor.atan2(0,r)},Complex:function(r){return r.arg()},"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),SAe=Ke("asech",["typed","config","Complex","BigNumber"],n=>{var{typed:e,config:t,Complex:r,BigNumber:i}=n;return e("asech",{number:function(l){if(l<=1&&l>=-1||t.predictable){var d=1/l;if(d>0||t.predictable)return mK(l);var h=Math.sqrt(d*d-1);return new r(Math.log(h-d),Math.PI)}return new r(l,0).asech()},Complex:function(l){return l.asech()},BigNumber:function(l){return new i(1).div(l).acosh()}})}),MAe=Ke("asinh",["typed"],n=>{var{typed:e}=n;return e("asinh",{number:gK,Complex:function(r){return r.asinh()},BigNumber:function(r){return r.asinh()}})}),NAe=Ke("atan",["typed"],n=>{var{typed:e}=n;return e("atan",{number:function(r){return Math.atan(r)},Complex:function(r){return r.atan()},BigNumber:function(r){return r.atan()}})}),RAe=Ke("atanh",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("atanh",{number:function(a){return a<=1&&a>=-1||t.predictable?bK(a):new r(a,0).atanh()},Complex:function(a){return a.atanh()},BigNumber:function(a){return a.atanh()}})}),BAe=Ke("bignumber",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("bignumber",{"":function(){return new t(0)},number:function(i){return new t(i+"")},string:function(i){var a=i.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(a){var l=a[2],d=t(a[1]),h=new t(2).pow(Number(l));if(d.gt(h.sub(1)))throw new SyntaxError('String "'.concat(i,'" is out of range'));var p=new t(2).pow(Number(l)-1);return d.gte(p)?d.sub(h):d}return new t(i)},BigNumber:function(i){return i},Unit:e.referToSelf(r=>i=>{var a=i.clone();return a.value=r(i.value),a}),Fraction:function(i){return new t(i.n).div(i.d).times(i.s)},null:function(i){return new t(0)},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))})}),zAe=Ke("bitNot",["typed"],n=>{var{typed:e}=n;return e("bitNot",{number:HX,BigNumber:zA,"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),NK="boolean",qAe=Ke(NK,["typed"],n=>{var{typed:e}=n;return e(NK,{"":function(){return!1},boolean:function(r){return r},number:function(r){return!!r},null:function(r){return!1},BigNumber:function(r){return!r.isZero()},string:function(r){var i=r.toLowerCase();if("true"===i)return!0;if("false"===i)return!1;var a=Number(r);if(""!==r&&!isNaN(a))return!!a;throw new Error('Cannot convert "'+r+'" to a boolean')},"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),UAe=Ke("clone",["typed"],n=>{var{typed:e}=n;return e("clone",{any:ci})});function zp(n,e){if(e>1;return zp(n,t)*zp(t+1,e)}function RK(n,e){if(!wr(n)||n<0)throw new TypeError("Positive integer value expected in function combinations");if(!wr(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(e>n)throw new TypeError("k must be less than or equal to n");for(var t=n-e,r=1,a=2,l=e{var{typed:e}=n;return e(FK,{"number, number":RK,"BigNumber, BigNumber":function(r,i){var l,d,a=r.constructor,h=r.minus(i),p=new a(1);if(!PK(r)||!PK(i))throw new TypeError("Positive integer value expected in function combinations");if(i.gt(r))throw new TypeError("k must be less than n in function combinations");if(l=p,i.lt(h))for(d=p;d.lte(h);d=d.plus(p))l=l.times(i.plus(d)).dividedBy(d);else for(d=p;d.lte(i);d=d.plus(p))l=l.times(h.plus(d)).dividedBy(d);return l}})});function PK(n){return n.isInteger()&&n.gte(0)}var XAe=Ke("complex",["typed","Complex"],n=>{var{typed:e,Complex:t}=n;return e("complex",{"":function(){return t.ZERO},number:function(i){return new t(i,0)},"number, number":function(i,a){return new t(i,a)},"BigNumber, BigNumber":function(i,a){return new t(i.toNumber(),a.toNumber())},Fraction:function(i){return new t(i.valueOf(),0)},Complex:function(i){return i.clone()},string:function(i){return t(i)},null:function(i){return t(0)},Object:function(i){if("re"in i&&"im"in i)return new t(i.re,i.im);if("r"in i&&"phi"in i||"abs"in i&&"arg"in i)return new t(i);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))})}),KAe=Ke("conj",["typed"],n=>{var{typed:e}=n;return e("conj",{"number | BigNumber | Fraction":t=>t,Complex:t=>t.conjugate(),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),Aw=Ke("trigUnit",["typed"],n=>{var{typed:e}=n;return{Unit:e.referToSelf(t=>r=>{if(!r.hasBase(r.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return e.find(t,r.valueType())(r.value)})}}),QAe=Ke("cos",["typed"],n=>{var{typed:e}=n,t=Aw({typed:e});return e("cos",{number:Math.cos,"Complex | BigNumber":r=>r.cos()},t)}),eDe=Ke("cot",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("cot",{number:vK,Complex:i=>i.cot(),BigNumber:i=>new t(1).div(i.tan())},Aw({typed:e}))}),nDe=Ke("csc",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("csc",{number:_K,Complex:i=>i.csc(),BigNumber:i=>new t(1).div(i.sin())},Aw({typed:e}))}),iDe=Ke("cube",["typed"],n=>{var{typed:e}=n;return e("cube",{number:KY,Complex:function(r){return r.mul(r).mul(r)},BigNumber:function(r){return r.times(r).times(r)},Fraction:function(r){return r.pow(3)},Unit:function(r){return r.pow(3)}})});function Ld(n,e,t){if(null==t)return n.eq(e);if(n.eq(e))return!0;if(n.isNaN()||e.isNaN())return!1;if(n.isFinite()&&e.isFinite()){var r=n.minus(e).abs();if(r.isZero())return!0;var i=n.constructor.max(n.abs(),e.abs());return r.lte(i.times(t))}return!1}var Dw=Ke("compareUnits",["typed"],n=>{var{typed:e}=n;return{"Unit, Unit":e.referToSelf(t=>(r,i)=>{if(!r.equalBase(i))throw new Error("Cannot compare units with different base");return e.find(t,[r.valueType(),i.valueType()])(r.value,i.value)})}}),z8="equalScalar",sDe=Ke(z8,["typed","config"],n=>{var{typed:e,config:t}=n,r=Dw({typed:e});return e(z8,{"boolean, boolean":function(a,l){return a===l},"number, number":function(a,l){return Yl(a,l,t.epsilon)},"BigNumber, BigNumber":function(a,l){return a.eq(l)||Ld(a,l,t.epsilon)},"Fraction, Fraction":function(a,l){return a.equals(l)},"Complex, Complex":function(a,l){return function oDe(n,e,t){return Yl(n.re,e.re,t)&&Yl(n.im,e.im,t)}(a,l,t.epsilon)}},r)}),dDe=(Ke(z8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(z8,{"number, number":function(i,a){return Yl(i,a,t.epsilon)}})}),Ke("erf",["typed"],n=>{var{typed:e}=n;return e("name",{number:function(l){var d=Math.abs(l);return d>=fDe?Hg(l):d<=uDe?Hg(l)*function t(a){var p,l=a*a,d=Vp[0][4]*l,h=l;for(p=0;p<3;p+=1)d=(d+Vp[0][p])*l,h=(h+Mw[0][p])*l;return a*(d+Vp[0][3])/(h+Mw[0][3])}(d):d<=4?Hg(l)*(1-function r(a){var h,l=Vp[1][8]*a,d=a;for(h=0;h<7;h+=1)l=(l+Vp[1][h])*a,d=(d+Mw[1][h])*a;var p=(l+Vp[1][7])/(d+Mw[1][7]),y=parseInt(16*a)/16,S=(a-y)*(a+y);return Math.exp(-y*y)*Math.exp(-S)*p}(d)):Hg(l)*(1-function i(a){var p,l=1/(a*a),d=Vp[2][5]*l,h=l;for(p=0;p<4;p+=1)d=(d+Vp[2][p])*l,h=(h+Mw[2][p])*l;var y=l*(d+Vp[2][4])/(h+Mw[2][4]);y=(hDe-y)/a,l=parseInt(16*a)/16;var S=(a-l)*(a+l);return Math.exp(-l*l)*Math.exp(-S)*y}(d))},"Array | Matrix":e.referToSelf(a=>l=>Ni(l,a))})})),uDe=.46875,hDe=.5641895835477563,Vp=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Mw=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],fDe=Math.pow(2,53),mDe=Ke("exp",["typed"],n=>{var{typed:e}=n;return e("exp",{number:ZY,Complex:function(r){return r.exp()},BigNumber:function(r){return r.exp()}})}),bDe=Ke("expm1",["typed","Complex"],n=>{var{typed:e,Complex:t}=n;return e("expm1",{number:QY,Complex:function(i){var a=Math.exp(i.re);return new t(a*Math.cos(i.im)-1,a*Math.sin(i.im))},BigNumber:function(i){return i.exp().minus(1)}})}),_De=Ke("filter",["typed"],n=>{var{typed:e}=n;return e("filter",{"Array, function":HK,"Matrix, function":function(r,i){return r.create(HK(r.toArray(),i))},"Array, RegExp":r8,"Matrix, RegExp":function(r,i){return r.create(r8(r.toArray(),i))}})});function HK(n,e){return YG(n,function(t,r,i){return Cw(e,t,[r],i,"filter")})}var $K="forEach",wDe=Ke($K,["typed"],n=>{var{typed:e}=n;return e($K,{"Array, function":CDe,"Matrix, function":function(r,i){r.forEach(i)}})});function CDe(n,e){!function r(i,a){if(!Array.isArray(i))return Cw(e,i,a,n,"forEach");n8(i,function(l,d){r(l,a.concat(d))})}(n,[])}var EDe=Ke("format",["typed"],n=>{var{typed:e}=n;return e("format",{any:Ti,"any, Object | function | number | BigNumber":Ti})}),GK="getMatrixDataType",ADe=Ke(GK,["typed"],n=>{var{typed:e}=n;return e(GK,{Array:function(r){return PA(r,No)},Matrix:function(r){return r.getDataType()}})}),MDe=Ke("hex",["typed","format"],n=>{var{typed:e,format:t}=n;return e("hex",{"number | BigNumber":function(i){return t(i,{notation:"hex"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"hex",wordSize:a})}})}),IDe=Ke("im",["typed"],n=>{var{typed:e}=n;return e("im",{number:()=>0,"BigNumber | Fraction":t=>t.mul(0),Complex:t=>t.im,"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),KK="isInteger",ODe=Ke(KK,["typed"],n=>{var{typed:e}=n;return e(KK,{number:wr,BigNumber:function(r){return r.isInt()},Fraction:function(r){return 1===r.d&&isFinite(r.n)},"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),$A="number";function ZK(n){return n<0}function QK(n){return n>0}function JK(n){return 0===n}function eZ(n){return Number.isNaN(n)}(function RDe(n){return wr(n)}).signature=$A,ZK.signature=$A,QK.signature=$A,JK.signature=$A,eZ.signature=$A;var tZ="isNegative",PDe=Ke(tZ,["typed"],n=>{var{typed:e}=n;return e(tZ,{number:ZK,BigNumber:function(r){return r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s<0},Unit:e.referToSelf(t=>r=>e.find(t,r.valueType())(r.value)),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),nZ="isPositive",LDe=Ke(nZ,["typed"],n=>{var{typed:e}=n;return e(nZ,{number:QK,BigNumber:function(r){return!r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s>0&&r.n>0},Unit:e.referToSelf(t=>r=>e.find(t,r.valueType())(r.value)),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),VDe=Ke("isZero",["typed"],n=>{var{typed:e}=n;return e("isZero",{number:JK,BigNumber:function(r){return r.isZero()},Complex:function(r){return 0===r.re&&0===r.im},Fraction:function(r){return 1===r.d&&0===r.n},Unit:e.referToSelf(t=>r=>e.find(t,r.valueType())(r.value)),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})});function V8(n){var e;if(wr(n))return n<=0?isFinite(n)?1/0:NaN:n>171?1/0:zp(1,n-1);if(n<.5)return Math.PI/(Math.sin(Math.PI*n)*V8(1-n));if(n>=171.35)return 1/0;if(n>85){var t=n*n,r=t*n,i=r*n,a=i*n;return Math.sqrt(2*Math.PI/n)*Math.pow(n/Math.E,n)*(1+1/(12*n)+1/(288*t)-139/(51840*r)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*n))}--n,e=Tw[0];for(var l=1;l=1;r--)t+=aZ[r]/(n+r);return oZ+(n+.5)*Math.log(e)-e+Math.log(t)}q8.signature="number";var HDe=Ke("lgamma",["Complex","typed"],n=>{var{Complex:e,typed:t}=n,r=7,a=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return t("lgamma",{number:q8,Complex:function l(p){if(p.isNaN())return new e(NaN,NaN);if(0===p.im)return new e(q8(p.re),0);if(p.re>=r||Math.abs(p.im)>=7)return d(p);if(p.re<=.1){var B=function Rve(n,e){return(n>0||!(n<0)&&1/n==1/0)^(e>0||!(e<0)&&1/e==1/0)?-n:n}(6.283185307179586,p.im)*Math.floor(.5*p.re+.25),q=p.mul(Math.PI).sin().log(),V=l(new e(1-p.re,-p.im));return new e(1.1447298858494002,B).sub(q).sub(V)}return p.im>=0?h(p):h(p.conjugate()).conjugate()},BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function d(p){for(var y=p.sub(.5).mul(p.log()).sub(p).add(oZ),S=new e(1,0).div(p),R=S.div(p),B=a[0],q=a[1],V=2*R.re,ee=R.re*R.re+R.im*R.im,ne=2;ne<8;ne++){var he=q;q=-ee*B+a[ne],B=V*B+he}var re=S.mul(R.mul(B).add(q));return y.add(re)}function h(p){var y=0,S=0,R=p;for(p=p.add(1);p.re<=r;){var B=(R=R.mul(p)).im<0?1:0;0!==B&&0===S&&y++,S=B,p=p.add(1)}return d(p).sub(R.log()).sub(new e(0,2*y*Math.PI*1))}}),WDe=Ke("log10",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("log10",{number:function(a){return a>=0||t.predictable?eK(a):new r(a,0).log().div(Math.LN10)},Complex:function(a){return new r(a).log().div(Math.LN10)},BigNumber:function(a){return!a.isNegative()||t.predictable?a.log():new r(a.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":e.referToSelf(i=>a=>Ni(a,i))})}),XDe=Ke("log2",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("log2",{number:function(l){return l>=0||t.predictable?tK(l):i(new r(l,0))},Complex:i,BigNumber:function(l){return!l.isNegative()||t.predictable?l.log(2):i(new r(l.toNumber(),0))},"Array | Matrix":e.referToSelf(a=>l=>Ni(l,a))});function i(a){var l=Math.sqrt(a.re*a.re+a.im*a.im);return new r(Math.log2?Math.log2(l):Math.log(l)/Math.LN2,Math.atan2(a.im,a.re)/Math.LN2)}}),KDe=Ke("map",["typed"],n=>{var{typed:e}=n;return e("map",{"Array, function":ZDe,"Matrix, function":function(r,i){return r.map(i)}})});function ZDe(n,e){return function r(i,a){return Array.isArray(i)?i.map(function(l,d){return r(l,a.concat(d))}):Cw(e,i,a,n,"map")}(n,[])}var eMe=Ke("multiplyScalar",["typed"],n=>{var{typed:e}=n;return e("multiplyScalar",{"number, number":GY,"Complex, Complex":function(r,i){return r.mul(i)},"BigNumber, BigNumber":function(r,i){return r.times(i)},"Fraction, Fraction":function(r,i){return r.mul(i)},"number | Fraction | BigNumber | Complex, Unit":(t,r)=>r.multiply(t),"Unit, number | Fraction | BigNumber | Complex | Unit":(t,r)=>t.multiply(r)})}),nMe=Ke("not",["typed"],n=>{var{typed:e}=n;return e("not",{"null | undefined":()=>!0,number:SX,Complex:function(r){return 0===r.re&&0===r.im},BigNumber:function(r){return r.isZero()||r.isNaN()},Unit:e.referToSelf(t=>r=>e.find(t,r.valueType())(r.value)),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})});var sMe=Ke("number",["typed"],n=>{var{typed:e}=n,t=e("number",{"":function(){return 0},number:function(i){return i},string:function(i){if("NaN"===i)return NaN;var a=function oMe(n){var e=n.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);return e?{input:n,radix:{"0b":2,"0o":8,"0x":16}[e[1]],integerPart:e[2],fractionalPart:e[3]}:null}(i);if(a)return function aMe(n){for(var e=parseInt(n.integerPart,n.radix),t=0,r=0;r2**l-1)throw new SyntaxError('String "'.concat(i,'" is out of range'));h>=2**(l-1)&&(h-=2**l)}return h},BigNumber:function(i){return i.toNumber()},Fraction:function(i){return i.valueOf()},Unit:e.referToSelf(r=>i=>{var a=i.clone();return a.value=r(i.value),a}),null:function(i){return 0},"Unit, string | Unit":function(i,a){return i.toNumber(a)},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))});return t.fromJSON=function(r){return parseFloat(r.value)},t}),cMe=Ke("oct",["typed","format"],n=>{var{typed:e,format:t}=n;return e("oct",{"number | BigNumber":function(i){return t(i,{notation:"oct"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"oct",wordSize:a})}})}),fZ=mt(8814),dMe=fZ(Date.now());function Iw(n){var e;return function t(i){e=null===i?dMe:fZ(String(i))}(n),function r(){return e()}}var pZ="pickRandom",hMe=Ke(pZ,["typed","config","?on"],n=>{var{typed:e,config:t,on:r}=n,i=Iw(t.randomSeed);return r&&r("config",function(l,d){l.randomSeed!==d.randomSeed&&(i=Iw(l.randomSeed))}),e(pZ,{"Array | Matrix":function(d){return a(d,{})},"Array | Matrix, Object":function(d,h){return a(d,h)},"Array | Matrix, number":function(d,h){return a(d,{number:h})},"Array | Matrix, Array | Matrix":function(d,h){return a(d,{weights:h})},"Array | Matrix, Array | Matrix, number":function(d,h,p){return a(d,{number:p,weights:h})},"Array | Matrix, number, Array | Matrix":function(d,h,p){return a(d,{number:h,weights:p})}});function a(l,d){var{number:h,weights:p,elementWise:y=!0}=d,S=typeof h>"u";S&&(h=1);var R=Ur(l)?l.create:Ur(p)?p.create:null;l=l.valueOf(),p&&(p=p.valueOf()),!0===y&&(l=ro(l),p=ro(p));var B=0;if(typeof p<"u"){if(p.length!==l.length)throw new Error("Weights must have the same length as possibles");for(var q=0,V=p.length;q"u")he=l[Math.floor(i()*ee)];else for(var re=i()*B,ce=0,pe=l.length;ce1)for(var r=0,i=n.shift();r{var{typed:e,config:t,on:r}=n,i=Iw(t.randomSeed);return r&&r("config",function(d,h){d.randomSeed!==h.randomSeed&&(i=Iw(d.randomSeed))}),e("random",{"":()=>l(0,1),number:d=>l(0,d),"number, number":(d,h)=>l(d,h),"Array | Matrix":d=>a(d,0,1),"Array | Matrix, number":(d,h)=>a(d,0,h),"Array | Matrix, number, number":(d,h,p)=>a(d,h,p)});function a(d,h,p){var y=zB(d.valueOf(),()=>l(h,p));return Ur(d)?d.create(y):y}function l(d,h){return d+i()*(h-d)}}),gMe=Ke("re",["typed"],n=>{var{typed:e}=n;return e("re",{"number | BigNumber | Fraction":t=>t,Complex:t=>t.re,"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),vMe=Ke("sec",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("sec",{number:wK,Complex:i=>i.sec(),BigNumber:i=>new t(1).div(i.cos())},Aw({typed:e}))}),_Me=Ke("sign",["typed","BigNumber","Fraction","complex"],n=>{var{typed:e,BigNumber:t,complex:r,Fraction:i}=n;return e("sign",{number:LB,Complex:function(l){return 0===l.im?r(LB(l.re)):l.sign()},BigNumber:function(l){return new t(l.cmp(0))},Fraction:function(l){return new i(l.s,1)},"Array | Matrix":e.referToSelf(a=>l=>Ni(l,a,!0)),Unit:e.referToSelf(a=>l=>{if(!l._isDerived()&&0!==l.units[0].unit.offset)throw new TypeError("sign is ambiguous for units with offset");return e.find(a,l.valueType())(l.value)})})}),wMe=Ke("sin",["typed"],n=>{var{typed:e}=n,t=Aw({typed:e});return e("sin",{number:Math.sin,"Complex | BigNumber":r=>r.sin()},t)}),EMe=Ke("SparseMatrix",["typed","equalScalar","Matrix"],n=>{var{typed:e,equalScalar:t,Matrix:r}=n;function i(V,ee){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(ee&&!vl(ee))throw new Error("Invalid datatype: "+ee);if(Ur(V))!function a(V,ee,ne){"SparseMatrix"===ee.type?(V._values=ee._values?ci(ee._values):void 0,V._index=ci(ee._index),V._ptr=ci(ee._ptr),V._size=ci(ee._size),V._datatype=ne||ee._datatype):l(V,ee.valueOf(),ne||ee._datatype)}(this,V,ee);else if(V&&fo(V.index)&&fo(V.ptr)&&fo(V.size))this._values=V.values,this._index=V.index,this._ptr=V.ptr,this._size=V.size,this._datatype=ee||V.datatype;else if(fo(V))l(this,V,ee);else{if(V)throw new TypeError("Unsupported type of data ("+No(V)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=ee}}function l(V,ee,ne){V._values=[],V._index=[],V._ptr=[],V._datatype=ne;var he=ee.length,re=0,ce=t,pe=0;if(vl(ne)&&(ce=e.find(t,[ne,ne])||t,pe=e.convert(0,ne)),he>0){var oe=0;do{V._ptr.push(V._index.length);for(var Ae=0;AeDe){for(_e=De;_eAe){if(oe){var Be=0;for(_e=0;_eee-1&&(V._values.splice(Re,1),V._index.splice(Re,1),Ye++)}V._ptr[_e]=V._values.length}return V._size[0]=ee,V._size[1]=ne,V}function q(V,ee,ne,he,re){var Ae,De,ce=he[0],pe=he[1],oe=[];for(Ae=0;Ae");if(1===re.length){ee.dimension(0).forEach(function(Re,Be){Oo(Re),V.set([Re,0],ne[Be[0]],he)})}else{var Ce=ee.dimension(0),_e=ee.dimension(1);Ce.forEach(function(Re,Be){Oo(Re),_e.forEach(function(Ge,Ye){Oo(Ge),V.set([Re,Ge],ne[Be[0]][Ye[0]],he)})})}}return V}(this,V,ee,ne);default:throw new SyntaxError("Wrong number of arguments")}},i.prototype.get=function(V){if(!fo(V))throw new TypeError("Array expected");if(V.length!==this._size.length)throw new Ii(V.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var ee=V[0],ne=V[1];Oo(ee,this._size[0]),Oo(ne,this._size[1]);var he=p(ee,this._ptr[ne],this._ptr[ne+1],this._index);return hece-1||re>pe-1)&&(R(this,Math.max(he+1,ce),Math.max(re+1,pe),ne),ce=this._size[0],pe=this._size[1]),Oo(he,ce),Oo(re,pe);var De=p(he,this._ptr[re],this._ptr[re+1],this._index);return DeArray.isArray(ce)&&1===ce.length?ce[0]:ce);if(2!==he.length)throw new Error("Only two dimensions matrix are supported");return he.forEach(function(ce){if(!wi(ce)||!wr(ce)||ce<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Ti(he)+")")}),R(ne?this.clone():this,he[0],he[1],ee)},i.prototype.reshape=function(V,ee){if(!fo(V))throw new TypeError("Array expected");if(2!==V.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");V.forEach(function(Pe){if(!wi(Pe)||!wr(Pe)||Pe<=-2||0===Pe)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+Ti(V)+")")});var ne=this._size[0]*this._size[1];if(ne!==(V=mB(V,ne))[0]*V[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var re=ee?this.clone():this;if(this._size[0]===V[0]&&this._size[1]===V[1])return re;for(var ce=[],pe=0;pe=ee&&Oe<=ne&&Re(V._values[$e],Oe-ee,Be-he)}else{for(var Ie={},Ze=Ge;Ze "+(this._values?Ti(this._values[Ae],V):"X")}return re},i.prototype.toString=function(){return Ti(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(V){if(V){if(Ci(V)&&(V=V.toNumber()),!wi(V)||!wr(V))throw new TypeError("The parameter k must be an integer number")}else V=0;var ee=V>0?V:0,ne=V<0?-V:0,he=this._size[0],re=this._size[1],ce=Math.min(he-ne,re-ee),pe=[],oe=[],Ae=[];Ae[0]=0;for(var De=ee;De0?ne:0,Ae=ne<0?-ne:0,De=V[0],Ce=V[1],_e=Math.min(De-Ae,Ce-oe);if(fo(ee)){if(ee.length!==_e)throw new Error("Invalid value array length");Re=function(bt){return ee[bt]}}else if(Ur(ee)){var Be=ee.size();if(1!==Be.length||Be[0]!==_e)throw new Error("Invalid matrix length");Re=function(bt){return ee.get([bt])}}else Re=function(){return ee};for(var Ge=[],Ye=[],$e=[],Oe=0;Oe=0&&Ie<_e){var Ze=Re(Ie);ce(Ze,pe)||(Ye.push(Ie+Ae),Ge.push(Ze))}}return $e.push(Ge.length),new i({values:Ge,index:Ye,ptr:$e,size:[De,Ce]})},i.prototype.swapRows=function(V,ee){if(!(wi(V)&&wr(V)&&wi(ee)&&wr(ee)))throw new Error("Row index must be positive integers");if(2!==this._size.length)throw new Error("Only two dimensional matrix is supported");return Oo(V,this._size[0]),Oo(ee,this._size[0]),i._swapRows(V,ee,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(V,ee,ne,he,re){for(var ce=he[V],pe=he[V+1],oe=ce;oe=Ae||re[Ce]!==ee)){var Re=he?he[De]:void 0;re.splice(Ce,0,ee),he&&he.splice(Ce,0,Re),re.splice(Ce<=De?De+1:De,1),he&&he.splice(Ce<=De?De+1:De,1)}else if(Ce=Ae||re[De]!==V)){var Be=he?he[Ce]:void 0;re.splice(De,0,V),he&&he.splice(De,0,Be),re.splice(De<=Ce?Ce+1:Ce,1),he&&he.splice(De<=Ce?Ce+1:Ce,1)}}},i},{isClass:!0}),_Z="splitUnit",AMe=Ke(_Z,["typed"],n=>{var{typed:e}=n;return e(_Z,{"Unit, Array":function(r,i){return r.splitUnit(i)}})}),MMe=Ke("square",["typed"],n=>{var{typed:e}=n;return e("square",{number:rK,Complex:function(r){return r.mul(r)},BigNumber:function(r){return r.times(r)},Fraction:function(r){return r.mul(r)},Unit:function(r){return r.pow(2)}})}),IMe=Ke("string",["typed"],n=>{var{typed:e}=n;return e("string",{"":function(){return""},number:sy,null:function(r){return"null"},boolean:function(r){return r+""},string:function(r){return r},"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t)),any:function(r){return String(r)}})}),CZ="subtractScalar",OMe=Ke(CZ,["typed"],n=>{var{typed:e}=n;return e(CZ,{"number, number":WY,"Complex, Complex":function(r,i){return r.sub(i)},"BigNumber, BigNumber":function(r,i){return r.minus(i)},"Fraction, Fraction":function(r,i){return r.sub(i)},"Unit, Unit":e.referToSelf(t=>(r,i)=>{if(null===r.value||void 0===r.value)throw new Error("Parameter x contains a unit with undefined value");if(null===i.value||void 0===i.value)throw new Error("Parameter y contains a unit with undefined value");if(!r.equalBase(i))throw new Error("Units do not match");var a=r.clone();return a.value=e.find(t,[a.valueType(),i.valueType()])(a.value,i.value),a.fixPrefix=!1,a})})}),FMe=Ke("tan",["typed"],n=>{var{typed:e}=n,t=Aw({typed:e});return e("tan",{number:Math.tan,"Complex | BigNumber":r=>r.tan()},t)}),BMe=Ke("typeOf",["typed"],n=>{var{typed:e}=n;return e("typeOf",{any:No})}),zMe=Ke("acosh",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("acosh",{number:function(a){return a>=1||t.predictable?cK(a):a<=-1?new r(Math.log(Math.sqrt(a*a-1)-a),Math.PI):new r(a,0).acosh()},Complex:function(a){return a.acosh()},BigNumber:function(a){return a.acosh()}})}),qMe=Ke("acsch",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("acsch",{number:fK,Complex:function(i){return i.acsch()},BigNumber:function(i){return new t(1).div(i).asinh()}})}),UMe=Ke("asec",["typed","config","Complex","BigNumber"],n=>{var{typed:e,config:t,Complex:r,BigNumber:i}=n;return e("asec",{number:function(l){return l<=-1||l>=1||t.predictable?pK(l):new r(l,0).asec()},Complex:function(l){return l.asec()},BigNumber:function(l){return new i(1).div(l).acos()}})}),$Me=Ke("bin",["typed","format"],n=>{var{typed:e,format:t}=n;return e("bin",{"number | BigNumber":function(i){return t(i,{notation:"bin"})},"number | BigNumber, number | BigNumber":function(i,a){return t(i,{notation:"bin",wordSize:a})}})}),TZ="combinationsWithRep",GMe=Ke(TZ,["typed"],n=>{var{typed:e}=n;return e(TZ,{"number, number":function(r,i){if(!wr(r)||r<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!wr(i)||i<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(r<1)throw new TypeError("k must be less than or equal to n + k - 1");return i{var{typed:e}=n;return e("cosh",{number:FG,"Complex | BigNumber":t=>t.cosh()})}),ZMe=Ke("csch",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("csch",{number:xK,Complex:r=>r.csch(),BigNumber:r=>new t(1).div(r.sinh())})}),JMe=Ke("isNaN",["typed"],n=>{var{typed:e}=n;return e("isNaN",{number:eZ,BigNumber:function(r){return r.isNaN()},Fraction:function(r){return!1},Complex:function(r){return r.isNaN()},Unit:function(r){return Number.isNaN(r.value)},"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),FZ="isPrime",tTe=Ke(FZ,["typed"],n=>{var{typed:e}=n;return e(FZ,{number:function(r){if(0*r!=0)return!1;if(r<=3)return r>1;if(r%2==0||r%3==0)return!1;for(var i=5;i*i<=r;i+=6)if(r%i==0||r%(i+2)==0)return!1;return!0},BigNumber:function(r){if(0*r.toNumber()!=0)return!1;if(r.lte(3))return r.gt(1);if(r.mod(2).eq(0)||r.mod(3).eq(0))return!1;if(r.lt(Math.pow(2,32))){for(var i=r.toNumber(),a=5;a*a<=i;a+=6)if(i%a==0||i%(a+2)==0)return!1;return!0}function l(he,re,ce){for(var pe=1;!re.eq(0);)re.mod(2).eq(0)?(re=re.div(2),he=he.mul(he).mod(ce)):(re=re.sub(1),pe=he.mul(pe).mod(ce));return pe}for(var d=r.constructor.clone({precision:2*r.toFixed(0).length}),h=0,p=(r=new d(r)).sub(1);p.mod(2).eq(0);)p=p.div(2),h+=1;var y=null;if(r.lt("3317044064679887385961981"))y=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(he=>her=>Ni(r,t))})}),PZ="randomInt",rTe=Ke(PZ,["typed","config","?on"],n=>{var{typed:e,config:t,on:r}=n,i=Iw(t.randomSeed);return r&&r("config",function(d,h){d.randomSeed!==h.randomSeed&&(i=Iw(d.randomSeed))}),e(PZ,{"":()=>l(0,1),number:d=>l(0,d),"number, number":(d,h)=>l(d,h),"Array | Matrix":d=>a(d,0,1),"Array | Matrix, number":(d,h)=>a(d,0,h),"Array | Matrix, number, number":(d,h,p)=>a(d,h,p)});function a(d,h,p){var y=zB(d.valueOf(),()=>l(h,p));return Ur(d)?d.create(y):y}function l(d,h){return Math.floor(d+i()*(h-d))}}),oTe=Ke("sech",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("sech",{number:CK,Complex:r=>r.sech(),BigNumber:r=>new t(1).div(r.cosh())})}),sTe=Ke("sinh",["typed"],n=>{var{typed:e}=n;return e("sinh",{number:kK,"Complex | BigNumber":t=>t.sinh()})}),cTe=Ke("sparse",["typed","SparseMatrix"],n=>{var{typed:e,SparseMatrix:t}=n;return e("sparse",{"":function(){return new t([])},string:function(i){return new t([],i)},"Array | Matrix":function(i){return new t(i)},"Array | Matrix, string":function(i,a){return new t(i,a)}})}),hTe=Ke("sqrt",["config","typed","Complex"],n=>{var{config:e,typed:t,Complex:r}=n;return t("sqrt",{number:i,Complex:function(l){return l.sqrt()},BigNumber:function(l){return!l.isNegative()||e.predictable?l.sqrt():i(l.toNumber())},Unit:function(l){return l.pow(.5)}});function i(a){return isNaN(a)?NaN:a>=0||e.predictable?Math.sqrt(a):new r(a,0).sqrt()}}),mTe=Ke("tanh",["typed"],n=>{var{typed:e}=n;return e("tanh",{number:PG,"Complex | BigNumber":t=>t.tanh()})}),VZ="unaryMinus",bTe=Ke(VZ,["typed"],n=>{var{typed:e}=n;return e(VZ,{number:XY,"Complex | BigNumber | Fraction":t=>t.neg(),Unit:e.referToSelf(t=>r=>{var i=r.clone();return i.value=e.find(t,i.valueType())(r.value),i}),"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t,!0))})}),yTe=Ke("acoth",["typed","config","Complex","BigNumber"],n=>{var{typed:e,config:t,Complex:r,BigNumber:i}=n;return e("acoth",{number:function(l){return l>=1||l<=-1||t.predictable?uK(l):new r(l,0).acoth()},Complex:function(l){return l.acoth()},BigNumber:function(l){return new i(1).div(l).atanh()}})}),xTe=Ke("coth",["typed","BigNumber"],n=>{var{typed:e,BigNumber:t}=n;return e("coth",{number:yK,Complex:r=>r.coth(),BigNumber:r=>new t(1).div(r.tanh())})}),kTe=Ke("fraction",["typed","Fraction"],n=>{var{typed:e,Fraction:t}=n;return e("fraction",{number:function(i){if(!isFinite(i)||isNaN(i))throw new Error(i+" cannot be represented as a fraction");return new t(i)},string:function(i){return new t(i)},"number, number":function(i,a){return new t(i,a)},null:function(i){return new t(0)},BigNumber:function(i){return new t(i.toString())},Fraction:function(i){return i},Unit:e.referToSelf(r=>i=>{var a=i.clone();return a.value=r(i.value),a}),Object:function(i){return new t(i)},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))})}),UZ="isNumeric",STe=Ke(UZ,["typed"],n=>{var{typed:e}=n;return e(UZ,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":e.referToSelf(t=>r=>Ni(r,t))})}),DTe=Ke("matrix",["typed","Matrix","DenseMatrix","SparseMatrix"],n=>{var{typed:e,Matrix:t,DenseMatrix:r,SparseMatrix:i}=n;return e("matrix",{"":function(){return a([])},string:function(d){return a([],d)},"string, string":function(d,h){return a([],d,h)},Array:function(d){return a(d)},Matrix:function(d){return a(d,d.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(l,d,h){if("dense"===d||"default"===d||void 0===d)return new r(l,h);if("sparse"===d)return new i(l,h);throw new TypeError("Unknown matrix type "+JSON.stringify(d)+".")}}),$Z="matrixFromFunction",TTe=Ke($Z,["typed","matrix","isZero"],n=>{var{typed:e,matrix:t,isZero:r}=n;return e($Z,{"Array | Matrix, function, string, string":function(l,d,h,p){return i(l,d,h,p)},"Array | Matrix, function, string":function(l,d,h){return i(l,d,h)},"Matrix, function":function(l,d){return i(l,d,"dense")},"Array, function":function(l,d){return i(l,d,"dense").toArray()},"Array | Matrix, string, function":function(l,d,h){return i(l,h,d)},"Array | Matrix, string, string, function":function(l,d,h,p){return i(l,p,d,h)}});function i(a,l,d,h){var p;return(p=void 0!==h?t(d,h):t(d)).resize(a),p.forEach(function(y,S){var R=l(S);r(R)||p.set(S,R)}),p}}),NTe=Ke("mode",["typed","isNaN","isNumeric"],n=>{var{typed:e,isNaN:t,isNumeric:r}=n;return e("mode",{"Array | Matrix":i,"...":function(l){return i(l)}});function i(a){if(0===(a=ro(a.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var d={},h=[],p=0,y=0;yp&&(p=d[S],h=[S])}return h}}),FTe=Ke("numeric",["number","?bignumber","?fraction"],n=>{var{number:e,bignumber:t,fraction:r}=n,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:l=>e(l),BigNumber:t?l=>t(l):wB,Fraction:r?l=>r(l):cX};return function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(void 0!==(arguments.length>2?arguments[2]:void 0))throw new SyntaxError("numeric() takes one or two arguments");var y=No(d);if(!(y in i))throw new TypeError("Cannot convert "+d+' of type "'+y+'"; valid input types are '+Object.keys(i).join(", "));if(!(h in a))throw new TypeError("Cannot convert "+d+' to type "'+h+'"; valid output types are '+Object.keys(a).join(", "));return h===y?d:a[h](d)}}),BTe=Ke("prod",["typed","config","multiplyScalar","numeric"],n=>{var{typed:e,config:t,multiplyScalar:r,numeric:i}=n;return e("prod",{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(d,h){throw new Error("prod(A, dim) is not yet supported")},"...":function(d){return a(d)}});function a(l){var d;if(Fp(l,function(h){try{d=void 0===d?h:r(d,h)}catch(p){throw Ql(p,"prod",h)}}),"string"==typeof d&&(d=i(d,t.number)),void 0===d)throw new Error("Cannot calculate prod of an empty array");return d}}),XZ="reshape",zTe=Ke(XZ,["typed","isInteger","matrix"],n=>{var{typed:e,isInteger:t}=n;return e(XZ,{"Matrix, Array":function(i,a){return i.reshape(a,!0)},"Array, Array":function(i,a){return a.forEach(function(l){if(!t(l))throw new TypeError("Invalid size for dimension: "+l)}),pB(i,a)}})}),qTe=Ke("size",["typed","config","?matrix"],n=>{var{typed:e,config:t,matrix:r}=n;return e("size",{Matrix:function(a){return a.create(a.size())},Array:hi,string:function(a){return"Array"===t.matrix?[a.length]:r([a.length])},"number | Complex | BigNumber | Unit | boolean | null":function(a){return"Array"===t.matrix?[]:r?r([]):dX()}})}),KZ="squeeze",UTe=Ke(KZ,["typed","matrix"],n=>{var{typed:e,matrix:t}=n;return e(KZ,{Array:function(i){return t8(ci(i))},Matrix:function(i){var a=t8(i.toArray());return Array.isArray(a)?t(a):a},any:function(i){return ci(i)}})}),ZZ="transpose",$Te=Ke(ZZ,["typed","matrix"],n=>{var{typed:e,matrix:t}=n;return e(ZZ,{Array:l=>r(t(l)).valueOf(),Matrix:r,any:ci});function r(l){var h,d=l.size();switch(d.length){case 1:h=l.clone();break;case 2:var p=d[0],y=d[1];if(0===y)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Ti(d)+")");switch(l.storage()){case"dense":h=function i(l,d,h){for(var S,p=l._data,y=[],R=0;R{var{typed:e,config:t,matrix:r,BigNumber:i}=n;return e("xgcd",{"number, number":function(d,h){var p=iK(d,h);return"Array"===t.matrix?p:r(p)},"BigNumber, BigNumber":function a(l,d){var h,p,y,ne,S=new i(0),R=new i(1),B=S,q=R,V=R,ee=S;if(!l.isInt()||!d.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!d.isZero();)p=l.div(d).floor(),y=l.mod(d),h=B,B=q.minus(p.times(B)),q=h,h=V,V=ee.minus(p.times(V)),ee=h,l=d,d=y;return ne=l.lt(S)?[l.neg(),q.neg(),ee.neg()]:[l,l.isZero()?0:q,ee],"Array"===t.matrix?ne:r(ne)}})}),YTe=Ke("zeros",["typed","config","matrix","BigNumber"],n=>{var{typed:e,config:t,matrix:r,BigNumber:i}=n;return e("zeros",{"":function(){return"Array"===t.matrix?a([]):a([],"default")},"...number | BigNumber | string":function(p){if("string"==typeof p[p.length-1]){var S=p.pop();return a(p,S)}return"Array"===t.matrix?a(p):a(p,"default")},Array:a,Matrix:function(p){var y=p.storage();return a(p.valueOf(),y)},"Array | Matrix, string":function(p,y){return a(p.valueOf(),y)}});function a(h,p){var y=function l(h){var p=!1;return h.forEach(function(y,S,R){Ci(y)&&(p=!0,R[S]=y.toNumber())}),p}(h),S=y?new i(0):0;if(function d(h){h.forEach(function(p){if("number"!=typeof p||!wr(p)||p<0)throw new Error("Parameters in function zeros must be positive integers")})}(h),p){var R=r(p);return h.length>0?R.resize(h,S):R}var B=[];return h.length>0?yw(B,h,S):B}}),ZTe=Ke("asin",["typed","config","Complex"],n=>{var{typed:e,config:t,Complex:r}=n;return e("asin",{number:function(a){return a>=-1&&a<=1||t.predictable?Math.asin(a):new r(a,0).asin()},Complex:function(a){return a.asin()},BigNumber:function(a){return a.asin()}})}),JTe=Ke("cbrt",["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],n=>{var{config:e,typed:t,isNegative:r,unaryMinus:i,matrix:a,Complex:l,BigNumber:d,Fraction:h}=n;return t("cbrt",{number:UA,Complex:p,"Complex, boolean":p,BigNumber:function(R){return R.cbrt()},Unit:function y(S){if(S.value&&Np(S.value)){var R=S.clone();return R.value=1,(R=R.pow(1/3)).value=p(S.value),R}var q,B=r(S.value);B&&(S.value=i(S.value)),q=Ci(S.value)?new d(1).div(3):IA(S.value)?new h(1,3):1/3;var V=S.pow(q);return B&&(V.value=i(V.value)),V}});function p(S,R){var B=S.arg()/3,q=S.abs(),V=new l(UA(q),0).mul(new l(0,B).exp());if(R){var ee=[V,new l(UA(q),0).mul(new l(0,B+2*Math.PI/3).exp()),new l(UA(q),0).mul(new l(0,B-2*Math.PI/3).exp())];return"Array"===e.matrix?ee:a(ee)}return V}}),tIe=Ke("count",["typed","size","prod"],n=>{var{typed:e,size:t,prod:r}=n;return e("count",{string:function(a){return a.length},"Matrix | Array":function(a){return r(t(a))}})}),rQ="ctranspose",rIe=Ke(rQ,["typed","transpose","conj"],n=>{var{typed:e,transpose:t,conj:r}=n;return e(rQ,{any:function(a){return r(t(a))}})}),oIe=Ke("diag",["typed","matrix","DenseMatrix","SparseMatrix"],n=>{var{typed:e,matrix:t,DenseMatrix:r,SparseMatrix:i}=n;return e("diag",{Array:function(p){return a(p,0,hi(p),null)},"Array, number":function(p,y){return a(p,y,hi(p),null)},"Array, BigNumber":function(p,y){return a(p,y.toNumber(),hi(p),null)},"Array, string":function(p,y){return a(p,0,hi(p),y)},"Array, number, string":function(p,y,S){return a(p,y,hi(p),S)},"Array, BigNumber, string":function(p,y,S){return a(p,y.toNumber(),hi(p),S)},Matrix:function(p){return a(p,0,p.size(),p.storage())},"Matrix, number":function(p,y){return a(p,y,p.size(),p.storage())},"Matrix, BigNumber":function(p,y){return a(p,y.toNumber(),p.size(),p.storage())},"Matrix, string":function(p,y){return a(p,0,p.size(),y)},"Matrix, number, string":function(p,y,S){return a(p,y,p.size(),S)},"Matrix, BigNumber, string":function(p,y,S){return a(p,y.toNumber(),p.size(),S)}});function a(h,p,y,S){if(!wr(p))throw new TypeError("Second parameter in function diag must be an integer");var R=p>0?p:0,B=p<0?-p:0;switch(y.length){case 1:return function l(h,p,y,S,R,B){var q=[S+R,S+B];if(y&&"sparse"!==y&&"dense"!==y)throw new TypeError("Unknown matrix type ".concat(y,'"'));var V="sparse"===y?i.diagonal(q,h,p):r.diagonal(q,h,p);return null!==y?V:V.valueOf()}(h,p,S,y[0],B,R);case 2:return function d(h,p,y,S,R,B){if(Ur(h)){var q=h.diagonal(p);return null!==y?y!==q.storage()?t(q,y):q:q.valueOf()}for(var V=Math.min(S[0]-R,S[1]-B),ee=[],ne=0;ne{var{typed:e,numeric:t}=n;return e(oQ,{"number, number":function(i,a){return i/a},"Complex, Complex":function(i,a){return i.div(a)},"BigNumber, BigNumber":function(i,a){return i.div(a)},"Fraction, Fraction":function(i,a){return i.div(a)},"Unit, number | Complex | Fraction | BigNumber | Unit":(r,i)=>r.divide(i),"number | Fraction | Complex | BigNumber, Unit":(r,i)=>i.divideInto(r)})}),Uh=Ke("matAlgo07xSSf",["typed","DenseMatrix"],n=>{var{typed:e,DenseMatrix:t}=n;return function(a,l,d){var h=a._size,p=a._datatype||void 0===a._data?a._datatype:a.getDataType(),y=l._size,S=l._datatype||void 0===l._data?l._datatype:l.getDataType();if(h.length!==y.length)throw new Ii(h.length,y.length);if(h[0]!==y[0]||h[1]!==y[1])throw new RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+y+")");var q,R=h[0],B=h[1],V=0,ee=d;"string"==typeof p&&p===S&&"mixed"!==p&&(q=p,V=e.convert(0,q),ee=e.find(d,[q,q]));var ne,he,re=[];for(ne=0;ne{var{typed:e,matrix:t,equalScalar:r,divideScalar:i,DenseMatrix:a,concat:l}=n,d=Bu({typed:e,equalScalar:r}),h=Zl({typed:e}),p=Uh({typed:e,DenseMatrix:a}),y=Ks({typed:e,equalScalar:r}),S=fs({typed:e,DenseMatrix:a}),R=qo({typed:e,matrix:t,concat:l});return e(aQ,R({elop:i,SS:p,DS:h,SD:d,Ss:y,sS:S}))}),j8="equal",fIe=Ke(j8,["typed","matrix","equalScalar","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=Uh({typed:e,DenseMatrix:i}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:t,concat:a});return e(j8,pIe({typed:e,equalScalar:r}),p({elop:r,SS:d,DS:l,Ss:h}))}),pIe=Ke(j8,["typed","equalScalar"],n=>{var{typed:e,equalScalar:t}=n;return e(j8,{"any, any":function(i,a){return null===i?null===a:null===a?null===i:void 0===i?void 0===a:void 0===a?void 0===i:t(i,a)}})}),sQ="flatten",gIe=Ke(sQ,["typed","matrix"],n=>{var{typed:e,matrix:t}=n;return e(sQ,{Array:function(i){return ro(i)},Matrix:function(i){var a=ro(i.toArray());return t(a)}})}),lQ="hasNumericValue",vIe=Ke(lQ,["typed","isNumeric"],n=>{var{typed:e,isNumeric:t}=n;return e(lQ,{boolean:()=>!0,string:function(i){return i.trim().length>0&&!isNaN(Number(i))},any:function(i){return t(i)}})}),cQ="identity",_Ie=Ke(cQ,["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],n=>{var{typed:e,config:t,matrix:r,BigNumber:i,DenseMatrix:a,SparseMatrix:l}=n;return e(cQ,{"":function(){return"Matrix"===t.matrix?r([]):[]},string:function(y){return r(y)},"number | BigNumber":function(y){return h(y,y,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber, string":function(y,S){return h(y,y,S)},"number | BigNumber, number | BigNumber":function(y,S){return h(y,S,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(y,S,R){return h(y,S,R)},Array:function(y){return d(y)},"Array, string":function(y,S){return d(y,S)},Matrix:function(y){return d(y.valueOf(),y.storage())},"Matrix, string":function(y,S){return d(y.valueOf(),S)}});function d(p,y){switch(p.length){case 0:return y?r(y):[];case 1:return h(p[0],p[0],y);case 2:return h(p[0],p[1],y);default:throw new Error("Vector containing two values expected")}}function h(p,y,S){var R=Ci(p)||Ci(y)?i:null;if(Ci(p)&&(p=p.toNumber()),Ci(y)&&(y=y.toNumber()),!wr(p)||p<1)throw new Error("Parameters in function identity must be positive integers");if(!wr(y)||y<1)throw new Error("Parameters in function identity must be positive integers");var B=R?new i(1):1,q=R?new R(0):0,V=[p,y];if(S){if("sparse"===S)return l.diagonal(V,B,0,q);if("dense"===S)return a.diagonal(V,B,0,q);throw new TypeError('Unknown matrix type "'.concat(S,'"'))}for(var ee=yw([],V,q),ne=p{var{typed:e,matrix:t,multiplyScalar:r}=n;return e("kron",{"Matrix, Matrix":function(l,d){return t(i(l.toArray(),d.toArray()))},"Matrix, Array":function(l,d){return t(i(l.toArray(),d))},"Array, Matrix":function(l,d){return t(i(l,d.toArray()))},"Array, Array":i});function i(a,l){if(1===hi(a).length&&(a=[a]),1===hi(l).length&&(l=[l]),hi(a).length>2||hi(l).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(l.length)+")");var d=[],h=[];return a.map(function(p){return l.map(function(y){return h=[],d.push(h),p.map(function(S){return y.map(function(R){return h.push(r(S,R))})})})})&&d}}),U8="largerEq",kIe=Ke(U8,["typed","config","matrix","DenseMatrix","concat"],n=>{var{typed:e,config:t,matrix:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=Uh({typed:e,DenseMatrix:i}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:r,concat:a}),y=Dw({typed:e});return e(U8,EIe({typed:e,config:t}),{"boolean, boolean":(S,R)=>S>=R,"BigNumber, BigNumber":function(R,B){return R.gte(B)||Ld(R,B,t.epsilon)},"Fraction, Fraction":(S,R)=>-1!==S.compare(R),"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},y,p({SS:d,DS:l,Ss:h}))}),EIe=Ke(U8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(U8,{"number, number":function(i,a){return i>=a||Yl(i,a,t.epsilon)}})}),VB=Ke("matAlgo08xS0Sid",["typed","equalScalar"],n=>{var{typed:e,equalScalar:t}=n;return function(i,a,l){var d=i._values,h=i._index,p=i._ptr,y=i._size,S=i._datatype||void 0===i._data?i._datatype:i.getDataType(),R=a._values,B=a._index,q=a._ptr,V=a._size,ee=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(y.length!==V.length)throw new Ii(y.length,V.length);if(y[0]!==V[0]||y[1]!==V[1])throw new RangeError("Dimension mismatch. Matrix A ("+y+") must match Matrix B ("+V+")");if(!d||!R)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var re,ne=y[0],he=y[1],ce=t,pe=0,oe=l;"string"==typeof S&&S===ee&&"mixed"!==S&&(re=S,ce=e.find(t,[re,re]),pe=e.convert(0,re),oe=e.find(l,[re,re]));for(var Be,Ge,Ye,$e,Ae=[],De=[],Ce=[],_e=[],Re=[],Oe=0;Oe{var{typed:e,matrix:t}=n;return{"Array, number":e.referTo("DenseMatrix, number",r=>(i,a)=>r(t(i),a).valueOf()),"Array, BigNumber":e.referTo("DenseMatrix, BigNumber",r=>(i,a)=>r(t(i),a).valueOf()),"number, Array":e.referTo("number, DenseMatrix",r=>(i,a)=>r(i,t(a)).valueOf()),"BigNumber, Array":e.referTo("BigNumber, DenseMatrix",r=>(i,a)=>r(i,t(a)).valueOf())}}),uQ="leftShift",MIe=Ke(uQ,["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,zeros:i,DenseMatrix:a,concat:l}=n,d=Wg({typed:e}),h=Bu({typed:e,equalScalar:r}),p=VB({typed:e,equalScalar:r}),y=ly({typed:e,DenseMatrix:a}),S=Ks({typed:e,equalScalar:r}),R=Pu({typed:e}),B=qo({typed:e,matrix:t,concat:l}),q=qB({typed:e,matrix:t});return e(uQ,{"number, number":GX,"BigNumber, BigNumber":G2e,"SparseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():S(ee,ne,V,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():R(ee,ne,V,!1)),"number | BigNumber, SparseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):y(ne,ee,V,!0)),"number | BigNumber, DenseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):R(ne,ee,V,!0))},q,B({SS:p,DS:d,SD:h}))});function WA(n){var{DenseMatrix:e}=n;return function(r,i,a){var l=r.size();if(2!==l.length)throw new RangeError("Matrix must be two dimensional (size: "+Ti(l)+")");var d=l[0];if(d!==l[1])throw new RangeError("Matrix must be square (size: "+Ti(l)+")");var p=[];if(Ur(i)){var y=i.size(),S=i._data;if(1===y.length){if(y[0]!==d)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var R=0;R{var{typed:e,matrix:t,divideScalar:r,multiplyScalar:i,subtractScalar:a,equalScalar:l,DenseMatrix:d}=n,h=WA({DenseMatrix:d});return e("lsolve",{"SparseMatrix, Array | Matrix":function(R,B){return function y(S,R){for(var B=(R=h(S,R,!0))._data,q=S._size[0],V=S._size[1],ee=S._values,ne=S._index,he=S._ptr,re=[],ce=0;cece&&(Ae.push(ee[Re]),De.push(Be))}if(l(oe,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var Ge=r(pe,oe),Ye=0,$e=De.length;Ye<$e;Ye++){var Oe=De[Ye];B[Oe]=[a(B[Oe][0]||0,i(Ge,Ae[Ye]))]}re[ce]=[Ge]}}return new d({data:re,size:[q,1]})}(R,B)},"DenseMatrix, Array | Matrix":function(R,B){return p(R,B)},"Array, Array | Matrix":function(R,B){return p(t(R),B).valueOf()}});function p(S,R){for(var B=(R=h(S,R,!0))._data,q=S._size[0],V=S._size[1],ee=[],ne=S._data,he=0;he{var{typed:e,matrix:t,flatten:r,size:i}=n;return e(fQ,{"...Array":function(h){return a(h)},"...Matrix":function(h){return t(a(h.map(p=>p.toArray())))}});function a(d){if(0===d.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var h=l(d[0]),p=[],y=0;y{var{typed:e,matrix:t,equalScalar:r,BigNumber:i,concat:a}=n,l=Wg({typed:e}),d=Bu({typed:e,equalScalar:r}),h=E8({typed:e,equalScalar:r}),p=Ks({typed:e,equalScalar:r}),y=qo({typed:e,matrix:t,concat:a});function S(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return e(pQ,{number:nK,"number, number":nK,BigNumber:B=>R(B,new i(2)),"BigNumber, BigNumber":R,Complex:S,"Complex, number":S,Array:e.referTo("DenseMatrix,number",B=>q=>B(t(q),2).valueOf()),DenseMatrix:e.referTo("DenseMatrix,number",B=>q=>B(q,2)),SparseMatrix:e.referTo("SparseMatrix,number",B=>q=>B(q,2)),"SparseMatrix, SparseMatrix":e.referToSelf(B=>(q,V)=>{if(1===V.density())return h(q,V,B);throw new Error("Root must be non-zero")}),"DenseMatrix, SparseMatrix":e.referToSelf(B=>(q,V)=>{if(1===V.density())return l(q,V,B,!1);throw new Error("Root must be non-zero")}),"Array, SparseMatrix":e.referTo("DenseMatrix,SparseMatrix",B=>(q,V)=>B(t(q),V)),"number | BigNumber, SparseMatrix":e.referToSelf(B=>(q,V)=>{if(1===V.density())return p(V,q,B,!0);throw new Error("Root must be non-zero")})},y({scalar:"number | BigNumber",SD:d,Ss:p,sS:!1}));function R(B,q){var V=i.precision,ee=i.clone({precision:V+2}),ne=new i(0),he=new ee(1),re=q.isNegative();if(re&&(q=q.neg()),q.isZero())throw new Error("Root must be non-zero");if(B.isNegative()&&!q.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(B.isZero())return re?new ee(1/0):0;if(!B.isFinite())return re?ne:B;var ce=B.abs().pow(he.div(q));return ce=B.isNeg()?ce.neg():ce,new i((re?he.div(ce):ce).toPrecision(V))}}),LIe=Ke("ones",["typed","config","matrix","BigNumber"],n=>{var{typed:e,config:t,matrix:r,BigNumber:i}=n;return e("ones",{"":function(){return"Array"===t.matrix?a([]):a([],"default")},"...number | BigNumber | string":function(p){if("string"==typeof p[p.length-1]){var S=p.pop();return a(p,S)}return"Array"===t.matrix?a(p):a(p,"default")},Array:a,Matrix:function(p){var y=p.storage();return a(p.valueOf(),y)},"Array | Matrix, string":function(p,y){return a(p.valueOf(),y)}});function a(h,p){var y=function l(h){var p=!1;return h.forEach(function(y,S,R){Ci(y)&&(p=!0,R[S]=y.toNumber())}),p}(h),S=y?new i(1):1;if(function d(h){h.forEach(function(p){if("number"!=typeof p||!wr(p)||p<0)throw new Error("Parameters in function ones must be positive integers")})}(h),p){var R=r(p);return h.length>0?R.resize(h,S):R}var B=[];return h.length>0?yw(B,h,S):B}}),VIe=Ke("qr",["typed","matrix","zeros","identity","isZero","equal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtractScalar","complex"],n=>{var{typed:e,matrix:t,zeros:r,identity:i,isZero:a,equal:l,sign:d,sqrt:h,conj:p,unaryMinus:y,addScalar:S,divideScalar:R,multiplyScalar:B,subtractScalar:q,complex:V}=n;return us(e("qr",{DenseMatrix:function(ce){return ne(ce)},SparseMatrix:function(ce){return function he(re){throw new Error("qr not implemented for sparse matrices yet")}()},Array:function(ce){var oe=ne(t(ce));return{Q:oe.Q.valueOf(),R:oe.R.valueOf()}}}),{_denseQRimpl:ee});function ee(re){var _e,Re,Be,ce=re._size[0],pe=re._size[1],oe=i([ce],"dense"),Ae=oe._data,De=re.clone(),Ce=De._data,Ge=r([ce],"");for(Be=0;Be0)for(var oe="Complex"===pe[0][0].type?V(0):0,Ae=0;Ae{var{config:e,matrix:t}=n;return function(a,l,d){if(2!==arguments.length&&3!==arguments.length)throw new cy("resize",arguments.length,2,3);if(Ur(l)&&(l=l.valueOf()),Ci(l[0])&&(l=l.map(function(y){return Ci(y)?y.toNumber():y})),Ur(a))return a.resize(l,d,!0);if("string"==typeof a)return function r(i,a,l){if(void 0!==l){if("string"!=typeof l||1!==l.length)throw new TypeError("Single character expected as defaultValue")}else l=" ";if(1!==a.length)throw new Ii(a.length,1);var d=a[0];if("number"!=typeof d||!wr(d))throw new TypeError("Invalid size, must contain positive integers (size: "+Ti(a)+")");if(i.length>d)return i.substring(0,d);if(i.length{var{typed:e,matrix:t,equalScalar:r,zeros:i,DenseMatrix:a,concat:l}=n,d=Wg({typed:e}),h=Bu({typed:e,equalScalar:r}),p=VB({typed:e,equalScalar:r}),y=ly({typed:e,DenseMatrix:a}),S=Ks({typed:e,equalScalar:r}),R=Pu({typed:e}),B=qo({typed:e,matrix:t,concat:l}),q=qB({typed:e,matrix:t});return e(gQ,{"number, number":XX,"BigNumber, BigNumber":X2e,"SparseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():S(ee,ne,V,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():R(ee,ne,V,!1)),"number | BigNumber, SparseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):y(ne,ee,V,!0)),"number | BigNumber, DenseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):R(ne,ee,V,!0))},q,B({SS:p,DS:d,SD:h}))}),Nw="Number of decimals in function round must be an integer",GIe=Ke("round",["typed","config","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],n=>{var{typed:e,config:t,matrix:r,equalScalar:i,zeros:a,BigNumber:l,DenseMatrix:d}=n,h=Ks({typed:e,equalScalar:i}),p=fs({typed:e,DenseMatrix:d}),y=Pu({typed:e});function S(R){return Math.abs(FA(R).exponent)}return e("round",{number:function(B){var q=HA(B,S(t.epsilon));return HA(Yl(B,q,t.epsilon)?q:B)},"number, number":function(B,q){var V=S(t.epsilon);if(q>=V)return HA(B,q);var ee=HA(B,V);return HA(Yl(B,ee,t.epsilon)?ee:B,q)},"number, BigNumber":function(B,q){if(!q.isInteger())throw new TypeError(Nw);return new l(B).toDecimalPlaces(q.toNumber())},Complex:function(B){return B.round()},"Complex, number":function(B,q){if(q%1)throw new TypeError(Nw);return B.round(q)},"Complex, BigNumber":function(B,q){if(!q.isInteger())throw new TypeError(Nw);var V=q.toNumber();return B.round(V)},BigNumber:function(B){var q=new l(B).toDecimalPlaces(S(t.epsilon));return(Ld(B,q,t.epsilon)?q:B).toDecimalPlaces(0)},"BigNumber, BigNumber":function(B,q){if(!q.isInteger())throw new TypeError(Nw);var V=S(t.epsilon);if(q>=V)return B.toDecimalPlaces(q.toNumber());var ee=B.toDecimalPlaces(V);return(Ld(B,ee,t.epsilon)?ee:B).toDecimalPlaces(q.toNumber())},Fraction:function(B){return B.round()},"Fraction, number":function(B,q){if(q%1)throw new TypeError(Nw);return B.round(q)},"Fraction, BigNumber":function(B,q){if(!q.isInteger())throw new TypeError(Nw);return B.round(q.toNumber())},"Unit, number, Unit":e.referToSelf(R=>function(B,q,V){var ee=B.toNumeric(V);return V.multiply(R(ee,q))}),"Unit, BigNumber, Unit":e.referToSelf(R=>(B,q,V)=>R(B,q.toNumber(),V)),"Unit, Unit":e.referToSelf(R=>(B,q)=>R(B,0,q)),"Array | Matrix, number, Unit":e.referToSelf(R=>(B,q,V)=>Ni(B,ee=>R(ee,q,V),!0)),"Array | Matrix, BigNumber, Unit":e.referToSelf(R=>(B,q,V)=>R(B,q.toNumber(),V)),"Array | Matrix, Unit":e.referToSelf(R=>(B,q)=>R(B,0,q)),"Array | Matrix":e.referToSelf(R=>B=>Ni(B,R,!0)),"SparseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>h(B,q,R,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>y(B,q,R,!1)),"Array, number | BigNumber":e.referToSelf(R=>(B,q)=>y(r(B),q,R,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":e.referToSelf(R=>(B,q)=>i(B,0)?a(q.size(),q.storage()):p(q,B,R,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":e.referToSelf(R=>(B,q)=>i(B,0)?a(q.size(),q.storage()):y(q,B,R,!0)),"number | Complex | BigNumber | Fraction, Array":e.referToSelf(R=>(B,q)=>y(r(q),B,R,!0).valueOf())})}),H8="smaller",YIe=Ke(H8,["typed","config","matrix","DenseMatrix","concat"],n=>{var{typed:e,config:t,matrix:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=Uh({typed:e,DenseMatrix:i}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:r,concat:a}),y=Dw({typed:e});return e(H8,KIe({typed:e,config:t}),{"boolean, boolean":(S,R)=>S-1===S.compare(R),"Complex, Complex":function(R,B){throw new TypeError("No ordering relation is defined for complex numbers")}},y,p({SS:d,DS:l,Ss:h}))}),KIe=Ke(H8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(H8,{"number, number":function(i,a){return i{var{typed:e,matrix:t,equalScalar:r,subtractScalar:i,unaryMinus:a,DenseMatrix:l,concat:d}=n,h=Wg({typed:e}),p=Zl({typed:e}),y=k8({typed:e,equalScalar:r}),S=ly({typed:e,DenseMatrix:l}),R=fs({typed:e,DenseMatrix:l}),B=qo({typed:e,matrix:t,concat:d});return e(vQ,{"any, any":i},B({elop:i,SS:y,DS:h,SD:p,Ss:R,sS:S}))}),e3e=Ke("to",["typed","matrix","concat"],n=>{var{typed:e,matrix:t,concat:r}=n;return e("to",{"Unit, Unit | string":(a,l)=>a.to(l)},qo({typed:e,matrix:t,concat:r})({Ds:!0}))}),$8="unequal",n3e=Ke($8,["typed","config","equalScalar","matrix","DenseMatrix","concat"],n=>{var{typed:e,config:t,equalScalar:r,matrix:i,DenseMatrix:a,concat:l}=n,d=Zl({typed:e}),h=Uh({typed:e,DenseMatrix:a}),p=fs({typed:e,DenseMatrix:a}),y=qo({typed:e,matrix:i,concat:l});return e($8,r3e({typed:e,equalScalar:r}),y({elop:function S(R,B){return!r(R,B)},SS:h,DS:d,Ss:p}))}),r3e=Ke($8,["typed","equalScalar"],n=>{var{typed:e,equalScalar:t}=n;return e($8,{"any, any":function(i,a){return null===i?null!==a:null===a?null!==i:void 0===i?void 0!==a:void 0===a?void 0!==i:!t(i,a)}})}),o3e=Ke("usolve",["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],n=>{var{typed:e,matrix:t,divideScalar:r,multiplyScalar:i,subtractScalar:a,equalScalar:l,DenseMatrix:d}=n,h=WA({DenseMatrix:d});return e("usolve",{"SparseMatrix, Array | Matrix":function(R,B){return function y(S,R){for(var B=(R=h(S,R,!0))._data,q=S._size[0],V=S._size[1],ee=S._values,ne=S._index,he=S._ptr,re=[],ce=V-1;ce>=0;ce--){var pe=B[ce][0]||0;if(l(pe,0))re[ce]=[0];else{for(var oe=0,Ae=[],De=[],Ce=he[ce],Re=he[ce+1]-1;Re>=Ce;Re--){var Be=ne[Re];Be===ce?oe=ee[Re]:Be=0;he--){var re=B[he][0]||0,ce=void 0;if(l(re,0))ce=0;else{var pe=ne[he][he];if(l(pe,0))throw new Error("Linear system cannot be solved since matrix is singular");ce=r(re,pe);for(var oe=he-1;oe>=0;oe--)B[oe]=[a(B[oe][0]||0,i(ce,ne[oe][he]))]}ee[he]=[ce]}return new d({data:ee,size:[q,1]})}}),s3e=Ke("xor",["typed","matrix","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,DenseMatrix:r,concat:i}=n,a=Zl({typed:e}),l=Uh({typed:e,DenseMatrix:r}),d=fs({typed:e,DenseMatrix:r}),h=qo({typed:e,matrix:t,concat:i});return e("xor",{"number, number":DX,"Complex, Complex":function(y,S){return(0!==y.re||0!==y.im)!=(0!==S.re||0!==S.im)},"BigNumber, BigNumber":function(y,S){return(!y.isZero()&&!y.isNaN())!=(!S.isZero()&&!S.isNaN())},"Unit, Unit":e.referToSelf(p=>(y,S)=>p(y.value||0,S.value||0))},h({SS:l,DS:a,Ss:d}))}),c3e=Ke("add",["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],n=>{var{typed:e,matrix:t,addScalar:r,equalScalar:i,DenseMatrix:a,SparseMatrix:l,concat:d}=n,h=Wg({typed:e}),p=AB({typed:e,equalScalar:i}),y=ly({typed:e,DenseMatrix:a}),S=qo({typed:e,matrix:t,concat:d});return e("add",{"any, any":r,"any, any, ...any":e.referToSelf(R=>(B,q,V)=>{for(var ee=R(B,q),ne=0;ne{var{typed:e,equalScalar:t}=n;return function(i,a,l){var d=i._values,h=i._index,p=i._ptr,y=i._size,S=i._datatype||void 0===i._data?i._datatype:i.getDataType(),R=a._values,B=a._index,q=a._ptr,V=a._size,ee=a._datatype||void 0===a._data?a._datatype:a.getDataType();if(y.length!==V.length)throw new Ii(y.length,V.length);if(y[0]!==V[0]||y[1]!==V[1])throw new RangeError("Dimension mismatch. Matrix A ("+y+") must match Matrix B ("+V+")");var re,ne=y[0],he=y[1],ce=t,pe=0,oe=l;"string"==typeof S&&S===ee&&"mixed"!==S&&(re=S,ce=e.find(t,[re,re]),pe=e.convert(0,re),oe=e.find(l,[re,re]));var Be,Ge,Ye,$e,Oe,Ae=d&&R?[]:void 0,De=[],Ce=[],_e=Ae?[]:void 0,Re=[];for(Ge=0;Ge{var{typed:e,matrix:t,equalScalar:r,BigNumber:i,DenseMatrix:a,concat:l}=n,d=Bu({typed:e,equalScalar:r}),h=Zl({typed:e}),p=CQ({typed:e,equalScalar:r}),y=Ks({typed:e,equalScalar:r}),S=fs({typed:e,DenseMatrix:a}),R=qo({typed:e,matrix:t,concat:l});return e("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":(B,q)=>i.atan2(B,q)},R({scalar:"number | BigNumber",SS:p,DS:h,SD:d,Ss:y,sS:S}))}),m3e=Ke("bitXor",["typed","matrix","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,DenseMatrix:r,concat:i}=n,a=Zl({typed:e}),l=Uh({typed:e,DenseMatrix:r}),d=fs({typed:e,DenseMatrix:r});return e("bitXor",{"number, number":WX,"BigNumber, BigNumber":W2e},qo({typed:e,matrix:t,concat:i})({SS:l,DS:a,Ss:d}))}),SQ="catalan",b3e=Ke(SQ,["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],n=>{var{typed:e,addScalar:t,divideScalar:r,multiplyScalar:i,combinations:a,isNegative:l,isInteger:d}=n;return e(SQ,{"number | BigNumber":function(p){if(!d(p)||l(p))throw new TypeError("Non-negative integer value expected in function catalan");return r(a(i(p,2),p),t(p,1))}})}),W8="compare",y3e=Ke(W8,["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix","concat"],n=>{var{typed:e,config:t,equalScalar:r,matrix:i,BigNumber:a,Fraction:l,DenseMatrix:d,concat:h}=n,p=Zl({typed:e}),y=k8({typed:e,equalScalar:r}),S=fs({typed:e,DenseMatrix:d}),R=qo({typed:e,matrix:i,concat:h}),B=Dw({typed:e});return e(W8,_3e({typed:e,config:t}),{"boolean, boolean":function(V,ee){return V===ee?0:V>ee?1:-1},"BigNumber, BigNumber":function(V,ee){return Ld(V,ee,t.epsilon)?new a(0):new a(V.cmp(ee))},"Fraction, Fraction":function(V,ee){return new l(V.compare(ee))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},B,R({SS:y,DS:p,Ss:S}))}),_3e=Ke(W8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(W8,{"number, number":function(i,a){return Yl(i,a,t.epsilon)?0:i>a?1:-1}})}),AQ="compareText",x3e=["typed","matrix","concat"];hB.signature="any, any";var w3e=Ke(AQ,x3e,n=>{var{typed:e,matrix:t,concat:r}=n,i=qo({typed:e,matrix:t,concat:r});return e(AQ,hB,i({elop:hB,Ds:!0}))}),DQ="deepEqual",k3e=Ke(DQ,["typed","equal"],n=>{var{typed:e,equal:t}=n;return e(DQ,{"any, any":function(a,l){return r(a.valueOf(),l.valueOf())}});function r(i,a){if(Array.isArray(i)){if(Array.isArray(a)){var l=i.length;if(l!==a.length)return!1;for(var d=0;d{var{typed:e,addScalar:t,subtractScalar:r,multiplyScalar:i,divideScalar:a,deepEqual:l,sqrt:d,abs:h}=n;return e(MQ,{"Array, Array, Array":function(pe,oe,Ae){if(2===pe.length&&2===oe.length&&2===Ae.length){if(!y(pe))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!y(oe))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!y(Ae))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(l(oe,Ae))throw new TypeError("LinePoint1 should not be same with LinePoint2");var De=r(Ae[1],oe[1]),Ce=r(oe[0],Ae[0]),_e=r(i(Ae[0],oe[1]),i(oe[0],Ae[1]));return ee(pe[0],pe[1],De,Ce,_e)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(pe,oe,Ae){if(2===Object.keys(pe).length&&2===Object.keys(oe).length&&2===Object.keys(Ae).length){if(!y(pe))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!y(oe))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!y(Ae))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(l(q(oe),q(Ae)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in pe&&"pointY"in pe&&"lineOnePtX"in oe&&"lineOnePtY"in oe&&"lineTwoPtX"in Ae&&"lineTwoPtY"in Ae){var De=r(Ae.lineTwoPtY,oe.lineOnePtY),Ce=r(oe.lineOnePtX,Ae.lineTwoPtX),_e=r(i(Ae.lineTwoPtX,oe.lineOnePtY),i(oe.lineOnePtX,Ae.lineTwoPtY));return ee(pe.pointX,pe.pointY,De,Ce,_e)}throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(pe,oe){if(2===pe.length&&3===oe.length){if(!y(pe))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!S(oe))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return ee(pe[0],pe[1],oe[0],oe[1],oe[2])}if(3===pe.length&&6===oe.length){if(!S(pe))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!B(oe))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return ne(pe[0],pe[1],pe[2],oe[0],oe[1],oe[2],oe[3],oe[4],oe[5])}if(pe.length===oe.length&&pe.length>0){if(!R(pe))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!R(oe))throw new TypeError("All values of an array should be numbers or BigNumbers");return he(pe,oe)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(pe,oe){if(2===Object.keys(pe).length&&3===Object.keys(oe).length){if(!y(pe))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!S(oe))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in pe&&"pointY"in pe&&"xCoeffLine"in oe&&"yCoeffLine"in oe&&"constant"in oe)return ee(pe.pointX,pe.pointY,oe.xCoeffLine,oe.yCoeffLine,oe.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(pe).length&&6===Object.keys(oe).length){if(!S(pe))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!B(oe))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in pe&&"pointY"in pe&&"x0"in oe&&"y0"in oe&&"z0"in oe&&"a"in oe&&"b"in oe&&"c"in oe)return ne(pe.pointX,pe.pointY,pe.pointZ,oe.x0,oe.y0,oe.z0,oe.a,oe.b,oe.c);throw new TypeError("Key names do not match")}if(2===Object.keys(pe).length&&2===Object.keys(oe).length){if(!y(pe))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!y(oe))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in pe&&"pointOneY"in pe&&"pointTwoX"in oe&&"pointTwoY"in oe)return he([pe.pointOneX,pe.pointOneY],[oe.pointTwoX,oe.pointTwoY]);throw new TypeError("Key names do not match")}if(3===Object.keys(pe).length&&3===Object.keys(oe).length){if(!S(pe))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!S(oe))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in pe&&"pointOneY"in pe&&"pointOneZ"in pe&&"pointTwoX"in oe&&"pointTwoY"in oe&&"pointTwoZ"in oe)return he([pe.pointOneX,pe.pointOneY,pe.pointOneZ],[oe.pointTwoX,oe.pointTwoY,oe.pointTwoZ]);throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},Array:function(pe){if(!function V(ce){if(2===ce[0].length&&p(ce[0][0])&&p(ce[0][1])){if(ce.some(pe=>2!==pe.length||!p(pe[0])||!p(pe[1])))return!1}else{if(!(3===ce[0].length&&p(ce[0][0])&&p(ce[0][1])&&p(ce[0][2])))return!1;if(ce.some(pe=>3!==pe.length||!p(pe[0])||!p(pe[1])||!p(pe[2])))return!1}return!0}(pe))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return function re(ce){for(var pe=[],oe=[],Ae=[],De=0;De{var{typed:e,addScalar:t,multiplyScalar:r,conj:i,size:a}=n;return e("dot",{"Array | DenseMatrix, Array | DenseMatrix":function d(y,S){var R=l(y,S),B=Ur(y)?y._data:y,q=Ur(y)?y._datatype||y.getDataType():void 0,V=Ur(S)?S._data:S,ee=Ur(S)?S._datatype||S.getDataType():void 0,ne=2===p(y).length,he=2===p(S).length,re=t,ce=r;if(q&&ee&&q===ee&&"string"==typeof q&&"mixed"!==q){var pe=q;re=e.find(t,[pe,pe]),ce=e.find(r,[pe,pe])}if(!ne&&!he){for(var oe=ce(i(B[0]),V[0]),Ae=1;Aeoe?ce++:pe===oe&&(ee=ne(ee,he(B[re],V[ce])),re++,ce++)}return ee}});function l(y,S){var q,V,R=p(y),B=p(S);if(1===R.length)q=R[0];else{if(2!==R.length||1!==R[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+R.join(", ")+")");q=R[0]}if(1===B.length)V=B[0];else{if(2!==B.length||1!==B[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+B.join(", ")+")");V=B[0]}if(q!==V)throw new RangeError("Vectors must have equal length ("+q+" != "+V+")");if(0===q)throw new RangeError("Cannot calculate the dot product of empty vectors");return q}function p(y){return Ur(y)?y.size():a(y)}}),IQ="equalText",T3e=Ke(IQ,["typed","compareText","isZero"],n=>{var{typed:e,compareText:t,isZero:r}=n;return e(IQ,{"any, any":function(a,l){return r(t(a,l))}})}),jB="floor",I3e=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],N3e=Ke(jB,["typed","config","round"],n=>{var{typed:e,config:t,round:r}=n;return e(jB,{number:function(a){return Yl(a,r(a),t.epsilon)?r(a):Math.floor(a)},"number, number":function(a,l){if(Yl(a,r(a,l),t.epsilon))return r(a,l);var[d,h]="".concat(a,"e").split("e"),p=Math.floor(Number("".concat(d,"e").concat(Number(h)+l)));return[d,h]="".concat(p,"e").split("e"),Number("".concat(d,"e").concat(Number(h)-l))}})}),NQ=Ke(jB,I3e,n=>{var{typed:e,config:t,round:r,matrix:i,equalScalar:a,zeros:l,DenseMatrix:d}=n,h=Ks({typed:e,equalScalar:a}),p=fs({typed:e,DenseMatrix:d}),y=Pu({typed:e}),S=N3e({typed:e,config:t,round:r});return e("floor",{number:S.signatures.number,"number,number":S.signatures["number,number"],Complex:function(B){return B.floor()},"Complex, number":function(B,q){return B.floor(q)},"Complex, BigNumber":function(B,q){return B.floor(q.toNumber())},BigNumber:function(B){return Ld(B,r(B),t.epsilon)?r(B):B.floor()},"BigNumber, BigNumber":function(B,q){return Ld(B,r(B,q),t.epsilon)?r(B,q):B.toDecimalPlaces(q.toNumber(),F8.ROUND_FLOOR)},Fraction:function(B){return B.floor()},"Fraction, number":function(B,q){return B.floor(q)},"Fraction, BigNumber":function(B,q){return B.floor(q.toNumber())},"Array | Matrix":e.referToSelf(R=>B=>Ni(B,R,!0)),"Array, number | BigNumber":e.referToSelf(R=>(B,q)=>Ni(B,V=>R(V,q),!0)),"SparseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>h(B,q,R,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>y(B,q,R,!1)),"number | Complex | Fraction | BigNumber, Array":e.referToSelf(R=>(B,q)=>y(i(q),B,R,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":e.referToSelf(R=>(B,q)=>a(B,0)?l(q.size(),q.storage()):"dense"===q.storage()?y(q,B,R,!0):p(q,B,R,!0))})}),RQ=Ke("mod",["typed","config","round","matrix","equalScalar","zeros","DenseMatrix","concat"],n=>{var{typed:e,config:t,round:r,matrix:i,equalScalar:a,zeros:l,DenseMatrix:d,concat:h}=n,p=NQ({typed:e,config:t,round:r,matrix:i,equalScalar:a,zeros:l,DenseMatrix:d}),y=Bu({typed:e,equalScalar:a}),S=Zl({typed:e}),R=k8({typed:e,equalScalar:a}),B=Ks({typed:e,equalScalar:a}),q=fs({typed:e,DenseMatrix:d});return e("mod",{"number, number":function ee(ne,he){return 0===he?ne:ne-he*p(ne/he)},"BigNumber, BigNumber":function(he,re){return re.isZero()?he:he.sub(re.mul(p(he.div(re))))},"Fraction, Fraction":function(he,re){return re.equals(0)?he:he.sub(re.mul(p(he.div(re))))}},qo({typed:e,matrix:i,concat:h})({SS:R,DS:S,SD:y,Ss:B,sS:q}))}),R3e=["typed","config","round","matrix","equalScalar","zeros","BigNumber","DenseMatrix","concat"],UB="number | BigNumber | Fraction | Matrix | Array",F3e="".concat(UB,", ").concat(UB,", ...").concat(UB);function PQ(n){return!n.some(e=>Array.isArray(e))}var P3e=Ke("gcd",R3e,n=>{var{typed:e,matrix:t,config:r,round:i,equalScalar:a,zeros:l,BigNumber:d,DenseMatrix:h,concat:p}=n,y=RQ({typed:e,config:r,round:i,matrix:t,equalScalar:a,zeros:l,DenseMatrix:h,concat:p}),S=Wg({typed:e}),R=AB({typed:e,equalScalar:a}),B=ly({typed:e,DenseMatrix:h});return e("gcd",{"number, number":function V(ne,he){if(!wr(ne)||!wr(he))throw new Error("Parameters in function gcd must be integer numbers");for(var re;0!==he;)re=y(ne,he),ne=he,he=re;return ne<0?-ne:ne},"BigNumber, BigNumber":function ee(ne,he){if(!ne.isInt()||!he.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var re=new d(0);!he.isZero();){var ce=y(ne,he);ne=he,he=ce}return ne.lt(re)?ne.neg():ne},"Fraction, Fraction":(ne,he)=>ne.gcd(he)},qo({typed:e,matrix:t,concat:p})({SS:R,DS:S,Ss:B}),{[F3e]:e.referToSelf(ne=>(he,re,ce)=>{for(var pe=ne(he,re),oe=0;oehe=>{if(1===he.length&&Array.isArray(he[0])&&PQ(he[0]))return ne(...he[0]);if(PQ(he))return ne(...he);throw new cy("gcd() supports only 1d matrices!")}),Matrix:e.referToSelf(ne=>he=>ne(he.toArray()))})}),L3e=Ke("hypot",["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],n=>{var{typed:e,abs:t,addScalar:r,divideScalar:i,multiplyScalar:a,sqrt:l,smaller:d,isPositive:h}=n;return e("hypot",{"... number | BigNumber":p,Array:p,Matrix:y=>p(ro(y.toArray()))});function p(y){for(var S=0,R=0,B=0;B{var{smaller:e,DenseMatrix:t}=n;function r(i,a){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(a&&!vl(a))throw new Error("Invalid datatype: "+a);if(Ur(i)||fo(i)){var l=new t(i,a);this._data=l._data,this._size=l._size,this._datatype=l._datatype,this._min=null,this._max=null}else if(i&&fo(i.data)&&fo(i.size))this._data=i.data,this._size=i.size,this._datatype=i.datatype,this._min=typeof i.min<"u"?i.min:null,this._max=typeof i.max<"u"?i.max:null;else{if(i)throw new TypeError("Unsupported type of data ("+No(i)+")");this._data=[],this._size=[0],this._datatype=a,this._min=null,this._max=null}}return r.prototype=new t,r.prototype.type="ImmutableDenseMatrix",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(i){switch(arguments.length){case 1:var a=t.prototype.subset.call(this,i);return Ur(a)?new r({data:a._data,size:a._size,datatype:a._datatype}):a;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},r.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},r.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},r.prototype.clone=function(){return new r({data:ci(this._data),size:ci(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(i){return new r(i)},r.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},r.prototype.min=function(){if(null===this._min){var i=null;this.forEach(function(a){(null===i||e(a,i))&&(i=a)}),this._min=null!==i?i:void 0}return this._min},r.prototype.max=function(){if(null===this._max){var i=null;this.forEach(function(a){(null===i||e(i,a))&&(i=a)}),this._max=null!==i?i:void 0}return this._max},r},{isClass:!0}),H3e=Ke("Index",["ImmutableDenseMatrix","getMatrixDataType"],n=>{var{ImmutableDenseMatrix:e,getMatrixDataType:t}=n;function r(a){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._sourceSize=[],this._isScalar=!0;for(var l=0,d=arguments.length;l{t&&e.push(r)}),e}var G8="larger",W3e=Ke(G8,["typed","config","matrix","DenseMatrix","concat"],n=>{var{typed:e,config:t,matrix:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=Uh({typed:e,DenseMatrix:i}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:r,concat:a}),y=Dw({typed:e});return e(G8,G3e({typed:e,config:t}),{"boolean, boolean":(S,R)=>S>R,"BigNumber, BigNumber":function(R,B){return R.gt(B)&&!Ld(R,B,t.epsilon)},"Fraction, Fraction":(S,R)=>1===S.compare(R),"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},y,p({SS:d,DS:l,Ss:h}))}),G3e=Ke(G8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(G8,{"number, number":function(i,a){return i>a&&!Yl(i,a,t.epsilon)}})}),Y3e=Ke("log",["config","typed","divideScalar","Complex"],n=>{var{typed:e,config:t,divideScalar:r,Complex:i}=n;return e("log",{number:function(l){return l>=0||t.predictable?function KSe(n,e){return e?Math.log(n)/Math.log(e):Math.log(n)}(l):new i(l,0).log()},Complex:function(l){return l.log()},BigNumber:function(l){return!l.isNegative()||t.predictable?l.ln():new i(l.toNumber(),0).log()},"any, any":e.referToSelf(a=>(l,d)=>r(a(l),a(d)))})}),VQ="lsolveAll",Z3e=Ke(VQ,["typed","matrix","divideScalar","multiplyScalar","subtractScalar","equalScalar","DenseMatrix"],n=>{var{typed:e,matrix:t,divideScalar:r,multiplyScalar:i,subtractScalar:a,equalScalar:l,DenseMatrix:d}=n,h=WA({DenseMatrix:d});return e(VQ,{"SparseMatrix, Array | Matrix":function(R,B){return function y(S,R){for(var B=[h(S,R,!0)._data.map(Dt=>Dt[0])],q=S._size[0],V=S._size[1],ee=S._values,ne=S._index,he=S._ptr,re=0;rere&&(Ae.push(ee[Be]),De.push(Ge))}if(l(Re,0))if(l(oe[re],0)){if(0===pe){var Ie=[...oe];Ie[re]=1;for(var Ze=0,Pe=De.length;Zenew d({data:Dt.map(ht=>[ht]),size:[q,1]}))}(R,B)},"DenseMatrix, Array | Matrix":function(R,B){return p(R,B)},"Array, Array | Matrix":function(R,B){return p(t(R),B).map(ee=>ee.valueOf())}});function p(S,R){for(var B=[h(S,R,!0)._data.map(De=>De[0])],q=S._data,V=S._size[0],ee=S._size[1],ne=0;nenew d({data:De.map(Ce=>[Ce]),size:[V,1]}))}}),qQ="matrixFromRows",J3e=Ke(qQ,["typed","matrix","flatten","size"],n=>{var{typed:e,matrix:t,flatten:r,size:i}=n;return e(qQ,{"...Array":function(h){return a(h)},"...Matrix":function(h){return t(a(h.map(p=>p.toArray())))}});function a(d){if(0===d.length)throw new TypeError("At least one row is needed to construct a matrix.");var h=l(d[0]),p=[];for(var y of d){var S=l(y);if(S!==h)throw new TypeError("The vectors had different length: "+(0|h)+" \u2260 "+(0|S));p.push(r(y))}return p}function l(d){var h=i(d);if(1===h.length)return h[0];if(2===h.length){if(1===h[0])return h[1];if(1===h[1])return h[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}}),jQ="multiply",t4e=Ke(jQ,["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],n=>{var{typed:e,matrix:t,addScalar:r,multiplyScalar:i,equalScalar:a,dot:l}=n,d=Ks({typed:e,equalScalar:a}),h=Pu({typed:e});function p(pe,oe){switch(pe.length){case 1:switch(oe.length){case 1:if(pe[0]!==oe[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(pe[0]!==oe[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+pe[0]+") must match Matrix rows ("+oe[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+oe.length+" dimensions)")}break;case 2:switch(oe.length){case 1:if(pe[1]!==oe[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+pe[1]+") must match Vector length ("+oe[0]+")");break;case 2:if(pe[1]!==oe[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+pe[1]+") must match Matrix B rows ("+oe[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+oe.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+pe.length+" dimensions)")}}function S(pe,oe){if("dense"!==oe.storage())throw new Error("Support for SparseMatrix not implemented");return function R(pe,oe){var $e,Ae=pe._data,De=pe._size,Ce=pe._datatype||pe.getDataType(),_e=oe._data,Re=oe._size,Be=oe._datatype||oe.getDataType(),Ge=De[0],Ye=Re[1],Oe=r,Ie=i;Ce&&Be&&Ce===Be&&"string"==typeof Ce&&"mixed"!==Ce&&($e=Ce,Oe=e.find(r,[$e,$e]),Ie=e.find(i,[$e,$e]));for(var Ze=[],Pe=0;PeRt)for(var Lt=0,Ht=0;Ht<$e;Ht++){for(var tn=Ht+1,vn=void 0,Bn=Rt;Bn(oe,Ae)=>{p(hi(oe),hi(Ae));var De=pe(t(oe),t(Ae));return Ur(De)?De.valueOf():De}),"Matrix, Matrix":function(oe,Ae){var De=oe.size(),Ce=Ae.size();return p(De,Ce),1===De.length?1===Ce.length?function y(pe,oe,Ae){if(0===Ae)throw new Error("Cannot multiply two empty vectors");return l(pe,oe)}(oe,Ae,De[0]):S(oe,Ae):1===Ce.length?B(oe,Ae):q(oe,Ae)},"Matrix, Array":e.referTo("Matrix,Matrix",pe=>(oe,Ae)=>pe(oe,t(Ae))),"Array, Matrix":e.referToSelf(pe=>(oe,Ae)=>pe(t(oe,Ae.storage()),Ae)),"SparseMatrix, any":function(oe,Ae){return d(oe,Ae,i,!1)},"DenseMatrix, any":function(oe,Ae){return h(oe,Ae,i,!1)},"any, SparseMatrix":function(oe,Ae){return d(Ae,oe,i,!0)},"any, DenseMatrix":function(oe,Ae){return h(Ae,oe,i,!0)},"Array, any":function(oe,Ae){return h(t(oe),Ae,i,!1).valueOf()},"any, Array":function(oe,Ae){return h(t(Ae),oe,i,!0).valueOf()},"any, any":i,"any, any, ...any":e.referToSelf(pe=>(oe,Ae,De)=>{for(var Ce=pe(oe,Ae),_e=0;_e{var{typed:e,config:t,divideScalar:r,Complex:i}=n,a=[function(h){return new i(h,0)},function(h){return new i(0,h)},function(h){return new i(-h,0)},function(h){return new i(0,-h)}];function l(d,h){if(h<0)throw new Error("Root must be greater than zero");if(0===h)throw new Error("Root must be non-zero");if(h%1!=0)throw new Error("Root must be an integer");if(0===d||0===d.abs())return[new i(0,0)];var y,p="number"==typeof d;(p||0===d.re||0===d.im)&&(y=p?2*+(d<0):0===d.im?2*+(d.re<0):2*+(d.im<0)+1);for(var S=d.arg(),R=d.abs(),B=[],q=Math.pow(R,1/h),V=0;V{var{typed:e,isNumeric:t,isNaN:r,compare:i}=n,a=i,l=(p,y)=>-i(p,y);return e(HQ,{"Array | Matrix, number":function(y,S){return d(y,S,a)},"Array | Matrix, number, string":function(y,S,R){if("asc"===R)return d(y,S,a);if("desc"===R)return d(y,S,l);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":d});function d(p,y,S){if(!wr(y)||y<0)throw new Error("k must be a non-negative integer");if(Ur(p)){if(p.size().length>1)throw new Error("Only one dimensional matrices supported");return h(p.valueOf(),y,S)}if(Array.isArray(p))return h(p,y,S)}function h(p,y,S){if(y>=p.length)throw new Error("k out of bounds");for(var R=0;R=0){var he=p[ee];p[ee]=p[V],p[V]=he,--ee}else++V;S(p[V],ne)>0&&--V,y<=V?q=V:B=V+1}return p[y]}}),$Q="rightLogShift",s4e=Ke($Q,["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,zeros:i,DenseMatrix:a,concat:l}=n,d=Wg({typed:e}),h=Bu({typed:e,equalScalar:r}),p=VB({typed:e,equalScalar:r}),y=ly({typed:e,DenseMatrix:a}),S=Ks({typed:e,equalScalar:r}),R=Pu({typed:e}),B=qo({typed:e,matrix:t,concat:l}),q=qB({typed:e,matrix:t});return e($Q,{"number, number":YX,"SparseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():S(ee,ne,V,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(V=>(ee,ne)=>r(ne,0)?ee.clone():R(ee,ne,V,!1)),"number | BigNumber, SparseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):y(ne,ee,V,!0)),"number | BigNumber, DenseMatrix":e.referToSelf(V=>(ee,ne)=>r(ee,0)?i(ne.size(),ne.storage()):R(ne,ee,V,!0))},q,B({SS:p,DS:d,SD:h}))});function WQ(n,e,t,r,i,a,l){var d=0;for(t[l]=n;d>=0;){var h=t[l+d],p=t[r+h];-1===p?(d--,a[e++]=h):(t[r+h]=t[i+p],t[l+ ++d]=p)}return e}function Zg(n){return-n-2}var p4e=Ke("csAmd",["add","multiply","transpose"],n=>{var{add:e,multiply:t,transpose:r}=n;return function(y,S){if(!S||y<=0||y>3)return null;var R=S._size,B=R[0],q=R[1],V=0,ee=Math.max(16,10*Math.sqrt(q)),ne=function i(p,y,S,R,B){var q=r(y);if(1===p&&R===S)return e(y,q);if(2===p){for(var V=q._index,ee=q._ptr,ne=0,he=0;heB))for(var ce=ee[he+1];reV)S[ee+pe]=0,S[B+pe]=-1,ce++,y[pe]=Zg(p),S[ee+p]++;else{var Ae=S[ne+oe];-1!==Ae&&(he[Ae]=pe),S[re+pe]=S[ne+oe],S[ne+oe]=pe}}return ce}(q,re,oe,Be,Re,Ge,ee,De,_e,$e,Ce),Ze=0;Ieot?(Et=Dt,mn=st,Pt=oe[0+Dt]-ot):(mn=re[Et=he[st++]],Pt=oe[0+Et]),et=1;et<=Pt;et++)!((Rt=oe[De+(Pe=he[mn++])])<=0)&&(jt+=Rt,oe[De+Pe]=-Rt,he[Tt++]=Pe,-1!==oe[Ce+Pe]&&($e[oe[Ce+Pe]]=$e[Pe]),-1!==$e[Pe]?oe[Ce+$e[Pe]]=oe[Ce+Pe]:oe[_e+oe[Be+Pe]]=oe[Ce+Pe]);Et!==Dt&&(re[Et]=Zg(Dt),oe[Ge+Et]=0)}for(0!==ot&&(ce=Tt),oe[Be+Dt]=jt,re[Dt]=vt,oe[0+Dt]=Tt-vt,oe[Re+Dt]=-2,Oe=d(Oe,V,oe,Ge,q),Zt=vt;Zt=Oe?oe[Ge+Et]-=Rt:0!==oe[Ge+Et]&&(oe[Ge+Et]=oe[Be+Et]+gn)}for(Zt=vt;Zt0?(ir+=bn,he[vn++]=Et,Bn+=Et):(re[Et]=Zg(Dt),oe[Ge+Et]=0)}oe[Re+Pe]=vn-Ht+1;var Wn=vn,An=Ht+oe[0+Pe];for(st=tn+1;st=0))for(Pe=oe[Ye+(Bn=$e[Pe])],oe[Ye+Bn]=-1;-1!==Pe&&-1!==oe[Ce+Pe];Pe=oe[Ce+Pe],Oe++){for(Pt=oe[0+Pe],Lt=oe[Re+Pe],st=re[Pe]+1;st<=re[Pe]+Pt-1;st++)oe[Ge+he[st]]=Oe;var mi=Pe;for(bt=oe[Ce+Pe];-1!==bt;){var ao=oe[0+bt]===Pt&&oe[Re+bt]===Lt;for(st=re[bt]+1;ao&&st<=re[bt]+Pt-1;st++)oe[Ge+he[st]]!==Oe&&(ao=0);ao?(re[bt]=Zg(Pe),oe[De+Pe]+=oe[De+bt],oe[De+bt]=0,oe[Re+bt]=-1,bt=oe[Ce+bt],oe[Ce+mi]=bt):(mi=bt,bt=oe[Ce+bt])}}for(st=vt,Zt=vt;Zt=0;bt--)oe[De+bt]>0||(oe[Ce+bt]=oe[_e+re[bt]],oe[_e+re[bt]]=bt);for(Et=q;Et>=0;Et--)oe[De+Et]<=0||-1!==re[Et]&&(oe[Ce+Et]=oe[_e+re[Et]],oe[_e+re[Et]]=Et);for(Dt=0,Pe=0;Pe<=q;Pe++)-1===re[Pe]&&(Dt=WQ(Pe,Dt,oe,_e,Ce,pe,Ge));return pe.splice(pe.length-1,1),pe};function d(p,y,S,R,B){if(p<2||p+y<0){for(var q=0;q{var{transpose:e}=n;return function(t,r,i,a){if(!t||!r||!i)return null;var p,y,S,R,B,q,V,l=t._size,d=l[0],h=l[1],ee=4*h+(a?h+d+1:0),ne=[],re=h,ce=2*h,pe=3*h,oe=4*h,Ae=5*h+1;for(S=0;S=1&&De[y]++,2===Be.jleaf&&De[Be.q]--}-1!==r[y]&&(ne[0+y]=r[y])}for(y=0;y{var{add:e,multiply:t,transpose:r}=n,i=p4e({add:e,multiply:t,transpose:r}),a=v4e({transpose:r});return function(h,p,y){var q,S=p._ptr,B=p._size[1],V={};if(V.q=i(h,p),h&&!V.q)return null;if(y){var ee=h?function l4e(n,e,t,r){for(var i=n._values,a=n._index,l=n._ptr,d=n._size,h=n._datatype,p=d[0],y=d[1],S=r&&n._values?[]:null,R=[],B=[],q=0,V=0;V=0;r--)-1!==n[r]&&(a[d+r]=a[0+n[r]],a[0+n[r]]=r);for(r=0;r=0;Ae--)for(Ce=p[Ae],_e=p[Ae+1],De=Ce;De<_e;De++)ee[y[De]]=Ae;for(oe=R-1;oe>=0;oe--)V[oe]=-1,-1!==(Ae=ee[oe])&&(0==ne[pe+Ae]++&&(ne[ce+Ae]=oe),ne[he+oe]=ne[re+Ae],ne[re+Ae]=oe);for(h.lnz=0,h.m2=R,Ae=0;Ae=0;){n=r[R];var B=i?i[n]:n;HB(l,n)||(GQ(l,n),r[h+R]=B<0?0:XQ(l[B]));var q=1;for(y=r[h+R],S=B<0?0:XQ(l[B+1]);y{var{divideScalar:e,multiply:t,subtract:r}=n;return function(a,l,d,h,p,y,S){var ce,pe,oe,Ae,R=a._values,B=a._index,q=a._ptr,ee=a._size[1],ne=l._values,he=l._index,re=l._ptr,De=function C4e(n,e,t,r,i){var y,S,R,a=n._ptr,l=n._size,d=e._index,h=e._ptr,p=l[1],B=p;for(S=h[t],R=h[t+1],y=S;y{var{abs:e,divideScalar:t,multiply:r,subtract:i,larger:a,largerEq:l,SparseMatrix:d}=n,h=S4e({divideScalar:t,multiply:r,subtract:i});return function(y,S,R){if(!y)return null;var V,q=y._size[1],ee=100,ne=100;S&&(V=S.q,ee=S.lnz||ee,ne=S.unz||ne);var Re,Be,he=[],re=[],ce=[],pe=new d({values:he,index:re,ptr:ce,size:[q,q]}),oe=[],Ae=[],De=[],Ce=new d({values:oe,index:Ae,ptr:De,size:[q,q]}),_e=[],Ge=[],Ye=[];for(Re=0;Re{var{typed:e,abs:t,add:r,multiply:i,transpose:a,divideScalar:l,subtract:d,larger:h,largerEq:p,SparseMatrix:y}=n,S=x4e({add:r,multiply:i,transpose:a}),R=M4e({abs:t,divideScalar:l,multiply:i,subtract:d,larger:h,largerEq:p,SparseMatrix:y});return e("slu",{"SparseMatrix, number, number":function(q,V,ee){if(!wr(V)||V<0||V>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(ee<0||ee>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var ne=S(V,q,!1),he=R(q,ne,ee);return{L:he.L,U:he.U,p:he.pinv,q:ne.q,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})}),R4e=Ke("trace",["typed","matrix","add"],n=>{var{typed:e,matrix:t,add:r}=n;return e("trace",{Array:function(d){return i(t(d))},SparseMatrix:function a(l){var d=l._values,h=l._index,p=l._ptr,y=l._size,S=y[0],R=y[1];if(S===R){var B=0;if(d.length>0)for(var q=0;qq)break}return B}throw new RangeError("Matrix must be square (size: "+Ti(y)+")")},DenseMatrix:i,any:ci});function i(l){var d=l._size,h=l._data;switch(d.length){case 1:if(1===d[0])return ci(h[0]);throw new RangeError("Matrix must be square (size: "+Ti(d)+")");case 2:var p=d[0];if(p===d[1]){for(var S=0,R=0;R{var{typed:e,matrix:t,divideScalar:r,multiplyScalar:i,subtractScalar:a,equalScalar:l,DenseMatrix:d}=n,h=WA({DenseMatrix:d});return e(KQ,{"SparseMatrix, Array | Matrix":function(R,B){return function y(S,R){for(var B=[h(S,R,!0)._data.map(Dt=>Dt[0])],q=S._size[0],V=S._size[1],ee=S._values,ne=S._index,he=S._ptr,re=V-1;re>=0;re--)for(var ce=B.length,pe=0;pe=Ce;Be--){var Ge=ne[Be];Ge===re?Re=ee[Be]:Genew d({data:Dt.map(ht=>[ht]),size:[q,1]}))}(R,B)},"DenseMatrix, Array | Matrix":function(R,B){return p(R,B)},"Array, Array | Matrix":function(R,B){return p(t(R),B).map(ee=>ee.valueOf())}});function p(S,R){for(var B=[h(S,R,!0)._data.map(De=>De[0])],q=S._data,V=S._size[0],ne=S._size[1]-1;ne>=0;ne--)for(var he=B.length,re=0;re=0;Ae--)oe[Ae]=a(oe[Ae],q[Ae][ne]);B.push(oe)}}else{if(0===re)return[];B.splice(re,1),re-=1,he-=1}else{ce[ne]=r(ce[ne],q[ne][ne]);for(var pe=ne-1;pe>=0;pe--)ce[pe]=a(ce[pe],i(ce[ne],q[pe][ne]))}}return B.map(De=>new d({data:De.map(Ce=>[Ce]),size:[V,1]}))}}),L4e=Ke("zpk2tf",["typed","add","multiply","Complex","number"],n=>{var{typed:e,add:t,multiply:r,Complex:i,number:a}=n;return e("zpk2tf",{"Array,Array,number":function(p,y,S){return l(p,y,S)},"Array,Array":function(p,y){return l(p,y,1)},"Matrix,Matrix,number":function(p,y,S){return l(p.valueOf(),y.valueOf(),S)},"Matrix,Matrix":function(p,y){return l(p.valueOf(),y.valueOf(),1)}});function l(h,p,y){h.some(he=>"BigNumber"===he.type)&&(h=h.map(he=>a(he))),p.some(he=>"BigNumber"===he.type)&&(p=p.map(he=>a(he)));for(var S=[i(1,0)],R=[i(1,0)],B=0;B=0&&S-R{var{typed:e,config:t,round:r}=n;return e($B,{number:function(a){return Yl(a,r(a),t.epsilon)?r(a):Math.ceil(a)},"number, number":function(a,l){if(Yl(a,r(a,l),t.epsilon))return r(a,l);var[d,h]="".concat(a,"e").split("e"),p=Math.ceil(Number("".concat(d,"e").concat(Number(h)+l)));return[d,h]="".concat(p,"e").split("e"),Number("".concat(d,"e").concat(Number(h)-l))}})}),q4e=Ke($B,z4e,n=>{var{typed:e,config:t,round:r,matrix:i,equalScalar:a,zeros:l,DenseMatrix:d}=n,h=Ks({typed:e,equalScalar:a}),p=fs({typed:e,DenseMatrix:d}),y=Pu({typed:e}),S=V4e({typed:e,config:t,round:r});return e("ceil",{number:S.signatures.number,"number,number":S.signatures["number,number"],Complex:function(B){return B.ceil()},"Complex, number":function(B,q){return B.ceil(q)},"Complex, BigNumber":function(B,q){return B.ceil(q.toNumber())},BigNumber:function(B){return Ld(B,r(B),t.epsilon)?r(B):B.ceil()},"BigNumber, BigNumber":function(B,q){return Ld(B,r(B,q),t.epsilon)?r(B,q):B.toDecimalPlaces(q.toNumber(),F8.ROUND_CEIL)},Fraction:function(B){return B.ceil()},"Fraction, number":function(B,q){return B.ceil(q)},"Fraction, BigNumber":function(B,q){return B.ceil(q.toNumber())},"Array | Matrix":e.referToSelf(R=>B=>Ni(B,R,!0)),"Array, number | BigNumber":e.referToSelf(R=>(B,q)=>Ni(B,V=>R(V,q),!0)),"SparseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>h(B,q,R,!1)),"DenseMatrix, number | BigNumber":e.referToSelf(R=>(B,q)=>y(B,q,R,!1)),"number | Complex | Fraction | BigNumber, Array":e.referToSelf(R=>(B,q)=>y(i(q),B,R,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":e.referToSelf(R=>(B,q)=>a(B,0)?l(q.size(),q.storage()):"dense"===q.storage()?y(q,B,R,!0):p(q,B,R,!0))})}),Ow=mt(7955),QQ="compareNatural",U4e=Ke(QQ,["typed","compare"],n=>{var{typed:e,compare:t}=n,r=t.signatures["boolean,boolean"];return e(QQ,{"any, any":function i(h,p){var R,y=No(h),S=No(p);if(!("number"!==y&&"BigNumber"!==y&&"Fraction"!==y||"number"!==S&&"BigNumber"!==S&&"Fraction"!==S))return"0"!==(R=t(h,p)).toString()?R>0?1:-1:Ow(y,S);var B=["Array","DenseMatrix","SparseMatrix"];if(B.includes(y)||B.includes(S))return R=a(i,h,p),0!==R?R:Ow(y,S);if(y!==S)return Ow(y,S);if("Complex"===y)return function H4e(n,e){return n.re>e.re?1:n.ree.im?1:n.imy.length?1:p.length{var{typed:e,addScalar:t,combinations:r,isPositive:i,isNegative:a,isInteger:l,larger:d}=n;return e(JQ,{"number | BigNumber, number | BigNumber":function(p,y){if(!(l(p)&&i(p)&&l(y)&&i(y)))throw new TypeError("Positive integer value expected in function composition");if(d(y,p))throw new TypeError("k must be less than or equal to n in function composition");return r(t(p,-1),t(y,-1))}})}),X4e=Ke("cross",["typed","matrix","subtract","multiply"],n=>{var{typed:e,matrix:t,subtract:r,multiply:i}=n;return e("cross",{"Matrix, Matrix":function(d,h){return t(a(d.toArray(),h.toArray()))},"Matrix, Array":function(d,h){return t(a(d.toArray(),h))},"Array, Matrix":function(d,h){return t(a(d,h.toArray()))},"Array, Array":a});function a(l,d){var h=Math.max(hi(l).length,hi(d).length);l=t8(l),d=t8(d);var p=hi(l),y=hi(d);if(1!==p.length||1!==y.length||3!==p[0]||3!==y[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+p.join(", ")+"], B = ["+y.join(", ")+"])");var S=[r(i(l[1],d[2]),i(l[2],d[1])),r(i(l[2],d[0]),i(l[0],d[2])),r(i(l[0],d[1]),i(l[1],d[0]))];return h>1?[S]:S}}),K4e=Ke("det",["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],n=>{var{typed:e,matrix:t,subtractScalar:r,multiply:i,divideScalar:a,isZero:l,unaryMinus:d}=n;return e("det",{any:function(y){return ci(y)},"Array | Matrix":function(y){var S;switch(Ur(y)?S=y.size():Array.isArray(y)?S=(y=t(y)).size():S=[],S.length){case 0:return ci(y);case 1:if(1===S[0])return ci(y.valueOf()[0]);if(0===S[0])return 1;throw new RangeError("Matrix must be square (size: "+Ti(S)+")");case 2:var R=S[0],B=S[1];if(R===B)return function h(p,y,S){if(1===y)return ci(p[0][0]);if(2===y)return r(i(p[0][0],p[1][1]),i(p[1][0],p[0][1]));for(var R=!1,B=new Array(y).fill(0).map((Ae,De)=>De),q=0;q{var{typed:e,matrix:t,equalScalar:r,multiplyScalar:i,concat:a}=n,l=Bu({typed:e,equalScalar:r}),d=CQ({typed:e,equalScalar:r}),h=Ks({typed:e,equalScalar:r}),p=qo({typed:e,matrix:t,concat:a});return e(nJ,p({elop:i,SS:d,DS:l,Ss:h}))}),t5e=Ke("FibonacciHeap",["smaller","larger"],n=>{var{smaller:e,larger:t}=n,r=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function l(y,S,R){S.left.right=S.right,S.right.left=S.left,R.degree--,R.child===S&&(R.child=S.right),0===R.degree&&(R.child=null),S.left=y,S.right=y.right,y.right=S,S.right.left=S,S.parent=null,S.mark=!1}function d(y,S){var R=S.parent;R&&(S.mark?(l(y,S,R),d(R)):S.mark=!0)}i.prototype.type="FibonacciHeap",i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(y,S){var R={key:y,value:S,degree:0};if(this._minimum){var B=this._minimum;R.left=B,R.right=B.right,B.right=R,R.right.left=R,e(y,B.key)&&(this._minimum=R)}else R.left=R,R.right=R,this._minimum=R;return this._size++,R},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return 0===this._size},i.prototype.extractMinimum=function(){var y=this._minimum;if(null===y)return y;for(var S=this._minimum,R=y.degree,B=y.child;R>0;){var q=B.right;B.left.right=B.right,B.right.left=B.left,B.left=S,B.right=S.right,S.right=B,B.right.left=B,B.parent=null,B=q,R--}return y.left.right=y.right,y.right.left=y.left,y===y.right?S=null:S=function p(y,S){var ee,R=Math.floor(Math.log(S)*r)+1,B=new Array(R),q=0,V=y;if(V)for(q++,V=V.right;V!==y;)q++,V=V.right;for(;q>0;){for(var ne=V.degree,he=V.right;ee=B[ne];){if(t(V.key,ee.key)){var re=ee;ee=V,V=re}h(ee,V),B[ne]=null,ne++}B[ne]=V,V=he,q--}y=null;for(var ce=0;ce{var{typed:e,ceil:t,floor:r}=n;return e("fix",{number:function(a){return a>0?r(a):t(a)},"number, number":function(a,l){return a>0?r(a,l):t(a,l)}})}),i5e=Ke("fix",n5e,n=>{var{typed:e,Complex:t,matrix:r,ceil:i,floor:a,equalScalar:l,zeros:d,DenseMatrix:h}=n,p=fs({typed:e,DenseMatrix:h}),y=Pu({typed:e}),S=r5e({typed:e,ceil:i,floor:a});return e("fix",{number:S.signatures.number,"number, number | BigNumber":S.signatures["number,number"],Complex:function(B){return new t(B.re>0?Math.floor(B.re):Math.ceil(B.re),B.im>0?Math.floor(B.im):Math.ceil(B.im))},"Complex, number":function(B,q){return new t(B.re>0?a(B.re,q):i(B.re,q),B.im>0?a(B.im,q):i(B.im,q))},"Complex, BigNumber":function(B,q){var V=q.toNumber();return new t(B.re>0?a(B.re,V):i(B.re,V),B.im>0?a(B.im,V):i(B.im,V))},BigNumber:function(B){return B.isNegative()?i(B):a(B)},"BigNumber, number | BigNumber":function(B,q){return B.isNegative()?i(B,q):a(B,q)},Fraction:function(B){return B.s<0?B.ceil():B.floor()},"Fraction, number | BigNumber":function(B,q){return B.s<0?i(B,q):a(B,q)},"Array | Matrix":e.referToSelf(R=>B=>Ni(B,R,!0)),"Array | Matrix, number | BigNumber":e.referToSelf(R=>(B,q)=>Ni(B,V=>R(V,q),!0)),"number | Complex | Fraction | BigNumber, Array":e.referToSelf(R=>(B,q)=>y(r(q),B,R,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":e.referToSelf(R=>(B,q)=>l(B,0)?d(q.size(),q.storage()):"dense"===q.storage()?y(q,B,R,!0):p(q,B,R,!0))})}),a5e=Ke("index",["typed","Index"],n=>{var{typed:e,Index:t}=n;return e("index",{"...number | string | BigNumber | Range | Array | Matrix":function(i){var a=i.map(function(d){return Ci(d)?d.toNumber():fo(d)||Ur(d)?d.map(function(h){return Ci(h)?h.toNumber():h}):d}),l=new t;return t.apply(l,a),l}})}),c5e=Ke("intersect",["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],n=>{var{typed:e,config:t,abs:r,add:i,addScalar:a,matrix:l,multiply:d,multiplyScalar:h,divideScalar:p,subtract:y,smaller:S,equalScalar:R,flatten:B,isZero:q,isNumeric:V}=n;return e("intersect",{"Array, Array, Array":ee,"Array, Array, Array, Array":ne,"Matrix, Matrix, Matrix":function(Re,Be,Ge){var Ye=ee(Re.valueOf(),Be.valueOf(),Ge.valueOf());return null===Ye?null:l(Ye)},"Matrix, Matrix, Matrix, Matrix":function(Re,Be,Ge,Ye){var $e=ne(Re.valueOf(),Be.valueOf(),Ge.valueOf(),Ye.valueOf());return null===$e?null:l($e)}});function ee(_e,Re,Be){if(_e=he(_e),Re=he(Re),Be=he(Be),!ce(_e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!ce(Re))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!function pe(_e){return 4===_e.length&&V(_e[0])&&V(_e[1])&&V(_e[2])&&V(_e[3])}(Be))throw new TypeError("Array with 4 numbers expected as third argument");return function Ce(_e,Re,Be,Ge,Ye,$e,Oe,Ie,Ze,Pe){var bt=h(_e,Oe),Dt=h(Ge,Oe),ht=h(Re,Ie),et=h(Ye,Ie),Et=h(Be,Ze),mn=h($e,Ze),Pt=y(y(y(Pe,bt),ht),Et),Rt=y(y(y(a(a(Dt,et),mn),bt),ht),Et),Zt=p(Pt,Rt),Lt=a(_e,h(Zt,y(Ge,_e))),Ht=a(Re,h(Zt,y(Ye,Re))),tn=a(Be,h(Zt,y($e,Be)));return[Lt,Ht,tn]}(_e[0],_e[1],_e[2],Re[0],Re[1],Re[2],Be[0],Be[1],Be[2],Be[3])}function ne(_e,Re,Be,Ge){if(_e=he(_e),Re=he(Re),Be=he(Be),Ge=he(Ge),2===_e.length){if(!re(_e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!re(Re))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!re(Be))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!re(Ge))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function oe(_e,Re,Be,Ge){var Ye=_e,$e=Be,Oe=y(Ye,Re),Ie=y($e,Ge),Ze=y(h(Oe[0],Ie[1]),h(Ie[0],Oe[1]));if(q(Ze)||S(r(Ze),t.epsilon))return null;var Pe=h(Ie[0],Ye[1]),bt=h(Ie[1],Ye[0]),Dt=h(Ie[0],$e[1]),ht=h(Ie[1],$e[0]),et=p(a(y(y(Pe,bt),Dt),ht),Ze);return i(d(Oe,et),Ye)}(_e,Re,Be,Ge)}if(3===_e.length){if(!ce(_e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!ce(Re))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!ce(Be))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!ce(Ge))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return function De(_e,Re,Be,Ge,Ye,$e,Oe,Ie,Ze,Pe,bt,Dt){var ht=Ae(_e,Oe,Pe,Oe,Re,Ie,bt,Ie,Be,Ze,Dt,Ze),et=Ae(Pe,Oe,Ge,_e,bt,Ie,Ye,Re,Dt,Ze,$e,Be),Et=Ae(_e,Oe,Ge,_e,Re,Ie,Ye,Re,Be,Ze,$e,Be),mn=Ae(Pe,Oe,Pe,Oe,bt,Ie,bt,Ie,Dt,Ze,Dt,Ze),Pt=Ae(Ge,_e,Ge,_e,Ye,Re,Ye,Re,$e,Be,$e,Be),Rt=y(h(ht,et),h(Et,mn)),Zt=y(h(Pt,mn),h(et,et));if(q(Zt))return null;var Lt=p(Rt,Zt),Ht=p(a(ht,h(Lt,et)),mn),tn=a(_e,h(Lt,y(Ge,_e))),vn=a(Re,h(Lt,y(Ye,Re))),Bn=a(Be,h(Lt,y($e,Be))),ir=a(Oe,h(Ht,y(Pe,Oe))),ot=a(Ie,h(Ht,y(bt,Ie))),ct=a(Ze,h(Ht,y(Dt,Ze)));return R(tn,ir)&&R(vn,ot)&&R(Bn,ct)?[tn,vn,Bn]:null}(_e[0],_e[1],_e[2],Re[0],Re[1],Re[2],Be[0],Be[1],Be[2],Ge[0],Ge[1],Ge[2])}throw new TypeError("Arrays with two or thee dimensional points expected")}function he(_e){return 1===_e.length?_e[0]:_e.length>1&&Array.isArray(_e[0])&&_e.every(Re=>Array.isArray(Re)&&1===Re.length)?B(_e):_e}function re(_e){return 2===_e.length&&V(_e[0])&&V(_e[1])}function ce(_e){return 3===_e.length&&V(_e[0])&&V(_e[1])&&V(_e[2])}function Ae(_e,Re,Be,Ge,Ye,$e,Oe,Ie,Ze,Pe,bt,Dt){var ht=h(y(_e,Re),y(Be,Ge)),et=h(y(Ye,$e),y(Oe,Ie)),Et=h(y(Ze,Pe),y(bt,Dt));return a(a(ht,et),Et)}}),u5e=Ke("invmod",["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],n=>{var{typed:e,config:t,BigNumber:r,xgcd:i,equal:a,smaller:l,mod:d,add:h,isInteger:p}=n;return e("invmod",{"number, number":y,"BigNumber, BigNumber":y});function y(S,R){if(!p(S)||!p(R))throw new Error("Parameters in function invmod must be integer numbers");if(S=d(S,R),a(R,0))throw new Error("Divisor must be non zero");var B=i(S,R);B=B.valueOf();var[q,V]=B;return a(q,r(1))?(V=d(V,R),l(V,r(0))&&(V=h(V,R)),V):NaN}}),f5e=Ke("lcm",["typed","matrix","equalScalar","concat"],n=>{var{typed:e,matrix:t,equalScalar:r,concat:i}=n,a=Bu({typed:e,equalScalar:r}),l=E8({typed:e,equalScalar:r}),d=Ks({typed:e,equalScalar:r}),h=qo({typed:e,matrix:t,concat:i}),p="number | BigNumber | Fraction | Matrix | Array",y={};return y["".concat(p,", ").concat(p,", ...").concat(p)]=e.referToSelf(R=>(B,q,V)=>{for(var ee=R(B,q),ne=0;neR.lcm(B)},h({SS:l,DS:a,Ss:d}),y)}),m5e=Ke("log1p",["typed","config","divideScalar","log","Complex"],n=>{var{typed:e,config:t,divideScalar:r,log:i,Complex:a}=n;return e("log1p",{number:function(h){return h>=-1||t.predictable?IG(h):l(new a(h,0))},Complex:l,BigNumber:function(h){var p=h.plus(1);return!p.isNegative()||t.predictable?p.ln():l(new a(h.toNumber(),0))},"Array | Matrix":e.referToSelf(d=>h=>Ni(h,d)),"any, any":e.referToSelf(d=>(h,p)=>r(d(h),i(p)))});function l(d){var h=d.re+1;return new a(Math.log(Math.sqrt(h*h+d.im*d.im)),Math.atan2(d.im,h))}}),sJ="setCartesian",b5e=Ke(sJ,["typed","size","subset","compareNatural","Index","DenseMatrix"],n=>{var{typed:e,size:t,subset:r,compareNatural:i,Index:a,DenseMatrix:l}=n;return e(sJ,{"Array | Matrix, Array | Matrix":function(h,p){var y=[];if(0!==r(t(h),new a(0))&&0!==r(t(p),new a(0))){var S=ro(Array.isArray(h)?h:h.toArray()).sort(i),R=ro(Array.isArray(p)?p:p.toArray()).sort(i);y=[];for(var B=0;B{var{typed:e,size:t,subset:r,compareNatural:i,Index:a,DenseMatrix:l}=n;return e(lJ,{"Array | Matrix":function(h){var p;if(0===r(t(h),new a(0)))p=[];else{var y=ro(Array.isArray(h)?h:h.toArray()).sort(i);(p=[]).push(y[0]);for(var S=1;S{var{typed:e,size:t,subset:r,compareNatural:i,Index:a}=n;return e(cJ,{"Array | Matrix, Array | Matrix":function(d,h){if(0===r(t(d),new a(0)))return!0;if(0===r(t(h),new a(0)))return!1;for(var S,p=_w(ro(Array.isArray(d)?d:d.toArray()).sort(i)),y=_w(ro(Array.isArray(h)?h:h.toArray()).sort(i)),R=0;R{var{typed:e,size:t,subset:r,compareNatural:i,Index:a}=n;return e(dJ,{"Array | Matrix":function(p){if(0===r(t(p),new a(0)))return[];for(var y=ro(Array.isArray(p)?p:p.toArray()).sort(i),S=[],R=0;R.toString(2).length<=y.length;)S.push(l(y,R.toString(2).split("").reverse())),R++;return function d(h){for(var p=[],y=h.length-1;y>0;y--)for(var S=0;Sh[S+1].length&&(p=h[S],h[S]=h[S+1],h[S+1]=p);return h}(S)}});function l(h,p){for(var y=[],S=0;S{var{typed:e,config:t,matrix:r,DenseMatrix:i,concat:a}=n,l=Zl({typed:e}),d=Uh({typed:e,DenseMatrix:i}),h=fs({typed:e,DenseMatrix:i}),p=qo({typed:e,matrix:r,concat:a}),y=Dw({typed:e});return e(X8,S5e({typed:e,config:t}),{"boolean, boolean":(S,R)=>S<=R,"BigNumber, BigNumber":function(R,B){return R.lte(B)||Ld(R,B,t.epsilon)},"Fraction, Fraction":(S,R)=>1!==S.compare(R),"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},y,p({SS:d,DS:l,Ss:h}))}),S5e=Ke(X8,["typed","config"],n=>{var{typed:e,config:t}=n;return e(X8,{"number, number":function(i,a){return i<=a||Yl(i,a,t.epsilon)}})}),D5e=Ke("sort",["typed","matrix","compare","compareNatural"],n=>{var{typed:e,matrix:t,compare:r,compareNatural:i}=n,a=r,l=(y,S)=>-r(y,S);return e("sort",{Array:function(S){return h(S),S.sort(a)},Matrix:function(S){return p(S),t(S.toArray().sort(a),S.storage())},"Array, function":function(S,R){return h(S),S.sort(R)},"Matrix, function":function(S,R){return p(S),t(S.toArray().sort(R),S.storage())},"Array, string":function(S,R){return h(S),S.sort(d(R))},"Matrix, string":function(S,R){return p(S),t(S.toArray().sort(d(R)),S.storage())}});function d(y){if("asc"===y)return a;if("desc"===y)return l;if("natural"===y)return i;throw new Error('String "asc", "desc", or "natural" expected')}function h(y){if(1!==hi(y).length)throw new Error("One dimensional array expected")}function p(y){if(1!==y.size().length)throw new Error("One dimensional matrix expected")}}),hJ="setDifference",T5e=Ke(hJ,["typed","size","subset","compareNatural","Index","DenseMatrix"],n=>{var{typed:e,size:t,subset:r,compareNatural:i,Index:a,DenseMatrix:l}=n;return e(hJ,{"Array | Matrix, Array | Matrix":function(h,p){var y;if(0===r(t(h),new a(0)))y=[];else{if(0===r(t(p),new a(0)))return ro(h.toArray());var S=_w(ro(Array.isArray(h)?h:h.toArray()).sort(i)),R=_w(ro(Array.isArray(p)?p:p.toArray()).sort(i));y=[];for(var B,q=0;q{var{typed:e,size:t,subset:r,compareNatural:i,Index:a}=n;return e(fJ,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(d,h){if(0===r(t(h),new a(0)))return 0;for(var p=ro(Array.isArray(h)?h:h.toArray()),y=0,S=0;S{var{typed:e,size:t,concat:r,subset:i,setDifference:a,Index:l}=n;return e(pJ,{"Array | Matrix, Array | Matrix":function(h,p){if(0===i(t(h),new l(0)))return ro(p);if(0===i(t(p),new l(0)))return ro(h);var y=ro(h),S=ro(p);return r(a(y,S),a(S,y))}})}),B5e=Ke("Spa",["addScalar","equalScalar","FibonacciHeap"],n=>{var{addScalar:e,equalScalar:t,FibonacciHeap:r}=n;function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new r}return i.prototype.type="Spa",i.prototype.isSpa=!0,i.prototype.set=function(a,l){if(this._values[a])this._values[a].value=l;else{var d=this._heap.insert(a,l);this._values[a]=d}},i.prototype.get=function(a){var l=this._values[a];return l?l.value:0},i.prototype.accumulate=function(a,l){var d=this._values[a];d?d.value=e(d.value,l):(d=this._heap.insert(a,l),this._values[a]=d)},i.prototype.forEach=function(a,l,d){var h=this._heap,p=this._values,y=[],S=h.extractMinimum();for(S&&y.push(S);S&&S.key<=l;)S.key>=a&&(t(S.value,0)||d(S.key,S.value,this)),(S=h.extractMinimum())&&y.push(S);for(var R=0;R{var{typed:e,matrix:t,divideScalar:r,addScalar:i,multiply:a,unaryMinus:l,det:d,identity:h,abs:p}=n;return e("inv",{"Array | Matrix":function(R){var B=Ur(R)?R.size():hi(R);switch(B.length){case 1:if(1===B[0])return Ur(R)?t([r(1,R.valueOf()[0])]):[r(1,R[0])];throw new RangeError("Matrix must be square (size: "+Ti(B)+")");case 2:var q=B[0],V=B[1];if(q===V)return Ur(R)?t(y(R.valueOf(),q,V),R.storage()):y(R,q,V);throw new RangeError("Matrix must be square (size: "+Ti(B)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Ti(B)+")")}},any:function(R){return r(1,R)}});function y(S,R,B){var q,V,ee,ne,he;if(1===R){if(0===(ne=S[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[r(1,ne)]]}if(2===R){var re=d(S);if(0===re)throw Error("Cannot calculate inverse, determinant is zero");return[[r(S[1][1],re),r(l(S[0][1]),re)],[r(l(S[1][0]),re),r(S[0][0],re)]]}var ce=S.concat();for(q=0;qAe&&(Ae=p(ce[q][oe]),De=q),q++;if(0===Ae)throw Error("Cannot calculate inverse, determinant is zero");(q=De)!==oe&&(he=ce[oe],ce[oe]=ce[q],ce[q]=he,he=pe[oe],pe[oe]=pe[q],pe[q]=he);var Ce=ce[oe],_e=pe[oe];for(q=0;q{var{typed:e,matrix:t,abs:r,addScalar:i,divideScalar:a,multiplyScalar:l,subtractScalar:d,larger:h,equalScalar:p,unaryMinus:y,DenseMatrix:S,SparseMatrix:R,Spa:B}=n;return e("lup",{DenseMatrix:function(ne){return q(ne)},SparseMatrix:function(ne){return function V(ee){var $e,Oe,Ie,ne=ee._size[0],he=ee._size[1],re=Math.min(ne,he),ce=ee._values,pe=ee._index,oe=ee._ptr,Ae=[],De=[],Ce=[],_e=[ne,re],Re=[],Be=[],Ge=[],Ye=[re,he],Ze=[],Pe=[];for($e=0;$e0&&et.forEach(0,Oe-1,function(Lt,Ht){R._forEachRow(Lt,Ae,De,Ce,function(tn,vn){tn>Lt&&et.accumulate(tn,y(l(vn,Ht)))})});var Pt=Oe,Rt=et.get(Oe),Zt=r(Rt);et.forEach(Oe+1,ne-1,function(Lt,Ht){var tn=r(Ht);h(tn,Zt)&&(Pt=Lt,Zt=tn,Rt=Ht)}),Oe!==Pt&&(R._swapRows(Oe,Pt,_e[1],Ae,De,Ce),R._swapRows(Oe,Pt,Ye[1],Re,Be,Ge),et.swap(Oe,Pt),bt(Oe,Pt)),et.forEach(0,ne-1,function(Lt,Ht){Lt<=Oe?(Re.push(Ht),Be.push(Lt)):(Ht=a(Ht,Rt),p(Ht,0)||(Ae.push(Ht),De.push(Lt)))})};for(Oe=0;Oe0)for(Ce=0;Ce{var{typed:e,matrix:t,inv:r,deepEqual:i,equal:a,dotDivide:l,dot:d,ctranspose:h,divideScalar:p,multiply:y,add:S,Complex:R}=n;return e("pinv",{"Array | Matrix":function(re){var ce=Ur(re)?re.size():hi(re);switch(ce.length){case 1:return ne(re)?h(re):1===ce[0]?r(re):l(h(re),d(re,re));case 2:if(ne(re))return h(re);var pe=ce[0],oe=ce[1];if(pe===oe)try{return r(re)}catch(Ae){if(!(Ae instanceof Error&&Ae.message.match(/Cannot calculate inverse, determinant is zero/)))throw Ae}return Ur(re)?t(B(re.valueOf(),pe,oe),re.storage()):B(re,pe,oe);default:throw new RangeError("Matrix must be two dimensional (size: "+Ti(ce)+")")}},any:function(re){return a(re,0)?ci(re):p(1,re)}});function B(he,re,ce){var{C:pe,F:oe}=function V(he,re,ce){var pe=function q(he,re,ce){for(var pe=ci(he),oe=0,Ae=0;AeDe.filter((_e,Re)=>Re!ee(d(pe[Ce],pe[Ce])));return{C:oe,F:Ae}}(he,re,ce),Ae=y(r(y(h(pe),pe)),h(pe)),De=y(h(oe),r(y(oe,h(oe))));return y(De,Ae)}function ee(he){return a(S(he,R(1,1)),S(0,R(1,1)))}function ne(he){return i(S(he,R(1,1)),S(y(he,0),R(1,1)))}}),$5e=Ke("pow",["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],n=>{var{typed:e,config:t,identity:r,multiply:i,matrix:a,inv:l,number:d,fraction:h,Complex:p}=n;return e("pow",{"number, number":y,"Complex, Complex":function(q,V){return q.pow(V)},"BigNumber, BigNumber":function(q,V){return V.isInteger()||q>=0||t.predictable?q.pow(V):new p(q.toNumber(),0).pow(V.toNumber(),0)},"Fraction, Fraction":function(q,V){var ee=q.pow(V);if(null!=ee)return ee;if(t.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return y(q.valueOf(),V.valueOf())},"Array, number":S,"Array, BigNumber":function(q,V){return S(q,V.toNumber())},"Matrix, number":R,"Matrix, BigNumber":function(q,V){return R(q,V.toNumber())},"Unit, number | BigNumber":function(q,V){return q.pow(V)}});function y(B,q){if(t.predictable&&!wr(q)&&B<0)try{var V=h(q),ee=d(V);if((q===ee||Math.abs((q-ee)/q)<1e-14)&&V.d%2==1)return(V.n%2==0?1:-1)*Math.pow(-B,q)}catch{}return t.predictable&&(B<-1&&q===1/0||B>-1&&B<0&&q===-1/0)?NaN:wr(q)||B>=0||t.predictable?oK(B,q):B*B<1&&q===1/0||B*B>1&&q===-1/0?0:new p(B,0).pow(q,0)}function S(B,q){if(!wr(q))throw new TypeError("For A^b, b must be an integer (value is "+q+")");var V=hi(B);if(2!==V.length)throw new Error("For A^b, A must be 2 dimensional (A has "+V.length+" dimensions)");if(V[0]!==V[1])throw new Error("For A^b, A must be square (size is "+V[0]+"x"+V[1]+")");if(q<0)try{return S(l(B),-q)}catch(he){throw"Cannot calculate inverse, determinant is zero"===he.message?new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+q+")"):he}for(var ee=r(V[0]).valueOf(),ne=B;q>=1;)!(1&~q)&&(ee=i(ne,ee)),q>>=1,ne=i(ne,ne);return ee}function R(B,q){return a(S(B.valueOf(),q))}}),yJ="setIntersect",G5e=Ke(yJ,["typed","size","subset","compareNatural","Index","DenseMatrix"],n=>{var{typed:e,size:t,subset:r,compareNatural:i,Index:a,DenseMatrix:l}=n;return e(yJ,{"Array | Matrix, Array | Matrix":function(h,p){var y;if(0===r(t(h),new a(0))||0===r(t(p),new a(0)))y=[];else{var S=_w(ro(Array.isArray(h)?h:h.toArray()).sort(i)),R=_w(ro(Array.isArray(p)?p:p.toArray()).sort(i));y=[];for(var B=0;B{var{typed:e,size:t,concat:r,subset:i,setIntersect:a,setSymDifference:l,Index:d}=n;return e(_J,{"Array | Matrix, Array | Matrix":function(p,y){if(0===i(t(p),new d(0)))return ro(y);if(0===i(t(y),new d(0)))return ro(p);var S=ro(p),R=ro(y);return r(l(S,R),a(S,R))}})}),Z5e=Ke("sqrtm",["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],n=>{var{typed:e,abs:t,add:r,multiply:i,map:a,sqrt:l,subtract:d,inv:h,size:p,max:y,identity:S}=n,B=1e-6;return e("sqrtm",{"Array | Matrix":function(ee){var ne=Ur(ee)?ee.size():hi(ee);switch(ne.length){case 1:if(1===ne[0])return a(ee,l);throw new RangeError("Matrix must be square (size: "+Ti(ne)+")");case 2:if(ne[0]===ne[1])return function q(V){var ee,ne=0,he=V,re=S(p(V));do{var ce=he;if(he=i(.5,r(ce,h(re))),re=i(.5,r(re,h(ce))),(ee=y(t(d(he,ce))))>B&&++ne>1e3)throw new Error("computing square root of matrix: iterative method could not converge")}while(ee>B);return he}(ee);throw new RangeError("Matrix must be square (size: "+Ti(ne)+")");default:throw new RangeError("Matrix must be at most two dimensional (size: "+Ti(ne)+")")}}})});function wJ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function GB(n){for(var e=1;e{var ce,pe,oe,{on:e,config:t,addScalar:r,subtractScalar:i,multiplyScalar:a,divideScalar:l,pow:d,abs:h,fix:p,round:y,equal:S,isNumeric:R,format:B,number:q,Complex:V,BigNumber:ee,Fraction:ne}=n,he=q;function re(ot,ct){if(!(this instanceof re))throw new Error("Constructor must be called with the new operator");if(null!=ot&&!R(ot)&&!Np(ot))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,void 0===ct)this.units=[],this.dimensions=Ze.map(st=>0);else if("string"==typeof ct){var jt=re.parse(ct);this.units=jt.units,this.dimensions=jt.dimensions}else{if(!Rd(ct)||null!==ct.value)throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.fixPrefix=ct.fixPrefix,this.skipAutomaticSimplification=ct.skipAutomaticSimplification,this.dimensions=ct.dimensions.slice(0),this.units=ct.units.map(st=>us({},st))}this.value=this._normalize(ot)}function Ae(){for(;" "===oe||"\t"===oe;)_e()}function Ce(ot){return ot>="0"&&ot<="9"}function _e(){pe++,oe=ce.charAt(pe)}function Re(ot){pe=ot,oe=ce.charAt(pe)}function Be(){var ot="",ct=pe;if("+"===oe?_e():"-"===oe&&(ot+=oe,_e()),!function De(ot){return ot>="0"&&ot<="9"||"."===ot}(oe))return Re(ct),null;if("."===oe){if(ot+=oe,_e(),!Ce(oe))return Re(ct),null}else{for(;Ce(oe);)ot+=oe,_e();"."===oe&&(ot+=oe,_e())}for(;Ce(oe);)ot+=oe,_e();if("E"===oe||"e"===oe){var jt="",st=pe;if(jt+=oe,_e(),("+"===oe||"-"===oe)&&(jt+=oe,_e()),!Ce(oe))return Re(st),ot;for(ot+=jt;Ce(oe);)ot+=oe,_e()}return ot}function Ge(){for(var ot="";Ce(oe)||re.isValidAlpha(oe);)ot+=oe,_e();var ct=ot.charAt(0);return re.isValidAlpha(ct)?ot:null}function Ye(ot){return oe===ot?(_e(),ot):null}Object.defineProperty(re,"name",{value:"Unit"}),re.prototype.constructor=re,re.prototype.type="Unit",re.prototype.isUnit=!0,re.parse=function(ot,ct){if(ct=ct||{},pe=-1,oe="","string"!=typeof(ce=ot))throw new TypeError("Invalid argument in Unit.parse, string expected");var jt=new re;jt.units=[];var st=1,vt=!1;_e(),Ae();var Tt=Be(),gn=null;if(Tt){if("BigNumber"===t.number)gn=new ee(Tt);else if("Fraction"===t.number)try{gn=new ne(Tt)}catch{gn=parseFloat(Tt)}else gn=parseFloat(Tt);Ae(),Ye("*")?(st=1,vt=!0):Ye("/")&&(st=-1,vt=!0)}for(var bn=[],Wn=1;;){for(Ae();"("===oe;)bn.push(st),Wn*=st,st=1,_e(),Ae();var An=void 0;if(!oe)break;var Yr=oe;if(null===(An=Ge()))throw new SyntaxError('Unexpected "'+Yr+'" in "'+ce+'" at index '+pe.toString());var mi=$e(An);if(null===mi)throw new SyntaxError('Unit "'+An+'" not found.');var ao=st*Wn;if(Ae(),Ye("^")){Ae();var Uo=Be();if(null===Uo)throw new SyntaxError('In "'+ot+'", "^" must be followed by a floating-point number');ao*=Uo}jt.units.push({unit:mi.unit,prefix:mi.prefix,power:ao});for(var ra=0;ra1||Math.abs(this.units[0].power-1)>1e-15)},re.prototype._normalize=function(ot){if(null==ot||0===this.units.length)return ot;for(var ct=ot,jt=re._getNumberConverter(No(ot)),st=0;st{if(br(et,ot)){var ct=et[ot];return{unit:ct,prefix:ct.prefixes[""]}}for(var st in et)if(br(et,st)&&Lve(ot,st)){var vt=et[st],Tt=ot.length-st.length,gn=ot.substring(0,Tt),bn=br(vt.prefixes,gn)?vt.prefixes[gn]:void 0;if(void 0!==bn)return{unit:vt,prefix:bn}}return null},{hasher:ot=>ot[0],limit:100});function Oe(ot){return ot.equalBase(Pe.NONE)&&null!==ot.value&&!t.predictable?ot.value:ot}re.isValuelessUnit=function(ot){return null!==$e(ot)},re.prototype.hasBase=function(ot){if("string"==typeof ot&&(ot=Pe[ot]),!ot)return!1;for(var ct=0;ct1e-12)return!1;return!0},re.prototype.equalBase=function(ot){for(var ct=0;ct1e-12)return!1;return!0},re.prototype.equals=function(ot){return this.equalBase(ot)&&S(this.value,ot.value)},re.prototype.multiply=function(ot){for(var ct=this.clone(),jt=Rd(ot)?ot:new re(ot),st=0;st0?this.formatUnits():null,fixPrefix:this.fixPrefix}},re.fromJSON=function(ot){var ct,jt=new re(ot.value,null!==(ct=ot.unit)&&void 0!==ct?ct:void 0);return jt.fixPrefix=ot.fixPrefix||!1,jt},re.prototype.valueOf=re.prototype.toString,re.prototype.simplify=function(){var jt,vt,ot=this.clone(),ct=[];for(var st in Rt)if(br(Rt,st)&&ot.hasBase(Pe[st])){jt=st;break}if("NONE"===jt)ot.units=[];else if(jt&&br(Rt,jt)&&(vt=Rt[jt]),vt)ot.units=[{unit:vt.unit,prefix:vt.prefix,power:1}];else{for(var Tt=!1,gn=0;gn1e-12&&(br(Rt,bn)?ct.push({unit:Rt[bn].unit,prefix:Rt[bn].prefix,power:ot.dimensions[gn]||0}):Tt=!0)}ct.length1e-12){if(!br(Pt.si,st))throw new Error("Cannot express custom unit "+st+" in SI units");ct.push({unit:Pt.si[st].unit,prefix:Pt.si[st].prefix,power:ot.dimensions[jt]||0})}}return ot.units=ct,ot.fixPrefix=!0,ot.skipAutomaticSimplification=!0,null!==this.value?(ot.value=null,this.to(ot)):ot},re.prototype.formatUnits=function(){for(var ot="",ct="",jt=0,st=0,vt=0;vt0?(jt++,ot+=" "+this.units[vt].prefix.name+this.units[vt].unit.name,Math.abs(this.units[vt].power-1)>1e-15&&(ot+="^"+this.units[vt].power)):this.units[vt].power<0&&st++;if(st>0)for(var Tt=0;Tt0?(ct+=" "+this.units[Tt].prefix.name+this.units[Tt].unit.name,Math.abs(this.units[Tt].power+1)>1e-15&&(ct+="^"+-this.units[Tt].power)):(ct+=" "+this.units[Tt].prefix.name+this.units[Tt].unit.name,ct+="^"+this.units[Tt].power));ot=ot.substr(1),ct=ct.substr(1),jt>1&&st>0&&(ot="("+ot+")"),st>1&&jt>0&&(ct="("+ct+")");var gn=ot;return jt>0&&st>0&&(gn+=" / "),gn+=ct},re.prototype.format=function(ot){var ct=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),jt=!1;for(var st in typeof ct.value<"u"&&null!==ct.value&&Np(ct.value)&&(jt=Math.abs(ct.value.re)<1e-14),ct.units)br(ct.units,st)&&ct.units[st].unit&&("VA"===ct.units[st].unit.name&&jt?ct.units[st].unit=et.VAR:"VAR"===ct.units[st].unit.name&&!jt&&(ct.units[st].unit=et.VA));1===ct.units.length&&!ct.fixPrefix&&Math.abs(ct.units[0].power-Math.round(ct.units[0].power))<1e-14&&(ct.units[0].prefix=ct._bestPrefix());var vt=ct._denormalize(ct.value),Tt=null!==ct.value?B(vt,ot||{}):"",gn=ct.formatUnits();return ct.value&&Np(ct.value)&&(Tt="("+Tt+")"),gn.length>0&&Tt.length>0&&(Tt+=" "),Tt+=gn},re.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var ot=null!==this.value?h(this.value):0,ct=h(this.units[0].unit.value),jt=this.units[0].prefix;if(0===ot)return jt;var st=this.units[0].power,vt=Math.log(ot/Math.pow(jt.value*ct,st))/Math.LN10-1.2;if(vt>-2.200001&&vt<1.800001)return jt;vt=Math.abs(vt);var Tt=this.units[0].unit.prefixes;for(var gn in Tt)if(br(Tt,gn)){var bn=Tt[gn];if(bn.scientific){var Wn=Math.abs(Math.log(ot/Math.pow(bn.value*ct,st))/Math.LN10-1.2);(Wn0)},et={meter:{name:"meter",base:Pe.LENGTH,prefixes:Ie.LONG,value:1,offset:0},inch:{name:"inch",base:Pe.LENGTH,prefixes:Ie.NONE,value:.0254,offset:0},foot:{name:"foot",base:Pe.LENGTH,prefixes:Ie.NONE,value:.3048,offset:0},yard:{name:"yard",base:Pe.LENGTH,prefixes:Ie.NONE,value:.9144,offset:0},mile:{name:"mile",base:Pe.LENGTH,prefixes:Ie.NONE,value:1609.344,offset:0},link:{name:"link",base:Pe.LENGTH,prefixes:Ie.NONE,value:.201168,offset:0},rod:{name:"rod",base:Pe.LENGTH,prefixes:Ie.NONE,value:5.0292,offset:0},chain:{name:"chain",base:Pe.LENGTH,prefixes:Ie.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:Pe.LENGTH,prefixes:Ie.NONE,value:1e-10,offset:0},m:{name:"m",base:Pe.LENGTH,prefixes:Ie.SHORT,value:1,offset:0},in:{name:"in",base:Pe.LENGTH,prefixes:Ie.NONE,value:.0254,offset:0},ft:{name:"ft",base:Pe.LENGTH,prefixes:Ie.NONE,value:.3048,offset:0},yd:{name:"yd",base:Pe.LENGTH,prefixes:Ie.NONE,value:.9144,offset:0},mi:{name:"mi",base:Pe.LENGTH,prefixes:Ie.NONE,value:1609.344,offset:0},li:{name:"li",base:Pe.LENGTH,prefixes:Ie.NONE,value:.201168,offset:0},rd:{name:"rd",base:Pe.LENGTH,prefixes:Ie.NONE,value:5.02921,offset:0},ch:{name:"ch",base:Pe.LENGTH,prefixes:Ie.NONE,value:20.1168,offset:0},mil:{name:"mil",base:Pe.LENGTH,prefixes:Ie.NONE,value:254e-7,offset:0},m2:{name:"m2",base:Pe.SURFACE,prefixes:Ie.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:Pe.SURFACE,prefixes:Ie.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:Pe.SURFACE,prefixes:Ie.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:Pe.SURFACE,prefixes:Ie.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:Pe.SURFACE,prefixes:Ie.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:Pe.SURFACE,prefixes:Ie.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:Pe.SURFACE,prefixes:Ie.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:Pe.SURFACE,prefixes:Ie.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:Pe.SURFACE,prefixes:Ie.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:Pe.SURFACE,prefixes:Ie.NONE,value:1e4,offset:0},m3:{name:"m3",base:Pe.VOLUME,prefixes:Ie.CUBIC,value:1,offset:0},L:{name:"L",base:Pe.VOLUME,prefixes:Ie.SHORT,value:.001,offset:0},l:{name:"l",base:Pe.VOLUME,prefixes:Ie.SHORT,value:.001,offset:0},litre:{name:"litre",base:Pe.VOLUME,prefixes:Ie.LONG,value:.001,offset:0},cuin:{name:"cuin",base:Pe.VOLUME,prefixes:Ie.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:Pe.VOLUME,prefixes:Ie.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:Pe.VOLUME,prefixes:Ie.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:Pe.VOLUME,prefixes:Ie.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:Pe.VOLUME,prefixes:Ie.NONE,value:15e-6,offset:0},drop:{name:"drop",base:Pe.VOLUME,prefixes:Ie.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:Pe.VOLUME,prefixes:Ie.NONE,value:5e-8,offset:0},minim:{name:"minim",base:Pe.VOLUME,prefixes:Ie.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:Pe.VOLUME,prefixes:Ie.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:Pe.VOLUME,prefixes:Ie.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:Pe.VOLUME,prefixes:Ie.NONE,value:1e-6,offset:0},cup:{name:"cup",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:Pe.VOLUME,prefixes:Ie.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:Pe.VOLUME,prefixes:Ie.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:Pe.VOLUME,prefixes:Ie.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:Pe.VOLUME,prefixes:Ie.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:Pe.VOLUME,prefixes:Ie.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:Pe.VOLUME,prefixes:Ie.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:Pe.VOLUME,prefixes:Ie.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:Pe.VOLUME,prefixes:Ie.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:Pe.VOLUME,prefixes:Ie.NONE,value:.1173478,offset:0},obl:{name:"obl",base:Pe.VOLUME,prefixes:Ie.NONE,value:.1589873,offset:0},g:{name:"g",base:Pe.MASS,prefixes:Ie.SHORT,value:.001,offset:0},gram:{name:"gram",base:Pe.MASS,prefixes:Ie.LONG,value:.001,offset:0},ton:{name:"ton",base:Pe.MASS,prefixes:Ie.SHORT,value:907.18474,offset:0},t:{name:"t",base:Pe.MASS,prefixes:Ie.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:Pe.MASS,prefixes:Ie.LONG,value:1e3,offset:0},grain:{name:"grain",base:Pe.MASS,prefixes:Ie.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:Pe.MASS,prefixes:Ie.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:Pe.MASS,prefixes:Ie.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:Pe.MASS,prefixes:Ie.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:Pe.MASS,prefixes:Ie.NONE,value:45.359237,offset:0},stick:{name:"stick",base:Pe.MASS,prefixes:Ie.NONE,value:.115,offset:0},stone:{name:"stone",base:Pe.MASS,prefixes:Ie.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:Pe.MASS,prefixes:Ie.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:Pe.MASS,prefixes:Ie.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:Pe.MASS,prefixes:Ie.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:Pe.MASS,prefixes:Ie.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:Pe.MASS,prefixes:Ie.NONE,value:45.359237,offset:0},s:{name:"s",base:Pe.TIME,prefixes:Ie.SHORT,value:1,offset:0},min:{name:"min",base:Pe.TIME,prefixes:Ie.NONE,value:60,offset:0},h:{name:"h",base:Pe.TIME,prefixes:Ie.NONE,value:3600,offset:0},second:{name:"second",base:Pe.TIME,prefixes:Ie.LONG,value:1,offset:0},sec:{name:"sec",base:Pe.TIME,prefixes:Ie.LONG,value:1,offset:0},minute:{name:"minute",base:Pe.TIME,prefixes:Ie.NONE,value:60,offset:0},hour:{name:"hour",base:Pe.TIME,prefixes:Ie.NONE,value:3600,offset:0},day:{name:"day",base:Pe.TIME,prefixes:Ie.NONE,value:86400,offset:0},week:{name:"week",base:Pe.TIME,prefixes:Ie.NONE,value:604800,offset:0},month:{name:"month",base:Pe.TIME,prefixes:Ie.NONE,value:2629800,offset:0},year:{name:"year",base:Pe.TIME,prefixes:Ie.NONE,value:31557600,offset:0},decade:{name:"decade",base:Pe.TIME,prefixes:Ie.NONE,value:315576e3,offset:0},century:{name:"century",base:Pe.TIME,prefixes:Ie.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:Pe.TIME,prefixes:Ie.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:Pe.FREQUENCY,prefixes:Ie.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:Pe.FREQUENCY,prefixes:Ie.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:Pe.ANGLE,prefixes:Ie.SHORT,value:1,offset:0},radian:{name:"radian",base:Pe.ANGLE,prefixes:Ie.LONG,value:1,offset:0},deg:{name:"deg",base:Pe.ANGLE,prefixes:Ie.SHORT,value:null,offset:0},degree:{name:"degree",base:Pe.ANGLE,prefixes:Ie.LONG,value:null,offset:0},grad:{name:"grad",base:Pe.ANGLE,prefixes:Ie.SHORT,value:null,offset:0},gradian:{name:"gradian",base:Pe.ANGLE,prefixes:Ie.LONG,value:null,offset:0},cycle:{name:"cycle",base:Pe.ANGLE,prefixes:Ie.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:Pe.ANGLE,prefixes:Ie.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:Pe.ANGLE,prefixes:Ie.NONE,value:null,offset:0},A:{name:"A",base:Pe.CURRENT,prefixes:Ie.SHORT,value:1,offset:0},ampere:{name:"ampere",base:Pe.CURRENT,prefixes:Ie.LONG,value:1,offset:0},K:{name:"K",base:Pe.TEMPERATURE,prefixes:Ie.SHORT,value:1,offset:0},degC:{name:"degC",base:Pe.TEMPERATURE,prefixes:Ie.SHORT,value:1,offset:273.15},degF:{name:"degF",base:Pe.TEMPERATURE,prefixes:Ie.SHORT,value:new ne(5,9),offset:459.67},degR:{name:"degR",base:Pe.TEMPERATURE,prefixes:Ie.SHORT,value:new ne(5,9),offset:0},kelvin:{name:"kelvin",base:Pe.TEMPERATURE,prefixes:Ie.LONG,value:1,offset:0},celsius:{name:"celsius",base:Pe.TEMPERATURE,prefixes:Ie.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:Pe.TEMPERATURE,prefixes:Ie.LONG,value:new ne(5,9),offset:459.67},rankine:{name:"rankine",base:Pe.TEMPERATURE,prefixes:Ie.LONG,value:new ne(5,9),offset:0},mol:{name:"mol",base:Pe.AMOUNT_OF_SUBSTANCE,prefixes:Ie.SHORT,value:1,offset:0},mole:{name:"mole",base:Pe.AMOUNT_OF_SUBSTANCE,prefixes:Ie.LONG,value:1,offset:0},cd:{name:"cd",base:Pe.LUMINOUS_INTENSITY,prefixes:Ie.SHORT,value:1,offset:0},candela:{name:"candela",base:Pe.LUMINOUS_INTENSITY,prefixes:Ie.LONG,value:1,offset:0},N:{name:"N",base:Pe.FORCE,prefixes:Ie.SHORT,value:1,offset:0},newton:{name:"newton",base:Pe.FORCE,prefixes:Ie.LONG,value:1,offset:0},dyn:{name:"dyn",base:Pe.FORCE,prefixes:Ie.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:Pe.FORCE,prefixes:Ie.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:Pe.FORCE,prefixes:Ie.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:Pe.FORCE,prefixes:Ie.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:Pe.FORCE,prefixes:Ie.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:Pe.FORCE,prefixes:Ie.NONE,value:9.80665,offset:0},J:{name:"J",base:Pe.ENERGY,prefixes:Ie.SHORT,value:1,offset:0},joule:{name:"joule",base:Pe.ENERGY,prefixes:Ie.LONG,value:1,offset:0},erg:{name:"erg",base:Pe.ENERGY,prefixes:Ie.SHORTLONG,value:1e-7,offset:0},Wh:{name:"Wh",base:Pe.ENERGY,prefixes:Ie.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:Pe.ENERGY,prefixes:Ie.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:Pe.ENERGY,prefixes:Ie.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:Pe.ENERGY,prefixes:Ie.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:Pe.POWER,prefixes:Ie.SHORT,value:1,offset:0},watt:{name:"watt",base:Pe.POWER,prefixes:Ie.LONG,value:1,offset:0},hp:{name:"hp",base:Pe.POWER,prefixes:Ie.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:Pe.POWER,prefixes:Ie.SHORT,value:V.I,offset:0},VA:{name:"VA",base:Pe.POWER,prefixes:Ie.SHORT,value:1,offset:0},Pa:{name:"Pa",base:Pe.PRESSURE,prefixes:Ie.SHORT,value:1,offset:0},psi:{name:"psi",base:Pe.PRESSURE,prefixes:Ie.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:Pe.PRESSURE,prefixes:Ie.NONE,value:101325,offset:0},bar:{name:"bar",base:Pe.PRESSURE,prefixes:Ie.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:Pe.PRESSURE,prefixes:Ie.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:Pe.PRESSURE,prefixes:Ie.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:Pe.PRESSURE,prefixes:Ie.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:Pe.PRESSURE,prefixes:Ie.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:Pe.ELECTRIC_CHARGE,prefixes:Ie.LONG,value:1,offset:0},C:{name:"C",base:Pe.ELECTRIC_CHARGE,prefixes:Ie.SHORT,value:1,offset:0},farad:{name:"farad",base:Pe.ELECTRIC_CAPACITANCE,prefixes:Ie.LONG,value:1,offset:0},F:{name:"F",base:Pe.ELECTRIC_CAPACITANCE,prefixes:Ie.SHORT,value:1,offset:0},volt:{name:"volt",base:Pe.ELECTRIC_POTENTIAL,prefixes:Ie.LONG,value:1,offset:0},V:{name:"V",base:Pe.ELECTRIC_POTENTIAL,prefixes:Ie.SHORT,value:1,offset:0},ohm:{name:"ohm",base:Pe.ELECTRIC_RESISTANCE,prefixes:Ie.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:Pe.ELECTRIC_INDUCTANCE,prefixes:Ie.LONG,value:1,offset:0},H:{name:"H",base:Pe.ELECTRIC_INDUCTANCE,prefixes:Ie.SHORT,value:1,offset:0},siemens:{name:"siemens",base:Pe.ELECTRIC_CONDUCTANCE,prefixes:Ie.LONG,value:1,offset:0},S:{name:"S",base:Pe.ELECTRIC_CONDUCTANCE,prefixes:Ie.SHORT,value:1,offset:0},weber:{name:"weber",base:Pe.MAGNETIC_FLUX,prefixes:Ie.LONG,value:1,offset:0},Wb:{name:"Wb",base:Pe.MAGNETIC_FLUX,prefixes:Ie.SHORT,value:1,offset:0},tesla:{name:"tesla",base:Pe.MAGNETIC_FLUX_DENSITY,prefixes:Ie.LONG,value:1,offset:0},T:{name:"T",base:Pe.MAGNETIC_FLUX_DENSITY,prefixes:Ie.SHORT,value:1,offset:0},b:{name:"b",base:Pe.BIT,prefixes:Ie.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:Pe.BIT,prefixes:Ie.BINARY_LONG,value:1,offset:0},B:{name:"B",base:Pe.BIT,prefixes:Ie.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:Pe.BIT,prefixes:Ie.BINARY_LONG,value:8,offset:0}},Et={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function mn(ot){if("BigNumber"===ot.number){var ct=FB(ee);et.rad.value=new ee(1),et.deg.value=ct.div(180),et.grad.value=ct.div(200),et.cycle.value=ct.times(2),et.arcsec.value=ct.div(648e3),et.arcmin.value=ct.div(10800)}else et.rad.value=1,et.deg.value=Math.PI/180,et.grad.value=Math.PI/200,et.cycle.value=2*Math.PI,et.arcsec.value=Math.PI/648e3,et.arcmin.value=Math.PI/10800;et.radian.value=et.rad.value,et.degree.value=et.deg.value,et.gradian.value=et.grad.value}mn(t),e&&e("config",function(ot,ct){ot.number!==ct.number&&mn(ot)});var Pt={si:{NONE:{unit:ht,prefix:Ie.NONE[""]},LENGTH:{unit:et.m,prefix:Ie.SHORT[""]},MASS:{unit:et.g,prefix:Ie.SHORT.k},TIME:{unit:et.s,prefix:Ie.SHORT[""]},CURRENT:{unit:et.A,prefix:Ie.SHORT[""]},TEMPERATURE:{unit:et.K,prefix:Ie.SHORT[""]},LUMINOUS_INTENSITY:{unit:et.cd,prefix:Ie.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:et.mol,prefix:Ie.SHORT[""]},ANGLE:{unit:et.rad,prefix:Ie.SHORT[""]},BIT:{unit:et.bits,prefix:Ie.SHORT[""]},FORCE:{unit:et.N,prefix:Ie.SHORT[""]},ENERGY:{unit:et.J,prefix:Ie.SHORT[""]},POWER:{unit:et.W,prefix:Ie.SHORT[""]},PRESSURE:{unit:et.Pa,prefix:Ie.SHORT[""]},ELECTRIC_CHARGE:{unit:et.C,prefix:Ie.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:et.F,prefix:Ie.SHORT[""]},ELECTRIC_POTENTIAL:{unit:et.V,prefix:Ie.SHORT[""]},ELECTRIC_RESISTANCE:{unit:et.ohm,prefix:Ie.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:et.H,prefix:Ie.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:et.S,prefix:Ie.SHORT[""]},MAGNETIC_FLUX:{unit:et.Wb,prefix:Ie.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:et.T,prefix:Ie.SHORT[""]},FREQUENCY:{unit:et.Hz,prefix:Ie.SHORT[""]}}};Pt.cgs=JSON.parse(JSON.stringify(Pt.si)),Pt.cgs.LENGTH={unit:et.m,prefix:Ie.SHORT.c},Pt.cgs.MASS={unit:et.g,prefix:Ie.SHORT[""]},Pt.cgs.FORCE={unit:et.dyn,prefix:Ie.SHORT[""]},Pt.cgs.ENERGY={unit:et.erg,prefix:Ie.NONE[""]},Pt.us=JSON.parse(JSON.stringify(Pt.si)),Pt.us.LENGTH={unit:et.ft,prefix:Ie.NONE[""]},Pt.us.MASS={unit:et.lbm,prefix:Ie.NONE[""]},Pt.us.TEMPERATURE={unit:et.degF,prefix:Ie.NONE[""]},Pt.us.FORCE={unit:et.lbf,prefix:Ie.NONE[""]},Pt.us.ENERGY={unit:et.BTU,prefix:Ie.BTU[""]},Pt.us.POWER={unit:et.hp,prefix:Ie.NONE[""]},Pt.us.PRESSURE={unit:et.psi,prefix:Ie.NONE[""]},Pt.auto=JSON.parse(JSON.stringify(Pt.si));var Rt=Pt.auto;for(var Zt in re.setUnitSystem=function(ot){if(!br(Pt,ot))throw new Error("Unit system "+ot+" does not exist. Choices are: "+Object.keys(Pt).join(", "));Rt=Pt[ot]},re.getUnitSystem=function(){for(var ot in Pt)if(br(Pt,ot)&&Pt[ot]===Rt)return ot},re.typeConverters={BigNumber:function(ct){return null!=ct&&ct.isFraction?new ee(ct.n).div(ct.d).times(ct.s):new ee(ct+"")},Fraction:function(ct){return new ne(ct)},Complex:function(ct){return ct},number:function(ct){return null!=ct&&ct.isFraction?q(ct):ct}},re.prototype._numberConverter=function(){var ot=re.typeConverters[this.valueType()];if(ot)return ot;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},re._getNumberConverter=function(ot){if(!re.typeConverters[ot])throw new TypeError('Unsupported type "'+ot+'"');return re.typeConverters[ot]},et)if(br(et,Zt)){var Lt=et[Zt];Lt.dimensions=Lt.base.dimensions}for(var Ht in Et)if(br(Et,Ht)){var tn=et[Et[Ht]],vn={};for(var Bn in tn)br(tn,Bn)&&(vn[Bn]=tn[Bn]);vn.name=Ht,et[Ht]=vn}return re.isValidAlpha=function(ct){return/^[a-zA-Z]$/.test(ct)},re.createUnit=function(ot,ct){if("object"!=typeof ot)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(ct&&ct.override)for(var jt in ot)if(br(ot,jt)&&re.deleteUnit(jt),ot[jt].aliases)for(var st=0;st"u"||null===ct)&&(ct={}),"string"!=typeof ot)throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if(br(et,ot))throw new Error('Cannot create unit "'+ot+'": a unit with that name already exists');!function ir(ot){for(var ct=0;ct0&&!re.isValidAlpha(oe)&&!Ce(oe))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+ot+'"')}}(ot);var Tt,gn,bn,jt=null,st=[],vt=0;if(ct&&"Unit"===ct.type)jt=ct.clone();else if("string"==typeof ct)""!==ct&&(Tt=ct);else{if("object"!=typeof ct)throw new TypeError('Cannot create unit "'+ot+'" from "'+ct.toString()+'": expecting "string" or "Unit" or "Object"');Tt=ct.definition,gn=ct.prefixes,vt=ct.offset,bn=ct.baseName,ct.aliases&&(st=ct.aliases.valueOf())}if(st)for(var Wn=0;Wn1e-12){nc=!1;break}if(nc){Uo=!0,An.base=Pe[ra];break}}if(!Uo){bn=bn||ot+"_STUFF";var cb={dimensions:jt.dimensions.slice(0)};cb.key=bn,Pe[bn]=cb,Rt[bn]={unit:An,prefix:Ie.NONE[""]},An.base=Pe[bn]}}else{if(bn=bn||ot+"_STUFF",Ze.indexOf(bn)>=0)throw new Error('Cannot create new base unit "'+ot+'": a base unit with that name already exists (and cannot be overridden)');for(var Yr in Ze.push(bn),Pe)br(Pe,Yr)&&(Pe[Yr].dimensions[Ze.length-1]=0);for(var mi={dimensions:[]},ao=0;ao{var{typed:e,equalScalar:t,matrix:r,pow:i,DenseMatrix:a,concat:l}=n,d=Zl({typed:e}),h=Uh({typed:e,DenseMatrix:a}),p=Ks({typed:e,equalScalar:t}),y=fs({typed:e,DenseMatrix:a}),S=qo({typed:e,matrix:r,concat:l}),R={};for(var B in i.signatures)Object.prototype.hasOwnProperty.call(i.signatures,B)&&!B.includes("Matrix")&&!B.includes("Array")&&(R[B]=i.signatures[B]);var q=e(R);return e("dotPow",S({elop:q,SS:h,DS:d,Ss:p,sS:y}))}),i8e=Ke("expm",["typed","abs","add","identity","inv","multiply"],n=>{var{typed:e,abs:t,add:r,identity:i,inv:a,multiply:l}=n;return e("expm",{Matrix:function(S){var R=S.size();if(2!==R.length||R[0]!==R[1])throw new RangeError("Matrix must be square (size: "+Ti(R)+")");for(var B=R[0],V=function d(y){for(var S=y.size()[0],R=0,B=0;B1&&(Ae=l(Ae,re),De=-De),ce=r(ce,l(oe=oe*(ne-Ce+1)/((2*ne-Ce+1)*Ce),Ae)),pe=r(pe,l(oe*De,Ae));for(var _e=l(a(pe),ce),Re=0;Re{var{typed:e,matrix:t,addScalar:r,multiplyScalar:i,divideScalar:a,exp:l,tau:d,i:h,dotDivide:p,conj:y,pow:S,ceil:R,log2:B}=n;return e("fft",{Array:q,Matrix:function(re){return re.create(q(re.toArray()))}});function q(he){var re=hi(he);return 1===re.length?ne(he,re[0]):V(he.map(ce=>q(ce,re.slice(1))),0)}function V(he,re){var ce=hi(he);if(0!==re)return new Array(ce[0]).fill(0).map((oe,Ae)=>V(he[Ae],re-1));if(1===ce.length)return ne(he);function pe(oe){var Ae=hi(oe);return new Array(Ae[1]).fill(0).map((De,Ce)=>new Array(Ae[0]).fill(0).map((_e,Re)=>oe[Re][Ce]))}return pe(V(pe(he),1))}function ne(he){var re=he.length;if(1===re)return[he[0]];if(re%2==0){for(var ce=[...ne(he.filter((De,Ce)=>Ce%2==0)),...ne(he.filter((De,Ce)=>Ce%2==1))],pe=0;pei(he[Ie],pe[re-1+Ie])),...new Array(Ae-re).fill(0)],Ce=[...new Array(re+re-1).fill(0).map((Oe,Ie)=>a(1,pe[Ie])),...new Array(Ae-(re+re-1)).fill(0)],_e=ne(De),Re=ne(Ce),Be=new Array(Ae).fill(0).map((Oe,Ie)=>i(_e[Ie],Re[Ie])),Ge=p(y(q(y(Be))),Ae),Ye=[],$e=re-1;$e{var{typed:e,config:t,multiplyScalar:r,pow:i,BigNumber:a,Complex:l}=n;return e("gamma",{number:V8,Complex:function d(p){if(0===p.im)return V8(p.re);if(p.re<.5){var y=new l(1-p.re,-p.im),S=new l(Math.PI*p.re,Math.PI*p.im);return new l(Math.PI).div(S.sin()).div(d(y))}p=new l(p.re-1,p.im);for(var R=new l(Tw[0],0),B=1;B2;)q+=R-=2,B=B.times(q);return new a(B.toPrecision(a.precision))}}),d8e=Ke("ifft",["typed","fft","dotDivide","conj"],n=>{var{typed:e,fft:t,dotDivide:r,conj:i}=n;return e("ifft",{"Array | Matrix":function(l){var d=Ur(l)?l.size():hi(l);return r(i(t(i(l))),d.reduce((h,p)=>h*p,1))}})}),DJ="createUnit",h8e=Ke(DJ,["typed","Unit"],n=>{var{typed:e,Unit:t}=n;return e(DJ,{"Object, Object":function(i,a){return t.createUnit(i,a)},Object:function(i){return t.createUnit(i,{})},"string, Unit | string | Object, Object":function(i,a,l){var d={};return d[i]=a,t.createUnit(d,l)},"string, Unit | string | Object":function(i,a){var l={};return l[i]=a,t.createUnit(l,{})},string:function(i){var a={};return a[i]={},t.createUnit(a,{})}})}),m8e=Ke("divide",["typed","matrix","multiply","equalScalar","divideScalar","inv"],n=>{var{typed:e,matrix:t,multiply:r,equalScalar:i,divideScalar:a,inv:l}=n,d=Ks({typed:e,equalScalar:i}),h=Pu({typed:e});return e("divide",wG({"Array | Matrix, Array | Matrix":function(y,S){return r(y,l(S))},"DenseMatrix, any":function(y,S){return h(y,S,a,!1)},"SparseMatrix, any":function(y,S){return d(y,S,a,!1)},"Array, any":function(y,S){return h(t(y),S,a,!1).valueOf()},"any, Array | Matrix":function(y,S){return r(y,l(S))}},a.signatures))}),MJ="factorial",b8e=Ke(MJ,["typed","gamma"],n=>{var{typed:e,gamma:t}=n;return e(MJ,{number:function(i){if(i<0)throw new Error("Value must be non-negative");return t(i+1)},BigNumber:function(i){if(i.isNegative())throw new Error("Value must be non-negative");return t(i.plus(1))},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))})});function TJ(n,e){var t,r=e.length,i=[];if(n)for(t=0;t{var{typed:e,matrix:t,lup:r,slu:i,usolve:a,lsolve:l,DenseMatrix:d}=n,h=WA({DenseMatrix:d});return e(IJ,{"Array, Array | Matrix":function(R,B){R=t(R);var q=r(R);return y(q.L,q.U,q.p,null,B).valueOf()},"DenseMatrix, Array | Matrix":function(R,B){var q=r(R);return y(q.L,q.U,q.p,null,B)},"SparseMatrix, Array | Matrix":function(R,B){var q=r(R);return y(q.L,q.U,q.p,null,B)},"SparseMatrix, Array | Matrix, number, number":function(R,B,q,V){var ee=i(R,q,V);return y(ee.L,ee.U,ee.p,ee.q,B)},"Object, Array | Matrix":function(R,B){return y(R.L,R.U,R.p,R.q,B)}});function p(S){if(Ur(S))return S;if(fo(S))return t(S);throw new TypeError("Invalid Matrix LU decomposition")}function y(S,R,B,q,V){S=p(S),R=p(R),B&&((V=h(S,V,!0))._data=TJ(B,V._data));var ee=l(S,V),ne=a(R,ee);return q&&(ne._data=TJ(q,ne._data)),ne}}),NJ="multinomial",x8e=Ke(NJ,["typed","add","divide","multiply","factorial","isInteger","isPositive"],n=>{var{typed:e,add:t,divide:r,multiply:i,factorial:a,isInteger:l,isPositive:d}=n;return e(NJ,{"Array | Matrix":function(p){var y=0,S=1;return Fp(p,function(R){if(!l(R)||!d(R))throw new TypeError("Positive integer value expected in function multinomial");y=t(y,R),S=i(S,a(R))}),r(a(y),S)}})}),OJ="permutations",C8e=Ke(OJ,["typed","factorial"],n=>{var{typed:e,factorial:t}=n;return e(OJ,{"number | BigNumber":t,"number, number":function(i,a){if(!wr(i)||i<0)throw new TypeError("Positive integer value expected in function permutations");if(!wr(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(a>i)throw new TypeError("second argument k must be less than or equal to first argument n");return zp(i-a+1,i)},"BigNumber, BigNumber":function(i,a){var l,d;if(!RJ(i)||!RJ(a))throw new TypeError("Positive integer value expected in function permutations");if(a.gt(i))throw new TypeError("second argument k must be less than or equal to first argument n");for(l=i.mul(0).add(1),d=i.minus(a).plus(1);d.lte(i);d=d.plus(1))l=l.times(d);return l}})});function RJ(n){return n.isInteger()&&n.gte(0)}var FJ="polynomialRoot",E8e=Ke(FJ,["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],n=>{var{typed:e,isZero:t,equalScalar:r,add:i,subtract:a,multiply:l,divide:d,sqrt:h,unaryMinus:p,cbrt:y,typeOf:S,im:R,re:B}=n;return e(FJ,{"number|Complex, ...number|Complex":(q,V)=>{for(var ee=[q,...V];ee.length>0&&t(ee[ee.length-1]);)ee.pop();if(ee.length<2)throw new RangeError("Polynomial [".concat(q,", ").concat(V,"] must have a non-zero non-constant coefficient"));switch(ee.length){case 2:return[p(d(ee[0],ee[1]))];case 3:var[ne,he,re]=ee,ce=l(2,re),pe=l(he,he),oe=l(4,re,ne);if(r(pe,oe))return[d(p(he),ce)];var Ae=h(a(pe,oe));return[d(a(Ae,he),ce),d(a(p(Ae),he),ce)];case 4:var[De,Ce,_e,Re]=ee,Be=p(l(3,Re)),Ge=l(_e,_e),Ye=l(3,Re,Ce),$e=i(l(2,_e,_e,_e),l(27,Re,Re,De)),Oe=l(9,Re,_e,Ce);if(r(Ge,Ye)&&r($e,Oe))return[d(_e,Be)];var Dt,Ie=a(Ge,Ye),Ze=a($e,Oe),Pe=i(l(18,Re,_e,Ce,De),l(_e,_e,Ce,Ce)),bt=i(l(4,_e,_e,_e,De),l(4,Re,Ce,Ce,Ce),l(27,Re,Re,De,De));if(r(Pe,bt))return[d(a(l(4,Re,_e,Ce),i(l(9,Re,Re,De),l(_e,_e,_e))),l(Re,Ie)),d(a(l(9,Re,De),l(_e,Ce)),l(2,Ie))];Dt=r(Ge,Ye)?Ze:d(i(Ze,h(a(l(Ze,Ze),l(4,Ie,Ie,Ie)))),2);return y(Dt,!0).toArray().map(Et=>d(i(_e,Et,d(Ie,Et)),Be)).map(Et=>"Complex"===S(Et)&&r(B(Et),B(Et)+R(Et))?B(Et):Et);default:throw new RangeError("only implemented for cubic or lower-order polynomials, not ".concat(ee))}}})}),PJ="setSize",A8e=Ke(PJ,["typed","compareNatural"],n=>{var{typed:e,compareNatural:t}=n;return e(PJ,{"Array | Matrix":function(i){return Array.isArray(i)?ro(i).length:ro(i.toArray()).length},"Array | Matrix, boolean":function(i,a){if(!1===a||0===i.length)return Array.isArray(i)?ro(i).length:ro(i.toArray()).length;for(var l=ro(Array.isArray(i)?i:i.toArray()).sort(t),d=1,h=1;h{var{typed:e,add:t,subtract:r,multiply:i,divide:a,max:l,map:d,abs:h,isPositive:p,isNegative:y,larger:S,smaller:R,matrix:B,bignumber:q,unaryMinus:V}=n;function ee(De){return function(Ce,_e,Re,Be){if(!(2===_e.length&&(_e.every(oe)||_e.every(Rd))))throw new Error('"tspan" must be an Array of two numeric values or two units [tStart, tEnd]');var Ye=_e[0],$e=_e[1],Oe=S($e,Ye),Ie=Be.firstStep;if(void 0!==Ie&&!p(Ie))throw new Error('"firstStep" must be positive');var Ze=Be.maxStep;if(void 0!==Ze&&!p(Ze))throw new Error('"maxStep" must be positive');var Pe=Be.minStep;if(Pe&&y(Pe))throw new Error('"minStep" must be positive or zero');var bt=[Ye,$e,Ie,Pe,Ze].filter(Wn=>void 0!==Wn);if(!bt.every(oe)&&!bt.every(Rd))throw new Error('Inconsistent type of "t" dependant variables');for(var ht=Be.tol?Be.tol:1e-4,et=Be.minDelta?Be.minDelta:.2,Et=Be.maxDelta?Be.maxDelta:5,mn=Be.maxIter?Be.maxIter:1e4,Pt=[Ye,$e,...Re,Ze,Pe].some(Ci),[Rt,Zt,Lt,Ht]=Pt?[q(De.a),q(De.c),q(De.b),q(De.bp)]:[De.a,De.c,De.b,De.bp],tn=Ie?Oe?Ie:V(Ie):a(r($e,Ye),1),vn=[Ye],Bn=[Re],ir=r(Lt,Ht),ot=0,ct=0,jt=function ce(De){return De?R:S}(Oe),st=function pe(De){var Ce=De?S:R;return function(_e,Re,Be){var Ge=t(_e,Be);return Ce(Ge,Re)?r(Re,_e):Be}}(Oe);jt(vn[ot],$e);){var vt=[];tn=st(vn[ot],$e,tn),vt.push(Ce(vn[ot],Bn[ot]));for(var Tt=1;TtRd(Wn)?Wn.value:Wn)));gn1/4&&(vn.push(t(vn[ot],tn)),Bn.push(t(Bn[ot],i(tn,Lt,vt))),ot++);var bn=.84*(ht/gn)**.2;if(R(bn,et)?bn=et:S(bn,Et)&&(bn=Et),bn=Pt?q(bn):bn,tn=i(tn,bn),Ze&&S(h(tn),Ze)?tn=Oe?Ze:V(Ze):Pe&&R(h(tn),Pe)&&(tn=Oe?Pe:V(Pe)),++ct>mn)throw new Error("Maximum number of iterations reached, try changing options")}return{t:vn,y:Bn}}}function ne(De,Ce,_e,Re){return ee({a:[[],[.5],[0,.75],[.2222222222222222,.3333333333333333,.4444444444444444]],c:[null,.5,3/4,1],b:[2/9,1/3,4/9,0],bp:[7/24,1/4,1/3,1/8]})(De,Ce,_e,Re)}function he(De,Ce,_e,Re){return ee({a:[[],[.2],[.075,.225],[.9777777777777777,-3.7333333333333334,3.5555555555555554],[2.9525986892242035,-11.595793324188385,9.822892851699436,-.2908093278463649],[2.8462752525252526,-10.757575757575758,8.906422717743473,.2784090909090909,-.2735313036020583],[.09114583333333333,0,.44923629829290207,.6510416666666666,-.322376179245283,.13095238095238096]],c:[null,.2,.3,.8,8/9,1,1],b:[35/384,0,500/1113,125/192,-2187/6784,11/84,0],bp:[5179/57600,0,7571/16695,393/640,-92097/339200,187/2100,1/40]})(De,Ce,_e,Re)}function re(De,Ce,_e,Re){var Be=Re.method?Re.method:"RK45",Ge={RK23:ne,RK45:he};if(Be.toUpperCase()in Ge){var Ye=function D8e(n){for(var e=1;e'"'.concat(Ie,'"')),Oe="".concat($e.slice(0,-1).join(", ")," and ").concat($e.slice(-1));throw new Error('Unavailable method "'.concat(Be,'". Available methods are ').concat(Oe))}function oe(De){return Ci(De)||wi(De)}function Ae(De,Ce,_e,Re){var Be=re(De,Ce.toArray(),_e.toArray(),Re);return{t:B(Be.t),y:B(Be.y)}}return e("solveODE",{"function, Array, Array, Object":re,"function, Matrix, Matrix, Object":Ae,"function, Array, Array":(De,Ce,_e)=>re(De,Ce,_e,{}),"function, Matrix, Matrix":(De,Ce,_e)=>Ae(De,Ce,_e,{}),"function, Array, number | BigNumber | Unit":(De,Ce,_e)=>{var Re=re(De,Ce,[_e],{});return{t:Re.t,y:Re.y.map(Be=>Be[0])}},"function, Matrix, number | BigNumber | Unit":(De,Ce,_e)=>{var Re=re(De,Ce.toArray(),[_e],{});return{t:B(Re.t),y:B(Re.y.map(Be=>Be[0]))}},"function, Array, number | BigNumber | Unit, Object":(De,Ce,_e,Re)=>{var Be=re(De,Ce,[_e],Re);return{t:Be.t,y:Be.y.map(Ge=>Ge[0])}},"function, Matrix, number | BigNumber | Unit, Object":(De,Ce,_e,Re)=>{var Be=re(De,Ce.toArray(),[_e],Re);return{t:B(Be.t),y:B(Be.y.map(Ge=>Ge[0]))}}})}),LJ="stirlingS2",O8e=Ke(LJ,["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],n=>{var{typed:e,addScalar:t,subtractScalar:r,multiplyScalar:i,divideScalar:a,pow:l,factorial:d,combinations:h,isNegative:p,isInteger:y,number:S,bignumber:R,larger:B}=n,q=[],V=[];return e(LJ,{"number | BigNumber, number | BigNumber":function(ne,he){if(!y(ne)||p(ne)||!y(he)||p(he))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(B(he,ne))throw new TypeError("k must be less than or equal to n in function stirlingS2");var re=!(wi(ne)&&wi(he)),ce=re?V:q,pe=re?R:S,oe=S(ne),Ae=S(he);if(ce[oe]&&ce[oe].length>Ae)return ce[oe][Ae];for(var De=0;De<=oe;++De)if(ce[De]||(ce[De]=[pe(0===De?1:0)]),0!==De)for(var Ce=ce[De],_e=ce[De-1],Re=Ce.length;Re<=De&&Re<=Ae;++Re)Ce[Re]=Re===De?1:t(i(pe(Re),_e[Re]),_e[Re-1]);return ce[oe][Ae]}})}),F8e=Ke("unit",["typed","Unit"],n=>{var{typed:e,Unit:t}=n;return e("unit",{Unit:function(i){return i.clone()},string:function(i){return t.isValuelessUnit(i)?new t(null,i):t.parse(i,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function(i,a){return new t(i,a)},"number | BigNumber | Fraction":function(i){return new t(i)},"Array | Matrix":e.referToSelf(r=>i=>Ni(i,r))})}),VJ="bellNumbers",B8e=Ke(VJ,["typed","addScalar","isNegative","isInteger","stirlingS2"],n=>{var{typed:e,addScalar:t,isNegative:r,isInteger:i,stirlingS2:a}=n;return e(VJ,{"number | BigNumber":function(d){if(!i(d)||r(d))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var h=0,p=0;p<=d;p++)h=t(h,a(d,p));return h}})});function L8e(n){var{addScalar:e,subtract:t,flatten:r,multiply:i,multiplyScalar:a,divideScalar:l,sqrt:d,abs:h,bignumber:p,diag:y,size:S,reshape:R,inv:B,qr:q,usolve:V,usolveAll:ee,equal:ne,complex:he,larger:re,smaller:ce,matrixFromColumns:pe,dot:oe}=n;function Be(ht,et,Et,mn){var Pt=e(ht,mn),Rt=t(a(ht,mn),a(et,Et)),Zt=a(Pt,.5),Lt=a(d(t(a(Pt,Pt),a(4,Rt))),.5);return[e(Zt,Lt),t(Zt,Lt)]}function Ge(ht,et,Et,mn,Pt,Rt,Zt,Lt){var Ht="BigNumber"===Lt,tn="Complex"===Lt,vn=Ht?p(0):tn?he(0):0,Bn=Ht?p(1):tn?he(1):1;if(ce(h(Et),Zt))return[[Bn,vn],[vn,Bn]];if(re(h(t(Pt,Rt)),Zt))return[[t(Pt,mn),t(Rt,mn)],[Et,Et]];var ir=t(ht,Pt),ot=t(mn,Pt);return ce(h(et),Zt)&&ce(h(ot),Zt)?[[ir,Bn],[Et,vn]]:[[et,vn],[ot,Bn]]}function Ye(ht,et){for(var Et=0;Et=5)return null;for(Lt=0;;){var Ht=V(ht,Zt);if(ce(bt(Pe(Zt,[Ht])),mn))break;if(++Lt>=10)return null;Zt=Dt(Ht)}return Zt}function Ze(ht,et,Et){var mn="BigNumber"===Et,Pt="Complex"===Et,Rt=Array(ht).fill(0).map(Zt=>2*Math.random()-1);return mn&&(Rt=Rt.map(Zt=>p(Zt))),Pt&&(Rt=Rt.map(Zt=>he(Zt))),Dt(Rt=Pe(Rt,et),Et)}function Pe(ht,et){var Et=S(ht);for(var mn of et)mn=R(mn,Et),ht=t(ht,i(l(oe(mn,ht),oe(mn,mn)),mn));return ht}function bt(ht){return h(d(oe(ht,ht)))}function Dt(ht,et){var mn="Complex"===et,Pt="BigNumber"===et?p(1):mn?he(1):1;return i(l(Pt,bt(ht)),ht)}return function Ae(ht,et,Et,mn){var Pt=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],Rt=function De(ht,et,Et,mn,Pt){var ir,Rt="BigNumber"===mn,Zt="Complex"===mn,Lt=Rt?p(0):0,Ht=Rt?p(1):Zt?he(1):1,tn=Rt?p(1):1,vn=Rt?p(10):2,Bn=a(vn,vn);Pt&&(ir=Array(et).fill(Ht));for(var ot=!1;!ot;){ot=!0;for(var ct=0;ct1&&(ot=y(Array(vn-1).fill(Lt)))),vn-=1,Ht.pop();for(var bn=0;bn2&&(ot=y(Array(vn-2).fill(Lt)))),vn-=2,Ht.pop(),Ht.pop();for(var An=0;An+t(h(ao),h(Uo))),ct>100){var Yr=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+tn.join(", "));throw Yr.values=tn,Yr.vectors=[],Yr}var mi=Pt?i(ir,function $e(ht,et){for(var Et=[],mn=0;mni(nc,Cl)),vt.push(...Uo.map(Cl=>({value:mi,vector:r(Cl)})))},An=0;An({value:Ge[et],vector:ht}));return{values:Ge,eigenvectors:Dt}}return function B(Ce,_e){var Re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.epsilon,Be=arguments.length>3?arguments[3]:void 0,Ge=arguments.length>4?arguments[4]:void 0;if("number"===Be)return function q(Ce,_e,Re){var Ye,$e,Be=Ce.length,Ge=Math.abs(_e/Be);if(Re){$e=new Array(Be);for(var Oe=0;Oe=Math.abs(Ge);){var Ze=Ie[0][0],Pe=Ie[0][1];Ce=pe(Ce,Ye=ee(Ce[Ze][Ze],Ce[Pe][Pe],Ce[Ze][Pe]),Ze,Pe),Re&&($e=he($e,Ye,Ze,Pe)),Ie=oe(Ce)}for(var bt=Array(Be).fill(0),Dt=0;Dt=i(Ge);){var Ze=Ie[0][0],Pe=Ie[0][1];Ce=ce(Ce,Ye=ne(Ce[Ze][Ze],Ce[Pe][Pe],Ce[Ze][Pe]),Ze,Pe),Re&&($e=re($e,Ye,Ze,Pe)),Ie=Ae(Ce)}for(var bt=Array(Be).fill(0),Dt=0;Dt{var{config:e,typed:t,matrix:r,addScalar:i,subtract:a,equal:l,abs:d,atan:h,cos:p,sin:y,multiplyScalar:S,divideScalar:R,inv:B,bignumber:q,multiply:V,add:ee,larger:ne,column:he,flatten:re,number:ce,complex:pe,sqrt:oe,diag:Ae,size:De,reshape:Ce,qr:_e,usolve:Re,usolveAll:Be,im:Ge,re:Ye,smaller:$e,matrixFromColumns:Oe,dot:Ie}=n,Ze=z8e({config:e,addScalar:i,subtract:a,column:he,flatten:re,equal:l,abs:d,atan:h,cos:p,sin:y,multiplyScalar:S,inv:B,bignumber:q,complex:pe,multiply:V,add:ee}),Pe=L8e({config:e,addScalar:i,subtract:a,multiply:V,multiplyScalar:S,flatten:re,divideScalar:R,sqrt:oe,abs:d,bignumber:q,diag:Ae,size:De,reshape:Ce,qr:_e,inv:B,usolve:Re,usolveAll:Be,equal:l,complex:pe,larger:ne,smaller:$e,matrixFromColumns:Oe,dot:Ie});return t("eigs",{Array:function(Rt){return bt(r(Rt))},"Array, number|BigNumber":function(Rt,Zt){return bt(r(Rt),{precision:Zt})},"Array, Object":(Pt,Rt)=>bt(r(Pt),Rt),Matrix:function(Rt){return bt(Rt,{matricize:!0})},"Matrix, number|BigNumber":function(Rt,Zt){return bt(Rt,{precision:Zt,matricize:!0})},"Matrix, Object":function(Rt,Zt){var Lt={matricize:!0};return us(Lt,Zt),bt(Rt,Lt)}});function bt(Pt){var Rt,Zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Lt=!("eigenvectors"in Zt)||Zt.eigenvectors,tn=function Dt(Pt,Rt,Zt){var Lt=Pt.toArray(),Ht=Pt.size();if(2!==Ht.length||Ht[0]!==Ht[1])throw new RangeError("Matrix must be square (size: ".concat(Ti(Ht),")"));var tn=Ht[0];if(function et(Pt,Rt,Zt){for(var Lt=0;Lt{var{value:Bn,vector:ir}=vn;return{value:Bn,vector:r(ir)}}))),Lt&&Object.defineProperty(tn,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),tn}function mn(Pt,Rt,Zt){var Lt=Pt.datatype();if("number"===Lt||"BigNumber"===Lt||"Complex"===Lt)return Lt;for(var Ht=!1,tn=!1,vn=!1,Bn=0;Bn{var{typed:e,matrix:t,divide:r,sum:i,multiply:a,map:l,dotDivide:d,log:h,isNumeric:p}=n;return e(qJ,{"Array, Array":function(R,B){return y(t(R),t(B))},"Matrix, Array":function(R,B){return y(R,t(B))},"Array, Matrix":function(R,B){return y(t(R),B)},"Matrix, Matrix":function(R,B){return y(R,B)}});function y(S,R){var B=R.size().length,q=S.size().length;if(B>1)throw new Error("first object must be one dimensional");if(q>1)throw new Error("second object must be one dimensional");if(B!==q)throw new Error("Length of two vectors must be equal");if(0===i(S))throw new Error("Sum of elements in first object must be non zero");if(0===i(R))throw new Error("Sum of elements in second object must be non zero");var ne=r(S,i(S)),he=r(R,i(R)),re=i(a(ne,l(d(ne,he),ce=>h(ce))));return p(re)?re:Number.NaN}}),$8e=["typed","add","divide","compare","partitionSelect"],W8e=Ke("median",$8e,n=>{var{typed:e,add:t,divide:r,compare:i,partitionSelect:a}=n;function l(p){try{var y=(p=ro(p.valueOf())).length;if(0===y)throw new Error("Cannot calculate median of an empty array");if(y%2==0){for(var S=y/2-1,R=a(p,S+1),B=p[S],q=0;q0&&(B=p[q]);return h(B,R)}var V=a(p,(y-1)/2);return d(V)}catch(ee){throw Ql(ee,"median")}}var d=e({"number | BigNumber | Complex | Unit":function(y){return y}}),h=e({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(y,S){return r(t(y,S),2)}});return e("median",{"Array | Matrix":l,"Array | Matrix, number | BigNumber":function(y,S){throw new Error("median(A, dim) is not yet supported")},"...":function(y){if(xw(y))throw new TypeError("Scalar values expected in function median");return l(y)}})}),G8e=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],X8e=Ke("corr",G8e,n=>{var{typed:e,matrix:t,sqrt:r,sum:i,add:a,subtract:l,multiply:d,pow:h,divide:p}=n;return e("corr",{"Array, Array":function(B,q){return y(B,q)},"Matrix, Matrix":function(B,q){var V=y(B.toArray(),q.toArray());return Array.isArray(V)?t(V):V}});function y(R,B){var q=[];if(Array.isArray(R[0])&&Array.isArray(B[0])){if(R.length!==B.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var V=0;Va(oe,d(Ae,B[De])),0),he=i(R.map(oe=>h(oe,2))),re=i(B.map(oe=>h(oe,2))),ce=l(d(q,ne),d(V,ee)),pe=r(d(l(d(q,he),h(V,2)),l(d(q,re),h(ee,2))));return p(ce,pe)}}),Y8e=["typed","add","multiply","Complex","divide","matrix"],K8e=Ke("freqz",Y8e,n=>{var{typed:e,add:t,multiply:r,Complex:i,divide:a,matrix:l}=n;return e("freqz",{"Array, Array":function(y,S){return d(y,S,h(512))},"Array, Array, Array":function(y,S,R){return d(y,S,R)},"Array, Array, number":function(y,S,R){if(R<0)throw new Error("w must be a positive number");return d(y,S,h(R))},"Matrix, Matrix":function(y,S){var R=h(512),{w:B,h:q}=d(y.valueOf(),S.valueOf(),R);return{w:l(B),h:l(q)}},"Matrix, Matrix, Matrix":function(y,S,R){var{h:B}=d(y.valueOf(),S.valueOf(),R.valueOf());return{h:l(B),w:l(R)}},"Matrix, Matrix, number":function(y,S,R){if(R<0)throw new Error("w must be a positive number");var B=h(R),{h:q}=d(y.valueOf(),S.valueOf(),B);return{h:l(q),w:l(B)}}});function d(p,y,S){for(var R=[],B=[],q=0;q{var{typed:e,abs:t,map:r,median:i,subtract:a}=n;return e("mad",{"Array | Matrix":l,"...":function(h){return l(h)}});function l(d){if(0===(d=ro(d.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var h=i(d);return i(r(d,function(p){return t(a(p,h))}))}catch(p){throw p instanceof TypeError&&p.message.includes("median")?new TypeError(p.message.replace("median","mad")):Ql(p,"mad")}}}),J8e=["typed","config","multiply","pow","divide","factorial","equal","smallerEq","isNegative","gamma","sin","subtract","add","?Complex","?BigNumber","pi"],eNe=Ke("zeta",J8e,n=>{var{typed:e,config:t,multiply:r,pow:i,divide:a,factorial:l,equal:d,smallerEq:h,isNegative:p,gamma:y,sin:S,subtract:R,add:B,Complex:q,BigNumber:V,pi:ee}=n;return e("zeta",{number:oe=>ne(oe,Ae=>Ae,()=>20),BigNumber:oe=>ne(oe,Ae=>new V(Ae),()=>Math.abs(Math.log10(t.epsilon))),Complex:function he(oe){return 0===oe.re&&0===oe.im?new q(-.5):1===oe.re?new q(NaN,NaN):oe.re===1/0&&0===oe.im?new q(1):oe.im===1/0||oe.re===-1/0?new q(NaN,NaN):re(oe,Ae=>Ae,Ae=>Math.round(19.5+.9*Math.abs(Ae.im)),Ae=>Ae.re)}});function ne(oe,Ae,De){return d(oe,0)?Ae(-.5):d(oe,1)?Ae(NaN):isFinite(oe)?re(oe,Ae,De,Ce=>Ce):p(oe)?Ae(NaN):Ae(1)}function re(oe,Ae,De,Ce){var _e=De(oe);if(Ce(oe)>-(_e-1)/2)return function pe(oe,Ae,De){for(var Ce=a(1,r(ce(De(0),Ae),R(1,i(2,R(1,oe))))),_e=De(0),Re=De(1);h(Re,Ae);Re=B(Re,1))_e=B(_e,a(r((-1)**(Re-1),ce(Re,Ae)),i(Re,oe)));return r(Ce,_e)}(oe,Ae(_e),Ae);var Re=r(i(2,oe),i(Ae(ee),R(oe,1)));return Re=r(Re,S(r(a(Ae(ee),2),oe))),Re=r(Re,y(R(1,oe))),r(Re,re(R(1,oe),Ae,De,Ce))}function ce(oe,Ae){for(var De=oe,Ce=oe;h(Ce,Ae);Ce=B(Ce,1)){var _e=a(r(l(B(Ae,R(Ce,1))),i(4,Ce)),r(l(R(Ae,Ce)),l(r(2,Ce))));De=B(De,_e)}return r(Ae,De)}}),tNe=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],nNe=Ke("norm",tNe,n=>{var{typed:e,abs:t,add:r,pow:i,conj:a,sqrt:l,multiply:d,equalScalar:h,larger:p,smaller:y,matrix:S,ctranspose:R,eigs:B}=n;return e("norm",{number:Math.abs,Complex:function(De){return De.abs()},BigNumber:function(De){return De.abs()},boolean:function(De){return Math.abs(De)},Array:function(De){return oe(S(De),2)},Matrix:function(De){return oe(De,2)},"Array, number | BigNumber | string":function(De,Ce){return oe(S(De),Ce)},"Matrix, number | BigNumber | string":function(De,Ce){return oe(De,Ce)}});function ee(Ae,De){if(De===Number.POSITIVE_INFINITY||"inf"===De)return function q(Ae){var De=0;return Ae.forEach(function(Ce){var _e=t(Ce);p(_e,De)&&(De=_e)},!0),De}(Ae);if(De===Number.NEGATIVE_INFINITY||"-inf"===De)return function V(Ae){var De;return Ae.forEach(function(Ce){var _e=t(Ce);(!De||y(_e,De))&&(De=_e)},!0),De||0}(Ae);if("fro"===De)return oe(Ae,2);if("number"==typeof De&&!isNaN(De)){if(!h(De,0)){var Ce=0;return Ae.forEach(function(_e){Ce=r(i(t(_e),De),Ce)},!0),i(Ce,1/De)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function pe(Ae,De){if(1===De)return function he(Ae){var De=[],Ce=0;return Ae.forEach(function(_e,Re){var Be=Re[1],Ge=r(De[Be]||0,t(_e));p(Ge,Ce)&&(Ce=Ge),De[Be]=Ge},!0),Ce}(Ae);if(De===Number.POSITIVE_INFINITY||"inf"===De)return function ce(Ae){var De=[],Ce=0;return Ae.forEach(function(_e,Re){var Be=Re[0],Ge=r(De[Be]||0,t(_e));p(Ge,Ce)&&(Ce=Ge),De[Be]=Ge},!0),Ce}(Ae);if("fro"===De)return function ne(Ae){var De=0;return Ae.forEach(function(Ce,_e){De=r(De,d(Ce,a(Ce)))}),t(l(De))}(Ae);if(2===De)return function re(Ae){var De=Ae.size();if(De[0]!==De[1])throw new RangeError("Invalid matrix dimensions");var Ce=R(Ae),_e=d(Ce,Ae),Re=B(_e).values.toArray(),Be=Re[Re.length-1];return t(l(Be))}(Ae);throw new Error("Unsupported parameter value "+De)}function oe(Ae,De){var Ce=Ae.size();if(1===Ce.length)return ee(Ae,De);if(2===Ce.length){if(Ce[0]&&Ce[1])return pe(Ae,De);throw new RangeError("Invalid matrix dimensions")}}}),XJ="rotationMatrix",rNe=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],iNe=Ke(XJ,rNe,n=>{var{typed:e,config:t,multiplyScalar:r,addScalar:i,unaryMinus:a,norm:l,BigNumber:d,matrix:h,DenseMatrix:p,SparseMatrix:y,cos:S,sin:R}=n;return e(XJ,{"":function(){return"Matrix"===t.matrix?h([]):[]},string:function(re){return h(re)},"number | BigNumber | Complex | Unit":function(re){return B(re,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(re,ce){return B(re,ce)},"number | BigNumber | Complex | Unit, Array":function(re,ce){var pe=h(ce);return q(pe),ne(re,pe,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(re,ce){q(ce);var pe=ce.storage()||("Matrix"===t.matrix?"dense":void 0);return ne(re,ce,pe)},"number | BigNumber | Complex | Unit, Array, string":function(re,ce,pe){var oe=h(ce);return q(oe),ne(re,oe,pe)},"number | BigNumber | Complex | Unit, Matrix, string":function(re,ce,pe){return q(ce),ne(re,ce,pe)}});function B(he,re){var pe=Ci(he)?new d(-1):-1,oe=S(he),Ae=R(he);return ee([[oe,r(pe,Ae)],[Ae,oe]],re)}function q(he){var re=he.size();if(re.length<1||3!==re[0])throw new RangeError("Vector must be of dimensions 1x3")}function V(he){return he.reduce((re,ce)=>r(re,ce))}function ee(he,re){if(re){if("sparse"===re)return new y(he);if("dense"===re)return new p(he);throw new TypeError('Unknown matrix type "'.concat(re,'"'))}return he}function ne(he,re,ce){var pe=l(re);if(0===pe)throw new RangeError("Rotation around zero vector");var oe=Ci(he)?d:null,Ae=oe?new oe(1):1,De=oe?new oe(-1):-1,Ce=oe?new oe(re.get([0])/pe):re.get([0])/pe,_e=oe?new oe(re.get([1])/pe):re.get([1])/pe,Re=oe?new oe(re.get([2])/pe):re.get([2])/pe,Be=S(he),Ge=i(Ae,a(Be)),Ye=R(he);return ee([[i(Be,V([Ce,Ce,Ge])),i(V([Ce,_e,Ge]),V([De,Re,Ye])),i(V([Ce,Re,Ge]),V([_e,Ye]))],[i(V([Ce,_e,Ge]),V([Re,Ye])),i(Be,V([_e,_e,Ge])),i(V([_e,Re,Ge]),V([De,Ce,Ye]))],[i(V([Ce,Re,Ge]),V([De,_e,Ye])),i(V([_e,Re,Ge]),V([Ce,Ye])),i(Be,V([Re,Re,Ge]))]],ce)}}),oNe=["typed","matrix","identity","multiply","qr","norm","subtract"],aNe=Ke("schur",oNe,n=>{var{typed:e,matrix:t,identity:r,multiply:i,qr:a,norm:l,subtract:d}=n;return e("schur",{Array:function(y){var S=h(t(y));return{U:S.U.valueOf(),T:S.T.valueOf()}},Matrix:function(y){return h(y)}});function h(p){var q,y=p.size()[0],S=p,R=r(y),B=0;do{q=S;var V=a(S),ee=V.Q,ne=V.R;if(S=i(ne,ee),R=i(R,ee),B++>100)break}while(l(d(S,q))>1e-4);return{U:R,T:S}}}),sNe=["typed","multiply","rotationMatrix"],lNe=Ke("rotate",sNe,n=>{var{typed:e,multiply:t,rotationMatrix:r}=n;return e("rotate",{"Array , number | BigNumber | Complex | Unit":function(l,d){return i(l,2),t(r(d),l).toArray()},"Matrix , number | BigNumber | Complex | Unit":function(l,d){return i(l,2),t(r(d),l)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(l,d,h){return i(l,3),t(r(d,h),l)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(l,d,h){return i(l,3),t(r(d,h),l)}});function i(a,l){var d=Array.isArray(a)?hi(a):a.size();if(d.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(l));if(2===d.length&&1!==d[1])throw new RangeError("Vector must be of dimensions 1x".concat(l));if(d[0]!==l)throw new RangeError("Vector must be of dimensions 1x".concat(l))}}),ZJ="sylvester",cNe=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],dNe=Ke(ZJ,cNe,n=>{var{typed:e,schur:t,matrixFromColumns:r,matrix:i,multiply:a,range:l,concat:d,transpose:h,index:p,subset:y,add:S,subtract:R,identity:B,lusolve:q,abs:V}=n;return e(ZJ,{"Matrix, Matrix, Matrix":ee,"Array, Matrix, Matrix":function(he,re,ce){return ee(i(he),re,ce)},"Array, Array, Matrix":function(he,re,ce){return ee(i(he),i(re),ce)},"Array, Matrix, Array":function(he,re,ce){return ee(i(he),re,i(ce))},"Matrix, Array, Matrix":function(he,re,ce){return ee(he,i(re),ce)},"Matrix, Array, Array":function(he,re,ce){return ee(he,i(re),i(ce))},"Matrix, Matrix, Array":function(he,re,ce){return ee(he,re,i(ce))},"Array, Array, Array":function(he,re,ce){return ee(i(he),i(re),i(ce)).toArray()}});function ee(ne,he,re){for(var ce=he.size()[0],pe=ne.size()[0],oe=t(ne),Ae=oe.T,De=oe.U,Ce=t(a(-1,he)),_e=Ce.T,Re=Ce.U,Be=a(a(h(De),re),Re),Ge=l(0,pe),Ye=[],$e=(vn,Bn)=>d(vn,Bn,1),Oe=(vn,Bn)=>d(vn,Bn,0),Ie=0;Ie1e-5){for(var Ze=Oe(y(Be,p(Ge,Ie)),y(Be,p(Ge,Ie+1))),Pe=0;Pe{var{typed:e,matrix:t,sylvester:r,multiply:i,transpose:a}=n;return e("lyap",{"Matrix, Matrix":function(d,h){return r(d,a(d),i(-1,h))},"Array, Matrix":function(d,h){return r(t(d),a(t(d)),i(-1,h))},"Matrix, Array":function(d,h){return r(d,a(t(d)),t(i(-1,h)))},"Array, Array":function(d,h){return r(t(d),a(t(d)),t(i(-1,h))).toArray()}})}),Pn=tEe({config:yn}),Fo=iEe({}),JJ=xEe({BigNumber:Pn,config:yn}),fNe=mEe({}),pNe=KEe({BigNumber:Pn,config:yn}),dy=MSe({}),eee=MEe({Complex:Fo}),mNe=bEe({BigNumber:Pn,config:yn}),gNe=kEe({BigNumber:Pn,config:yn}),bNe=SEe({BigNumber:Pn,config:yn}),Y8=NSe({}),vNe=vEe({BigNumber:Pn,config:yn}),yNe=gEe({}),_Ne=wEe({BigNumber:Pn,config:yn}),xNe=FSe({}),tee=LSe({}),wNe=AEe({BigNumber:Pn,config:yn}),CNe=mSe({BigNumber:Pn,config:yn}),nee=_Ee({BigNumber:Pn,config:yn}),kNe=pEe({}),ENe=TEe({}),ki=qSe({Matrix:Y8}),SNe=oSe({BigNumber:Pn,config:yn}),ANe=CEe({BigNumber:Pn,config:yn}),XB=yEe({BigNumber:Pn,config:yn}),DNe=HSe({}),MNe=DEe({BigNumber:Pn,config:yn}),lt=WSe({BigNumber:Pn,Complex:Fo,DenseMatrix:ki,Fraction:dy}),YB=nAe({BigNumber:Pn,config:yn,typed:lt}),TNe=iSe({BigNumber:Pn,config:yn}),Jl=iAe({typed:lt}),INe=aAe({Complex:Fo,config:yn,typed:lt}),NNe=vAe({BigNumber:Pn,typed:lt}),ONe=_Ae({BigNumber:Pn,Complex:Fo,config:yn,typed:lt}),ms=wAe({typed:lt}),RNe=kAe({typed:lt}),FNe=SAe({BigNumber:Pn,Complex:Fo,config:yn,typed:lt}),PNe=MAe({typed:lt}),ree=NAe({typed:lt}),BNe=RAe({Complex:Fo,config:yn,typed:lt}),nd=BAe({BigNumber:Pn,typed:lt}),LNe=zAe({typed:lt}),zNe=qAe({typed:lt}),VNe=UAe({typed:lt}),K8=$Ae({typed:lt}),Z8=XAe({Complex:Fo,typed:lt}),uy=KAe({typed:lt}),KB=QAe({typed:lt}),qNe=eDe({BigNumber:Pn,typed:lt}),jNe=nDe({BigNumber:Pn,typed:lt}),UNe=iDe({typed:lt}),Pi=sDe({config:yn,typed:lt}),HNe=dDe({typed:lt}),iee=mDe({typed:lt}),$Ne=bDe({Complex:Fo,typed:lt}),WNe=_De({typed:lt}),GNe=wDe({typed:lt}),GA=EDe({typed:lt}),ZB=ADe({typed:lt}),XNe=MDe({format:GA,typed:lt}),QB=IDe({typed:lt}),wc=ODe({typed:lt}),Qg=PDe({typed:lt}),hy=LDe({typed:lt}),Vu=VDe({typed:lt}),YNe=EEe({BigNumber:Pn,config:yn}),KNe=HDe({Complex:Fo,typed:lt}),ZNe=WDe({Complex:Fo,config:yn,typed:lt}),oee=XDe({Complex:Fo,config:yn,typed:lt}),fy=KDe({typed:lt}),Oa=eMe({typed:lt}),Q8=nMe({typed:lt}),qp=sMe({typed:lt}),QNe=cMe({format:GA,typed:lt}),JNe=hMe({config:yn,typed:lt}),e6e=VX({typed:lt}),t6e=pMe({config:yn,typed:lt}),JB=gMe({typed:lt}),n6e=vMe({BigNumber:Pn,typed:lt}),aee=_Me({BigNumber:Pn,Fraction:dy,complex:Z8,typed:lt}),J8=wMe({typed:lt}),jp=EMe({Matrix:Y8,equalScalar:Pi,typed:lt}),r6e=AMe({typed:lt}),i6e=MMe({typed:lt}),o6e=IMe({typed:lt}),zd=OMe({typed:lt}),a6e=FMe({typed:lt}),see=BMe({typed:lt}),s6e=zMe({Complex:Fo,config:yn,typed:lt}),l6e=qMe({BigNumber:Pn,typed:lt}),eL=kB({isInteger:wc,typed:lt}),c6e=UMe({BigNumber:Pn,Complex:Fo,config:yn,typed:lt}),d6e=$Me({format:GA,typed:lt}),u6e=GMe({typed:lt}),h6e=YMe({typed:lt}),f6e=ZMe({BigNumber:Pn,typed:lt}),XA=JMe({typed:lt}),p6e=tTe({typed:lt}),m6e=rTe({config:yn,typed:lt}),g6e=oTe({BigNumber:Pn,typed:lt}),b6e=sTe({typed:lt}),v6e=cTe({SparseMatrix:jp,typed:lt}),qu=hTe({Complex:Fo,config:yn,typed:lt}),y6e=mTe({typed:lt}),Hh=bTe({typed:lt}),_6e=yTe({BigNumber:Pn,Complex:Fo,config:yn,typed:lt}),x6e=xTe({BigNumber:Pn,typed:lt}),Rw=kTe({Fraction:dy,typed:lt}),py=STe({typed:lt}),In=DTe({DenseMatrix:ki,Matrix:Y8,SparseMatrix:jp,typed:lt}),w6e=TTe({isZero:Vu,matrix:In,typed:lt}),C6e=NTe({isNaN:XA,isNumeric:py,typed:lt}),ju=FTe({bignumber:nd,fraction:Rw,number:qp}),lee=BTe({config:yn,multiplyScalar:Oa,numeric:ju,typed:lt}),cee=zTe({isInteger:wc,matrix:In,typed:lt}),Js=qTe({matrix:In,config:yn,typed:lt}),k6e=UTe({matrix:In,typed:lt}),YA=$Te({matrix:In,typed:lt}),dee=GTe({BigNumber:Pn,config:yn,matrix:In,typed:lt}),el=YTe({BigNumber:Pn,config:yn,matrix:In,typed:lt}),E6e=ZTe({Complex:Fo,config:yn,typed:lt}),uee=JTe({BigNumber:Pn,Complex:Fo,Fraction:dy,config:yn,isNegative:Qg,matrix:In,typed:lt,unaryMinus:Hh}),Qi=FX({isInteger:wc,matrix:In,typed:lt}),S6e=tIe({prod:lee,size:Js,typed:lt}),tL=rIe({conj:uy,transpose:YA,typed:lt}),hee=oIe({DenseMatrix:ki,SparseMatrix:jp,matrix:In,typed:lt}),xa=sIe({numeric:ju,typed:lt}),KA=uIe({DenseMatrix:ki,concat:Qi,divideScalar:xa,equalScalar:Pi,matrix:In,typed:lt}),Vd=fIe({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),ZA=gIe({matrix:In,typed:lt}),A6e=vIe({isNumeric:py,typed:lt}),Jg=_Ie({BigNumber:Pn,DenseMatrix:ki,SparseMatrix:jp,config:yn,matrix:In,typed:lt}),D6e=wIe({matrix:In,multiplyScalar:Oa,typed:lt}),eN=kIe({DenseMatrix:ki,concat:Qi,config:yn,matrix:In,typed:lt}),M6e=MIe({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt,zeros:el}),fee=IIe({DenseMatrix:ki,divideScalar:xa,equalScalar:Pi,matrix:In,multiplyScalar:Oa,subtractScalar:zd,typed:lt}),nL=OIe({flatten:ZA,matrix:In,size:Js,typed:lt}),T6e=FIe({BigNumber:Pn,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),I6e=LIe({BigNumber:Pn,config:yn,matrix:In,typed:lt}),rL=VIe({addScalar:ms,complex:Z8,conj:uy,divideScalar:xa,equal:Vd,identity:Jg,isZero:Vu,matrix:In,multiplyScalar:Oa,sign:aee,sqrt:qu,subtractScalar:zd,typed:lt,unaryMinus:Hh,zeros:el}),N6e=UIe({config:yn,matrix:In}),O6e=$Ie({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt,zeros:el}),Fw=GIe({BigNumber:Pn,DenseMatrix:ki,config:yn,equalScalar:Pi,matrix:In,typed:lt,zeros:el}),ec=YIe({DenseMatrix:ki,concat:Qi,config:yn,matrix:In,typed:lt}),Ra=QIe({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,subtractScalar:zd,typed:lt,unaryMinus:Hh}),R6e=e3e({concat:Qi,matrix:In,typed:lt}),F6e=n3e({DenseMatrix:ki,concat:Qi,config:yn,equalScalar:Pi,matrix:In,typed:lt}),iL=o3e({DenseMatrix:ki,divideScalar:xa,equalScalar:Pi,matrix:In,multiplyScalar:Oa,subtractScalar:zd,typed:lt}),P6e=s3e({DenseMatrix:ki,concat:Qi,matrix:In,typed:lt}),qi=c3e({DenseMatrix:ki,SparseMatrix:jp,addScalar:ms,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),B6e=f3e({BigNumber:Pn,DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),L6e=ZX({concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),z6e=sY({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),V6e=m3e({DenseMatrix:ki,concat:Qi,matrix:In,typed:lt}),q6e=b3e({addScalar:ms,combinations:K8,divideScalar:xa,isInteger:wc,isNegative:Qg,multiplyScalar:Oa,typed:lt}),my=y3e({BigNumber:Pn,DenseMatrix:ki,Fraction:dy,concat:Qi,config:yn,equalScalar:Pi,matrix:In,typed:lt}),pee=w3e({concat:Qi,matrix:In,typed:lt}),j6e=lY({add:qi,typed:lt,unaryPlus:YB}),oL=k3e({equal:Vd,typed:lt}),U6e=JX({matrix:In,number:qp,subtract:Ra,typed:lt}),H6e=S3e({abs:Jl,addScalar:ms,deepEqual:oL,divideScalar:xa,multiplyScalar:Oa,sqrt:qu,subtractScalar:zd,typed:lt}),tN=D3e({addScalar:ms,conj:uy,multiplyScalar:Oa,size:Js,typed:lt}),$6e=T3e({compareText:pee,isZero:Vu,typed:lt}),mee=NQ({DenseMatrix:ki,config:yn,equalScalar:Pi,matrix:In,round:Fw,typed:lt,zeros:el}),W6e=P3e({BigNumber:Pn,DenseMatrix:ki,concat:Qi,config:yn,equalScalar:Pi,matrix:In,round:Fw,typed:lt,zeros:el}),G6e=L3e({abs:Jl,addScalar:ms,divideScalar:xa,isPositive:hy,multiplyScalar:Oa,smaller:ec,sqrt:qu,typed:lt}),gee=q3e({DenseMatrix:ki,smaller:ec}),_l=H3e({ImmutableDenseMatrix:gee,getMatrixDataType:ZB}),tc=W3e({DenseMatrix:ki,concat:Qi,config:yn,matrix:In,typed:lt}),aL=Y3e({Complex:Fo,config:yn,divideScalar:xa,typed:lt}),X6e=Z3e({DenseMatrix:ki,divideScalar:xa,equalScalar:Pi,matrix:In,multiplyScalar:Oa,subtractScalar:zd,typed:lt}),Y6e=J3e({flatten:ZA,matrix:In,size:Js,typed:lt}),K6e=nY({config:yn,numeric:ju,smaller:ec,typed:lt}),bee=RQ({DenseMatrix:ki,concat:Qi,config:yn,equalScalar:Pi,matrix:In,round:Fw,typed:lt,zeros:el}),vo=t4e({addScalar:ms,dot:tN,equalScalar:Pi,matrix:In,multiplyScalar:Oa,typed:lt}),Z6e=r4e({Complex:Fo,config:yn,divideScalar:xa,typed:lt}),Q6e=IX({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),nN=o4e({compare:my,isNaN:XA,isNumeric:py,typed:lt}),J6e=s4e({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt,zeros:el}),vee=I4e({SparseMatrix:jp,abs:Jl,add:qi,divideScalar:xa,larger:tc,largerEq:eN,multiply:vo,subtract:Ra,transpose:YA,typed:lt}),rd=iY({add:qi,matrix:In,typed:lt,zeros:el}),sL=uY({add:qi,config:yn,numeric:ju,typed:lt}),eOe=R4e({add:qi,matrix:In,typed:lt}),yee=P4e({DenseMatrix:ki,divideScalar:xa,equalScalar:Pi,matrix:In,multiplyScalar:Oa,subtractScalar:zd,typed:lt}),tOe=L4e({Complex:Fo,add:qi,multiply:vo,number:qp,typed:lt}),lL=q4e({DenseMatrix:ki,config:yn,equalScalar:Pi,matrix:In,round:Fw,typed:lt,zeros:el}),$h=U4e({compare:my,typed:lt}),nOe=W4e({addScalar:ms,combinations:K8,isInteger:wc,isNegative:Qg,isPositive:hy,larger:tc,typed:lt}),rOe=X4e({matrix:In,multiply:vo,subtract:Ra,typed:lt}),_ee=K4e({divideScalar:xa,isZero:Vu,matrix:In,multiply:vo,subtractScalar:zd,typed:lt,unaryMinus:Hh}),iOe=Q4e({concat:Qi,equalScalar:Pi,matrix:In,multiplyScalar:Oa,typed:lt}),xee=t5e({larger:tc,smaller:ec}),wee=i5e({Complex:Fo,DenseMatrix:ki,ceil:lL,equalScalar:Pi,floor:mee,matrix:In,typed:lt,zeros:el}),Cee=a5e({Index:_l,typed:lt}),oOe=c5e({abs:Jl,add:qi,addScalar:ms,config:yn,divideScalar:xa,equalScalar:Pi,flatten:ZA,isNumeric:py,isZero:Vu,matrix:In,multiply:vo,multiplyScalar:Oa,smaller:ec,subtract:Ra,typed:lt}),aOe=u5e({BigNumber:Pn,add:qi,config:yn,equal:Vd,isInteger:wc,mod:bee,smaller:ec,typed:lt,xgcd:dee}),sOe=f5e({concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),lOe=m5e({Complex:Fo,config:yn,divideScalar:xa,log:aL,typed:lt}),cL=BX({config:yn,larger:tc,numeric:ju,typed:lt}),cOe=b5e({DenseMatrix:ki,Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),dOe=y5e({DenseMatrix:ki,Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),uOe=x5e({Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),hOe=C5e({Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),Pw=E5e({DenseMatrix:ki,concat:Qi,config:yn,matrix:In,typed:lt}),fOe=D5e({compare:my,compareNatural:$h,matrix:In,typed:lt}),pOe=OX({concat:Qi,equalScalar:Pi,matrix:In,not:Q8,typed:lt,zeros:el}),Bw=pY({bignumber:nd,matrix:In,add:qi,config:yn,isPositive:hy,larger:tc,largerEq:eN,smaller:ec,smallerEq:Pw,typed:lt}),mOe=gY({Index:_l,matrix:In,range:Bw,typed:lt}),kee=T5e({DenseMatrix:ki,Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),gOe=N5e({Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),Eee=R5e({Index:_l,concat:Qi,setDifference:kee,size:Js,subset:rd,typed:lt}),See=B5e({FibonacciHeap:xee,addScalar:ms,equalScalar:Pi}),Aee=vY({Index:_l,matrix:In,range:Bw,typed:lt}),gy=z5e({abs:Jl,addScalar:ms,det:_ee,divideScalar:xa,identity:Jg,matrix:In,multiply:vo,typed:lt,unaryMinus:Hh}),Dee=q5e({DenseMatrix:ki,Spa:See,SparseMatrix:jp,abs:Jl,addScalar:ms,divideScalar:xa,equalScalar:Pi,larger:tc,matrix:In,multiplyScalar:Oa,subtractScalar:zd,typed:lt,unaryMinus:Hh}),bOe=U5e({Complex:Fo,add:qi,ctranspose:tL,deepEqual:oL,divideScalar:xa,dot:tN,dotDivide:KA,equal:Vd,inv:gy,matrix:In,multiply:vo,typed:lt}),qd=$5e({Complex:Fo,config:yn,fraction:Rw,identity:Jg,inv:gy,matrix:In,multiply:vo,number:qp,typed:lt}),Mee=G5e({DenseMatrix:ki,Index:_l,compareNatural:$h,size:Js,subset:rd,typed:lt}),vOe=Y5e({Index:_l,concat:Qi,setIntersect:Mee,setSymDifference:Eee,size:Js,subset:rd,typed:lt}),yOe=Z5e({abs:Jl,add:qi,identity:Jg,inv:gy,map:fy,max:cL,multiply:vo,size:Js,sqrt:qu,subtract:Ra,typed:lt}),ei=e8e({BigNumber:Pn,Complex:Fo,Fraction:dy,abs:Jl,addScalar:ms,config:yn,divideScalar:xa,equal:Vd,fix:wee,format:GA,isNumeric:py,multiplyScalar:Oa,number:qp,pow:qd,round:Fw,subtractScalar:zd}),_Oe=BEe({BigNumber:Pn,Unit:ei,config:yn}),xOe=vSe({BigNumber:Pn,Unit:ei,config:yn}),wOe=aSe({BigNumber:Pn,Unit:ei,config:yn}),COe=VEe({BigNumber:Pn,Unit:ei,config:yn}),kOe=lSe({BigNumber:Pn,Unit:ei,config:yn}),EOe=qEe({BigNumber:Pn,Unit:ei,config:yn}),SOe=LEe({BigNumber:Pn,Unit:ei,config:yn}),AOe=JEe({BigNumber:Pn,Unit:ei,config:yn}),DOe=n8e({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,pow:qd,typed:lt}),MOe=PEe({BigNumber:Pn,Unit:ei,config:yn}),TOe=zEe({BigNumber:Pn,Unit:ei,config:yn}),IOe=i8e({abs:Jl,add:qi,identity:Jg,inv:gy,multiply:vo,typed:lt}),NOe=cSe({BigNumber:Pn,Unit:ei,config:yn}),Tee=a8e({addScalar:ms,ceil:lL,conj:uy,divideScalar:xa,dotDivide:KA,exp:iee,i:eee,log2:oee,matrix:In,multiplyScalar:Oa,pow:qd,tau:nee,typed:lt}),dL=l8e({BigNumber:Pn,Complex:Fo,config:yn,multiplyScalar:Oa,pow:qd,typed:lt}),OOe=NEe({BigNumber:Pn,Unit:ei,config:yn}),ROe=ZEe({BigNumber:Pn,Unit:ei,config:yn}),FOe=d8e({conj:uy,dotDivide:KA,fft:Tee,typed:lt}),POe=$Ee({BigNumber:Pn,Unit:ei,config:yn}),BOe=uSe({BigNumber:Pn,Unit:ei,config:yn}),LOe=FEe({BigNumber:Pn,Unit:ei,config:yn}),zOe=ySe({BigNumber:Pn,Unit:ei,config:yn}),VOe=fSe({BigNumber:Pn,Unit:ei,config:yn}),qOe=eSe({BigNumber:Pn,Unit:ei,config:yn}),jOe=HEe({BigNumber:Pn,Unit:ei,config:yn}),UOe=ESe({BigNumber:Pn,Unit:ei,config:yn}),HOe=wSe({BigNumber:Pn,Unit:ei,config:yn}),$Oe=SSe({BigNumber:Pn,Unit:ei,config:yn}),WOe=QEe({BigNumber:Pn,Unit:ei,config:yn}),GOe=tSe({BigNumber:Pn,Unit:ei,config:yn}),XOe=REe({BigNumber:Pn,Unit:ei,config:yn}),YOe=nSe({BigNumber:Pn,Unit:ei,config:yn}),KOe=gSe({BigNumber:Pn,Unit:ei,config:yn}),ZOe=IEe({BigNumber:Pn,Unit:ei,config:yn}),QOe=bSe({BigNumber:Pn,Unit:ei,config:yn}),JOe=rSe({BigNumber:Pn,Unit:ei,config:yn}),eRe=sSe({BigNumber:Pn,Unit:ei,config:yn}),tRe=WEe({BigNumber:Pn,Unit:ei,config:yn}),nRe=h8e({Unit:ei,typed:lt}),Ms=m8e({divideScalar:xa,equalScalar:Pi,inv:gy,matrix:In,multiply:vo,typed:lt}),rRe=XEe({BigNumber:Pn,Unit:ei,config:yn}),QA=b8e({gamma:dL,typed:lt}),iRe=dSe({BigNumber:Pn,Unit:ei,config:yn}),oRe=xSe({BigNumber:Pn,Unit:ei,config:yn}),aRe=jEe({BigNumber:Pn,Unit:ei,config:yn}),Iee=y8e({DenseMatrix:ki,lsolve:fee,lup:Dee,matrix:In,slu:vee,typed:lt,usolve:iL}),sRe=UEe({BigNumber:Pn,Unit:ei,config:yn}),lRe=_Se({BigNumber:Pn,Unit:ei,config:yn}),cRe=x8e({add:qi,divide:Ms,factorial:QA,isInteger:wc,isPositive:hy,multiply:vo,typed:lt}),dRe=C8e({factorial:QA,typed:lt}),uRe=CSe({BigNumber:Pn,Unit:ei,config:yn}),hRe=E8e({add:qi,cbrt:uee,divide:Ms,equalScalar:Pi,im:QB,isZero:Vu,multiply:vo,re:JB,sqrt:qu,subtract:Ra,typeOf:see,typed:lt,unaryMinus:Hh}),fRe=A8e({compareNatural:$h,typed:lt}),pRe=I8e({abs:Jl,add:qi,bignumber:nd,divide:Ms,isNegative:Qg,isPositive:hy,larger:tc,map:fy,matrix:In,max:cL,multiply:vo,smaller:ec,subtract:Ra,typed:lt,unaryMinus:Hh}),Nee=O8e({bignumber:nd,addScalar:ms,combinations:K8,divideScalar:xa,factorial:QA,isInteger:wc,isNegative:Qg,larger:tc,multiplyScalar:Oa,number:qp,pow:qd,subtractScalar:zd,typed:lt}),mRe=F8e({Unit:ei,typed:lt}),gRe=B8e({addScalar:ms,isInteger:wc,isNegative:Qg,stirlingS2:Nee,typed:lt}),Oee=j8e({abs:Jl,add:qi,addScalar:ms,atan:ree,bignumber:nd,column:Aee,complex:Z8,config:yn,cos:KB,diag:hee,divideScalar:xa,dot:tN,equal:Vd,flatten:ZA,im:QB,inv:gy,larger:tc,matrix:In,matrixFromColumns:nL,multiply:vo,multiplyScalar:Oa,number:qp,qr:rL,re:JB,reshape:cee,sin:J8,size:Js,smaller:ec,sqrt:qu,subtract:Ra,typed:lt,usolve:iL,usolveAll:yee}),bRe=YEe({BigNumber:Pn,Unit:ei,config:yn}),vRe=hSe({BigNumber:Pn,Unit:ei,config:yn}),yRe=H8e({divide:Ms,dotDivide:KA,isNumeric:py,log:aL,map:fy,matrix:In,multiply:vo,sum:sL,typed:lt}),Ree=_Y({add:qi,divide:Ms,typed:lt}),_Re=pSe({BigNumber:Pn,Unit:ei,config:yn}),xRe=OEe({BigNumber:Pn,Unit:ei,config:yn}),wRe=wY({bignumber:nd,add:qi,compare:my,divide:Ms,isInteger:wc,larger:tc,multiply:vo,partitionSelect:nN,smaller:ec,smallerEq:Pw,subtract:Ra,typed:lt}),uL=kY({add:qi,apply:eL,divide:Ms,isNaN:XA,multiply:vo,subtract:Ra,typed:lt}),CRe=GEe({BigNumber:Pn,Unit:ei,config:yn}),Fee=W8e({add:qi,compare:my,divide:Ms,partitionSelect:nN,typed:lt}),kRe=X8e({add:qi,divide:Ms,matrix:In,mean:Ree,multiply:vo,pow:qd,sqrt:qu,subtract:Ra,sum:sL,typed:lt}),ERe=K8e({Complex:Fo,add:qi,divide:Ms,matrix:In,multiply:vo,typed:lt}),SRe=Q8e({abs:Jl,map:fy,median:Fee,subtract:Ra,typed:lt}),ARe=AY({map:fy,sqrt:qu,typed:lt,variance:uL}),DRe=eNe({BigNumber:Pn,Complex:Fo,add:qi,config:yn,divide:Ms,equal:Vd,factorial:QA,gamma:dL,isNegative:Qg,multiply:vo,pi:XB,pow:qd,sin:J8,smallerEq:Pw,subtract:Ra,typed:lt}),hL=nNe({abs:Jl,add:qi,conj:uy,ctranspose:tL,eigs:Oee,equalScalar:Pi,larger:tc,matrix:In,multiply:vo,pow:qd,smaller:ec,sqrt:qu,typed:lt}),Pee=iNe({BigNumber:Pn,DenseMatrix:ki,SparseMatrix:jp,addScalar:ms,config:yn,cos:KB,matrix:In,multiplyScalar:Oa,norm:hL,sin:J8,typed:lt,unaryMinus:Hh}),MRe=kSe({BigNumber:Pn,Unit:ei,config:yn}),Bee=aNe({identity:Jg,matrix:In,multiply:vo,norm:hL,qr:rL,subtract:Ra,typed:lt}),TRe=lNe({multiply:vo,rotationMatrix:Pee,typed:lt}),Lee=dNe({abs:Jl,add:qi,concat:Qi,identity:Jg,index:Cee,lusolve:Iee,matrix:In,matrixFromColumns:nL,multiply:vo,range:Bw,schur:Bee,subset:rd,subtract:Ra,transpose:YA,typed:lt}),IRe=hNe({matrix:In,multiply:vo,sylvester:Lee,transpose:YA,typed:lt}),Lw={},zw={},zee={},xl=yve({mathWithTransform:zw}),Vw=jve({Node:xl}),Up=Kve({Node:xl}),by=Qve({Node:xl}),Vee=e0e({Node:xl}),qw=n0e({Node:xl}),qee=i0e({Node:xl,ResultSet:tee}),jee=a0e({Node:xl}),eb=l0e({Node:xl}),Uee=d0e({Node:xl}),NRe=f0e({classes:zee}),fL=g0e({math:Lw,typed:lt}),Hee=v0e({Node:xl,typed:lt}),ORe=_0e({Chain:fL,typed:lt}),jw=w0e({Node:xl,size:Js}),Uw=k0e({Node:xl,subset:rd}),$ee=A0e({matrix:In,Node:xl,subset:rd}),tb=T0e({Unit:ei,Node:xl,math:Lw}),nb=N0e({Node:xl,SymbolNode:tb,math:Lw}),Wh=R0e({AccessorNode:Uw,ArrayNode:qw,AssignmentNode:$ee,BlockNode:qee,ConditionalNode:jee,ConstantNode:eb,FunctionAssignmentNode:Hee,FunctionNode:nb,IndexNode:jw,ObjectNode:Vw,OperatorNode:Up,ParenthesisNode:by,RangeNode:Uee,RelationalNode:Vee,SymbolNode:tb,config:yn,numeric:ju,typed:lt}),Wee=B0e({ConstantNode:eb,FunctionNode:nb,OperatorNode:Up,ParenthesisNode:by,parse:Wh,typed:lt}),pL=j0e({bignumber:nd,fraction:Rw,AccessorNode:Uw,ArrayNode:qw,ConstantNode:eb,FunctionNode:nb,IndexNode:jw,ObjectNode:Vw,OperatorNode:Up,SymbolNode:tb,config:yn,mathWithTransform:zw,matrix:In,typed:lt}),RRe=H0e({parse:Wh,typed:lt}),mL=W0e({AccessorNode:Uw,ArrayNode:qw,ConstantNode:eb,FunctionNode:nb,IndexNode:jw,ObjectNode:Vw,OperatorNode:Up,ParenthesisNode:by,SymbolNode:tb,add:qi,divide:Ms,equal:Vd,isZero:Vu,multiply:vo,parse:Wh,pow:qd,subtract:Ra,typed:lt}),JA=X0e({parse:Wh,typed:lt}),Gee=Z0e({evaluate:JA}),Xee=eye({evaluate:JA}),rN=rye({bignumber:nd,fraction:Rw,AccessorNode:Uw,ArrayNode:qw,ConstantNode:eb,FunctionNode:nb,IndexNode:jw,ObjectNode:Vw,OperatorNode:Up,ParenthesisNode:by,SymbolNode:tb,add:qi,config:yn,divide:Ms,equal:Vd,isZero:Vu,mathWithTransform:zw,matrix:In,multiply:vo,parse:Wh,pow:qd,resolve:Wee,simplifyConstant:pL,simplifyCore:mL,subtract:Ra,typed:lt}),FRe=oye({OperatorNode:Up,parse:Wh,simplify:rN,typed:lt}),PRe=sye({parse:Wh,typed:lt}),BRe=cye({Parser:Xee,typed:lt}),LRe=uye({bignumber:nd,fraction:Rw,AccessorNode:Uw,ArrayNode:qw,ConstantNode:eb,FunctionNode:nb,IndexNode:jw,ObjectNode:Vw,OperatorNode:Up,ParenthesisNode:by,SymbolNode:tb,add:qi,config:yn,divide:Ms,equal:Vd,isZero:Vu,mathWithTransform:zw,matrix:In,multiply:vo,parse:Wh,pow:qd,simplify:rN,simplifyConstant:pL,simplifyCore:mL,subtract:Ra,typed:lt}),zRe=fye({ConstantNode:eb,FunctionNode:nb,OperatorNode:Up,ParenthesisNode:by,SymbolNode:tb,config:yn,equal:Vd,isZero:Vu,numeric:ju,parse:Wh,simplify:rN,typed:lt}),VRe=qwe({Help:Gee,mathWithTransform:zw,typed:lt});us(Lw,{e:JJ,false:fNe,fineStructure:pNe,i:eee,Infinity:mNe,LN10:gNe,LOG10E:bNe,NaN:vNe,null:yNe,phi:_Ne,SQRT1_2:wNe,sackurTetrode:CNe,tau:nee,true:kNe,E:JJ,version:ENe,efimovFactor:SNe,LN2:ANe,pi:XB,replacer:DNe,reviver:NRe,SQRT2:MNe,typed:lt,unaryPlus:YB,PI:XB,weakMixingAngle:TNe,abs:Jl,acos:INe,acot:NNe,acsc:ONe,addScalar:ms,arg:RNe,asech:FNe,asinh:PNe,atan:ree,atanh:BNe,bignumber:nd,bitNot:LNe,boolean:zNe,clone:VNe,combinations:K8,complex:Z8,conj:uy,cos:KB,cot:qNe,csc:jNe,cube:UNe,equalScalar:Pi,erf:HNe,exp:iee,expm1:$Ne,filter:WNe,forEach:GNe,format:GA,getMatrixDataType:ZB,hex:XNe,im:QB,isInteger:wc,isNegative:Qg,isPositive:hy,isZero:Vu,LOG2E:YNe,lgamma:KNe,log10:ZNe,log2:oee,map:fy,multiplyScalar:Oa,not:Q8,number:qp,oct:QNe,pickRandom:JNe,print:e6e,random:t6e,re:JB,sec:n6e,sign:aee,sin:J8,splitUnit:r6e,square:i6e,string:o6e,subtractScalar:zd,tan:a6e,typeOf:see,acosh:s6e,acsch:l6e,apply:eL,asec:c6e,bin:d6e,chain:ORe,combinationsWithRep:u6e,cosh:h6e,csch:f6e,isNaN:XA,isPrime:p6e,randomInt:m6e,sech:g6e,sinh:b6e,sparse:v6e,sqrt:qu,tanh:y6e,unaryMinus:Hh,acoth:_6e,coth:x6e,fraction:Rw,isNumeric:py,matrix:In,matrixFromFunction:w6e,mode:C6e,numeric:ju,prod:lee,reshape:cee,size:Js,squeeze:k6e,transpose:YA,xgcd:dee,zeros:el,asin:E6e,cbrt:uee,concat:Qi,count:S6e,ctranspose:tL,diag:hee,divideScalar:xa,dotDivide:KA,equal:Vd,flatten:ZA,hasNumericValue:A6e,identity:Jg,kron:D6e,largerEq:eN,leftShift:M6e,lsolve:fee,matrixFromColumns:nL,nthRoot:T6e,ones:I6e,qr:rL,resize:N6e,rightArithShift:O6e,round:Fw,smaller:ec,subtract:Ra,to:R6e,unequal:F6e,usolve:iL,xor:P6e,add:qi,atan2:B6e,bitAnd:L6e,bitOr:z6e,bitXor:V6e,catalan:q6e,compare:my,compareText:pee,cumsum:j6e,deepEqual:oL,diff:U6e,distance:H6e,dot:tN,equalText:$6e,floor:mee,gcd:W6e,hypot:G6e,larger:tc,log:aL,lsolveAll:X6e,matrixFromRows:Y6e,min:K6e,mod:bee,multiply:vo,nthRoots:Z6e,or:Q6e,partitionSelect:nN,rightLogShift:J6e,slu:vee,subset:rd,sum:sL,trace:eOe,usolveAll:yee,zpk2tf:tOe,ceil:lL,compareNatural:$h,composition:nOe,cross:rOe,det:_ee,dotMultiply:iOe,fix:wee,index:Cee,intersect:oOe,invmod:aOe,lcm:sOe,log1p:lOe,max:cL,setCartesian:cOe,setDistinct:dOe,setIsSubset:uOe,setPowerset:hOe,smallerEq:Pw,sort:fOe,and:pOe,range:Bw,row:mOe,setDifference:kee,setMultiplicity:gOe,setSymDifference:Eee,column:Aee,inv:gy,lup:Dee,pinv:bOe,pow:qd,setIntersect:Mee,setUnion:vOe,sqrtm:yOe,vacuumImpedance:_Oe,wienDisplacement:xOe,atomicMass:wOe,bohrMagneton:COe,boltzmann:kOe,conductanceQuantum:EOe,coulomb:SOe,deuteronMass:AOe,dotPow:DOe,electricConstant:MOe,elementaryCharge:TOe,expm:IOe,faraday:NOe,fft:Tee,gamma:dL,gravitationConstant:OOe,hartreeEnergy:ROe,ifft:FOe,klitzing:POe,loschmidt:BOe,magneticConstant:LOe,molarMass:zOe,molarPlanckConstant:VOe,neutronMass:qOe,nuclearMagneton:jOe,planckCharge:UOe,planckLength:HOe,planckTemperature:$Oe,protonMass:WOe,quantumOfCirculation:GOe,reducedPlanckConstant:XOe,rydberg:YOe,secondRadiation:KOe,speedOfLight:ZOe,stefanBoltzmann:QOe,thomsonCrossSection:JOe,avogadro:eRe,bohrRadius:tRe,createUnit:nRe,divide:Ms,electronMass:rRe,factorial:QA,firstRadiation:iRe,gravity:oRe,inverseConductanceQuantum:aRe,lusolve:Iee,magneticFluxQuantum:sRe,molarMassC12:lRe,multinomial:cRe,parse:Wh,permutations:dRe,planckMass:uRe,polynomialRoot:hRe,resolve:Wee,setSize:fRe,simplifyConstant:pL,solveODE:pRe,stirlingS2:Nee,unit:mRe,bellNumbers:gRe,compile:RRe,eigs:Oee,fermiCoupling:bRe,gasConstant:vRe,kldivergence:yRe,mean:Ree,molarVolume:_Re,planckConstant:xRe,quantileSeq:wRe,simplifyCore:mL,variance:uL,classicalElectronRadius:CRe,evaluate:JA,median:Fee,simplify:rN,symbolicEqual:FRe,corr:kRe,freqz:ERe,leafCount:PRe,mad:SRe,parser:BRe,rationalize:LRe,std:ARe,zeta:DRe,derivative:zRe,norm:hL,rotationMatrix:Pee,help:VRe,planckTime:MRe,schur:Bee,rotate:TRe,sylvester:Lee,lyap:IRe,config:yn}),us(zw,Lw,{filter:Hwe({typed:lt}),forEach:Gwe({typed:lt}),map:Kwe({typed:lt}),apply:t2e({isInteger:wc,typed:lt}),or:w2e({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),and:N2e({add:qi,concat:Qi,equalScalar:Pi,matrix:In,not:Q8,typed:lt,zeros:el}),concat:P2e({isInteger:wc,matrix:In,typed:lt}),max:V2e({config:yn,larger:tc,numeric:ju,typed:lt}),print:U2e({add:qi,matrix:In,typed:lt,zeros:el}),bitAnd:J2e({add:qi,concat:Qi,equalScalar:Pi,matrix:In,not:Q8,typed:lt,zeros:el}),diff:nCe({bignumber:nd,matrix:In,number:qp,subtract:Ra,typed:lt}),min:aCe({config:yn,numeric:ju,smaller:ec,typed:lt}),subset:fCe({add:qi,matrix:In,typed:lt,zeros:el}),bitOr:CCe({DenseMatrix:ki,concat:Qi,equalScalar:Pi,matrix:In,typed:lt}),cumsum:SCe({add:qi,typed:lt,unaryPlus:YB}),index:MCe({Index:_l,getMatrixDataType:ZB}),sum:NCe({add:qi,config:yn,numeric:ju,typed:lt}),range:PCe({bignumber:nd,matrix:In,add:qi,config:yn,isPositive:hy,larger:tc,largerEq:eN,smaller:ec,smallerEq:Pw,typed:lt}),row:VCe({Index:_l,matrix:In,range:Bw,typed:lt}),column:HCe({Index:_l,matrix:In,range:Bw,typed:lt}),mean:XCe({add:qi,divide:Ms,typed:lt}),quantileSeq:QCe({add:qi,bignumber:nd,compare:my,divide:Ms,isInteger:wc,larger:tc,multiply:vo,partitionSelect:nN,smaller:ec,smallerEq:Pw,subtract:Ra,typed:lt}),variance:tke({add:qi,apply:eL,divide:Ms,isNaN:XA,multiply:vo,subtract:Ra,typed:lt}),std:oke({map:fy,sqrt:qu,typed:lt,variance:uL})}),us(zee,{BigNumber:Pn,Complex:Fo,Fraction:dy,Matrix:Y8,Node:xl,ObjectNode:Vw,OperatorNode:Up,ParenthesisNode:by,Range:xNe,RelationalNode:Vee,ResultSet:tee,ArrayNode:qw,BlockNode:qee,ConditionalNode:jee,ConstantNode:eb,DenseMatrix:ki,RangeNode:Uee,Chain:fL,FunctionAssignmentNode:Hee,SparseMatrix:jp,IndexNode:jw,ImmutableDenseMatrix:gee,Index:_l,AccessorNode:Uw,AssignmentNode:$ee,FibonacciHeap:xee,Spa:See,Unit:ei,SymbolNode:tb,FunctionNode:nb,Help:Gee,Parser:Xee}),fL.createProxy(Lw);var Yee=function(n,e,t){if(t||2===arguments.length)for(var a,r=0,i=e.length;r"u"&&typeof navigator<"u"&&"ReactNative"===navigator.product?new $Re:typeof navigator<"u"?ete(navigator.userAgent):function KRe(){var n=typeof process<"u"&&process.version;return n?new jRe(process.version.slice(1)):null}()}function Jee(n){return""!==n&&XRe.reduce(function(e,t){var r=t[0],i=t[1];if(e)return e;var a=i.exec(n);return!!a&&[r,a]},!1)}function ete(n){var e=Jee(n);if(!e)return null;var t=e[0],r=e[1];if("searchbot"===t)return new HRe;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length":function(n,e){return n>e},">=":function(n,e){return n>=e}};function nte(n){return"boolean"==typeof n}function rte(n){return"number"==typeof n}function ite(){return"ie"==Qee().name}let wl=class{constructor(e){this.dataService=e,this.onSelectionChange=new cn,this.viewModels=[],this.pinnedCell="",this.nonce=0}selectionChanged(){this.onSelectionChange.emit()}newViewModel(e,t){let r=new gG(e,"vm"+this.getNonce(),t,this.dataService);return this.viewModels.push(r),r}getNonce(){return this.nonce++}destroyViewModel(e){for(let t=0;t{p.techniqueVMs.forEach(function(y,S){h.add(S)})});try{let p=JA(r.scoreExpression,{});if(console.debug("score expression evaluated to single result to be applied to all techniques"),nte(p))p=p?"1":"0";else if(!rte(p))throw Error("math result ( "+p+" ) is not a number");i.initializeScoresTo=String(p),l=p,d=p}catch{h.forEach(y=>{let S=new ry(y),R={},B=0;if(e.forEach(function(q,V){let ee;if(q.hasTechniqueVM_id(y)){let ne=q.getTechniqueVM_id(y).score;""==ne||isNaN(Number(ne))?(ee=0,B++):ee=Number(ne)}else ee=0,B++;R[V]=ee}),B{let p=i.hasTechniqueVM_id(h.technique_tactic_union_id)?i.getTechniqueVM_id(h.technique_tactic_union_id):new ry(h.technique_tactic_union_id);p[d]=h[d],i.techniqueVMs.set(h.technique_tactic_union_id,p)})}return r.commentVM&&a(r.commentVM,"comment"),r.linkVM&&a(r.linkVM,"links"),r.metadataVM&&a(r.metadataVM,"metadata"),r.coloringVM&&a(r.coloringVM,"color"),r.enabledVM&&a(r.enabledVM,"enabled"),r.filterVM&&i.filters.deserialize(JSON.parse(r.filterVM.filters.serialize())),r.legendVM&&(i.legendItems=JSON.parse(JSON.stringify(r.legendVM.legendItems))),r.gradientVM&&(i.gradient=new nB,i.gradient.deserialize(r.gradientVM.gradient.serialize())),i.name=t,this.viewModels.push(i),i.updateGradient(),i}static#e=this.ctorParameters=()=>[{type:Gl}];static#t=this.propDecorators={onSelectionChange:[{type:rg}]}};wl=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([Cr({providedIn:"root"})],wl);let iN=class{constructor(e,t,r,i){this.dialogRef=e,this.dataService=t,this.viewModelsService=r,this.data=i,this.navVersion=W5}ngOnInit(){this.currVersion=this.data.currVersion,this.vmVersion=this.data.vmVersion,this.layerName=this.data.layerName}upgradeVersion(e){this.dialogRef.close({upgrade:e})}static#e=this.ctorParameters=()=>[{type:uA},{type:Gl},{type:wl},{type:void 0,decorators:[{type:Zu,args:[hA]}]}]};iN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-version-upgrade",template:'
\n

Upgrade layer version?

\n \n

\n The layer "{{ layerName }}" uses an outdated version of ATT&CK (v{{ vmVersion }}). Do you want to open the workflow to upgrade this\n layer to ATT&CK v{{ currVersion }}?\n \n This version is not supported by Navigator v{{ navVersion }} and must be upgraded for use.\n \n

\n
\n \n \n \n \n
\n',providers:[wl],styles:[Hbe()]})],iN);var nFe=mt(5002),rFe=mt.n(nFe);const ote=ze(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function oFe(n=aFe){return Hr((e,t)=>{let r=!1;e.subscribe(Yn(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(n())))})}function aFe(){return new ote}function sFe(n,e){const t=arguments.length>=2;return r=>r.pipe(n?Io((i,a)=>n(i,a,r)):Oi,ds(1),t?function iFe(n){return Hr((e,t)=>{let r=!1;e.subscribe(Yn(t,i=>{r=!0,t.next(i)},()=>{r||t.next(n),t.complete()}))})}(e):oFe(()=>new ote))}function gL(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let vy={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function ate(n){vy=n}const ste=/[&<>"']/,lFe=new RegExp(ste.source,"g"),lte=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,cFe=new RegExp(lte.source,"g"),dFe={"&":"&","<":"<",">":">",'"':""","'":"'"},cte=n=>dFe[n];function id(n,e){if(e){if(ste.test(n))return n.replace(lFe,cte)}else if(lte.test(n))return n.replace(cFe,cte);return n}const uFe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function hFe(n){return n.replace(uFe,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const fFe=/(^|[^\[])\^/g;function jo(n,e){let t="string"==typeof n?n:n.source;e=e||"";const r={replace:(i,a)=>{let l="string"==typeof a?a:a.source;return l=l.replace(fFe,"$1"),t=t.replace(i,l),r},getRegex:()=>new RegExp(t,e)};return r}function dte(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const eD={exec:()=>null};function ute(n,e){const r=n.replace(/\|/g,(a,l,d)=>{let h=!1,p=l;for(;--p>=0&&"\\"===d[p];)h=!h;return h?"|":" |"}).split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:oN(r,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],i=function mFe(n,e){const t=n.match(/^(\s+)(?:```)/);if(null===t)return e;const r=t[1];return e.split("\n").map(i=>{const a=i.match(/^\s+/);if(null===a)return i;const[l]=a;return l.length>=r.length?i.slice(r.length):i}).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const i=oN(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");r=oN(r.replace(/^ *>[ \t]?/gm,""),"\n");const i=this.lexer.state.top;this.lexer.state.top=!0;const a=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:a,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const i=r.length>1,a={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=new RegExp(`^( {0,3}${r})((?:[\t ][^\\n]*)?(?:\\n|$))`);let d="",h="",p=!1;for(;e;){let y=!1;if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let S=t[2].split("\n",1)[0].replace(/^\t+/,ne=>" ".repeat(3*ne.length)),R=e.split("\n",1)[0],B=0;this.options.pedantic?(B=2,h=S.trimStart()):(B=t[2].search(/[^ ]/),B=B>4?1:B,h=S.slice(B),B+=t[1].length);let q=!1;if(!S&&/^ *$/.test(R)&&(d+=R+"\n",e=e.substring(R.length+1),y=!0),!y){const ne=new RegExp(`^ {0,${Math.min(3,B-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),he=new RegExp(`^ {0,${Math.min(3,B-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),re=new RegExp(`^ {0,${Math.min(3,B-1)}}(?:\`\`\`|~~~)`),ce=new RegExp(`^ {0,${Math.min(3,B-1)}}#`);for(;e;){const pe=e.split("\n",1)[0];if(R=pe,this.options.pedantic&&(R=R.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),re.test(R)||ce.test(R)||ne.test(R)||he.test(e))break;if(R.search(/[^ ]/)>=B||!R.trim())h+="\n"+R.slice(B);else{if(q||S.search(/[^ ]/)>=4||re.test(S)||ce.test(S)||he.test(S))break;h+="\n"+R}!q&&!R.trim()&&(q=!0),d+=pe+"\n",e=e.substring(pe.length+1),S=R.slice(B)}}a.loose||(p?a.loose=!0:/\n *\n *$/.test(d)&&(p=!0));let ee,V=null;this.options.gfm&&(V=/^\[[ xX]\] /.exec(h),V&&(ee="[ ] "!==V[0],h=h.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:d,task:!!V,checked:ee,loose:!1,text:h,tokens:[]}),a.raw+=d}a.items[a.items.length-1].raw=d.trimEnd(),a.items[a.items.length-1].text=h.trimEnd(),a.raw=a.raw.trimEnd();for(let y=0;y"space"===B.type),R=S.length>0&&S.some(B=>/\n.*\n/.test(B.raw));a.loose=R}if(a.loose)for(let y=0;y$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:a}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const r=ute(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),a=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const d of i)/^ *-+: *$/.test(d)?l.align.push("right"):/^ *:-+: *$/.test(d)?l.align.push("center"):/^ *:-+ *$/.test(d)?l.align.push("left"):l.align.push(null);for(const d of r)l.header.push({text:d,tokens:this.lexer.inline(d)});for(const d of a)l.rows.push(ute(d,l.header.length).map(h=>({text:h,tokens:this.lexer.inline(h)})));return l}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:id(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const l=oN(r.slice(0,-1),"\\");if((r.length-l.length)%2==0)return}else{const l=function pFe(n,e){if(-1===n.indexOf(e[1]))return-1;let t=0;for(let r=0;r-1){const h=(0===t[0].indexOf("!")?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,h).trim(),t[3]=""}}let i=t[2],a="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(r)?i.slice(1):i.slice(1,-1)),hte(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const a=t[(r[2]||r[1]).replace(/\s+/g," ").toLowerCase()];if(!a){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return hte(r,a,r[0],this.lexer)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))&&(!i[1]&&!i[2]||!r||this.rules.inline.punctuation.exec(r))){const l=[...i[0]].length-1;let d,h,p=l,y=0;const S="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(S.lastIndex=0,t=t.slice(-1*e.length+l);null!=(i=S.exec(t));){if(d=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!d)continue;if(h=[...d].length,i[3]||i[4]){p+=h;continue}if((i[5]||i[6])&&l%3&&!((l+h)%3)){y+=h;continue}if(p-=h,p>0)continue;h=Math.min(h,h+p+y);const R=[...i[0]][0].length,B=e.slice(0,l+i.index+R+h);if(Math.min(l,h)%2){const V=B.slice(1,-1);return{type:"em",raw:B,text:V,tokens:this.lexer.inlineTokens(V)}}const q=B.slice(2,-2);return{type:"strong",raw:B,text:q,tokens:this.lexer.inlineTokens(q)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const i=/[^ ]/.test(r),a=/^ /.test(r)&&/ $/.test(r);return i&&a&&(r=r.substring(1,r.length-1)),r=id(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,i;return"@"===t[2]?(r=id(t[1]),i="mailto:"+r):(r=id(t[1]),i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,i;if("@"===t[2])r=id(t[0]),i="mailto:"+r;else{let a;do{a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(a!==t[0]);r=id(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return r=this.lexer.state.inRawBlock?t[0]:id(t[0]),{type:"text",raw:t[0],text:r}}}}const tD=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fte=/(?:[*+-]|\d{1,9}[.)])/,pte=jo(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,fte).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),bL=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vL=/(?!\s*\])(?:\\.|[^\[\]\\])+/,xFe=jo(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",vL).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wFe=jo(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fte).getRegex(),sN="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yL=/|$))/,CFe=jo("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",yL).replace("tag",sN).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mte=jo(bL).replace("hr",tD).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sN).getRegex(),_L={blockquote:jo(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mte).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:xFe,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:tD,html:CFe,lheading:pte,list:wFe,newline:/^(?: *(?:\n|$))+/,paragraph:mte,table:eD,text:/^[^\n]+/},gte=jo("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tD).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sN).getRegex(),kFe={..._L,table:gte,paragraph:jo(bL).replace("hr",tD).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gte).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",sN).getRegex()},EFe={..._L,html:jo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",yL).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:eD,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:jo(bL).replace("hr",tD).replace("heading"," *#{1,6} *[^\n]").replace("lheading",pte).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},bte=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vte=/^( {2,}|\\)\n(?!\s*$)/,nD="\\p{P}\\p{S}",DFe=jo(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,nD).getRegex(),TFe=jo(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,nD).getRegex(),IFe=jo("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,nD).getRegex(),NFe=jo("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,nD).getRegex(),OFe=jo(/\\([punct])/,"gu").replace(/punct/g,nD).getRegex(),RFe=jo(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),FFe=jo(yL).replace("(?:--\x3e|$)","--\x3e").getRegex(),PFe=jo("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",FFe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),lN=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,BFe=jo(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",lN).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),yte=jo(/^!?\[(label)\]\[(ref)\]/).replace("label",lN).replace("ref",vL).getRegex(),_te=jo(/^!?\[(ref)\](?:\[\])?/).replace("ref",vL).getRegex(),xL={_backpedal:eD,anyPunctuation:OFe,autolink:RFe,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:vte,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:eD,emStrongLDelim:TFe,emStrongRDelimAst:IFe,emStrongRDelimUnd:NFe,escape:bte,link:BFe,nolink:_te,punctuation:DFe,reflink:yte,reflinkSearch:jo("reflink|nolink(?!\\()","g").replace("reflink",yte).replace("nolink",_te).getRegex(),tag:PFe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\h+" ".repeat(p.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(d=>!!(r=d.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?t.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),i=t[t.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let d=1/0;const h=e.slice(1);let p;this.options.extensions.startBlock.forEach(y=>{p=y.call({lexer:this},h),"number"==typeof p&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(a=e.substring(0,d+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){i=t[t.length-1],l&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r),l=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(r);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,i,a,d,h,p,l=e;if(this.tokens.links){const y=Object.keys(this.tokens.links);if(y.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(l));)y.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,d.index)+"["+"a".repeat(d[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(d=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,d.index)+"["+"a".repeat(d[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(d=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,d.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(h||(p=""),h=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(y=>!!(r=y.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),i=t[t.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,l,p)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let y=1/0;const S=e.slice(1);let R;this.options.extensions.startInline.forEach(B=>{R=B.call({lexer:this},S),"number"==typeof R&&R>=0&&(y=Math.min(y,R))}),y<1/0&&y>=0&&(a=e.substring(0,y+1))}if(r=this.tokenizer.inlineText(a)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(p=r.raw.slice(-1)),h=!0,i=t[t.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):t.push(r);continue}if(e){const y="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(y);break}throw new Error(y)}}return t}}class yy{options;constructor(e){this.options=e||vy}code(e,t,r){const i=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",i?'
'+(r?e:id(e,!0))+"
\n":"
"+(r?e:id(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e,t){return e}heading(e,t,r){return`${e}\n`}hr(){return"
\n"}list(e,t,r){const i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"\n"}listitem(e,t,r){return`
  • ${e}
  • \n`}checkbox(e){return"'}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,t,r){const i=dte(e);if(null===i)return r;let a='
    ",a}image(e,t,r){const i=dte(e);if(null===i)return r;let a=`${r}0&&"paragraph"===R.tokens[0].type?(R.tokens[0].text=ee+" "+R.tokens[0].text,R.tokens[0].tokens&&R.tokens[0].tokens.length>0&&"text"===R.tokens[0].tokens[0].type&&(R.tokens[0].tokens[0].text=ee+" "+R.tokens[0].tokens[0].text)):R.tokens.unshift({type:"text",text:ee+" "}):V+=ee+" "}V+=this.parse(R.tokens,p),y+=this.renderer.listitem(V,q,!!B)}r+=this.renderer.list(y,d,h);continue}case"html":{const l=a;r+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=a;r+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=a,d=l.tokens?this.parseInline(l.tokens):l.text;for(;i+1{const d=a[l].flat(1/0);r=r.concat(this.walkTokens(d,t))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const l=t.renderers[a.name];t.renderers[a.name]=l?function(...d){let h=a.renderer.apply(this,d);return!1===h&&(h=l.apply(this,d)),h}:a.renderer}if("tokenizer"in a){if(!a.level||"block"!==a.level&&"inline"!==a.level)throw new Error("extension level must be 'block' or 'inline'");const l=t[a.level];l?l.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&("block"===a.level?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:"inline"===a.level&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),i.extensions=t),r.renderer){const a=this.defaults.renderer||new yy(this.defaults);for(const l in r.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if("options"===l)continue;const d=l,h=r.renderer[d],p=a[d];a[d]=(...y)=>{let S=h.apply(a,y);return!1===S&&(S=p.apply(a,y)),S||""}}i.renderer=a}if(r.tokenizer){const a=this.defaults.tokenizer||new aN(this.defaults);for(const l in r.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const d=l,h=r.tokenizer[d],p=a[d];a[d]=(...y)=>{let S=h.apply(a,y);return!1===S&&(S=p.apply(a,y)),S}}i.tokenizer=a}if(r.hooks){const a=this.defaults.hooks||new dN;for(const l in r.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if("options"===l)continue;const d=l,h=r.hooks[d],p=a[d];dN.passThroughHooks.has(l)?a[d]=y=>{if(this.defaults.async)return Promise.resolve(h.call(a,y)).then(R=>p.call(a,R));const S=h.call(a,y);return p.call(a,S)}:a[d]=(...y)=>{let S=h.apply(a,y);return!1===S&&(S=p.apply(a,y)),S}}i.hooks=a}if(r.walkTokens){const a=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(d){let h=[];return h.push(l.call(this,d)),a&&(h=h.concat(a.call(this,d))),h}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Gh.lex(e,t??this.defaults)}parser(e,t){return Xh.parse(e,t??this.defaults)}#e(e,t){return(r,i)=>{const a={...i},l={...this.defaults,...a};!0===this.defaults.async&&!1===a.async&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const d=this.#t(!!l.silent,!!l.async);if(typeof r>"u"||null===r)return d(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(h=>e(h,l)).then(h=>l.hooks?l.hooks.processAllTokens(h):h).then(h=>l.walkTokens?Promise.all(this.walkTokens(h,l.walkTokens)).then(()=>h):h).then(h=>t(h,l)).then(h=>l.hooks?l.hooks.postprocess(h):h).catch(d);try{l.hooks&&(r=l.hooks.preprocess(r));let h=e(r,l);l.hooks&&(h=l.hooks.processAllTokens(h)),l.walkTokens&&this.walkTokens(h,l.walkTokens);let p=t(h,l);return l.hooks&&(p=l.hooks.postprocess(p)),p}catch(h){return d(h)}}}#t(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const i="

    An error occurred:

    "+id(r.message+"",!0)+"
    ";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}};function yo(n,e){return _y.parse(n,e)}yo.options=yo.setOptions=function(n){return _y.setOptions(n),yo.defaults=_y.defaults,ate(yo.defaults),yo},yo.getDefaults=gL,yo.defaults=vy,yo.use=function(...n){return _y.use(...n),yo.defaults=_y.defaults,ate(yo.defaults),yo},yo.walkTokens=function(n,e){return _y.walkTokens(n,e)},yo.parseInline=_y.parseInline,yo.Parser=Xh,yo.parser=Xh.parse,yo.Renderer=yy,yo.TextRenderer=CL,yo.Lexer=Gh,yo.lexer=Gh.lex,yo.Tokenizer=aN,yo.Hooks=dN,yo.parse=yo;yo.options,yo.setOptions,yo.use,yo.walkTokens,yo.parseInline,Xh.parse,Gh.lex;const jFe=["*"];class xy{constructor(){this._buttonClick$=new ln,this.copied$=this._buttonClick$.pipe(Bh(()=>$l(As(!0),O4(3e3).pipe(N5(!1)))),p0(),E7(1)),this.copiedText$=this.copied$.pipe(Sa(!1),kt(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static#e=this.\u0275fac=function(t){return new(t||xy)};static#t=this.\u0275cmp=Tr({type:xy,selectors:[["markdown-clipboard"]],standalone:!0,features:[qr],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,r){1&t&&(Bt(0,"button",0),uP(1,"async"),Fn("click",function(){return r.onCopyToClipboardClick()}),xi(2),uP(3,"async"),qt()),2&t&&(Jn("copied",hP(1,3,r.copied$)),Gt(2),Xa(hP(3,5,r.copiedText$)))},dependencies:[sg],encapsulation:2,changeDetection:0})}const $Fe=new pn("CLIPBOARD_OPTIONS");class Hw{transform(e,t){return null==e&&(e=""),null==t&&(t=""),"string"!=typeof e?(console.error(`LanguagePipe has been invoked with an invalid value type [${typeof e}]`),e):"string"!=typeof t?(console.error(`LanguagePipe has been invoked with an invalid parameter [${typeof t}]`),e):"```"+t+"\n"+e+"\n```"}static#e=this.\u0275fac=function(t){return new(t||Hw)};static#t=this.\u0275pipe=Fa({name:"language",type:Hw,pure:!0,standalone:!0})}var uN;!function(n){n.CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers"}(uN||(uN={}));const xte=new pn("MARKED_EXTENSIONS"),WFe=new pn("MARKED_OPTIONS"),wte=new pn("SECURITY_CONTEXT");class Hp{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,t,r,i,a,l,d){this.clipboardOptions=e,this.extensions=t,this.platform=i,this.securityContext=a,this.http=l,this.sanitizer=d,this.DEFAULT_MARKED_OPTIONS={renderer:new yy},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ln,this.reload$=this._reload$.asObservable(),this.options=r}parse(e,t=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:i,emoji:a,mermaid:l,disableSanitizer:d}=t,h={...this.options,...t.markedOptions},p=h.renderer||this.renderer||new yy;this.extensions&&(this.renderer=this.extendsRendererForExtensions(p)),l&&(this.renderer=this.extendsRendererForMermaid(p));const y=this.trimIndentation(e),S=r?this.decodeHtml(y):y,R=a?this.parseEmoji(S):S,B=this.parseMarked(R,h,i);return(d?B:this.sanitizer.sanitize(this.securityContext,B))||""}render(e,t=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:i,clipboardOptions:a,katex:l,katexOptions:d,mermaid:h,mermaidOptions:p}=t;l&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...d}),h&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...p}),i&&this.renderClipboard(e,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...a}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(kt(t=>this.handleExtension(e,t)))}highlight(e){if(!lp(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!lp(this.platform))return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}extendsRendererForExtensions(e){const t=e;return!0===t.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&yo.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForMermaid(e){const t=e;if(!0===t.\u0275NgxMarkdownRendererExtendedForMermaid)return e;const r=e.code;return e.code=function(i,a,l){return"mermaid"===a?`
    ${i}
    `:r.call(this,i,a,l)},t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,t){const r=e.lastIndexOf("://"),i=r>-1?e.substring(r+4):e,a=i.lastIndexOf("/"),l=a>-1?i.substring(a+1).split("?")[0]:"",d=l.lastIndexOf("."),h=d>-1?l.substring(d+1):"";return h&&"md"!==h?"```"+h+"\n"+t+"\n```":t}parseMarked(e,t,r=!1){if(t.renderer){const i={...t.renderer};delete i.\u0275NgxMarkdownRendererExtendedForExtensions,delete i.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,yo.use({renderer:i})}return r?yo.parseInline(e,t):yo.parse(e,t)}parseEmoji(e){if(!lp(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,t){if(lp(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,t)}}renderClipboard(e,t,r){if(!lp(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!t)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:a}=r,l=e.querySelectorAll("pre");for(let d=0;dy.style.opacity="1",h.onmouseout=()=>y.style.opacity="0",i){const B=t.createComponent(i);S=B.hostView,B.changeDetectorRef.markForCheck()}else if(a)S=t.createEmbeddedView(a);else{const B=t.createComponent(xy);S=B.hostView,B.changeDetectorRef.markForCheck()}S.rootNodes.forEach(B=>{B.onmouseover=()=>y.style.opacity="1",y.appendChild(B),R=new ClipboardJS(B,{text:()=>h.innerText})}),S.onDestroy(()=>R.destroy())}}renderMermaid(e,t=this.DEFAULT_MERMAID_OPTIONS){if(!lp(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(t),mermaid.run({nodes:r}))}trimIndentation(e){if(!e)return"";let t;return e.split("\n").map(r=>{let i=t;return r.length>0&&(i=isNaN(i)?r.search(/\S|$/):Math.min(r.search(/\S|$/),i)),isNaN(t)&&(t=i),i?r.substring(i):r}).join("\n")}static#e=this.\u0275fac=function(t){return new(t||Hp)(zt($Fe,8),zt(xte,8),zt(WFe,8),zt(Rl),zt(wte),zt(Tu,8),zt(ku))};static#t=this.\u0275prov=_n({token:Hp,factory:Hp.\u0275fac})}class $w{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,t,r){this.element=e,this.markdownService=t,this.viewContainerRef=r,this.error=new cn,this.load=new cn,this.ready=new cn,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ln}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(jr(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,t=!1){var r=this;return xt(function*(){const i={decodeHtml:t,inline:r.inline,emoji:r.emoji,mermaid:r.mermaid,disableSanitizer:r.disableSanitizer},a={clipboard:r.clipboard,clipboardOptions:{buttonComponent:r.clipboardButtonComponent,buttonTemplate:r.clipboardButtonTemplate},katex:r.katex,katexOptions:r.katexOptions,mermaid:r.mermaid,mermaidOptions:r.mermaidOptions},l=yield r.markdownService.parse(e,i);r.element.nativeElement.innerHTML=l,r.handlePlugins(),r.markdownService.render(r.element.nativeElement,a,r.viewContainerRef),r.ready.emit()})()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,uN.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,uN.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){const r=e.querySelectorAll("pre");for(let i=0;i{const l=t[a];if(l){const d=this.toLispCase(a);r.item(i).setAttribute(d,l.toString())}})}toLispCase(e){const t=e.match(/([A-Z])/g);if(!t)return e;let r=e.toString();for(let i=0,a=t.length;ir.markdownService.render(r.elementRef.nativeElement,t,r.viewContainerRef)),r.domSanitizer.bypassSecurityTrustHtml(i)})()}static#e=this.\u0275fac=function(t){return new(t||Ww)(Ve(ku,16),Ve(jn,16),Ve(Hp,16),Ve(Wo,16),Ve(On,16))};static#t=this.\u0275pipe=Fa({name:"markdown",type:Ww,pure:!0,standalone:!0})}function JFe(n){return[Hp,n?.loader??[],n?.clipboardOptions??[],n?.markedOptions??[],{provide:xte,useValue:n?.markedExtensions??[]},{provide:wte,useValue:n?.sanitize??za.HTML}]}class Gw{static forRoot(e){return{ngModule:Gw,providers:[JFe(e)]}}static forChild(){return{ngModule:Gw}}static#e=this.\u0275fac=function(t){return new(t||Gw)};static#t=this.\u0275mod=$n({type:Gw,imports:[Ea,xy,Hw,$w,Ww],exports:[xy,Hw,$w,Ww]});static#n=this.\u0275inj=Er({imports:[Ea]})}var Cte;!function(n){let e,t,r;!function(i){i.Strict="strict",i.Loose="loose",i.Antiscript="antiscript",i.Sandbox="sandbox"}(e=n.SecurityLevel||(n.SecurityLevel={})),function(i){i.Base="base",i.Forest="forest",i.Dark="dark",i.Default="default",i.Neutral="neutral"}(t=n.Theme||(n.Theme={})),function(i){i[i.Debug=1]="Debug",i[i.Info=2]="Info",i[i.Warn=3]="Warn",i[i.Error=4]="Error",i[i.Fatal=5]="Fatal"}(r=n.LogLevel||(n.LogLevel={}))}(Cte||(Cte={}));var tPe=mt(6002),nPe=mt.n(tPe);let iD=class{get layerFormatLink(){return`./layers/spec/v${TA}/layerformat.md`}};iD=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-layer-information",template:'
    \n \n
    \n \n
    \n
    \n \n \n \n
    ',encapsulation:Ei.None,styles:[nPe()]})],iD);let hN=class{constructor(e,t,r,i){this.dialog=e,this.markdownService=t,this.renderer=r,this.data=i,this.headingAnchors=[]}ngOnInit(){setTimeout(()=>{this.scrollTo("toc")},175);let e=this;this.markdownService.renderer.heading=(t,r)=>{let i=t.match(/()/g)?t.match(/()/g)[0].replace(/(nav-app\/src\/)/g,""):"";const a=(t=t.replace(/()/g,"")).toLowerCase().trim().replace(/[^\w]+/g,"-");return e.headingAnchors.push({level:r,anchor:a,label:t.replace("&","&")}),`${i}${t}`},this.markdownService.renderer.html=t=>t.match(/(nav-app\/src\/)/g)?t.replace(/(nav-app\/src\/)/g,""):t}ngOnDestroy(){this.listenObj&&this.listenObj()}onMarkdownLoad(e){this.markdownElement&&(this.listenObj=this.renderer.listen(this.markdownElement.element.nativeElement,"click",t=>{if(t.target&&"A"===t.target.tagName){const r=t.target,i=r.getAttribute&&r.getAttribute("href");i&&(t.preventDefault(),"#"===i.charAt(0)?this.scrollTo(i.replace("#","")):i.includes("layers/")?this.openLayerDialog():i.match(/(nav-app\/src\/)/g)?window.open(i.replace(/(nav-app\/src\/)/g,"")):window.open(i))}}))}scrollTo(e){let t=document.querySelector("."+e);t&&t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}openLayerDialog(){this.dialog.open(iD,{autoFocus:!1,panelClass:this.data.theme})}static#e=this.ctorParameters=()=>[{type:Iu},{type:Hp},{type:hc},{type:void 0,decorators:[{type:Zu,args:[hA]}]}];static#t=this.propDecorators={markdownElement:[{type:Bm,args:["markdownElement",{static:!1}]}]}};hN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"help",template:'
    ',encapsulation:Ei.None,styles:[rFe()]})],hN);var aPe=mt(338),sPe=mt.n(aPe);class kte{constructor(e,t,r,i,a,l=!1){this.yPosition=e,this.technique=t,this.tactic=r,this.matrix=i,this.viewModel=a,this.showSubtechniques=l}get fill(){if(this.viewModel.hasTechniqueVM(this.technique,this.tactic)){let e=this.viewModel.getTechniqueVM(this.technique,this.tactic);if(!e.enabled)return"white";if(e.color)return e.color;if(this.viewModel.layout.showAggregateScores&&e.aggregateScoreColor)return e.aggregateScoreColor;if(e.score)return e.scoreColor}return null}get textColor(){return this.viewModel.hasTechniqueVM(this.technique,this.tactic)&&!this.viewModel.getTechniqueVM(this.technique,this.tactic).enabled?"#aaaaaa":this.fill?cr.mostReadable(this.fill,["white","black"]):null}get text(){let e=[];return this.viewModel.layout.showID&&e.push(this.technique.attackID),this.viewModel.layout.showName&&e.push(this.technique.name),e.join(": ")}}class lPe{constructor(e,t,r,i){this.techniques=[],this.subtechniques=[],this.tactic=e;let a=r.sortTechniques(r.filterTechniques(e.techniques,e,t),e),l=1;for(let d of a){let h=r.getTechniqueVM(d,e),p=r.filterTechniques(d.subtechniques,e,t),y="all"==i.showSubtechniques||"expanded"==i.showSubtechniques&&h.showSubtechniques;if(this.techniques.push(new kte(l++,d,e,t,r,y)),p.length>0&&y)for(let S of p)this.subtechniques.push(new kte(l++,S,e,t,r,i))}this.height=l}}class cPe{get height(){let e=this.tactics.map(function(t){return t.height});return Math.max(...e)}constructor(e,t,r){this.tactics=[],this.matrix=e;let i=t.filterTactics(e.tactics,e);for(let a of i)this.tactics.push(new lPe(a,e,t,r))}}let fN=class{get isIE(){return ite()}get hasName(){return this.viewModel.name.length>0}get hasDomain(){return this.viewModel.domainVersionID.length>0}get hasDescription(){return this.viewModel.description.length>0}get hasLegendItems(){return this.viewModel.legendItems.length>0}get showName(){return this.config.showAbout&&this.hasName&&this.config.showHeader}get showDomain(){return this.config.showDomain&&this.hasDomain&&this.config.showHeader}get showAggregate(){return this.viewModel.layout.showAggregateScores&&this.config.showHeader}get showDescription(){return this.config.showAbout&&this.hasDescription&&this.config.showHeader}get showFilters(){return this.config.showFilters&&this.config.showHeader}get showGradient(){return this.config.showGradient&&this.hasScores&&this.config.showHeader}get showLegend(){return this.config.showLegend&&this.hasLegendItems}get showLegendContainer(){return this.showLegend||this.showGradient}get showLegendInHeader(){return this.config.legendDocked}constructor(e,t,r,i){this.dialogRef=e,this.configService=t,this.dataService=r,this.data=i,this.config={},this.svgConfigDefaults={width:11,height:8.5,headerHeight:1,unit:"in",orientation:"landscape",size:"letter",fontSize:4,autofitText:!0,maxTextSize:1/0,theme:"light",showSubtechniques:"expanded",font:"sans-serif",tableBorderColor:"#6B7279",showHeader:!0,legendDocked:!0,legendX:0,legendY:0,legendWidth:2,legendHeight:1,showLegend:!0,showGradient:!0,showFilters:!0,showAbout:!0,showDomain:!0,showAggregate:!1},this.currentDropdown=null,this.svgElementID="svgInsert_tmp",this.buildSVGDebounce=!1,this.unitEnum=0,this.themeEnum=0,this.config=this.svgConfigDefaults}ngOnInit(){this.viewModel=this.data.vm,this.svgElementID="svgInsert"+this.viewModel.uid;let e=this,t=e.viewModel.getVisibleTechniquesList();for(let i of t)if(""!=e.viewModel.getTechniqueVM_id(i).score){e.hasScores=!0;break}let r=0;e.hasScores&&r++,e.hasLegendItems&&r++,e.config.legendHeight=.5*r,this.config.legendX=this.config.width-this.config.legendWidth-.1,this.config.legendY=this.config.height-this.config.legendHeight-.1,this.config.showHeader&&(this.config.legendY-=this.config.headerHeight),"light"===this.config.theme?this.config.tableBorderColor="#6B7279":"dark"===this.config.theme&&(this.config.tableBorderColor="#4c4c68"),window.setTimeout(function(){e.buildSVG(e)},0)}buildSVG(e,t=!1){if(e||(e=this),e.buildSVGDebounce&&!t)return;if(!t)return e.buildSVGDebounce=!0,void window.setTimeout(function(){e.buildSVG(e,!0)},500);e.buildSVGDebounce=!1,this.setSize(e,e.config.size,e.config.orientation);let r_top=5,r_right=5,r_bottom=5,r_left=5,i=Math.max(e.toPx(e.config.width,e.config.unit)-(r_right+r_left),10),a=i+r_left+r_right,l=Math.max(e.toPx(e.config.height,e.config.unit)-(r_top+r_bottom),10),d=l+r_top+r_bottom,h=Math.max(e.toPx(e.config.headerHeight,e.config.unit),1);document.getElementById(e.svgElementID).innerHTML="";let y=d3.select("#"+e.svgElementID).append("svg").attr("width",a).attr("height",d).attr("xmlns","http://www.w3.org/2000/svg").attr("id","svg"+e.viewModel.uid).append("g").attr("transform","translate("+r_left+","+r_top+")").style("font-family",e.config.font),S={title:"legend",contents:[]};if(e.hasScores&&e.showGradient&&S.contents.push({label:"gradient",data:e.buildGradient()}),e.showLegend&&S.contents.push({label:"legend",data:e.buildLegend()}),e.config.showHeader){let _e=[];if(e.showName||e.showDescription){let $e={title:"about",contents:[]};e.showName&&$e.contents.push({label:"name",data:this.viewModel.name}),e.showDescription&&$e.contents.push({label:"description",data:this.viewModel.description}),_e.push($e)}let Re={title:"domain",contents:[]};if(e.showDomain){let $e=this.dataService.getDomain(this.viewModel.domainVersionID);Re.contents.push({label:"domain",data:`${$e.name} v${$e.version.number}`})}let Be={title:"platforms",contents:[]};if(e.showFilters){let $e={label:"platforms",data:this.viewModel.filters.platforms.selection.join(", ")};e.showAggregate?(Re.title="domain & platforms",Re.contents.push($e)):Be.contents.push($e)}if(Re.contents.length>0&&_e.push(Re),Be.contents.length>0&&_e.push(Be),e.showAggregate){let $e={title:"aggregate",contents:[]};$e.contents.push({label:"function",data:"showing aggregate scores using the "+this.viewModel.layout.aggregateFunction+" aggregate function"}),this.viewModel.layout.countUnscored&&$e.contents.push({label:"unscored",data:"includes unscored techniques as having a score of 0"}),_e.push($e)}e.showLegendContainer&&e.showLegendInHeader&&_e.push(S);let Ge=y.append("g"),Ye=d3.scaleBand().paddingInner(.05).domain(_e.map($e=>$e.title)).range([0,i]);for(let $e of _e){let Oe=Ge.append("g");_e.length>1&&Oe.attr("transform",`translate(${Ye($e.title)}, 0)`);let Ie=1==_e.length?i:Ye.bandwidth();e.buildHeaderSection(this,Oe,$e,Ie,h)}0==_e.length&&(h=0)}else h=0;let R=y.append("g").attr("transform","translate(0,"+(h+1)+")"),q=e.dataService.getDomain(e.viewModel.domainVersionID).matrices.map(_e=>new cPe(_e,e.viewModel,e.config)),V=[];for(let _e of q)V=V.concat(_e.tactics);let ee=d3.scaleBand().domain(V.map(_e=>_e.tactic.id)).range([0,i]),ne=d3.scaleLinear().domain([d3.max(V,function(_e){return _e.height}),0]).range([l-h,0]),he=Math.min(2*ne(1),15);e.viewModel.showTacticRowBackground&&R.append("rect").attr("class","tactic-header-background").attr("width",i).attr("height",ne(1)).attr("fill",e.viewModel.tacticRowBackground).attr("stroke",e.config.tableBorderColor);let re=R.append("g").selectAll("g").data(V).enter().append("g").attr("class",function(_e){return"tactic "+_e.tactic.shortname}).attr("transform",function(_e){return`translate(${ee(_e.tactic.id)}, 0)`}),ce=re.append("g").attr("class","techniques").selectAll("g").data(function(_e){return _e.techniques}).enter().append("g").attr("class",function(_e){return"technique "+_e.technique.attackID}).attr("transform",function(_e){return`translate(0, ${ne(_e.yPosition)})`}),pe=re.append("g").attr("class","subtechniques").selectAll("g").data(function(_e){return _e.subtechniques}).enter().append("g").attr("class",function(_e){return"subtechnique "+_e.technique.attackID}).attr("transform",function(_e){return`translate(${he}, ${ne(_e.yPosition)})`});ce.append("rect").attr("class","cell").attr("height",ne(1)).attr("width",ee.bandwidth()).attr("fill",function(_e){return null!==_e.fill?_e.fill:"light"===e.config.theme?"#ffffff":"#2e2e3f"}).attr("stroke",e.config.tableBorderColor),pe.append("rect").attr("class","cell").attr("height",ne(1)).attr("width",ee.bandwidth()-he).attr("fill",function(_e){return null!==_e.fill?_e.fill:"light"===e.config.theme?"#ffffff":"#2e2e3f"}).attr("stroke",e.config.tableBorderColor);pe.append("rect").attr("class","cell").attr("height",ne(1)).attr("width",3).attr("transform","translate(-3, 0)").attr("fill",e.config.tableBorderColor).attr("stroke",e.config.tableBorderColor),ce.append("polygon").attr("class","sidebar").attr("transform",`translate(0, ${ne(1)})`).attr("points",function(_e){return["0,0",he-3+",0",`${he-3},${Math.min(he-3,ne(e.viewModel.filterTechniques(_e.technique.subtechniques,_e.tactic,_e.matrix).length))}`].join(" ")}).attr("fill",e.config.tableBorderColor).attr("visibility",function(_e){return _e.technique.subtechniques.length>0&&_e.showSubtechniques?"visible":"hidden"});let Ae=1/0;ce.append("text").text(function(_e){return _e.text}).attr("font-size",function(_e){const Re=e.optimalFontSize(this,_e.text,ee.bandwidth(),ne(1),!1);return Red.color)),l=2*i.length;t.append("g").attr("transform","translate(0, 5)").call(d3.legendColor().shapeWidth(r/l).shapePadding(0).cells(l).shape("rect").orient("horizontal").scale(a).labelOffset(2).labelFormat(d3.format("0.02r")))}}setSize(e,t,r){const i={letter:{portrait:[8.5,11],landscape:[11,8.5]},legal:{portrait:[8.5,14],landscape:[14,8.5]},small:{portrait:[11,17],landscape:[17,11]},medium:{portrait:[18,24],landscape:[24,18]},large:{portrait:[24,36],landscape:[36,24]}};if("custom"!==t){const[a,l]=i[t][r];e.config.width=a,e.config.height=l}}verticalAlignCenter(e,t=null){if(e.children&&e.children.length>0)for(let r of e.children)this.verticalAlignCenter(r,e.getAttribute("font-size"));else{(t=t||e.getAttribute("font-size")).endsWith("px")&&(t=Number(t.split("px")[0]));let i=(e.hasAttribute("y")?Number(e.getAttribute("y")):0)+Math.floor(.3*t);d3.select(e).attr("y",i)}}getSpacing(e,t){let r=[],i=(e-1)/(2*t);for(let a=1;a<=2*t;a+=2)r.push(1+i*a);return r}insertLineBreaks(e,t,r,i,a,l,d){let h=d3.select(e);for(h.text("");e.firstChild;)e.removeChild(e.firstChild);let p=this.getSpacing(i,t.length);for(let y=0;yh&&(h=q,p=B),q==l)break}return this.findSize(e,p,r,i,a,l),h}findBreaks(e,t){let r=new Set,i=[];for(;i.length\r\n',i],{type:"image/svg+xml;charset=utf-8"});if(this.isIE)window.navigator.msSaveOrOpenBlob(a,t);else{const l=document.createElement("a");l.download=t,l.href=URL.createObjectURL(a),document.body.appendChild(l),l.click(),document.body.removeChild(l)}}static#e=this.ctorParameters=()=>[{type:uA},{type:Ys},{type:Gl},{type:void 0,decorators:[{type:Zu,args:[hA]}]}]};fN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-svg-export",template:'
    \n
    \n
      \n
    • \n Warning: this interface is not fully compatible with your browser. For best results please switch to Edge, Chrome, or Firefox.\n
    • \n
    • \n
      \n \x3c!-- {{config.theme}} --\x3e\n \n nightlight_round\n wb_sunny\n
      \n
    \n \n
  • \n
    \n \x3c!-- {{config.unit}} --\x3e\n \n \n \n {{ config.unit }}\n \n \n
    \n
  • \n \n
  • \n
    \n \n photo_size_select_large\n
    \n \n \n\n
    \n \n format_size\n
    \n \n \n
    \n \n view_list\n
    \n \n \n
    \n \n visibility\n
    \n \n \n
  • \n
  • \n
    \n \n file_download\n
    \n \n
  • \n \n\n\n
    loading...
    \n\n\n \n\n',encapsulation:Ei.None,styles:[sPe()]})],fN);let pN=class{constructor(e,t,r){this.dialog=e,this.markdownService=t,this.data=r}static#e=this.ctorParameters=()=>[{type:Iu},{type:Hp},{type:void 0,decorators:[{type:Zu,args:[hA]}]}];static#t=this.propDecorators={markdownElement:[{type:Bm,args:["markdownElement",{static:!1}]}]}};pN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-changelog",template:'
    \n

    Changelog

    \n \n \n \n \n \n \n
    '})],pN);let oD=class{get latestDomains(){return this.filterDomains(this.dataService.versions[0])}get minimumSupportedVersion(){return"4.0"}get navVersion(){return W5}constructor(e,t,r,i,a,l){this.dialog=e,this.viewModelsService=t,this.dataService=r,this.http=i,this.configService=a,this.snackBar=l,this.onUserThemeChange=new cn,this.activeTab=null,this.dropdownEnabled="",this.layerTabs=[],this.adjustedHeaderHeight=0,this.showHelpDropDown=!1,this.loadURL="",this.layerLinkURLs=[],this.copiedRecently=!1,this.loadData={url:void 0,version:void 0,identifier:void 0},this.opSettings={domain:"",gradientVM:null,coloringVM:null,commentVM:null,linkVM:null,metadataVM:null,enabledVM:null,filterVM:null,scoreExpression:"",legendVM:null},console.debug("initializing tabs component"),this.newBlankTab(),this.loadTabs(a.defaultLayers).then(()=>{0==this.layerTabs.length&&this.newLayer(this.dataService.domains[0].id),this.activeTab||this.selectTab(this.layerTabs[0])}),this.bannerContent=this.configService.banner}ngAfterViewInit(){(function QRe(n){const t=Qee();return"safari"==t.name&&function e(r,i){let a=i+"",l=+(/\d+/.exec(a)||NaN),d=/^[<>]=?/.exec(a)[0];return tte[d]?tte[d](r,l):r==l||Number.isNaN(l)}(t.version.split(".")[0],n)})("<=13")&&(this.safariDialogRef=this.dialog.open(this.safariWarning,{width:"350px",disableClose:!0,panelClass:this.userTheme}))}adjustHeader(e){this.adjustedHeaderHeight=e}loadTabs(e){var t=this;return xt(function*(){let r=t.getNamedFragmentValue("bundleURL")[0],i=t.getNamedFragmentValue("version")[0],a=t.getNamedFragmentValue("domain")[0],l=t.getNamedFragmentValue("layerURL"),d=t;if(r?.length&&i&&a?.length)d.newLayerFromURL({url:r,version:i,identifier:a});else if(l?.length){let h=!0;for(let p of l)yield d.loadLayerFromURL(p,h,!0),h=!1}else if(e.enabled){let h=!0;for(let p of e.urls)yield d.loadLayerFromURL(p,h,!0),h=!1}})()}openTab(e,t,r=!1,i=!0,a=!1,l=!1){if(!a){let p=this.layerTabs.find(y=>y.title===e);return void this.selectTab(p)}let d=t?t.domainVersionID:"",h=new Lbe(e,r,!1,d,l);if(h.viewModel=t,i&&0!==this.layerTabs.length){for(let p=0;p{"search"===t.sidebarContentType&&(t.sidebarOpened=!1,t.sidebarContentType="")})}closeTab(e,t=!1){let r=0;this.viewModelsService.destroyViewModel(e.viewModel);let i=this.layerTabs.findIndex(a=>a===e);if(e==this.activeTab&&(r=0==i&&this.layerTabs.length>1?1:i>0?2:3),this.layerTabs.splice(i,1),!t)switch(r){case 0:break;case 1:case 2:this.selectTab(this.layerTabs[0]);break;case 3:this.newBlankTab();break;default:console.error("post closetab action not specified (this should never happen)")}}closeActiveTab(e=!1){this.activeTab&&this.closeTab(this.activeTab,e)}handleTabClick(e){this.activeTab!==e?(this.activeTab=e,this.dropdownEnabled=""):this.dropdownEnabled="description"!==this.dropdownEnabled?"description":""}filterDomains(e){return this.dataService.domains.filter(t=>t.version==e)}hasFeature(e){return this.configService.getFeature(e)}handleUserThemeChange(e){this.onUserThemeChange.emit(e)}openDialog(e){const t={maxWidth:"75ch",panelClass:this.userTheme,autoFocus:!1,data:{theme:this.userTheme}};"changelog"==e?this.dialog.open(pN,t):"help"==e?this.dialog.open(hN,t):"layers"==e&&this.dialog.open(iD,t)}openSVGDialog(e){this.dialog.open(fN,{data:{vm:e},panelClass:["dialog-custom",this.userTheme],autoFocus:!1})}getUniqueLayerName(e){let t=0;function r(i){let a=Math.floor(Number(i));return String(a)===i}for(let i of this.viewModelsService.viewModels){if(!i.name.startsWith(e))continue;if(i.name===e){t=Math.max(t,1);continue}let a=i.name.substring(e.length,i.name.length);r(a)&&(t=Math.max(t,Number(a)+1))}return 0!=t&&(e+=t),e}newLayerFromURL(e,t=void 0){let r=e.identifier.toLowerCase(),i=this.dataService.getDomainVersionID(r,e.version);if(!this.validateInput(e,i))return;let d,l=new URL(e.url).toString();d=this.http.get(l).subscribe({next:h=>{if(!this.dataService.domains.find(y=>y.isCustom&&y.id===i)){let y=this.dataService.versions.find(R=>R.number==e.version);y||(y=new oG(`ATT&CK v${e.version}`,String(e.version)),this.dataService.versions.push(y));let S=new eB(r,r,y,[l]);S.isCustom=!0,this.dataService.domains.push(S)}this.newLayer(i,t)},error:h=>{console.error(h),alert("ERROR retrieving data from "+l+", check the javascript console for more information.")},complete:()=>{d&&d.unsubscribe()}})}validateInput(e,t){try{let r=new URL(e.url);if(isNaN(e.version))throw Error("version is not a number");let i=this.dataService.domains.find(a=>a.id==t);if(i&&(!i.isCustom||i.urls[0]!=r.toString()))throw Error(`the domain and version specified conflict with an existing set of ATT&CK data (${i.name} ${i.version.name})`);return!0}catch(r){return console.error(r),r instanceof TypeError?alert("ERROR: invalid url, check the javascript console for more information."):alert("ERROR "+r.message),!1}}newLayer(e,t=void 0){let i;this.dataService.getDomain(e).dataLoaded||this.dataService.loadDomainData(e,!0),i=t&&"name"in t&&t.name?t.name:this.getUniqueLayerName("layer");let a=this.viewModelsService.newViewModel(i,e);t&&a.deserialize(t),a.loadVMData(),this.openTab(i,a,!0,!0,!0,!0)}indexToChar(e){let t=0;for(let r=0;rh.domainVersionID===l[0].domainVersionID))throw Error("cannot apply operations to layers of different domains");let d=this.viewModelsService.layerOperation(e,a,this.opSettings);this.dataService.getDomain(this.opSettings.domain).dataLoaded?(d.loadVMData(),d.updateGradient(),this.openTab(a,d,!0,!0,!0,!0)):this.dataService.loadDomainData(this.opSettings.domain,!0).then(()=>{d.loadVMData(),d.updateGradient(),this.openTab(a,d,!0,!0,!0,!0)})}catch(l){console.error(l),alert("Layer Layer operation error: "+l.message)}}getScoreExpressionError(){let e=this;try{let t=/\b[a-z]\b/g,r={},i=e.opSettings.scoreExpression.match(t);if(i){let a="";if(i.forEach(function(l){r[l]=0,typeof e.charToIndex(l)>"u"?a="Variable "+l+" does not match any layers":e.opSettings.domain&&e.layerTabs[e.charToIndex(l)].viewModel.domainVersionID!==e.opSettings.domain&&(a="Layer "+l+" does not match the chosen domain")}),a.length>0)return a}return null}catch(t){return t.message}}openUploadPrompt(){document.getElementById("uploader").click()}versionUpgradeDialog(e){return new Promise((r,i)=>{let a=this.dataService.latestVersion.number;if(e.version!==a){let l=this.dialog.open(iN,{data:{layerName:e.name,vmVersion:e.version,currVersion:a},disableClose:!0,width:"25%",panelClass:this.userTheme,autoFocus:!1});this.subscription=l.afterClosed().subscribe({next:d=>{if(!d.upgrade&&!this.dataService.isSupported(e.version)&&i(new Error(`Uploaded layer version (${String(e.version)}) is not supported by Navigator v${this.navVersion}`)),d.upgrade){let h=this.dataService.getDomainVersionID(e.domain,a);r({oldID:e.domainVersionID,newID:h})}r(null)},complete:()=>{this.subscription&&this.subscription.unsubscribe()}})}else r(null)})}upgradeLayer(e,t,r,i=!1){return new Promise((a,l)=>{i?(this.openTab("new layer",e,!0,r,!0,!0),this.dataService.getDomain(e.domainVersionID).dataLoaded?(e.deserialize(t),e.loadVMData(),a(null)):this.dataService.loadDomainData(e.domainVersionID,!0).then(()=>{e.deserialize(t),e.loadVMData(),a(null)})):this.versionUpgradeDialog(e).then(d=>{if(d){let h=this.viewModelsService.newViewModel(e.name,d.newID);h.version=this.dataService.latestVersion.number,h.deserialize(t,!1),h.loadVMData(),h.compareTo=e,this.openTab("new layer",h,!0,r,!0,!0),h.openSidebar("layerUpgrade"),h.selectTechniquesAcrossTactics=!1;let y,p={};this.dataService.getDomain(d.oldID).dataLoaded||(p.old=this.dataService.loadDomainData(d.oldID,!0)),this.dataService.getDomain(d.newID).dataLoaded||(p.new=this.dataService.loadDomainData(d.newID,!0)),y=bS(p).subscribe({complete:()=>{h.versionChangelog=this.dataService.compareVersions(d.oldID,d.newID),e.deserialize(t),e.loadVMData(),h.initCopyAnnotations(),a(null),y&&y.unsubscribe()}})}else this.openTab("new layer",e,!0,r,!0,!0),this.dataService.getDomain(e.domainVersionID).dataLoaded?(e.deserialize(t),e.loadVMData(),a(null)):this.dataService.loadDomainData(e.domainVersionID,!0).then(()=>{e.deserialize(t),e.loadVMData(),a(null)})}).catch(d=>{console.error(d),alert("ERROR parsing file, check the javascript console for more information."),a(null)})})}loadLayerFromFile(){let e=document.getElementById("uploader");e.files.length<1?alert("You must select a file to upload!"):this.readJSONFile(e.files[0])}readJSONFile(e){var t=this;return xt(function*(){return new Promise((r,i)=>{let a=new FileReader,l=t;a.onload=function(){var d=xt(function*(h){let p=function(){var R=xt(function*(B){let q=l.viewModelsService.newViewModel("loading layer...",void 0);try{let V=q.deserializeDomainVersionID(B);if(yield l.versionMismatchWarning(V),l.versionMismatchWarning(V),!l.dataService.getDomain(q.domainVersionID))throw new Error(`Error: '${q.domain}' (v${q.version}) is an invalid domain.`);if("customDataURL"in B){q.deserialize(B);let ne=B.customDataURL;l.newLayerFromURL({url:ne,version:q.version,identifier:q.domain},B)}else yield l.upgradeLayer(q,B,!0),console.debug(`loaded layer "${q.name}"`)}catch(V){console.error(V),alert("ERROR parsing layer, check the javascript console for more information."),l.viewModelsService.destroyViewModel(q),r(null)}});return function(q){return R.apply(this,arguments)}}(),y=String(a.result),S="string"==typeof y?JSON.parse(y):y;if(S?.length){console.debug("loading file with multiple layers");for(let R of S)yield p(R)}else yield p(S)});return function(h){return d.apply(this,arguments)}}(),a.readAsText(e)})})()}versionMismatchWarning(e){var t=this;return xt(function*(){return new Promise((r,i)=>{let a=TA.split("."),l=e.split(".");if(l[0]===a[0]&&l[1]!==a[1]){let d=`Uploaded layer version (${e}) is out of date. Please update to v${TA} for optimal compatibility.`;t.versionMinorSnackbarRef=t.snackBar.open(d,"CHANGELOG",{duration:6500}),t.versionMinorSnackbarRef.onAction().subscribe(()=>{t.openDialog("changelog")}),r(!0)}else l[0]!==a[0]?(t.versionDialogRef=t.dialog.open(t.versionWarning,{width:"30em",disableClose:!0,panelClass:t.userTheme,data:{objVersion:e,globalVersion:TA}}),t.versionDialogRef.afterClosed().subscribe(d=>{r(!0)})):r(!0)})})()}loadLayerFromURL(e,t,r=!1){var i=this;return xt(function*(){return new Promise(function(){var a=xt(function*(l,d){let h,p=i;var y;h=p.http.get(e).subscribe({next:(y=xt(function*(S){let R=function(){var q=xt(function*(V){let ee=p.viewModelsService.newViewModel("loading layer...",void 0);try{let ne=ee.deserializeDomainVersionID(V);if(yield p.versionMismatchWarning(ne),!p.dataService.getDomain(ee.domainVersionID))throw new Error(`Error: '${ee.domain}' (v${ee.version}) is an invalid domain.`);yield p.upgradeLayer(ee,V,t,r),console.debug(`loaded layer "${ee.name}" from ${e}`)}catch(ne){console.error(ne),alert(`ERROR parsing layer from ${e}, check the javascript console for more information.`),p.viewModelsService.destroyViewModel(ee),l(null)}});return function(ee){return q.apply(this,arguments)}}(),B="string"==typeof S?JSON.parse(S):S;if(B?.length){console.debug("loading file with multiple layers");for(let q of B)yield R(q)}else yield R(B);l(null)}),function(R){return y.apply(this,arguments)}),error:y=>{console.error(y),alert(`ERROR retrieving layer from ${e}, check the javascript console for more information.`),l(null)},complete:()=>{h&&h.unsubscribe()}})});return function(l,d){return a.apply(this,arguments)}}())})()}trackByFunction(e){return e}addLayerLink(){this.layerLinkURLs.push("")}removeLayerLink(e){this.layerLinkURLs.splice(e,1)}getLayerLink(){let e=window.location.href.split("#")[0],t="#";for(let r of this.layerLinkURLs)e+=t+"layerURL="+encodeURIComponent(r),t="&";for(let r of this.configService.customizefeatureList)if(r.subfeatures)for(let i of r.subfeatures)i.enabled||(e+=t+i.name+"=false",t="&");else r.enabled||(e+=t+r.name+"=false",t="&");return e}selectLayerLink(){let e=document.getElementById("layerLink");console.debug("copied",e.value),e.select()}copyLayerLink(){this.selectLayerLink(),document.execCommand("Copy"),this.copiedRecently=!0;let e=this;window.setTimeout(function(){e.copiedRecently=!1},2e3)}isAlphabetical(e){return/^[a-z]+$/.test(e)}getNamedFragmentValue(e,t){t||(t=window.location.href),e=e.replace(/[[\]]/g,"\\$&");let r=new RegExp("[#&]"+e+"(?:=([^&#]*)|&|#|$)","g"),i=[],a=r.exec(t);for(;null!=a;)i.push(decodeURIComponent(a[1].replace(/\+/g," "))),a=r.exec(t);return i}getFilteredVMs(){return this.viewModelsService.viewModels.filter(e=>e.domainVersionID==this.opSettings.domain)}static#e=this.ctorParameters=()=>[{type:Iu},{type:wl},{type:Gl},{type:Tu},{type:Ys},{type:Y0}];static#t=this.propDecorators={userTheme:[{type:ha}],onUserThemeChange:[{type:rg}],safariWarning:[{type:Bm,args:["safariWarning"]}],versionWarning:[{type:Bm,args:["versionWarning"]}]}};oD=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"tabs",template:'
    \n \x3c!-- banner --\x3e\n
    \n \n
    \n\n \x3c!-- help/changelog --\x3e\n
    \n \n \n \n \n \n
    \n \n
    \n\n \x3c!-- tabs --\x3e\n
    \n \n \n
    \n\n
    \n \x3c!-- should never see this, but in case the config fails to load --\x3e\n \n
    \n\n\n\n
    \n

    WARNING

    \n

    \n We\u2019ve detected that you are using the Safari browser. As of Navigator version\n 4.3\n , Safari versions 13 and below are not supported due to an unfixable freeze that can occur when selecting a layer tab.\n

    \n

    \n We recommend you use Chrome or Firefox instead. You can continue to use the Navigator in Safari (versions 13 and below), but you may lose\n work if the application freezes.\n

    \n \n
    \n
    \n\n\n
    \n
    \n

    \n WARNING:\n Outdated Layer\n

    \n \n

    \n The uploaded layer version ({{ data.objVersion }}) does not match Navigator\'s layer version ({{ data.globalVersion }}). The layer\n configuration may not be fully restored.\n

    \n

    View the latest Layer File Format specification and the changelog for more information:

    \n

    \n Layer File Format v{{ data.globalVersion }}\n

    \n

    \n Changelog\n

    \n
    \n
    \n\n \n
    \n
    \n\n\x3c!-- new tab template --\x3e\n\n
    \n
    \n \n
    \n

    \n The ATT&CK Navigator is a web-based tool for annotating and exploring ATT&CK matrices. It can be used to visualize defensive\n coverage, red/blue team planning, the frequency of detected techniques, and more.\n

    \n
    \n \x3c!-- Help dialog --\x3e\n \n
    \n \n \x3c!-- Create new layer interface --\x3e\n \n \n Create New Layer\n Create a new empty layer\n \n\n \x3c!-- Domain buttons for latest version --\x3e\n
    \n \n
    \n\n \x3c!-- More domain/version options --\x3e\n \n \n More Options\n \n\n
    \n
    \n \x3c!-- select a version --\x3e\n \n Select a version\n \n none\n \n {{ nVersion.name }}\n \n \n \n \x3c!-- select a domain --\x3e\n \n Select a domain\n \n none\n \n {{ nDomain.name }}\n \n \n \n \x3c!-- note --\x3e\n \n *Note: ATT&CK Versions prior to v{{ minimumSupportedVersion }} are not supported by Navigator v{{ navVersion }}.\n \n
    \n
    \n OR\n
    \n
    \n \x3c!-- bundle URL --\x3e\n \n Collection or STIX bundle URL\n \n \n \x3c!-- bundle version number --\x3e\n \n Bundle version number\n \n ATT&CK version (e.g. 12)\n \n \x3c!-- bundle domain identifier --\x3e\n \n Bundle domain\n \n Domain identifier (e.g. defending-iaas)\n \n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    \n \n Create layer from bundle\n \n
    \n
    \n
    \n
    \n\n \x3c!-- Open existing layer interface --\x3e\n \n \n Open Existing Layer\n Load a layer from your computer or a URL\n \n\n
    \n
    \n \n \n
    \n
    \n OR\n
    \n
    \n \n Load from URL\n \n \n chevron_right\n \n \n
    \n
    \n
    \n\n \x3c!-- Create layer from other layers --\x3e\n \n \n Create Layer from Other Layers\n Select layers to inherit properties from\n \n\n
    \n \x3c!-- domain --\x3e\n
    \n
    \n \n domain\n \n \n {{ domain.name }} {{ domain.version.name }}\n \n \n \n
    \n
    \n
    \n Select the domain for the new layer. Only layers of the same domain and version can be merged.\n
    \n
    \n\n \x3c!-- score expression --\x3e\n
    \n
    \n \n score expression\n \n {{ getScoreExpressionError() }}\n \n
    \n
    \n
    \n \n Use constants (numbers) and layer variables (yellow, above) to write an expression for the initial value of scores in\n the new layer. A full list of supported operations can be found\n here\n . Leave blank to initialize scores to 0. Here\'s a list of available layer variables:\n
      \n \n {{ indexToChar($i) }}\n ({{ tab.isDataTable ? tab.viewModel.name : tab.title }})\n \n
    \n
    \n
    \n
    \n\n \x3c!-- gradient --\x3e\n
    \n
    \n \n gradient\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n \n Select which layer to import the scoring gradient from. Leave blank to initialize with the default scoring gradient.\n \n
    \n
    \n\n \x3c!-- coloring --\x3e\n
    \n
    \n \n coloring\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import manually assigned colors from. Leave blank to initialize with no colors.\n
    \n
    \n\n \x3c!-- comments --\x3e\n
    \n
    \n \n comments\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import comments from. Leave blank to initialize with no comments.\n
    \n
    \n\n \x3c!-- links --\x3e\n
    \n
    \n \n links\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import technique links from. Leave blank to initialize without links.\n
    \n
    \n\n \x3c!-- metadata --\x3e\n
    \n
    \n \n metadata\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import technique metadata from. Leave blank to initialize without metadata.\n
    \n
    \n\n \x3c!-- enabled state --\x3e\n
    \n
    \n \n states\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import enabled/disabled states from. Leave blank to initialize all to enabled.\n
    \n
    \n\n \x3c!-- filters --\x3e\n
    \n
    \n \n filters\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import filters from. Leave blank to initialize with no filters.\n
    \n
    \n\n \x3c!-- legend --\x3e\n
    \n
    \n \n legend\n \n none\n {{ vm.name }}\n \n \n
    \n
    \n
    \n Select which layer to import the legend from. Leave blank to initialize with an empty legend.\n
    \n
    \n\n \x3c!-- create --\x3e\n
    \n \n
    \n
    \n
    \n\n \x3c!-- Customized Navigator--\x3e\n \n \n Create Customized Navigator\n Create a hyperlink to a customized ATT&CK Navigator\n \n\n
    \n
    \n \x3c!-- default layers--\x3e\n

    Default Layers

    \n
    \n
    \n \n
    \n
    \n
    \n Enter the URLs of layers hosted on the web. The custom navigator will open these layers by default.\n
    \n
    \n
    \n\n
    \n \x3c!-- navigator features --\x3e\n

    Navigator Features

    \n \n
    \n
    \n \n {{ feature.name.split(\'_\').join(\' \') }}\n \n
    \n
    \n
    \n {{ feature.description }}\n
    \n
    \n
    \n
    \n
    \n\n \x3c!-- Custom Navigator URL --\x3e\n
    \n \n custom navigator url\n \n \n copied\n \n
    \n
    \n
    \n
    \n
    \n\n\x3c!-- data table tab template --\x3e\n\n \n\n',providers:[wl],encapsulation:Ei.None,styles:[obe()]})],oD);let kL=class{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t}registerIcons(){this.loadIcons(Object.values(EL),"assets/icons")}loadIcons(e,t){e.forEach(r=>{this.matIconRegistry.addSvgIcon(r,this.domSanitizer.bypassSecurityTrustResourceUrl(`${t}/${r}.svg`))})}static#e=this.ctorParameters=()=>[{type:Dp},{type:ku}]};var EL;kL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([Cr({providedIn:"root"})],kL),function(n){n.SORT_ALPHABETICAL_ASC="ic_sort_alphabetically_ascending",n.SORT_ALPHABETICAL_DESC="ic_sort_alphabetically_descending",n.SORT_NUMERICAL_ASC="ic_sort_numerically_ascending",n.SORT_NUMERICAL_DESC="ic_sort_numerically_descending",n.UNFOLD_MORE_ALT="ic_unfold_more_alt",n.NON_STICKY_TOOLBAR="ic_push_pin_gray"}(EL||(EL={}));const mN=function(n){let e=n+"=",r=decodeURIComponent(document.cookie).split(";");for(let i of r){for(;i.startsWith(" ");)i=i.substring(1);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return""},SL=function(n){return""!==mN(n)};let gN=class{promptNavAway(e){this.configService.getFeature("leave_site_dialog")&&(e.returnValue="Are you sure you want to navigate away? Your data may be lost!")}constructor(e,t,r){this.configService=e,this.iconsService=t,this.titleService=r,this.navVersion=W5,this.title="ATT&CK\xae Navigator",Array.prototype.includes=function(i){for(let a=0;a[{type:Ys},{type:kL},{type:a1}];static#t=this.propDecorators={tabsComponent:[{type:Bm,args:[oD]}],promptNavAway:[{type:ure,args:["window:beforeunload",["$event"]]}]}};gN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-root",template:'
    \n
    \n \n
    \n
    \n',styles:[nbe()]})],gN);var yPe=mt(1203),_Pe=mt.n(yPe),Ete=mt(2887);let AL=class{get layerDomainVersion(){let e=this.dataService.getDomain(this.viewModel.domainVersionID);return`${e.name} v${e.version.number}`}constructor(e,t,r,i,a){this.dataService=e,this.tabs=t,this.sanitizer=r,this.viewModelsService=i,this.configService=a,this.currentDropdown="",this.dropdownChange=new cn,this.onScroll=new cn,this.customContextMenuItems=[],this.showingLegend=!1,this.previousScrollTop=0,this.headerHeight=0,this.footerHeight=32,this.controlsHeight=34,this.isScrollUp=!0,this.handleScroll=l=>{const d=this.scrollRef.nativeElement.scrollTop-this.previousScrollTop;!this.isScrollUp&&d<0||this.isScrollUp&&d>0?(this.isScrollUp=d<0,this.calculateScrollHeight(),this.previousScrollTop=this.scrollRef.nativeElement.scrollTop):!this.isScrollUp&&this.scrollRef.nativeElement.scrollTop>0&&0===d&&this.calculateScrollHeight()},this.calculateScrollHeight=()=>{const l=this.isScrollUp?0:this.headerHeight;this.onScroll.emit(-1*l);const d=this.isScrollUp?this.headerHeight+this.controlsHeight+this.footerHeight:this.controlsHeight;this.scrollRef.nativeElement.style.height=`calc(100vh - ${d}px)`},this.showSubtechniquesType=0,this.downloadAnnotationsOnVisibleTechniques=!1,this.showControlsBar=!0,this.previousControlSection="",this.currentControlSection="selection",this.showHelpDropDown=!1,this.commentEditField="",this.scoreEditField="",this.layerControlsList=[],this.techniqueControlsList=[],this.selectionControlsList=[],this.showControlLabels={selection:!1,layer:!1,technique:!1},this.selectionChangeSubscription=this.viewModelsService.onSelectionChange.subscribe(()=>{this.onTechniqueSelect()}),this.includedControls=a.featureList;for(let l=0;l{const i=new Blob([r],{type:"application/octet-stream"}),a=this.viewModel.name.toLowerCase().replace(/ /g,"_")+".xlsx";this.saveBlob(i,a)})}saveAllLayersLocallyExcel(){let e=new Ete.Workbook;for(let t=0;t{const r=new Blob([t],{type:"application/octet-stream"}),i=this.viewModel.name.toLowerCase().replace(/ /g,"_")+".xlsx";this.saveBlob(r,i)})}saveLayerExcel_helper(e,t,r){let i=r.filterTactics(e.tactics,e).map(a=>({header:this.getDisplayName(a),key:a.name}));t.columns=i;for(let a of r.filterTactics(e.tactics,e)){let l=t.getColumn(a.name),d=r.applyControls(a.techniques,a,e),h=d.map(S=>S.name),p=[],y=[];for(let S of d){let R=h.indexOf(S.name);if(!r.getTechniqueVM(S,a).showSubtechniques)continue;let q=r.applyControls(S.subtechniques,a,e).map(ee=>ee.name);p=p.concat(S.subtechniques);let V=this.addSubtechniqueCells(y,h,q,S);V>0&&t.mergeCells(R+2,l.number,R+V+1,l.number)}if(y.length>0){let S=i.findIndex(B=>B.key==a.name);i.splice(S+1,0,{header:this.getDisplayName(a),key:a.name+"Subtechniques"}),t.columns=i;let R=t.getColumn(a.name+"Subtechniques");t.mergeCells(l.letter+"1:"+R.letter+"1"),R.values=[a.name.toString()+"Subtechniques"].concat(y),this.styleTechniqueCells(R,p,r,a,!0)}l.values=[this.getDisplayName(a)].concat(h),this.styleTechniqueCells(l,d,r,a)}this.styleTacticHeaders(t,r),t.getRow(1).alignment={horizontal:"center"},t.getRow(1).border={bottom:{style:"thin"}},t.getRow(1).font={bold:!0},r.showTacticRowBackground&&(t.getRow(1).fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF"+r.tacticRowBackground.substring(1)}},t.getRow(1).font={bold:!0,color:{argb:"FF"+cr.mostReadable(r.tacticRowBackground,["white","black"]).toHex()}})}styleTechniqueCells(e,t,r,i,a=!1){const l=[];e.eachCell(d=>{if(d.row>1&&d.value&&void 0!==d.value){let h=t.find(y=>a?y.name==d.value.substring(d.value.indexOf(":")+1).trim()&&!l.includes(y.attackID):y.name==d.value.substring(d.value.indexOf(":")+1).trim()||y.attackID===d.value);l.push(h.attackID);let p=r.getTechniqueVM(h,i);this.styleCells(d,h,p)}})}styleTacticHeaders(e,t){e.columns.forEach(r=>{t.layout.showID&&!t.layout.showName?r.width=r.header.length<15?15:r.header.length:t.layout.showID||t.layout.showName?r.width=r.header.length<30?30:r.header.length:r.width=10})}addSubtechniqueCells(e,t,r,i){let a=t.indexOf(i.name),l=0;for(let d of r)0!==l&&t.splice(a+l,0,i.name),e[a+l++]=d;return l}getDisplayName(e){return this.viewModel.layout.showID&&this.viewModel.layout.showName?e.attackID+": "+e.name:this.viewModel.layout.showID?e.attackID:this.viewModel.layout.showName?e.name:""}handleDescriptionDropdown(){"description"!==this.currentDropdown?this.currentDropdown="description":this.currentDropdown="",this.dropdownChange.emit(this.currentDropdown)}toggleShowControlsBar(){this.showControlsBar=!this.showControlsBar}setCurrentControlSection(e){this.currentControlSection=e,this.previousControlSection===e&&this.showControlsBar?this.showControlsBar=!1:this.showControlsBar=!0,this.previousControlSection=e}handleExportDropdown(){"export"!==this.currentDropdown?this.currentDropdown="export":this.currentDropdown="",this.dropdownChange.emit(this.currentDropdown)}onTechniqueSelect(){this.viewModel.isCurrentlyEditing()?"link"!=this.currentDropdown&&"metadata"!=this.currentDropdown?this.populateEditFields():this.currentDropdown="":["comment","score","colorpicker","link","metadata"].includes(this.currentDropdown)&&(this.currentDropdown="")}expandSubtechniques(e){if("mini"!=this.viewModel.layout.layout){this.viewModel.layout.expandedSubtechniques=e?"annotated":"all";for(let t of this.dataService.getDomain(this.viewModel.domainVersionID).techniques)if(t.subtechniques?.length)for(let r of t.get_all_technique_tactic_ids()){let i=this.viewModel.getTechniqueVM_id(r);if(e){e&&(i.showSubtechniques=!1);for(let a of t.subtechniques)i.showSubtechniques=i.showSubtechniques||a.get_all_technique_tactic_ids().some(l=>this.viewModel.getTechniqueVM_id(l).annotated())}else i.showSubtechniques=!0}}}collapseSubtechniques(){"mini"!=this.viewModel.layout.layout&&(this.viewModel.techniqueVMs.forEach(function(e,t){e.showSubtechniques=!1}),this.viewModel.layout.expandedSubtechniques="none")}showSubtechniquesTypeAlgorithm(){switch(this.showSubtechniquesType){case 1:this.expandSubtechniques(),console.log(this.showSubtechniquesType);break;case 2:this.expandSubtechniques(!0),console.log(this.showSubtechniquesType);break;case 3:this.collapseSubtechniques(),console.log(this.showSubtechniquesType),this.showSubtechniquesType=0;break;case 0:break;default:this.expandSubtechniques()}}populateEditFields(){this.commentEditField=this.viewModel.getEditingCommonValue("comment"),this.scoreEditField=this.viewModel.getEditingCommonValue("score")}setSelectedState(){let e=this.viewModel.getEditingCommonValue("enabled");""===e?this.viewModel.editSelectedTechniques("enabled",!1):this.viewModel.editSelectedTechniques("enabled",!e)}sanitize(e){return this.sanitizer.bypassSecurityTrustStyle(e)}validateScoreInput(e){return isNaN(Number(this.scoreEditField))}checkalign(e){return e.parentNode.getBoundingClientRect().left+e.getBoundingClientRect().width>document.body.clientWidth}exportRender(){this.tabs.openSVGDialog(this.viewModel)}openSearch(){"layerUpgrade"!==this.viewModel.sidebarContentType&&(this.viewModel.sidebarOpened="search"!==this.viewModel.sidebarContentType||!this.viewModel.sidebarOpened,this.viewModel.sidebarContentType="search")}openLayerSettings(){this.viewModel.sidebarOpened="layerSettings"!==this.viewModel.sidebarContentType||!this.viewModel.sidebarOpened,this.viewModel.sidebarContentType="layerSettings"}static#e=this.ctorParameters=()=>[{type:Gl},{type:oD},{type:ku},{type:wl},{type:Ys}];static#t=this.propDecorators={scrollRef:[{type:Bm,args:["scrollRef"]}],viewModel:[{type:ha}],currentDropdown:[{type:ha}],dropdownChange:[{type:rg}],onScroll:[{type:rg}]}};AL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"DataTable",template:'\x3c!--\n oooooooo8 ooooooo oooo oooo ooooooooooo oooooooooo ooooooo ooooo oooooooo8\no888 88 o888 888o 8888o 88 88 888 88 888 888 o888 888o 888 888\n888 888 888 88 888o88 888 888oooo88 888 888 888 888oooooo\n888o oo 888o o888 88 8888 888 888 88o 888o o888 888 o 888\n 888oooo88 88ooo88 o88o 88 o888o o888o 88o8 88ooo88 o888ooooo88 o88oooo888\n --\x3e\n\n\n
    \n
    \n
    \n
    \n
    \n
    \n \x3c!-- Header/Help --\x3e\n \n \n
      \n
    • \n
      \n \n {{getControlDisplayName(\'selection_controls\',\'search\') | titlecase}}\n search\n
      \n \n\n \x3c!-- deselect all --\x3e\n
      \n \n Deselect {{ this.viewModel.getSelectedTechniqueCount() }} Techniques\n clear\n {{ this.viewModel.getSelectedTechniqueCount() }}\n
      \n \n \x3c!-- lock selection locks --\x3e\n
      \n \n {{getControlDisplayName(\'selection_controls\',\'selecting_techniques\') | titlecase}}\n lock\n
      \n \n \x3c!-- selectTechniquesAcrossTactics --\x3e\n
      \n \n \n
      \n \x3c!-- selectSubtechniquesWithParent --\x3e\n
      \n \n \n
      \n \x3c!-- selectVisibleTechniques --\x3e\n
      \n \n \n
      \n \n \n
      \n \n \n
      \n
    • \n
    • \n \x3c!-- layer name, description, metadata, and links --\x3e\n \x3c!-- layer control settings --\x3e\n
      \n \n {{getControlDisplayName(\'layer_controls\',\'layer_settings\') | titlecase }}\n \n settings\n \n
      \n \n \x3c!-- export, save, and render features --\x3e\n
      \n \n \n
      \n Export\n
      \n
      \n \x3c!-- save single layer locally as JSON --\x3e\n
      \n \n code\n
      \n
      \n\n \x3c!-- save all layers locally as JSON --\x3e\n \n \n \n code_blocks\n \n
      \n \n\n \x3c!-- export single layer to excel --\x3e\n
      \n \n grid_on\n
      \n \n\n \x3c!-- export all layers to excel --\x3e\n
      \n \n table_view\n
      \n \n\n \x3c!-- render layer to SVG --\x3e\n
      \n \n camera_alt\n
      \n \n \n
      \n Options\n
      \n \x3c!-- Additional Export Options --\x3e\n
      \n \n \n
      \n
      \n warning\n \n
      \n
      \n warning\n \n
      \n \n \n\n \x3c!-- Filters --\x3e\n
      \n \n {{getControlDisplayName(\'layer_controls\',\'filters\') | titlecase}}\n filter_list\n
      \n \n \n\n \x3c!-- sorting --\x3e\n
      \n \n \n \n A-Z Ascending\n \n \n \n A-Z Descending\n \n \n \n Numerically Ascending\n \n \n \n Numerically Descending\n \n \n \n
      \n \n\n \x3c!-- color setup --\x3e\n
      \n \n {{getControlDisplayName(\'layer_controls\',\'color_setup\') | titlecase}}\n palette\n
      \n \n \n transparent to red\n \n \n \n \n \n \n \n\n \x3c!-- show or hide disabled techniques --\x3e\n
      \n \n Hide Disabled\n visibility_off\n Show Disabled\n visibility\n
      \n \n\n \x3c!-- expand all, annonated or no subtechniques --\x3e\n
      \n \n \n \n Expand All Sub-techniques\n unfold_more\n \n \n Expand Annotated Sub-techniques\n \n \n \n Collapse Sub-techniques\n unfold_less\n \n \n
      \n \n
      \n \n \n
      \n
    • \n \n \x3c!-- TECHNIQUE CONTROLS --\x3e\n \x3c!-- technique control settings --\x3e\n \x3c!-- enable/disable technique --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'disable_techniques\') | titlecase}}\n texture\n
      \n \n\n \x3c!-- background color --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'manual_color\') | titlecase}}\n format_color_fill\n
      \n \x3c!-- color picker (invisible, absolute)--\x3e\n \n \n \n \n \n\n \x3c!-- score --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'scoring\') | titlecase}}\n insert_chart\n
      \n \n \n\n \x3c!-- comment --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'comments\') | titlecase}}\n insert_comment\n
      \n \x3c!-- comment input (invisible, absolute) --\x3e\n \n \n comments\n \n \n \n \n\n \x3c!-- links --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'links\') | titlecase}}\n link\n
      \n \x3c!-- link input --\x3e\n \n \n \n \n\n \x3c!-- technique metadata --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'metadata\') | titlecase}}\n list\n
      \n \x3c!-- metadata input --\x3e\n \n \n \n \n\n \x3c!-- remove all annotations --\x3e\n
      \n \n {{getControlDisplayName(\'technique_controls\',\'clear_annotations\') | titlecase}}\n layers_clear\n
      \n \n
      \n \n \n
      \n \n
    • \n \x3c!-- enable disable sticky toolbar --\x3e\n
      \n \n push_pin\n \n
      \n \n
    • \n
    \n\n\n\x3c!--\noooo oooo o ooooooooooo oooooooooo ooooo ooooo oooo\n8888o 888 888 88 888 88 888 888 888 888 88\n88 888o8 88 8 88 888 888oooo88 888 888\n88 888 88 8oooo88 888 888 88o 888 88 888\no88o 8 o88o o88o o888o o888o o888o 88o8 o888o o88o o888o\n--\x3e\n\n \n
    \n
    \n \n \n
    \n \n
    \n
    \n
    \n {{ matrix.name }}\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n \n
    \n\n\x3c!--\nooooo ooooooooooo ooooooo8 ooooooooooo oooo oooo ooooooooo\n888 888 88 o888 88 888 88 8888o 88 888 88o\n888 888ooo8 888 oooo 888ooo8 88 888o88 888 888\n888 o 888 oo 888o 88 888 oo 88 8888 888 888\no888ooooo88 o888ooo8888 888ooo888 o888ooo8888 o88o 88 o888ooo88\n--\x3e\n\n
    \n keyboard_arrow_up\n
    legend
    \n
    \n\n
    \n
    \n keyboard_arrow_down\n
    legend
    \n
    \n
    \n \n \n
    \n \n \n \n \n \n
    \n
    \n
    \n',encapsulation:Ei.None,styles:[_Pe()]})],AL);var CPe=mt(8076),kPe=mt.n(CPe);let bN=class{constructor(e,t){this.dataService=e,this.configService=t,this.showContextmenu=!1,this.dataService=e,this.configService=t,SL("is_user_theme_dark")?this.isDarkTheme="true"===mN("is_user_theme_dark"):this.isDarkTheme=window.matchMedia("(prefers-color-scheme: dark)").matches}get isHighlighted(){let e=this.showContextmenu,t=this.technique.id;if(this.viewModel.selectSubtechniquesWithParent&&this.technique.isSubtechnique&&(t=this.technique.parent.id),this.viewModel.highlightedTechniques.has(t)){if(this.viewModel.highlightedTactic){const r=this.viewModel.highlightedTactic.id===this.tactic.id;return this.viewModel.selectTechniquesAcrossTactics||r}return!0}return e}getClass(){let e="link noselect cell";if(this.tactic&&this.viewModel.isTechniqueSelected(this.technique,this.tactic)&&(e+=" editing"),this.isHighlighted&&(e+=" highlight"),this.viewModel.layout.showID){e+=" showID";let t=document.querySelectorAll(".tactic.count");for(let r=0;r0||this.viewModel.getTechniqueVM(this.technique,this.tactic).metadata.length>0||this.viewModel.getTechniqueVM(this.technique,this.tactic).links.length>0||this.hasNotes())&&(e+=" underlined"),this.getTechniqueBackground()&&(e+=" colored"),this.tactic&&!this.viewModel.getTechniqueVM(this.technique,this.tactic).enabled&&(e+=" disabled"),e}emulate_alpha(e){if(!e||e.length<1)return"";let t=cr(e).clone(),r=t.getAlpha();return t.setAlpha(1),cr.mix(this.isDarkTheme?"#2e2e3f":"#ffffff",t,100*r)}getTechniqueTextColor(){if(!this.tactic)return this.isDarkTheme?"white":"black";let e=this.viewModel.getTechniqueVM(this.technique,this.tactic);return e.enabled?e.color&&this.configService.getFeature("background_color")?cr.mostReadable(this.emulate_alpha(e.color),["white","black"]):this.viewModel.layout.showAggregateScores&&e.aggregateScoreColor&&this.technique.subtechniques.length>0&&this.configService.getFeature("aggregate_score_color")?cr.mostReadable(this.emulate_alpha(e.aggregateScoreColor),["white","black"]):e.score&&!isNaN(Number(e.score))&&this.configService.getFeature("non_aggregate_score_color")?cr.mostReadable(this.emulate_alpha(e.scoreColor),["white","black"]):this.isDarkTheme?"white":"black":this.isDarkTheme?"rgb(255 255 255 / 25%)":"#aaaaaa"}getTechniqueUnderlineColor(){if(this.tactic){let e=this.viewModel.getTechniqueVM(this.technique,this.tactic);if((e.comment.length>0||this.hasNotes())&&this.configService.getFeature("comment_underline"))return this.configService.commentColor;if(e.metadata.length>0&&this.configService.getFeature("metadata_underline"))return this.configService.metadataColor;if(e.links.length>0&&this.configService.getFeature("link_underline"))return this.configService.linkColor}return""}hasNotes(){return this.dataService.getDomain(this.viewModel.domainVersionID).notes.filter(r=>r.object_refs.includes(this.technique.id)).length>0}getTechniqueBackground(){if(!this.tactic)return null;let e=this.viewModel.getTechniqueVM(this.technique,this.tactic);return!e.enabled||this.isHighlighted?null:e.color&&this.configService.getFeature("background_color")?{background:this.emulate_alpha(e.color)}:this.viewModel.layout.showAggregateScores&&this.technique.subtechniques.length>0&&!isNaN(Number(e.aggregateScore))&&e.aggregateScore.length>0&&this.configService.getFeature("aggregate_score_color")?{background:this.emulate_alpha(e.aggregateScoreColor)}:e.score&&this.configService.getFeature("non_aggregate_score_color")?{background:this.emulate_alpha(e.scoreColor)}:void 0}static#e=this.ctorParameters=()=>[{type:Gl},{type:Ys}];static#t=this.propDecorators={viewModel:[{type:ha}],technique:[{type:ha}],tactic:[{type:ha}]}};bN=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([bP()],bN);let DL=class extends bN{get isCellPinned(){return this.viewModelsService.pinnedCell===this.viewModel.getTechniqueVM(this.technique,this.tactic).technique_tactic_union_id}get showTooltip(){return!!this.isCellPinned||!this.showContextmenu&&0!==this.viewModel.highlightedTechniques.size&&(this.viewModel.highlightedTechnique===this.technique&&this.viewModel.highlightedTactic&&this.viewModel.highlightedTactic.id===this.tactic.id)}constructor(e,t,r){super(e,t),this.dataService=e,this.configService=t,this.viewModelsService=r,this.highlight=new cn,this.unhighlight=new cn,this.leftclick=new cn}ngOnInit(){}annotatedSubtechniques(){let e=[];for(let t of this.technique.subtechniques)this.viewModel.getTechniqueVM(t,this.tactic).annotated()&&e.push(t);return this.applyControls(e,this.tactic).length}applyControls(e,t){return this.viewModel.applyControls(e,t,this.matrix)}onMouseEnter(){this.highlight.emit()}onMouseLeave(){this.unhighlight.emit()}onLeftClick(e){this.isCellPinned||(this.viewModelsService.pinnedCell=""),this.configService.getFeature("selecting_techniques")?this.leftclick.emit({technique:this.technique,shift:e.shiftKey,ctrl:e.ctrlKey,meta:e.metaKey,x:e.pageX,y:e.pageY}):this.onRightClick(e)}onRightClick(e){this.isCellPinned||(this.viewModelsService.pinnedCell=""),this.showContextmenu=!0}getClass(){let e=super.getClass();return this.annotatedSubtechniques()||(e+=" unannotated"),this.isCellPinned&&(e+=" editing"),e}static#e=this.ctorParameters=()=>[{type:Gl},{type:Ys},{type:wl}];static#t=this.propDecorators={matrix:[{type:ha}],highlight:[{type:rg}],unhighlight:[{type:rg}],leftclick:[{type:rg}]}};DL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"technique-cell",template:'
    \n
    \n \n {{ technique.attackID }}\n
    \n {{ technique.name }}\n
    \n \n \n  ({{ annotatedSubtechniques() }}/{{ applyControls(technique.subtechniques, tactic).length }})\n \n \n
    \n \n \n
    \n',encapsulation:Ei.None,styles:[kPe()]})],DL);var DPe=mt(9124),MPe=mt.n(DPe);let aD=class{constructor(e,t){this.configService=e,this.viewModelsService=t,this.configService=e}filterTactics(e){return this.viewModel.filterTactics(e,this.matrix)}filterTechniques(e,t){return this.viewModel.filterTechniques(e,t,this.matrix)}sortTechniques(e,t){return this.viewModel.sortTechniques(e,t)}applyControls(e,t){return this.viewModel.applyControls(e,t,this.matrix)}onTechniqueLeftClick(e,t,r){this.configService.getFeature("selecting_techniques")&&(e.shift||e.ctrl||e.meta?this.viewModel.isTechniqueSelected(t,r)?this.viewModel.unselectTechnique(t,r):this.viewModel.selectTechnique(t,r):this.viewModel.getSelectedTechniqueCount()>1?(this.viewModel.isTechniqueSelected(t,r)&&this.viewModel.clearSelectedTechniques(),this.viewModel.selectTechnique(t,r)):this.viewModel.isTechniqueSelected(t,r)?this.viewModel.clearSelectedTechniques():(this.viewModel.clearSelectedTechniques(),this.viewModel.selectTechnique(t,r)),this.viewModelsService.onSelectionChange.emit())}onToggleSubtechniquesVisible(e,t){if(0==e.subtechniques.length)return;let r=this.viewModel.getTechniqueVM(e,t);r.showSubtechniques=!r.showSubtechniques}onTechniqueHighlight(e,t,r){this.viewModel.highlightTechnique(t,r)}onTechniqueUnhighlight(e){this.viewModel.clearHighlight()}onTacticClick(e){this.viewModel.isTacticSelected(e)?this.viewModel.unselectAllTechniquesInTactic(e):this.viewModel.selectAllTechniquesInTactic(e)}getTacticBackground(){return this.viewModel.showTacticRowBackground?{background:this.viewModel.tacticRowBackground,color:cr.mostReadable(this.viewModel.tacticRowBackground,["white","black"])}:{}}static#e=this.ctorParameters=()=>[{type:Ys},{type:wl}];static#t=this.propDecorators={matrix:[{type:ha}],viewModel:[{type:ha}]}};aD=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([bP()],aD);let ML=class extends aD{constructor(e,t){super(e,t)}ngOnInit(){}static#e=this.ctorParameters=()=>[{type:Ys},{type:wl}]};ML=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"matrix-side",template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n \n \n \n
    \n {{ filterTechniques(tactic.techniques, tactic).length }}\n  techniques\n
    \n \n \n \n \n
    \n \n \n \n
    \n
    =
    \n
    \n \n \n \n
    \n \n
    \n \n
    \n \n \n \n \n \n \n \n \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n',encapsulation:Ei.None,styles:[MPe()]})],ML);var OPe=mt(7372),RPe=mt.n(OPe);let TL=class extends aD{constructor(e,t){super(e,t)}ngOnInit(){}static#e=this.ctorParameters=()=>[{type:Ys},{type:wl}]};TL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"matrix-flat",template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n \n \n \n
    \n {{ filterTechniques(tactic.techniques, tactic).length }}\n  techniques\n
    \n \n \n \n \n \n \n \n \n
    =
    \n \n
    \n \n \n \n \n \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n',encapsulation:Ei.None,styles:[RPe()]})],TL);var BPe=mt(2847),LPe=mt.n(BPe);let IL=class extends aD{constructor(e,t){super(e,t)}ngOnInit(){}static#e=this.ctorParameters=()=>[{type:Ys},{type:wl}]};IL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"matrix-mini",template:'\n \n \n \n \n \n \n \n \n \n \n
    \n \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n',styles:[LPe()]})],IL);var qPe=mt(4234),jPe=mt.n(qPe);class Ste{constructor(e){this.theElement=e.nativeElement}getPosition(){let e=this.theElement.getBoundingClientRect(),t=window.innerWidth/2,r=window.innerHeight/2,i=[];return e.right>t?i.push("left"):i.push("right"),e.bottom>r?i.push("top"):i.push("bottom"),i.join(" ")}}let NL=class extends Ste{get isCellPinned(){return this.viewModelsService.pinnedCell===this.techniqueVM.technique_tactic_union_id}get techniqueVM(){return this.viewModel.getTechniqueVM(this.technique,this.tactic)}constructor(e,t,r){super(e),this.element=e,this.dataService=t,this.viewModelsService=r}ngOnInit(){this.placement=this.getPlacement();let e=this.dataService.getDomain(this.viewModel.domainVersionID);this.notes=e.notes.filter(t=>t.object_refs.includes(this.technique.id))}getPlacement(){return this.getPosition()}unpin(){this.viewModelsService.pinnedCell=""}static#e=this.ctorParameters=()=>[{type:jn},{type:Gl},{type:wl}];static#t=this.propDecorators={technique:[{type:ha}],tactic:[{type:ha}],viewModel:[{type:ha}]}};NL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-tooltip",template:'
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n {{ technique.name }} ({{ technique.attackID }})\n \n push_pin\n \n
    Disabled
    Score:{{ techniqueVM.score }}
    Aggregate Score ({{ viewModel.layout.aggregateFunction }}):{{ techniqueVM.aggregateScore }}
    Comment:{{ techniqueVM.comment }}
    {{ note.abstract }}:{{ note.content }}

    {{ metadata.name }}:{{ metadata.value }}
    \n
    \n',encapsulation:Ei.None,styles:[jPe()]})],NL);var $Pe=mt(7636),WPe=mt.n($Pe);let OL=class{set query(e){this._query=e,this.debounceFunction||(this.debounceFunction=setTimeout(()=>{this.getResults(this._query),this.debounceFunction=null,this.previousQuery=this._query},300))}get queryLength(){return this._query.length}get stixDataComponentsResults(){let e=[];return this.stixDataComponentLabels.forEach(t=>{e=e.concat(this.stixDataComponents.get(t).objects)}),e}constructor(e,t){this.dataService=e,this.viewModelsService=t,this.stixTypes=[],this.techniqueResults=[],this.stixDataComponents=new Map,this.stixDataComponentLabels=[],this.userClickedExpand=!1,this.expandedPanels={0:!0,1:!1,2:!1,3:!1,4:!1,5:!1,6:!1},this.fields=[{label:"name",field:"name",enabled:!0},{label:"ATT&CK ID",field:"attackID",enabled:!0},{label:"description",field:"description",enabled:!0},{label:"data sources",field:"datasources",enabled:!0}],this.previousQuery="",this._query=""}ngOnInit(){this.getResults()}filterAndSort(e,t="",r=!1){let i=this,a=e.filter(l=>!l.deprecated&&!l.revoked);if(""===t.trim())r?a.sort((l,d)=>{let h=l.isSubtechnique?l.parent.name:l.name,p=d.isSubtechnique?d.parent.name:d.name;return h.localeCompare(p)}):a.sort((l,d)=>l.name.toLowerCase().localeCompare(d.name.toLowerCase()));else{let l=new Set;a=a.filter(function(d){if(l.has(d.id))return!1;for(let h of i.fields)if(h.enabled&&d[h.field]?.toLowerCase().includes(t.trim().toLowerCase()))return l.add(d.id),!0;return!1})}return a}filterAndSortLabels(e,t){let r=e;return""===t.trim()?r.sort():r.filter(i=>i.toLowerCase().includes(t.trim().toLowerCase()))}getResults(e="",t=!1){""!=e.trim()&&e.includes(this.previousQuery)&&!t?(this.techniqueResults=this.filterAndSort(this.techniqueResults,e,!0),this.stixTypes.forEach(r=>r.objects=this.filterAndSort(r.objects,e))):(this.getTechniques(),this.getStixData()),this.stixDataComponentLabels=this.filterAndSortLabels(this.stixDataComponentLabels,e),this.expandPanels()}expandPanels(){if(this.userClickedExpand){let e=!1;for(const t in this.expandedPanels)if(t){e=!0;break}this.userClickedExpand=e}else{this.expandedPanels[0]=this.techniqueResults.length>0;let e=this.expandedPanels[0];e||this.stixTypes.forEach((t,r)=>{this.expandedPanels[r+1]=!e&&t.objects.length>0,e=t.isExpanded}),this.expandedPanels[4]=!e&&this.stixDataComponentLabels.length>0}}getTechniques(){let e=this.dataService.getDomain(this.viewModel.domainVersionID).techniques;for(let t of e)e=e.concat(t.subtechniques);this.techniqueResults=this.filterAndSort(e,this._query,!0)}getStixData(){let e=this.dataService.getDomain(this.viewModel.domainVersionID);this.stixTypes=[{label:"threat groups",objects:this.filterAndSort(e.groups,this._query)},{label:"software",objects:this.filterAndSort(e.software,this._query)},{label:"mitigations",objects:this.filterAndSort(e.mitigations,this._query)},{label:"campaigns",objects:this.filterAndSort(e.campaigns,this._query)},{label:"assets",objects:this.filterAndSort(e.assets,this._query)}],e.dataComponents.forEach(t=>{const r=t.source(this.viewModel.domainVersionID),i=`${r.name}: ${t.name}`,a={objects:t.techniques(this.viewModel.domainVersionID),url:r.url};this.stixDataComponents.set(i,a)}),this.stixDataComponentLabels=this.filterAndSortLabels(Array.from(this.stixDataComponents.keys()),this._query)}toggleFieldEnabled(e){for(let t of this.fields)if(t.field==e){t.enabled=!t.enabled,this.getResults("",!0);break}}mouseEnterAll(e){e.forEach(t=>this.mouseEnter(t))}mouseEnter(e,t=!0){if(t)this.viewModel.highlightTechnique(e);else for(let r of this.getRelated(e))this.viewModel.selectTechniqueAcrossTactics(r,!0,!0)}mouseLeave(){this.viewModel.clearHighlight()}select(e,t=!0){if(t)this.viewModel.selectTechniqueAcrossTactics(e);else if(!t)for(let r of this.getRelated(e))this.viewModel.selectTechniqueAcrossTactics(r);this.viewModelsService.onSelectionChange.emit()}deselect(e,t=!0){if(t)this.viewModel.unselectTechniqueAcrossTactics(e);else if(!t)for(let r of this.getRelated(e))this.viewModel.unselectTechniqueAcrossTactics(r);this.viewModelsService.onSelectionChange.emit()}selectAll(e,t=!0){if(t)for(let r of e)this.select(r,t);else if(!t)for(let r of e)this.select(r,t);this.viewModelsService.onSelectionChange.emit()}deselectAll(e,t=!0){if(t)for(let r of e)this.deselect(r,t);else if(!t)for(let r of e)this.deselect(r,t);this.viewModelsService.onSelectionChange.emit()}getRelated(e){let r=this.dataService.getDomain(this.viewModel.domainVersionID).techniques.concat(this.dataService.getDomain(this.viewModel.domainVersionID).subtechniques),i=this.viewModel.domainVersionID;return e instanceof JW||e instanceof nG||e instanceof tG||e instanceof QW||e instanceof iG?r.filter(a=>e.relatedTechniques(i).includes(a.id)):void 0}static#e=this.ctorParameters=()=>[{type:Gl},{type:wl}];static#t=this.propDecorators={viewModel:[{type:ha}]}};OL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-search-and-multiselect",template:'
    \n \n\n \n\n \n\n \n\n \n
    \n',encapsulation:Ei.None,styles:[WPe()]})],OL);var YPe=mt(7426),KPe=mt.n(YPe);let RL=class extends Ste{get techniqueVM(){return this.viewModel.getTechniqueVM(this.technique,this.tactic)}get links(){return this.techniqueVM.links}constructor(e,t,r){super(e),this.element=e,this.configService=t,this.viewModelsService=r,this.close=new cn}ngOnInit(){this.placement=this.getPosition()}closeContextmenu(){this.close.emit()}select(){this.viewModel.clearSelectedTechniques(),this.viewModel.selectTechnique(this.technique,this.tactic),this.closeContextmenu()}addSelection(){this.viewModel.selectTechnique(this.technique,this.tactic),this.closeContextmenu()}removeSelection(){this.viewModel.unselectTechnique(this.technique,this.tactic),this.closeContextmenu()}selectAll(){this.viewModel.selectAllTechniques(),this.closeContextmenu()}deselectAll(){this.viewModel.clearSelectedTechniques(),this.closeContextmenu()}invertSelection(){this.viewModel.invertSelection(),this.closeContextmenu()}selectAnnotated(){this.viewModel.selectAnnotated(),this.closeContextmenu()}selectUnannotated(){this.viewModel.selectUnannotated(),this.closeContextmenu()}selectAllInTactic(){this.viewModel.selectAllTechniquesInTactic(this.tactic),this.closeContextmenu()}deselectAllInTactic(){this.viewModel.unselectAllTechniquesInTactic(this.tactic),this.closeContextmenu()}viewTechnique(){window.open(this.technique.url,"_blank"),this.closeContextmenu()}viewTactic(){window.open(this.tactic.url,"_blank"),this.closeContextmenu()}pinCell(){this.viewModelsService.pinnedCell=this.viewModelsService.pinnedCell===this.techniqueVM.technique_tactic_union_id?"":this.techniqueVM.technique_tactic_union_id,this.closeContextmenu()}openCustomContextMenuItem(e){window.open(e.getReplacedURL(this.technique,this.tactic),"_blank"),this.closeContextmenu()}openLink(e){window.open(e.url),this.closeContextmenu()}static#e=this.ctorParameters=()=>[{type:jn},{type:Ys},{type:wl}];static#t=this.propDecorators={technique:[{type:ha}],tactic:[{type:ha}],viewModel:[{type:ha}],close:[{type:rg}]}};RL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-contextmenu",template:'
    \n \x3c!-- covers entire screen --\x3e\n
    \n \x3c!-- the actual menu --\x3e\n
    \n
    \n
    {{ technique.name }} ({{ technique.attackID }})
    \n
    \n
    \n
    pin/unpin tooltip
    \n
    \n
    \n
    select
    \n
    add to selection
    \n
    remove from selection
    \n
    \n
    \n
    select all
    \n
    deselect all
    \n
    invert selection
    \n
    \n
    \n
    select annotated
    \n
    select unannotated
    \n
    \n
    \n
    select all techniques in tactic
    \n
    deselect all techniques in tactic
    \n
    \n
    \n
    view technique
    \n
    view tactic
    \n
    \n
    \n \n {{ contextMenuItem.label }}\n
    \n
    \n
    \n \n
    \n
    \n\n',encapsulation:Ei.None,styles:[KPe()]})],RL);var JPe=mt(3372),e9e=mt.n(JPe);let FL=class{constructor(){}ngOnInit(){}static#e=this.ctorParameters=()=>[];static#t=this.propDecorators={tactic:[{type:ha}],viewModel:[{type:ha}]}};FL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"tactic-cell",template:'\n {{ tactic.attackID }}\n
    \n {{ tactic.name }}\n\n',encapsulation:Ei.None,styles:[e9e()]})],FL);var r9e=mt(8870),i9e=mt.n(r9e);let PL=class{constructor(e){this.dataService=e,this.reloadToggle=!0}ngOnChanges(){this.reloadToggle=!1,setTimeout(()=>this.reloadToggle=!0)}static#e=this.ctorParameters=()=>[{type:Gl}];static#t=this.propDecorators={viewModel:[{type:ha}]}};PL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"sidebar",template:'\n',styles:[i9e()]})],PL);var s9e=mt(3946),l9e=mt.n(s9e);function c9e(n,e){if(1&n&&(Bt(0,"mat-option",16),xi(1),qt()),2&n){const t=e.$implicit;En("value",t),Gt(),_u(" ",t," ")}}function d9e(n,e){if(1&n){const t=Ai();Bt(0,"mat-form-field",13)(1,"mat-select",15),Fn("selectionChange",function(i){Cn(t);return kn(fn(2)._changePageSize(i.value))}),np(2,c9e,2,2,"mat-option",16,qs),qt()()}if(2&n){const t=fn(2);En("appearance",t._formFieldAppearance)("color",t.color),Gt(),En("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),Gt(),rp(t._displayedPageSizeOptions)}}function u9e(n,e){if(1&n&&(Bt(0,"div",14),xi(1),qt()),2&n){const t=fn(2);Gt(),Xa(t.pageSize)}}function h9e(n,e){if(1&n&&(Bt(0,"div",2)(1,"div",12),xi(2),qt(),sr(3,d9e,4,7,"mat-form-field",13)(4,u9e,2,1,"div",14),qt()),2&n){const t=fn();Gt(),vr("id",t._pageSizeLabelId),Gt(),_u(" ",t._intl.itemsPerPageLabel," "),Gt(),yi(3,t._displayedPageSizeOptions.length>1?3:-1),Gt(),yi(4,t._displayedPageSizeOptions.length<=1?4:-1)}}function f9e(n,e){if(1&n){const t=Ai();Bt(0,"button",17),Fn("click",function(){Cn(t);return kn(fn().firstPage())}),Fs(),Bt(1,"svg",7),kr(2,"path",18),qt()()}if(2&n){const t=fn();En("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),vr("aria-label",t._intl.firstPageLabel)}}function p9e(n,e){if(1&n){const t=Ai();Bt(0,"button",19),Fn("click",function(){Cn(t);return kn(fn().lastPage())}),Fs(),Bt(1,"svg",7),kr(2,"path",20),qt()()}if(2&n){const t=fn();En("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),vr("aria-label",t._intl.lastPageLabel)}}class rb{constructor(){this.changes=new ln,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const i=e*t;return`${i+1} \u2013 ${i<(r=Math.max(r,0))?Math.min(i+t,r):i+t} of ${r}`}}static#e=this.\u0275fac=function(t){return new(t||rb)};static#t=this.\u0275prov=_n({token:rb,factory:rb.\u0275fac,providedIn:"root"})}const g9e={provide:rb,deps:[[new El,new sd,rb]],useFactory:function m9e(n){return n||new rb}};const v9e=new pn("MAT_PAGINATOR_DEFAULT_OPTIONS");let y9e=0;class wy{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>cs(t,0)),this._updateDisplayedPageSizeOptions()}constructor(e,t,r){if(this._intl=e,this._changeDetectorRef=t,this._pageSizeLabelId="mat-paginator-page-size-label-"+y9e++,this._isInitialized=!1,this._initializedStream=new i$(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new cn,this.initialized=this._initializedStream,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:i,pageSizeOptions:a,hidePageSize:l,showFirstLastButtons:d}=r;null!=i&&(this._pageSize=i),null!=a&&(this._pageSizeOptions=a),null!=l&&(this.hidePageSize=l),null!=d&&(this.showFirstLastButtons=d)}this._formFieldAppearance=r?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(t){return new(t||wy)(Ve(rb),Ve(mo),Ve(v9e,8))};static#t=this.\u0275cmp=Tr({type:wy,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[Ft.HasDecoratorInputTransform,"pageIndex","pageIndex",cs],length:[Ft.HasDecoratorInputTransform,"length","length",cs],pageSize:[Ft.HasDecoratorInputTransform,"pageSize","pageSize",cs],pageSizeOptions:"pageSizeOptions",hidePageSize:[Ft.HasDecoratorInputTransform,"hidePageSize","hidePageSize",fr],showFirstLastButtons:[Ft.HasDecoratorInputTransform,"showFirstLastButtons","showFirstLastButtons",fr],selectConfig:"selectConfig",disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[Gi,qr],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,r){1&t&&(Bt(0,"div",0)(1,"div",1),sr(2,h9e,5,4,"div",2),Bt(3,"div",3)(4,"div",4),xi(5),qt(),sr(6,f9e,3,5,"button",5),Bt(7,"button",6),Fn("click",function(){return r.previousPage()}),Fs(),Bt(8,"svg",7),kr(9,"path",8),qt()(),Ib(),Bt(10,"button",9),Fn("click",function(){return r.nextPage()}),Fs(),Bt(11,"svg",7),kr(12,"path",10),qt()(),sr(13,p9e,3,5,"button",11),qt()()()),2&t&&(Gt(2),yi(2,r.hidePageSize?-1:2),Gt(3),_u(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),Gt(),yi(6,r.showFirstLastButtons?6:-1),Gt(),En("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),vr("aria-label",r._intl.previousPageLabel),Gt(3),En("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),vr("aria-label",r._intl.nextPageLabel),Gt(3),yi(13,r.showFirstLastButtons?13:-1))},dependencies:[Tg,Ng,_0,X1,nw],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}class vN{static#e=this.\u0275fac=function(t){return new(t||vN)};static#t=this.\u0275mod=$n({type:vN,imports:[Sp,T0,L0,wy],exports:[wy]});static#n=this.\u0275inj=Er({providers:[g9e],imports:[Sp,T0,L0,wy]})}let BL=class{constructor(e){this.dataService=e,this.paginators=new lo,this.paginator_map=new Map,this.filteredIDs=[],this.sections=["additions","changes","minor_changes","revocations","deprecations","unchanged"],this.filter={changes:!1,minor_changes:!1,revocations:!1,deprecations:!1,unchanged:!1},this.loading=!1,this.descriptions={additions:"The following techniques have been added to the dataset since the layer was created. You can review the techniques below to identify which may require annotations. Annotations may be added using the 'technique controls' in the toolbar.",changes:"The following techniques have undergone major changes since the layer was created such as changes to scope or technique name. You can view the annotations you had previously added, map them to the current ATT&CK version, and adjust them as needed. You can also review the previous and current technique definitions by clicking the version numbers in each row.",minor_changes:"The following techniques have had minor revisions since the layer was created such as typo corrections. The annotations have automatically been copied for these techniques, but you can review them if desired. You can also view the previous and current technique definitions by clicking the version numbers under the technique.",revocations:"These are techniques which have been replaced by other techniques since the layer was created. You can view the replacing techniques and transfer annotations from the replaced techniques, adjusting them as nessecary. You can also review the replaced and replacing technique definitions by clicking the version numbers under the technique.",deprecations:"These are techniques which have been removed from the dataset. You can view any annotations you had previously added to these techniques.",unchanged:"These are techniques which have not changed since the uploaded layer's ATT&CK version. The annotations have automatically been copied for these techniques, but you can review them if desired.",finish:"The overview below indicates either the number of techniques you have reviewed in a section, if you have skipped a section, or if there are no techniques to review in that section. Annotations mapped to the current version have been saved to the new layer.\n\nVerify your changes and click 'Done' to complete the layer upgrade workflow. Once completed you cannot return to this workflow."}}ngOnInit(){this.changelog=this.viewModel.versionChangelog,this.compareTo=this.viewModel.compareTo;let e=0;for(let t of this.sections)this.changelog[t].length&&this.paginator_map.set(t,e++);this.applyFilters(this.sections[0]),this.wait()}wait(){this.loading=!0,setTimeout(()=>this.loading=!1,1e3)}getHeader(e){return e.split(/[_-]+/).map(t=>t.charAt(0).toUpperCase()+t.substring(1)).join(" ")}getPreservedURL(e){let t=this.getTechnique(e,this.compareTo).url,r=t.search("/techniques");return t.substring(0,r)+"/versions/v"+this.compareTo.version+t.substring(r)}disableFilter(e){return!this.changelog[e].filter(t=>this.anyAnnotated(t)).length}applyFilters(e){let t=this.changelog[e];this.filter[e]&&(t=t.filter(d=>this.anyAnnotated(d)));let r=this.paginator_map.get(e),i=this.paginators.toArray()[r];i&&i.pageIndex*i.pageSize>t.length&&(i.pageIndex=0);let a=i?i.pageIndex*i.pageSize:0,l=i?a+i.pageSize:10;this.filteredIDs=t.slice(a,l),setTimeout(()=>{this.expandAll(e)})}onStepChange(e,t){let r=this.sections.findIndex(i=>i===e);if(r+t0&&this.wait()}}getTechnique(e,t,r){let i=this.dataService.getDomain(t.domainVersionID),a=i.techniques.concat(i.subtechniques),l=a.find(d=>d.attackID==e);if("revocations"==r&&this.viewModel.version==t.version){let d=l.revoked_by(t.domainVersionID);return a.find(p=>p.id==d)}return l}getTactics(e,t,r){"additions"==r&&(t=this.viewModel);let i=this.getTechnique(e,t,r),a=this.dataService.getDomain(t.domainVersionID);return i.tactics.map(l=>a.tactics.find(d=>d.shortname==l))}tacticsChanged(e,t){if("deprecations"==t||"additions"==t)return!1;let r=this.getTechnique(e,this.compareTo),i=this.getTechnique(e,this.viewModel,t);if(!r.tactics&&!i.tactics)return!1;if(r.tactics.length!==i.tactics.length)return!0;let a=function(h,p){return hp?1:0},l=r.tactics.sort(a),d=i.tactics.sort(a);return!l.every((h,p)=>h===d[p])}isReviewed(e){return this.changelog.reviewed.has(e)}reviewedChanged(e,t){this.isReviewed(e)?this.changelog.reviewed.delete(e):(this.changelog.reviewed.add(e),t.expanded=!1)}expandAll(e){let t=document.getElementById("filter_expand_visible_"+e);this.panels.forEach(r=>{t.checked?r.open():r.close()})}reviewAll(e){let t=this.changelog[e];if(document.getElementById("filter_review_all_"+e).checked)for(let i of t)this.changelog.reviewed.add(i);else for(let i of t)this.changelog.reviewed.delete(i)}countReviewed(e){return this.changelog[e].filter(t=>this.changelog.reviewed.has(t)).length}getDescription(e){return this.descriptions[e]}anyAnnotated(e){let t=this.getTechnique(e,this.compareTo);if(t){let r=t.get_all_technique_tactic_ids();for(let i of r)if(this.compareTo.getTechniqueVM_id(i).annotated())return!0}return!1}isAnnotated(e,t,r){return r.getTechniqueVM(e,t).annotated()}sectionLength(e){return this.filter[e]?this.changelog[e].filter(t=>this.anyAnnotated(t)).length:this.changelog[e].length}isCopied(e,t){return!!this.changelog.copied.has(e.get_technique_tactic_id(t))}copyAnnotations(e,t,r){let i=this.getTechnique(e,this.compareTo),a=this.getTechnique(e,this.viewModel,r);this.viewModel.copyAnnotations(i,a,t)}revertCopy(e,t,r){let i=this.getTechnique(e,this.compareTo),a=this.getTechnique(e,this.viewModel,r);this.viewModel.revertCopy(i,a,t)}onDrop(e,t,r,i){let a=e.data.split("^")[0];if(this.getTechnique(a,this.viewModel,i).id===t.id){let d=this.compareTo.getTechniqueVM_id(e.data),h=this.viewModel.getTechniqueVM(t,r),p=d.serialize();h.resetAnnotations(),h.deserialize(p,t.attackID,r.shortname),this.viewModel.updateScoreColor(h)}}clearAnnotations(e,t){this.viewModel.getTechniqueVM(e,t).resetAnnotations()}closeSidebar(){this.viewModel.sidebarOpened=!this.viewModel.sidebarOpened,this.viewModel.sidebarContentType=""}static#e=this.ctorParameters=()=>[{type:Gl}];static#t=this.propDecorators={viewModel:[{type:ha}],paginators:[{type:tI,args:[wy]}],panels:[{type:tI,args:[zg]}],stepper:[{type:Bm,args:["stepper"]}]}};BL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"layer-upgrade",template:'\n\n
    \n \n \n \x3c!-- title --\x3e\n
    \n

    Layer Upgrade

    \n (ATT&CK v{{ compareTo.version }}\n east\n ATT&CK v{{ viewModel.version }})\n
    \n

    \n Review techniques which have been added, changed, replaced, or removed from the knowledge base since ATT&CK v{{ compareTo.version }}\n and update your Navigator layer to reflect these changes.\n

    \n

    \n View Versions of ATT&CK\n

    \n
    \n
    \n\n \n\n \n \n Review {{ getHeader(section) }}\n\n
    \n {{ desc }}\n
    \n\n \n\n
    \n

    Options

    \n
    \n \n \n show annotated techniques only\n \n
    \n \n \n mark all as reviewed\n \n \n \n expand visible techniques\n \n\n
    \n \n
    \n\n \n
    \n \n \n \n \n check_circle_outline\n radio_button_unchecked\n {{ attackID }}: {{ getTechnique(attackID, viewModel).name }}\n \n \n \n
    \n \n
    \n east\n
    \n
    \n
    \n \n ATT&CK v{{ viewModel.version }}\n \n
    \n \n
    \n
    \n\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n
    \n \n info_outline\n \n
    \n\n
    \n \n \n\n \n x\n \n
    \n
    \n
    \n\n
    \n \n \n \n \n \n \n
    \n \n \n \n chevron_right\n \n \n chevron_left\n \n \n \n
    \n
    \n\n
    \n \n \n
    \n \n \n \n
    \n \n \n
    \n\n
    \n
    No objects to show
    \n
    \n \n
    \n Reviewed {{ countReviewed(section) }}/{{ sectionLength(section) }} techniques\n \n \n
    \n \n\n \n Finish\n\n
    \n {{ getDescription(\'finish\') }}\n
    \n\n \n\n

    Overview

    \n
    \n {{ getHeader(section) }}: \n \n Reviewed {{ countReviewed(section) }}/{{ sectionLength(section) }} {{ filter[section] ? \'annotated\' : \'\' }} techniques\n \n No objects to review\n Skipped\n
    \n\n \n\n
    \n \n \n
    \n
    \n \n\n',encapsulation:Ei.None,styles:[l9e()]})],BL);var w9e=mt(4847),C9e=mt.n(w9e);let LL=class extends bN{constructor(e,t,r){super(t,e),this.configService=e,this.dataService=t,this.viewModelsService=r,this.isCurrentVersion=!0,this.isDraggable=!1}highlight(){this.isCurrentVersion&&this.viewModel.highlightTechnique(this.technique,this.tactic)}unhighlight(){this.isCurrentVersion&&this.viewModel.clearHighlight()}onClick(){this.isCurrentVersion&&(this.viewModel.isTechniqueSelected(this.technique,this.tactic)?this.viewModel.unselectTechnique(this.technique,this.tactic):(this.viewModel.clearSelectedTechniques(),this.viewModel.selectTechnique(this.technique,this.tactic)),this.viewModelsService.selectionChanged())}getClass(){let e=super.getClass();return!this.isCurrentVersion&&!this.isDraggable&&(e+=" nopointer"),("additions"==this.section||"deprecations"==this.section)&&(e+=" setwidth"),e}static#e=this.ctorParameters=()=>[{type:Ys},{type:Gl},{type:wl}];static#t=this.propDecorators={isCurrentVersion:[{type:ha}],isDraggable:[{type:ha}],section:[{type:ha}]}};LL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"changelog-cell",template:'
    \n
    \n
    \n \n {{ tactic.name }}\n \n
    \n
    \n {{ technique.attackID }}\n
    \n
    \n {{ technique.name }}\n
    \n
    \n
    \n',encapsulation:Ei.None,styles:[C9e()]})],LL);const E9e=["*"],S9e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],A9e=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],D9e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],M9e=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],T9e=new pn("MAT_CARD_CONFIG");class Xw{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(t){return new(t||Xw)(Ve(T9e,8))};static#t=this.\u0275cmp=Tr({type:Xw,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(t,r){2&t&&Jn("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[qr],ngContentSelectors:E9e,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}class Yw{static#e=this.\u0275fac=function(t){return new(t||Yw)};static#t=this.\u0275dir=hn({type:Yw,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0})}class Kw{static#e=this.\u0275fac=function(t){return new(t||Kw)};static#t=this.\u0275cmp=Tr({type:Kw,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],standalone:!0,features:[qr],ngContentSelectors:A9e,decls:4,vars:0,template:function(t,r){1&t&&(Ri(S9e),Bt(0,"div"),rr(1),qt(),rr(2,1),rr(3,2))},encapsulation:2,changeDetection:0})}class Zw{static#e=this.\u0275fac=function(t){return new(t||Zw)};static#t=this.\u0275dir=hn({type:Zw,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0})}class Qw{static#e=this.\u0275fac=function(t){return new(t||Qw)};static#t=this.\u0275dir=hn({type:Qw,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"],standalone:!0})}class Jw{constructor(){this.align="start"}static#e=this.\u0275fac=function(t){return new(t||Jw)};static#t=this.\u0275dir=hn({type:Jw,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(t,r){2&t&&Jn("mat-mdc-card-actions-align-end","end"===r.align)},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0})}class e2{static#e=this.\u0275fac=function(t){return new(t||e2)};static#t=this.\u0275cmp=Tr({type:e2,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[qr],ngContentSelectors:M9e,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(t,r){1&t&&(Ri(D9e),rr(0),Bt(1,"div",0),rr(2,1),qt(),rr(3,2))},encapsulation:2,changeDetection:0})}class t2{static#e=this.\u0275fac=function(t){return new(t||t2)};static#t=this.\u0275dir=hn({type:t2,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"],standalone:!0})}class n2{static#e=this.\u0275fac=function(t){return new(t||n2)};static#t=this.\u0275dir=hn({type:n2,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"],standalone:!0})}class r2{static#e=this.\u0275fac=function(t){return new(t||r2)};static#t=this.\u0275dir=hn({type:r2,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"],standalone:!0})}class i2{static#e=this.\u0275fac=function(t){return new(t||i2)};static#t=this.\u0275dir=hn({type:i2,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"],standalone:!0})}class o2{static#e=this.\u0275fac=function(t){return new(t||o2)};static#t=this.\u0275dir=hn({type:o2,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-mdc-card-lg-image","mdc-card__media"],standalone:!0})}class a2{static#e=this.\u0275fac=function(t){return new(t||a2)};static#t=this.\u0275dir=hn({type:a2,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-mdc-card-xl-image","mdc-card__media"],standalone:!0})}class s2{static#e=this.\u0275fac=function(t){return new(t||s2)};static#t=this.\u0275dir=hn({type:s2,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"],standalone:!0})}class yN{static#e=this.\u0275fac=function(t){return new(t||yN)};static#t=this.\u0275mod=$n({type:yN,imports:[er,Ea,Xw,Jw,s2,Zw,t2,e2,n2,o2,i2,r2,Qw,Yw,Kw,a2],exports:[Xw,Jw,s2,Zw,t2,e2,n2,o2,i2,r2,Qw,Yw,Kw,a2,er]});static#n=this.\u0275inj=Er({imports:[er,Ea,er]})}class sD{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=yc(e)}get inset(){return this._inset}set inset(e){this._inset=yc(e)}static#e=this.\u0275fac=function(t){return new(t||sD)};static#t=this.\u0275cmp=Tr({type:sD,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,r){2&t&&(vr("aria-orientation",r.vertical?"vertical":"horizontal"),Jn("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[qr],decls:0,vars:0,template:function(t,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}class _N{static#e=this.\u0275fac=function(t){return new(t||_N)};static#t=this.\u0275mod=$n({type:_N,imports:[er,sD],exports:[sD,er]});static#n=this.\u0275inj=Er({imports:[er,er]})}const I9e=["*"];function N9e(n,e){1&n&&rr(0)}class Cy{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}static#e=this.\u0275fac=function(t){return new(t||Cy)(Ve(jn))};static#t=this.\u0275dir=hn({type:Cy,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}class ky{constructor(e){this.template=e}static#e=this.\u0275fac=function(t){return new(t||ky)(Ve($o))};static#t=this.\u0275dir=hn({type:ky,selectors:[["","cdkStepLabel",""]],standalone:!0})}let O9e=0;const $p_NUMBER="number",$p_EDIT="edit",$p_DONE="done",$p_ERROR="error",Ate=new pn("STEPPER_GLOBAL_OPTIONS");class ib{get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new cn,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}static#e=this.\u0275fac=function(t){return new(t||ib)(Ve(Gn(()=>Yh)),Ve(Ate,8))};static#t=this.\u0275cmp=Tr({type:ib,selectors:[["cdk-step"]],contentQueries:function(t,r,i){if(1&t&&ho(i,ky,5),2&t){let a;or(a=ar())&&(r.stepLabel=a.first)}},viewQuery:function(t,r){if(1&t&&_i($o,7),2&t){let i;or(i=ar())&&(r.content=i.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[Ft.None,"aria-label","ariaLabel"],ariaLabelledby:[Ft.None,"aria-labelledby","ariaLabelledby"],state:"state",editable:[Ft.HasDecoratorInputTransform,"editable","editable",fr],optional:[Ft.HasDecoratorInputTransform,"optional","optional",fr],completed:[Ft.HasDecoratorInputTransform,"completed","completed",fr],hasError:[Ft.HasDecoratorInputTransform,"hasError","hasError",fr]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[Gi,Ui,qr],ngContentSelectors:I9e,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),sr(0,N9e,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}class Yh{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new ln,this.steps=new lo,this._sortedHeaders=new lo,this.linear=!1,this._selectedIndex=0,this.selectionChange=new cn,this.selectedIndexChange=new cn,this._orientation="horizontal",this._groupId=O9e++}ngAfterContentInit(){this._steps.changes.pipe(Sa(this._steps),jr(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Sa(this._stepHeader),jr(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new J4(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:As()).pipe(Sa(this._layoutDirection()),jr(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t=$p_NUMBER){const r=this.steps.toArray()[e],i=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,i):this._getGuidelineLogic(r,i,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?$p_ERROR:!e.completed||t?$p_NUMBER:e.editable?$p_EDIT:$p_DONE}_getGuidelineLogic(e,t,r=$p_NUMBER){return e._showError()&&e.hasError&&!t?$p_ERROR:e.completed&&!t?$p_DONE:e.completed&&t?r:e.editable&&t?$p_EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){const t=Yc(e),r=e.keyCode,i=this._keyManager;null==i.activeItemIndex||t||32!==r&&13!==r?i.setFocusOrigin("keyboard").onKeydown(e):(this.selectedIndex=i.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this.linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=uS();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e({step:n,i:e}),Tte=n=>({animationDuration:n}),Ite=(n,e)=>({value:n,params:e});function W9e(n,e){1&n&&rr(0)}function G9e(n,e){1&n&&kr(0,"div",6)}function X9e(n,e){if(1&n&&(fl(0,5),sr(1,G9e,1,0,"div",6)),2&n){const t=e.$implicit,r=e.$index,i=e.$index,a=e.$count;fn(2);En("ngTemplateOutlet",Eh(4))("ngTemplateOutletContext",qx(3,Mte,t,r)),Gt(),yi(1,i!==a-1?1:-1)}}function Y9e(n,e){if(1&n){const t=Ai();Bt(0,"div",7),Fn("@horizontalStepTransition.done",function(i){Cn(t);return kn(fn(2)._animationDone.next(i))}),fl(1,8),qt()}if(2&n){const t=e.$implicit,r=e.$index,i=fn(2);Jn("mat-horizontal-stepper-content-inactive",i.selectedIndex!==r),En("@horizontalStepTransition",qx(8,Ite,i._getAnimationDirection(r),N3(6,Tte,i._getAnimationDuration())))("id",i._getStepContentId(r)),vr("aria-labelledby",i._getStepLabelId(r)),Gt(),En("ngTemplateOutlet",t.content)}}function K9e(n,e){if(1&n&&(Bt(0,"div",1)(1,"div",2),np(2,X9e,2,6,null,null,qs),qt(),Bt(4,"div",3),np(5,Y9e,2,11,"div",4,qs),qt()()),2&n){const t=fn();Gt(2),rp(t.steps),Gt(3),rp(t.steps)}}function Z9e(n,e){if(1&n){const t=Ai();Bt(0,"div",9),fl(1,5),Bt(2,"div",10)(3,"div",11),Fn("@verticalStepTransition.done",function(i){Cn(t);return kn(fn(2)._animationDone.next(i))}),Bt(4,"div",12),fl(5,8),qt()()()()}if(2&n){const t=e.$implicit,r=e.$index,i=e.$index,a=e.$count,l=fn(2),d=Eh(4);Gt(),En("ngTemplateOutlet",d)("ngTemplateOutletContext",qx(10,Mte,t,r)),Gt(),Jn("mat-stepper-vertical-line",i!==a-1),Gt(),Jn("mat-vertical-stepper-content-inactive",l.selectedIndex!==r),En("@verticalStepTransition",qx(15,Ite,l._getAnimationDirection(r),N3(13,Tte,l._getAnimationDuration())))("id",l._getStepContentId(r)),vr("aria-labelledby",l._getStepLabelId(r)),Gt(2),En("ngTemplateOutlet",t.content)}}function Q9e(n,e){if(1&n&&np(0,Z9e,6,18,"div",9,qs),2&n){rp(fn().steps)}}function J9e(n,e){if(1&n){const t=Ai();Bt(0,"mat-step-header",13),Fn("click",function(){return kn(Cn(t).step.select())})("keydown",function(i){Cn(t);return kn(fn()._onKeydown(i))}),qt()}if(2&n){const t=e.step,r=e.i,i=fn();Jn("mat-horizontal-stepper-header","horizontal"===i.orientation)("mat-vertical-stepper-header","vertical"===i.orientation),En("tabIndex",i._getFocusIndex()===r?0:-1)("id",i._getStepLabelId(r))("index",r)("state",i._getIndicatorType(r,t.state))("label",t.stepLabel||t.label)("selected",i.selectedIndex===r)("active",i._stepIsNavigable(r,t))("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!i._stepIsNavigable(r,t))("color",t.color||i.color),vr("aria-posinset",r+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(r))("aria-selected",i.selectedIndex==r)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)("aria-disabled",!i._stepIsNavigable(r,t)||null)}}class Wp extends ky{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(Wp)))(r||Wp)}})();static#t=this.\u0275dir=hn({type:Wp,selectors:[["","matStepLabel",""]],standalone:!0,features:[hr]})}class ob{constructor(){this.changes=new ln,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static#e=this.\u0275fac=function(t){return new(t||ob)};static#t=this.\u0275prov=_n({token:ob,factory:ob.\u0275fac,providedIn:"root"})}const t7e={provide:ob,deps:[[new El,new sd,ob]],useFactory:function e7e(n){return n||new ob}};class ab extends Cy{constructor(e,t,r,i){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof Wp?null:this.label}_templateLabel(){return this.label instanceof Wp?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}static#e=this.\u0275fac=function(t){return new(t||ab)(Ve(ob),Ve(jl),Ve(jn),Ve(mo))};static#t=this.\u0275cmp=Tr({type:ab,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,r){2&t&&ea("mat-"+(r.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[hr,qr],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,r){if(1&t&&(kr(0,"div",0),Bt(1,"div")(2,"div",1),sr(3,R9e,1,2,"ng-container",2)(4,z9e,2,1),qt()(),Bt(5,"div",3),sr(6,V9e,2,1,"div",4)(7,q9e,2,1)(8,j9e,2,1,"div",5)(9,U9e,2,1,"div",6),qt()),2&t){let i;En("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),Gt(),Rx("mat-step-icon-state-",r.state," mat-step-icon"),Jn("mat-step-icon-selected",r.selected),Gt(2),yi(3,r.iconOverrides&&r.iconOverrides[r.state]?3:4),Gt(2),Jn("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error","error"==r.state),Gt(),yi(6,(i=r._templateLabel())?6:r._stringLabel()?7:-1,i),Gt(2),yi(8,r.optional&&"error"!=r.state?8:-1),Gt(),yi(9,"error"===r.state?9:-1)}},dependencies:[Hl,wu,ew],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0})}const Rte={horizontalStepTransition:vc("horizontalStepTransition",[fa("previous",Hi({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),fa("current",Hi({transform:"none",visibility:"inherit"})),fa("next",Hi({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Na("* => *",m4([ja("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),JE("@*",QE(),{optional:!0})]),{params:{animationDuration:"500ms"}})]),verticalStepTransition:vc("verticalStepTransition",[fa("previous",Hi({height:"0px",visibility:"hidden"})),fa("next",Hi({height:"0px",visibility:"hidden"})),fa("current",Hi({height:"*",visibility:"inherit"})),Na("* <=> current",m4([ja("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),JE("@*",QE(),{optional:!0})]),{params:{animationDuration:"225ms"}})])};class d2{constructor(e){this.templateRef=e}static#e=this.\u0275fac=function(t){return new(t||d2)(Ve($o))};static#t=this.\u0275dir=hn({type:d2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[Ft.None,"matStepperIcon","name"]},standalone:!0})}class u2{constructor(e){this._template=e}static#e=this.\u0275fac=function(t){return new(t||u2)(Ve($o))};static#t=this.\u0275dir=hn({type:u2,selectors:[["ng-template","matStepContent",""]],standalone:!0})}class sb extends ib{constructor(e,t,r,i){super(e,i),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=ke.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Bh(()=>this._stepper.selectionChange.pipe(kt(e=>e.selectedStep===this),Sa(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Lh(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){const r=this._errorStateMatcher.isErrorState(e,t),i=!!(e&&e.invalid&&this.interacted);return r||i}static#e=this.\u0275fac=function(t){return new(t||sb)(Ve(Gn(()=>lb)),Ve(xp,4),Ve(Wo),Ve(Ate,8))};static#t=this.\u0275cmp=Tr({type:sb,selectors:[["mat-step"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,Wp,5),ho(i,u2,5)),2&t){let a;or(a=ar())&&(r.stepLabel=a.first),or(a=ar())&&(r._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[Ir([{provide:xp,useExisting:sb},{provide:ib,useExisting:sb}]),hr,qr],ngContentSelectors:Dte,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,r){1&t&&(Ri(),sr(0,$9e,2,1,"ng-template"))},dependencies:[Ws],encapsulation:2,changeDetection:0})}class lb extends Yh{get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}constructor(e,t,r){super(e,t,r),this._stepHeader=void 0,this._steps=void 0,this.steps=new lo,this.animationDone=new cn,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new ln,this._animationDuration="",this._isServer=!xn(Fi).isBrowser;const i=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===i?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(jr(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(p0((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),jr(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}static#e=this.\u0275fac=function(t){return new(t||lb)(Ve(pa,8),Ve(mo),Ve(jn))};static#t=this.\u0275cmp=Tr({type:lb,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,r,i){if(1&t&&(ho(i,sb,5),ho(i,d2,5)),2&t){let a;or(a=ar())&&(r._steps=a),or(a=ar())&&(r._icons=a)}},viewQuery:function(t,r){if(1&t&&_i(ab,5),2&t){let i;or(i=ar())&&(r._stepHeader=i)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(t,r){2&t&&(vr("aria-orientation",r.orientation),Jn("mat-stepper-horizontal","horizontal"===r.orientation)("mat-stepper-vertical","vertical"===r.orientation)("mat-stepper-label-position-end","horizontal"===r.orientation&&"end"==r.labelPosition)("mat-stepper-label-position-bottom","horizontal"===r.orientation&&"bottom"==r.labelPosition)("mat-stepper-header-position-bottom","bottom"===r.headerPosition))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[Ir([{provide:Yh,useExisting:lb}]),hr,qr],ngContentSelectors:Dte,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,r){if(1&t&&(Ri(),sr(0,W9e,1,0)(1,K9e,7,0)(2,Q9e,2,0)(3,J9e,1,23,"ng-template",null,0,O3)),2&t){let i;yi(0,r._isServer?0:-1),Gt(),yi(1,"horizontal"===(i=r.orientation)?1:"vertical"===i?2:-1)}},dependencies:[wu,ab],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Rte.horizontalStepTransition,Rte.verticalStepTransition]},changeDetection:0})}class h2 extends l2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(h2)))(r||h2)}})();static#t=this.\u0275dir=hn({type:h2,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,r){2&t&&js("type",r.type)},standalone:!0,features:[hr]})}class f2 extends c2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=xo(f2)))(r||f2)}})();static#t=this.\u0275dir=hn({type:f2,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,r){2&t&&js("type",r.type)},standalone:!0,features:[hr]})}class xN{static#e=this.\u0275fac=function(t){return new(t||xN)};static#t=this.\u0275mod=$n({type:xN,imports:[er,Ea,Gs,lD,B0,Mu,sb,Wp,lb,h2,f2,ab,d2,u2],exports:[er,sb,Wp,lb,h2,f2,ab,d2,u2]});static#n=this.\u0275inj=Er({providers:[t7e,xp],imports:[er,Ea,Gs,lD,B0,Mu,lb,ab,er]})}var r7e=mt(7138),i7e=mt.n(r7e);let zL=class{constructor(e){this.dataService=e}static#e=this.ctorParameters=()=>[{type:Gl}];static#t=this.propDecorators={viewModel:[{type:ha}]}};zL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-layer-settings",template:'
    \n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n
    ',encapsulation:Ei.None,styles:[i7e()]})],zL);const p2=["*"];function a7e(n,e){1&n&&rr(0)}const Fte=["tabListContainer"],Pte=["tabList"],Bte=["tabListInner"],Lte=["nextPaginator"],zte=["previousPaginator"],s7e=n=>({animationDuration:n}),l7e=(n,e)=>({value:n,params:e});function c7e(n,e){}const d7e=["tabBodyWrapper"],u7e=["tabHeader"];function h7e(n,e){}function f7e(n,e){if(1&n&&sr(0,h7e,0,0,"ng-template",12),2&n){En("cdkPortalOutlet",fn().$implicit.templateLabel)}}function p7e(n,e){if(1&n&&xi(0),2&n){Xa(fn().$implicit.textLabel)}}function m7e(n,e){if(1&n){const t=Ai();Bt(0,"div",7,2),Fn("click",function(){const i=Cn(t),a=i.$implicit,l=i.$index,d=fn(),h=Eh(1);return kn(d._handleClick(a,h,l))})("cdkFocusChange",function(i){const a=Cn(t).$index;return kn(fn()._tabFocusChanged(i,a))}),kr(2,"span",8)(3,"div",9),Bt(4,"span",10)(5,"span",11),sr(6,f7e,1,1,null,12)(7,p7e,1,1),qt()()()}if(2&n){const t=e.$implicit,r=e.$index,i=Eh(1),a=fn();ea(t.labelClass),Jn("mdc-tab--active",a.selectedIndex===r),En("id",a._getTabLabelId(r))("disabled",t.disabled)("fitInkBarToContent",a.fitInkBarToContent),vr("tabIndex",a._getTabIndex(r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex===r)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),Gt(3),En("matRippleTrigger",i)("matRippleDisabled",t.disabled||a.disableRipple),Gt(3),yi(6,t.templateLabel?6:7)}}function g7e(n,e){1&n&&rr(0)}function b7e(n,e){if(1&n){const t=Ai();Bt(0,"mat-tab-body",13),Fn("_onCentered",function(){Cn(t);return kn(fn()._removeTabBodyWrapperHeight())})("_onCentering",function(i){Cn(t);return kn(fn()._setTabBodyWrapperHeight(i))}),qt()}if(2&n){const t=e.$implicit,r=e.$index,i=fn();ea(t.bodyClass),Jn("mat-mdc-tab-body-active",i.selectedIndex===r),En("id",i._getTabContentId(r))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration)("preserveContent",i.preserveContent),vr("tabindex",null!=i.contentTabIndex&&i.selectedIndex===r?i.contentTabIndex:null)("aria-labelledby",i._getTabLabelId(r))("aria-hidden",i.selectedIndex!==r)}}const v7e=["mat-tab-nav-bar",""],y7e=["mat-tab-link",""],_7e=new pn("MatTabContent");class Ey{constructor(e){this.template=e}static#e=this.\u0275fac=function(t){return new(t||Ey)(Ve($o))};static#t=this.\u0275dir=hn({type:Ey,selectors:[["","matTabContent",""]],standalone:!0,features:[Ir([{provide:_7e,useExisting:Ey}])]})}const x7e=new pn("MatTabLabel"),Vte=new pn("MAT_TAB");class Sy extends Ig{constructor(e,t,r){super(e,t),this._closestTab=r}static#e=this.\u0275fac=function(t){return new(t||Sy)(Ve($o),Ve(Wo),Ve(Vte,8))};static#t=this.\u0275dir=hn({type:Sy,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[Ir([{provide:x7e,useExisting:Sy}]),hr]})}const qte=new pn("MAT_TAB_GROUP");class Ay{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,t){this._viewContainerRef=e,this._closestTabGroup=t,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new ln,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Lh(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(t){return new(t||Ay)(Ve(Wo),Ve(qte,8))};static#t=this.\u0275cmp=Tr({type:Ay,selectors:[["mat-tab"]],contentQueries:function(t,r,i){if(1&t&&(ho(i,Sy,5),ho(i,Ey,7,$o)),2&t){let a;or(a=ar())&&(r.templateLabel=a.first),or(a=ar())&&(r._explicitContent=a.first)}},viewQuery:function(t,r){if(1&t&&_i($o,7),2&t){let i;or(i=ar())&&(r._implicitContent=i.first)}},hostAttrs:["hidden",""],inputs:{disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr],textLabel:[Ft.None,"label","textLabel"],ariaLabel:[Ft.None,"aria-label","ariaLabel"],ariaLabelledby:[Ft.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[Ir([{provide:Vte,useExisting:Ay}]),Gi,Ui,qr],ngContentSelectors:p2,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),sr(0,a7e,1,0,"ng-template"))},encapsulation:2})}const VL="mdc-tab-indicator--active",jte="mdc-tab-indicator--no-transition";class Ute{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){const t=this._items.find(i=>i.elementRef.nativeElement===e),r=this._currentItem;if(t!==r&&(r?.deactivateInkBar(),t)){const i=r?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(i),this._currentItem=t}}}class cD{constructor(){this._elementRef=xn(jn),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){const t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement)return void t.classList.add(VL);const r=t.getBoundingClientRect(),i=e.width/r.width,a=e.left-r.left;t.classList.add(jte),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${i})`),t.getBoundingClientRect(),t.classList.remove(jte),t.classList.add(VL),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(VL)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(t){return new(t||cD)};static#t=this.\u0275dir=hn({type:cD,inputs:{fitInkBarToContent:[Ft.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",fr]},features:[Gi]})}new pn("MatInkBarPositioner",{providedIn:"root",factory:function w7e(){return e=>({left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"})}});class dD extends cD{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(t){return new(t||dD)(Ve(jn))};static#t=this.\u0275dir=hn({type:dD,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,r){2&t&&(vr("aria-disabled",!!r.disabled),Jn("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr]},standalone:!0,features:[Gi,hr]})}const Hte=cg({passive:!0});class uD{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}constructor(e,t,r,i,a,l,d){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=i,this._ngZone=a,this._platform=l,this._animationMode=d,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ln,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ln,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new cn,this.indexFocused=new cn,a.runOutsideAngular(()=>{Nh(e.nativeElement,"mouseleave").pipe(jr(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Nh(this._previousPaginator.nativeElement,"touchstart",Hte).pipe(jr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Nh(this._nextPaginator.nativeElement,"touchstart",Hte).pipe(jr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:As("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new J4(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(ds(1)).subscribe(r),$l(e,t,this._items.changes,this._itemsResized()).pipe(jr(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(i=>{this.indexFocused.emit(i),this._setTabFocus(i)})}_itemsResized(){return"function"!=typeof ResizeObserver?u1:this._items.changes.pipe(Sa(this._items),Bh(e=>new yr(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(i=>t.next(i));return e.forEach(i=>r.observe(i.elementRef.nativeElement)),()=>{r.disconnect()}}))),o7(1),Io(e=>e.some(t=>t.contentRect.width>0&&t.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Yc(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;"ltr"==this._getLayoutDirection()?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){const r=("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:a}=t.elementRef.nativeElement;let l,d;"ltr"==this._getLayoutDirection()?(l=i,d=l+a):(d=this._tabListInner.nativeElement.offsetWidth-i,l=d-a);const h=this.scrollDistance,p=this.scrollDistance+r;lp&&(this.scrollDistance+=Math.min(d-p,l-h))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),O4(650,100).pipe(jr($l(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:i}=this._scrollHeader(e);(0===i||i>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static#e=this.\u0275fac=function(t){return new(t||uD)(Ve(jn),Ve(mo),Ve(Od),Ve(pa,8),Ve(On),Ve(Fi),Ve(Co,8))};static#t=this.\u0275dir=hn({type:uD,inputs:{disablePagination:[Ft.HasDecoratorInputTransform,"disablePagination","disablePagination",fr],selectedIndex:[Ft.HasDecoratorInputTransform,"selectedIndex","selectedIndex",cs]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Gi]})}class wN extends uD{constructor(e,t,r,i,a,l,d){super(e,t,r,i,a,l,d),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Ute(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(t){return new(t||wN)(Ve(jn),Ve(mo),Ve(Od),Ve(pa,8),Ve(On),Ve(Fi),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:wN,selectors:[["mat-tab-header"]],contentQueries:function(t,r,i){if(1&t&&ho(i,dD,4),2&t){let a;or(a=ar())&&(r._items=a)}},viewQuery:function(t,r){if(1&t&&(_i(Fte,7),_i(Pte,7),_i(Bte,7),_i(Lte,5),_i(zte,5)),2&t){let i;or(i=ar())&&(r._tabListContainer=i.first),or(i=ar())&&(r._tabList=i.first),or(i=ar())&&(r._tabListInner=i.first),or(i=ar())&&(r._nextPaginator=i.first),or(i=ar())&&(r._previousPaginator=i.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,r){2&t&&Jn("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr]},standalone:!0,features:[Gi,hr,qr],ngContentSelectors:p2,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(t,r){if(1&t){const i=Ai();Ri(),Bt(0,"button",5,0),Fn("click",function(){return Cn(i),kn(r._handlePaginatorClick("before"))})("mousedown",function(l){return Cn(i),kn(r._handlePaginatorPress("before",l))})("touchend",function(){return Cn(i),kn(r._stopInterval())}),kr(2,"div",6),qt(),Bt(3,"div",7,1),Fn("keydown",function(l){return Cn(i),kn(r._handleKeydown(l))}),Bt(5,"div",8,2),Fn("cdkObserveContent",function(){return Cn(i),kn(r._onContentChanges())}),Bt(7,"div",9,3),rr(9),qt()()(),Bt(10,"button",10,4),Fn("mousedown",function(l){return Cn(i),kn(r._handlePaginatorPress("after",l))})("click",function(){return Cn(i),kn(r._handlePaginatorClick("after"))})("touchend",function(){return Cn(i),kn(r._stopInterval())}),kr(12,"div",6),qt()}2&t&&(Jn("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),En("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),Gt(3),Jn("_mat-animation-noopable","NoopAnimations"===r._animationMode),Gt(7),Jn("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),En("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[Hl,m0],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}const $te=new pn("MAT_TABS_CONFIG"),E7e={translateTab:vc("translateTab",[fa("center, void, left-origin-center, right-origin-center",Hi({transform:"none"})),fa("left",Hi({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),fa("right",Hi({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Na("* => left, * => right, left => center, right => center",ja("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Na("void => left-origin-center",[Hi({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),ja("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Na("void => right-origin-center",[Hi({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),ja("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};class CN extends Ws{constructor(e,t,r,i){super(e,t,i),this._host=r,this._centeringSub=ke.EMPTY,this._leavingSub=ke.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Sa(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||CN)(Ve(fu),Ve(Wo),Ve(Gn(()=>hD)),Ve(Mr))};static#t=this.\u0275dir=hn({type:CN,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[hr]})}class hD{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=ke.EMPTY,this._translateTabComplete=new ln,this._onCentering=new cn,this._beforeCentering=new cn,this._afterLeavingCenter=new cn,this._onCentered=new cn(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(i=>{this._computePositionAnimationState(i),r.markForCheck()})),this._translateTabComplete.pipe(p0((i,a)=>i.fromState===a.fromState&&i.toState===a.toState)).subscribe(i=>{this._isCenterPosition(i.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(i.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position="ltr"==e?"left":"right":this._positionIndex>0?this._position="ltr"==e?"right":"left":this._position="center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(t){return new(t||hD)(Ve(jn),Ve(pa,8),Ve(mo))};static#t=this.\u0275cmp=Tr({type:hD,selectors:[["mat-tab-body"]],viewQuery:function(t,r){if(1&t&&_i(Ws,5),2&t){let i;or(i=ar())&&(r._portalHost=i.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[Ft.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[qr],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,r){if(1&t){const i=Ai();Bt(0,"div",1,0),Fn("@translateTab.start",function(l){return Cn(i),kn(r._onTranslateTabStarted(l))})("@translateTab.done",function(l){return Cn(i),kn(r._translateTabComplete.next(l))}),sr(2,c7e,0,0,"ng-template",2),qt()}2&t&&En("@translateTab",qx(3,l7e,r._position,N3(1,s7e,r.animationDuration)))},dependencies:[CN,Qc],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[E7e.translateTab]}})}let S7e=0;class m2{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,t,r,i){this._elementRef=e,this._changeDetectorRef=t,this._animationMode=i,this._tabs=new lo,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ke.EMPTY,this._tabLabelSubscription=ke.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new cn,this.focusChange=new cn,this.animationDone=new cn,this.selectedTabChange=new cn(!0),this._isServer=!xn(Fi).isBrowser,this._groupId=S7e++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,null!=r?.contentTabIndex&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent,this.stretchTabs=!r||null==r.stretchTabs||r.stretchTabs}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,i)=>r.isActive=i===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let i=0;i{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Sa(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new D7e;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=$l(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){t.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}static#e=this.\u0275fac=function(t){return new(t||m2)(Ve(jn),Ve(mo),Ve($te,8),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:m2,selectors:[["mat-tab-group"]],contentQueries:function(t,r,i){if(1&t&&ho(i,Ay,5),2&t){let a;or(a=ar())&&(r._allTabs=a)}},viewQuery:function(t,r){if(1&t&&(_i(d7e,5),_i(u7e,5)),2&t){let i;or(i=ar())&&(r._tabBodyWrapper=i.first),or(i=ar())&&(r._tabHeader=i.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(t,r){2&t&&(ea("mat-"+(r.color||"primary")),co("--mat-tab-animation-duration",r.animationDuration),Jn("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===r.headerPosition)("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[Ft.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",fr],stretchTabs:[Ft.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",fr],dynamicHeight:[Ft.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",fr],selectedIndex:[Ft.HasDecoratorInputTransform,"selectedIndex","selectedIndex",cs],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[Ft.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",cs],disablePagination:[Ft.HasDecoratorInputTransform,"disablePagination","disablePagination",fr],disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr],preserveContent:[Ft.HasDecoratorInputTransform,"preserveContent","preserveContent",fr],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[Ir([{provide:qte,useExisting:m2}]),Gi,qr],ngContentSelectors:p2,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(t,r){if(1&t){const i=Ai();Ri(),Bt(0,"mat-tab-header",3,0),Fn("indexFocused",function(l){return Cn(i),kn(r._focusChanged(l))})("selectFocusedIndex",function(l){return Cn(i),kn(r.selectedIndex=l)}),np(2,m7e,8,17,"div",4,qs),qt(),sr(4,g7e,1,0),Bt(5,"div",5,1),np(7,b7e,1,13,"mat-tab-body",6,qs),qt()}2&t&&(En("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),Gt(2),rp(r._tabs),Gt(2),yi(4,r._isServer?4:-1),Gt(),Jn("_mat-animation-noopable","NoopAnimations"===r._animationMode),Gt(2),rp(r._tabs))},dependencies:[wN,dD,S1,Hl,Ws,hD],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}class D7e{}let Wte=0;class g2 extends uD{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,t,r,i,a,l,d,h){super(e,i,a,t,r,l,d),this._fitInkBarToContent=new _r(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,this.fitInkBarToContent=!(!h||null==h.fitInkBarToContent)&&h.fitInkBarToContent,this.stretchTabs=!h||null==h.stretchTabs||h.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Ute(this._items),this._items.changes.pipe(Sa(null),jr(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const e=this._items.toArray();for(let t=0;t.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}class b2 extends cD{get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(e,t,r,i,a,l){super(),this._tabNavBar=e,this.elementRef=t,this._focusMonitor=a,this._destroyed=new ln,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id="mat-tab-link-"+Wte++,this.rippleConfig=r||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===l&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),e._fitInkBarToContent.pipe(jr(this._destroyed)).subscribe(d=>{this.fitInkBarToContent=d})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(32===e.keyCode||13===e.keyCode)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(32===e.keyCode&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static#e=this.\u0275fac=function(t){return new(t||b2)(Ve(g2),Ve(jn),Ve(y7,8),vd("tabindex"),Ve(jl),Ve(Co,8))};static#t=this.\u0275cmp=Tr({type:b2,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(t,r){1&t&&Fn("focus",function(){return r._handleFocus()})("keydown",function(a){return r._handleKeydown(a)}),2&t&&(vr("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._getTabIndex())("role",r._getRole()),Jn("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[Ft.HasDecoratorInputTransform,"active","active",fr],disabled:[Ft.HasDecoratorInputTransform,"disabled","disabled",fr],disableRipple:[Ft.HasDecoratorInputTransform,"disableRipple","disableRipple",fr],tabIndex:[Ft.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:cs(e)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[Gi,hr,qr],attrs:y7e,ngContentSelectors:p2,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(t,r){1&t&&(Ri(),kr(0,"span",0)(1,"div",1),Bt(2,"span",2)(3,"span",3),rr(4),qt()()),2&t&&(Gt(),En("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Hl],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}class fD{constructor(){this.id="mat-tab-nav-panel-"+Wte++}static#e=this.\u0275fac=function(t){return new(t||fD)};static#t=this.\u0275cmp=Tr({type:fD,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(t,r){2&t&&vr("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],standalone:!0,features:[qr],ngContentSelectors:p2,decls:1,vars:0,template:function(t,r){1&t&&(Ri(),rr(0))},encapsulation:2,changeDetection:0})}class pD{static#e=this.\u0275fac=function(t){return new(t||pD)};static#t=this.\u0275mod=$n({type:pD,imports:[er,Ey,Sy,Ay,m2,g2,fD,b2],exports:[er,Ey,Sy,Ay,m2,g2,fD,b2]});static#n=this.\u0275inj=Er({imports:[er,er]})}var T7e=mt(7422),I7e=mt.n(T7e);let qL=class{constructor(){this.fieldToClass={links:H5,metadata:$5}}get includeLinks(){return"links"==this.config.type}ngOnInit(){"technique"==this.config.level?this.list=this.config.list.map(e=>{let t=new this.fieldToClass[this.config.type];return t.deserialize(e.serialize()),t}):this.list=this.config.list}add(){this.list.push(new this.fieldToClass[this.config.type])}remove(e){this.list[e-1]&&this.list[e-1].divider&&this.list[e+1]&&this.list[e+1].divider?this.list.splice(e-1,2):this.list.splice(e,1),this.list[0]?.divider&&this.removeDivider(0),this.list[this.list.length-1]&&this.list[this.list.length-1].divider&&this.removeDivider(this.list.length-1),this.updateList()}updateList(){let e=this.list.filter(t=>t.valid());"technique"==this.config.level&&this.config.viewModel.editSelectedTechniqueValues(this.config.type,e)}canAddDivider(e){return!(e<1)&&!(!this.list[e]?.valid()||this.list[e]?.divider||!this.list[e-1]?.valid()||this.list[e-1]?.divider)}addDivider(e){let t=new this.fieldToClass[this.config.type];t.divider=!0,this.list.splice(e,0,t),this.updateList()}removeDivider(e){this.list.splice(e,1),this.updateList()}static#e=this.propDecorators={config:[{type:ha}]}};qL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([qa({selector:"app-list-input",template:'
    \n
    \n \x3c!-- remove divider --\x3e\n
    \n \n
    \n \x3c!-- add divider --\x3e\n
    \n \n
    \n\n \x3c!-- list item --\x3e\n
    \n \n {{config.nameField}}\n \n \n \n {{config.valueField}}\n \n \n \n {{ item[config.nameField] }}\n \n
    \n \n
    \n
    \n
    \n
    \n
    \n \n
    \n',encapsulation:Ei.None,styles:[I7e()]})],qL);let jL=class{};jL=function(n,e,t,r){var l,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,e,t,r);else for(var d=n.length-1;d>=0;d--)(l=n[d])&&(a=(i<3?l(a):i>3?l(e,t,a):l(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}([hre({declarations:[gN,AL,oD,hN,fN,DL,ML,TL,IL,NL,OL,RL,FL,iN,PL,BL,LL,iD,pN,qL,zL],imports:[cp,w5,lS,T0,DS,MS,WS,Sp,B0,S5,A5,L0,mA,_A,M5,I5,B5,q5,F5,yN,_N,xN,vN,Gw.forRoot(),pD],exports:[T0,WS,Sp,B0,L0,mA,_A,pD],providers:[a1,Ys,{provide:tq,useFactory:n=>()=>n.loadConfig(),deps:[Ys],multi:!0}],bootstrap:[gN]})],jL),use().bootstrapModule(jL).catch(n=>console.log(n))},3981:(Yt,Ln)=>{"use strict";Ln.byteLength=function U(m){var _=K(m),b=_[0],v=_[1];return 3*(b+v)/4-v},Ln.toByteArray=function w(m){var _,T,b=K(m),v=b[0],A=b[1],D=new xt(function I(m,_,b){return 3*(_+b)/4-b}(0,v,A)),E=0,O=A>0?v-4:v;for(T=0;T>16&255,D[E++]=_>>8&255,D[E++]=255&_;return 2===A&&(_=ut[m.charCodeAt(T)]<<2|ut[m.charCodeAt(T+1)]>>4,D[E++]=255&_),1===A&&(_=ut[m.charCodeAt(T)]<<10|ut[m.charCodeAt(T+1)]<<4|ut[m.charCodeAt(T+2)]>>2,D[E++]=_>>8&255,D[E++]=255&_),D},Ln.fromByteArray=function f(m){for(var _,b=m.length,v=b%3,A=[],D=16383,E=0,O=b-v;EO?O:E+D));return 1===v?(_=m[b-1],A.push(mt[_>>2]+mt[_<<4&63]+"==")):2===v&&(_=(m[b-2]<<8)+m[b-1],A.push(mt[_>>10]+mt[_>>4&63]+mt[_<<2&63]+"=")),A.join("")};for(var mt=[],ut=[],xt=typeof Uint8Array<"u"?Uint8Array:Array,gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",un=0;un<64;++un)mt[un]=gt[un],ut[gt.charCodeAt(un)]=un;function K(m){var _=m.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=m.indexOf("=");return-1===b&&(b=_),[b,b===_?0:4-b%4]}function x(m){return mt[m>>18&63]+mt[m>>12&63]+mt[m>>6&63]+mt[63&m]}function g(m,_,b){for(var v,A=[],D=_;D{"use strict";var xt=mt(3981),gt=mt(2020),un="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ln.hp=I,Ln.IS=50;var k=2147483647;function U(ke){if(ke>k)throw new RangeError('The value "'+ke+'" is invalid for option "size"');var ye=new Uint8Array(ke);return Object.setPrototypeOf(ye,I.prototype),ye}function I(ke,ye,we){if("number"==typeof ke){if("string"==typeof ye)throw new TypeError('The "string" argument must be of type string. Received type number');return f(ke)}return w(ke,ye,we)}function w(ke,ye,we){if("string"==typeof ke)return function m(ke,ye){if(("string"!=typeof ye||""===ye)&&(ye="utf8"),!I.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);var we=0|O(ke,ye),Ee=U(we),He=Ee.write(ke,ye);return He!==we&&(Ee=Ee.slice(0,He)),Ee}(ke,ye);if(ArrayBuffer.isView(ke))return function b(ke){if(ze(ke,Uint8Array)){var ye=new Uint8Array(ke);return v(ye.buffer,ye.byteOffset,ye.byteLength)}return _(ke)}(ke);if(null==ke)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ke);if(ze(ke,ArrayBuffer)||ke&&ze(ke.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(ke,SharedArrayBuffer)||ke&&ze(ke.buffer,SharedArrayBuffer)))return v(ke,ye,we);if("number"==typeof ke)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ee=ke.valueOf&&ke.valueOf();if(null!=Ee&&Ee!==ke)return I.from(Ee,ye,we);var He=function A(ke){if(I.isBuffer(ke)){var ye=0|D(ke.length),we=U(ye);return 0===we.length||ke.copy(we,0,0,ye),we}if(void 0!==ke.length)return"number"!=typeof ke.length||Je(ke.length)?U(0):_(ke);if("Buffer"===ke.type&&Array.isArray(ke.data))return _(ke.data)}(ke);if(He)return He;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ke[Symbol.toPrimitive])return I.from(ke[Symbol.toPrimitive]("string"),ye,we);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ke)}function x(ke){if("number"!=typeof ke)throw new TypeError('"size" argument must be of type number');if(ke<0)throw new RangeError('The value "'+ke+'" is invalid for option "size"')}function f(ke){return x(ke),U(ke<0?0:0|D(ke))}function _(ke){for(var ye=ke.length<0?0:0|D(ke.length),we=U(ye),Ee=0;Ee=k)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+k.toString(16)+" bytes");return 0|ke}function O(ke,ye){if(I.isBuffer(ke))return ke.length;if(ArrayBuffer.isView(ke)||ze(ke,ArrayBuffer))return ke.byteLength;if("string"!=typeof ke)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ke);var we=ke.length,Ee=arguments.length>2&&!0===arguments[2];if(!Ee&&0===we)return 0;for(var He=!1;;)switch(ye){case"ascii":case"latin1":case"binary":return we;case"utf8":case"utf-8":return te(ke).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*we;case"hex":return we>>>1;case"base64":return Y(ke).length;default:if(He)return Ee?-1:te(ke).length;ye=(""+ye).toLowerCase(),He=!0}}function T(ke,ye,we){var Ee=!1;if((void 0===ye||ye<0)&&(ye=0),ye>this.length||((void 0===we||we>this.length)&&(we=this.length),we<=0)||(we>>>=0)<=(ye>>>=0))return"";for(ke||(ke="utf8");;)switch(ke){case"hex":return F(this,ye,we);case"utf8":case"utf-8":return ve(this,ye,we);case"ascii":return de(this,ye,we);case"latin1":case"binary":return M(this,ye,we);case"base64":return Se(this,ye,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,ye,we);default:if(Ee)throw new TypeError("Unknown encoding: "+ke);ke=(ke+"").toLowerCase(),Ee=!0}}function z(ke,ye,we){var Ee=ke[ye];ke[ye]=ke[we],ke[we]=Ee}function H(ke,ye,we,Ee,He){if(0===ke.length)return-1;if("string"==typeof we?(Ee=we,we=0):we>2147483647?we=2147483647:we<-2147483648&&(we=-2147483648),Je(we=+we)&&(we=He?0:ke.length-1),we<0&&(we=ke.length+we),we>=ke.length){if(He)return-1;we=ke.length-1}else if(we<0){if(!He)return-1;we=0}if("string"==typeof ye&&(ye=I.from(ye,Ee)),I.isBuffer(ye))return 0===ye.length?-1:Q(ke,ye,we,Ee,He);if("number"==typeof ye)return ye&=255,"function"==typeof Uint8Array.prototype.indexOf?He?Uint8Array.prototype.indexOf.call(ke,ye,we):Uint8Array.prototype.lastIndexOf.call(ke,ye,we):Q(ke,[ye],we,Ee,He);throw new TypeError("val must be string, number or Buffer")}function Q(ke,ye,we,Ee,He){var It,Xe=1,rt=ke.length,at=ye.length;if(void 0!==Ee&&("ucs2"===(Ee=String(Ee).toLowerCase())||"ucs-2"===Ee||"utf16le"===Ee||"utf-16le"===Ee)){if(ke.length<2||ye.length<2)return-1;Xe=2,rt/=2,at/=2,we/=2}function St(yt,ft){return 1===Xe?yt[ft]:yt.readUInt16BE(ft*Xe)}if(He){var Kt=-1;for(It=we;Itrt&&(we=rt-at),It=we;It>=0;It--){for(var Ue=!0,it=0;itHe&&(Ee=He):Ee=He;var Xe=ye.length;Ee>Xe/2&&(Ee=Xe/2);for(var rt=0;rt>8,He=we%256,Xe.push(He),Xe.push(Ee);return Xe}(ye,ke.length-we),ke,we,Ee)}function Se(ke,ye,we){return 0===ye&&we===ke.length?xt.fromByteArray(ke):xt.fromByteArray(ke.slice(ye,we))}function ve(ke,ye,we){we=Math.min(ke.length,we);for(var Ee=[],He=ye;He239?4:Xe>223?3:Xe>191?2:1;if(He+at<=we)switch(at){case 1:Xe<128&&(rt=Xe);break;case 2:128==(192&(St=ke[He+1]))&&((Ue=(31&Xe)<<6|63&St)>127&&(rt=Ue));break;case 3:St=ke[He+1],It=ke[He+2],128==(192&St)&&128==(192&It)&&((Ue=(15&Xe)<<12|(63&St)<<6|63&It)>2047&&(Ue<55296||Ue>57343)&&(rt=Ue));break;case 4:St=ke[He+1],It=ke[He+2],Kt=ke[He+3],128==(192&St)&&128==(192&It)&&128==(192&Kt)&&((Ue=(15&Xe)<<18|(63&St)<<12|(63&It)<<6|63&Kt)>65535&&Ue<1114112&&(rt=Ue))}null===rt?(rt=65533,at=1):rt>65535&&(rt-=65536,Ee.push(rt>>>10&1023|55296),rt=56320|1023&rt),Ee.push(rt),He+=at}return function J(ke){var ye=ke.length;if(ye<=W)return String.fromCharCode.apply(String,ke);for(var we="",Ee=0;EeHe.length?I.from(rt).copy(He,Xe):Uint8Array.prototype.set.call(He,rt,Xe);else{if(!I.isBuffer(rt))throw new TypeError('"list" argument must be an Array of Buffers');rt.copy(He,Xe)}Xe+=rt.length}return He},I.byteLength=O,I.prototype._isBuffer=!0,I.prototype.swap16=function(){var ye=this.length;if(ye%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var we=0;wewe&&(ye+=" ... "),""},un&&(I.prototype[un]=I.prototype.inspect),I.prototype.compare=function(ye,we,Ee,He,Xe){if(ze(ye,Uint8Array)&&(ye=I.from(ye,ye.offset,ye.byteLength)),!I.isBuffer(ye))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ye);if(void 0===we&&(we=0),void 0===Ee&&(Ee=ye?ye.length:0),void 0===He&&(He=0),void 0===Xe&&(Xe=this.length),we<0||Ee>ye.length||He<0||Xe>this.length)throw new RangeError("out of range index");if(He>=Xe&&we>=Ee)return 0;if(He>=Xe)return-1;if(we>=Ee)return 1;if(this===ye)return 0;for(var rt=(Xe>>>=0)-(He>>>=0),at=(Ee>>>=0)-(we>>>=0),St=Math.min(rt,at),It=this.slice(He,Xe),Kt=ye.slice(we,Ee),Ue=0;Ue>>=0,isFinite(Ee)?(Ee>>>=0,void 0===He&&(He="utf8")):(He=Ee,Ee=void 0)}var Xe=this.length-we;if((void 0===Ee||Ee>Xe)&&(Ee=Xe),ye.length>0&&(Ee<0||we<0)||we>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");for(var rt=!1;;)switch(He){case"hex":return ae(this,ye,we,Ee);case"utf8":case"utf-8":return ge(this,ye,we,Ee);case"ascii":case"latin1":case"binary":return le(this,ye,we,Ee);case"base64":return fe(this,ye,we,Ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,ye,we,Ee);default:if(rt)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),rt=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function de(ke,ye,we){var Ee="";we=Math.min(ke.length,we);for(var He=ye;HeEe)&&(we=Ee);for(var He="",Xe=ye;Xewe)throw new RangeError("Trying to access beyond buffer length")}function j(ke,ye,we,Ee,He,Xe){if(!I.isBuffer(ke))throw new TypeError('"buffer" argument must be a Buffer instance');if(ye>He||yeke.length)throw new RangeError("Index out of range")}function G(ke,ye,we,Ee,He,Xe){if(we+Ee>ke.length)throw new RangeError("Index out of range");if(we<0)throw new RangeError("Index out of range")}function X(ke,ye,we,Ee,He){return ye=+ye,we>>>=0,He||G(ke,0,we,4),gt.write(ke,ye,we,Ee,23,4),we+4}function se(ke,ye,we,Ee,He){return ye=+ye,we>>>=0,He||G(ke,0,we,8),gt.write(ke,ye,we,Ee,52,8),we+8}I.prototype.slice=function(ye,we){var Ee=this.length;(ye=~~ye)<0?(ye+=Ee)<0&&(ye=0):ye>Ee&&(ye=Ee),(we=void 0===we?Ee:~~we)<0?(we+=Ee)<0&&(we=0):we>Ee&&(we=Ee),we>>=0,we>>>=0,Ee||L(ye,we,this.length);for(var He=this[ye],Xe=1,rt=0;++rt>>=0,we>>>=0,Ee||L(ye,we,this.length);for(var He=this[ye+--we],Xe=1;we>0&&(Xe*=256);)He+=this[ye+--we]*Xe;return He},I.prototype.readUint8=I.prototype.readUInt8=function(ye,we){return ye>>>=0,we||L(ye,1,this.length),this[ye]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(ye,we){return ye>>>=0,we||L(ye,2,this.length),this[ye]|this[ye+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(ye,we){return ye>>>=0,we||L(ye,2,this.length),this[ye]<<8|this[ye+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),(this[ye]|this[ye+1]<<8|this[ye+2]<<16)+16777216*this[ye+3]},I.prototype.readUint32BE=I.prototype.readUInt32BE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),16777216*this[ye]+(this[ye+1]<<16|this[ye+2]<<8|this[ye+3])},I.prototype.readIntLE=function(ye,we,Ee){ye>>>=0,we>>>=0,Ee||L(ye,we,this.length);for(var He=this[ye],Xe=1,rt=0;++rt=(Xe*=128)&&(He-=Math.pow(2,8*we)),He},I.prototype.readIntBE=function(ye,we,Ee){ye>>>=0,we>>>=0,Ee||L(ye,we,this.length);for(var He=we,Xe=1,rt=this[ye+--He];He>0&&(Xe*=256);)rt+=this[ye+--He]*Xe;return rt>=(Xe*=128)&&(rt-=Math.pow(2,8*we)),rt},I.prototype.readInt8=function(ye,we){return ye>>>=0,we||L(ye,1,this.length),128&this[ye]?-1*(255-this[ye]+1):this[ye]},I.prototype.readInt16LE=function(ye,we){ye>>>=0,we||L(ye,2,this.length);var Ee=this[ye]|this[ye+1]<<8;return 32768&Ee?4294901760|Ee:Ee},I.prototype.readInt16BE=function(ye,we){ye>>>=0,we||L(ye,2,this.length);var Ee=this[ye+1]|this[ye]<<8;return 32768&Ee?4294901760|Ee:Ee},I.prototype.readInt32LE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),this[ye]|this[ye+1]<<8|this[ye+2]<<16|this[ye+3]<<24},I.prototype.readInt32BE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),this[ye]<<24|this[ye+1]<<16|this[ye+2]<<8|this[ye+3]},I.prototype.readFloatLE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),gt.read(this,ye,!0,23,4)},I.prototype.readFloatBE=function(ye,we){return ye>>>=0,we||L(ye,4,this.length),gt.read(this,ye,!1,23,4)},I.prototype.readDoubleLE=function(ye,we){return ye>>>=0,we||L(ye,8,this.length),gt.read(this,ye,!0,52,8)},I.prototype.readDoubleBE=function(ye,we){return ye>>>=0,we||L(ye,8,this.length),gt.read(this,ye,!1,52,8)},I.prototype.writeUintLE=I.prototype.writeUIntLE=function(ye,we,Ee,He){(ye=+ye,we>>>=0,Ee>>>=0,He)||j(this,ye,we,Ee,Math.pow(2,8*Ee)-1,0);var rt=1,at=0;for(this[we]=255&ye;++at>>=0,Ee>>>=0,He)||j(this,ye,we,Ee,Math.pow(2,8*Ee)-1,0);var rt=Ee-1,at=1;for(this[we+rt]=255&ye;--rt>=0&&(at*=256);)this[we+rt]=ye/at&255;return we+Ee},I.prototype.writeUint8=I.prototype.writeUInt8=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,1,255,0),this[we]=255&ye,we+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,2,65535,0),this[we]=255&ye,this[we+1]=ye>>>8,we+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,2,65535,0),this[we]=ye>>>8,this[we+1]=255&ye,we+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,4,4294967295,0),this[we+3]=ye>>>24,this[we+2]=ye>>>16,this[we+1]=ye>>>8,this[we]=255&ye,we+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,4,4294967295,0),this[we]=ye>>>24,this[we+1]=ye>>>16,this[we+2]=ye>>>8,this[we+3]=255&ye,we+4},I.prototype.writeIntLE=function(ye,we,Ee,He){if(ye=+ye,we>>>=0,!He){var Xe=Math.pow(2,8*Ee-1);j(this,ye,we,Ee,Xe-1,-Xe)}var rt=0,at=1,St=0;for(this[we]=255&ye;++rt>>=0,!He){var Xe=Math.pow(2,8*Ee-1);j(this,ye,we,Ee,Xe-1,-Xe)}var rt=Ee-1,at=1,St=0;for(this[we+rt]=255&ye;--rt>=0&&(at*=256);)ye<0&&0===St&&0!==this[we+rt+1]&&(St=1),this[we+rt]=(ye/at|0)-St&255;return we+Ee},I.prototype.writeInt8=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,1,127,-128),ye<0&&(ye=255+ye+1),this[we]=255&ye,we+1},I.prototype.writeInt16LE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,2,32767,-32768),this[we]=255&ye,this[we+1]=ye>>>8,we+2},I.prototype.writeInt16BE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,2,32767,-32768),this[we]=ye>>>8,this[we+1]=255&ye,we+2},I.prototype.writeInt32LE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,4,2147483647,-2147483648),this[we]=255&ye,this[we+1]=ye>>>8,this[we+2]=ye>>>16,this[we+3]=ye>>>24,we+4},I.prototype.writeInt32BE=function(ye,we,Ee){return ye=+ye,we>>>=0,Ee||j(this,ye,we,4,2147483647,-2147483648),ye<0&&(ye=4294967295+ye+1),this[we]=ye>>>24,this[we+1]=ye>>>16,this[we+2]=ye>>>8,this[we+3]=255&ye,we+4},I.prototype.writeFloatLE=function(ye,we,Ee){return X(this,ye,we,!0,Ee)},I.prototype.writeFloatBE=function(ye,we,Ee){return X(this,ye,we,!1,Ee)},I.prototype.writeDoubleLE=function(ye,we,Ee){return se(this,ye,we,!0,Ee)},I.prototype.writeDoubleBE=function(ye,we,Ee){return se(this,ye,we,!1,Ee)},I.prototype.copy=function(ye,we,Ee,He){if(!I.isBuffer(ye))throw new TypeError("argument should be a Buffer");if(Ee||(Ee=0),!He&&0!==He&&(He=this.length),we>=ye.length&&(we=ye.length),we||(we=0),He>0&&He=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),ye.length-we>>=0,Ee=void 0===Ee?this.length:Ee>>>0,ye||(ye=0),"number"==typeof ye)for(rt=we;rt55295&&we<57344){if(!He){if(we>56319){(ye-=3)>-1&&Xe.push(239,191,189);continue}if(rt+1===Ee){(ye-=3)>-1&&Xe.push(239,191,189);continue}He=we;continue}if(we<56320){(ye-=3)>-1&&Xe.push(239,191,189),He=we;continue}we=65536+(He-55296<<10|we-56320)}else He&&(ye-=3)>-1&&Xe.push(239,191,189);if(He=null,we<128){if((ye-=1)<0)break;Xe.push(we)}else if(we<2048){if((ye-=2)<0)break;Xe.push(we>>6|192,63&we|128)}else if(we<65536){if((ye-=3)<0)break;Xe.push(we>>12|224,we>>6&63|128,63&we|128)}else{if(!(we<1114112))throw new Error("Invalid code point");if((ye-=4)<0)break;Xe.push(we>>18|240,we>>12&63|128,we>>6&63|128,63&we|128)}}return Xe}function Y(ke){return xt.toByteArray(function Ne(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(ue,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(ke))}function me(ke,ye,we,Ee){for(var He=0;He=ye.length||He>=ke.length);++He)ye[He+we]=ke[He];return He}function ze(ke,ye){return ke instanceof ye||null!=ke&&null!=ke.constructor&&null!=ke.constructor.name&&ke.constructor.name===ye.name}function Je(ke){return ke!=ke}var je=function(){for(var ke="0123456789abcdef",ye=new Array(256),we=0;we<16;++we)for(var Ee=16*we,He=0;He<16;++He)ye[Ee+He]=ke[we]+ke[He];return ye}()},9121:function(Yt,Ln){var mt,ut;!function(xt){"use strict";var gt=Math.cosh||function(g){return Math.abs(g)<1e-9?1-g:.5*(Math.exp(g)+Math.exp(-g))},un=Math.sinh||function(g){return Math.abs(g)<1e-9?g:.5*(Math.exp(g)-Math.exp(-g))},U=function(){throw SyntaxError("Invalid Param")};function I(g,f){var m=Math.abs(g),_=Math.abs(f);return 0===g?Math.log(_):0===f?Math.log(m):m<3e3&&_<3e3?.5*Math.log(g*g+f*f):(g/=2,f/=2,.5*Math.log(g*g+f*f)+Math.LN2)}function x(g,f){if(!(this instanceof x))return new x(g,f);var m=function(g,f){var m={re:0,im:0};if(null==g)m.re=m.im=0;else if(void 0!==f)m.re=g,m.im=f;else switch(typeof g){case"object":if("im"in g&&"re"in g)m.re=g.re,m.im=g.im;else if("abs"in g&&"arg"in g){if(!Number.isFinite(g.abs)&&Number.isFinite(g.arg))return x.INFINITY;m.re=g.abs*Math.cos(g.arg),m.im=g.abs*Math.sin(g.arg)}else if("r"in g&&"phi"in g){if(!Number.isFinite(g.r)&&Number.isFinite(g.phi))return x.INFINITY;m.re=g.r*Math.cos(g.phi),m.im=g.r*Math.sin(g.phi)}else 2===g.length?(m.re=g[0],m.im=g[1]):U();break;case"string":m.im=m.re=0;var _=g.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),b=1,v=0;null===_&&U();for(var A=0;A<_.length;A++){var D=_[A];" "===D||"\t"===D||"\n"===D||("+"===D?b++:"-"===D?v++:"i"===D||"I"===D?(b+v===0&&U()," "===_[A+1]||isNaN(_[A+1])?m.im+=parseFloat((v%2?"-":"")+"1"):(m.im+=parseFloat((v%2?"-":"")+_[A+1]),A++),b=v=0):((b+v===0||isNaN(D))&&U(),"i"===_[A+1]||"I"===_[A+1]?(m.im+=parseFloat((v%2?"-":"")+D),A++):m.re+=parseFloat((v%2?"-":"")+D),b=v=0))}b+v>0&&U();break;case"number":m.im=0,m.re=g;break;default:U()}return isNaN(m.re)||isNaN(m.im),m}(g,f);this.re=m.re,this.im=m.im}x.prototype={re:0,im:0,sign:function(){var g=this.abs();return new x(this.re/g,this.im/g)},add:function(g,f){var m=new x(g,f);return this.isInfinite()&&m.isInfinite()?x.NAN:this.isInfinite()||m.isInfinite()?x.INFINITY:new x(this.re+m.re,this.im+m.im)},sub:function(g,f){var m=new x(g,f);return this.isInfinite()&&m.isInfinite()?x.NAN:this.isInfinite()||m.isInfinite()?x.INFINITY:new x(this.re-m.re,this.im-m.im)},mul:function(g,f){var m=new x(g,f);return this.isInfinite()&&m.isZero()||this.isZero()&&m.isInfinite()?x.NAN:this.isInfinite()||m.isInfinite()?x.INFINITY:0===m.im&&0===this.im?new x(this.re*m.re,0):new x(this.re*m.re-this.im*m.im,this.re*m.im+this.im*m.re)},div:function(g,f){var m=new x(g,f);if(this.isZero()&&m.isZero()||this.isInfinite()&&m.isInfinite())return x.NAN;if(this.isInfinite()||m.isZero())return x.INFINITY;if(this.isZero()||m.isInfinite())return x.ZERO;g=this.re,f=this.im;var v,A,_=m.re,b=m.im;return 0===b?new x(g/_,f/_):Math.abs(_)0)return new x(Math.pow(g,m.re),0);if(0===g)switch((m.re%4+4)%4){case 0:return new x(Math.pow(f,m.re),0);case 1:return new x(0,Math.pow(f,m.re));case 2:return new x(-Math.pow(f,m.re),0);case 3:return new x(0,-Math.pow(f,m.re))}}if(0===g&&0===f&&m.re>0&&m.im>=0)return x.ZERO;var _=Math.atan2(f,g),b=I(g,f);return g=Math.exp(m.re*b-m.im*_),f=m.im*b+m.re*_,new x(g*Math.cos(f),g*Math.sin(f))},sqrt:function(){var _,b,g=this.re,f=this.im,m=this.abs();if(g>=0){if(0===f)return new x(Math.sqrt(g),0);_=.5*Math.sqrt(2*(m+g))}else _=Math.abs(f)/Math.sqrt(2*(m-g));return b=g<=0?.5*Math.sqrt(2*(m-g)):Math.abs(f)/Math.sqrt(2*(m+g)),new x(_,f<0?-b:b)},exp:function(){var g=Math.exp(this.re);return this.im,new x(g*Math.cos(this.im),g*Math.sin(this.im))},expm1:function(){var g=this.re,f=this.im;return new x(Math.expm1(g)*Math.cos(f)+function(g){var f=Math.PI/4;if(-f>g||g>f)return Math.cos(g)-1;var m=g*g;return m*(m*(m*(m*(m*(m*(m*(m/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)}(f),Math.exp(g)*Math.sin(f))},log:function(){var g=this.re,f=this.im;return new x(I(g,f),Math.atan2(f,g))},abs:function(){return g=this.re,f=this.im,m=Math.abs(g),_=Math.abs(f),m<3e3&&_<3e3?Math.sqrt(m*m+_*_):(m<_?(m=_,_=g/f):_=f/g,m*Math.sqrt(1+_*_));var g,f,m,_},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var g=this.re,f=this.im;return new x(Math.sin(g)*gt(f),Math.cos(g)*un(f))},cos:function(){var g=this.re,f=this.im;return new x(Math.cos(g)*gt(f),-Math.sin(g)*un(f))},tan:function(){var g=2*this.re,f=2*this.im,m=Math.cos(g)+gt(f);return new x(Math.sin(g)/m,un(f)/m)},cot:function(){var g=2*this.re,f=2*this.im,m=Math.cos(g)-gt(f);return new x(-Math.sin(g)/m,un(f)/m)},sec:function(){var g=this.re,f=this.im,m=.5*gt(2*f)+.5*Math.cos(2*g);return new x(Math.cos(g)*gt(f)/m,Math.sin(g)*un(f)/m)},csc:function(){var g=this.re,f=this.im,m=.5*gt(2*f)-.5*Math.cos(2*g);return new x(Math.sin(g)*gt(f)/m,-Math.cos(g)*un(f)/m)},asin:function(){var g=this.re,f=this.im,m=new x(f*f-g*g+1,-2*g*f).sqrt(),_=new x(m.re-f,m.im+g).log();return new x(_.im,-_.re)},acos:function(){var g=this.re,f=this.im,m=new x(f*f-g*g+1,-2*g*f).sqrt(),_=new x(m.re-f,m.im+g).log();return new x(Math.PI/2-_.im,_.re)},atan:function(){var g=this.re,f=this.im;if(0===g){if(1===f)return new x(0,1/0);if(-1===f)return new x(0,-1/0)}var m=g*g+(1-f)*(1-f),_=new x((1-f*f-g*g)/m,-2*g/m).log();return new x(-.5*_.im,.5*_.re)},acot:function(){var g=this.re,f=this.im;if(0===f)return new x(Math.atan2(1,g),0);var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).atan():new x(0!==g?g/0:0,0!==f?-f/0:0).atan()},asec:function(){var g=this.re,f=this.im;if(0===g&&0===f)return new x(0,1/0);var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).acos():new x(0!==g?g/0:0,0!==f?-f/0:0).acos()},acsc:function(){var g=this.re,f=this.im;if(0===g&&0===f)return new x(Math.PI/2,1/0);var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).asin():new x(0!==g?g/0:0,0!==f?-f/0:0).asin()},sinh:function(){var g=this.re,f=this.im;return new x(un(g)*Math.cos(f),gt(g)*Math.sin(f))},cosh:function(){var g=this.re,f=this.im;return new x(gt(g)*Math.cos(f),un(g)*Math.sin(f))},tanh:function(){var g=2*this.re,f=2*this.im,m=gt(g)+Math.cos(f);return new x(un(g)/m,Math.sin(f)/m)},coth:function(){var g=2*this.re,f=2*this.im,m=gt(g)-Math.cos(f);return new x(un(g)/m,-Math.sin(f)/m)},csch:function(){var g=this.re,f=this.im,m=Math.cos(2*f)-gt(2*g);return new x(-2*un(g)*Math.cos(f)/m,2*gt(g)*Math.sin(f)/m)},sech:function(){var g=this.re,f=this.im,m=Math.cos(2*f)+gt(2*g);return new x(2*gt(g)*Math.cos(f)/m,-2*un(g)*Math.sin(f)/m)},asinh:function(){var g=this.im;this.im=-this.re,this.re=g;var f=this.asin();return this.re=-this.im,this.im=g,g=f.re,f.re=-f.im,f.im=g,f},acosh:function(){var g=this.acos();if(g.im<=0){var f=g.re;g.re=-g.im,g.im=f}else{f=g.im;g.im=-g.re,g.re=f}return g},atanh:function(){var g=this.re,f=this.im,m=g>1&&0===f,_=1-g,b=1+g,v=_*_+f*f,A=0!==v?new x((b*_-f*f)/v,(f*_+b*f)/v):new x(-1!==g?g/0:0,0!==f?f/0:0),D=A.re;return A.re=I(A.re,A.im)/2,A.im=Math.atan2(A.im,D)/2,m&&(A.im=-A.im),A},acoth:function(){var g=this.re,f=this.im;if(0===g&&0===f)return new x(0,Math.PI/2);var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).atanh():new x(0!==g?g/0:0,0!==f?-f/0:0).atanh()},acsch:function(){var g=this.re,f=this.im;if(0===f)return new x(0!==g?Math.log(g+Math.sqrt(g*g+1)):1/0,0);var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).asinh():new x(0!==g?g/0:0,0!==f?-f/0:0).asinh()},asech:function(){var g=this.re,f=this.im;if(this.isZero())return x.INFINITY;var m=g*g+f*f;return 0!==m?new x(g/m,-f/m).acosh():new x(0!==g?g/0:0,0!==f?-f/0:0).acosh()},inverse:function(){if(this.isZero())return x.INFINITY;if(this.isInfinite())return x.ZERO;var g=this.re,f=this.im,m=g*g+f*f;return new x(g/m,-f/m)},conjugate:function(){return new x(this.re,-this.im)},neg:function(){return new x(-this.re,-this.im)},ceil:function(g){return g=Math.pow(10,g||0),new x(Math.ceil(this.re*g)/g,Math.ceil(this.im*g)/g)},floor:function(g){return g=Math.pow(10,g||0),new x(Math.floor(this.re*g)/g,Math.floor(this.im*g)/g)},round:function(g){return g=Math.pow(10,g||0),new x(Math.round(this.re*g)/g,Math.round(this.im*g)/g)},equals:function(g,f){var m=new x(g,f);return Math.abs(m.re-this.re)<=x.EPSILON&&Math.abs(m.im-this.im)<=x.EPSILON},clone:function(){return new x(this.re,this.im)},toString:function(){var g=this.re,f=this.im,m="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(g){"use strict";Yt.exports=function(Ln){var mt=[];return mt.toString=function(){return this.map(function(xt){var gt="",un=typeof xt[5]<"u";return xt[4]&&(gt+="@supports (".concat(xt[4],") {")),xt[2]&&(gt+="@media ".concat(xt[2]," {")),un&&(gt+="@layer".concat(xt[5].length>0?" ".concat(xt[5]):""," {")),gt+=Ln(xt),un&&(gt+="}"),xt[2]&&(gt+="}"),xt[4]&&(gt+="}"),gt}).join("")},mt.i=function(xt,gt,un,k,K){"string"==typeof xt&&(xt=[[null,xt,void 0]]);var U={};if(un)for(var I=0;I"u"||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=K),gt&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=gt),k&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=k):g[4]="".concat(k)),mt.push(g))}},mt}},8564:Yt=>{"use strict";Yt.exports=function(Ln){return Ln[1]}},4987:Yt=>{"use strict";var Ln=Object.assign||function(gt){for(var un=1;un1&&void 0!==arguments[1]?arguments[1]:{},k=un.preserveFormatting,K=void 0!==k&&k,U=un.escapeMapFn,I=void 0===U?xt:U,w=String(gt),x="",g=I(Ln({},mt),K?Ln({},ut):{}),f=Object.keys(g),m=function(){var b=!1;f.forEach(function(v,A){b||w.length>=v.length&&w.slice(0,v.length)===v&&(x+=g[f[A]],w=w.slice(v.length,w.length),b=!0)}),b||(x+=w.slice(0,1),w=w.slice(1,w.length))};w;)m();return x}},2887:(Yt,Ln,mt)=>{var ut=mt(5453).default,xt=mt(3456).default,gt=mt(5854).default,un=mt(9601).default;Yt.exports=function k(K,U,I){function w(f,m){if(!U[f]){if(!K[f]){if(x)return x(f,!0);var b=new Error("Cannot find module '"+f+"'");throw b.code="MODULE_NOT_FOUND",b}var v=U[f]={exports:{}};K[f][0].call(v.exports,function(A){return w(K[f][1][A]||A)},v,v.exports,k,K,U,I)}return U[f].exports}for(var x=void 0,g=0;g{const O=this.workbook.addWorksheet(A.sheetName),T=A.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],z=A.map||function(Q){if(""===Q)return null;const ae=Number(Q);if(!Number.isNaN(ae)&&ae!==1/0)return ae;const ge=T.reduce((fe,be)=>{if(fe)return fe;const Se=f(Q,be,!0);return Se.isValid()?Se:null},null);if(ge)return new Date(ge.valueOf());const le=b[Q];return void 0!==le?le:Q},H=w.parse(A.parserOptions).on("data",Q=>{O.addRow(Q.map(z))}).on("end",()=>{H.emit("worksheet",O)});H.on("worksheet",D).on("error",E),v.pipe(H)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(v,A){return new Promise((D,E)=>{A=A||{};const O=this.workbook.getWorksheet(A.sheetName||A.sheetId),T=w.format(A.formatterOptions);v.on("finish",()=>{D()}),T.on("error",E),T.pipe(v);const{dateFormat:z,dateUTC:H}=A,Q=A.map||(le=>{if(le){if(le.text||le.hyperlink)return le.hyperlink||le.text||"";if(le.formula||le.result)return le.result||"";if(le instanceof Date)return z?H?f.utc(le).format(z):f(le).format(z):H?f.utc(le).format():f(le).format();if(le.error)return le.error;if("object"==typeof le)return JSON.stringify(le)}return le}),ae=void 0===A.includeEmptyRows||A.includeEmptyRows;let ge=1;O&&O.eachRow((le,fe)=>{if(ae)for(;ge++2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=g,f)if("string"==typeof f){const _=I.decodeAddress(f);this.nativeCol=_.col+m,this.nativeColOff=0,this.nativeRow=_.row+m,this.nativeRowOff=0}else void 0!==f.nativeCol?(this.nativeCol=f.nativeCol||0,this.nativeColOff=f.nativeColOff||0,this.nativeRow=f.nativeRow||0,this.nativeRowOff=f.nativeRowOff||0):void 0!==f.col?(this.col=f.col+m,this.row=f.row+m):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(g){return g instanceof w||null==g?g:new w(g)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(g){this.nativeCol=Math.floor(g),this.nativeColOff=Math.floor((g-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(g){this.nativeRow=Math.floor(g),this.nativeRowOff=Math.floor((g-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(g){this.nativeCol=g.nativeCol,this.nativeColOff=g.nativeColOff,this.nativeRow=g.nativeRow,this.nativeRowOff=g.nativeRowOff}}K.exports=w},{"../utils/col-cache":19}],3:[function(k,K,U){"use strict";const I=k("../utils/col-cache"),w=k("../utils/under-dash"),x=k("./enums"),{slideFormula:g}=k("../utils/shared-formula"),f=k("./note");class m{constructor(v,A,D){if(!v||!A)throw new Error("A Cell needs a Row");this._row=v,this._column=A,I.validateAddress(D),this._address=D,this._value=_.create(m.Types.Null,this),this.style=this._mergeStyle(v.style,A.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(v){this.style.numFmt=v}get font(){return this.style.font}set font(v){this.style.font=v}get alignment(){return this.style.alignment}set alignment(v){this.style.alignment=v}get border(){return this.style.border}set border(v){this.style.border=v}get fill(){return this.style.fill}set fill(v){this.style.fill=v}get protection(){return this.style.protection}set protection(v){this.style.protection=v}_mergeStyle(v,A,D){const E=v&&v.numFmt||A&&A.numFmt;E&&(D.numFmt=E);const O=v&&v.font||A&&A.font;O&&(D.font=O);const T=v&&v.alignment||A&&A.alignment;T&&(D.alignment=T);const z=v&&v.border||A&&A.border;z&&(D.border=z);const H=v&&v.fill||A&&A.fill;H&&(D.fill=H);const Q=v&&v.protection||A&&A.protection;return Q&&(D.protection=Q),D}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===m.Types.Merge}merge(v,A){this._value.release(),this._value=_.create(m.Types.Merge,this,v),A||(this.style=v.style)}unmerge(){this.type===m.Types.Merge&&(this._value.release(),this._value=_.create(m.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(v){return this._value.type===m.Types.Merge&&this._value.isMergedTo(v)}get master(){return this.type===m.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===m.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(v){this.type!==m.Types.Merge?(this._value.release(),this._value=_.create(_.getType(v),this,v)):this._value.master.value=v}get note(){return this._comment&&this._comment.note}set note(v){this._comment=new f(v)}get text(){return this._value.toString()}get html(){return w.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(v){this.type===m.Types.String&&(this._value=_.create(m.Types.Hyperlink,this,{text:this._value.value,hyperlink:v}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:v}=this._row;return{sheetName:v.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(v){this.names=[v]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(v){const{definedNames:A}=this.workbook;A.removeAllNames(this.fullAddress),v.forEach(D=>{A.addEx(this.fullAddress,D)})}addName(v){this.workbook.definedNames.addEx(this.fullAddress,v)}removeName(v){this.workbook.definedNames.removeEx(this.fullAddress,v)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(v){this._dataValidations.add(this.address,v)}get model(){const{model:v}=this._value;return v.style=this.style,this._comment&&(v.comment=this._comment.model),v}set model(v){this._value.release(),this._value=_.create(v.type,this),this._value.model=v,v.comment&&"note"===v.comment.type&&(this._comment=f.fromModel(v.comment)),v.style?this.style=v.style:this.style={}}}m.Types=x.ValueType;const _={getType:b=>null==b?m.Types.Null:b instanceof String||"string"==typeof b?m.Types.String:"number"==typeof b?m.Types.Number:"boolean"==typeof b?m.Types.Boolean:b instanceof Date?m.Types.Date:b.text&&b.hyperlink?m.Types.Hyperlink:b.formula||b.sharedFormula?m.Types.Formula:b.richText?m.Types.RichText:b.sharedString?m.Types.SharedString:b.error?m.Types.Error:m.Types.JSON,types:[{t:m.Types.Null,f:class{constructor(b){this.model={address:b.address,type:m.Types.Null}}get value(){return null}set value(b){}get type(){return m.Types.Null}get effectiveType(){return m.Types.Null}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return""}release(){}toString(){return""}}},{t:m.Types.Number,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Number,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.Number}get effectiveType(){return m.Types.Number}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:m.Types.String,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.String,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.String}get effectiveType(){return m.Types.String}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:m.Types.Date,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Date,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.Date}get effectiveType(){return m.Types.Date}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:m.Types.Hyperlink,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Hyperlink,text:v?v.text:void 0,hyperlink:v?v.hyperlink:void 0},v&&v.tooltip&&(this.model.tooltip=v.tooltip)}get value(){const b={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(b.tooltip=this.model.tooltip),b}set value(b){this.model={text:b.text,hyperlink:b.hyperlink},b.tooltip&&(this.model.tooltip=b.tooltip)}get text(){return this.model.text}set text(b){this.model.text=b}get hyperlink(){return this.model.hyperlink}set hyperlink(b){this.model.hyperlink=b}get type(){return m.Types.Hyperlink}get effectiveType(){return m.Types.Hyperlink}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:m.Types.Formula,f:class{constructor(b,v){this.cell=b,this.model={address:b.address,type:m.Types.Formula,shareType:v?v.shareType:void 0,ref:v?v.ref:void 0,formula:v?v.formula:void 0,sharedFormula:v?v.sharedFormula:void 0,result:v?v.result:void 0}}_copyModel(b){const v={},A=D=>{const E=b[D];E&&(v[D]=E)};return A("formula"),A("result"),A("ref"),A("shareType"),A("sharedFormula"),v}get value(){return this._copyModel(this.model)}set value(b){this.model=this._copyModel(b)}validate(b){switch(_.getType(b)){case m.Types.Null:case m.Types.String:case m.Types.Number:case m.Types.Date:break;case m.Types.Hyperlink:case m.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(b){this.model.formula=b}get formulaType(){return this.model.formula?x.FormulaType.Master:this.model.sharedFormula?x.FormulaType.Shared:x.FormulaType.None}get result(){return this.model.result}set result(b){this.model.result=b}get type(){return m.Types.Formula}get effectiveType(){const b=this.model.result;return null==b?x.ValueType.Null:b instanceof String||"string"==typeof b?x.ValueType.String:"number"==typeof b?x.ValueType.Number:b instanceof Date?x.ValueType.Date:b.text&&b.hyperlink?x.ValueType.Hyperlink:b.formula?x.ValueType.Formula:x.ValueType.Null}get address(){return this.model.address}set address(b){this.model.address=b}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:b}=this.cell,v=b.findCell(this.model.sharedFormula);this._translatedFormula=v&&g(v.formula,v.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:m.Types.Merge,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Merge,master:v?v.address:void 0},this._master=v,v&&v.addMergeRef()}get value(){return this._master.value}set value(b){b instanceof m?(this._master&&this._master.releaseMergeRef(),b.addMergeRef(),this._master=b):this._master.value=b}isMergedTo(b){return b===this._master}get master(){return this._master}get type(){return m.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:m.Types.JSON,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.String,value:JSON.stringify(v),rawValue:v}}get value(){return this.model.rawValue}set value(b){this.model.rawValue=b,this.model.value=JSON.stringify(b)}get type(){return m.Types.String}get effectiveType(){return m.Types.String}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:m.Types.SharedString,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.SharedString,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.SharedString}get effectiveType(){return m.Types.SharedString}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:m.Types.RichText,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.String,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}toString(){return this.model.value.richText.map(b=>b.text).join("")}get type(){return m.Types.RichText}get effectiveType(){return m.Types.RichText}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:m.Types.Boolean,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Boolean,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.Boolean}get effectiveType(){return m.Types.Boolean}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:m.Types.Error,f:class{constructor(b,v){this.model={address:b.address,type:m.Types.Error,value:v}}get value(){return this.model.value}set value(b){this.model.value=b}get type(){return m.Types.Error}get effectiveType(){return m.Types.Error}get address(){return this.model.address}set address(b){this.model.address=b}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((b,v)=>(b[v.t]=v.f,b),[]),create(b,v,A){const D=this.types[b];if(!D)throw new Error("Could not create Value of type "+b);return new D(v,A)}};K.exports=m},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(k,K,U){"use strict";const I=k("../utils/under-dash"),w=k("./enums"),x=k("../utils/col-cache");class g{constructor(m,_,b){this._worksheet=m,this._number=_,!1!==b&&(this.defn=b)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return x.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(m){m?(this.key=m.key,this.width=void 0!==m.width?m.width:9,this.outlineLevel=m.outlineLevel,m.style?this.style=m.style:this.style={},this.header=m.header,this._hidden=!!m.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(m){void 0!==m?(this._header=m,this.headers.forEach((_,b)=>{this._worksheet.getCell(b+1,this.number).value=_})):this._header=void 0}get key(){return this._key}set key(m){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=m,m&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(m){this._hidden=m}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(m){this._outlineLevel=m}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(m){return this.width===m.width&&this.hidden===m.hidden&&this.outlineLevel===m.outlineLevel&&I.isEqual(this.style,m.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const m=this.style;return!m||!(m.font||m.numFmt||m.alignment||m.border||m.fill||m.protection)}get headerCount(){return this.headers.length}eachCell(m,_){const b=this.number;_||(_=m,m=null),this._worksheet.eachRow(m,(v,A)=>{_(v.getCell(b),A)})}get values(){const m=[];return this.eachCell((_,b)=>{_&&_.type!==w.ValueType.Null&&(m[b]=_.value)}),m}set values(m){if(!m)return;const _=this.number;let b=0;m.hasOwnProperty("0")&&(b=1),m.forEach((v,A)=>{this._worksheet.getCell(A+b,_).value=v})}_applyStyle(m,_){return this.style[m]=_,this.eachCell(b=>{b[m]=_}),_}get numFmt(){return this.style.numFmt}set numFmt(m){this._applyStyle("numFmt",m)}get font(){return this.style.font}set font(m){this._applyStyle("font",m)}get alignment(){return this.style.alignment}set alignment(m){this._applyStyle("alignment",m)}get protection(){return this.style.protection}set protection(m){this._applyStyle("protection",m)}get border(){return this.style.border}set border(m){this._applyStyle("border",m)}get fill(){return this.style.fill}set fill(m){this._applyStyle("fill",m)}static toModel(m){const _=[];let b=null;return m&&m.forEach((v,A)=>{v.isDefault?b&&(b=null):b&&v.equivalentTo(b)?b.max=A+1:(b={min:A+1,max:A+1,width:void 0!==v.width?v.width:9,style:v.style,isCustomWidth:v.isCustomWidth,hidden:v.hidden,outlineLevel:v.outlineLevel,collapsed:v.collapsed},_.push(b))}),_.length?_:void 0}static fromModel(m,_){const b=[];let v=1,A=0;for(_=(_=_||[]).sort(function(D,E){return D.min-E.min});A<_.length;){const D=_[A++];for(;v{_.removeCellEx(m)})}forEach(m){I.each(this.matrixMap,(_,b)=>{_.forEach(v=>{m(b,v)})})}getNames(m){return this.getNamesEx(w.decodeEx(m))}getNamesEx(m){return I.map(this.matrixMap,(_,b)=>_.findCellEx(m)&&b).filter(Boolean)}_explore(m,_){_.mark=!1;const{sheetName:b}=_,v=new g(_.row,_.col,_.row,_.col,b);let A,D;function E(T,z){const H=m.findCellAt(b,T,_.col);return!(!H||!H.mark||(v[z]=T,H.mark=!1,0))}for(D=_.row-1;E(D,"top");D--);for(D=_.row+1;E(D,"bottom");D++);function O(T,z){const H=[];for(D=v.top;D<=v.bottom;D++){const Q=m.findCellAt(b,D,T);if(!Q||!Q.mark)return!1;H.push(Q)}v[z]=T;for(let Q=0;Q{b.mark=!0}),{name:m,ranges:_.map(b=>b.mark&&this._explore(_,b)).filter(Boolean).map(b=>b.$shortRange)}):{name:m,ranges:[]}}normaliseMatrix(m,_){m.forEachInSheet(_,(b,v,A)=>{b&&(b.row===v&&b.col===A||(b.row=v,b.col=A,b.address=w.n2l(A)+v))})}spliceRows(m,_,b,v){I.each(this.matrixMap,A=>{A.spliceRows(m,_,b,v),this.normaliseMatrix(A,m)})}spliceColumns(m,_,b,v){I.each(this.matrixMap,A=>{A.spliceColumns(m,_,b,v),this.normaliseMatrix(A,m)})}get model(){return I.map(this.matrixMap,(m,_)=>this.getRanges(_,m)).filter(m=>m.ranges.length)}set model(m){const _=this.matrixMap={};m.forEach(b=>{const v=_[b.name]=new x;b.ranges.forEach(A=>{f.test(A.split("!").pop()||"")&&v.addCell(A)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(k,K,U){"use strict";K.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(k,K,U){"use strict";const I=k("../utils/col-cache"),w=k("./anchor");K.exports=class{constructor(x,g){this.worksheet=x,this.model=g}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(x){let{type:g,imageId:f,range:m,hyperlinks:_}=x;if(this.type=g,this.imageId=f,"image"===g)if("string"==typeof m){const b=I.decode(m);this.range={tl:new w(this.worksheet,{col:b.left,row:b.top},-1),br:new w(this.worksheet,{col:b.right,row:b.bottom},0),editAs:"oneCell"}}else this.range={tl:new w(this.worksheet,m.tl,0),br:m.br&&new w(this.worksheet,m.br,0),ext:m.ext,editAs:m.editAs,hyperlinks:_||m.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(k,K,U){"use strict";const I=k("../utils/under-dash");class w{constructor(g){this.note=g}get model(){let g=null;return g="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},I.deepMerge({},w.DEFAULT_CONFIGS,g)}set model(g){const{note:f}=g,{texts:m}=f;1===m.length&&1===Object.keys(m[0]).length?this.note=m[0].text:this.note=f}static fromModel(g){const f=new w;return f.model=g,f}}w.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},K.exports=w},{"../utils/under-dash":26}],10:[function(k,K,U){"use strict";const I=k("../utils/col-cache");class w{constructor(){this.decode(arguments)}setTLBR(g,f,m,_,b){if(arguments.length<4){const v=I.decodeAddress(g),A=I.decodeAddress(f);this.model={top:Math.min(v.row,A.row),left:Math.min(v.col,A.col),bottom:Math.max(v.row,A.row),right:Math.max(v.col,A.col),sheetName:m},this.setTLBR(v.row,v.col,A.row,A.col,b)}else this.model={top:Math.min(g,m),left:Math.min(f,_),bottom:Math.max(g,m),right:Math.max(f,_),sheetName:b}}decode(g){switch(g.length){case 5:this.setTLBR(g[0],g[1],g[2],g[3],g[4]);break;case 4:this.setTLBR(g[0],g[1],g[2],g[3]);break;case 3:this.setTLBR(g[0],g[1],g[2]);break;case 2:this.setTLBR(g[0],g[1]);break;case 1:{const f=g[0];if(f instanceof w)this.model={top:f.model.top,left:f.model.left,bottom:f.model.bottom,right:f.model.right,sheetName:f.sheetName};else if(f instanceof Array)this.decode(f);else if(f.top&&f.left&&f.bottom&&f.right)this.model={top:f.top,left:f.left,bottom:f.bottom,right:f.right,sheetName:f.sheetName};else{const m=I.decodeEx(f);m.top?this.model={top:m.top,left:m.left,bottom:m.bottom,right:m.right,sheetName:m.sheetName}:this.model={top:m.row,left:m.col,bottom:m.row,right:m.col,sheetName:m.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+g.length)}}get top(){return this.model.top||1}set top(g){this.model.top=g}get left(){return this.model.left||1}set left(g){this.model.left=g}get bottom(){return this.model.bottom||1}set bottom(g){this.model.bottom=g}get right(){return this.model.right||1}set right(g){this.model.right=g}get sheetName(){return this.model.sheetName}set sheetName(g){this.model.sheetName=g}get _serialisedSheetName(){const{sheetName:g}=this.model;return g?/^[a-zA-Z0-9]*$/.test(g)?g+"!":`'${g}'!`:""}expand(g,f,m,_){(!this.model.top||gthis.bottom)&&(this.bottom=m),(!this.model.right||_>this.right)&&(this.right=_)}expandRow(g){if(g){const{dimensions:f,number:m}=g;f&&this.expand(m,f.min,m,f.max)}}expandToAddress(g){const f=I.decodeEx(g);this.expand(f.row,f.col,f.row,f.col)}get tl(){return I.n2l(this.left)+this.top}get $t$l(){return`$${I.n2l(this.left)}$${this.top}`}get br(){return I.n2l(this.right)+this.bottom}get $b$r(){return`$${I.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(g){return!(g.sheetName&&this.sheetName&&g.sheetName!==this.sheetName||g.bottomthis.bottom||g.rightthis.right)}contains(g){const f=I.decodeEx(g);return this.containsEx(f)}containsEx(g){return(!g.sheetName||!this.sheetName||g.sheetName===this.sheetName)&&g.row>=this.top&&g.row<=this.bottom&&g.col>=this.left&&g.col<=this.right}forEachAddress(g){for(let f=this.left;f<=this.right;f++)for(let m=this.top;m<=this.bottom;m++)g(I.encodeAddress(m,f),m,f)}}K.exports=w},{"../utils/col-cache":19}],11:[function(k,K,U){"use strict";const I=k("../utils/under-dash"),w=k("./enums"),x=k("../utils/col-cache"),g=k("./cell");K.exports=class{constructor(f,m){this._worksheet=f,this._number=m,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(f){return this._cells[f-1]}getCellEx(f){let m=this._cells[f.col-1];if(!m){const _=this._worksheet.getColumn(f.col);m=new g(this,_,f.address),this._cells[f.col-1]=m}return m}getCell(f){if("string"==typeof f){const m=this._worksheet.getColumnKey(f);f=m?m.number:x.l2n(f)}return this._cells[f-1]||this.getCellEx({address:x.encodeAddress(this._number,f),row:this._number,col:f})}splice(f,m){const _=f+m;for(var b=arguments.length,v=new Array(b>2?b-2:0),A=2;A0)for(O=E;O>=_;O--)T=this._cells[O-1],T?(z=this.getCell(O+D),z.value=T.value,z.style=T.style,z._comment=T._comment):this._cells[O+D-1]=void 0;for(O=0;O{_&&_.type!==w.ValueType.Null&&m(_,b+1)})}addPageBreak(f,m){const _=this._worksheet,b=Math.max(0,f-1)||0,v=Math.max(0,m-1)||16838,A={id:this._number,max:v,man:1};b&&(A.min=b),_.rowBreaks.push(A)}get values(){const f=[];return this._cells.forEach(m=>{m&&m.type!==w.ValueType.Null&&(f[m.col]=m.value)}),f}set values(f){if(this._cells=[],f)if(f instanceof Array){let m=0;f.hasOwnProperty("0")&&(m=1),f.forEach((_,b)=>{void 0!==_&&(this.getCellEx({address:x.encodeAddress(this._number,b+m),row:this._number,col:b+m}).value=_)})}else this._worksheet.eachColumnKey((m,_)=>{void 0!==f[_]&&(this.getCellEx({address:x.encodeAddress(this._number,m.number),row:this._number,col:m.number}).value=f[_])})}get hasValues(){return I.some(this._cells,f=>f&&f.type!==w.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let f=0;return this.eachCell(()=>{f++}),f}get dimensions(){let f=0,m=0;return this._cells.forEach(_=>{_&&_.type!==w.ValueType.Null&&((!f||f>_.col)&&(f=_.col),m<_.col&&(m=_.col))}),f>0?{min:f,max:m}:null}_applyStyle(f,m){return this.style[f]=m,this._cells.forEach(_=>{_&&(_[f]=m)}),m}get numFmt(){return this.style.numFmt}set numFmt(f){this._applyStyle("numFmt",f)}get font(){return this.style.font}set font(f){this._applyStyle("font",f)}get alignment(){return this.style.alignment}set alignment(f){this._applyStyle("alignment",f)}get protection(){return this.style.protection}set protection(f){this._applyStyle("protection",f)}get border(){return this.style.border}set border(f){this._applyStyle("border",f)}get fill(){return this.style.fill}set fill(f){this._applyStyle("fill",f)}get hidden(){return!!this._hidden}set hidden(f){this._hidden=f}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(f){this._outlineLevel=f}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const f=[];let m=0,_=0;return this._cells.forEach(b=>{if(b){const v=b.model;v&&((!m||m>b.col)&&(m=b.col),_{switch(_.type){case g.Types.Merge:break;default:{let b;if(_.address)b=x.decodeAddress(_.address);else if(m){const{row:v}=m,A=m.col+1;b={row:v,col:A,address:x.encodeAddress(v,A),$col$row:`$${x.n2l(A)}$${v}`}}m=b,this.getCellEx(b).model=_;break}}}),f.height?this.height=f.height:delete this.height,this.hidden=f.hidden,this.outlineLevel=f.outlineLevel||0,this.style=f.style&&JSON.parse(JSON.stringify(f.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(k,K,U){"use strict";const I=k("../utils/col-cache");class w{constructor(g,f,m){this.table=g,this.column=f,this.index=m}_set(g,f){this.table.cacheState(),this.column[g]=f}get name(){return this.column.name}set name(g){this._set("name",g)}get filterButton(){return this.column.filterButton}set filterButton(g){this.column.filterButton=g}get style(){return this.column.style}set style(g){this.column.style=g}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(g){this._set("totalsRowLabel",g)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(g){this._set("totalsRowFunction",g)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(g){this._set("totalsRowResult",g)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(g){this._set("totalsRowFormula",g)}}K.exports=class{constructor(x,g){this.worksheet=x,g&&(this.table=g,this.validate(),this.store())}getFormula(x){switch(x.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${x.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${x.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${x.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${x.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${x.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${x.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${x.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${x.name}])`;case"custom":return x.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+x.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:x}=this,g=(D,E,O)=>{void 0===D[E]&&(D[E]=O)};g(x,"headerRow",!0),g(x,"totalsRow",!1),g(x,"style",{}),g(x.style,"theme","TableStyleMedium2"),g(x.style,"showFirstColumn",!1),g(x.style,"showLastColumn",!1),g(x.style,"showRowStripes",!1),g(x.style,"showColumnStripes",!1);const f=(D,E)=>{if(!D)throw new Error(E)};f(x.ref,"Table must have ref"),f(x.columns,"Table must have column definitions"),f(x.rows,"Table must have row definitions"),x.tl=I.decodeAddress(x.ref);const{row:m,col:_}=x.tl;f(m>0,"Table must be on valid row"),f(_>0,"Table must be on valid col");const{width:b,filterHeight:v,tableHeight:A}=this;x.autoFilterRef=I.encode(m,_,m+v-1,_+b-1),x.tableRef=I.encode(m,_,m+A-1,_+b-1),x.columns.forEach((D,E)=>{f(D.name,`Column ${E} must have a name`),0===E?g(D,"totalsRowLabel","Total"):(g(D,"totalsRowFunction","none"),D.totalsRowFormula=this.getFormula(D))})}store(){const x=(v,A)=>{A&&Object.keys(A).forEach(D=>{v[D]=A[D]})},{worksheet:g,table:f}=this,{row:m,col:_}=f.tl;let b=0;if(f.headerRow){const v=g.getRow(m+b++);f.columns.forEach((A,D)=>{const{style:E,name:O}=A,T=v.getCell(_+D);T.value=O,x(T,E)})}if(f.rows.forEach(v=>{const A=g.getRow(m+b++);v.forEach((D,E)=>{const O=A.getCell(_+E);O.value=D,x(O,f.columns[E].style)})}),f.totalsRow){const v=g.getRow(m+b++);f.columns.forEach((A,D)=>{const E=v.getCell(_+D);if(0===D)E.value=A.totalsRowLabel;else{const O=this.getFormula(A);E.value=O?{formula:A.totalsRowFormula,result:A.totalsRowResult}:null}x(E,A.style)})}}load(x){const{table:g}=this,{row:f,col:m}=g.tl;let _=0;if(g.headerRow){const b=x.getRow(f+_++);g.columns.forEach((v,A)=>{b.getCell(m+A).value=v.name})}if(g.rows.forEach(b=>{const v=x.getRow(f+_++);b.forEach((A,D)=>{v.getCell(m+D).value=A})}),g.totalsRow){const b=x.getRow(f+_++);g.columns.forEach((v,A)=>{const D=b.getCell(m+A);0===A?D.value=v.totalsRowLabel:this.getFormula(v)&&(D.value={formula:v.totalsRowFormula,result:v.totalsRowResult})})}}get model(){return this.table}set model(x){this.table=x}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const x=I.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let g=0;g1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(x,g)}getColumn(x){const g=this.table.columns[x];return new w(this,g,x)}addColumn(x,g,f){this.cacheState(),void 0===f?(this.table.columns.push(x),this.table.rows.forEach((m,_)=>{m.push(g[_])})):(this.table.columns.splice(f,0,x),this.table.rows.forEach((m,_)=>{m.splice(f,0,g[_])}))}removeColumns(x){let g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(x,g),this.table.rows.forEach(f=>{f.splice(x,g)})}_assign(x,g,f){this.cacheState(),x[g]=f}get ref(){return this.table.ref}set ref(x){this._assign(this.table,"ref",x)}get name(){return this.table.name}set name(x){this.table.name=x}get displayName(){return this.table.displyName||this.table.name}set displayNamename(x){this.table.displayName=x}get headerRow(){return this.table.headerRow}set headerRow(x){this._assign(this.table,"headerRow",x)}get totalsRow(){return this.table.totalsRow}set totalsRow(x){this._assign(this.table,"totalsRow",x)}get theme(){return this.table.style.name}set theme(x){this.table.style.name=x}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(x){this.table.style.showFirstColumn=x}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(x){this.table.style.showLastColumn=x}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(x){this.table.style.showRowStripes=x}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(x){this.table.style.showColumnStripes=x}}},{"../utils/col-cache":19}],13:[function(k,K,U){"use strict";const I=k("./worksheet"),w=k("./defined-names"),x=k("../xlsx/xlsx"),g=k("../csv/csv");K.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new w}get xlsx(){return this._xlsx||(this._xlsx=new x(this)),this._xlsx}get csv(){return this._csv||(this._csv=new g(this)),this._csv}get nextId(){for(let f=1;f(E&&E.orderNo)>D?E.orderNo:D,0),v=Object.assign({},m,{id:_,name:f,orderNo:b+1,workbook:this}),A=new I(v);return this._worksheets[_]=A,A}removeWorksheetEx(f){delete this._worksheets[f.id]}removeWorksheet(f){const m=this.getWorksheet(f);m&&m.destroy()}getWorksheet(f){return void 0===f?this._worksheets.find(Boolean):"number"==typeof f?this._worksheets[f]:"string"==typeof f?this._worksheets.find(m=>m&&m.name===f):void 0}get worksheets(){return this._worksheets.slice(1).sort((f,m)=>f.orderNo-m.orderNo).filter(Boolean)}eachSheet(f){this.worksheets.forEach(m=>{f(m,m.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(f){const m=this.media.length;return this.media.push(Object.assign({},f,{type:"image"})),m}getImage(f){return this.media[f]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(f=>f.model),sheets:this.worksheets.map(f=>f.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(f){this.creator=f.creator,this.lastModifiedBy=f.lastModifiedBy,this.lastPrinted=f.lastPrinted,this.created=f.created,this.modified=f.modified,this.company=f.company,this.manager=f.manager,this.title=f.title,this.subject=f.subject,this.keywords=f.keywords,this.category=f.category,this.description=f.description,this.language=f.language,this.revision=f.revision,this.contentStatus=f.contentStatus,this.properties=f.properties,this.calcProperties=f.calcProperties,this._worksheets=[],f.worksheets.forEach(m=>{const{id:_,name:b,state:v}=m,A=f.sheets&&f.sheets.findIndex(D=>D.id===_);(this._worksheets[_]=new I({id:_,name:b,orderNo:A,state:v,workbook:this})).model=m}),this._definedNames.model=f.definedNames,this.views=f.views,this._themes=f.themes,this.media=f.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(k,K,U){"use strict";const I=k("../utils/under-dash"),w=k("../utils/col-cache"),x=k("./range"),g=k("./row"),f=k("./column"),m=k("./enums"),_=k("./image"),b=k("./table"),v=k("./data-validations"),A=k("../utils/encryptor"),{copyStyle:D}=k("../utils/copy-style");K.exports=class{constructor(E){E=E||{},this._workbook=E.workbook,this.id=E.id,this.orderNo=E.orderNo,this.name=E.name,this.state=E.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},E.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!E.pageSetup||!E.pageSetup.fitToWidth&&!E.pageSetup.fitToHeight||E.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},E.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},E.headerFooter),this.dataValidations=new v,this.views=E.views||[],this.autoFilter=E.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(E){if(void 0===E&&(E="sheet"+this.id),this._name!==E){if("string"!=typeof E)throw new Error("The name has to be a string.");if(""===E)throw new Error("The name can't be empty.");if("History"===E)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(E))throw new Error(`Worksheet name ${E} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(E))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+E);if(E&&E.length>31&&(console.warn(`Worksheet name ${E} exceeds 31 chars. This will be truncated`),E=E.substring(0,31)),this._workbook._worksheets.find(O=>O&&O.name.toLowerCase()===E.toLowerCase()))throw new Error("Worksheet name already exists: "+E);this._name=E}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const E=new x;return this._rows.forEach(O=>{if(O){const T=O.dimensions;T&&E.expand(O.number,T.min,O.number,T.max)}}),E}get columns(){return this._columns}set columns(E){this._headerRowCount=E.reduce((z,H)=>{const Q=(H.header?1:H.headers&&H.headers.length)||0;return Math.max(z,Q)},0);let O=1;const T=this._columns=[];E.forEach(z=>{const H=new f(this,O++,!1);T.push(H),H.defn=z})}getColumnKey(E){return this._keys[E]}setColumnKey(E,O){this._keys[E]=O}deleteColumnKey(E){delete this._keys[E]}eachColumnKey(E){I.each(this._keys,E)}getColumn(E){if("string"==typeof E){const O=this._keys[E];if(O)return O;E=w.l2n(E)}if(this._columns||(this._columns=[]),E>this._columns.length){let O=this._columns.length+1;for(;O<=E;)this._columns.push(new f(this,O++))}return this._columns[E-1]}spliceColumns(E,O){const T=this._rows.length;for(var z=arguments.length,H=new Array(z>2?z-2:0),Q=2;Q0)for(let fe=0;fe{be.push(ve[fe]||null)});const Se=this.getRow(fe+1);Se.splice.apply(Se,be)}else this._rows.forEach(fe=>{fe&&fe.splice(E,O)});const ae=H.length-O,ge=E+O,le=this._columns.length;if(ae<0)for(let fe=E+H.length;fe<=le;fe++)this.getColumn(fe).defn=this.getColumn(fe-ae).defn;else if(ae>0)for(let fe=le;fe>=ge;fe--)this.getColumn(fe+ae).defn=this.getColumn(fe).defn;for(let fe=E;fe{E=Math.max(E,O.cellCount)}),E}get actualColumnCount(){const E=[];let O=0;return this.eachRow(T=>{T.eachCell(z=>{let{col:H}=z;E[H]||(E[H]=!0,O++)})}),O}_commitRow(){}get _lastRowNumber(){const E=this._rows;let O=E.length;for(;O>0&&void 0===E[O-1];)O--;return O}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(E){return this._rows[E-1]}findRows(E,O){return this._rows.slice(E-1,E-1+O)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let E=0;return this.eachRow(()=>{E++}),E}getRow(E){let O=this._rows[E-1];return O||(O=this._rows[E-1]=new g(this,E)),O}getRows(E,O){if(O<1)return;const T=[];for(let z=E;z1&&void 0!==arguments[1]?arguments[1]:"n";const T=this._nextRow,z=this.getRow(T);return z.values=E,this._setStyleOption(T,"i"===O[0]?O:"n"),z}addRows(E){let O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const T=[];return E.forEach(z=>{T.push(this.addRow(z,O))}),T}insertRow(E,O){let T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(E,0,O),this._setStyleOption(E,T),this.getRow(E)}insertRows(E,O){let T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(E,0,...O),"n"!==T)for(let z=0;z1&&void 0!==arguments[1]?arguments[1]:"n";"o"===O[0]&&void 0!==this.findRow(E+1)?this._copyStyle(E+1,E,"+"===O[1]):"i"===O[0]&&void 0!==this.findRow(E-1)&&this._copyStyle(E-1,E,"+"===O[1])}_copyStyle(E,O){let T=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const z=this.getRow(E),H=this.getRow(O);H.style=D(z.style),z.eachCell({includeEmpty:T},(Q,ae)=>{H.getCell(ae).style=D(Q.style)}),H.height=z.height}duplicateRow(E,O){let T=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const z=this._rows[E-1],H=new Array(O).fill(z.values);this.spliceRows(E+1,T?0:O,...H);for(let Q=0;Q{ae.getCell(le).style=ge.style})}}spliceRows(E,O){const T=E+O;for(var z=arguments.length,H=new Array(z>2?z-2:0),Q=2;Q{Se.getCell(W).style=ve.style}),this._rows[fe-1]=void 0}else this._rows[fe+ge-1]=void 0;else if(ge>0)for(fe=le;fe>=T;fe--)if(be=this._rows[fe-1],be){const Se=this.getRow(fe+ge);Se.values=be.values,Se.style=be.style,Se.height=be.height,be.eachCell({includeEmpty:!0},(ve,W)=>{if(Se.getCell(W).style=ve.style,"MergeValue"===ve._value.constructor.name){const J=this.getRow(ve._row._number+ae).getCell(W),de=ve._value._master,M=this.getRow(de._row._number+ae).getCell(de._column._number);J.merge(M)}})}else this._rows[fe+ge-1]=void 0;for(fe=0;fe{T&&T.hasValues&&O(T,T.number)})}getSheetValues(){const E=[];return this._rows.forEach(O=>{O&&(E[O.number]=O.values)}),E}findCell(E,O){const T=w.getAddress(E,O),z=this._rows[T.row-1];return z?z.findCell(T.col):void 0}getCell(E,O){const T=w.getAddress(E,O);return this.getRow(T.row).getCellEx(T)}mergeCells(){for(var E=arguments.length,O=new Array(E),T=0;T{if(z.intersects(E))throw new Error("Cannot merge already merged cells")});const T=this.getCell(E.top,E.left);for(let z=E.top;z<=E.bottom;z++)for(let H=E.left;H<=E.right;H++)(z>E.top||H>E.left)&&this.getCell(z,H).merge(T,O);this._merges[T.address]=E}_unMergeMaster(E){const O=this._merges[E.address];if(O){for(let T=O.top;T<=O.bottom;T++)for(let z=O.left;z<=O.right;z++)this.getCell(T,z).unmerge();delete this._merges[E.address]}}get hasMerges(){return I.some(this._merges,Boolean)}unMergeCells(){for(var E=arguments.length,O=new Array(E),T=0;T3&&void 0!==arguments[3]?arguments[3]:"shared";const H=w.decode(E),{top:Q,left:ae,bottom:ge,right:le}=H,fe=le-ae+1,be=w.encodeAddress(Q,ae),Se="shared"===z;let ve;ve="function"==typeof T?T:Array.isArray(T)?Array.isArray(T[0])?(J,de)=>T[J-Q][de-ae]:(J,de)=>T[(J-Q)*fe+(de-ae)]:()=>{};let W=!0;for(let J=Q;J<=ge;J++)for(let de=ae;de<=le;de++)W?(this.getCell(J,de).value={shareType:z,formula:O,ref:E,result:ve(J,de)},W=!1):this.getCell(J,de).value=Se?{sharedFormula:be,result:ve(J,de)}:ve(J,de)}addImage(E,O){const T={type:"image",imageId:E,range:O};this._media.push(new _(this,T))}getImages(){return this._media.filter(E=>"image"===E.type)}addBackgroundImage(E){const O={type:"background",imageId:E};this._media.push(new _(this,O))}getBackgroundImageId(){const E=this._media.find(O=>"background"===O.type);return E&&E.imageId}protect(E,O){return new Promise(T=>{this.sheetProtection={sheet:!0},O&&"spinCount"in O&&(O.spinCount=Number.isFinite(O.spinCount)?Math.round(Math.max(0,O.spinCount)):1e5),E&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=A.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=O&&"spinCount"in O?O.spinCount:1e5,this.sheetProtection.hashValue=A.convertPasswordToHash(E,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),O&&(this.sheetProtection=Object.assign(this.sheetProtection,O),!E&&"spinCount"in O&&delete this.sheetProtection.spinCount),T()})}unprotect(){this.sheetProtection=null}addTable(E){const O=new b(this,E);return this.tables[E.name]=O,O}getTable(E){return this.tables[E]}removeTable(E){delete this.tables[E]}getTables(){return Object.values(this.tables)}addConditionalFormatting(E){this.conditionalFormattings.push(E)}removeConditionalFormatting(E){"number"==typeof E?this.conditionalFormattings.splice(E,1):this.conditionalFormattings=E instanceof Function?this.conditionalFormattings.filter(E):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(E){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=E}get model(){const E={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(z=>z.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(z=>z.model),conditionalFormattings:this.conditionalFormattings};E.cols=f.toModel(this.columns);const O=E.rows=[],T=E.dimensions=new x;return this._rows.forEach(z=>{const H=z&&z.model;H&&(T.expand(H.number,H.min,H.number,H.max),O.push(H))}),E.merges=[],I.each(this._merges,z=>{E.merges.push(z.range)}),E}_parseRows(E){this._rows=[],E.rows.forEach(O=>{const T=new g(this,O.number);this._rows[T.number-1]=T,T.model=O})}_parseMergeCells(E){I.each(E.mergeCells,O=>{this.mergeCellsWithoutStyle(O)})}set model(E){this.name=E.name,this._columns=f.fromModel(this,E.cols),this._parseRows(E),this._parseMergeCells(E),this.dataValidations=new v(E.dataValidations),this.properties=E.properties,this.pageSetup=E.pageSetup,this.headerFooter=E.headerFooter,this.views=E.views,this.autoFilter=E.autoFilter,this._media=E.media.map(O=>new _(this,O)),this.sheetProtection=E.sheetProtection,this.tables=E.tables.reduce((O,T)=>{const z=new b;return z.model=T,O[T.name]=z,O},{}),this.conditionalFormattings=E.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(k,K,U){"use strict";k("core-js/modules/es.promise"),k("core-js/modules/es.promise.finally"),k("core-js/modules/es.object.assign"),k("core-js/modules/es.object.keys"),k("core-js/modules/es.object.values"),k("core-js/modules/es.symbol"),k("core-js/modules/es.symbol.async-iterator"),k("core-js/modules/es.array.iterator"),k("core-js/modules/es.array.includes"),k("core-js/modules/es.array.find-index"),k("core-js/modules/es.array.find"),k("core-js/modules/es.string.from-code-point"),k("core-js/modules/es.string.includes"),k("core-js/modules/es.number.is-nan"),k("regenerator-runtime/runtime");const I={Workbook:k("./doc/workbook")},w=k("./doc/enums");Object.keys(w).forEach(x=>{I[x]=w[x]}),K.exports=I},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(k,K,U){"use strict";const I=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");U.bufferToString=function(w){return"string"==typeof w?w:I?I.decode(w):w.toString()}},{}],17:[function(k,K,U){"use strict";const I=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:w}=k("buffer");U.stringToBuffer=function(x){return"string"!=typeof x?x:I?w.from(I.encode(x).buffer):w.from(x)}},{buffer:220}],18:[function(k,K,U){"use strict";const I=k("./under-dash"),w=k("./col-cache");K.exports=class{constructor(x){this.template=x,this.sheets={}}addCell(x){this.addCellEx(w.decodeEx(x))}getCell(x){return this.findCellEx(w.decodeEx(x),!0)}findCell(x){return this.findCellEx(w.decodeEx(x),!1)}findCellAt(x,g,f){const m=this.sheets[x],_=m&&m[g];return _&&_[f]}addCellEx(x){if(x.top)for(let g=x.top;g<=x.bottom;g++)for(let f=x.left;f<=x.right;f++)this.getCellAt(x.sheetName,g,f);else this.findCellEx(x,!0)}getCellEx(x){return this.findCellEx(x,!0)}findCellEx(x,g){const f=this.findSheet(x,g),m=this.findSheetRow(f,x,g);return this.findRowCell(m,x,g)}getCellAt(x,g,f){const m=this.sheets[x]||(this.sheets[x]=[]),_=m[g]||(m[g]=[]);return _[f]||(_[f]={sheetName:x,address:w.n2l(f)+g,row:g,col:f})}removeCellEx(x){const g=this.findSheet(x);if(!g)return;const f=this.findSheetRow(g,x);f&&delete f[x.col]}forEachInSheet(x,g){const f=this.sheets[x];f&&f.forEach((m,_)=>{m&&m.forEach((b,v)=>{b&&g(b,_,v)})})}forEach(x){I.each(this.sheets,(g,f)=>{this.forEachInSheet(f,x)})}map(x){const g=[];return this.forEach(f=>{g.push(x(f))}),g}findSheet(x,g){const f=x.sheetName;return this.sheets[f]?this.sheets[f]:g?this.sheets[f]=[]:void 0}findSheetRow(x,g,f){const{row:m}=g;return x&&x[m]?x[m]:f?x[m]=[]:void 0}findRowCell(x,g,f){const{col:m}=g;return x&&x[m]?x[m]:f?x[m]=this.template?Object.assign(g,JSON.parse(JSON.stringify(this.template))):g:void 0}spliceRows(x,g,f,m){const _=this.sheets[x];if(_){const b=[];for(let v=0;v{v.splice(g,f,...b)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(k,K,U){"use strict";const I=/^[A-Z]+\d+$/,w={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:x=>x<=26?1:x<=676?2:3,_fill(x){let g,f,m,_,b,v=1;if(x>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&x>=1){for(;v<=26;)g=this._dictionary[v-1],this._n2l[v]=g,this._l2n[g]=v,v++;this._l2nFill=1}if(this._l2nFill<2&&x>=2){for(v=27;v<=702;)f=v-27,m=f%26,_=Math.floor(f/26),g=this._dictionary[_]+this._dictionary[m],this._n2l[v]=g,this._l2n[g]=v,v++;this._l2nFill=2}if(this._l2nFill<3&&x>=3){for(v=703;v<=16384;)f=v-703,m=f%26,_=Math.floor(f/26)%26,b=Math.floor(f/676),g=this._dictionary[b]+this._dictionary[_]+this._dictionary[m],this._n2l[v]=g,this._l2n[g]=v,v++;this._l2nFill=3}},l2n(x){if(this._l2n[x]||this._fill(x.length),!this._l2n[x])throw new Error("Out of bounds. Invalid column letter: "+x);return this._l2n[x]},n2l(x){if(x<1||x>16384)throw new Error(x+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[x]||this._fill(this._level(x)),this._n2l[x]},_hash:{},validateAddress(x){if(!I.test(x))throw new Error("Invalid Address: "+x);return!0},decodeAddress(x){const g=x.length<5&&this._hash[x];if(g)return g;let f=!1,m="",_=0,b=!1,v="",A=0;for(let E,O=0;O=65&&E<=90)f=!0,m+=x[O],_=26*_+E-64;else if(E>=48&&E<=57)b=!0,v+=x[O],A=10*A+E-48;else if(b&&f&&36!==E)break;if(f){if(_>16384)throw new Error("Out of bounds. Invalid column letter: "+m)}else _=void 0;b||(A=void 0);const D={address:x=m+v,col:_,row:A,$col$row:`$${m}$${v}`};return _<=100&&A<=100&&(this._hash[x]=D,this._hash[D.$col$row]=D),D},getAddress(x,g){if(g){const f=this.n2l(g)+x;return this.decodeAddress(f)}return this.decodeAddress(x)},decode(x){const g=x.split(":");if(2===g.length){const f=this.decodeAddress(g[0]),m=this.decodeAddress(g[1]),_={top:Math.min(f.row,m.row),left:Math.min(f.col,m.col),bottom:Math.max(f.row,m.row),right:Math.max(f.col,m.col)};return _.tl=this.n2l(_.left)+_.top,_.br=this.n2l(_.right)+_.bottom,_.dimensions=`${_.tl}:${_.br}`,_}return this.decodeAddress(x)},decodeEx(x){const g=x.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),f=g[1]||g[2],m=g[3],_=m.split(":");if(_.length>1){let v=this.decodeAddress(_[0]),A=this.decodeAddress(_[1]);const D=Math.min(v.row,A.row),E=Math.min(v.col,A.col),O=Math.max(v.row,A.row),T=Math.max(v.col,A.col);return v=this.n2l(E)+D,A=this.n2l(T)+O,{top:D,left:E,bottom:O,right:T,sheetName:f,tl:{address:v,col:E,row:D,$col$row:`$${this.n2l(E)}$${D}`,sheetName:f},br:{address:A,col:T,row:O,$col$row:`$${this.n2l(T)}$${O}`,sheetName:f},dimensions:`${v}:${A}`}}if(m.startsWith("#"))return f?{sheetName:f,error:m}:{error:m};const b=this.decodeAddress(m);return f?{sheetName:f,...b}:b},encodeAddress:(x,g)=>w.n2l(g)+x,encode(){switch(arguments.length){case 2:return w.encodeAddress(arguments[0],arguments[1]);case 4:return`${w.encodeAddress(arguments[0],arguments[1])}:${w.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(x,g){const[f,m,,_,b]=x,[v,A]=g;return v>=f&&v<=_&&A>=m&&A<=b}};K.exports=w},{}],20:[function(k,K,U){"use strict";const I=(x,g)=>({...x,...g.reduce((f,m)=>(x[m]&&(f[m]={...x[m]}),f),{})}),w=function(x,g,f){let m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];x[f]&&(g[f]=I(x[f],m))};U.copyStyle=x=>{if(!x)return x;if(g=x,0===Object.keys(g).length)return{};var g;const f={...x};return w(x,f,"font",["color"]),w(x,f,"alignment"),w(x,f,"protection"),x.border&&(w(x,f,"border"),w(x.border,f.border,"top",["color"]),w(x.border,f.border,"left",["color"]),w(x.border,f.border,"bottom",["color"]),w(x.border,f.border,"right",["color"]),w(x.border,f.border,"diagonal",["color"])),x.fill&&(w(x,f,"fill",["fgColor","bgColor","center"]),x.fill.stops&&(f.fill.stops=x.fill.stops.map(m=>I(m,["color"])))),f}},{}],21:[function(k,K,U){(function(I){(function(){"use strict";const w=k("crypto"),x={hash(g){const f=w.createHash(g);for(var m=arguments.length,_=new Array(m>1?m-1:0),b=1;bw.randomBytes(g)};K.exports=x}).call(this)}).call(this,k("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(k,K,U){"use strict";const{SaxesParser:I}=k("saxes"),{PassThrough:w}=k("readable-stream"),{bufferToString:x}=k("./browser-buffer-decode");K.exports=function(){var g=gt(function*(f){f.pipe&&!f[Symbol.asyncIterator]&&(f=f.pipe(new w));const m=new I;let _;m.on("error",T=>{_=T});let b=[];m.on("opentag",T=>b.push({eventType:"opentag",value:T})),m.on("text",T=>b.push({eventType:"text",value:T})),m.on("closetag",T=>b.push({eventType:"closetag",value:T}));var D,v=!1,A=!1;try{for(var O,E=un(f);v=!(O=yield xt(E.next())).done;v=!1){const T=O.value;if(m.write(x(T)),_)throw _;yield b,b=[]}}catch(T){A=!0,D=T}finally{try{v&&null!=E.return&&(yield xt(E.return()))}finally{if(A)throw D}}});return function(f){return g.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(k,K,U){"use strict";const I=k("./col-cache"),w=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,x=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;K.exports={slideFormula:function(g,f,m){const _=I.decode(f),b=I.decode(m);return g.replace(w,(v,A,D,E,O)=>{if(O)return v;const T=x.exec(E);if(T){const z=T[1],H=T[2].toUpperCase(),Q=T[3],ae=T[4];if(H.length>3||3===H.length&&H>"XFD")return v;let ge=I.l2n(H),le=parseInt(ae,10);return z||(ge+=b.col-_.col),Q||(le+=b.row-_.row),(A||"")+(z||"")+I.n2l(ge)+(Q||"")+le}return v})}}},{"./col-cache":19}],24:[function(k,K,U){(function(I,w){(function(){"use strict";const x=k("readable-stream"),g=k("./utils"),f=k("./string-buf");class m{constructor(E,O){this._data=E,this._encoding=O}get length(){return this.toBuffer().length}copy(E,O,T,z){return this.toBuffer().copy(E,O,T,z)}toBuffer(){return this._buffer||(this._buffer=w.from(this._data,this._encoding)),this._buffer}}class _{constructor(E){this._data=E}get length(){return this._data.length}copy(E,O,T,z){return this._data._buf.copy(E,O,T,z)}toBuffer(){return this._data.toBuffer()}}class b{constructor(E){this._data=E}get length(){return this._data.length}copy(E,O,T,z){this._data.copy(E,O,T,z)}toBuffer(){return this._data}}class v{constructor(E){this.size=E,this.buffer=w.alloc(E),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const E=w.alloc(this.iWrite-this.iRead);return this.buffer.copy(E,0,this.iRead,this.iWrite),E}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(E){let O;return 0===E?null:void 0===E||E>=this.length?(O=this.toBuffer(),this.iRead=this.iWrite,O):(O=w.alloc(E),this.buffer.copy(O,0,this.iRead,E),this.iRead+=E,O)}write(E,O,T){const z=Math.min(T,this.size-this.iWrite);return E.copy(this.buffer,this.iWrite,O,O+z),this.iWrite+=z,z}}const A=function(D){D=D||{},this.bufSize=D.bufSize||1048576,this.buffers=[],this.batch=D.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};g.inherits(A,x.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return w.concat(this.buffers.map(D=>D.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const E=this.buffers[this.buffers.length-1];if(!E.full)return E}const D=new v(this.bufSize);return this.buffers.push(D),D},_pipe(D){var E=this;return ut(function*(){yield Promise.all(E.pipes.map(function(O){return new Promise(T=>{O.write(D.toBuffer(),()=>{T()})})}))})()},_writeToBuffers(D){let E=0;const O=D.length;for(;E1;)T._pipe(T.buffers.shift());else T.corked?(T._writeToBuffers(z),I.nextTick(O)):(yield T._pipe(z),O());else T.paused||T.emit("data",z.toBuffer()),T._writeToBuffers(z),T.emit("readable");return!0})()},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(D,E,O){const T=z=>{z?O(z):(this._flush(),this.pipes.forEach(H=>{H.end()}),this.emit("finish"))};D?this.write(D,E,T):T()},read(D){let E;if(D){for(E=[];D&&this.buffers.length&&!this.buffers[0].eod;){const O=this.buffers[0],T=O.read(D);D-=T.length,E.push(T),O.eod&&O.full&&this.buffers.shift()}return w.concat(E)}return E=this.buffers.map(O=>O.toBuffer()).filter(Boolean),this.buffers=[],w.concat(E)},setEncoding(D){this.encoding=D},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(D){this.pipes.push(D),!this.paused&&this.buffers.length&&this.end()},unpipe(D){this.pipes=this.pipes.filter(E=>E!==D)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),K.exports=A}).call(this)}).call(this,k("_process"),k("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(k,K,U){(function(I){(function(){"use strict";K.exports=class{constructor(w){this._buf=I.alloc(w&&w.size||16384),this._encoding=w&&w.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=I.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(w){w=w||0,this._buffer=void 0,this._inPos=w}_grow(w){let x=2*this._buf.length;for(;x=this._buf.length-4;)this._grow(this._inPos+w.length),x=this._inPos+this._buf.write(w,this._inPos,this._encoding);this._inPos=x}addStringBuf(w){w.length&&(this._buffer=void 0,this.length+w.length>this.capacity&&this._grow(this.length+w.length),w._buf.copy(this._buf,this._inPos,0,w.length),this._inPos+=w.length)}}}).call(this)}).call(this,k("buffer").Buffer)},{buffer:220}],26:[function(k,K,U){"use strict";const{toString:I}=Object.prototype,w=/["&<>]/,x={each:function(g,f){g&&(Array.isArray(g)?g.forEach(f):Object.keys(g).forEach(m=>{f(g[m],m)}))},some:function(g,f){return!!g&&(Array.isArray(g)?g.some(f):Object.keys(g).some(m=>f(g[m],m)))},every:function(g,f){return!g||(Array.isArray(g)?g.every(f):Object.keys(g).every(m=>f(g[m],m)))},map:function(g,f){return g?Array.isArray(g)?g.map(f):Object.keys(g).map(m=>f(g[m],m)):[]},keyBy:(g,f)=>g.reduce((m,_)=>(m[_[f]]=_,m),{}),isEqual:function(g,f){const m=typeof g,_=typeof f,b=Array.isArray(g),v=Array.isArray(f);let A;if(m!==_)return!1;if("object"==typeof g){if(b||v)return!(!b||!v)&&g.length===f.length&&g.every((D,E)=>{const O=f[E];return x.isEqual(D,O)});if(null===g||null===f)return g===f;if(A=Object.keys(g),Object.keys(f).length!==A.length)return!1;for(const D of A)if(!f.hasOwnProperty(D))return!1;return x.every(g,(D,E)=>{const O=f[E];return x.isEqual(D,O)})}return g===f},escapeHtml(g){const f=w.exec(g);if(!f)return g;let m="",_="",b=0,v=f.index;for(;v":_=">";break;default:continue}b!==v&&(m+=g.substring(b,v)),b=v+1,m+=_}return b!==v?m+g.substring(b,v):m},strcmp:(g,f)=>gf?1:0,isUndefined:g=>"[object Undefined]"===I.call(g),isObject:g=>"[object Object]"===I.call(g),deepMerge(){const g=arguments[0]||{},{length:f}=arguments;let m,_,b;function v(A,D){m=g[D],b=Array.isArray(A),x.isObject(A)||b?(b?(b=!1,_=m&&Array.isArray(m)?m:[]):_=m&&x.isObject(m)?m:{},g[D]=x.deepMerge(_,A)):x.isUndefined(A)||(g[D]=A)}for(let A=0;A&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,f={nop(){},promiseImmediate:m=>new Promise(_=>{I.setImmediate?w(()=>{_(m)}):setTimeout(()=>{_(m)},1)}),inherits:function(m,_,b,v){m.super_=_,v||(v=b,b=null),b&&Object.keys(b).forEach(D=>{Object.defineProperty(m,D,Object.getOwnPropertyDescriptor(b,D))});const A={constructor:{value:m,enumerable:!1,writable:!1,configurable:!0}};v&&Object.keys(v).forEach(D=>{A[D]=Object.getOwnPropertyDescriptor(v,D)}),m.prototype=Object.create(_.prototype,A)},dateToExcel:(m,_)=>25569+m.getTime()/864e5-(_?1462:0),excelToDate(m,_){const b=Math.round(24*(m-25569+(_?1462:0))*3600*1e3);return new Date(b)},parsePath(m){const _=m.lastIndexOf("/");return{path:m.substring(0,_),name:m.substring(_+1)}},getRelsPath(m){const _=f.parsePath(m);return`${_.path}/_rels/${_.name}.rels`},xmlEncode(m){const _=g.exec(m);if(!_)return m;let b="",v="",A=0,D=_.index;for(;D=11&&13!==E)){v="";break}continue}A!==D&&(b+=m.substring(A,D)),A=D+1,v&&(b+=v)}return A!==D?b+m.substring(A,D):b},xmlDecode:m=>m.replace(/&([a-z]*);/g,_=>{switch(_){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return _}}),validInt(m){const _=parseInt(m,10);return Number.isNaN(_)?0:_},isDateFmt:m=>!!m&&null!==(m=(m=m.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:m=>new Promise(_=>{x.access(m,x.constants.F_OK,b=>{_(!b)})})},toIsoDateString:m=>m.toIsoString().subsstr(0,10),parseBoolean:m=>!0===m||"true"===m||1===m||"1"===m};K.exports=f}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},k("timers").setImmediate)},{fs:216,timers:523}],28:[function(k,K,U){"use strict";const I=k("./under-dash"),w=k("./utils");function x(m,_,b){m.push(` ${_}="${w.xmlEncode(b.toString())}"`)}function g(m,_){if(_){const b=[];I.each(_,(v,A)=>{void 0!==v&&x(b,A,v)}),m.push(b.join(""))}}class f{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(_){const b=this._xml;b.push("\n")}openNode(_,b){const v=this.tos,A=this._xml;v&&this.open&&A.push(">"),this._stack.push(_),A.push("<"),A.push(_),g(A,b),this.leaf=!0,this.open=!0}addAttribute(_,b){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==b&&x(this._xml,_,b)}addAttributes(_){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");g(this._xml,_)}writeText(_){const b=this._xml;this.open&&(b.push(">"),this.open=!1),this.leaf=!1,b.push(w.xmlEncode(_.toString()))}writeXml(_){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(_)}closeNode(){const _=this._stack.pop(),b=this._xml;this.leaf?b.push("/>"):(b.push("")),this.open=!1,this.leaf=!1}leafNode(_,b,v){this.openNode(_,b),void 0!==v&&this.writeText(v),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const _=this._rollbacks.pop();this._xml.length>_.xml&&this._xml.splice(_.xml,this._xml.length-_.xml),this._stack.length>_.stack&&this._stack.splice(_.stack,this._stack.length-_.stack),this.leaf=_.leaf,this.open=_.open}get xml(){return this.closeAll(),this._xml.join("")}}f.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},K.exports=f},{"./under-dash":26,"./utils":27}],29:[function(k,K,U){(function(I){(function(){"use strict";const w=k("events"),x=k("jszip"),g=k("./stream-buf"),{stringToBuffer:f}=k("./browser-buffer-encode");class m extends w.EventEmitter{constructor(b){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},b),this.zip=new x,this.stream=new g}append(b,v){v.hasOwnProperty("base64")&&v.base64?this.zip.file(v.name,b,{base64:!0}):(I.browser&&"string"==typeof b&&(b=f(b)),this.zip.file(v.name,b))}finalize(){var b=this;return ut(function*(){const v=yield b.zip.generateAsync(b.options);b.stream.end(v),b.emit("finish")})()}read(b){return this.stream.read(b)}setEncoding(b){return this.stream.setEncoding(b)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(b,v){return this.stream.pipe(b,v)}unpipe(b){return this.stream.unpipe(b)}unshift(b){return this.stream.unshift(b)}wrap(b){return this.stream.wrap(b)}}K.exports={ZipWriter:m}}).call(this)}).call(this,k("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(k,K,U){"use strict";K.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},28:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ja-jp":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":'yyyy"\ub144" mm"\uc6d4" dd"\uc77c"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65f6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uc2dc" mm"\ubd84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79d2"',"ko-kr":'h"\uc2dc" mm"\ubd84" ss"\ucd08"'},34:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},51:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},58:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(k,K,U){"use strict";K.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(k,K,U){"use strict";const I=k("../../utils/parse-sax"),w=k("../../utils/xml-stream");class x{prepare(){}render(){}parseOpen(f){}parseText(f){}parseClose(f){}reconcile(f,m){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(f=>{f instanceof x?f.reset():f.xform&&f.xform.reset()})}mergeModel(f){this.model=Object.assign(this.model||{},f)}parse(f){var m=this;return ut(function*(){var v,_=!1,b=!1;try{for(var D,A=un(f);_=!(D=yield A.next()).done;_=!1){const E=D.value;for(const{eventType:O,value:T}of E)if("opentag"===O)m.parseOpen(T);else if("text"===O)m.parseText(T);else if("closetag"===O&&!m.parseClose(T.name))return m.model}}catch(E){b=!0,v=E}finally{try{_&&null!=A.return&&(yield A.return())}finally{if(b)throw v}}return m.model})()}parseStream(f){var m=this;return ut(function*(){return m.parse(I(f))})()}get xml(){return this.toXml(this.model)}toXml(f){const m=new w;return this.render(m,f),m.xml}static toAttribute(f,m){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===f){if(_)return m}else if(_||f!==m)return f.toString()}static toStringAttribute(f,m){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.toAttribute(f,m,_)}static toStringValue(f,m){return void 0===f?m:f}static toBoolAttribute(f,m){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===f){if(_)return m}else if(_||f!==m)return f?"1":"0"}static toBoolValue(f,m){return void 0===f?m:"1"===f}static toIntAttribute(f,m){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.toAttribute(f,m,_)}static toIntValue(f,m){return void 0===f?m:parseInt(f,10)}static toFloatAttribute(f,m){let _=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x.toAttribute(f,m,_)}static toFloatValue(f,m){return void 0===f?m:parseFloat(f)}}K.exports=x},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../../../utils/col-cache");function x(f){try{return w.decodeEx(f),!0}catch{return!1}}function g(f){const m=[];let _=!1,b="";return f.split(",").forEach(v=>{if(!v)return;const A=(v.match(/'/g)||[]).length;if(!A)return void(_?b+=v+",":x(v)&&m.push(v));const D=A%2==0;!_&&D&&x(v)?m.push(v):_&&!D?(_=!1,x(b+v)&&m.push(b+v),b=""):(_=!0,b+=v+",")}),m}K.exports=class extends I{render(f,m){f.openNode("definedName",{name:m.name,localSheetId:m.localSheetId}),f.writeText(m.ranges.join(",")),f.closeNode()}parseOpen(f){return"definedName"===f.name&&(this._parsedName=f.attributes.name,this._parsedLocalSheetId=f.attributes.localSheetId,this._parsedText=[],!0)}parseText(f){this._parsedText.push(f)}parseClose(){return this.model={name:this._parsedName,ranges:g(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(k,K,U){"use strict";const I=k("../../../utils/utils"),w=k("../base-xform");K.exports=class extends w{render(x,g){x.leafNode("sheet",{sheetId:g.id,name:g.name,state:g.state,"r:id":g.rId})}parseOpen(x){return"sheet"===x.name&&(this.model={name:I.xmlDecode(x.attributes.name),id:parseInt(x.attributes.sheetId,10),state:x.attributes.state,rId:x.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){w.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:x.fullCalcOnLoad?1:void 0})}parseOpen(w){return"calcPr"===w.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){w.leafNode("workbookPr",{date1904:x.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(w){return"workbookPr"===w.name&&(this.model={date1904:"1"===w.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){const g={xWindow:x.x||0,yWindow:x.y||0,windowWidth:x.width||12e3,windowHeight:x.height||24e3,firstSheet:x.firstSheet,activeTab:x.activeTab};x.visibility&&"visible"!==x.visibility&&(g.visibility=x.visibility),w.leafNode("workbookView",g)}parseOpen(w){if("workbookView"===w.name){const x=this.model={},g=function(m,_,b){const v=void 0!==_?x[m]=_:b;void 0!==v&&(x[m]=v)},f=function(m,_,b){const v=void 0!==_?x[m]=parseInt(_,10):b;void 0!==v&&(x[m]=v)};return f("x",w.attributes.xWindow,0),f("y",w.attributes.yWindow,0),f("width",w.attributes.windowWidth,25e3),f("height",w.attributes.windowHeight,1e4),g("visibility",w.attributes.visibility,"visible"),f("activeTab",w.attributes.activeTab,void 0),f("firstSheet",w.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../../../utils/col-cache"),x=k("../../../utils/xml-stream"),g=k("../base-xform"),f=k("../static-xform"),m=k("../list-xform"),_=k("./defined-name-xform"),b=k("./sheet-xform"),v=k("./workbook-view-xform"),A=k("./workbook-properties-xform"),D=k("./workbook-calc-properties-xform");class E extends g{constructor(){super(),this.map={fileVersion:E.STATIC_XFORMS.fileVersion,workbookPr:new A,bookViews:new m({tag:"bookViews",count:!1,childXform:new v}),sheets:new m({tag:"sheets",count:!1,childXform:new b}),definedNames:new m({tag:"definedNames",count:!1,childXform:new _}),calcPr:new D}}prepare(T){T.sheets=T.worksheets;const z=[];let H=0;T.sheets.forEach(Q=>{if(Q.pageSetup&&Q.pageSetup.printArea&&Q.pageSetup.printArea.split("&&").forEach(ae=>{const ge=ae.split(":"),le={name:"_xlnm.Print_Area",ranges:[`'${Q.name}'!$${ge[0]}:$${ge[1]}`],localSheetId:H};z.push(le)}),Q.pageSetup&&(Q.pageSetup.printTitlesRow||Q.pageSetup.printTitlesColumn)){const ae=[];if(Q.pageSetup.printTitlesColumn){const le=Q.pageSetup.printTitlesColumn.split(":");ae.push(`'${Q.name}'!$${le[0]}:$${le[1]}`)}if(Q.pageSetup.printTitlesRow){const le=Q.pageSetup.printTitlesRow.split(":");ae.push(`'${Q.name}'!$${le[0]}:$${le[1]}`)}const ge={name:"_xlnm.Print_Titles",ranges:ae,localSheetId:H};z.push(ge)}H++}),z.length&&(T.definedNames=T.definedNames.concat(z)),(T.media||[]).forEach((Q,ae)=>{Q.name=Q.type+(ae+1)})}render(T,z){T.openXml(x.StdDocAttributes),T.openNode("workbook",E.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(T),this.map.workbookPr.render(T,z.properties),this.map.bookViews.render(T,z.views),this.map.sheets.render(T,z.sheets),this.map.definedNames.render(T,z.definedNames),this.map.calcPr.render(T,z.calcProperties),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):("workbook"===T.name||(this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T)),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){return this.parser?(this.parser.parseClose(T)||(this.parser=void 0),!0):"workbook"!==T||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(T){const z=(T.workbookRels||[]).reduce((le,fe)=>(le[fe.Id]=fe,le),{}),H=[];let Q,ae=0;(T.sheets||[]).forEach(le=>{const fe=z[le.rId];fe&&(Q=T.worksheetHash["xl/"+fe.Target.replace(/^(\s|\/xl\/)+/,"")],Q&&(Q.name=le.name,Q.id=le.id,Q.state=le.state,H[ae++]=Q))});const ge=[];I.each(T.definedNames,le=>{if("_xlnm.Print_Area"===le.name){if(Q=H[le.localSheetId],Q){Q.pageSetup||(Q.pageSetup={});const fe=w.decodeEx(le.ranges[0]);Q.pageSetup.printArea=Q.pageSetup.printArea?`${Q.pageSetup.printArea}&&${fe.dimensions}`:fe.dimensions}}else if("_xlnm.Print_Titles"===le.name){if(Q=H[le.localSheetId],Q){Q.pageSetup||(Q.pageSetup={});const fe=le.ranges.join(","),be=/\$/g,Se=/\$\d+:\$\d+/,ve=fe.match(Se);if(ve&&ve.length){const de=ve[0];Q.pageSetup.printTitlesRow=de.replace(be,"")}const W=/\$[A-Z]+:\$[A-Z]+/,J=fe.match(W);if(J&&J.length){const de=J[0];Q.pageSetup.printTitlesColumn=de.replace(be,"")}}}else ge.push(le)}),T.definedNames=ge,T.media.forEach((le,fe)=>{le.index=fe})}}E.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},E.STATIC_XFORMS={fileVersion:new f({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},K.exports=E},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(k,K,U){"use strict";const I=k("../strings/rich-text-xform"),w=k("../../../utils/utils"),x=k("../base-xform"),g=K.exports=function(f){this.model=f};w.inherits(g,x,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new I),this._richTextXform},render(f,m){m=m||this.model,f.openNode("comment",{ref:m.ref,authorId:0}),f.openNode("text"),m&&m.note&&m.note.texts&&m.note.texts.forEach(_=>{this.richTextXform.render(f,_)}),f.closeNode(),f.closeNode()},parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"comment":return this.model={type:"note",note:{texts:[]},...f.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(f),!0;default:return!1}},parseText(f){this.parser&&this.parser.parseText(f)},parseClose(f){switch(f){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(f),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../../../utils/utils"),x=k("../base-xform"),g=k("./comment-xform"),f=K.exports=function(){this.map={comment:new g}};w.inherits(f,x,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(m,_){_=_||this.model,m.openXml(I.StdDocAttributes),m.openNode("comments",f.COMMENTS_ATTRIBUTES),m.openNode("authors"),m.leafNode("author",null,"Author"),m.closeNode(),m.openNode("commentList"),_.comments.forEach(b=>{this.map.comment.render(m,b)}),m.closeNode(),m.closeNode()},parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(m),!0;default:return!1}},parseText(m){this.parser&&this.parser.parseText(m)},parseClose(m){switch(m){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(m),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{constructor(w){super(),this._model=w}get tag(){return this._model&&this._model.tag}render(w,x,g){(x===g[2]||"x:SizeWithCells"===this.tag&&x===g[1])&&w.leafNode(this.tag)}parseOpen(w){return w.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{constructor(w){super(),this._model=w}get tag(){return this._model&&this._model.tag}render(w,x){w.leafNode(this.tag,null,x)}parseOpen(w){return w.name===this.tag&&(this.text="",!0)}parseText(w){this.text=w}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"x:Anchor"}getAnchorRect(w){const x=Math.floor(w.left),g=Math.floor(68*(w.left-x)),f=Math.floor(w.top),m=Math.floor(18*(w.top-f)),_=Math.floor(w.right),b=Math.floor(68*(w.right-_)),v=Math.floor(w.bottom);return[x,g,f,m,_,b,v,Math.floor(18*(w.bottom-v))]}getDefaultRect(w){const x=w.col,g=Math.max(w.row-2,0);return[x,6,g,14,x+2,2,g+4,16]}render(w,x){const g=x.anchor?this.getAnchorRect(x.anchor):this.getDefaultRect(x.refAddress);w.leafNode("x:Anchor",null,g.join(", "))}parseOpen(w){return w.name===this.tag&&(this.text="",!0)}parseText(w){this.text=w}parseClose(){return!1}}},{"../base-xform":32}],44:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./vml-anchor-xform"),x=k("./style/vml-protection-xform"),g=k("./style/vml-position-xform"),f=["twoCells","oneCells","absolute"];K.exports=class extends I{constructor(){super(),this.map={"x:Anchor":new w,"x:Locked":new x({tag:"x:Locked"}),"x:LockText":new x({tag:"x:LockText"}),"x:SizeWithCells":new g({tag:"x:SizeWithCells"}),"x:MoveWithCells":new g({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(m,_){const{protection:b,editAs:v}=_.note;m.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(m,v,f),this.map["x:SizeWithCells"].render(m,v,f),this.map["x:Anchor"].render(m,_),this.map["x:Locked"].render(m,b.locked),m.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(m,b.lockText),m.leafNode("x:Row",null,_.refAddress.row-1),m.leafNode("x:Column",null,_.refAddress.col-1),m.closeNode()}parseOpen(m){return m.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const m=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),_=Object.keys(m).length;this.model.editAs=f[_],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("./vml-shape-xform");class g extends w{constructor(){super(),this.map={"v:shape":new x}}get tag(){return"xml"}render(m,_){m.openXml(I.StdDocAttributes),m.openNode(this.tag,g.DRAWING_ATTRIBUTES),m.openNode("o:shapelayout",{"v:ext":"edit"}),m.leafNode("o:idmap",{"v:ext":"edit",data:1}),m.closeNode(),m.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),m.leafNode("v:stroke",{joinstyle:"miter"}),m.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),m.closeNode(),_.comments.forEach((b,v)=>{this.map["v:shape"].render(m,b,v)}),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):m!==this.tag}reconcile(m,_){m.anchors.forEach(b=>{b.br?this.map["xdr:twoCellAnchor"].reconcile(b,_):this.map["xdr:oneCellAnchor"].reconcile(b,_)})}}g.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},K.exports=g},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./vml-textbox-xform"),x=k("./vml-client-data-xform");class g extends I{constructor(){super(),this.map={"v:textbox":new w,"x:ClientData":new x}}get tag(){return"v:shape"}render(m,_,b){m.openNode("v:shape",g.V_SHAPE_ATTRIBUTES(_,b)),m.leafNode("v:fill",{color2:"infoBackground [80]"}),m.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),m.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(m,_),this.map["x:ClientData"].render(m,_),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name===this.tag?(this.reset(),this.model={margins:{insetmode:m.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}g.V_SHAPE_ATTRIBUTES=(f,m)=>({id:"_x0000_s"+(1025+m),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":f.note.margins&&f.note.margins.insetmode}),K.exports=g},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"v:textbox"}conversionUnit(w,x,g){return`${parseFloat(w)*x.toFixed(2)}${g}`}reverseConversionUnit(w){return(w||"").split(",").map(x=>Number(parseFloat(this.conversionUnit(parseFloat(x),.1,"")).toFixed(2)))}render(w,x){const g={style:"mso-direction-alt:auto"};if(x&&x.note){let{inset:f}=x.note&&x.note.margins;Array.isArray(f)&&(f=f.map(m=>this.conversionUnit(m,10,"mm")).join(",")),f&&(g.inset=f)}w.openNode("v:textbox",g),w.leafNode("div",{style:"text-align:left"}),w.closeNode()}parseOpen(w){return w.name!==this.tag||(this.model={inset:this.reverseConversionUnit(w.attributes.inset)},!0)}parseText(){}parseClose(w){return w!==this.tag}}},{"../base-xform":32}],48:[function(k,K,U){"use strict";const I=k("./base-xform");K.exports=class extends I{createNewModel(w){return{}}parseOpen(w){return this.parser=this.parser||this.map[w.name],this.parser?(this.parser.parseOpen(w),!0):w.name===this.tag&&(this.model=this.createNewModel(w),!0)}parseText(w){this.parser&&this.parser.parseText(w)}onParserClose(w,x){this.model[w]=x.model}parseClose(w){return this.parser?(this.parser.parseClose(w)||(this.onParserClose(w,this.parser),this.parser=void 0),!0):w!==this.tag}}},{"./base-xform":32}],49:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){w.openNode("HeadingPairs"),w.openNode("vt:vector",{size:2,baseType:"variant"}),w.openNode("vt:variant"),w.leafNode("vt:lpstr",void 0,"Worksheets"),w.closeNode(),w.openNode("vt:variant"),w.leafNode("vt:i4",void 0,x.length),w.closeNode(),w.closeNode(),w.closeNode()}parseOpen(w){return"HeadingPairs"===w.name}parseText(){}parseClose(w){return"HeadingPairs"!==w}}},{"../base-xform":32}],50:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){w.openNode("TitlesOfParts"),w.openNode("vt:vector",{size:x.length,baseType:"lpstr"}),x.forEach(g=>{w.leafNode("vt:lpstr",void 0,g.name)}),w.closeNode(),w.closeNode()}parseOpen(w){return"TitlesOfParts"===w.name}parseText(){}parseClose(w){return"TitlesOfParts"!==w}}},{"../base-xform":32}],51:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("../simple/string-xform"),g=k("./app-heading-pairs-xform"),f=k("./app-titles-of-parts-xform");class m extends w{constructor(){super(),this.map={Company:new x({tag:"Company"}),Manager:new x({tag:"Manager"}),HeadingPairs:new g,TitleOfParts:new f}}render(b,v){b.openXml(I.StdDocAttributes),b.openNode("Properties",m.PROPERTY_ATTRIBUTES),b.leafNode("Application",void 0,"Microsoft Excel"),b.leafNode("DocSecurity",void 0,"0"),b.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(b,v.worksheets),this.map.TitleOfParts.render(b,v.worksheets),this.map.Company.render(b,v.company||""),this.map.Manager.render(b,v.manager),b.leafNode("LinksUpToDate",void 0,"false"),b.leafNode("SharedDoc",void 0,"false"),b.leafNode("HyperlinksChanged",void 0,"false"),b.leafNode("AppVersion",void 0,"16.0300"),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):"Properties"===b.name||(this.parser=this.map[b.name],!!this.parser&&(this.parser.parseOpen(b),!0))}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):"Properties"!==b||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}m.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3,6}/,"")},m.DateAttrs={"xsi:type":"dcterms:W3CDTF"},m.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},K.exports=m},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform");class x extends w{render(f,m){f.openXml(I.StdDocAttributes),f.openNode("Types",x.PROPERTY_ATTRIBUTES);const _={};(m.media||[]).forEach(b=>{if("image"===b.type){const v=b.extension;_[v]||(_[v]=!0,f.leafNode("Default",{Extension:v,ContentType:"image/"+v}))}}),f.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),f.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),f.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),m.worksheets.forEach(b=>{const v=`/xl/worksheets/sheet${b.id}.xml`;f.leafNode("Override",{PartName:v,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),f.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),f.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),m.sharedStrings&&m.sharedStrings.count&&f.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),m.tables&&m.tables.forEach(b=>{f.leafNode("Override",{PartName:"/xl/tables/"+b.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),m.drawings&&m.drawings.forEach(b=>{f.leafNode("Override",{PartName:`/xl/drawings/${b.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),m.commentRefs&&(f.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),m.commentRefs.forEach(b=>{let{commentName:v}=b;f.leafNode("Override",{PartName:`/xl/${v}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),f.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),f.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),f.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}x.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},K.exports=x},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("../simple/date-xform"),g=k("../simple/string-xform"),f=k("../simple/integer-xform");class m extends w{constructor(){super(),this.map={"dc:creator":new g({tag:"dc:creator"}),"dc:title":new g({tag:"dc:title"}),"dc:subject":new g({tag:"dc:subject"}),"dc:description":new g({tag:"dc:description"}),"dc:identifier":new g({tag:"dc:identifier"}),"dc:language":new g({tag:"dc:language"}),"cp:keywords":new g({tag:"cp:keywords"}),"cp:category":new g({tag:"cp:category"}),"cp:lastModifiedBy":new g({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new x({tag:"cp:lastPrinted",format:m.DateFormat}),"cp:revision":new f({tag:"cp:revision"}),"cp:version":new g({tag:"cp:version"}),"cp:contentStatus":new g({tag:"cp:contentStatus"}),"cp:contentType":new g({tag:"cp:contentType"}),"dcterms:created":new x({tag:"dcterms:created",attrs:m.DateAttrs,format:m.DateFormat}),"dcterms:modified":new x({tag:"dcterms:modified",attrs:m.DateAttrs,format:m.DateFormat})}}render(b,v){b.openXml(I.StdDocAttributes),b.openNode("cp:coreProperties",m.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(b,v.creator),this.map["dc:title"].render(b,v.title),this.map["dc:subject"].render(b,v.subject),this.map["dc:description"].render(b,v.description),this.map["dc:identifier"].render(b,v.identifier),this.map["dc:language"].render(b,v.language),this.map["cp:keywords"].render(b,v.keywords),this.map["cp:category"].render(b,v.category),this.map["cp:lastModifiedBy"].render(b,v.lastModifiedBy),this.map["cp:lastPrinted"].render(b,v.lastPrinted),this.map["cp:revision"].render(b,v.revision),this.map["cp:version"].render(b,v.version),this.map["cp:contentStatus"].render(b,v.contentStatus),this.map["cp:contentType"].render(b,v.contentType),this.map["dcterms:created"].render(b,v.created),this.map["dcterms:modified"].render(b,v.modified),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[b.name],this.parser)return this.parser.parseOpen(b),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(b))}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+b)}}}m.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3}/,"")},m.DateAttrs={"xsi:type":"dcterms:W3CDTF"},m.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},K.exports=m},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{render(w,x){w.leafNode("Relationship",x)}parseOpen(w){return"Relationship"===w.name&&(this.model=w.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("./relationship-xform");class g extends w{constructor(){super(),this.map={Relationship:new x}}render(m,_){_=_||this._values,m.openXml(I.StdDocAttributes),m.openNode("Relationships",g.RELATIONSHIPS_ATTRIBUTES),_.forEach(b=>{this.map.Relationship.render(m,b)}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;if("Relationships"===m.name)return this.model=[],!0;if(this.parser=this.map[m.name],this.parser)return this.parser.parseOpen(m),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(m))}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===m)return!1;throw new Error("Unexpected xml node in parseClose: "+m)}}g.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},K.exports=g},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?(this.reset(),this.model={range:{editAs:w.attributes.editAs||"oneCell"}}):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}parseText(w){this.parser&&this.parser.parseText(w)}reconcilePicture(w,x){if(w&&w.rId){const g=x.rels[w.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(g){const f=g[1],m=x.mediaIndex[f];return x.media[m]}}}}},{"../base-xform":32}],57:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./blip-xform");K.exports=class extends I{constructor(){super(),this.map={"a:blip":new w}}get tag(){return"xdr:blipFill"}render(x,g){x.openNode(this.tag),this.map["a:blip"].render(x,g),x.openNode("a:stretch"),x.leafNode("a:fillRect"),x.closeNode(),x.closeNode()}parseOpen(x){return this.parser?(this.parser.parseOpen(x),!0):(x.name===this.tag?this.reset():(this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)),!0)}parseText(){}parseClose(x){return this.parser?(this.parser.parseClose(x)||(this.parser=void 0),!0):x!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"a:blip"}render(w,x){w.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":x.rId,cstate:"print"})}parseOpen(w){return w.name!==this.tag||(this.model={rId:w.attributes["r:embed"]},!0)}parseText(){}parseClose(w){return w!==this.tag}}},{"../base-xform":32}],59:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"xdr:cNvPicPr"}render(w){w.openNode(this.tag),w.leafNode("a:picLocks",{noChangeAspect:"1"}),w.closeNode()}parseOpen(w){return w.name,this.tag,!0}parseText(){}parseClose(w){return w!==this.tag}}},{"../base-xform":32}],60:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./hlink-click-xform"),x=k("./ext-lst-xform");K.exports=class extends I{constructor(){super(),this.map={"a:hlinkClick":new w,"a:extLst":new x}}get tag(){return"xdr:cNvPr"}render(g,f){g.openNode(this.tag,{id:f.index,name:"Picture "+f.index}),this.map["a:hlinkClick"].render(g,f),this.map["a:extLst"].render(g,f),g.closeNode()}parseOpen(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name===this.tag?this.reset():(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}parseText(){}parseClose(g){return this.parser?(this.parser.parseClose(g)||(this.parser=void 0),!0):g!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../simple/integer-xform");K.exports=class extends I{constructor(x){super(),this.tag=x.tag,this.map={"xdr:col":new w({tag:"xdr:col",zero:!0}),"xdr:colOff":new w({tag:"xdr:colOff",zero:!0}),"xdr:row":new w({tag:"xdr:row",zero:!0}),"xdr:rowOff":new w({tag:"xdr:rowOff",zero:!0})}}render(x,g){x.openNode(this.tag),this.map["xdr:col"].render(x,g.nativeCol),this.map["xdr:colOff"].render(x,g.nativeColOff),this.map["xdr:row"].render(x,g.nativeRow),this.map["xdr:rowOff"].render(x,g.nativeRowOff),x.closeNode()}parseOpen(x){return this.parser?(this.parser.parseOpen(x),!0):(x.name===this.tag?this.reset():(this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)),!0)}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){return this.parser?(this.parser.parseClose(x)||(this.parser=void 0),!0):x!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(k,K,U){"use strict";const I=k("../../../utils/col-cache"),w=k("../../../utils/xml-stream"),x=k("../base-xform"),g=k("./two-cell-anchor-xform"),f=k("./one-cell-anchor-xform");class m extends x{constructor(){super(),this.map={"xdr:twoCellAnchor":new g,"xdr:oneCellAnchor":new f}}prepare(b){b.anchors.forEach((v,A)=>{var D;v.anchorType=("string"==typeof(D=v).range?I.decode(D.range):D.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor",this.map[v.anchorType].prepare(v,{index:A})})}get tag(){return"xdr:wsDr"}render(b,v){b.openXml(w.StdDocAttributes),b.openNode(this.tag,m.DRAWING_ATTRIBUTES),v.anchors.forEach(A=>{this.map[A.anchorType].render(b,A)}),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):b!==this.tag}reconcile(b,v){b.anchors.forEach(A=>{A.br?this.map["xdr:twoCellAnchor"].reconcile(A,v):this.map["xdr:oneCellAnchor"].reconcile(A,v)})}}m.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},K.exports=m},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"a:extLst"}render(w){w.openNode(this.tag),w.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),w.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),w.closeNode(),w.closeNode()}parseOpen(w){return w.name,this.tag,!0}parseText(){}parseClose(w){return w!==this.tag}}},{"../base-xform":32}],64:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.map={}}render(w,x){w.openNode(this.tag);const g=Math.floor(9525*x.width),f=Math.floor(9525*x.height);w.addAttribute("cx",g),w.addAttribute("cy",f),w.closeNode()}parseOpen(w){return w.name===this.tag&&(this.model={width:parseInt(w.attributes.cx||"0",10)/9525,height:parseInt(w.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"a:hlinkClick"}render(w,x){x.hyperlinks&&x.hyperlinks.rId&&w.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":x.hyperlinks.rId,tooltip:x.hyperlinks.tooltip})}parseOpen(w){return w.name!==this.tag||(this.model={hyperlinks:{rId:w.attributes["r:id"],tooltip:w.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./c-nv-pr-xform"),x=k("./c-nv-pic-pr-xform");K.exports=class extends I{constructor(){super(),this.map={"xdr:cNvPr":new w,"xdr:cNvPicPr":new x}}get tag(){return"xdr:nvPicPr"}render(g,f){g.openNode(this.tag),this.map["xdr:cNvPr"].render(g,f),this.map["xdr:cNvPicPr"].render(g,f),g.closeNode()}parseOpen(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name===this.tag?this.reset():(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}parseText(){}parseClose(g){return this.parser?(this.parser.parseClose(g)||(this.parser=void 0),!0):g!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(k,K,U){"use strict";const I=k("./base-cell-anchor-xform"),w=k("../static-xform"),x=k("./cell-position-xform"),g=k("./ext-xform"),f=k("./pic-xform");K.exports=class extends I{constructor(){super(),this.map={"xdr:from":new x({tag:"xdr:from"}),"xdr:ext":new g({tag:"xdr:ext"}),"xdr:pic":new f,"xdr:clientData":new w({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(m,_){this.map["xdr:pic"].prepare(m.picture,_)}render(m,_){m.openNode(this.tag,{editAs:_.range.editAs||"oneCell"}),this.map["xdr:from"].render(m,_.range.tl),this.map["xdr:ext"].render(m,_.range.ext),this.map["xdr:pic"].render(m,_.picture),this.map["xdr:clientData"].render(m,{}),m.closeNode()}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(m,_){m.medium=this.reconcilePicture(m.picture,_)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../static-xform"),x=k("./blip-fill-xform"),g=k("./nv-pic-pr-xform"),f=k("./sp-pr");K.exports=class extends I{constructor(){super(),this.map={"xdr:nvPicPr":new g,"xdr:blipFill":new x,"xdr:spPr":new w(f)}}get tag(){return"xdr:pic"}prepare(m,_){m.index=_.index+1}render(m,_){m.openNode(this.tag),this.map["xdr:nvPicPr"].render(m,_),this.map["xdr:blipFill"].render(m,_),this.map["xdr:spPr"].render(m,_),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):(m.name===this.tag?this.reset():(this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)),!0)}parseText(){}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):m!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(k,K,U){"use strict";K.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(k,K,U){"use strict";const I=k("./base-cell-anchor-xform"),w=k("../static-xform"),x=k("./cell-position-xform"),g=k("./pic-xform");K.exports=class extends I{constructor(){super(),this.map={"xdr:from":new x({tag:"xdr:from"}),"xdr:to":new x({tag:"xdr:to"}),"xdr:pic":new g,"xdr:clientData":new w({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(f,m){this.map["xdr:pic"].prepare(f.picture,m)}render(f,m){f.openNode(this.tag,{editAs:m.range.editAs||"oneCell"}),this.map["xdr:from"].render(f,m.range.tl),this.map["xdr:to"].render(f,m.range.br),this.map["xdr:pic"].render(f,m.picture),this.map["xdr:clientData"].render(f,{}),f.closeNode()}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(f,m){f.medium=this.reconcilePicture(f.picture,m)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(k,K,U){"use strict";const I=k("./base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.always=!!w.always,this.count=w.count,this.empty=w.empty,this.$count=w.$count||"count",this.$=w.$,this.childXform=w.childXform,this.maxItems=w.maxItems}prepare(w,x){const{childXform:g}=this;w&&w.forEach((f,m)=>{x.index=m,g.prepare(f,x)})}render(w,x){if(this.always||x&&x.length){w.openNode(this.tag,this.$),this.count&&w.addAttribute(this.$count,x&&x.length||0);const{childXform:g}=this;(x||[]).forEach((f,m)=>{g.render(w,f,m)}),w.closeNode()}else this.empty&&w.leafNode(this.tag)}parseOpen(w){return this.parser?(this.parser.parseOpen(w),!0):w.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(w)&&(this.parser=this.childXform,!0)}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){if(this.parser){if(!this.parser.parseClose(w)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(w,x){if(w){const{childXform:g}=this;w.forEach(f=>{g.reconcile(f,x)})}}}},{"./base-xform":32}],72:[function(k,K,U){"use strict";const I=k("../../../utils/col-cache"),w=k("../base-xform");K.exports=class extends w{get tag(){return"autoFilter"}render(x,g){if(g)if("string"==typeof g)x.leafNode("autoFilter",{ref:g});else{const f=function(b){return"string"==typeof b?b:I.getAddress(b.row,b.column).address},m=f(g.from),_=f(g.to);m&&_&&x.leafNode("autoFilter",{ref:`${m}:${_}`})}}parseOpen(x){"autoFilter"===x.name&&(this.model=x.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(k,K,U){"use strict";const I=k("../../../utils/utils"),w=k("../base-xform"),x=k("../../../doc/range"),g=k("../../../doc/enums"),f=k("../strings/rich-text-xform");function m(_){if(null==_)return g.ValueType.Null;if(_ instanceof String||"string"==typeof _)return g.ValueType.String;if("number"==typeof _)return g.ValueType.Number;if("boolean"==typeof _)return g.ValueType.Boolean;if(_ instanceof Date)return g.ValueType.Date;if(_.text&&_.hyperlink)return g.ValueType.Hyperlink;if(_.formula)return g.ValueType.Formula;if(_.error)return g.ValueType.Error;throw new Error("I could not understand type of value")}K.exports=class extends w{constructor(){super(),this.richTextXForm=new f}get tag(){return"c"}prepare(_,b){const v=b.styles.addStyleModel(_.style||{},(A=_).type===g.ValueType.Formula?m(A.result):A.type);var A;switch(v&&(_.styleId=v),_.comment&&b.comments.push({..._.comment,ref:_.address}),_.type){case g.ValueType.String:case g.ValueType.RichText:b.sharedStrings&&(_.ssId=b.sharedStrings.add(_.value));break;case g.ValueType.Date:b.date1904&&(_.date1904=!0);break;case g.ValueType.Hyperlink:b.sharedStrings&&void 0!==_.text&&null!==_.text&&(_.ssId=b.sharedStrings.add(_.text)),b.hyperlinks.push({address:_.address,target:_.hyperlink,tooltip:_.tooltip});break;case g.ValueType.Merge:b.merges.add(_);break;case g.ValueType.Formula:if(b.date1904&&(_.date1904=!0),"shared"===_.shareType&&(_.si=b.siFormulae++),_.formula)b.formulae[_.address]=_;else if(_.sharedFormula){const A=b.formulae[_.sharedFormula];if(!A)throw new Error("Shared Formula master must exist above and or left of clone for cell "+_.address);void 0===A.si?(A.shareType="shared",A.si=b.siFormulae++,A.range=new x(A.address,_.address)):A.range&&A.range.expandToAddress(_.address),_.si=A.si}}}renderFormula(_,b){let v=null;switch(b.shareType){case"shared":v={t:"shared",ref:b.ref||b.range.range,si:b.si};break;case"array":v={t:"array",ref:b.ref};break;default:void 0!==b.si&&(v={t:"shared",si:b.si})}switch(m(b.result)){case g.ValueType.Null:_.leafNode("f",v,b.formula);break;case g.ValueType.String:_.addAttribute("t","str"),_.leafNode("f",v,b.formula),_.leafNode("v",null,b.result);break;case g.ValueType.Number:_.leafNode("f",v,b.formula),_.leafNode("v",null,b.result);break;case g.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("f",v,b.formula),_.leafNode("v",null,b.result?1:0);break;case g.ValueType.Error:_.addAttribute("t","e"),_.leafNode("f",v,b.formula),_.leafNode("v",null,b.result.error);break;case g.ValueType.Date:_.leafNode("f",v,b.formula),_.leafNode("v",null,I.dateToExcel(b.result,b.date1904));break;default:throw new Error("I could not understand type of value")}}render(_,b){if(b.type!==g.ValueType.Null||b.styleId){switch(_.openNode("c"),_.addAttribute("r",b.address),b.styleId&&_.addAttribute("s",b.styleId),b.type){case g.ValueType.Null:break;case g.ValueType.Number:_.leafNode("v",null,b.value);break;case g.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("v",null,b.value?"1":"0");break;case g.ValueType.Error:_.addAttribute("t","e"),_.leafNode("v",null,b.value.error);break;case g.ValueType.String:case g.ValueType.RichText:void 0!==b.ssId?(_.addAttribute("t","s"),_.leafNode("v",null,b.ssId)):b.value&&b.value.richText?(_.addAttribute("t","inlineStr"),_.openNode("is"),b.value.richText.forEach(v=>{this.richTextXForm.render(_,v)}),_.closeNode("is")):(_.addAttribute("t","str"),_.leafNode("v",null,b.value));break;case g.ValueType.Date:_.leafNode("v",null,I.dateToExcel(b.value,b.date1904));break;case g.ValueType.Hyperlink:void 0!==b.ssId?(_.addAttribute("t","s"),_.leafNode("v",null,b.ssId)):(_.addAttribute("t","str"),_.leafNode("v",null,b.text));break;case g.ValueType.Formula:this.renderFormula(_,b);case g.ValueType.Merge:}_.closeNode()}}parseOpen(_){if(this.parser)return this.parser.parseOpen(_),!0;switch(_.name){case"c":return this.model={address:_.attributes.r},this.t=_.attributes.t,_.attributes.s&&(this.model.styleId=parseInt(_.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=_.attributes.si,this.model.shareType=_.attributes.t,this.model.ref=_.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(_),!0;default:return!1}}parseText(_){if(this.parser)this.parser.parseText(_);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+_:_;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+_:_:this.model.value=this.model.value?this.model.value+_:_}}parseClose(_){switch(_){case"c":{const{model:b}=this;if(b.formula||b.shareType)b.type=g.ValueType.Formula,b.value&&("str"===this.t?b.result=I.xmlDecode(b.value):"b"===this.t?b.result=0!==parseInt(b.value,10):"e"===this.t?b.result={error:b.value}:b.result=parseFloat(b.value),b.value=void 0);else if(void 0!==b.value)switch(this.t){case"s":b.type=g.ValueType.String,b.value=parseInt(b.value,10);break;case"str":b.type=g.ValueType.String,b.value=I.xmlDecode(b.value);break;case"inlineStr":b.type=g.ValueType.String;break;case"b":b.type=g.ValueType.Boolean,b.value=0!==parseInt(b.value,10);break;case"e":b.type=g.ValueType.Error,b.value={error:b.value};break;default:b.type=g.ValueType.Number,b.value=parseFloat(b.value)}else b.styleId?b.type=g.ValueType.Null:b.type=g.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(_),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(_),!0)}}reconcile(_,b){const v=_.styleId&&b.styles&&b.styles.getStyleModel(_.styleId);switch(v&&(_.style=v),void 0!==_.styleId&&(_.styleId=void 0),_.type){case g.ValueType.String:"number"==typeof _.value&&b.sharedStrings&&(_.value=b.sharedStrings.getString(_.value)),_.value.richText&&(_.type=g.ValueType.RichText);break;case g.ValueType.Number:v&&I.isDateFmt(v.numFmt)&&(_.type=g.ValueType.Date,_.value=I.excelToDate(_.value,b.date1904));break;case g.ValueType.Formula:void 0!==_.result&&v&&I.isDateFmt(v.numFmt)&&(_.result=I.excelToDate(_.result,b.date1904)),"shared"===_.shareType&&(_.ref?b.formulae[_.si]=_.address:(_.sharedFormula=b.formulae[_.si],delete _.shareType),delete _.si)}const A=b.hyperlinkMap[_.address];A&&(_.type===g.ValueType.Formula?(_.text=_.result,_.result=void 0):(_.text=_.value,_.value=void 0),_.type=g.ValueType.Hyperlink,_.hyperlink=A);const D=b.commentsMap&&b.commentsMap[_.address];D&&(_.comment=D)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{get tag(){return"x14:cfIcon"}render(w,x){w.leafNode(this.tag,{iconSet:x.iconSet,iconId:x.iconId})}parseOpen(w){let{attributes:x}=w;this.model={iconSet:x.iconSet,iconId:I.toIntValue(x.iconId)}}parseClose(w){return w!==this.tag}}},{"../../base-xform":32}],75:[function(k,K,U){"use strict";const{v4:I}=k("uuid"),w=k("../../base-xform"),x=k("../../composite-xform"),g=k("./databar-ext-xform"),f=k("./icon-set-ext-xform"),m={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class _ extends x{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new g,"x14:iconSet":this.iconSetXform=new f}}get tag(){return"x14:cfRule"}static isExt(v){return"dataBar"===v.type?g.isExt(v):!("iconSet"!==v.type||!v.custom&&!m[v.iconSet])}prepare(v){_.isExt(v)&&(v.x14Id=`{${I()}}`.toUpperCase())}render(v,A){if(_.isExt(A))switch(A.type){case"dataBar":this.renderDataBar(v,A);break;case"iconSet":this.renderIconSet(v,A)}}renderDataBar(v,A){v.openNode(this.tag,{type:"dataBar",id:A.x14Id}),this.databarXform.render(v,A),v.closeNode()}renderIconSet(v,A){v.openNode(this.tag,{type:"iconSet",priority:A.priority,id:A.x14Id||`{${I()}}`}),this.iconSetXform.render(v,A),v.closeNode()}createNewModel(v){let{attributes:A}=v;return{type:A.type,x14Id:A.id,priority:w.toIntValue(A.priority)}}onParserClose(v,A){Object.assign(this.model,A.model)}}K.exports=_},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("./f-ext-xform");K.exports=class extends I{constructor(){super(),this.map={"xm:f":this.fExtXform=new w}}get tag(){return"x14:cfvo"}render(x,g){x.openNode(this.tag,{type:g.type}),void 0!==g.value&&this.fExtXform.render(x,g.value),x.closeNode()}createNewModel(x){return{type:x.attributes.type}}onParserClose(x,g){"xm:f"===x&&(this.model.value=g.model?parseFloat(g.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("./sqref-ext-xform"),x=k("./cf-rule-ext-xform");K.exports=class extends I{constructor(){super(),this.map={"xm:sqref":this.sqRef=new w,"x14:cfRule":this.cfRule=new x}}get tag(){return"x14:conditionalFormatting"}prepare(g,f){g.rules.forEach(m=>{this.cfRule.prepare(m,f)})}render(g,f){f.rules.some(x.isExt)&&(g.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),f.rules.filter(x.isExt).forEach(m=>this.cfRule.render(g,m)),this.sqRef.render(g,f.ref),g.closeNode())}createNewModel(){return{rules:[]}}onParserClose(g,f){switch(g){case"xm:sqref":this.model.ref=f.model;break;case"x14:cfRule":this.model.rules.push(f.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("./cf-rule-ext-xform"),x=k("./conditional-formatting-ext-xform");K.exports=class extends I{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new x}}get tag(){return"x14:conditionalFormattings"}hasContent(g){return void 0===g.hasExtContent&&(g.hasExtContent=g.some(f=>f.rules.some(w.isExt))),g.hasExtContent}prepare(g,f){g.forEach(m=>{this.cfXform.prepare(m,f)})}render(g,f){this.hasContent(f)&&(g.openNode(this.tag),f.forEach(m=>this.cfXform.render(g,m)),g.closeNode())}createNewModel(){return[]}onParserClose(g,f){this.model.push(f.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("../../composite-xform"),x=k("../../style/color-xform"),g=k("./cfvo-ext-xform");K.exports=class extends w{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new g,"x14:borderColor":this.borderColorXform=new x("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new x("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new x("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new x("x14:axisColor")}}static isExt(f){return!f.gradient}get tag(){return"x14:dataBar"}render(f,m){f.openNode(this.tag,{minLength:I.toIntAttribute(m.minLength,0,!0),maxLength:I.toIntAttribute(m.maxLength,100,!0),border:I.toBoolAttribute(m.border,!1),gradient:I.toBoolAttribute(m.gradient,!0),negativeBarColorSameAsPositive:I.toBoolAttribute(m.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:I.toBoolAttribute(m.negativeBarBorderColorSameAsPositive,!0),axisPosition:I.toAttribute(m.axisPosition,"auto"),direction:I.toAttribute(m.direction,"leftToRight")}),m.cfvo.forEach(_=>{this.cfvoXform.render(f,_)}),this.borderColorXform.render(f,m.borderColor),this.negativeBorderColorXform.render(f,m.negativeBorderColor),this.negativeFillColorXform.render(f,m.negativeFillColor),this.axisColorXform.render(f,m.axisColor),f.closeNode()}createNewModel(f){let{attributes:m}=f;return{cfvo:[],minLength:I.toIntValue(m.minLength,0),maxLength:I.toIntValue(m.maxLength,100),border:I.toBoolValue(m.border,!1),gradient:I.toBoolValue(m.gradient,!0),negativeBarColorSameAsPositive:I.toBoolValue(m.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:I.toBoolValue(m.negativeBarBorderColorSameAsPositive,!0),axisPosition:I.toStringValue(m.axisPosition,"auto"),direction:I.toStringValue(m.direction,"leftToRight")}}onParserClose(f,m){const[,_]=f.split(":");"cfvo"===_?this.model.cfvo.push(m.model):this.model[_]=m.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{get tag(){return"xm:f"}render(w,x){w.leafNode(this.tag,null,x)}parseOpen(){this.model=""}parseText(w){this.model+=w}parseClose(w){return w!==this.tag}}},{"../../base-xform":32}],81:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("../../composite-xform"),x=k("./cfvo-ext-xform"),g=k("./cf-icon-ext-xform");K.exports=class extends w{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new x,"x14:cfIcon":this.cfIconXform=new g}}get tag(){return"x14:iconSet"}render(f,m){f.openNode(this.tag,{iconSet:I.toStringAttribute(m.iconSet),reverse:I.toBoolAttribute(m.reverse,!1),showValue:I.toBoolAttribute(m.showValue,!0),custom:I.toBoolAttribute(m.icons,!1)}),m.cfvo.forEach(_=>{this.cfvoXform.render(f,_)}),m.icons&&m.icons.forEach((_,b)=>{_.iconId=b,this.cfIconXform.render(f,_)}),f.closeNode()}createNewModel(f){let{attributes:m}=f;return{cfvo:[],iconSet:I.toStringValue(m.iconSet,"3TrafficLights"),reverse:I.toBoolValue(m.reverse,!1),showValue:I.toBoolValue(m.showValue,!0)}}onParserClose(f,m){const[,_]=f.split(":");switch(_){case"cfvo":this.model.cfvo.push(m.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(m.model);break;default:this.model[_]=m.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{get tag(){return"xm:sqref"}render(w,x){w.leafNode(this.tag,null,x)}parseOpen(){this.model=""}parseText(w){this.model+=w}parseClose(w){return w!==this.tag}}},{"../../base-xform":32}],83:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("../../composite-xform"),x=k("../../../../doc/range"),g=k("./databar-xform"),f=k("./ext-lst-ref-xform"),m=k("./formula-xform"),_=k("./color-scale-xform"),b=k("./icon-set-xform"),v={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},A=E=>{const{type:O,operator:T}=E;switch(O){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:O};default:return{type:O,operator:T}}};class D extends w{constructor(){super(),this.map={dataBar:this.databarXform=new g,extLst:this.extLstRefXform=new f,formula:this.formulaXform=new m,colorScale:this.colorScaleXform=new _,iconSet:this.iconSetXform=new b}}get tag(){return"cfRule"}static isPrimitive(O){return"iconSet"!==O.type||!O.custom&&!v[O.iconSet]}render(O,T){switch(T.type){case"expression":this.renderExpression(O,T);break;case"cellIs":this.renderCellIs(O,T);break;case"top10":this.renderTop10(O,T);break;case"aboveAverage":this.renderAboveAverage(O,T);break;case"dataBar":this.renderDataBar(O,T);break;case"colorScale":this.renderColorScale(O,T);break;case"iconSet":this.renderIconSet(O,T);break;case"containsText":this.renderText(O,T);break;case"timePeriod":this.renderTimePeriod(O,T)}}renderExpression(O,T){O.openNode(this.tag,{type:"expression",dxfId:T.dxfId,priority:T.priority}),this.formulaXform.render(O,T.formulae[0]),O.closeNode()}renderCellIs(O,T){O.openNode(this.tag,{type:"cellIs",dxfId:T.dxfId,priority:T.priority,operator:T.operator}),T.formulae.forEach(z=>{this.formulaXform.render(O,z)}),O.closeNode()}renderTop10(O,T){O.leafNode(this.tag,{type:"top10",dxfId:T.dxfId,priority:T.priority,percent:I.toBoolAttribute(T.percent,!1),bottom:I.toBoolAttribute(T.bottom,!1),rank:I.toIntValue(T.rank,10,!0)})}renderAboveAverage(O,T){O.leafNode(this.tag,{type:"aboveAverage",dxfId:T.dxfId,priority:T.priority,aboveAverage:I.toBoolAttribute(T.aboveAverage,!0)})}renderDataBar(O,T){O.openNode(this.tag,{type:"dataBar",priority:T.priority}),this.databarXform.render(O,T),this.extLstRefXform.render(O,T),O.closeNode()}renderColorScale(O,T){O.openNode(this.tag,{type:"colorScale",priority:T.priority}),this.colorScaleXform.render(O,T),O.closeNode()}renderIconSet(O,T){D.isPrimitive(T)&&(O.openNode(this.tag,{type:"iconSet",priority:T.priority}),this.iconSetXform.render(O,T),O.closeNode())}renderText(O,T){O.openNode(this.tag,{type:T.operator,dxfId:T.dxfId,priority:T.priority,operator:I.toStringAttribute(T.operator,"containsText")});const z=(H=>{if(H.formulae&&H.formulae[0])return H.formulae[0];const Q=new x(H.ref),{tl:ae}=Q;switch(H.operator){case"containsText":return`NOT(ISERROR(SEARCH("${H.text}",${ae})))`;case"containsBlanks":return`LEN(TRIM(${ae}))=0`;case"notContainsBlanks":return`LEN(TRIM(${ae}))>0`;case"containsErrors":return`ISERROR(${ae})`;case"notContainsErrors":return`NOT(ISERROR(${ae}))`;default:return}})(T);z&&this.formulaXform.render(O,z),O.closeNode()}renderTimePeriod(O,T){O.openNode(this.tag,{type:"timePeriod",dxfId:T.dxfId,priority:T.priority,timePeriod:T.timePeriod});const z=(H=>{if(H.formulae&&H.formulae[0])return H.formulae[0];const Q=new x(H.ref),{tl:ae}=Q;switch(H.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${ae},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${ae},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${ae},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${ae},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${ae},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${ae},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${ae},1)=TODAY()-1`;case"today":return`FLOOR(${ae},1)=TODAY()`;case"tomorrow":return`FLOOR(${ae},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${ae},1)<=6,FLOOR(${ae},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${ae})=MONTH(EDATE(TODAY(),0-1)),YEAR(${ae})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${ae})=MONTH(TODAY()),YEAR(${ae})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${ae})=MONTH(EDATE(TODAY(),0+1)),YEAR(${ae})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(T);z&&this.formulaXform.render(O,z),O.closeNode()}createNewModel(O){let{attributes:T}=O;return{...A(T),dxfId:I.toIntValue(T.dxfId),priority:I.toIntValue(T.priority),timePeriod:T.timePeriod,percent:I.toBoolValue(T.percent),bottom:I.toBoolValue(T.bottom),rank:I.toIntValue(T.rank),aboveAverage:I.toBoolValue(T.aboveAverage)}}onParserClose(O,T){switch(O){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,T.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(T.model)}}}K.exports=D},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{get tag(){return"cfvo"}render(w,x){w.leafNode(this.tag,{type:x.type,val:x.value})}parseOpen(w){this.model={type:w.attributes.type,value:I.toFloatValue(w.attributes.val)}}parseClose(w){return w!==this.tag}}},{"../../base-xform":32}],85:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("../../style/color-xform"),x=k("./cfvo-xform");K.exports=class extends I{constructor(){super(),this.map={cfvo:this.cfvoXform=new x,color:this.colorXform=new w}}get tag(){return"colorScale"}render(g,f){g.openNode(this.tag),f.cfvo.forEach(m=>{this.cfvoXform.render(g,m)}),f.color.forEach(m=>{this.colorXform.render(g,m)}),g.closeNode()}createNewModel(g){return{cfvo:[],color:[]}}onParserClose(g,f){this.model[g].push(f.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("./cf-rule-xform");K.exports=class extends I{constructor(){super(),this.map={cfRule:new w}}get tag(){return"conditionalFormatting"}render(x,g){g.rules.some(w.isPrimitive)&&(x.openNode(this.tag,{sqref:g.ref}),g.rules.forEach(f=>{w.isPrimitive(f)&&(f.ref=g.ref,this.map.cfRule.render(x,f))}),x.closeNode())}createNewModel(x){let{attributes:g}=x;return{ref:g.sqref,rules:[]}}onParserClose(x,g){this.model.rules.push(g.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("./conditional-formatting-xform");K.exports=class extends I{constructor(){super(),this.cfXform=new w}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(x,g){let f=x.reduce((m,_)=>Math.max(m,..._.rules.map(b=>b.priority||0)),1);x.forEach(m=>{m.rules.forEach(_=>{_.priority||(_.priority=f++),_.style&&(_.dxfId=g.styles.addDxfStyle(_.style))})})}render(x,g){g.forEach(f=>{this.cfXform.render(x,f)})}parseOpen(x){return this.parser?(this.parser.parseOpen(x),!0):"conditionalFormatting"===x.name&&(this.parser=this.cfXform,this.parser.parseOpen(x),!0)}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){return!(!this.parser||!this.parser.parseClose(x)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(x,g){x.forEach(f=>{f.rules.forEach(m=>{void 0!==m.dxfId&&(m.style=g.styles.getDxfStyle(m.dxfId),delete m.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(k,K,U){"use strict";const I=k("../../composite-xform"),w=k("../../style/color-xform"),x=k("./cfvo-xform");K.exports=class extends I{constructor(){super(),this.map={cfvo:this.cfvoXform=new x,color:this.colorXform=new w}}get tag(){return"dataBar"}render(g,f){g.openNode(this.tag),f.cfvo.forEach(m=>{this.cfvoXform.render(g,m)}),this.colorXform.render(g,f.color),g.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(g,f){switch(g){case"cfvo":this.model.cfvo.push(f.model);break;case"color":this.model.color=f.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("../../composite-xform");class x extends I{get tag(){return"x14:id"}render(m,_){m.leafNode(this.tag,null,_)}parseOpen(){this.model=""}parseText(m){this.model+=m}parseClose(m){return m!==this.tag}}class g extends w{constructor(){super(),this.map={"x14:id":this.idXform=new x}}get tag(){return"ext"}render(m,_){m.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(m,_.x14Id),m.closeNode()}createNewModel(){return{}}onParserClose(m,_){this.model.x14Id=_.model}}K.exports=class extends w{constructor(){super(),this.map={ext:new g}}get tag(){return"extLst"}render(f,m){f.openNode(this.tag),this.map.ext.render(f,m),f.closeNode()}createNewModel(){return{}}onParserClose(f,m){Object.assign(this.model,m.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(k,K,U){"use strict";const I=k("../../base-xform");K.exports=class extends I{get tag(){return"formula"}render(w,x){w.leafNode(this.tag,null,x)}parseOpen(){this.model=""}parseText(w){this.model+=w}parseClose(w){return w!==this.tag}}},{"../../base-xform":32}],91:[function(k,K,U){"use strict";const I=k("../../base-xform"),w=k("../../composite-xform"),x=k("./cfvo-xform");K.exports=class extends w{constructor(){super(),this.map={cfvo:this.cfvoXform=new x}}get tag(){return"iconSet"}render(g,f){g.openNode(this.tag,{iconSet:I.toStringAttribute(f.iconSet,"3TrafficLights"),reverse:I.toBoolAttribute(f.reverse,!1),showValue:I.toBoolAttribute(f.showValue,!0)}),f.cfvo.forEach(m=>{this.cfvoXform.render(g,m)}),g.closeNode()}createNewModel(g){let{attributes:f}=g;return{iconSet:I.toStringValue(f.iconSet,"3TrafficLights"),reverse:I.toBoolValue(f.reverse),showValue:I.toBoolValue(f.showValue),cfvo:[]}}onParserClose(g,f){this.model[g].push(f.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(k,K,U){"use strict";const I=k("../../../utils/utils"),w=k("../base-xform");K.exports=class extends w{get tag(){return"col"}prepare(x,g){const f=g.styles.addStyleModel(x.style||{});f&&(x.styleId=f)}render(x,g){x.openNode("col"),x.addAttribute("min",g.min),x.addAttribute("max",g.max),g.width&&x.addAttribute("width",g.width),g.styleId&&x.addAttribute("style",g.styleId),g.hidden&&x.addAttribute("hidden","1"),g.bestFit&&x.addAttribute("bestFit","1"),g.outlineLevel&&x.addAttribute("outlineLevel",g.outlineLevel),g.collapsed&&x.addAttribute("collapsed","1"),x.addAttribute("customWidth","1"),x.closeNode()}parseOpen(x){if("col"===x.name){const g=this.model={min:parseInt(x.attributes.min||"0",10),max:parseInt(x.attributes.max||"0",10),width:void 0===x.attributes.width?void 0:parseFloat(x.attributes.width||"0")};return x.attributes.style&&(g.styleId=parseInt(x.attributes.style,10)),I.parseBoolean(x.attributes.hidden)&&(g.hidden=!0),I.parseBoolean(x.attributes.bestFit)&&(g.bestFit=!0),x.attributes.outlineLevel&&(g.outlineLevel=parseInt(x.attributes.outlineLevel,10)),I.parseBoolean(x.attributes.collapsed)&&(g.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(x,g){x.styleId&&(x.style=g.styles.getStyleModel(x.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../../../utils/utils"),x=k("../../../utils/col-cache"),g=k("../base-xform"),f=k("../../../doc/range");function m(b,v,A,D){const E=v[A];void 0!==E?b[A]=E:void 0!==D&&(b[A]=D)}function _(b,v,A,D){const E=v[A];void 0!==E?b[A]=w.parseBoolean(E):void 0!==D&&(b[A]=D)}K.exports=class extends g{get tag(){return"dataValidations"}render(b,v){const A=function(D){const E=I.map(D,(z,H)=>({address:H,dataValidation:z,marked:!1})).sort((z,H)=>I.strcmp(z.address,H.address)),O=I.keyBy(E,"address"),T=(z,H,Q)=>{for(let ae=0;ae{if(!z.marked){const H=x.decodeEx(z.address);if(H.dimensions)return O[H.dimensions].marked=!0,{...z.dataValidation,sqref:z.address};let Q=1,ae=x.encodeAddress(H.row+Q,H.col);for(;D[ae]&&I.isEqual(z.dataValidation,D[ae]);)Q++,ae=x.encodeAddress(H.row+Q,H.col);let ge=1;for(;T(H,Q,H.col+ge);)ge++;for(let le=0;le1||ge>1){const le=H.row+(Q-1),fe=H.col+(ge-1);return{...z.dataValidation,sqref:`${z.address}:${x.encodeAddress(le,fe)}`}}return{...z.dataValidation,sqref:z.address}}return null}).filter(Boolean)}(v);A.length&&(b.openNode("dataValidations",{count:A.length}),A.forEach(D=>{b.openNode("dataValidation"),"any"!==D.type&&(b.addAttribute("type",D.type),D.operator&&"list"!==D.type&&"between"!==D.operator&&b.addAttribute("operator",D.operator),D.allowBlank&&b.addAttribute("allowBlank","1")),D.showInputMessage&&b.addAttribute("showInputMessage","1"),D.promptTitle&&b.addAttribute("promptTitle",D.promptTitle),D.prompt&&b.addAttribute("prompt",D.prompt),D.showErrorMessage&&b.addAttribute("showErrorMessage","1"),D.errorStyle&&b.addAttribute("errorStyle",D.errorStyle),D.errorTitle&&b.addAttribute("errorTitle",D.errorTitle),D.error&&b.addAttribute("error",D.error),b.addAttribute("sqref",D.sqref),(D.formulae||[]).forEach((E,O)=>{b.openNode("formula"+(O+1)),"date"===D.type?b.writeText(w.dateToExcel(new Date(E))):b.writeText(E),b.closeNode()}),b.closeNode()}),b.closeNode())}parseOpen(b){switch(b.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=b.attributes.sqref;const v={type:b.attributes.type||"any",formulae:[]};switch(b.attributes.type&&_(v,b.attributes,"allowBlank"),_(v,b.attributes,"showInputMessage"),_(v,b.attributes,"showErrorMessage"),v.type){case"any":case"list":case"custom":break;default:m(v,b.attributes,"operator","between")}return m(v,b.attributes,"promptTitle"),m(v,b.attributes,"prompt"),m(v,b.attributes,"errorStyle"),m(v,b.attributes,"errorTitle"),m(v,b.attributes,"error"),this._dataValidation=v,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(b){this._formula&&this._formula.push(b)}parseClose(b){switch(b){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(v=>{v.includes(":")?new f(v).forEachAddress(A=>{this.model[A]=this._dataValidation}):this.model[v]=this._dataValidation}),!0;case"formula1":case"formula2":{let v=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":v=parseInt(v,10);break;case"decimal":v=parseFloat(v);break;case"date":v=w.excelToDate(parseFloat(v))}return this._dataValidation.formulae.push(v),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"dimension"}render(w,x){x&&w.leafNode("dimension",{ref:x})}parseOpen(w){return"dimension"===w.name&&(this.model=w.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"drawing"}render(w,x){x&&w.leafNode(this.tag,{"r:id":x.rId})}parseOpen(w){return w.name===this.tag&&(this.model={rId:w.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(k,K,U){"use strict";const I=k("../composite-xform"),w=k("./cf-ext/conditional-formattings-ext-xform");class x extends I{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new w}}get tag(){return"ext"}hasContent(f){return this.conditionalFormattings.hasContent(f.conditionalFormattings)}prepare(f,m){this.conditionalFormattings.prepare(f.conditionalFormattings,m)}render(f,m){f.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(f,m.conditionalFormattings),f.closeNode()}createNewModel(){return{}}onParserClose(f,m){this.model[f]=m.model}}K.exports=class extends I{constructor(){super(),this.map={ext:this.ext=new x}}get tag(){return"extLst"}prepare(g,f){this.ext.prepare(g,f)}hasContent(g){return this.ext.hasContent(g)}render(g,f){this.hasContent(f)&&(g.openNode("extLst"),this.ext.render(g,f),g.closeNode())}createNewModel(){return{}}onParserClose(g,f){Object.assign(this.model,f.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"headerFooter"}render(w,x){if(x){w.addRollback();let g=!1;w.openNode("headerFooter"),x.differentFirst&&(w.addAttribute("differentFirst","1"),g=!0),x.differentOddEven&&(w.addAttribute("differentOddEven","1"),g=!0),x.oddHeader&&"string"==typeof x.oddHeader&&(w.leafNode("oddHeader",null,x.oddHeader),g=!0),x.oddFooter&&"string"==typeof x.oddFooter&&(w.leafNode("oddFooter",null,x.oddFooter),g=!0),x.evenHeader&&"string"==typeof x.evenHeader&&(w.leafNode("evenHeader",null,x.evenHeader),g=!0),x.evenFooter&&"string"==typeof x.evenFooter&&(w.leafNode("evenFooter",null,x.evenFooter),g=!0),x.firstHeader&&"string"==typeof x.firstHeader&&(w.leafNode("firstHeader",null,x.firstHeader),g=!0),x.firstFooter&&"string"==typeof x.firstFooter&&(w.leafNode("firstFooter",null,x.firstFooter),g=!0),g?(w.closeNode(),w.commit()):w.rollback()}}parseOpen(w){switch(w.name){case"headerFooter":return this.model={},w.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(w.attributes.differentFirst,0)),w.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(w.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(w){switch(this.currentNode){case"oddHeader":this.model.oddHeader=w;break;case"oddFooter":this.model.oddFooter=w;break;case"evenHeader":this.model.evenHeader=w;break;case"evenFooter":this.model.evenFooter=w;break;case"firstHeader":this.model.firstHeader=w;break;case"firstFooter":this.model.firstFooter=w}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"hyperlink"}render(w,x){this.isInternalLink(x)?w.leafNode("hyperlink",{ref:x.address,"r:id":x.rId,tooltip:x.tooltip,location:x.target}):w.leafNode("hyperlink",{ref:x.address,"r:id":x.rId,tooltip:x.tooltip})}parseOpen(w){return"hyperlink"===w.name&&(this.model={address:w.attributes.ref,rId:w.attributes["r:id"],tooltip:w.attributes.tooltip},w.attributes.location&&(this.model.target=w.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(w){return w.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(w.target)}}},{"../base-xform":32}],99:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"mergeCell"}render(w,x){w.leafNode("mergeCell",{ref:x})}parseOpen(w){return"mergeCell"===w.name&&(this.model=w.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../../../doc/range"),x=k("../../../utils/col-cache"),g=k("../../../doc/enums");K.exports=class{constructor(){this.merges={}}add(f){if(this.merges[f.master])this.merges[f.master].expandToAddress(f.address);else{const m=`${f.master}:${f.address}`;this.merges[f.master]=new w(m)}}get mergeCells(){return I.map(this.merges,f=>f.range)}reconcile(f,m){I.each(f,_=>{const b=x.decode(_);for(let v=b.top;v<=b.bottom;v++){const A=m[v-1];for(let D=b.left;D<=b.right;D++){const E=A.cells[D-1];E?E.type===g.ValueType.Merge&&(E.master=b.tl):A.cells[D]={type:g.ValueType.Null,address:x.encodeAddress(v,D)}}}})}getMasterAddress(f){const m=this.hash[f];return m&&m.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(k,K,U){"use strict";const I=k("../base-xform"),w=x=>void 0!==x;K.exports=class extends I{get tag(){return"outlinePr"}render(x,g){return!(!g||!w(g.summaryBelow)&&!w(g.summaryRight)||(x.leafNode(this.tag,{summaryBelow:w(g.summaryBelow)?Number(g.summaryBelow):void 0,summaryRight:w(g.summaryRight)?Number(g.summaryRight):void 0}),0))}parseOpen(x){return x.name===this.tag&&(this.model={summaryBelow:w(x.attributes.summaryBelow)?!!Number(x.attributes.summaryBelow):void 0,summaryRight:w(x.attributes.summaryRight)?!!Number(x.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"brk"}render(w,x){w.leafNode("brk",x)}parseOpen(w){return"brk"===w.name&&(this.model=w.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../base-xform");K.exports=class extends w{get tag(){return"pageMargins"}render(x,g){if(g){const f={left:g.left,right:g.right,top:g.top,bottom:g.bottom,header:g.header,footer:g.footer};I.some(f,m=>void 0!==m)&&x.leafNode(this.tag,f)}}parseOpen(x){return x.name===this.tag&&(this.model={left:parseFloat(x.attributes.left||.7),right:parseFloat(x.attributes.right||.7),top:parseFloat(x.attributes.top||.75),bottom:parseFloat(x.attributes.bottom||.75),header:parseFloat(x.attributes.header||.3),footer:parseFloat(x.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"pageSetUpPr"}render(w,x){return!(!x||!x.fitToPage||(w.leafNode(this.tag,{fitToPage:x.fitToPage?"1":void 0}),0))}parseOpen(w){return w.name===this.tag&&(this.model={fitToPage:"1"===w.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../base-xform");function x(_){return _?"1":void 0}function g(_){if("overThenDown"===_)return _}function f(_){switch(_){case"atEnd":case"asDisplyed":return _;default:return}}function m(_){switch(_){case"dash":case"blank":case"NA":return _;default:return}}K.exports=class extends w{get tag(){return"pageSetup"}render(_,b){if(b){const v={paperSize:b.paperSize,orientation:b.orientation,horizontalDpi:b.horizontalDpi,verticalDpi:b.verticalDpi,pageOrder:g(b.pageOrder),blackAndWhite:x(b.blackAndWhite),draft:x(b.draft),cellComments:f(b.cellComments),errors:m(b.errors),scale:b.scale,fitToWidth:b.fitToWidth,fitToHeight:b.fitToHeight,firstPageNumber:b.firstPageNumber,useFirstPageNumber:x(b.firstPageNumber),usePrinterDefaults:x(b.usePrinterDefaults),copies:b.copies};I.some(v,A=>void 0!==A)&&_.leafNode(this.tag,v)}}parseOpen(_){return _.name===this.tag&&(this.model={paperSize:(b=_.attributes.paperSize,void 0!==b?parseInt(b,10):void 0),orientation:_.attributes.orientation||"portrait",horizontalDpi:parseInt(_.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(_.attributes.verticalDpi||"4294967295",10),pageOrder:_.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===_.attributes.blackAndWhite,draft:"1"===_.attributes.draft,cellComments:_.attributes.cellComments||"None",errors:_.attributes.errors||"displayed",scale:parseInt(_.attributes.scale||"100",10),fitToWidth:parseInt(_.attributes.fitToWidth||"1",10),fitToHeight:parseInt(_.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(_.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===_.attributes.useFirstPageNumber,usePrinterDefaults:"1"===_.attributes.usePrinterDefaults,copies:parseInt(_.attributes.copies||"1",10)},!0);var b}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"picture"}render(w,x){x&&w.leafNode(this.tag,{"r:id":x.rId})}parseOpen(w){return w.name===this.tag&&(this.model={rId:w.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../base-xform");function x(g){return g?"1":void 0}K.exports=class extends w{get tag(){return"printOptions"}render(g,f){if(f){const m={headings:x(f.showRowColHeaders),gridLines:x(f.showGridLines),horizontalCentered:x(f.horizontalCentered),verticalCentered:x(f.verticalCentered)};I.some(m,_=>void 0!==_)&&g.leafNode(this.tag,m)}}parseOpen(g){return g.name===this.tag&&(this.model={showRowColHeaders:"1"===g.attributes.headings,showGridLines:"1"===g.attributes.gridLines,horizontalCentered:"1"===g.attributes.horizontalCentered,verticalCentered:"1"===g.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(k,K,U){"use strict";const I=k("./page-breaks-xform"),w=k("../list-xform");K.exports=class extends w{constructor(){super({tag:"rowBreaks",count:!0,childXform:new I})}render(x,g){if(g&&g.length){x.openNode(this.tag,this.$),this.count&&(x.addAttribute(this.$count,g.length),x.addAttribute("manualBreakCount",g.length));const{childXform:f}=this;g.forEach(m=>{f.render(x,m)}),x.closeNode()}else this.empty&&x.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../../../utils/utils"),x=k("./cell-xform");K.exports=class extends I{constructor(g){super(),this.maxItems=g&&g.maxItems,this.map={c:new x}}get tag(){return"row"}prepare(g,f){const m=f.styles.addStyleModel(g.style);m&&(g.styleId=m);const _=this.map.c;g.cells.forEach(b=>{_.prepare(b,f)})}render(g,f,m){g.openNode("row"),g.addAttribute("r",f.number),f.height&&(g.addAttribute("ht",f.height),g.addAttribute("customHeight","1")),f.hidden&&g.addAttribute("hidden","1"),f.min>0&&f.max>0&&f.min<=f.max&&g.addAttribute("spans",`${f.min}:${f.max}`),f.styleId&&(g.addAttribute("s",f.styleId),g.addAttribute("customFormat","1")),g.addAttribute("x14ac:dyDescent","0.25"),f.outlineLevel&&g.addAttribute("outlineLevel",f.outlineLevel),f.collapsed&&g.addAttribute("collapsed","1");const _=this.map.c;f.cells.forEach(b=>{_.render(g,b,m)}),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;if("row"===g.name){this.numRowsSeen+=1;const f=g.attributes.spans?g.attributes.spans.split(":").map(_=>parseInt(_,10)):[void 0,void 0],m=this.model={number:parseInt(g.attributes.r,10),min:f[0],max:f[1],cells:[]};return g.attributes.s&&(m.styleId=parseInt(g.attributes.s,10)),w.parseBoolean(g.attributes.hidden)&&(m.hidden=!0),w.parseBoolean(g.attributes.bestFit)&&(m.bestFit=!0),g.attributes.ht&&(m.height=parseFloat(g.attributes.ht)),g.attributes.outlineLevel&&(m.outlineLevel=parseInt(g.attributes.outlineLevel,10)),w.parseBoolean(g.attributes.collapsed)&&(m.collapsed=!0),!0}return this.parser=this.map[g.name],!!this.parser&&(this.parser.parseOpen(g),!0)}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser){if(!this.parser.parseClose(g)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(g,f){g.style=g.styleId?f.styles.getStyleModel(g.styleId):{},void 0!==g.styleId&&(g.styleId=void 0);const m=this.map.c;g.cells.forEach(_=>{m.reconcile(_,f)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../base-xform");K.exports=class extends w{get tag(){return"sheetFormatPr"}render(x,g){if(g){const f={defaultRowHeight:g.defaultRowHeight,outlineLevelRow:g.outlineLevelRow,outlineLevelCol:g.outlineLevelCol,"x14ac:dyDescent":g.dyDescent};g.defaultColWidth&&(f.defaultColWidth=g.defaultColWidth),g.defaultRowHeight&&15===g.defaultRowHeight||(f.customHeight="1"),I.some(f,m=>void 0!==m)&&x.leafNode("sheetFormatPr",f)}}parseOpen(x){return"sheetFormatPr"===x.name&&(this.model={defaultRowHeight:parseFloat(x.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(x.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(x.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(x.attributes.outlineLevelCol||"0",10)},x.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(x.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../style/color-xform"),x=k("./page-setup-properties-xform"),g=k("./outline-properties-xform");K.exports=class extends I{constructor(){super(),this.map={tabColor:new w("tabColor"),pageSetUpPr:new x,outlinePr:new g}}get tag(){return"sheetPr"}render(f,m){if(m){f.addRollback(),f.openNode("sheetPr");let _=!1;_=this.map.tabColor.render(f,m.tabColor)||_,_=this.map.pageSetUpPr.render(f,m.pageSetup)||_,_=this.map.outlinePr.render(f,m.outlineProperties)||_,_?(f.closeNode(),f.commit()):f.rollback()}}parseOpen(f){return this.parser?(this.parser.parseOpen(f),!0):f.name===this.tag?(this.reset(),!0):!!this.map[f.name]&&(this.parser=this.map[f.name],this.parser.parseOpen(f),!0)}parseText(f){return!!this.parser&&(this.parser.parseText(f),!0)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../base-xform");function x(f,m){return f?m:void 0}function g(f,m){return f===m||void 0}K.exports=class extends w{get tag(){return"sheetProtection"}render(f,m){if(m){const _={sheet:x(m.sheet,"1"),selectLockedCells:!1===m.selectLockedCells?"1":void 0,selectUnlockedCells:!1===m.selectUnlockedCells?"1":void 0,formatCells:x(m.formatCells,"0"),formatColumns:x(m.formatColumns,"0"),formatRows:x(m.formatRows,"0"),insertColumns:x(m.insertColumns,"0"),insertRows:x(m.insertRows,"0"),insertHyperlinks:x(m.insertHyperlinks,"0"),deleteColumns:x(m.deleteColumns,"0"),deleteRows:x(m.deleteRows,"0"),sort:x(m.sort,"0"),autoFilter:x(m.autoFilter,"0"),pivotTables:x(m.pivotTables,"0")};m.sheet&&(_.algorithmName=m.algorithmName,_.hashValue=m.hashValue,_.saltValue=m.saltValue,_.spinCount=m.spinCount,_.objects=x(!1===m.objects,"1"),_.scenarios=x(!1===m.scenarios,"1")),I.some(_,b=>void 0!==b)&&f.leafNode(this.tag,_)}}parseOpen(f){return f.name===this.tag&&(this.model={sheet:g(f.attributes.sheet,"1"),objects:"1"!==f.attributes.objects&&void 0,scenarios:"1"!==f.attributes.scenarios&&void 0,selectLockedCells:"1"!==f.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==f.attributes.selectUnlockedCells&&void 0,formatCells:g(f.attributes.formatCells,"0"),formatColumns:g(f.attributes.formatColumns,"0"),formatRows:g(f.attributes.formatRows,"0"),insertColumns:g(f.attributes.insertColumns,"0"),insertRows:g(f.attributes.insertRows,"0"),insertHyperlinks:g(f.attributes.insertHyperlinks,"0"),deleteColumns:g(f.attributes.deleteColumns,"0"),deleteRows:g(f.attributes.deleteRows,"0"),sort:g(f.attributes.sort,"0"),autoFilter:g(f.attributes.autoFilter,"0"),pivotTables:g(f.attributes.pivotTables,"0")},f.attributes.algorithmName&&(this.model.algorithmName=f.attributes.algorithmName,this.model.hashValue=f.attributes.hashValue,this.model.saltValue=f.attributes.saltValue,this.model.spinCount=parseInt(f.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(k,K,U){"use strict";const I=k("../../../utils/col-cache"),w=k("../base-xform"),x={frozen:"frozen",frozenSplit:"frozen",split:"split"};K.exports=class extends w{get tag(){return"sheetView"}prepare(g){switch(g.state){case"frozen":case"split":break;default:g.state="normal"}}render(g,f){g.openNode("sheetView",{workbookViewId:f.workbookViewId||0});const m=function(D,E,O){O&&g.addAttribute(D,E)};let _,b,v,A;switch(m("rightToLeft","1",!0===f.rightToLeft),m("tabSelected","1",f.tabSelected),m("showRuler","0",!1===f.showRuler),m("showRowColHeaders","0",!1===f.showRowColHeaders),m("showGridLines","0",!1===f.showGridLines),m("zoomScale",f.zoomScale,f.zoomScale),m("zoomScaleNormal",f.zoomScaleNormal,f.zoomScaleNormal),m("view",f.style,f.style),f.state){case"frozen":b=f.xSplit||0,v=f.ySplit||0,_=f.topLeftCell||I.getAddress(v+1,b+1).address,A=(f.xSplit&&f.ySplit?"bottomRight":f.xSplit&&"topRight")||"bottomLeft",g.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:_,activePane:A,state:"frozen"}),g.leafNode("selection",{pane:A,activeCell:f.activeCell,sqref:f.activeCell});break;case"split":"topLeft"===f.activePane&&(f.activePane=void 0),g.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:f.topLeftCell,activePane:f.activePane}),g.leafNode("selection",{pane:f.activePane,activeCell:f.activeCell,sqref:f.activeCell});break;case"normal":f.activeCell&&g.leafNode("selection",{activeCell:f.activeCell,sqref:f.activeCell})}g.closeNode()}parseOpen(g){switch(g.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(g.attributes.workbookViewId,10),rightToLeft:"1"===g.attributes.rightToLeft,tabSelected:"1"===g.attributes.tabSelected,showRuler:"0"!==g.attributes.showRuler,showRowColHeaders:"0"!==g.attributes.showRowColHeaders,showGridLines:"0"!==g.attributes.showGridLines,zoomScale:parseInt(g.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(g.attributes.zoomScaleNormal||"100",10),style:g.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(g.attributes.xSplit||"0",10),ySplit:parseInt(g.attributes.ySplit||"0",10),topLeftCell:g.attributes.topLeftCell,activePane:g.attributes.activePane||"topLeft",state:g.attributes.state},!0;case"selection":{const f=g.attributes.pane||"topLeft";return this.selections[f]={pane:f,activeCell:g.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(g){let f,m;return"sheetView"!==g||(this.sheetView&&this.pane?(f=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:x[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(f.activePane=this.pane.activePane),m=this.selections[this.pane.activePane],m&&m.activeCell&&(f.activeCell=m.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)):(f=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},m=this.selections.topLeft,m&&m.activeCell&&(f.activeCell=m.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"tablePart"}render(w,x){x&&w.leafNode(this.tag,{"r:id":x.rId})}parseOpen(w){return w.name===this.tag&&(this.model={rId:w.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../../../utils/col-cache"),x=k("../../../utils/xml-stream"),g=k("../../rel-type"),f=k("./merges"),m=k("../base-xform"),_=k("../list-xform"),b=k("./row-xform"),v=k("./col-xform"),A=k("./dimension-xform"),D=k("./hyperlink-xform"),E=k("./merge-cell-xform"),O=k("./data-validations-xform"),T=k("./sheet-properties-xform"),z=k("./sheet-format-properties-xform"),H=k("./sheet-view-xform"),Q=k("./sheet-protection-xform"),ae=k("./page-margins-xform"),ge=k("./page-setup-xform"),le=k("./print-options-xform"),fe=k("./auto-filter-xform"),be=k("./picture-xform"),Se=k("./drawing-xform"),ve=k("./table-part-xform"),W=k("./row-breaks-xform"),J=k("./header-footer-xform"),de=k("./cf/conditional-formattings-xform"),M=k("./ext-lst-xform"),F=(L,j)=>{if(!j||!j.length)return L;if(!L||!L.length)return j;const G={},X={};return L.forEach(se=>{G[se.ref]=se,se.rules.forEach(ue=>{const{x14Id:Ne}=ue;Ne&&(X[Ne]=ue)})}),j.forEach(se=>{se.rules.forEach(ue=>{const Ne=X[ue.x14Id];var te,Me;Ne?(te=Ne,Me=ue,Object.keys(Me).forEach(Z=>{const Y=te[Z],me=Me[Z];void 0===Y&&void 0!==me&&(te[Z]=me)})):G[se.ref]?G[se.ref].rules.push(ue):L.push({ref:se.ref,rules:[ue]})})}),L};class P extends m{constructor(j){super();const{maxRows:G,maxCols:X,ignoreNodes:se}=j||{};this.ignoreNodes=se||[],this.map={sheetPr:new T,dimension:new A,sheetViews:new _({tag:"sheetViews",count:!1,childXform:new H}),sheetFormatPr:new z,cols:new _({tag:"cols",count:!1,childXform:new v}),sheetData:new _({tag:"sheetData",count:!1,empty:!0,childXform:new b({maxItems:X}),maxItems:G}),autoFilter:new fe,mergeCells:new _({tag:"mergeCells",count:!0,childXform:new E}),rowBreaks:new W,hyperlinks:new _({tag:"hyperlinks",count:!1,childXform:new D}),pageMargins:new ae,dataValidations:new O,pageSetup:new ge,headerFooter:new J,printOptions:new le,picture:new be,drawing:new Se,sheetProtection:new Q,tableParts:new _({tag:"tableParts",count:!0,childXform:new ve}),conditionalFormatting:new de,extLst:new M}}prepare(j,G){G.merges=new f,j.hyperlinks=G.hyperlinks=[],j.comments=G.comments=[],G.formulae={},G.siFormulae=0,this.map.cols.prepare(j.cols,G),this.map.sheetData.prepare(j.rows,G),this.map.conditionalFormatting.prepare(j.conditionalFormattings,G),j.mergeCells=G.merges.mergeCells;const X=j.rels=[];function se(te){return"rId"+(te.length+1)}if(j.hyperlinks.forEach(te=>{const Me=se(X);te.rId=Me,X.push({Id:Me,Type:g.Hyperlink,Target:te.target,TargetMode:"External"})}),j.comments.length>0){const te={Id:se(X),Type:g.Comments,Target:`../comments${j.id}.xml`};X.push(te);const Me={Id:se(X),Type:g.VmlDrawing,Target:`../drawings/vmlDrawing${j.id}.vml`};X.push(Me),j.comments.forEach(Z=>{Z.refAddress=w.decodeAddress(Z.ref)}),G.commentRefs.push({commentName:"comments"+j.id,vmlDrawing:"vmlDrawing"+j.id})}const ue=[];let Ne;j.media.forEach(te=>{if("background"===te.type){const Me=se(X);Ne=G.media[te.imageId],X.push({Id:Me,Type:g.Image,Target:`../media/${Ne.name}.${Ne.extension}`}),j.background={rId:Me},j.image=G.media[te.imageId]}else if("image"===te.type){let{drawing:Me}=j;Ne=G.media[te.imageId],Me||(Me=j.drawing={rId:se(X),name:"drawing"+ ++G.drawingsCount,anchors:[],rels:[]},G.drawings.push(Me),X.push({Id:Me.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Me.name}.xml`}));let Z=this.preImageId===te.imageId?ue[te.imageId]:ue[Me.rels.length];Z||(Z=se(Me.rels),ue[Me.rels.length]=Z,Me.rels.push({Id:Z,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Ne.name}.${Ne.extension}`}));const Y={picture:{rId:Z},range:te.range};if(te.hyperlinks&&te.hyperlinks.hyperlink){const me=se(Me.rels);ue[Me.rels.length]=me,Y.picture.hyperlinks={tooltip:te.hyperlinks.tooltip,rId:me},Me.rels.push({Id:me,Type:g.Hyperlink,Target:te.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=te.imageId,Me.anchors.push(Y)}}),j.tables.forEach(te=>{const Me=se(X);te.rId=Me,X.push({Id:Me,Type:g.Table,Target:"../tables/"+te.target}),te.columns.forEach(Z=>{const{style:Y}=Z;Y&&(Z.dxfId=G.styles.addDxfStyle(Y))})}),this.map.extLst.prepare(j,G)}render(j,G){j.openXml(x.StdDocAttributes),j.openNode("worksheet",P.WORKSHEET_ATTRIBUTES);const X=G.properties?{defaultRowHeight:G.properties.defaultRowHeight,dyDescent:G.properties.dyDescent,outlineLevelCol:G.properties.outlineLevelCol,outlineLevelRow:G.properties.outlineLevelRow}:void 0;G.properties&&G.properties.defaultColWidth&&(X.defaultColWidth=G.properties.defaultColWidth);const se={outlineProperties:G.properties&&G.properties.outlineProperties,tabColor:G.properties&&G.properties.tabColor,pageSetup:G.pageSetup&&G.pageSetup.fitToPage?{fitToPage:G.pageSetup.fitToPage}:void 0},ue=G.pageSetup&&G.pageSetup.margins,Ne={showRowColHeaders:G.pageSetup&&G.pageSetup.showRowColHeaders,showGridLines:G.pageSetup&&G.pageSetup.showGridLines,horizontalCentered:G.pageSetup&&G.pageSetup.horizontalCentered,verticalCentered:G.pageSetup&&G.pageSetup.verticalCentered},te=G.sheetProtection;this.map.sheetPr.render(j,se),this.map.dimension.render(j,G.dimensions),this.map.sheetViews.render(j,G.views),this.map.sheetFormatPr.render(j,X),this.map.cols.render(j,G.cols),this.map.sheetData.render(j,G.rows),this.map.sheetProtection.render(j,te),this.map.autoFilter.render(j,G.autoFilter),this.map.mergeCells.render(j,G.mergeCells),this.map.conditionalFormatting.render(j,G.conditionalFormattings),this.map.dataValidations.render(j,G.dataValidations),this.map.hyperlinks.render(j,G.hyperlinks),this.map.printOptions.render(j,Ne),this.map.pageMargins.render(j,ue),this.map.pageSetup.render(j,G.pageSetup),this.map.headerFooter.render(j,G.headerFooter),this.map.rowBreaks.render(j,G.rowBreaks),this.map.drawing.render(j,G.drawing),this.map.picture.render(j,G.background),this.map.tableParts.render(j,G.tables),this.map.extLst.render(j,G),G.rels&&G.rels.forEach(Me=>{Me.Type===g.VmlDrawing&&j.leafNode("legacyDrawing",{"r:id":Me.Id})}),j.closeNode()}parseOpen(j){return this.parser?(this.parser.parseOpen(j),!0):"worksheet"===j.name?(I.each(this.map,G=>{G.reset()}),!0):(this.map[j.name]&&!this.ignoreNodes.includes(j.name)&&(this.parser=this.map[j.name],this.parser.parseOpen(j)),!0)}parseText(j){this.parser&&this.parser.parseText(j)}parseClose(j){if(this.parser)return this.parser.parseClose(j)||(this.parser=void 0),!0;if("worksheet"===j){const G=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(G.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(G.outlineProperties=this.map.sheetPr.model.outlineProperties);const X={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},se=Object.assign(X,this.map.pageSetup.model,this.map.printOptions.model),ue=F(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:G,views:this.map.sheetViews.model,pageSetup:se,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:ue},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(j,G){const X=(j.relationships||[]).reduce((ue,Ne)=>{if(ue[Ne.Id]=Ne,Ne.Type===g.Comments&&(j.comments=G.comments[Ne.Target].comments),Ne.Type===g.VmlDrawing&&j.comments&&j.comments.length){const te=G.vmlDrawings[Ne.Target].comments;j.comments.forEach((Me,Z)=>{Me.note=Object.assign({},Me.note,te[Z])})}return ue},{});if(G.commentsMap=(j.comments||[]).reduce((ue,Ne)=>(Ne.ref&&(ue[Ne.ref]=Ne),ue),{}),G.hyperlinkMap=(j.hyperlinks||[]).reduce((ue,Ne)=>(Ne.rId&&(ue[Ne.address]=X[Ne.rId].Target),ue),{}),G.formulae={},j.rows=j.rows&&j.rows.filter(Boolean)||[],j.rows.forEach(ue=>{ue.cells=ue.cells&&ue.cells.filter(Boolean)||[]}),this.map.cols.reconcile(j.cols,G),this.map.sheetData.reconcile(j.rows,G),this.map.conditionalFormatting.reconcile(j.conditionalFormattings,G),j.media=[],j.drawing){const ue=X[j.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(ue){const Ne=ue[1];G.drawings[Ne].anchors.forEach(te=>{if(te.medium){const Me={type:"image",imageId:te.medium.index,range:te.range,hyperlinks:te.picture.hyperlinks};j.media.push(Me)}})}}const se=j.background&&X[j.background.rId];if(se){const ue=se.Target.split("/media/")[1],Ne=G.mediaIndex&&G.mediaIndex[ue];void 0!==Ne&&j.media.push({type:"background",imageId:Ne})}j.tables=(j.tables||[]).map(ue=>{const Ne=X[ue.rId];return G.tables[Ne.Target]}),delete j.relationships,delete j.hyperlinks,delete j.comments}}P.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},K.exports=P},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.attr=w.attr}render(w,x){x&&(w.openNode(this.tag),w.closeNode())}parseOpen(w){w.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.attr=w.attr,this.attrs=w.attrs,this._format=w.format||function(x){try{return Number.isNaN(x.getTime())?"":x.toISOString()}catch{return""}},this._parse=w.parse||function(x){return new Date(x)}}render(w,x){x&&(w.openNode(this.tag),this.attrs&&w.addAttributes(this.attrs),this.attr?w.addAttribute(this.attr,this._format(x)):w.writeText(this._format(x)),w.closeNode())}parseOpen(w){w.name===this.tag&&(this.attr?this.model=this._parse(w.attributes[this.attr]):this.text=[])}parseText(w){this.attr||this.text.push(w)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.attr=w.attr,this.attrs=w.attrs,this.zero=w.zero}render(w,x){(x||this.zero)&&(w.openNode(this.tag),this.attrs&&w.addAttributes(this.attrs),this.attr?w.addAttribute(this.attr,x):w.writeText(x),w.closeNode())}parseOpen(w){return w.name===this.tag&&(this.attr?this.model=parseInt(w.attributes[this.attr],10):this.text=[],!0)}parseText(w){this.attr||this.text.push(w)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.tag=w.tag,this.attr=w.attr,this.attrs=w.attrs}render(w,x){void 0!==x&&(w.openNode(this.tag),this.attrs&&w.addAttributes(this.attrs),this.attr?w.addAttribute(this.attr,x):w.writeText(x),w.closeNode())}parseOpen(w){w.name===this.tag&&(this.attr?this.model=w.attributes[this.attr]:this.text=[])}parseText(w){this.attr||this.text.push(w)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(k,K,U){"use strict";const I=k("./base-xform"),w=k("../../utils/xml-stream");K.exports=class extends I{constructor(x){super(),this._model=x}render(x){if(!this._xml){const g=new w;(function f(m,_){m.openNode(_.tag,_.$),_.c&&_.c.forEach(b=>{f(m,b)}),_.t&&m.writeText(_.t),m.closeNode()})(g,this._model),this._xml=g.xml}x.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(x){return x!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(k,K,U){"use strict";const I=k("./text-xform"),w=k("./rich-text-xform"),x=k("../base-xform");K.exports=class extends x{constructor(){super(),this.map={r:new w,t:new I}}get tag(){return"rPh"}render(g,f){if(g.openNode(this.tag,{sb:f.sb||0,eb:f.eb||0}),f&&f.hasOwnProperty("richText")&&f.richText){const{r:m}=this.map;f.richText.forEach(_=>{m.render(g,_)})}else f&&this.map.t.render(g,f.text);g.closeNode()}parseOpen(g){const{name:f}=g;return this.parser?(this.parser.parseOpen(g),!0):f===this.tag?(this.model={sb:parseInt(g.attributes.sb,10),eb:parseInt(g.attributes.eb,10)},!0):(this.parser=this.map[f],!!this.parser&&(this.parser.parseOpen(g),!0))}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser){if(!this.parser.parseClose(g)){switch(g){case"r":{let f=this.model.richText;f||(f=this.model.richText=[]),f.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return g!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(k,K,U){"use strict";const I=k("./text-xform"),w=k("../style/font-xform"),x=k("../base-xform");class g extends x{constructor(m){super(),this.model=m}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new I)}get fontXform(){return this._fontXform||(this._fontXform=new w(g.FONT_OPTIONS))}render(m,_){_=_||this.model,m.openNode("r"),_.font&&this.fontXform.render(m,_.font),this.textXform.render(m,_.text),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(m),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(m),!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){switch(m){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(m),!0}}}g.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},K.exports=g},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(k,K,U){"use strict";const I=k("./text-xform"),w=k("./rich-text-xform"),x=k("./phonetic-text-xform"),g=k("../base-xform");K.exports=class extends g{constructor(f){super(),this.model=f,this.map={r:new w,t:new I,rPh:new x}}get tag(){return"si"}render(f,m){f.openNode(this.tag),m&&m.hasOwnProperty("richText")&&m.richText?m.richText.length?m.richText.forEach(_=>{this.map.r.render(f,_)}):this.map.t.render(f,""):null!=m&&this.map.t.render(f,m),f.closeNode()}parseOpen(f){const{name:m}=f;return this.parser?(this.parser.parseOpen(f),!0):m===this.tag?(this.model={},!0):(this.parser=this.map[m],!!this.parser&&(this.parser.parseOpen(f),!0))}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser){if(!this.parser.parseClose(f)){switch(f){case"r":{let m=this.model.richText;m||(m=this.model.richText=[]),m.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return f!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("./shared-string-xform");K.exports=class extends w{constructor(g){super(),this.model=g||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new x)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(g){return this.model.values[g]}add(g){return g.richText?this.addRichText(g):this.addText(g)}addText(g){let f=this.hash[g];return void 0===f&&(f=this.hash[g]=this.model.values.length,this.model.values.push(g)),this.model.count++,f}addRichText(g){const f=this.sharedStringXform.toXml(g);let m=this.rich[f];return void 0===m&&(m=this.rich[f]=this.model.values.length,this.model.values.push(g)),this.model.count++,m}render(g,f){f=f||this._values,g.openXml(I.StdDocAttributes),g.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:f.count,uniqueCount:f.values.length});const m=this.sharedStringXform;f.values.forEach(_=>{m.render(g,_)}),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(g),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(g))}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===g)return!1;throw new Error("Unexpected xml node in parseClose: "+g)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"t"}render(w,x){w.openNode("t"),/^\s|\n|\s$/.test(x)&&w.addAttribute("xml:space","preserve"),w.writeText(x),w.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(w,x)=>String.fromCharCode(parseInt(x,16)))}parseOpen(w){return"t"===w.name&&(this._text=[],!0)}parseText(w){this._text.push(w)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(k,K,U){"use strict";const I=k("../../../doc/enums"),w=k("../../../utils/utils"),x=k("../base-xform"),g={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((m,_)=>(m[_]=!0,m),{}),horizontal(m){return this.horizontalValues[m]?m:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((m,_)=>(m[_]=!0,m),{}),vertical(m){return"middle"===m?"center":this.verticalValues[m]?m:void 0},wrapText:m=>!!m||void 0,shrinkToFit:m=>!!m||void 0,textRotation:m=>"vertical"===m||(m=w.validInt(m))>=-90&&m<=90?m:void 0,indent:m=>(m=w.validInt(m),Math.max(0,m)),readingOrder(m){switch(m){case"ltr":return I.ReadingOrder.LeftToRight;case"rtl":return I.ReadingOrder.RightToLeft;default:return}}},f={toXml(m){if(m=g.textRotation(m)){if("vertical"===m)return 255;const _=Math.round(m);if(_>=0&&_<=90)return _;if(_<0&&_>=-90)return 90-_}},toModel(m){const _=w.validInt(m);if(void 0!==_){if(255===_)return"vertical";if(_>=0&&_<=90)return _;if(_>90&&_<=180)return 90-_}}};K.exports=class extends x{get tag(){return"alignment"}render(m,_){m.addRollback(),m.openNode("alignment");let b=!1;function v(A,D){D&&(m.addAttribute(A,D),b=!0)}v("horizontal",g.horizontal(_.horizontal)),v("vertical",g.vertical(_.vertical)),v("wrapText",!!g.wrapText(_.wrapText)&&"1"),v("shrinkToFit",!!g.shrinkToFit(_.shrinkToFit)&&"1"),v("indent",g.indent(_.indent)),v("textRotation",f.toXml(_.textRotation)),v("readingOrder",g.readingOrder(_.readingOrder)),m.closeNode(),b?m.commit():m.rollback()}parseOpen(m){const _={};let b=!1;function v(A,D,E){A&&(_[D]=E,b=!0)}v(m.attributes.horizontal,"horizontal",m.attributes.horizontal),v(m.attributes.vertical,"vertical","center"===m.attributes.vertical?"middle":m.attributes.vertical),v(m.attributes.wrapText,"wrapText",w.parseBoolean(m.attributes.wrapText)),v(m.attributes.shrinkToFit,"shrinkToFit",w.parseBoolean(m.attributes.shrinkToFit)),v(m.attributes.indent,"indent",parseInt(m.attributes.indent,10)),v(m.attributes.textRotation,"textRotation",f.toModel(m.attributes.textRotation)),v(m.attributes.readingOrder,"readingOrder","2"===m.attributes.readingOrder?"rtl":"ltr"),this.model=b?_:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../../../utils/utils"),x=k("./color-xform");class g extends I{constructor(m){super(),this.name=m,this.map={color:new x}}get tag(){return this.name}render(m,_,b){const v=_&&_.color||b||this.defaultColor;m.openNode(this.name),_&&_.style&&(m.addAttribute("style",_.style),v&&this.map.color.render(m,v)),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case this.name:{const{style:_}=m.attributes;return this.model=_?{style:_}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(m),!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):(m===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(m){return g.validStyleValues[m]}}g.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((f,m)=>(f[m]=!0,f),{}),K.exports=class extends I{constructor(){super(),this.map={top:new g("top"),left:new g("left"),bottom:new g("bottom"),right:new g("right"),diagonal:new g("diagonal")}}render(f,m){const{color:_}=m;function b(v,A){v&&!v.color&&m.color&&(v={...v,color:m.color}),A.render(f,v,_)}f.openNode("border"),m.diagonal&&m.diagonal.style&&(m.diagonal.up&&f.addAttribute("diagonalUp","1"),m.diagonal.down&&f.addAttribute("diagonalDown","1")),b(m.left,this.map.left),b(m.right,this.map.right),b(m.top,this.map.top),b(m.bottom,this.map.bottom),b(m.diagonal,this.map.diagonal),f.closeNode()}parseOpen(f){return this.parser?(this.parser.parseOpen(f),!0):"border"===f.name?(this.reset(),this.diagonalUp=w.parseBoolean(f.attributes.diagonalUp),this.diagonalDown=w.parseBoolean(f.attributes.diagonalDown),!0):(this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0))}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;if("border"===f){const m=this.model={},_=function(b,v,A){v&&(A&&Object.assign(v,A),m[b]=v)};_("left",this.map.left.model),_("right",this.map.right.model),_("top",this.map.top.model),_("bottom",this.map.bottom.model),_("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{constructor(w){super(),this.name=w||"color"}get tag(){return this.name}render(w,x){return!!x&&(w.openNode(this.name),x.argb?w.addAttribute("rgb",x.argb):void 0!==x.theme?(w.addAttribute("theme",x.theme),void 0!==x.tint&&w.addAttribute("tint",x.tint)):void 0!==x.indexed?w.addAttribute("indexed",x.indexed):w.addAttribute("auto","1"),w.closeNode(),!0)}parseOpen(w){return w.name===this.name&&(w.attributes.rgb?this.model={argb:w.attributes.rgb}:w.attributes.theme?(this.model={theme:parseInt(w.attributes.theme,10)},w.attributes.tint&&(this.model.tint=parseFloat(w.attributes.tint))):w.attributes.indexed?this.model={indexed:parseInt(w.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./alignment-xform"),x=k("./border-xform"),g=k("./fill-xform"),f=k("./font-xform"),m=k("./numfmt-xform"),_=k("./protection-xform");K.exports=class extends I{constructor(){super(),this.map={alignment:new w,border:new x,fill:new g,font:new f,numFmt:new m,protection:new _}}get tag(){return"dxf"}render(b,v){if(b.openNode(this.tag),v.font&&this.map.font.render(b,v.font),v.numFmt&&v.numFmtId){const A={id:v.numFmtId,formatCode:v.numFmt};this.map.numFmt.render(b,A)}v.fill&&this.map.fill.render(b,v.fill),v.alignment&&this.map.alignment.render(b,v.alignment),v.border&&this.map.border.render(b,v.border),v.protection&&this.map.protection.render(b,v.protection),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):b.name===this.tag?(this.reset(),!0):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./color-xform");class x extends I{constructor(){super(),this.map={color:new w}}get tag(){return"stop"}render(b,v){b.openNode("stop"),b.addAttribute("position",v.position),this.map.color.render(b,v.color),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"stop":return this.model={position:parseFloat(b.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(b),!0;default:return!1}}parseText(){}parseClose(b){return!!this.parser&&(this.parser.parseClose(b)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class g extends I{constructor(){super(),this.map={fgColor:new w("fgColor"),bgColor:new w("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(b,v){b.openNode("patternFill"),b.addAttribute("patternType",v.pattern),v.fgColor&&this.map.fgColor.render(b,v.fgColor),v.bgColor&&this.map.bgColor.render(b,v.bgColor),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):"patternFill"===b.name?(this.model={type:"pattern",pattern:b.attributes.patternType},!0):(this.parser=this.map[b.name],!!this.parser&&(this.parser.parseOpen(b),!0))}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return!!this.parser&&(this.parser.parseClose(b)||(this.parser.model&&(this.model[b]=this.parser.model),this.parser=void 0),!0)}}class f extends I{constructor(){super(),this.map={stop:new x}}get name(){return"gradient"}get tag(){return"gradientFill"}render(b,v){switch(b.openNode("gradientFill"),v.gradient){case"angle":b.addAttribute("degree",v.degree);break;case"path":b.addAttribute("type","path"),v.center.left&&(b.addAttribute("left",v.center.left),void 0===v.center.right&&b.addAttribute("right",v.center.left)),v.center.right&&b.addAttribute("right",v.center.right),v.center.top&&(b.addAttribute("top",v.center.top),void 0===v.center.bottom&&b.addAttribute("bottom",v.center.top)),v.center.bottom&&b.addAttribute("bottom",v.center.bottom)}const A=this.map.stop;v.stops.forEach(D=>{A.render(b,D)}),b.closeNode()}parseOpen(b){if(this.parser)return this.parser.parseOpen(b),!0;switch(b.name){case"gradientFill":{const v=this.model={stops:[]};return b.attributes.degree?(v.gradient="angle",v.degree=parseInt(b.attributes.degree,10)):"path"===b.attributes.type&&(v.gradient="path",v.center={left:b.attributes.left?parseFloat(b.attributes.left):0,top:b.attributes.top?parseFloat(b.attributes.top):0},b.attributes.right!==b.attributes.left&&(v.center.right=b.attributes.right?parseFloat(b.attributes.right):0),b.attributes.bottom!==b.attributes.top&&(v.center.bottom=b.attributes.bottom?parseFloat(b.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(b),!0;default:return!1}}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return!!this.parser&&(this.parser.parseClose(b)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class m extends I{constructor(){super(),this.map={patternFill:new g,gradientFill:new f}}get tag(){return"fill"}render(b,v){switch(b.addRollback(),b.openNode("fill"),v.type){case"pattern":this.map.patternFill.render(b,v);break;case"gradient":this.map.gradientFill.render(b,v);break;default:return void b.rollback()}b.closeNode(),b.commit()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):"fill"===b.name?(this.model={},!0):(this.parser=this.map[b.name],!!this.parser&&(this.parser.parseOpen(b),!0))}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return!!this.parser&&(this.parser.parseClose(b)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(b){return m.validPatternValues[b]}}m.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((_,b)=>(_[b]=!0,_),{}),m.StopXform=x,m.PatternFillXform=g,m.GradientFillXform=f,K.exports=m},{"../base-xform":32,"./color-xform":128}],131:[function(k,K,U){"use strict";const I=k("./color-xform"),w=k("../simple/boolean-xform"),x=k("../simple/integer-xform"),g=k("../simple/string-xform"),f=k("./underline-xform"),m=k("../../../utils/under-dash"),_=k("../base-xform");class b extends _{constructor(A){super(),this.options=A||b.OPTIONS,this.map={b:{prop:"bold",xform:new w({tag:"b",attr:"val"})},i:{prop:"italic",xform:new w({tag:"i",attr:"val"})},u:{prop:"underline",xform:new f},charset:{prop:"charset",xform:new x({tag:"charset",attr:"val"})},color:{prop:"color",xform:new I},condense:{prop:"condense",xform:new w({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new w({tag:"extend",attr:"val"})},family:{prop:"family",xform:new x({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new w({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new g({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new g({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new w({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new w({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new x({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new g({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(A,D){const{map:E}=this;A.openNode(this.options.tagName),m.each(this.map,(O,T)=>{E[T].xform.render(A,D[O.prop])}),A.closeNode()}parseOpen(A){return this.parser?(this.parser.parseOpen(A),!0):this.map[A.name]?(this.parser=this.map[A.name].xform,this.parser.parseOpen(A)):A.name===this.options.tagName&&(this.model={},!0)}parseText(A){this.parser&&this.parser.parseText(A)}parseClose(A){if(this.parser&&!this.parser.parseClose(A)){const D=this.map[A];return this.parser.model&&(this.model[D.prop]=this.parser.model),this.parser=void 0,!0}return A!==this.options.tagName}}b.OPTIONS={tagName:"font",fontNameTag:"name"},K.exports=b},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(k,K,U){"use strict";const I=k("../../../utils/under-dash"),w=k("../../defaultnumformats"),x=k("../base-xform"),g=function(){const m={};return I.each(w,(_,b)=>{_.f&&(m[_.f]=parseInt(b,10))}),m}();class f extends x{constructor(_,b){super(),this.id=_,this.formatCode=b}get tag(){return"numFmt"}render(_,b){_.leafNode("numFmt",{numFmtId:b.id,formatCode:b.formatCode})}parseOpen(_){return"numFmt"===_.name&&(this.model={id:parseInt(_.attributes.numFmtId,10),formatCode:_.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}f.getDefaultFmtId=function(m){return g[m]},f.getDefaultFmtCode=function(m){return w[m]&&w[m].f},K.exports=f},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(k,K,U){"use strict";const I=k("../base-xform"),w={boolean:(x,g)=>void 0===x?g:x};K.exports=class extends I{get tag(){return"protection"}render(x,g){x.addRollback(),x.openNode("protection");let f=!1;function m(_,b){void 0!==b&&(x.addAttribute(_,b),f=!0)}m("locked",w.boolean(g.locked,!0)?void 0:"0"),m("hidden",w.boolean(g.hidden,!1)?"1":void 0),x.closeNode(),f?x.commit():x.rollback()}parseOpen(x){const g={locked:"0"!==x.attributes.locked,hidden:"1"===x.attributes.hidden},f=!g.locked||g.hidden;this.model=f?g:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./alignment-xform"),x=k("./protection-xform");K.exports=class extends I{constructor(g){super(),this.xfId=!(!g||!g.xfId),this.map={alignment:new w,protection:new x}}get tag(){return"xf"}render(g,f){g.openNode("xf",{numFmtId:f.numFmtId||0,fontId:f.fontId||0,fillId:f.fillId||0,borderId:f.borderId||0}),this.xfId&&g.addAttribute("xfId",f.xfId||0),f.numFmtId&&g.addAttribute("applyNumberFormat","1"),f.fontId&&g.addAttribute("applyFont","1"),f.fillId&&g.addAttribute("applyFill","1"),f.borderId&&g.addAttribute("applyBorder","1"),f.alignment&&g.addAttribute("applyAlignment","1"),f.protection&&g.addAttribute("applyProtection","1"),f.alignment&&this.map.alignment.render(g,f.alignment),f.protection&&this.map.protection.render(g,f.protection),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"xf":return this.model={numFmtId:parseInt(g.attributes.numFmtId,10),fontId:parseInt(g.attributes.fontId,10),fillId:parseInt(g.attributes.fillId,10),borderId:parseInt(g.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(g.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(g),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(g),!0;default:return!1}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){return this.parser?(this.parser.parseClose(g)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==g}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(k,K,U){"use strict";const I=k("../../../doc/enums"),w=k("../../../utils/xml-stream"),x=k("../base-xform"),g=k("../static-xform"),f=k("../list-xform"),m=k("./font-xform"),_=k("./fill-xform"),b=k("./border-xform"),v=k("./numfmt-xform"),A=k("./style-xform"),D=k("./dxf-xform");class E extends x{constructor(T){super(),this.map={numFmts:new f({tag:"numFmts",count:!0,childXform:new v}),fonts:new f({tag:"fonts",count:!0,childXform:new m,$:{"x14ac:knownFonts":1}}),fills:new f({tag:"fills",count:!0,childXform:new _}),borders:new f({tag:"borders",count:!0,childXform:new b}),cellStyleXfs:new f({tag:"cellStyleXfs",count:!0,childXform:new A}),cellXfs:new f({tag:"cellXfs",count:!0,childXform:new A({xfId:!0})}),dxfs:new f({tag:"dxfs",always:!0,count:!0,childXform:new D}),numFmt:new v,font:new m,fill:new _,border:new b,style:new A({xfId:!0}),cellStyles:E.STATIC_XFORMS.cellStyles,tableStyles:E.STATIC_XFORMS.tableStyles,extLst:E.STATIC_XFORMS.extLst},T&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(T,z){z=z||this.model,T.openXml(w.StdDocAttributes),T.openNode("styleSheet",E.STYLESHEET_ATTRIBUTES),this.index?(z.numFmts&&z.numFmts.length&&(T.openNode("numFmts",{count:z.numFmts.length}),z.numFmts.forEach(H=>{T.writeXml(H)}),T.closeNode()),z.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),T.openNode("fonts",{count:z.fonts.length,"x14ac:knownFonts":1}),z.fonts.forEach(H=>{T.writeXml(H)}),T.closeNode(),T.openNode("fills",{count:z.fills.length}),z.fills.forEach(H=>{T.writeXml(H)}),T.closeNode(),T.openNode("borders",{count:z.borders.length}),z.borders.forEach(H=>{T.writeXml(H)}),T.closeNode(),this.map.cellStyleXfs.render(T,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),T.openNode("cellXfs",{count:z.styles.length}),z.styles.forEach(H=>{T.writeXml(H)}),T.closeNode()):(this.map.numFmts.render(T,z.numFmts),this.map.fonts.render(T,z.fonts),this.map.fills.render(T,z.fills),this.map.borders.render(T,z.borders),this.map.cellStyleXfs.render(T,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(T,z.styles)),E.STATIC_XFORMS.cellStyles.render(T),this.map.dxfs.render(T,z.dxfs),E.STATIC_XFORMS.tableStyles.render(T),E.STATIC_XFORMS.extLst.render(T),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):"styleSheet"===T.name?(this.initIndex(),!0):(this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;if("styleSheet"===T){this.model={};const z=(H,Q)=>{Q.model&&Q.model.length&&(this.model[H]=Q.model)};if(z("numFmts",this.map.numFmts),z("fonts",this.map.fonts),z("fills",this.map.fills),z("borders",this.map.borders),z("styles",this.map.cellXfs),z("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const H=this.index.numFmt;this.model.numFmts.forEach(Q=>{H[Q.id]=Q.formatCode})}return!1}return!0}addStyleModel(T,z){if(!T)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(T))return this.weakMap.get(T);const H={};if(z=z||I.ValueType.Number,T.numFmt)H.numFmtId=this._addNumFmtStr(T.numFmt);else switch(z){case I.ValueType.Number:H.numFmtId=this._addNumFmtStr("General");break;case I.ValueType.Date:H.numFmtId=this._addNumFmtStr("mm-dd-yy")}T.font&&(H.fontId=this._addFont(T.font)),T.border&&(H.borderId=this._addBorder(T.border)),T.fill&&(H.fillId=this._addFill(T.fill)),T.alignment&&(H.alignment=T.alignment),T.protection&&(H.protection=T.protection);const Q=this._addStyle(H);return this.weakMap&&this.weakMap.set(T,Q),Q}getStyleModel(T){const z=this.model.styles[T];if(!z)return null;let H=this.index.model[T];if(H)return H;if(H=this.index.model[T]={},z.numFmtId){const ae=this.index.numFmt[z.numFmtId]||v.getDefaultFmtCode(z.numFmtId);ae&&(H.numFmt=ae)}function Q(ae,ge,le){if(le||0===le){const fe=ge[le];fe&&(H[ae]=fe)}}return Q("font",this.model.fonts,z.fontId),Q("border",this.model.borders,z.borderId),Q("fill",this.model.fills,z.fillId),z.alignment&&(H.alignment=z.alignment),z.protection&&(H.protection=z.protection),H}addDxfStyle(T){return T.numFmt&&(T.numFmtId=this._addNumFmtStr(T.numFmt)),this.model.dxfs.push(T),this.model.dxfs.length-1}getDxfStyle(T){return this.model.dxfs[T]}_addStyle(T){const z=this.map.style.toXml(T);let H=this.index.style[z];return void 0===H&&(H=this.index.style[z]=this.model.styles.length,this.model.styles.push(z)),H}_addNumFmtStr(T){let z=v.getDefaultFmtId(T);if(void 0!==z||(z=this.index.numFmt[T],void 0!==z))return z;z=this.index.numFmt[T]=164+this.model.numFmts.length;const H=this.map.numFmt.toXml({id:z,formatCode:T});return this.model.numFmts.push(H),z}_addFont(T){const z=this.map.font.toXml(T);let H=this.index.font[z];return void 0===H&&(H=this.index.font[z]=this.model.fonts.length,this.model.fonts.push(z)),H}_addBorder(T){const z=this.map.border.toXml(T);let H=this.index.border[z];return void 0===H&&(H=this.index.border[z]=this.model.borders.length,this.model.borders.push(z)),H}_addFill(T){const z=this.map.fill.toXml(T);let H=this.index.fill[z];return void 0===H&&(H=this.index.fill[z]=this.model.fills.length,this.model.fills.push(z)),H}}E.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},E.STATIC_XFORMS={cellStyles:new g({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new g({tag:"dxfs",$:{count:0}}),tableStyles:new g({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new g({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},E.Mock=class extends E{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(O){return O.autodrain(),Promise.resolve()}addStyleModel(O,T){return T===I.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const O={numFmtId:v.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(O)}return this._dateStyleId}getStyleModel(){return{}}},K.exports=E},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(k,K,U){"use strict";const I=k("../base-xform");class w extends I{constructor(g){super(),this.model=g}get tag(){return"u"}render(g,f){if(!0===(f=f||this.model))g.leafNode("u");else{const m=w.Attributes[f];m&&g.leafNode("u",m)}}parseOpen(g){"u"===g.name&&(this.model=g.attributes.val||!0)}parseText(){}parseClose(){return!1}}w.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},K.exports=w},{"../base-xform":32}],137:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("./filter-column-xform");K.exports=class extends I{constructor(){super(),this.map={filterColumn:new w}}get tag(){return"autoFilter"}prepare(x){x.columns.forEach((g,f)=>{this.map.filterColumn.prepare(g,{index:f})})}render(x,g){return x.openNode(this.tag,{ref:g.autoFilterRef}),g.columns.forEach(f=>{this.map.filterColumn.render(x,f)}),x.closeNode(),!0}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;if(x.name===this.tag)return this.model={autoFilterRef:x.attributes.ref,columns:[]},!0;if(this.parser=this.map[x.name],this.parser)return this.parseOpen(x),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(x))}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(x===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+x)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"customFilter"}render(w,x){w.leafNode(this.tag,{val:x.val,operator:x.operator})}parseOpen(w){return w.name===this.tag&&(this.model={val:w.attributes.val,operator:w.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(k,K,U){"use strict";const I=k("../base-xform"),w=k("../list-xform"),x=k("./custom-filter-xform"),g=k("./filter-xform");K.exports=class extends I{constructor(){super(),this.map={customFilters:new w({tag:"customFilters",count:!1,empty:!0,childXform:new x}),filters:new w({tag:"filters",count:!1,empty:!0,childXform:new g})}}get tag(){return"filterColumn"}prepare(f,m){f.colId=m.index.toString()}render(f,m){return m.customFilters?(f.openNode(this.tag,{colId:m.colId,hiddenButton:m.filterButton?"0":"1"}),this.map.customFilters.render(f,m.customFilters),f.closeNode(),!0):(f.leafNode(this.tag,{colId:m.colId,hiddenButton:m.filterButton?"0":"1"}),!0)}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;const{attributes:m}=f;if(f.name===this.tag)return this.model={filterButton:"0"===m.hiddenButton},!0;if(this.parser=this.map[f.name],this.parser)return this.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(f))}parseText(){}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"filter"}render(w,x){w.leafNode(this.tag,{val:x.val})}parseOpen(w){return w.name===this.tag&&(this.model={val:w.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"tableColumn"}prepare(w,x){w.id=x.index+1}render(w,x){return w.leafNode(this.tag,{id:x.id.toString(),name:x.name,totalsRowLabel:x.totalsRowLabel,totalsRowFunction:x.totalsRowFunction,dxfId:x.dxfId}),!0}parseOpen(w){if(w.name===this.tag){const{attributes:x}=w;return this.model={name:x.name,totalsRowLabel:x.totalsRowLabel,totalsRowFunction:x.totalsRowFunction,dxfId:x.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(k,K,U){"use strict";const I=k("../base-xform");K.exports=class extends I{get tag(){return"tableStyleInfo"}render(w,x){return w.leafNode(this.tag,{name:x.theme?x.theme:void 0,showFirstColumn:x.showFirstColumn?"1":"0",showLastColumn:x.showLastColumn?"1":"0",showRowStripes:x.showRowStripes?"1":"0",showColumnStripes:x.showColumnStripes?"1":"0"}),!0}parseOpen(w){if(w.name===this.tag){const{attributes:x}=w;return this.model={theme:x.name?x.name:null,showFirstColumn:"1"===x.showFirstColumn,showLastColumn:"1"===x.showLastColumn,showRowStripes:"1"===x.showRowStripes,showColumnStripes:"1"===x.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(k,K,U){"use strict";const I=k("../../../utils/xml-stream"),w=k("../base-xform"),x=k("../list-xform"),g=k("./auto-filter-xform"),f=k("./table-column-xform"),m=k("./table-style-info-xform");class _ extends w{constructor(){super(),this.map={autoFilter:new g,tableColumns:new x({tag:"tableColumns",count:!0,empty:!0,childXform:new f}),tableStyleInfo:new m}}prepare(v,A){this.map.autoFilter.prepare(v),this.map.tableColumns.prepare(v.columns,A)}get tag(){return"table"}render(v,A){v.openXml(I.StdDocAttributes),v.openNode(this.tag,{..._.TABLE_ATTRIBUTES,id:A.id,name:A.name,displayName:A.displayName||A.name,ref:A.tableRef,totalsRowCount:A.totalsRow?"1":void 0,totalsRowShown:A.totalsRow?void 0:"1",headerRowCount:A.headerRow?"1":"0"}),this.map.autoFilter.render(v,A),this.map.tableColumns.render(v,A.columns),this.map.tableStyleInfo.render(v,A.style),v.closeNode()}parseOpen(v){if(this.parser)return this.parser.parseOpen(v),!0;const{name:A,attributes:D}=v;return A===this.tag?(this.reset(),this.model={name:D.name,displayName:D.displayName||D.name,tableRef:D.ref,totalsRow:"1"===D.totalsRowCount,headerRow:"1"===D.headerRowCount}):(this.parser=this.map[v.name],this.parser&&this.parser.parseOpen(v)),!0}parseText(v){this.parser&&this.parser.parseText(v)}parseClose(v){return this.parser?(this.parser.parseClose(v)||(this.parser=void 0),!0):v!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((A,D)=>{this.model.columns[D].filterButton=A.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(v,A){v.columns.forEach(D=>{void 0!==D.dxfId&&(D.style=A.styles.getDxfStyle(D.dxfId))})}}_.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},K.exports=_},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(k,K,U){(function(I,w){(function(){"use strict";const x=k("fs"),g=k("jszip"),{PassThrough:f}=k("readable-stream"),m=k("../utils/zip-stream"),_=k("../utils/stream-buf"),b=k("../utils/utils"),v=k("../utils/xml-stream"),{bufferToString:A}=k("../utils/browser-buffer-decode"),D=k("./xform/style/styles-xform"),E=k("./xform/core/core-xform"),O=k("./xform/strings/shared-strings-xform"),T=k("./xform/core/relationships-xform"),z=k("./xform/core/content-types-xform"),H=k("./xform/core/app-xform"),Q=k("./xform/book/workbook-xform"),ae=k("./xform/sheet/worksheet-xform"),ge=k("./xform/drawing/drawing-xform"),le=k("./xform/table/table-xform"),fe=k("./xform/comment/comments-xform"),be=k("./xform/comment/vml-notes-xform"),Se=k("./xml/theme1");class ve{constructor(J){this.workbook=J}readFile(J,de){var M=this;return ut(function*(){if(!(yield b.fs.exists(J)))throw new Error("File not found: "+J);const F=x.createReadStream(J);try{const P=yield M.read(F,de);return F.close(),P}catch(P){throw F.close(),P}})()}parseRels(J){return(new T).parseStream(J)}parseWorkbook(J){return(new Q).parseStream(J)}parseSharedStrings(J){return(new O).parseStream(J)}reconcile(J,de){const M=new Q,F=new ae(de),P=new ge,L=new le;M.reconcile(J);const j={media:J.media,mediaIndex:J.mediaIndex};Object.keys(J.drawings).forEach(se=>{const ue=J.drawings[se],Ne=J.drawingRels[se];Ne&&(j.rels=Ne.reduce((te,Me)=>(te[Me.Id]=Me,te),{}),(ue.anchors||[]).forEach(te=>{const Me=te.picture&&te.picture.hyperlinks;Me&&j.rels[Me.rId]&&(Me.hyperlink=j.rels[Me.rId].Target,delete Me.rId)}),P.reconcile(ue,j))});const G={styles:J.styles};Object.values(J.tables).forEach(se=>{L.reconcile(se,G)});const X={styles:J.styles,sharedStrings:J.sharedStrings,media:J.media,mediaIndex:J.mediaIndex,date1904:J.properties&&J.properties.date1904,drawings:J.drawings,comments:J.comments,tables:J.tables,vmlDrawings:J.vmlDrawings};J.worksheets.forEach(se=>{se.relationships=J.worksheetRels[se.sheetNo],F.reconcile(se,X)}),delete J.worksheetHash,delete J.worksheetRels,delete J.globalRels,delete J.sharedStrings,delete J.workbookRels,delete J.sheetDefs,delete J.styles,delete J.mediaIndex,delete J.drawings,delete J.drawingRels,delete J.vmlDrawings}_processWorksheetEntry(J,de,M,F,P){return ut(function*(){const L=new ae(F),j=yield L.parseStream(J);j.sheetNo=M,de.worksheetHash[P]=j,de.worksheets.push(j)})()}_processCommentEntry(J,de,M){return ut(function*(){const F=new fe,P=yield F.parseStream(J);de.comments[`../${M}.xml`]=P})()}_processTableEntry(J,de,M){return ut(function*(){const F=new le,P=yield F.parseStream(J);de.tables[`../tables/${M}.xml`]=P})()}_processWorksheetRelsEntry(J,de,M){return ut(function*(){const F=new T,P=yield F.parseStream(J);de.worksheetRels[M]=P})()}_processMediaEntry(J,de,M){return ut(function*(){const F=M.lastIndexOf(".");if(F>=1){const P=M.substr(F+1),L=M.substr(0,F);yield new Promise((j,G)=>{const X=new _;X.on("finish",()=>{de.mediaIndex[M]=de.media.length,de.mediaIndex[L]=de.media.length;const se={type:"image",name:L,extension:P,buffer:X.toBuffer()};de.media.push(se),j()}),J.on("error",se=>{G(se)}),J.pipe(X)})}})()}_processDrawingEntry(J,de,M){return ut(function*(){const F=new ge,P=yield F.parseStream(J);de.drawings[M]=P})()}_processDrawingRelsEntry(J,de,M){return ut(function*(){const F=new T,P=yield F.parseStream(J);de.drawingRels[M]=P})()}_processVmlDrawingEntry(J,de,M){return ut(function*(){const F=new be,P=yield F.parseStream(J);de.vmlDrawings[`../drawings/${M}.vml`]=P})()}_processThemeEntry(J,de,M){return ut(function*(){yield new Promise((F,P)=>{const L=new _;J.on("error",P),L.on("error",P),L.on("finish",()=>{de.themes[M]=L.read().toString(),F()}),J.pipe(L)})})()}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}read(J,de){var M=this;return ut(function*(){!J[Symbol.asyncIterator]&&J.pipe&&(J=J.pipe(new f));const F=[];var j,P=!1,L=!1;try{for(var X,G=un(J);P=!(X=yield G.next()).done;P=!1){const se=X.value;F.push(se)}}catch(se){L=!0,j=se}finally{try{P&&null!=G.return&&(yield G.return())}finally{if(L)throw j}}return M.load(w.concat(F),de)})()}load(J,de){var M=this;return ut(function*(){let F;F=de&&de.base64?w.from(J.toString(),"base64"):J;const P={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},L=yield g.loadAsync(F);for(const j of Object.values(L.files))if(!j.dir){let G,X=j.name;if("/"===X[0]&&(X=X.substr(1)),X.match(/xl\/media\//)||X.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))G=new f,G.write(yield j.async("nodebuffer"));else{let se;G=new f({writableObjectMode:!0,readableObjectMode:!0}),se=I.browser?A(yield j.async("nodebuffer")):yield j.async("string");const ue=16384;for(let Ne=0;Ne{x.readFile(j,G,(ue,Ne)=>{ue?se(ue):X(Ne)})}));return J.append(L,{name:P})}if(F.buffer)return J.append(F.buffer,{name:P});if(F.base64){const L=F.base64,j=L.substring(L.indexOf(",")+1);return J.append(j,{name:P,base64:!0})}}var j,G;throw new Error("Unsupported media")});return function(F){return M.apply(this,arguments)}}()))})()}addDrawings(J,de){const M=new ge,F=new T;de.worksheets.forEach(P=>{const{drawing:L}=P;if(L){M.prepare(L,{});let j=M.toXml(L);J.append(j,{name:`xl/drawings/${L.name}.xml`}),j=F.toXml(L.rels),J.append(j,{name:`xl/drawings/_rels/${L.name}.xml.rels`})}})}addTables(J,de){const M=new le;de.worksheets.forEach(F=>{const{tables:P}=F;P.forEach(L=>{M.prepare(L,{});const j=M.toXml(L);J.append(j,{name:"xl/tables/"+L.target})})})}addContentTypes(J,de){return ut(function*(){const M=(new z).toXml(de);J.append(M,{name:"[Content_Types].xml"})})()}addApp(J,de){return ut(function*(){const M=(new H).toXml(de);J.append(M,{name:"docProps/app.xml"})})()}addCore(J,de){return ut(function*(){const M=new E;J.append(M.toXml(de),{name:"docProps/core.xml"})})()}addThemes(J,de){return ut(function*(){const M=de.themes||{theme1:Se};Object.keys(M).forEach(F=>{const P=M[F],L=`xl/theme/${F}.xml`;J.append(P,{name:L})})})()}addOfficeRels(J){return ut(function*(){const de=(new T).toXml([{Id:"rId1",Type:ve.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:ve.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:ve.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);J.append(de,{name:"_rels/.rels"})})()}addWorkbookRels(J,de){return ut(function*(){let M=1;const F=[{Id:"rId"+M++,Type:ve.RelType.Styles,Target:"styles.xml"},{Id:"rId"+M++,Type:ve.RelType.Theme,Target:"theme/theme1.xml"}];de.sharedStrings.count&&F.push({Id:"rId"+M++,Type:ve.RelType.SharedStrings,Target:"sharedStrings.xml"}),de.worksheets.forEach(L=>{L.rId="rId"+M++,F.push({Id:L.rId,Type:ve.RelType.Worksheet,Target:`worksheets/sheet${L.id}.xml`})});const P=(new T).toXml(F);J.append(P,{name:"xl/_rels/workbook.xml.rels"})})()}addSharedStrings(J,de){return ut(function*(){de.sharedStrings&&de.sharedStrings.count&&J.append(de.sharedStrings.xml,{name:"xl/sharedStrings.xml"})})()}addStyles(J,de){return ut(function*(){const{xml:M}=de.styles;M&&J.append(M,{name:"xl/styles.xml"})})()}addWorkbook(J,de){return ut(function*(){const M=new Q;J.append(M.toXml(de),{name:"xl/workbook.xml"})})()}addWorksheets(J,de){return ut(function*(){const M=new ae,F=new T,P=new fe,L=new be;de.worksheets.forEach(j=>{let G=new v;M.render(G,j),J.append(G.xml,{name:`xl/worksheets/sheet${j.id}.xml`}),j.rels&&j.rels.length&&(G=new v,F.render(G,j.rels),J.append(G.xml,{name:`xl/worksheets/_rels/sheet${j.id}.xml.rels`})),j.comments.length>0&&(G=new v,P.render(G,j),J.append(G.xml,{name:`xl/comments${j.id}.xml`}),G=new v,L.render(G,j),J.append(G.xml,{name:`xl/drawings/vmlDrawing${j.id}.vml`}))})})()}_finalize(J){return new Promise((de,M)=>{J.on("finish",()=>{de(this)}),J.on("error",M),J.finalize()})}prepareModel(J,de){J.creator=J.creator||"ExcelJS",J.lastModifiedBy=J.lastModifiedBy||"ExcelJS",J.created=J.created||new Date,J.modified=J.modified||new Date,J.useSharedStrings=void 0===de.useSharedStrings||de.useSharedStrings,J.useStyles=void 0===de.useStyles||de.useStyles,J.sharedStrings=new O,J.styles=J.useStyles?new D(!0):new D.Mock;const M=new Q,F=new ae;M.prepare(J);const P={sharedStrings:J.sharedStrings,styles:J.styles,date1904:J.properties.date1904,drawingsCount:0,media:J.media};P.drawings=J.drawings=[],P.commentRefs=J.commentRefs=[];let L=0;J.tables=[],J.worksheets.forEach(j=>{j.tables.forEach(G=>{L++,G.target=`table${L}.xml`,G.id=L,J.tables.push(G)}),F.prepare(j,P)})}write(J,de){var M=this;return ut(function*(){de=de||{};const{model:F}=M.workbook,P=new m.ZipWriter(de.zip);return P.pipe(J),M.prepareModel(F,de),yield M.addContentTypes(P,F),yield M.addOfficeRels(P,F),yield M.addWorkbookRels(P,F),yield M.addWorksheets(P,F),yield M.addSharedStrings(P,F),yield M.addDrawings(P,F),yield M.addTables(P,F),yield Promise.all([M.addThemes(P,F),M.addStyles(P,F)]),yield M.addMedia(P,F),yield Promise.all([M.addApp(P,F),M.addCore(P,F)]),yield M.addWorkbook(P,F),M._finalize(P)})()}writeFile(J,de){const M=x.createWriteStream(J);return new Promise((F,P)=>{M.on("finish",()=>{F()}),M.on("error",L=>{P(L)}),this.write(M,de).then(()=>{M.end()}).catch(L=>{P(L)})})}writeBuffer(J){var de=this;return ut(function*(){const M=new _;return yield de.write(M,J),M.read()})()}}ve.RelType=k("./rel-type"),K.exports=ve}).call(this)}).call(this,k("_process"),k("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(k,K,U){"use strict";K.exports='\n '},{}],146:[function(k,K,U){(function(I){(function(){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.CsvFormatterStream=void 0;const w=k("stream"),x=k("./formatter");class g extends w.Transform{constructor(m){super({writableObjectMode:m.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=m,this.rowFormatter=new x.RowFormatter(m),this.hasWrittenBOM=!m.writeBOM}transform(m){return this.rowFormatter.rowTransform=m,this}_transform(m,_,b){let v=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(m,(A,D)=>A?(v=!0,b(A)):(D&&D.forEach(E=>{this.push(I.from(E,"utf8"))}),v=!0,b()))}catch(A){if(v)throw A;b(A)}}_flush(m){this.rowFormatter.finish((_,b)=>_?m(_):(b&&b.forEach(v=>{this.push(I.from(v,"utf8"))}),m()))}}U.CsvFormatterStream=g}).call(this)}).call(this,k("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.FormatterOptions=void 0,U.FormatterOptions=class{constructor(){let I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var w;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,I||{}),void 0===I?.quoteHeaders&&(this.quoteHeaders=this.quoteColumns),!0===I?.quote?this.quote='"':!1===I?.quote&&(this.quote=""),"string"!=typeof I?.escape&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(w=I.writeHeaders)||void 0===w||w),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(k,K,U){"use strict";var I=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(U,"__esModule",{value:!0}),U.FieldFormatter=void 0;const w=I(k("lodash.isboolean")),x=I(k("lodash.isnil")),g=I(k("lodash.escaperegexp"));U.FieldFormatter=class{constructor(f){this._headers=null,this.formatterOptions=f,null!==f.headers&&(this.headers=f.headers),this.REPLACE_REGEXP=new RegExp(f.quote,"g");const m=`[${f.delimiter}${g.default(f.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(m)}set headers(f){this._headers=f}shouldQuote(f,m){const _=m?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return w.default(_)?_:Array.isArray(_)?_[f]:null!==this._headers&&_[this._headers[f]]}format(f,m,_){const b=(""+(x.default(f)?"":f)).replace(/\0/g,""),{formatterOptions:v}=this;return""!==v.quote&&-1!==b.indexOf(v.quote)?this.quoteField(b.replace(this.REPLACE_REGEXP,v.escapedQuote)):-1!==b.search(this.ESCAPE_REGEXP)||this.shouldQuote(m,_)?this.quoteField(b):b}quoteField(f){const{quote:m}=this.formatterOptions;return`${m}${f}${m}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(k,K,U){"use strict";var I=function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(U,"__esModule",{value:!0}),U.RowFormatter=void 0;const w=I(k("lodash.isfunction")),x=I(k("lodash.isequal")),g=k("./FieldFormatter"),f=k("../types");class m{constructor(b){this.rowCount=0,this.formatterOptions=b,this.fieldFormatter=new g.FieldFormatter(b),this.headers=b.headers,this.shouldWriteHeaders=b.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),b.transform&&(this.rowTransform=b.transform)}static isRowHashArray(b){return!!Array.isArray(b)&&Array.isArray(b[0])&&2===b[0].length}static isRowArray(b){return Array.isArray(b)&&!this.isRowHashArray(b)}static gatherHeaders(b){return m.isRowHashArray(b)?b.map(v=>v[0]):Array.isArray(b)?b:Object.keys(b)}static createTransform(b){return f.isSyncTransform(b)?(v,A)=>{let D=null;try{D=b(v)}catch(E){return A(E)}return A(null,D)}:(v,A)=>{b(v,A)}}set rowTransform(b){if(!w.default(b))throw new TypeError("The transform should be a function");this._rowTransform=m.createTransform(b)}format(b,v){this.callTransformer(b,(A,D)=>{if(A)return v(A);if(!b)return v(null);const E=[];if(D){const{shouldFormatColumns:O,headers:T}=this.checkHeaders(D);if(this.shouldWriteHeaders&&T&&!this.hasWrittenHeaders&&(E.push(this.formatColumns(T,!0)),this.hasWrittenHeaders=!0),O){const z=this.gatherColumns(D);E.push(this.formatColumns(z,!1))}}return v(null,E)})}finish(b){const v=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return b(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));v.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&v.push(this.formatterOptions.rowDelimiter),b(null,v)}checkHeaders(b){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const v=m.gatherHeaders(b);return this.headers=v,this.fieldFormatter.headers=v,this.shouldWriteHeaders?{shouldFormatColumns:!x.default(v,b),headers:v}:{shouldFormatColumns:!0,headers:null}}gatherColumns(b){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(b)?m.isRowHashArray(b)?this.headers.map((v,A)=>{const D=b[A];return D?D[1]:""}):m.isRowArray(b)&&!this.shouldWriteHeaders?b:this.headers.map((v,A)=>b[A]):this.headers.map(v=>b[v])}callTransformer(b,v){return this._rowTransform?this._rowTransform(b,v):v(null,b)}formatColumns(b,v){const A=b.map((E,O)=>this.fieldFormatter.format(E,O,v)).join(this.formatterOptions.delimiter),{rowCount:D}=this;return this.rowCount+=1,D?[this.formatterOptions.rowDelimiter,A].join(""):A}}U.RowFormatter=m},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.FieldFormatter=U.RowFormatter=void 0;var I=k("./RowFormatter");Object.defineProperty(U,"RowFormatter",{enumerable:!0,get:function(){return I.RowFormatter}});var w=k("./FieldFormatter");Object.defineProperty(U,"FieldFormatter",{enumerable:!0,get:function(){return w.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(k,K,U){(function(I){(function(){"use strict";var w=Object.create?function(O,T,z,H){void 0===H&&(H=z),Object.defineProperty(O,H,{enumerable:!0,get:function(){return T[z]}})}:function(O,T,z,H){void 0===H&&(H=z),O[H]=T[z]},x=Object.create?function(O,T){Object.defineProperty(O,"default",{enumerable:!0,value:T})}:function(O,T){O.default=T},g=function(O){if(O&&O.__esModule)return O;var T={};if(null!=O)for(var z in O)"default"!==z&&Object.prototype.hasOwnProperty.call(O,z)&&w(T,O,z);return x(T,O),T},f=function(O,T){for(var z in O)"default"===z||Object.prototype.hasOwnProperty.call(T,z)||w(T,O,z)};Object.defineProperty(U,"__esModule",{value:!0}),U.writeToPath=U.writeToString=U.writeToBuffer=U.writeToStream=U.write=U.format=U.FormatterOptions=U.CsvFormatterStream=void 0;const m=k("util"),_=k("stream"),b=g(k("fs")),v=k("./FormatterOptions"),A=k("./CsvFormatterStream");f(k("./types"),U);var D=k("./CsvFormatterStream");Object.defineProperty(U,"CsvFormatterStream",{enumerable:!0,get:function(){return D.CsvFormatterStream}});var E=k("./FormatterOptions");Object.defineProperty(U,"FormatterOptions",{enumerable:!0,get:function(){return E.FormatterOptions}}),U.format=O=>new A.CsvFormatterStream(new v.FormatterOptions(O)),U.write=(O,T)=>{const z=U.format(T),H=m.promisify((Q,ae)=>{z.write(Q,void 0,ae)});return O.reduce((Q,ae)=>Q.then(()=>H(ae)),Promise.resolve()).then(()=>z.end()).catch(Q=>{z.emit("error",Q)}),z},U.writeToStream=(O,T,z)=>U.write(T,z).pipe(O),U.writeToBuffer=function(O){let T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const z=[],H=new _.Writable({write(Q,ae,ge){z.push(Q),ge()}});return new Promise((Q,ae)=>{H.on("error",ae).on("finish",()=>Q(I.concat(z))),U.write(O,T).pipe(H)})},U.writeToString=(O,T)=>U.writeToBuffer(O,T).then(z=>z.toString()),U.writeToPath=(O,T,z)=>{const H=b.createWriteStream(O,{encoding:"utf8"});return U.write(T,z).pipe(H)}}).call(this)}).call(this,k("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.isSyncTransform=void 0,U.isSyncTransform=I=>1===I.length},{}],153:[function(k,K,U){(function(I){(function(){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.CsvParserStream=void 0;const w=k("string_decoder"),x=k("stream"),g=k("./transforms"),f=k("./parser");class m extends x.Transform{constructor(b){super({objectMode:b.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=b,this.parser=new f.Parser(b),this.headerTransformer=new g.HeaderTransformer(b),this.decoder=new w.StringDecoder(b.encoding),this.rowTransformerValidator=new g.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(b){return this.rowTransformerValidator.rowTransform=b,this}validate(b){return this.rowTransformerValidator.rowValidator=b,this}emit(b){if("end"===b)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var v=arguments.length,A=new Array(v>1?v-1:0),D=1;D{const O=H=>H?v(H):E%100!=0?D(E+1):void I(()=>D(E+1));if(this.checkAndEmitHeaders(),E>=A||this.hasHitRowLimit)return v();if(this.parsedLineCount+=1,this.shouldSkipLine)return O();const T=b[E];this.rowCount+=1,this.parsedRowCount+=1;const z=this.rowCount;return this.transformRow(T,(H,Q)=>{if(H)return this.rowCount-=1,O(H);if(!Q)return O(new Error("expected transform result"));if(Q.isValid){if(Q.row)return this.pushRow(Q.row,O)}else this.emit("data-invalid",Q.row,z,Q.reason);return O()})};D(0)}transformRow(b,v){try{this.headerTransformer.transform(b,(A,D)=>A?v(A):D?D.isValid?D.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(D.row,v):this.skipRow(v):(this.rowCount-=1,this.parsedRowCount-=1,v(null,{row:null,isValid:!0})):this.shouldEmitRows?v(null,{isValid:!1,row:b}):this.skipRow(v):v(new Error("Expected result from header transform")))}catch(A){v(A)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(b){return this.rowCount-=1,b(null,{row:null,isValid:!0})}pushRow(b,v){try{this.parserOptions.objectMode?this.push(b):this.push(JSON.stringify(b)),v()}catch(A){v(A)}}static wrapDoneCallback(b){let v=!1;return function(A){if(A){if(v)throw A;return v=!0,void b(A)}for(var D=arguments.length,E=new Array(D>1?D-1:0),O=1;O1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=w.default(this.delimiter),this.escapeChar=null!==(f=this.escape)&&void 0!==f?f:this.quote,this.supportsComments=!x.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(k,K,U){"use strict";var I=Object.create?function(D,E,O,T){void 0===T&&(T=O),Object.defineProperty(D,T,{enumerable:!0,get:function(){return E[O]}})}:function(D,E,O,T){void 0===T&&(T=O),D[T]=E[O]},w=Object.create?function(D,E){Object.defineProperty(D,"default",{enumerable:!0,value:E})}:function(D,E){D.default=E},x=function(D){if(D&&D.__esModule)return D;var E={};if(null!=D)for(var O in D)"default"!==O&&Object.prototype.hasOwnProperty.call(D,O)&&I(E,D,O);return w(E,D),E},g=function(D,E){for(var O in D)"default"===O||Object.prototype.hasOwnProperty.call(E,O)||I(E,D,O)};Object.defineProperty(U,"__esModule",{value:!0}),U.parseString=U.parseFile=U.parseStream=U.parse=U.ParserOptions=U.CsvParserStream=void 0;const f=x(k("fs")),m=k("stream"),_=k("./ParserOptions"),b=k("./CsvParserStream");g(k("./types"),U);var v=k("./CsvParserStream");Object.defineProperty(U,"CsvParserStream",{enumerable:!0,get:function(){return v.CsvParserStream}});var A=k("./ParserOptions");Object.defineProperty(U,"ParserOptions",{enumerable:!0,get:function(){return A.ParserOptions}}),U.parse=D=>new b.CsvParserStream(new _.ParserOptions(D)),U.parseStream=(D,E)=>D.pipe(new b.CsvParserStream(new _.ParserOptions(E))),U.parseFile=function(D){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.createReadStream(D).pipe(new b.CsvParserStream(new _.ParserOptions(E)))},U.parseString=(D,E)=>{const O=new m.Readable;return O.push(D),O.push(null),O.pipe(new b.CsvParserStream(new _.ParserOptions(E)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Parser=void 0;const I=k("./Scanner"),w=k("./RowParser"),x=k("./Token");class g{constructor(m){this.parserOptions=m,this.rowParser=new w.RowParser(this.parserOptions)}static removeBOM(m){return m&&65279===m.charCodeAt(0)?m.slice(1):m}parse(m,_){const b=new I.Scanner({line:g.removeBOM(m),parserOptions:this.parserOptions,hasMoreData:_});return this.parserOptions.supportsComments?this.parseWithComments(b):this.parseWithoutComments(b)}parseWithoutComments(m){const _=[];let b=!0;for(;b;)b=this.parseRow(m,_);return{line:m.line,rows:_}}parseWithComments(m){const{parserOptions:_}=this,b=[];for(let v=m.nextCharacterToken;null!==v;v=m.nextCharacterToken)if(x.Token.isTokenComment(v,_)){if(null===m.advancePastLine())return{line:m.lineFromCursor,rows:b};if(!m.hasMoreCharacters)return{line:m.lineFromCursor,rows:b};m.truncateToCursor()}else if(!this.parseRow(m,b))break;return{line:m.line,rows:b}}parseRow(m,_){if(!m.nextNonSpaceToken)return!1;const b=this.rowParser.parse(m);return null!==b&&(this.parserOptions.ignoreEmpty&&w.RowParser.isEmptyRow(b)||_.push(b),!0)}}U.Parser=g},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.RowParser=void 0;const I=k("./column"),w=k("./Token");U.RowParser=class{constructor(x){this.parserOptions=x,this.columnParser=new I.ColumnParser(x)}static isEmptyRow(x){return""===x.join("").replace(/\s+/g,"")}parse(x){const{parserOptions:g}=this,{hasMoreData:f}=x,m=x,_=[];let b=this.getStartToken(m,_);for(;b;){if(w.Token.isTokenRowDelimiter(b))return m.advancePastToken(b),!m.hasMoreCharacters&&w.Token.isTokenCarriageReturn(b,g)&&f?null:(m.truncateToCursor(),_);if(!this.shouldSkipColumnParse(m,b,_)){const v=this.columnParser.parse(m);if(null===v)return null;_.push(v)}b=m.nextNonSpaceToken}return f?null:(m.truncateToCursor(),_)}getStartToken(x,g){const f=x.nextNonSpaceToken;return null!==f&&w.Token.isTokenDelimiter(f,this.parserOptions)?(g.push(""),x.nextNonSpaceToken):f}shouldSkipColumnParse(x,g,f){const{parserOptions:m}=this;if(w.Token.isTokenDelimiter(g,m)){x.advancePastToken(g);const _=x.nextCharacterToken;if(!x.hasMoreCharacters||null!==_&&w.Token.isTokenRowDelimiter(_)||null!==_&&w.Token.isTokenDelimiter(_,m))return f.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Scanner=void 0;const I=k("./Token"),w=/((?:\r\n)|\n|\r)/;U.Scanner=class{constructor(x){this.cursor=0,this.line=x.line,this.lineLength=this.line.length,this.parserOptions=x.parserOptions,this.hasMoreData=x.hasMoreData,this.cursor=x.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:x}=this,g=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===x.search(g))return null;const f=g.exec(x);if(null==f)return null;const m=f[1],_=this.cursor+(f.index||0);return new I.Token({token:m,startCursor:_,endCursor:_+m.length-1})}get nextCharacterToken(){const{cursor:x,lineLength:g}=this;return g<=x?null:new I.Token({token:this.line[x],startCursor:x,endCursor:x})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const x=w.exec(this.lineFromCursor);return x?(this.cursor+=(x.index||0)+x[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(x){return this.cursor=x,this}advanceToToken(x){return this.cursor=x.startCursor,this}advancePastToken(x){return this.cursor=x.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Token=void 0,U.Token=class{constructor(I){this.token=I.token,this.startCursor=I.startCursor,this.endCursor=I.endCursor}static isTokenRowDelimiter(I){const w=I.token;return"\r"===w||"\n"===w||"\r\n"===w}static isTokenCarriageReturn(I,w){return I.token===w.carriageReturn}static isTokenComment(I,w){return w.supportsComments&&!!I&&I.token===w.comment}static isTokenEscapeCharacter(I,w){return I.token===w.escapeChar}static isTokenQuote(I,w){return I.token===w.quote}static isTokenDelimiter(I,w){return I.token===w.delimiter}}},{}],160:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.ColumnFormatter=void 0,U.ColumnFormatter=class{constructor(I){I.trim?this.format=w=>w.trim():I.ltrim?this.format=w=>w.trimLeft():I.rtrim?this.format=w=>w.trimRight():this.format=w=>w}}},{}],161:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.ColumnParser=void 0;const I=k("./NonQuotedColumnParser"),w=k("./QuotedColumnParser"),x=k("../Token");U.ColumnParser=class{constructor(g){this.parserOptions=g,this.quotedColumnParser=new w.QuotedColumnParser(g),this.nonQuotedColumnParser=new I.NonQuotedColumnParser(g)}parse(g){const{nextNonSpaceToken:f}=g;return null!==f&&x.Token.isTokenQuote(f,this.parserOptions)?(g.advanceToToken(f),this.quotedColumnParser.parse(g)):this.nonQuotedColumnParser.parse(g)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.NonQuotedColumnParser=void 0;const I=k("./ColumnFormatter"),w=k("../Token");U.NonQuotedColumnParser=class{constructor(x){this.parserOptions=x,this.columnFormatter=new I.ColumnFormatter(x)}parse(x){if(!x.hasMoreCharacters)return null;const{parserOptions:g}=this,f=[];let m=x.nextCharacterToken;for(;m&&!w.Token.isTokenDelimiter(m,g)&&!w.Token.isTokenRowDelimiter(m);m=x.nextCharacterToken)f.push(m.token),x.advancePastToken(m);return this.columnFormatter.format(f.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.QuotedColumnParser=void 0;const I=k("./ColumnFormatter"),w=k("../Token");U.QuotedColumnParser=class{constructor(x){this.parserOptions=x,this.columnFormatter=new I.ColumnFormatter(x)}parse(x){if(!x.hasMoreCharacters)return null;const g=x.cursor,{foundClosingQuote:f,col:m}=this.gatherDataBetweenQuotes(x);if(!f){if(x.advanceTo(g),!x.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${x.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(x),m}gatherDataBetweenQuotes(x){const{parserOptions:g}=this;let f=!1,m=!1;const _=[];let b=x.nextCharacterToken;for(;!m&&null!==b;b=x.nextCharacterToken){const v=w.Token.isTokenQuote(b,g);if(!f&&v)f=!0;else if(f)if(w.Token.isTokenEscapeCharacter(b,g)){x.advancePastToken(b);const A=x.nextCharacterToken;null!==A&&(w.Token.isTokenQuote(A,g)||w.Token.isTokenEscapeCharacter(A,g))?(_.push(A.token),b=A):v?m=!0:_.push(b.token)}else v?m=!0:_.push(b.token);x.advancePastToken(b)}return{col:this.columnFormatter.format(_.join("")),foundClosingQuote:m}}checkForMalformedColumn(x){const{parserOptions:g}=this,{nextNonSpaceToken:f}=x;if(f){const m=w.Token.isTokenDelimiter(f,g),_=w.Token.isTokenRowDelimiter(f);if(!m&&!_){const b=x.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${g.escapedDelimiter}' OR new line got: '${f.token}'. at '${b}`)}x.advanceToToken(f)}else x.hasMoreData||x.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.ColumnFormatter=U.QuotedColumnParser=U.NonQuotedColumnParser=U.ColumnParser=void 0;var I=k("./ColumnParser");Object.defineProperty(U,"ColumnParser",{enumerable:!0,get:function(){return I.ColumnParser}});var w=k("./NonQuotedColumnParser");Object.defineProperty(U,"NonQuotedColumnParser",{enumerable:!0,get:function(){return w.NonQuotedColumnParser}});var x=k("./QuotedColumnParser");Object.defineProperty(U,"QuotedColumnParser",{enumerable:!0,get:function(){return x.QuotedColumnParser}});var g=k("./ColumnFormatter");Object.defineProperty(U,"ColumnFormatter",{enumerable:!0,get:function(){return g.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.QuotedColumnParser=U.NonQuotedColumnParser=U.ColumnParser=U.Token=U.Scanner=U.RowParser=U.Parser=void 0;var I=k("./Parser");Object.defineProperty(U,"Parser",{enumerable:!0,get:function(){return I.Parser}});var w=k("./RowParser");Object.defineProperty(U,"RowParser",{enumerable:!0,get:function(){return w.RowParser}});var x=k("./Scanner");Object.defineProperty(U,"Scanner",{enumerable:!0,get:function(){return x.Scanner}});var g=k("./Token");Object.defineProperty(U,"Token",{enumerable:!0,get:function(){return g.Token}});var f=k("./column");Object.defineProperty(U,"ColumnParser",{enumerable:!0,get:function(){return f.ColumnParser}}),Object.defineProperty(U,"NonQuotedColumnParser",{enumerable:!0,get:function(){return f.NonQuotedColumnParser}}),Object.defineProperty(U,"QuotedColumnParser",{enumerable:!0,get:function(){return f.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(k,K,U){"use strict";var I=function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(U,"__esModule",{value:!0}),U.HeaderTransformer=void 0;const w=I(k("lodash.isundefined")),x=I(k("lodash.isfunction")),g=I(k("lodash.uniq")),f=I(k("lodash.groupby"));U.HeaderTransformer=class{constructor(m){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=m,!0===m.headers?this.shouldUseFirstRow=!0:Array.isArray(m.headers)?this.setHeaders(m.headers):x.default(m.headers)&&(this.headersTransform=m.headers)}transform(m,_){return this.shouldMapRow(m)?_(null,this.processRow(m)):_(null,{row:null,isValid:!0})}shouldMapRow(m){const{parserOptions:_}=this;if(!this.headersTransform&&_.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(m)){if(this.headersTransform)this.setHeaders(this.headersTransform(m));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(m)}return!1}return!0}processRow(m){if(!this.headers)return{row:m,isValid:!0};const{parserOptions:_}=this;if(!_.discardUnmappedColumns&&m.length>this.headersLength){if(!_.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${m.length}`);return{row:m,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${m.length}`}}return _.strictColumnHandling&&m.length!!v);if(g.default(b).length!==b.length){const v=f.default(b),A=Object.keys(v).filter(D=>v[D].length>1);throw new Error("Duplicate headers found "+JSON.stringify(A))}this.headers=m,this.receivedHeaders=!0,this.headersLength=(null===(_=this.headers)||void 0===_?void 0:_.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(k,K,U){"use strict";var I=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(U,"__esModule",{value:!0}),U.RowTransformerValidator=void 0;const w=I(k("lodash.isfunction")),x=k("../types");class g{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(m){return x.isSyncTransform(m)?(_,b)=>{let v=null;try{v=m(_)}catch(A){return b(A)}return b(null,v)}:m}static createValidator(m){return x.isSyncValidate(m)?(_,b)=>{b(null,{row:_,isValid:m(_)})}:(_,b)=>{m(_,(v,A,D)=>v?b(v):b(null,A?{row:_,isValid:A,reason:D}:{row:_,isValid:!1,reason:D}))}}set rowTransform(m){if(!w.default(m))throw new TypeError("The transform should be a function");this._rowTransform=g.createTransform(m)}set rowValidator(m){if(!w.default(m))throw new TypeError("The validate should be a function");this._rowValidator=g.createValidator(m)}transformAndValidate(m,_){return this.callTransformer(m,(b,v)=>b?_(b):v?this.callValidator(v,(A,D)=>A?_(A):D&&!D.isValid?_(null,{row:v,isValid:!1,reason:D.reason}):_(null,{row:v,isValid:!0})):_(null,{row:null,isValid:!0}))}callTransformer(m,_){return this._rowTransform?this._rowTransform(m,_):_(null,m)}callValidator(m,_){return this._rowValidator?this._rowValidator(m,_):_(null,{row:m,isValid:!0})}}U.RowTransformerValidator=g},{"../types":169,"lodash.isfunction":446}],168:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.HeaderTransformer=U.RowTransformerValidator=void 0;var I=k("./RowTransformerValidator");Object.defineProperty(U,"RowTransformerValidator",{enumerable:!0,get:function(){return I.RowTransformerValidator}});var w=k("./HeaderTransformer");Object.defineProperty(U,"HeaderTransformer",{enumerable:!0,get:function(){return w.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(k,K,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.isSyncValidate=U.isSyncTransform=void 0,U.isSyncTransform=I=>1===I.length,U.isSyncValidate=I=>1===I.length},{}],170:[function(k,K,U){"use strict";const I=U;I.bignum=k("bn.js"),I.define=k("./asn1/api").define,I.base=k("./asn1/base"),I.constants=k("./asn1/constants"),I.decoders=k("./asn1/decoders"),I.encoders=k("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(k,K,U){"use strict";const I=k("./encoders"),w=k("./decoders"),x=k("inherits");function g(f,m){this.name=f,this.body=m,this.decoders={},this.encoders={}}U.define=function(f,m){return new g(f,m)},g.prototype._createNamed=function(f){const m=this.name;function _(b){this._initNamed(b,m)}return x(_,f),_.prototype._initNamed=function(b,v){f.call(this,b,v)},new _(this)},g.prototype._getDecoder=function(f){return f=f||"der",this.decoders.hasOwnProperty(f)||(this.decoders[f]=this._createNamed(w[f])),this.decoders[f]},g.prototype.decode=function(f,m,_){return this._getDecoder(m).decode(f,_)},g.prototype._getEncoder=function(f){return f=f||"der",this.encoders.hasOwnProperty(f)||(this.encoders[f]=this._createNamed(I[f])),this.encoders[f]},g.prototype.encode=function(f,m,_){return this._getEncoder(m).encode(f,_)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(k,K,U){"use strict";const I=k("inherits"),w=k("../base/reporter").Reporter,x=k("safer-buffer").Buffer;function g(m,_){w.call(this,_),x.isBuffer(m)?(this.base=m,this.offset=0,this.length=m.length):this.error("Input not Buffer")}function f(m,_){if(Array.isArray(m))this.length=0,this.value=m.map(function(b){return f.isEncoderBuffer(b)||(b=new f(b,_)),this.length+=b.length,b},this);else if("number"==typeof m){if(!(0<=m&&m<=255))return _.error("non-byte EncoderBuffer value");this.value=m,this.length=1}else if("string"==typeof m)this.value=m,this.length=x.byteLength(m);else{if(!x.isBuffer(m))return _.error("Unsupported type: "+typeof m);this.value=m,this.length=m.length}}I(g,w),U.DecoderBuffer=g,g.isDecoderBuffer=function(m){return m instanceof g||"object"==typeof m&&x.isBuffer(m.base)&&"DecoderBuffer"===m.constructor.name&&"number"==typeof m.offset&&"number"==typeof m.length&&"function"==typeof m.save&&"function"==typeof m.restore&&"function"==typeof m.isEmpty&&"function"==typeof m.readUInt8&&"function"==typeof m.skip&&"function"==typeof m.raw},g.prototype.save=function(){return{offset:this.offset,reporter:w.prototype.save.call(this)}},g.prototype.restore=function(m){const _=new g(this.base);return _.offset=m.offset,_.length=this.offset,this.offset=m.offset,w.prototype.restore.call(this,m.reporter),_},g.prototype.isEmpty=function(){return this.offset===this.length},g.prototype.readUInt8=function(m){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(m||"DecoderBuffer overrun")},g.prototype.skip=function(m,_){if(!(this.offset+m<=this.length))return this.error(_||"DecoderBuffer overrun");const b=new g(this.base);return b._reporterState=this._reporterState,b.offset=this.offset,b.length=this.offset+m,this.offset+=m,b},g.prototype.raw=function(m){return this.base.slice(m?m.offset:this.offset,this.length)},U.EncoderBuffer=f,f.isEncoderBuffer=function(m){return m instanceof f||"object"==typeof m&&"EncoderBuffer"===m.constructor.name&&"number"==typeof m.length&&"function"==typeof m.join},f.prototype.join=function(m,_){return m||(m=x.alloc(this.length)),_||(_=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(b){b.join(m,_),_+=b.length}):("number"==typeof this.value?m[_]=this.value:"string"==typeof this.value?m.write(this.value,_):x.isBuffer(this.value)&&this.value.copy(m,_),_+=this.length)),m}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(k,K,U){"use strict";const I=U;I.Reporter=k("./reporter").Reporter,I.DecoderBuffer=k("./buffer").DecoderBuffer,I.EncoderBuffer=k("./buffer").EncoderBuffer,I.Node=k("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(k,K,U){"use strict";const I=k("../base/reporter").Reporter,w=k("../base/buffer").EncoderBuffer,x=k("../base/buffer").DecoderBuffer,g=k("minimalistic-assert"),f=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],m=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function _(v,A,D){const E={};this._baseState=E,E.name=D,E.enc=v,E.parent=A||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}K.exports=_;const b=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];_.prototype.clone=function(){const v=this._baseState,A={};b.forEach(function(E){A[E]=v[E]});const D=new this.constructor(A.parent);return D._baseState=A,D},_.prototype._wrap=function(){const v=this._baseState;m.forEach(function(A){this[A]=function(){const D=new this.constructor(this);return v.children.push(D),D[A].apply(D,arguments)}},this)},_.prototype._init=function(v){const A=this._baseState;g(null===A.parent),v.call(this),A.children=A.children.filter(function(D){return D._baseState.parent===this},this),g.equal(A.children.length,1,"Root node can have only one child")},_.prototype._useArgs=function(v){const A=this._baseState,D=v.filter(function(E){return E instanceof this.constructor},this);v=v.filter(function(E){return!(E instanceof this.constructor)},this),0!==D.length&&(g(null===A.children),A.children=D,D.forEach(function(E){E._baseState.parent=this},this)),0!==v.length&&(g(null===A.args),A.args=v,A.reverseArgs=v.map(function(E){if("object"!=typeof E||E.constructor!==Object)return E;const O={};return Object.keys(E).forEach(function(T){T==(0|T)&&(T|=0);const z=E[T];O[z]=T}),O}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(v){_.prototype[v]=function(){const A=this._baseState;throw new Error(v+" not implemented for encoding: "+A.enc)}}),f.forEach(function(v){_.prototype[v]=function(){const A=this._baseState,D=Array.prototype.slice.call(arguments);return g(null===A.tag),A.tag=v,this._useArgs(D),this}}),_.prototype.use=function(v){g(v);const A=this._baseState;return g(null===A.use),A.use=v,this},_.prototype.optional=function(){return this._baseState.optional=!0,this},_.prototype.def=function(v){const A=this._baseState;return g(null===A.default),A.default=v,A.optional=!0,this},_.prototype.explicit=function(v){const A=this._baseState;return g(null===A.explicit&&null===A.implicit),A.explicit=v,this},_.prototype.implicit=function(v){const A=this._baseState;return g(null===A.explicit&&null===A.implicit),A.implicit=v,this},_.prototype.obj=function(){const v=this._baseState,A=Array.prototype.slice.call(arguments);return v.obj=!0,0!==A.length&&this._useArgs(A),this},_.prototype.key=function(v){const A=this._baseState;return g(null===A.key),A.key=v,this},_.prototype.any=function(){return this._baseState.any=!0,this},_.prototype.choice=function(v){const A=this._baseState;return g(null===A.choice),A.choice=v,this._useArgs(Object.keys(v).map(function(D){return v[D]})),this},_.prototype.contains=function(v){const A=this._baseState;return g(null===A.use),A.contains=v,this},_.prototype._decode=function(v,A){const D=this._baseState;if(null===D.parent)return v.wrapResult(D.children[0]._decode(v,A));let E,O=D.default,T=!0,z=null;if(null!==D.key&&(z=v.enterKey(D.key)),D.optional){let H=null;if(null!==D.explicit?H=D.explicit:null!==D.implicit?H=D.implicit:null!==D.tag&&(H=D.tag),null!==H||D.any){if(T=this._peekTag(v,H,D.any),v.isError(T))return T}else{const Q=v.save();try{null===D.choice?this._decodeGeneric(D.tag,v,A):this._decodeChoice(v,A),T=!0}catch{T=!1}v.restore(Q)}}if(D.obj&&T&&(E=v.enterObject()),T){if(null!==D.explicit){const Q=this._decodeTag(v,D.explicit);if(v.isError(Q))return Q;v=Q}const H=v.offset;if(null===D.use&&null===D.choice){let Q;D.any&&(Q=v.save());const ae=this._decodeTag(v,null!==D.implicit?D.implicit:D.tag,D.any);if(v.isError(ae))return ae;D.any?O=v.raw(Q):v=ae}if(A&&A.track&&null!==D.tag&&A.track(v.path(),H,v.length,"tagged"),A&&A.track&&null!==D.tag&&A.track(v.path(),v.offset,v.length,"content"),D.any||(O=null===D.choice?this._decodeGeneric(D.tag,v,A):this._decodeChoice(v,A)),v.isError(O))return O;if(D.any||null!==D.choice||null===D.children||D.children.forEach(function(Q){Q._decode(v,A)}),D.contains&&("octstr"===D.tag||"bitstr"===D.tag)){const Q=new x(O);O=this._getUse(D.contains,v._reporterState.obj)._decode(Q,A)}}return D.obj&&T&&(O=v.leaveObject(E)),null===D.key||null===O&&!0!==T?null!==z&&v.exitKey(z):v.leaveKey(z,D.key,O),O},_.prototype._decodeGeneric=function(v,A,D){const E=this._baseState;return"seq"===v||"set"===v?null:"seqof"===v||"setof"===v?this._decodeList(A,v,E.args[0],D):/str$/.test(v)?this._decodeStr(A,v,D):"objid"===v&&E.args?this._decodeObjid(A,E.args[0],E.args[1],D):"objid"===v?this._decodeObjid(A,null,null,D):"gentime"===v||"utctime"===v?this._decodeTime(A,v,D):"null_"===v?this._decodeNull(A,D):"bool"===v?this._decodeBool(A,D):"objDesc"===v?this._decodeStr(A,v,D):"int"===v||"enum"===v?this._decodeInt(A,E.args&&E.args[0],D):null!==E.use?this._getUse(E.use,A._reporterState.obj)._decode(A,D):A.error("unknown tag: "+v)},_.prototype._getUse=function(v,A){const D=this._baseState;return D.useDecoder=this._use(v,A),g(null===D.useDecoder._baseState.parent),D.useDecoder=D.useDecoder._baseState.children[0],D.implicit!==D.useDecoder._baseState.implicit&&(D.useDecoder=D.useDecoder.clone(),D.useDecoder._baseState.implicit=D.implicit),D.useDecoder},_.prototype._decodeChoice=function(v,A){const D=this._baseState;let E=null,O=!1;return Object.keys(D.choice).some(function(T){const z=v.save(),H=D.choice[T];try{const Q=H._decode(v,A);if(v.isError(Q))return!1;E={type:T,value:Q},O=!0}catch{return v.restore(z),!1}return!0},this),O?E:v.error("Choice not matched")},_.prototype._createEncoderBuffer=function(v){return new w(v,this.reporter)},_.prototype._encode=function(v,A,D){const E=this._baseState;if(null!==E.default&&E.default===v)return;const O=this._encodeValue(v,A,D);return void 0===O||this._skipDefault(O,A,D)?void 0:O},_.prototype._encodeValue=function(v,A,D){const E=this._baseState;if(null===E.parent)return E.children[0]._encode(v,A||new I);let O=null;if(this.reporter=A,E.optional&&void 0===v){if(null===E.default)return;v=E.default}let T=null,z=!1;if(E.any)O=this._createEncoderBuffer(v);else if(E.choice)O=this._encodeChoice(v,A);else if(E.contains)T=this._getUse(E.contains,D)._encode(v,A),z=!0;else if(E.children)T=E.children.map(function(H){if("null_"===H._baseState.tag)return H._encode(null,A,v);if(null===H._baseState.key)return A.error("Child should have a key");const Q=A.enterKey(H._baseState.key);if("object"!=typeof v)return A.error("Child expected, but input is not object");const ae=H._encode(v[H._baseState.key],A,v);return A.leaveKey(Q),ae},this).filter(function(H){return H}),T=this._createEncoderBuffer(T);else if("seqof"===E.tag||"setof"===E.tag){if(!E.args||1!==E.args.length)return A.error("Too many args for : "+E.tag);if(!Array.isArray(v))return A.error("seqof/setof, but data is not Array");const H=this.clone();H._baseState.implicit=null,T=this._createEncoderBuffer(v.map(function(Q){const ae=this._baseState;return this._getUse(ae.args[0],v)._encode(Q,A)},H))}else null!==E.use?O=this._getUse(E.use,D)._encode(v,A):(T=this._encodePrimitive(E.tag,v),z=!0);if(!E.any&&null===E.choice){const H=null!==E.implicit?E.implicit:E.tag,Q=null===E.implicit?"universal":"context";null===H?null===E.use&&A.error("Tag could be omitted only for .use()"):null===E.use&&(O=this._encodeComposite(H,z,Q,T))}return null!==E.explicit&&(O=this._encodeComposite(E.explicit,!1,"context",O)),O},_.prototype._encodeChoice=function(v,A){const D=this._baseState,E=D.choice[v.type];return E||g(!1,v.type+" not found in "+JSON.stringify(Object.keys(D.choice))),E._encode(v.value,A)},_.prototype._encodePrimitive=function(v,A){const D=this._baseState;if(/str$/.test(v))return this._encodeStr(A,v);if("objid"===v&&D.args)return this._encodeObjid(A,D.reverseArgs[0],D.args[1]);if("objid"===v)return this._encodeObjid(A,null,null);if("gentime"===v||"utctime"===v)return this._encodeTime(A,v);if("null_"===v)return this._encodeNull();if("int"===v||"enum"===v)return this._encodeInt(A,D.args&&D.reverseArgs[0]);if("bool"===v)return this._encodeBool(A);if("objDesc"===v)return this._encodeStr(A,v);throw new Error("Unsupported tag: "+v)},_.prototype._isNumstr=function(v){return/^[0-9 ]*$/.test(v)},_.prototype._isPrintstr=function(v){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(v)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(k,K,U){"use strict";const I=k("inherits");function w(g){this._reporterState={obj:null,path:[],options:g||{},errors:[]}}function x(g,f){this.path=g,this.rethrow(f)}U.Reporter=w,w.prototype.isError=function(g){return g instanceof x},w.prototype.save=function(){const g=this._reporterState;return{obj:g.obj,pathLen:g.path.length}},w.prototype.restore=function(g){const f=this._reporterState;f.obj=g.obj,f.path=f.path.slice(0,g.pathLen)},w.prototype.enterKey=function(g){return this._reporterState.path.push(g)},w.prototype.exitKey=function(g){const f=this._reporterState;f.path=f.path.slice(0,g-1)},w.prototype.leaveKey=function(g,f,m){const _=this._reporterState;this.exitKey(g),null!==_.obj&&(_.obj[f]=m)},w.prototype.path=function(){return this._reporterState.path.join("/")},w.prototype.enterObject=function(){const g=this._reporterState,f=g.obj;return g.obj={},f},w.prototype.leaveObject=function(g){const f=this._reporterState,m=f.obj;return f.obj=g,m},w.prototype.error=function(g){let f;const m=this._reporterState,_=g instanceof x;if(f=_?g:new x(m.path.map(function(b){return"["+JSON.stringify(b)+"]"}).join(""),g.message||g,g.stack),!m.options.partial)throw f;return _||m.errors.push(f),f},w.prototype.wrapResult=function(g){const f=this._reporterState;return f.options.partial?{result:this.isError(g)?null:g,errors:f.errors}:g},I(x,Error),x.prototype.rethrow=function(g){if(this.message=g+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,x),!this.stack)try{throw new Error(this.message)}catch(f){this.stack=f.stack}return this}},{inherits:440}],176:[function(k,K,U){"use strict";function I(w){const x={};return Object.keys(w).forEach(function(g){(0|g)==g&&(g|=0);const f=w[g];x[f]=g}),x}U.tagClass={0:"universal",1:"application",2:"context",3:"private"},U.tagClassByName=I(U.tagClass),U.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},U.tagByName=I(U.tag)},{}],177:[function(k,K,U){"use strict";const I=U;I._reverse=function(w){const x={};return Object.keys(w).forEach(function(g){(0|g)==g&&(g|=0);const f=w[g];x[f]=g}),x},I.der=k("./der")},{"./der":176}],178:[function(k,K,U){"use strict";const I=k("inherits"),w=k("bn.js"),x=k("../base/buffer").DecoderBuffer,g=k("../base/node"),f=k("../constants/der");function m(A){this.enc="der",this.name=A.name,this.entity=A,this.tree=new _,this.tree._init(A.body)}function _(A){g.call(this,"der",A)}function b(A,D){let E=A.readUInt8(D);if(A.isError(E))return E;const O=f.tagClass[E>>6],T=!(32&E);if(31&~E)E&=31;else{let z=E;for(E=0;!(128&~z);){if(z=A.readUInt8(D),A.isError(z))return z;E<<=7,E|=127&z}}return{cls:O,primitive:T,tag:E,tagStr:f.tag[E]}}function v(A,D,E){let O=A.readUInt8(E);if(A.isError(O))return O;if(!D&&128===O)return null;if(!(128&O))return O;const T=127&O;if(T>4)return A.error("length octect is too long");O=0;for(let z=0;z=31?ae.error("Multi-octet tag encoding unsupported"):(H||(ge|=32),ge|=g.tagClassByName[Q||"universal"]<<6,ge)}(b,v,A,this.reporter);if(D.length<128){const z=w.alloc(2);return z[0]=E,z[1]=D.length,this._createEncoderBuffer([z,D])}let O=1;for(let z=D.length;z>=256;z>>=8)O++;const T=w.alloc(2+O);T[0]=E,T[1]=128|O;for(let z=1+O,H=D.length;H>0;z--,H>>=8)T[z]=255&H;return this._createEncoderBuffer([T,D])},m.prototype._encodeStr=function(b,v){if("bitstr"===v)return this._createEncoderBuffer([0|b.unused,b.data]);if("bmpstr"===v){const A=w.alloc(2*b.length);for(let D=0;D=40)return this.reporter.error("Second objid identifier OOB");b.splice(0,2,40*b[0]+b[1])}let D=0;for(let T=0;T=128;z>>=7)D++}const E=w.alloc(D);let O=E.length-1;for(let T=b.length-1;T>=0;T--){let z=b[T];for(E[O--]=127&z;(z>>=7)>0;)E[O--]=128|127&z}return this._createEncoderBuffer(E)},m.prototype._encodeTime=function(b,v){let A;const D=new Date(b);return"gentime"===v?A=[_(D.getUTCFullYear()),_(D.getUTCMonth()+1),_(D.getUTCDate()),_(D.getUTCHours()),_(D.getUTCMinutes()),_(D.getUTCSeconds()),"Z"].join(""):"utctime"===v?A=[_(D.getUTCFullYear()%100),_(D.getUTCMonth()+1),_(D.getUTCDate()),_(D.getUTCHours()),_(D.getUTCMinutes()),_(D.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+v+" time is not supported yet"),this._encodeStr(A,"octstr")},m.prototype._encodeNull=function(){return this._createEncoderBuffer("")},m.prototype._encodeInt=function(b,v){if("string"==typeof b){if(!v)return this.reporter.error("String int or enum given, but no values map");if(!v.hasOwnProperty(b))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(b));b=v[b]}if("number"!=typeof b&&!w.isBuffer(b)){const E=b.toArray();!b.sign&&128&E[0]&&E.unshift(0),b=w.from(E)}if(w.isBuffer(b)){let E=b.length;0===b.length&&E++;const O=w.alloc(E);return b.copy(O),0===b.length&&(O[0]=0),this._createEncoderBuffer(O)}if(b<128)return this._createEncoderBuffer(b);if(b<256)return this._createEncoderBuffer([0,b]);let A=1;for(let E=b;E>=256;E>>=8)A++;const D=new Array(A);for(let E=D.length-1;E>=0;E--)D[E]=255&b,b>>=8;return 128&D[0]&&D.unshift(0),this._createEncoderBuffer(w.from(D))},m.prototype._encodeBool=function(b){return this._createEncoderBuffer(b?255:0)},m.prototype._use=function(b,v){return"function"==typeof b&&(b=b(v)),b._getEncoder("der").tree},m.prototype._skipDefault=function(b,v,A){const D=this._baseState;let E;if(null===D.default)return!1;const O=b.join();if(void 0===D.defaultBuffer&&(D.defaultBuffer=this._encodeValue(D.default,v,A).join()),O.length!==D.defaultBuffer.length)return!1;for(E=0;E=65&&de<=70?de-55:de>=97&&de<=102?de-87:de-48&15}function b(W,J,de){var M=_(W,de);return de-1>=J&&(M|=_(W,de-1)<<4),M}function v(W,J,de,M){for(var F=0,P=Math.min(W.length,de),L=J;L=49?j-49+10:j>=17?j-17+10:j}return F}f.isBN=function(W){return W instanceof f||null!==W&&"object"==typeof W&&W.constructor.wordSize===f.wordSize&&Array.isArray(W.words)},f.max=function(W,J){return W.cmp(J)>0?W:J},f.min=function(W,J){return W.cmp(J)<0?W:J},f.prototype._init=function(W,J,de){if("number"==typeof W)return this._initNumber(W,J,de);if("object"==typeof W)return this._initArray(W,J,de);"hex"===J&&(J=16),x(J===(0|J)&&J>=2&&J<=36);var M=0;"-"===(W=W.toString().replace(/\s+/g,""))[0]&&(M++,this.negative=1),M=0;M-=3)P=W[M]|W[M-1]<<8|W[M-2]<<16,this.words[F]|=P<>>26-L&67108863,(L+=24)>=26&&(L-=26,F++);else if("le"===de)for(M=0,F=0;M>>26-L&67108863,(L+=24)>=26&&(L-=26,F++);return this.strip()},f.prototype._parseHex=function(W,J,de){this.length=Math.ceil((W.length-J)/6),this.words=new Array(this.length);for(var M=0;M=J;M-=2)F=b(W,J,M)<=18?(P-=18,L+=1,this.words[L]|=F>>>26):P+=8;else for(M=(W.length-J)%2==0?J+1:J;M=18?(P-=18,L+=1,this.words[L]|=F>>>26):P+=8;this.strip()},f.prototype._parseBase=function(W,J,de){this.words=[0],this.length=1;for(var M=0,F=1;F<=67108863;F*=J)M++;M--,F=F/J|0;for(var P=W.length-de,L=P%M,j=Math.min(P,P-L)+de,G=0,X=de;X1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],D=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function O(W,J,de){de.negative=J.negative^W.negative;var M=W.length+J.length|0;de.length=M,M=M-1|0;var F=0|W.words[0],P=0|J.words[0],L=F*P,j=67108863&L,G=L/67108864|0;de.words[0]=j;for(var X=1;X>>26,ue=67108863&G,Ne=Math.min(X,J.length-1),te=Math.max(0,X-W.length+1);te<=Ne;te++){var Me=X-te|0;se+=(L=(F=0|W.words[Me])*(P=0|J.words[te])+ue)/67108864|0,ue=67108863&L}de.words[X]=0|ue,G=0|se}return 0!==G?de.words[X]=0|G:de.length--,de.strip()}f.prototype.toString=function(W,J){var de;if(J=0|J||1,16===(W=W||10)||"hex"===W){de="";for(var M=0,F=0,P=0;P>>24-M&16777215)||P!==this.length-1?A[6-j.length]+j+de:j+de,(M+=2)>=26&&(M-=26,P--)}for(0!==F&&(de=F.toString(16)+de);de.length%J!=0;)de="0"+de;return 0!==this.negative&&(de="-"+de),de}if(W===(0|W)&&W>=2&&W<=36){var G=D[W],X=E[W];de="";var se=this.clone();for(se.negative=0;!se.isZero();){var ue=se.modn(X).toString(W);de=(se=se.idivn(X)).isZero()?ue+de:A[G-ue.length]+ue+de}for(this.isZero()&&(de="0"+de);de.length%J!=0;)de="0"+de;return 0!==this.negative&&(de="-"+de),de}x(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var W=this.words[0];return 2===this.length?W+=67108864*this.words[1]:3===this.length&&1===this.words[2]?W+=4503599627370496+67108864*this.words[1]:this.length>2&&x(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-W:W},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(W,J){return x(void 0!==m),this.toArrayLike(m,W,J)},f.prototype.toArray=function(W,J){return this.toArrayLike(Array,W,J)},f.prototype.toArrayLike=function(W,J,de){var M=this.byteLength(),F=de||Math.max(1,M);x(M<=F,"byte array longer than desired length"),x(F>0,"Requested array length <= 0"),this.strip();var P,L,j="le"===J,G=new W(F),X=this.clone();if(j){for(L=0;!X.isZero();L++)P=X.andln(255),X.iushrn(8),G[L]=P;for(;L=4096&&(de+=13,J>>>=13),J>=64&&(de+=7,J>>>=7),J>=8&&(de+=4,J>>>=4),J>=2&&(de+=2,J>>>=2),de+J},f.prototype._zeroBits=function(W){if(0===W)return 26;var J=W,de=0;return!(8191&J)&&(de+=13,J>>>=13),!(127&J)&&(de+=7,J>>>=7),!(15&J)&&(de+=4,J>>>=4),!(3&J)&&(de+=2,J>>>=2),!(1&J)&&de++,de},f.prototype.bitLength=function(){var W=this.words[this.length-1],J=this._countBits(W);return 26*(this.length-1)+J},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var W=0,J=0;JW.length?this.clone().ior(W):W.clone().ior(this)},f.prototype.uor=function(W){return this.length>W.length?this.clone().iuor(W):W.clone().iuor(this)},f.prototype.iuand=function(W){var J;J=this.length>W.length?W:this;for(var de=0;deW.length?this.clone().iand(W):W.clone().iand(this)},f.prototype.uand=function(W){return this.length>W.length?this.clone().iuand(W):W.clone().iuand(this)},f.prototype.iuxor=function(W){var J,de;this.length>W.length?(J=this,de=W):(J=W,de=this);for(var M=0;MW.length?this.clone().ixor(W):W.clone().ixor(this)},f.prototype.uxor=function(W){return this.length>W.length?this.clone().iuxor(W):W.clone().iuxor(this)},f.prototype.inotn=function(W){x("number"==typeof W&&W>=0);var J=0|Math.ceil(W/26),de=W%26;this._expand(J),de>0&&J--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-de),this.strip()},f.prototype.notn=function(W){return this.clone().inotn(W)},f.prototype.setn=function(W,J){x("number"==typeof W&&W>=0);var de=W/26|0,M=W%26;return this._expand(de+1),this.words[de]=J?this.words[de]|1<W.length?(de=this,M=W):(de=W,M=this);for(var F=0,P=0;P>>26;for(;0!==F&&P>>26;if(this.length=de.length,0!==F)this.words[this.length]=F,this.length++;else if(de!==this)for(;PW.length?this.clone().iadd(W):W.clone().iadd(this)},f.prototype.isub=function(W){if(0!==W.negative){W.negative=0;var J=this.iadd(W);return W.negative=1,J._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(W),this.negative=1,this._normSign();var de,M,F=this.cmp(W);if(0===F)return this.negative=0,this.length=1,this.words[0]=0,this;F>0?(de=this,M=W):(de=W,M=this);for(var P=0,L=0;L>26,this.words[L]=67108863&J;for(;0!==P&&L>26,this.words[L]=67108863&J;if(0===P&&L>>13,te=0|L[1],Me=8191&te,Z=te>>>13,Y=0|L[2],me=8191&Y,ze=Y>>>13,Je=0|L[3],je=8191&Je,ke=Je>>>13,ye=0|L[4],we=8191&ye,Ee=ye>>>13,He=0|L[5],Xe=8191&He,rt=He>>>13,at=0|L[6],St=8191&at,It=at>>>13,Kt=0|L[7],Ue=8191&Kt,it=Kt>>>13,yt=0|L[8],ft=8191&yt,Nt=yt>>>13,$t=0|L[9],Qt=8191&$t,Ot=$t>>>13,Jt=0|j[0],Mt=8191&Jt,nn=Jt>>>13,Qn=0|j[1],Nn=8191&Qn,Xn=Qn>>>13,Oi=0|j[2],dr=8191&Oi,gr=Oi>>>13,yr=0|j[3],Sr=8191&yr,Pr=yr>>>13,Ja=0|j[4],Or=8191&Ja,ln=Ja>>>13,ia=0|j[5],_r=8191&ia,Ar=ia>>>13,Hr=0|j[6],Yn=8191&Hr,pt=Hr>>>13,kt=0|j[7],en=8191&kt,wn=kt>>>13,At=0|j[8],sn=8191&At,zn=At>>>13,ai=0|j[9],lr=8191&ai,Zn=ai>>>13;de.negative=W.negative^J.negative,de.length=19;var ti=(X+(M=Math.imul(ue,Mt))|0)+((8191&(F=(F=Math.imul(ue,nn))+Math.imul(Ne,Mt)|0))<<13)|0;X=((P=Math.imul(Ne,nn))+(F>>>13)|0)+(ti>>>26)|0,ti&=67108863,M=Math.imul(Me,Mt),F=(F=Math.imul(Me,nn))+Math.imul(Z,Mt)|0,P=Math.imul(Z,nn);var Br=(X+(M=M+Math.imul(ue,Nn)|0)|0)+((8191&(F=(F=F+Math.imul(ue,Xn)|0)+Math.imul(Ne,Nn)|0))<<13)|0;X=((P=P+Math.imul(Ne,Xn)|0)+(F>>>13)|0)+(Br>>>26)|0,Br&=67108863,M=Math.imul(me,Mt),F=(F=Math.imul(me,nn))+Math.imul(ze,Mt)|0,P=Math.imul(ze,nn),M=M+Math.imul(Me,Nn)|0,F=(F=F+Math.imul(Me,Xn)|0)+Math.imul(Z,Nn)|0,P=P+Math.imul(Z,Xn)|0;var Nr=(X+(M=M+Math.imul(ue,dr)|0)|0)+((8191&(F=(F=F+Math.imul(ue,gr)|0)+Math.imul(Ne,dr)|0))<<13)|0;X=((P=P+Math.imul(Ne,gr)|0)+(F>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,M=Math.imul(je,Mt),F=(F=Math.imul(je,nn))+Math.imul(ke,Mt)|0,P=Math.imul(ke,nn),M=M+Math.imul(me,Nn)|0,F=(F=F+Math.imul(me,Xn)|0)+Math.imul(ze,Nn)|0,P=P+Math.imul(ze,Xn)|0,M=M+Math.imul(Me,dr)|0,F=(F=F+Math.imul(Me,gr)|0)+Math.imul(Z,dr)|0,P=P+Math.imul(Z,gr)|0;var si=(X+(M=M+Math.imul(ue,Sr)|0)|0)+((8191&(F=(F=F+Math.imul(ue,Pr)|0)+Math.imul(Ne,Sr)|0))<<13)|0;X=((P=P+Math.imul(Ne,Pr)|0)+(F>>>13)|0)+(si>>>26)|0,si&=67108863,M=Math.imul(we,Mt),F=(F=Math.imul(we,nn))+Math.imul(Ee,Mt)|0,P=Math.imul(Ee,nn),M=M+Math.imul(je,Nn)|0,F=(F=F+Math.imul(je,Xn)|0)+Math.imul(ke,Nn)|0,P=P+Math.imul(ke,Xn)|0,M=M+Math.imul(me,dr)|0,F=(F=F+Math.imul(me,gr)|0)+Math.imul(ze,dr)|0,P=P+Math.imul(ze,gr)|0,M=M+Math.imul(Me,Sr)|0,F=(F=F+Math.imul(Me,Pr)|0)+Math.imul(Z,Sr)|0,P=P+Math.imul(Z,Pr)|0;var Wr=(X+(M=M+Math.imul(ue,Or)|0)|0)+((8191&(F=(F=F+Math.imul(ue,ln)|0)+Math.imul(Ne,Or)|0))<<13)|0;X=((P=P+Math.imul(Ne,ln)|0)+(F>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,M=Math.imul(Xe,Mt),F=(F=Math.imul(Xe,nn))+Math.imul(rt,Mt)|0,P=Math.imul(rt,nn),M=M+Math.imul(we,Nn)|0,F=(F=F+Math.imul(we,Xn)|0)+Math.imul(Ee,Nn)|0,P=P+Math.imul(Ee,Xn)|0,M=M+Math.imul(je,dr)|0,F=(F=F+Math.imul(je,gr)|0)+Math.imul(ke,dr)|0,P=P+Math.imul(ke,gr)|0,M=M+Math.imul(me,Sr)|0,F=(F=F+Math.imul(me,Pr)|0)+Math.imul(ze,Sr)|0,P=P+Math.imul(ze,Pr)|0,M=M+Math.imul(Me,Or)|0,F=(F=F+Math.imul(Me,ln)|0)+Math.imul(Z,Or)|0,P=P+Math.imul(Z,ln)|0;var ko=(X+(M=M+Math.imul(ue,_r)|0)|0)+((8191&(F=(F=F+Math.imul(ue,Ar)|0)+Math.imul(Ne,_r)|0))<<13)|0;X=((P=P+Math.imul(Ne,Ar)|0)+(F>>>13)|0)+(ko>>>26)|0,ko&=67108863,M=Math.imul(St,Mt),F=(F=Math.imul(St,nn))+Math.imul(It,Mt)|0,P=Math.imul(It,nn),M=M+Math.imul(Xe,Nn)|0,F=(F=F+Math.imul(Xe,Xn)|0)+Math.imul(rt,Nn)|0,P=P+Math.imul(rt,Xn)|0,M=M+Math.imul(we,dr)|0,F=(F=F+Math.imul(we,gr)|0)+Math.imul(Ee,dr)|0,P=P+Math.imul(Ee,gr)|0,M=M+Math.imul(je,Sr)|0,F=(F=F+Math.imul(je,Pr)|0)+Math.imul(ke,Sr)|0,P=P+Math.imul(ke,Pr)|0,M=M+Math.imul(me,Or)|0,F=(F=F+Math.imul(me,ln)|0)+Math.imul(ze,Or)|0,P=P+Math.imul(ze,ln)|0,M=M+Math.imul(Me,_r)|0,F=(F=F+Math.imul(Me,Ar)|0)+Math.imul(Z,_r)|0,P=P+Math.imul(Z,Ar)|0;var ma=(X+(M=M+Math.imul(ue,Yn)|0)|0)+((8191&(F=(F=F+Math.imul(ue,pt)|0)+Math.imul(Ne,Yn)|0))<<13)|0;X=((P=P+Math.imul(Ne,pt)|0)+(F>>>13)|0)+(ma>>>26)|0,ma&=67108863,M=Math.imul(Ue,Mt),F=(F=Math.imul(Ue,nn))+Math.imul(it,Mt)|0,P=Math.imul(it,nn),M=M+Math.imul(St,Nn)|0,F=(F=F+Math.imul(St,Xn)|0)+Math.imul(It,Nn)|0,P=P+Math.imul(It,Xn)|0,M=M+Math.imul(Xe,dr)|0,F=(F=F+Math.imul(Xe,gr)|0)+Math.imul(rt,dr)|0,P=P+Math.imul(rt,gr)|0,M=M+Math.imul(we,Sr)|0,F=(F=F+Math.imul(we,Pr)|0)+Math.imul(Ee,Sr)|0,P=P+Math.imul(Ee,Pr)|0,M=M+Math.imul(je,Or)|0,F=(F=F+Math.imul(je,ln)|0)+Math.imul(ke,Or)|0,P=P+Math.imul(ke,ln)|0,M=M+Math.imul(me,_r)|0,F=(F=F+Math.imul(me,Ar)|0)+Math.imul(ze,_r)|0,P=P+Math.imul(ze,Ar)|0,M=M+Math.imul(Me,Yn)|0,F=(F=F+Math.imul(Me,pt)|0)+Math.imul(Z,Yn)|0,P=P+Math.imul(Z,pt)|0;var eo=(X+(M=M+Math.imul(ue,en)|0)|0)+((8191&(F=(F=F+Math.imul(ue,wn)|0)+Math.imul(Ne,en)|0))<<13)|0;X=((P=P+Math.imul(Ne,wn)|0)+(F>>>13)|0)+(eo>>>26)|0,eo&=67108863,M=Math.imul(ft,Mt),F=(F=Math.imul(ft,nn))+Math.imul(Nt,Mt)|0,P=Math.imul(Nt,nn),M=M+Math.imul(Ue,Nn)|0,F=(F=F+Math.imul(Ue,Xn)|0)+Math.imul(it,Nn)|0,P=P+Math.imul(it,Xn)|0,M=M+Math.imul(St,dr)|0,F=(F=F+Math.imul(St,gr)|0)+Math.imul(It,dr)|0,P=P+Math.imul(It,gr)|0,M=M+Math.imul(Xe,Sr)|0,F=(F=F+Math.imul(Xe,Pr)|0)+Math.imul(rt,Sr)|0,P=P+Math.imul(rt,Pr)|0,M=M+Math.imul(we,Or)|0,F=(F=F+Math.imul(we,ln)|0)+Math.imul(Ee,Or)|0,P=P+Math.imul(Ee,ln)|0,M=M+Math.imul(je,_r)|0,F=(F=F+Math.imul(je,Ar)|0)+Math.imul(ke,_r)|0,P=P+Math.imul(ke,Ar)|0,M=M+Math.imul(me,Yn)|0,F=(F=F+Math.imul(me,pt)|0)+Math.imul(ze,Yn)|0,P=P+Math.imul(ze,pt)|0,M=M+Math.imul(Me,en)|0,F=(F=F+Math.imul(Me,wn)|0)+Math.imul(Z,en)|0,P=P+Math.imul(Z,wn)|0;var bi=(X+(M=M+Math.imul(ue,sn)|0)|0)+((8191&(F=(F=F+Math.imul(ue,zn)|0)+Math.imul(Ne,sn)|0))<<13)|0;X=((P=P+Math.imul(Ne,zn)|0)+(F>>>13)|0)+(bi>>>26)|0,bi&=67108863,M=Math.imul(Qt,Mt),F=(F=Math.imul(Qt,nn))+Math.imul(Ot,Mt)|0,P=Math.imul(Ot,nn),M=M+Math.imul(ft,Nn)|0,F=(F=F+Math.imul(ft,Xn)|0)+Math.imul(Nt,Nn)|0,P=P+Math.imul(Nt,Xn)|0,M=M+Math.imul(Ue,dr)|0,F=(F=F+Math.imul(Ue,gr)|0)+Math.imul(it,dr)|0,P=P+Math.imul(it,gr)|0,M=M+Math.imul(St,Sr)|0,F=(F=F+Math.imul(St,Pr)|0)+Math.imul(It,Sr)|0,P=P+Math.imul(It,Pr)|0,M=M+Math.imul(Xe,Or)|0,F=(F=F+Math.imul(Xe,ln)|0)+Math.imul(rt,Or)|0,P=P+Math.imul(rt,ln)|0,M=M+Math.imul(we,_r)|0,F=(F=F+Math.imul(we,Ar)|0)+Math.imul(Ee,_r)|0,P=P+Math.imul(Ee,Ar)|0,M=M+Math.imul(je,Yn)|0,F=(F=F+Math.imul(je,pt)|0)+Math.imul(ke,Yn)|0,P=P+Math.imul(ke,pt)|0,M=M+Math.imul(me,en)|0,F=(F=F+Math.imul(me,wn)|0)+Math.imul(ze,en)|0,P=P+Math.imul(ze,wn)|0,M=M+Math.imul(Me,sn)|0,F=(F=F+Math.imul(Me,zn)|0)+Math.imul(Z,sn)|0,P=P+Math.imul(Z,zn)|0;var nt=(X+(M=M+Math.imul(ue,lr)|0)|0)+((8191&(F=(F=F+Math.imul(ue,Zn)|0)+Math.imul(Ne,lr)|0))<<13)|0;X=((P=P+Math.imul(Ne,Zn)|0)+(F>>>13)|0)+(nt>>>26)|0,nt&=67108863,M=Math.imul(Qt,Nn),F=(F=Math.imul(Qt,Xn))+Math.imul(Ot,Nn)|0,P=Math.imul(Ot,Xn),M=M+Math.imul(ft,dr)|0,F=(F=F+Math.imul(ft,gr)|0)+Math.imul(Nt,dr)|0,P=P+Math.imul(Nt,gr)|0,M=M+Math.imul(Ue,Sr)|0,F=(F=F+Math.imul(Ue,Pr)|0)+Math.imul(it,Sr)|0,P=P+Math.imul(it,Pr)|0,M=M+Math.imul(St,Or)|0,F=(F=F+Math.imul(St,ln)|0)+Math.imul(It,Or)|0,P=P+Math.imul(It,ln)|0,M=M+Math.imul(Xe,_r)|0,F=(F=F+Math.imul(Xe,Ar)|0)+Math.imul(rt,_r)|0,P=P+Math.imul(rt,Ar)|0,M=M+Math.imul(we,Yn)|0,F=(F=F+Math.imul(we,pt)|0)+Math.imul(Ee,Yn)|0,P=P+Math.imul(Ee,pt)|0,M=M+Math.imul(je,en)|0,F=(F=F+Math.imul(je,wn)|0)+Math.imul(ke,en)|0,P=P+Math.imul(ke,wn)|0,M=M+Math.imul(me,sn)|0,F=(F=F+Math.imul(me,zn)|0)+Math.imul(ze,sn)|0,P=P+Math.imul(ze,zn)|0;var Ct=(X+(M=M+Math.imul(Me,lr)|0)|0)+((8191&(F=(F=F+Math.imul(Me,Zn)|0)+Math.imul(Z,lr)|0))<<13)|0;X=((P=P+Math.imul(Z,Zn)|0)+(F>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,M=Math.imul(Qt,dr),F=(F=Math.imul(Qt,gr))+Math.imul(Ot,dr)|0,P=Math.imul(Ot,gr),M=M+Math.imul(ft,Sr)|0,F=(F=F+Math.imul(ft,Pr)|0)+Math.imul(Nt,Sr)|0,P=P+Math.imul(Nt,Pr)|0,M=M+Math.imul(Ue,Or)|0,F=(F=F+Math.imul(Ue,ln)|0)+Math.imul(it,Or)|0,P=P+Math.imul(it,ln)|0,M=M+Math.imul(St,_r)|0,F=(F=F+Math.imul(St,Ar)|0)+Math.imul(It,_r)|0,P=P+Math.imul(It,Ar)|0,M=M+Math.imul(Xe,Yn)|0,F=(F=F+Math.imul(Xe,pt)|0)+Math.imul(rt,Yn)|0,P=P+Math.imul(rt,pt)|0,M=M+Math.imul(we,en)|0,F=(F=F+Math.imul(we,wn)|0)+Math.imul(Ee,en)|0,P=P+Math.imul(Ee,wn)|0,M=M+Math.imul(je,sn)|0,F=(F=F+Math.imul(je,zn)|0)+Math.imul(ke,sn)|0,P=P+Math.imul(ke,zn)|0;var Xt=(X+(M=M+Math.imul(me,lr)|0)|0)+((8191&(F=(F=F+Math.imul(me,Zn)|0)+Math.imul(ze,lr)|0))<<13)|0;X=((P=P+Math.imul(ze,Zn)|0)+(F>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,M=Math.imul(Qt,Sr),F=(F=Math.imul(Qt,Pr))+Math.imul(Ot,Sr)|0,P=Math.imul(Ot,Pr),M=M+Math.imul(ft,Or)|0,F=(F=F+Math.imul(ft,ln)|0)+Math.imul(Nt,Or)|0,P=P+Math.imul(Nt,ln)|0,M=M+Math.imul(Ue,_r)|0,F=(F=F+Math.imul(Ue,Ar)|0)+Math.imul(it,_r)|0,P=P+Math.imul(it,Ar)|0,M=M+Math.imul(St,Yn)|0,F=(F=F+Math.imul(St,pt)|0)+Math.imul(It,Yn)|0,P=P+Math.imul(It,pt)|0,M=M+Math.imul(Xe,en)|0,F=(F=F+Math.imul(Xe,wn)|0)+Math.imul(rt,en)|0,P=P+Math.imul(rt,wn)|0,M=M+Math.imul(we,sn)|0,F=(F=F+Math.imul(we,zn)|0)+Math.imul(Ee,sn)|0,P=P+Math.imul(Ee,zn)|0;var Ut=(X+(M=M+Math.imul(je,lr)|0)|0)+((8191&(F=(F=F+Math.imul(je,Zn)|0)+Math.imul(ke,lr)|0))<<13)|0;X=((P=P+Math.imul(ke,Zn)|0)+(F>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,M=Math.imul(Qt,Or),F=(F=Math.imul(Qt,ln))+Math.imul(Ot,Or)|0,P=Math.imul(Ot,ln),M=M+Math.imul(ft,_r)|0,F=(F=F+Math.imul(ft,Ar)|0)+Math.imul(Nt,_r)|0,P=P+Math.imul(Nt,Ar)|0,M=M+Math.imul(Ue,Yn)|0,F=(F=F+Math.imul(Ue,pt)|0)+Math.imul(it,Yn)|0,P=P+Math.imul(it,pt)|0,M=M+Math.imul(St,en)|0,F=(F=F+Math.imul(St,wn)|0)+Math.imul(It,en)|0,P=P+Math.imul(It,wn)|0,M=M+Math.imul(Xe,sn)|0,F=(F=F+Math.imul(Xe,zn)|0)+Math.imul(rt,sn)|0,P=P+Math.imul(rt,zn)|0;var Tn=(X+(M=M+Math.imul(we,lr)|0)|0)+((8191&(F=(F=F+Math.imul(we,Zn)|0)+Math.imul(Ee,lr)|0))<<13)|0;X=((P=P+Math.imul(Ee,Zn)|0)+(F>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,M=Math.imul(Qt,_r),F=(F=Math.imul(Qt,Ar))+Math.imul(Ot,_r)|0,P=Math.imul(Ot,Ar),M=M+Math.imul(ft,Yn)|0,F=(F=F+Math.imul(ft,pt)|0)+Math.imul(Nt,Yn)|0,P=P+Math.imul(Nt,pt)|0,M=M+Math.imul(Ue,en)|0,F=(F=F+Math.imul(Ue,wn)|0)+Math.imul(it,en)|0,P=P+Math.imul(it,wn)|0,M=M+Math.imul(St,sn)|0,F=(F=F+Math.imul(St,zn)|0)+Math.imul(It,sn)|0,P=P+Math.imul(It,zn)|0;var Vn=(X+(M=M+Math.imul(Xe,lr)|0)|0)+((8191&(F=(F=F+Math.imul(Xe,Zn)|0)+Math.imul(rt,lr)|0))<<13)|0;X=((P=P+Math.imul(rt,Zn)|0)+(F>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,M=Math.imul(Qt,Yn),F=(F=Math.imul(Qt,pt))+Math.imul(Ot,Yn)|0,P=Math.imul(Ot,pt),M=M+Math.imul(ft,en)|0,F=(F=F+Math.imul(ft,wn)|0)+Math.imul(Nt,en)|0,P=P+Math.imul(Nt,wn)|0,M=M+Math.imul(Ue,sn)|0,F=(F=F+Math.imul(Ue,zn)|0)+Math.imul(it,sn)|0,P=P+Math.imul(it,zn)|0;var ur=(X+(M=M+Math.imul(St,lr)|0)|0)+((8191&(F=(F=F+Math.imul(St,Zn)|0)+Math.imul(It,lr)|0))<<13)|0;X=((P=P+Math.imul(It,Zn)|0)+(F>>>13)|0)+(ur>>>26)|0,ur&=67108863,M=Math.imul(Qt,en),F=(F=Math.imul(Qt,wn))+Math.imul(Ot,en)|0,P=Math.imul(Ot,wn),M=M+Math.imul(ft,sn)|0,F=(F=F+Math.imul(ft,zn)|0)+Math.imul(Nt,sn)|0,P=P+Math.imul(Nt,zn)|0;var Dn=(X+(M=M+Math.imul(Ue,lr)|0)|0)+((8191&(F=(F=F+Math.imul(Ue,Zn)|0)+Math.imul(it,lr)|0))<<13)|0;X=((P=P+Math.imul(it,Zn)|0)+(F>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,M=Math.imul(Qt,sn),F=(F=Math.imul(Qt,zn))+Math.imul(Ot,sn)|0,P=Math.imul(Ot,zn);var Wt=(X+(M=M+Math.imul(ft,lr)|0)|0)+((8191&(F=(F=F+Math.imul(ft,Zn)|0)+Math.imul(Nt,lr)|0))<<13)|0;X=((P=P+Math.imul(Nt,Zn)|0)+(F>>>13)|0)+(Wt>>>26)|0,Wt&=67108863;var Gn=(X+(M=Math.imul(Qt,lr))|0)+((8191&(F=(F=Math.imul(Qt,Zn))+Math.imul(Ot,lr)|0))<<13)|0;return X=((P=Math.imul(Ot,Zn))+(F>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,G[0]=ti,G[1]=Br,G[2]=Nr,G[3]=si,G[4]=Wr,G[5]=ko,G[6]=ma,G[7]=eo,G[8]=bi,G[9]=nt,G[10]=Ct,G[11]=Xt,G[12]=Ut,G[13]=Tn,G[14]=Vn,G[15]=ur,G[16]=Dn,G[17]=Wt,G[18]=Gn,0!==X&&(G[19]=X,de.length++),de};function z(W,J,de){return(new H).mulp(W,J,de)}function H(W,J){this.x=W,this.y=J}Math.imul||(T=O),f.prototype.mulTo=function(W,J){var de=this.length+W.length;return 10===this.length&&10===W.length?T(this,W,J):de<63?O(this,W,J):de<1024?function(M,F,P){P.negative=F.negative^M.negative,P.length=M.length+F.length;for(var L=0,j=0,G=0;G>>26)|0)>>>26,X&=67108863}P.words[G]=se,L=X,X=j}return 0!==L?P.words[G]=L:P.length--,P.strip()}(this,W,J):z(this,W,J)},H.prototype.makeRBT=function(W){for(var J=new Array(W),de=f.prototype._countBits(W)-1,M=0;M>=1;return M},H.prototype.permute=function(W,J,de,M,F,P){for(var L=0;L>>=1)F++;return 1<>>=13,de[2*P+1]=8191&F,F>>>=13;for(P=2*J;P>=26,J+=M/67108864|0,J+=F>>>26,this.words[de]=67108863&F}return 0!==J&&(this.words[de]=J,this.length++),this},f.prototype.muln=function(W){return this.clone().imuln(W)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(W){var J=function(P){for(var L=new Array(P.bitLength()),j=0;j>>X}return L}(W);if(0===J.length)return new f(1);for(var de=this,M=0;M=0);var J,de=W%26,M=(W-de)/26,F=67108863>>>26-de<<26-de;if(0!==de){var P=0;for(J=0;J>>26-de}P&&(this.words[J]=P,this.length++)}if(0!==M){for(J=this.length-1;J>=0;J--)this.words[J+M]=this.words[J];for(J=0;J=0),M=J?(J-J%26)/26:0;var F=W%26,P=Math.min((W-F)/26,this.length),L=67108863^67108863>>>F<P)for(this.length-=P,G=0;G=0&&(0!==X||G>=M);G--){var se=0|this.words[G];this.words[G]=X<<26-F|se>>>F,X=se&L}return j&&0!==X&&(j.words[j.length++]=X),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(W,J,de){return x(0===this.negative),this.iushrn(W,J,de)},f.prototype.shln=function(W){return this.clone().ishln(W)},f.prototype.ushln=function(W){return this.clone().iushln(W)},f.prototype.shrn=function(W){return this.clone().ishrn(W)},f.prototype.ushrn=function(W){return this.clone().iushrn(W)},f.prototype.testn=function(W){x("number"==typeof W&&W>=0);var J=W%26,de=(W-J)/26,M=1<=0);var J=W%26,de=(W-J)/26;if(x(0===this.negative,"imaskn works only with positive numbers"),this.length<=de)return this;if(0!==J&&de++,this.length=Math.min(de,this.length),0!==J){var M=67108863^67108863>>>J<=67108864;J++)this.words[J]-=67108864,J===this.length-1?this.words[J+1]=1:this.words[J+1]++;return this.length=Math.max(this.length,J+1),this},f.prototype.isubn=function(W){if(x("number"==typeof W),x(W<67108864),W<0)return this.iaddn(-W);if(0!==this.negative)return this.negative=0,this.iaddn(W),this.negative=1,this;if(this.words[0]-=W,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var J=0;J>26)-(j/67108864|0),this.words[M+de]=67108863&F}for(;M>26,this.words[M+de]=67108863&F;if(0===L)return this.strip();for(x(-1===L),L=0,M=0;M>26,this.words[M]=67108863&F;return this.negative=1,this.strip()},f.prototype._wordDiv=function(W,J){var de=(this.length,W.length),M=this.clone(),F=W,P=0|F.words[F.length-1];0!=(de=26-this._countBits(P))&&(F=F.ushln(de),M.iushln(de),P=0|F.words[F.length-1]);var L,j=M.length-F.length;if("mod"!==J){(L=new f(null)).length=j+1,L.words=new Array(L.length);for(var G=0;G=0;se--){var ue=67108864*(0|M.words[F.length+se])+(0|M.words[F.length+se-1]);for(ue=Math.min(ue/P|0,67108863),M._ishlnsubmul(F,ue,se);0!==M.negative;)ue--,M.negative=0,M._ishlnsubmul(F,1,se),M.isZero()||(M.negative^=1);L&&(L.words[se]=ue)}return L&&L.strip(),M.strip(),"div"!==J&&0!==de&&M.iushrn(de),{div:L||null,mod:M}},f.prototype.divmod=function(W,J,de){return x(!W.isZero()),this.isZero()?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===W.negative?(P=this.neg().divmod(W,J),"mod"!==J&&(M=P.div.neg()),"div"!==J&&(F=P.mod.neg(),de&&0!==F.negative&&F.iadd(W)),{div:M,mod:F}):0===this.negative&&0!==W.negative?(P=this.divmod(W.neg(),J),"mod"!==J&&(M=P.div.neg()),{div:M,mod:P.mod}):this.negative&W.negative?(P=this.neg().divmod(W.neg(),J),"div"!==J&&(F=P.mod.neg(),de&&0!==F.negative&&F.isub(W)),{div:P.div,mod:F}):W.length>this.length||this.cmp(W)<0?{div:new f(0),mod:this}:1===W.length?"div"===J?{div:this.divn(W.words[0]),mod:null}:"mod"===J?{div:null,mod:new f(this.modn(W.words[0]))}:{div:this.divn(W.words[0]),mod:new f(this.modn(W.words[0]))}:this._wordDiv(W,J);var M,F,P},f.prototype.div=function(W){return this.divmod(W,"div",!1).div},f.prototype.mod=function(W){return this.divmod(W,"mod",!1).mod},f.prototype.umod=function(W){return this.divmod(W,"mod",!0).mod},f.prototype.divRound=function(W){var J=this.divmod(W);if(J.mod.isZero())return J.div;var de=0!==J.div.negative?J.mod.isub(W):J.mod,M=W.ushrn(1),F=W.andln(1),P=de.cmp(M);return P<0||1===F&&0===P?J.div:0!==J.div.negative?J.div.isubn(1):J.div.iaddn(1)},f.prototype.modn=function(W){x(W<=67108863);for(var J=(1<<26)%W,de=0,M=this.length-1;M>=0;M--)de=(J*de+(0|this.words[M]))%W;return de},f.prototype.idivn=function(W){x(W<=67108863);for(var J=0,de=this.length-1;de>=0;de--){var M=(0|this.words[de])+67108864*J;this.words[de]=M/W|0,J=M%W}return this.strip()},f.prototype.divn=function(W){return this.clone().idivn(W)},f.prototype.egcd=function(W){x(0===W.negative),x(!W.isZero());var J=this,de=W.clone();J=0!==J.negative?J.umod(W):J.clone();for(var M=new f(1),F=new f(0),P=new f(0),L=new f(1),j=0;J.isEven()&&de.isEven();)J.iushrn(1),de.iushrn(1),++j;for(var G=de.clone(),X=J.clone();!J.isZero();){for(var se=0,ue=1;!(J.words[0]&ue)&&se<26;++se,ue<<=1);if(se>0)for(J.iushrn(se);se-- >0;)(M.isOdd()||F.isOdd())&&(M.iadd(G),F.isub(X)),M.iushrn(1),F.iushrn(1);for(var Ne=0,te=1;!(de.words[0]&te)&&Ne<26;++Ne,te<<=1);if(Ne>0)for(de.iushrn(Ne);Ne-- >0;)(P.isOdd()||L.isOdd())&&(P.iadd(G),L.isub(X)),P.iushrn(1),L.iushrn(1);J.cmp(de)>=0?(J.isub(de),M.isub(P),F.isub(L)):(de.isub(J),P.isub(M),L.isub(F))}return{a:P,b:L,gcd:de.iushln(j)}},f.prototype._invmp=function(W){x(0===W.negative),x(!W.isZero());var J=this,de=W.clone();J=0!==J.negative?J.umod(W):J.clone();for(var M,F=new f(1),P=new f(0),L=de.clone();J.cmpn(1)>0&&de.cmpn(1)>0;){for(var j=0,G=1;!(J.words[0]&G)&&j<26;++j,G<<=1);if(j>0)for(J.iushrn(j);j-- >0;)F.isOdd()&&F.iadd(L),F.iushrn(1);for(var X=0,se=1;!(de.words[0]&se)&&X<26;++X,se<<=1);if(X>0)for(de.iushrn(X);X-- >0;)P.isOdd()&&P.iadd(L),P.iushrn(1);J.cmp(de)>=0?(J.isub(de),F.isub(P)):(de.isub(J),P.isub(F))}return(M=0===J.cmpn(1)?F:P).cmpn(0)<0&&M.iadd(W),M},f.prototype.gcd=function(W){if(this.isZero())return W.abs();if(W.isZero())return this.abs();var J=this.clone(),de=W.clone();J.negative=0,de.negative=0;for(var M=0;J.isEven()&&de.isEven();M++)J.iushrn(1),de.iushrn(1);for(;;){for(;J.isEven();)J.iushrn(1);for(;de.isEven();)de.iushrn(1);var F=J.cmp(de);if(F<0){var P=J;J=de,de=P}else if(0===F||0===de.cmpn(1))break;J.isub(de)}return de.iushln(M)},f.prototype.invm=function(W){return this.egcd(W).a.umod(W)},f.prototype.isEven=function(){return!(1&this.words[0])},f.prototype.isOdd=function(){return!(1&~this.words[0])},f.prototype.andln=function(W){return this.words[0]&W},f.prototype.bincn=function(W){x("number"==typeof W);var J=W%26,de=(W-J)/26,M=1<>>26,L&=67108863,this.words[P]=L}return 0!==F&&(this.words[P]=F,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(W){var J,de=W<0;if(0!==this.negative&&!de)return-1;if(0===this.negative&&de)return 1;if(this.strip(),this.length>1)J=1;else{de&&(W=-W),x(W<=67108863,"Number is too big");var M=0|this.words[0];J=M===W?0:MW.length)return 1;if(this.length=0;de--){var M=0|this.words[de],F=0|W.words[de];if(M!==F){MF&&(J=1);break}}return J},f.prototype.gtn=function(W){return 1===this.cmpn(W)},f.prototype.gt=function(W){return 1===this.cmp(W)},f.prototype.gten=function(W){return this.cmpn(W)>=0},f.prototype.gte=function(W){return this.cmp(W)>=0},f.prototype.ltn=function(W){return-1===this.cmpn(W)},f.prototype.lt=function(W){return-1===this.cmp(W)},f.prototype.lten=function(W){return this.cmpn(W)<=0},f.prototype.lte=function(W){return this.cmp(W)<=0},f.prototype.eqn=function(W){return 0===this.cmpn(W)},f.prototype.eq=function(W){return 0===this.cmp(W)},f.red=function(W){return new Se(W)},f.prototype.toRed=function(W){return x(!this.red,"Already a number in reduction context"),x(0===this.negative,"red works only with positives"),W.convertTo(this)._forceRed(W)},f.prototype.fromRed=function(){return x(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(W){return this.red=W,this},f.prototype.forceRed=function(W){return x(!this.red,"Already a number in reduction context"),this._forceRed(W)},f.prototype.redAdd=function(W){return x(this.red,"redAdd works only with red numbers"),this.red.add(this,W)},f.prototype.redIAdd=function(W){return x(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,W)},f.prototype.redSub=function(W){return x(this.red,"redSub works only with red numbers"),this.red.sub(this,W)},f.prototype.redISub=function(W){return x(this.red,"redISub works only with red numbers"),this.red.isub(this,W)},f.prototype.redShl=function(W){return x(this.red,"redShl works only with red numbers"),this.red.shl(this,W)},f.prototype.redMul=function(W){return x(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.mul(this,W)},f.prototype.redIMul=function(W){return x(this.red,"redMul works only with red numbers"),this.red._verify2(this,W),this.red.imul(this,W)},f.prototype.redSqr=function(){return x(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return x(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return x(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return x(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return x(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(W){return x(this.red&&!W.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,W)};var Q={k256:null,p224:null,p192:null,p25519:null};function ae(W,J){this.name=W,this.p=new f(J,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function le(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function fe(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function be(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Se(W){if("string"==typeof W){var J=f._prime(W);this.m=J.p,this.prime=J}else x(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}function ve(W){Se.call(this,W),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ae.prototype._tmp=function(){var W=new f(null);return W.words=new Array(Math.ceil(this.n/13)),W},ae.prototype.ireduce=function(W){var J,de=W;do{this.split(de,this.tmp),J=(de=(de=this.imulK(de)).iadd(this.tmp)).bitLength()}while(J>this.n);var M=J0?de.isub(this.p):void 0!==de.strip?de.strip():de._strip(),de},ae.prototype.split=function(W,J){W.iushrn(this.n,0,J)},ae.prototype.imulK=function(W){return W.imul(this.k)},g(ge,ae),ge.prototype.split=function(W,J){for(var de=Math.min(W.length,9),M=0;M>>22,F=P}F>>>=22,W.words[M-10]=F,0===F&&W.length>10?W.length-=10:W.length-=9},ge.prototype.imulK=function(W){W.words[W.length]=0,W.words[W.length+1]=0,W.length+=2;for(var J=0,de=0;de>>=26,W.words[de]=F,J=M}return 0!==J&&(W.words[W.length++]=J),W},f._prime=function(W){if(Q[W])return Q[W];var J;if("k256"===W)J=new ge;else if("p224"===W)J=new le;else if("p192"===W)J=new fe;else{if("p25519"!==W)throw new Error("Unknown prime "+W);J=new be}return Q[W]=J,J},Se.prototype._verify1=function(W){x(0===W.negative,"red works only with positives"),x(W.red,"red works only with red numbers")},Se.prototype._verify2=function(W,J){x(!(W.negative|J.negative),"red works only with positives"),x(W.red&&W.red===J.red,"red works only with red numbers")},Se.prototype.imod=function(W){return this.prime?this.prime.ireduce(W)._forceRed(this):W.umod(this.m)._forceRed(this)},Se.prototype.neg=function(W){return W.isZero()?W.clone():this.m.sub(W)._forceRed(this)},Se.prototype.add=function(W,J){this._verify2(W,J);var de=W.add(J);return de.cmp(this.m)>=0&&de.isub(this.m),de._forceRed(this)},Se.prototype.iadd=function(W,J){this._verify2(W,J);var de=W.iadd(J);return de.cmp(this.m)>=0&&de.isub(this.m),de},Se.prototype.sub=function(W,J){this._verify2(W,J);var de=W.sub(J);return de.cmpn(0)<0&&de.iadd(this.m),de._forceRed(this)},Se.prototype.isub=function(W,J){this._verify2(W,J);var de=W.isub(J);return de.cmpn(0)<0&&de.iadd(this.m),de},Se.prototype.shl=function(W,J){return this._verify1(W),this.imod(W.ushln(J))},Se.prototype.imul=function(W,J){return this._verify2(W,J),this.imod(W.imul(J))},Se.prototype.mul=function(W,J){return this._verify2(W,J),this.imod(W.mul(J))},Se.prototype.isqr=function(W){return this.imul(W,W.clone())},Se.prototype.sqr=function(W){return this.mul(W,W)},Se.prototype.sqrt=function(W){if(W.isZero())return W.clone();var J=this.m.andln(3);if(x(J%2==1),3===J){var de=this.m.add(new f(1)).iushrn(2);return this.pow(W,de)}for(var M=this.m.subn(1),F=0;!M.isZero()&&0===M.andln(1);)F++,M.iushrn(1);x(!M.isZero());var P=new f(1).toRed(this),L=P.redNeg(),j=this.m.subn(1).iushrn(1),G=this.m.bitLength();for(G=new f(2*G*G).toRed(this);0!==this.pow(G,j).cmp(L);)G.redIAdd(L);for(var X=this.pow(G,M),se=this.pow(W,M.addn(1).iushrn(1)),ue=this.pow(W,M),Ne=F;0!==ue.cmp(P);){for(var te=ue,Me=0;0!==te.cmp(P);Me++)te=te.redSqr();x(Me=0;M--){for(var G=J.words[M],X=j-1;X>=0;X--){var se=G>>X&1;F!==de[0]&&(F=this.sqr(F)),0!==se||0!==P?(P<<=1,P|=se,(4==++L||0===M&&0===X)&&(F=this.mul(F,de[P]),L=0,P=0)):L=0}j=26}return F},Se.prototype.convertTo=function(W){var J=W.umod(this.m);return J===W?J.clone():J},Se.prototype.convertFrom=function(W){var J=W.clone();return J.red=null,J},f.mont=function(W){return new ve(W)},g(ve,Se),ve.prototype.convertTo=function(W){return this.imod(W.ushln(this.shift))},ve.prototype.convertFrom=function(W){var J=this.imod(W.mul(this.rinv));return J.red=null,J},ve.prototype.imul=function(W,J){if(W.isZero()||J.isZero())return W.words[0]=0,W.length=1,W;var de=W.imul(J),M=de.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=de.isub(M).iushrn(this.shift),P=F;return F.cmp(this.m)>=0?P=F.isub(this.m):F.cmpn(0)<0&&(P=F.iadd(this.m)),P._forceRed(this)},ve.prototype.mul=function(W,J){if(W.isZero()||J.isZero())return new f(0)._forceRed(this);var de=W.mul(J),M=de.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),F=de.isub(M).iushrn(this.shift),P=F;return F.cmp(this.m)>=0?P=F.isub(this.m):F.cmpn(0)<0&&(P=F.iadd(this.m)),P._forceRed(this)},ve.prototype.invm=function(W){return this.imod(W._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===K||K)},{buffer:188}],185:[function(k,K,U){"use strict";U.byteLength=function(v){var A=_(v),D=A[0],E=A[1];return 3*(D+E)/4-E},U.toByteArray=function(v){var A,D,le,E=_(v),O=E[0],T=E[1],z=new x(3*(O+(le=T))/4-le),H=0,Q=T>0?O-4:O;for(D=0;D>16&255,z[H++]=A>>8&255,z[H++]=255&A;return 2===T&&(A=w[v.charCodeAt(D)]<<2|w[v.charCodeAt(D+1)]>>4,z[H++]=255&A),1===T&&(A=w[v.charCodeAt(D)]<<10|w[v.charCodeAt(D+1)]<<4|w[v.charCodeAt(D+2)]>>2,z[H++]=A>>8&255,z[H++]=255&A),z},U.fromByteArray=function(v){for(var A,D=v.length,E=D%3,O=[],T=0,z=D-E;Tz?z:T+16383));return 1===E?(A=v[D-1],O.push(I[A>>2]+I[A<<4&63]+"==")):2===E&&(A=(v[D-2]<<8)+v[D-1],O.push(I[A>>10]+I[A>>4&63]+I[A<<2&63]+"=")),O.join("")};for(var I=[],w=[],x=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,m=g.length;f0)throw new Error("Invalid string. Length must be a multiple of 4");var D=v.indexOf("=");return-1===D&&(D=A),[D,D===A?0:4-D%4]}function b(v,A,D){for(var E,O,T=[],z=A;z>18&63]+I[O>>12&63]+I[O>>6&63]+I[63&O]);return T.join("")}w[45]=62,w[95]=63},{}],186:[function(k,K,U){"use strict";!function(I,w){function x(M,F){if(!M)throw new Error(F||"Assertion failed")}function g(M,F){M.super_=F;var P=function(){};P.prototype=F.prototype,M.prototype=new P,M.prototype.constructor=M}function f(M,F,P){if(f.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,null!==M&&("le"!==F&&"be"!==F||(P=F,F=10),this._init(M||0,F||10,P||"be"))}var m;"object"==typeof I?I.exports=f:(void 0).BN=f,f.BN=f,f.wordSize=26;try{m=typeof window<"u"&&void 0!==window.Buffer?window.Buffer:k("buffer").Buffer}catch{}function _(M,F){var P=M.charCodeAt(F);return P>=48&&P<=57?P-48:P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:void x(!1,"Invalid character in "+M)}function b(M,F,P){var L=_(M,P);return P-1>=F&&(L|=_(M,P-1)<<4),L}function v(M,F,P,L){for(var j=0,G=0,X=Math.min(M.length,P),se=F;se=49?ue-49+10:ue>=17?ue-17+10:ue,x(ue>=0&&G0?M:F},f.min=function(M,F){return M.cmp(F)<0?M:F},f.prototype._init=function(M,F,P){if("number"==typeof M)return this._initNumber(M,F,P);if("object"==typeof M)return this._initArray(M,F,P);"hex"===F&&(F=16),x(F===(0|F)&&F>=2&&F<=36);var L=0;"-"===(M=M.toString().replace(/\s+/g,""))[0]&&(L++,this.negative=1),L=0;L-=3)G=M[L]|M[L-1]<<8|M[L-2]<<16,this.words[j]|=G<>>26-X&67108863,(X+=24)>=26&&(X-=26,j++);else if("le"===P)for(L=0,j=0;L>>26-X&67108863,(X+=24)>=26&&(X-=26,j++);return this._strip()},f.prototype._parseHex=function(M,F,P){this.length=Math.ceil((M.length-F)/6),this.words=new Array(this.length);for(var L=0;L=F;L-=2)j=b(M,F,L)<=18?(G-=18,X+=1,this.words[X]|=j>>>26):G+=8;else for(L=(M.length-F)%2==0?F+1:F;L=18?(G-=18,X+=1,this.words[X]|=j>>>26):G+=8;this._strip()},f.prototype._parseBase=function(M,F,P){this.words=[0],this.length=1;for(var L=0,j=1;j<=67108863;j*=F)L++;L--,j=j/F|0;for(var G=M.length-P,X=G%L,se=Math.min(G,G-X)+P,ue=0,Ne=P;Ne1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{f.prototype[Symbol.for("nodejs.util.inspect.custom")]=D}catch{f.prototype.inspect=D}else f.prototype.inspect=D;function D(){return(this.red?""}var E=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],T=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function z(M,F,P){P.negative=F.negative^M.negative;var L=M.length+F.length|0;P.length=L,L=L-1|0;var j=0|M.words[0],G=0|F.words[0],X=j*G,se=67108863&X,ue=X/67108864|0;P.words[0]=se;for(var Ne=1;Ne>>26,Me=67108863&ue,Z=Math.min(Ne,F.length-1),Y=Math.max(0,Ne-M.length+1);Y<=Z;Y++){var me=Ne-Y|0;te+=(X=(j=0|M.words[me])*(G=0|F.words[Y])+Me)/67108864|0,Me=67108863&X}P.words[Ne]=0|Me,ue=0|te}return 0!==ue?P.words[Ne]=0|ue:P.length--,P._strip()}f.prototype.toString=function(M,F){var P;if(F=0|F||1,16===(M=M||10)||"hex"===M){P="";for(var L=0,j=0,G=0;G>>24-L&16777215,(L+=2)>=26&&(L-=26,G--),P=0!==j||G!==this.length-1?E[6-se.length]+se+P:se+P}for(0!==j&&(P=j.toString(16)+P);P.length%F!=0;)P="0"+P;return 0!==this.negative&&(P="-"+P),P}if(M===(0|M)&&M>=2&&M<=36){var ue=O[M],Ne=T[M];P="";var te=this.clone();for(te.negative=0;!te.isZero();){var Me=te.modrn(Ne).toString(M);P=(te=te.idivn(Ne)).isZero()?Me+P:E[ue-Me.length]+Me+P}for(this.isZero()&&(P="0"+P);P.length%F!=0;)P="0"+P;return 0!==this.negative&&(P="-"+P),P}x(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var M=this.words[0];return 2===this.length?M+=67108864*this.words[1]:3===this.length&&1===this.words[2]?M+=4503599627370496+67108864*this.words[1]:this.length>2&&x(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-M:M},f.prototype.toJSON=function(){return this.toString(16,2)},m&&(f.prototype.toBuffer=function(M,F){return this.toArrayLike(m,M,F)}),f.prototype.toArray=function(M,F){return this.toArrayLike(Array,M,F)},f.prototype.toArrayLike=function(M,F,P){this._strip();var L=this.byteLength(),j=P||Math.max(1,L);x(L<=j,"byte array longer than desired length"),x(j>0,"Requested array length <= 0");var X,se,G=(se=j,(X=M).allocUnsafe?X.allocUnsafe(se):new X(se));return this["_toArrayLike"+("le"===F?"LE":"BE")](G,L),G},f.prototype._toArrayLikeLE=function(M,F){for(var P=0,L=0,j=0,G=0;j>8&255),P>16&255),6===G?(P>24&255),L=0,G=0):(L=X>>>24,G+=2)}if(P=0&&(M[P--]=X>>8&255),P>=0&&(M[P--]=X>>16&255),6===G?(P>=0&&(M[P--]=X>>24&255),L=0,G=0):(L=X>>>24,G+=2)}if(P>=0)for(M[P--]=L;P>=0;)M[P--]=0},Math.clz32?f.prototype._countBits=function(M){return 32-Math.clz32(M)}:f.prototype._countBits=function(M){var F=M,P=0;return F>=4096&&(P+=13,F>>>=13),F>=64&&(P+=7,F>>>=7),F>=8&&(P+=4,F>>>=4),F>=2&&(P+=2,F>>>=2),P+F},f.prototype._zeroBits=function(M){if(0===M)return 26;var F=M,P=0;return!(8191&F)&&(P+=13,F>>>=13),!(127&F)&&(P+=7,F>>>=7),!(15&F)&&(P+=4,F>>>=4),!(3&F)&&(P+=2,F>>>=2),!(1&F)&&P++,P},f.prototype.bitLength=function(){var M=this.words[this.length-1],F=this._countBits(M);return 26*(this.length-1)+F},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var M=0,F=0;FM.length?this.clone().ior(M):M.clone().ior(this)},f.prototype.uor=function(M){return this.length>M.length?this.clone().iuor(M):M.clone().iuor(this)},f.prototype.iuand=function(M){var F;F=this.length>M.length?M:this;for(var P=0;PM.length?this.clone().iand(M):M.clone().iand(this)},f.prototype.uand=function(M){return this.length>M.length?this.clone().iuand(M):M.clone().iuand(this)},f.prototype.iuxor=function(M){var F,P;this.length>M.length?(F=this,P=M):(F=M,P=this);for(var L=0;LM.length?this.clone().ixor(M):M.clone().ixor(this)},f.prototype.uxor=function(M){return this.length>M.length?this.clone().iuxor(M):M.clone().iuxor(this)},f.prototype.inotn=function(M){x("number"==typeof M&&M>=0);var F=0|Math.ceil(M/26),P=M%26;this._expand(F),P>0&&F--;for(var L=0;L0&&(this.words[L]=~this.words[L]&67108863>>26-P),this._strip()},f.prototype.notn=function(M){return this.clone().inotn(M)},f.prototype.setn=function(M,F){x("number"==typeof M&&M>=0);var P=M/26|0,L=M%26;return this._expand(P+1),this.words[P]=F?this.words[P]|1<M.length?(P=this,L=M):(P=M,L=this);for(var j=0,G=0;G>>26;for(;0!==j&&G>>26;if(this.length=P.length,0!==j)this.words[this.length]=j,this.length++;else if(P!==this)for(;GM.length?this.clone().iadd(M):M.clone().iadd(this)},f.prototype.isub=function(M){if(0!==M.negative){M.negative=0;var F=this.iadd(M);return M.negative=1,F._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(M),this.negative=1,this._normSign();var P,L,j=this.cmp(M);if(0===j)return this.negative=0,this.length=1,this.words[0]=0,this;j>0?(P=this,L=M):(P=M,L=this);for(var G=0,X=0;X>26,this.words[X]=67108863&F;for(;0!==G&&X>26,this.words[X]=67108863&F;if(0===G&&X>>13,Y=0|X[1],me=8191&Y,ze=Y>>>13,Je=0|X[2],je=8191&Je,ke=Je>>>13,ye=0|X[3],we=8191&ye,Ee=ye>>>13,He=0|X[4],Xe=8191&He,rt=He>>>13,at=0|X[5],St=8191&at,It=at>>>13,Kt=0|X[6],Ue=8191&Kt,it=Kt>>>13,yt=0|X[7],ft=8191&yt,Nt=yt>>>13,$t=0|X[8],Qt=8191&$t,Ot=$t>>>13,Jt=0|X[9],Mt=8191&Jt,nn=Jt>>>13,Qn=0|se[0],Nn=8191&Qn,Xn=Qn>>>13,Oi=0|se[1],dr=8191&Oi,gr=Oi>>>13,yr=0|se[2],Sr=8191&yr,Pr=yr>>>13,Ja=0|se[3],Or=8191&Ja,ln=Ja>>>13,ia=0|se[4],_r=8191&ia,Ar=ia>>>13,Hr=0|se[5],Yn=8191&Hr,pt=Hr>>>13,kt=0|se[6],en=8191&kt,wn=kt>>>13,At=0|se[7],sn=8191&At,zn=At>>>13,ai=0|se[8],lr=8191&ai,Zn=ai>>>13,ti=0|se[9],Br=8191&ti,Nr=ti>>>13;P.negative=M.negative^F.negative,P.length=19;var si=(Ne+(L=Math.imul(Me,Nn))|0)+((8191&(j=(j=Math.imul(Me,Xn))+Math.imul(Z,Nn)|0))<<13)|0;Ne=((G=Math.imul(Z,Xn))+(j>>>13)|0)+(si>>>26)|0,si&=67108863,L=Math.imul(me,Nn),j=(j=Math.imul(me,Xn))+Math.imul(ze,Nn)|0,G=Math.imul(ze,Xn);var Wr=(Ne+(L=L+Math.imul(Me,dr)|0)|0)+((8191&(j=(j=j+Math.imul(Me,gr)|0)+Math.imul(Z,dr)|0))<<13)|0;Ne=((G=G+Math.imul(Z,gr)|0)+(j>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,L=Math.imul(je,Nn),j=(j=Math.imul(je,Xn))+Math.imul(ke,Nn)|0,G=Math.imul(ke,Xn),L=L+Math.imul(me,dr)|0,j=(j=j+Math.imul(me,gr)|0)+Math.imul(ze,dr)|0,G=G+Math.imul(ze,gr)|0;var ko=(Ne+(L=L+Math.imul(Me,Sr)|0)|0)+((8191&(j=(j=j+Math.imul(Me,Pr)|0)+Math.imul(Z,Sr)|0))<<13)|0;Ne=((G=G+Math.imul(Z,Pr)|0)+(j>>>13)|0)+(ko>>>26)|0,ko&=67108863,L=Math.imul(we,Nn),j=(j=Math.imul(we,Xn))+Math.imul(Ee,Nn)|0,G=Math.imul(Ee,Xn),L=L+Math.imul(je,dr)|0,j=(j=j+Math.imul(je,gr)|0)+Math.imul(ke,dr)|0,G=G+Math.imul(ke,gr)|0,L=L+Math.imul(me,Sr)|0,j=(j=j+Math.imul(me,Pr)|0)+Math.imul(ze,Sr)|0,G=G+Math.imul(ze,Pr)|0;var ma=(Ne+(L=L+Math.imul(Me,Or)|0)|0)+((8191&(j=(j=j+Math.imul(Me,ln)|0)+Math.imul(Z,Or)|0))<<13)|0;Ne=((G=G+Math.imul(Z,ln)|0)+(j>>>13)|0)+(ma>>>26)|0,ma&=67108863,L=Math.imul(Xe,Nn),j=(j=Math.imul(Xe,Xn))+Math.imul(rt,Nn)|0,G=Math.imul(rt,Xn),L=L+Math.imul(we,dr)|0,j=(j=j+Math.imul(we,gr)|0)+Math.imul(Ee,dr)|0,G=G+Math.imul(Ee,gr)|0,L=L+Math.imul(je,Sr)|0,j=(j=j+Math.imul(je,Pr)|0)+Math.imul(ke,Sr)|0,G=G+Math.imul(ke,Pr)|0,L=L+Math.imul(me,Or)|0,j=(j=j+Math.imul(me,ln)|0)+Math.imul(ze,Or)|0,G=G+Math.imul(ze,ln)|0;var eo=(Ne+(L=L+Math.imul(Me,_r)|0)|0)+((8191&(j=(j=j+Math.imul(Me,Ar)|0)+Math.imul(Z,_r)|0))<<13)|0;Ne=((G=G+Math.imul(Z,Ar)|0)+(j>>>13)|0)+(eo>>>26)|0,eo&=67108863,L=Math.imul(St,Nn),j=(j=Math.imul(St,Xn))+Math.imul(It,Nn)|0,G=Math.imul(It,Xn),L=L+Math.imul(Xe,dr)|0,j=(j=j+Math.imul(Xe,gr)|0)+Math.imul(rt,dr)|0,G=G+Math.imul(rt,gr)|0,L=L+Math.imul(we,Sr)|0,j=(j=j+Math.imul(we,Pr)|0)+Math.imul(Ee,Sr)|0,G=G+Math.imul(Ee,Pr)|0,L=L+Math.imul(je,Or)|0,j=(j=j+Math.imul(je,ln)|0)+Math.imul(ke,Or)|0,G=G+Math.imul(ke,ln)|0,L=L+Math.imul(me,_r)|0,j=(j=j+Math.imul(me,Ar)|0)+Math.imul(ze,_r)|0,G=G+Math.imul(ze,Ar)|0;var bi=(Ne+(L=L+Math.imul(Me,Yn)|0)|0)+((8191&(j=(j=j+Math.imul(Me,pt)|0)+Math.imul(Z,Yn)|0))<<13)|0;Ne=((G=G+Math.imul(Z,pt)|0)+(j>>>13)|0)+(bi>>>26)|0,bi&=67108863,L=Math.imul(Ue,Nn),j=(j=Math.imul(Ue,Xn))+Math.imul(it,Nn)|0,G=Math.imul(it,Xn),L=L+Math.imul(St,dr)|0,j=(j=j+Math.imul(St,gr)|0)+Math.imul(It,dr)|0,G=G+Math.imul(It,gr)|0,L=L+Math.imul(Xe,Sr)|0,j=(j=j+Math.imul(Xe,Pr)|0)+Math.imul(rt,Sr)|0,G=G+Math.imul(rt,Pr)|0,L=L+Math.imul(we,Or)|0,j=(j=j+Math.imul(we,ln)|0)+Math.imul(Ee,Or)|0,G=G+Math.imul(Ee,ln)|0,L=L+Math.imul(je,_r)|0,j=(j=j+Math.imul(je,Ar)|0)+Math.imul(ke,_r)|0,G=G+Math.imul(ke,Ar)|0,L=L+Math.imul(me,Yn)|0,j=(j=j+Math.imul(me,pt)|0)+Math.imul(ze,Yn)|0,G=G+Math.imul(ze,pt)|0;var nt=(Ne+(L=L+Math.imul(Me,en)|0)|0)+((8191&(j=(j=j+Math.imul(Me,wn)|0)+Math.imul(Z,en)|0))<<13)|0;Ne=((G=G+Math.imul(Z,wn)|0)+(j>>>13)|0)+(nt>>>26)|0,nt&=67108863,L=Math.imul(ft,Nn),j=(j=Math.imul(ft,Xn))+Math.imul(Nt,Nn)|0,G=Math.imul(Nt,Xn),L=L+Math.imul(Ue,dr)|0,j=(j=j+Math.imul(Ue,gr)|0)+Math.imul(it,dr)|0,G=G+Math.imul(it,gr)|0,L=L+Math.imul(St,Sr)|0,j=(j=j+Math.imul(St,Pr)|0)+Math.imul(It,Sr)|0,G=G+Math.imul(It,Pr)|0,L=L+Math.imul(Xe,Or)|0,j=(j=j+Math.imul(Xe,ln)|0)+Math.imul(rt,Or)|0,G=G+Math.imul(rt,ln)|0,L=L+Math.imul(we,_r)|0,j=(j=j+Math.imul(we,Ar)|0)+Math.imul(Ee,_r)|0,G=G+Math.imul(Ee,Ar)|0,L=L+Math.imul(je,Yn)|0,j=(j=j+Math.imul(je,pt)|0)+Math.imul(ke,Yn)|0,G=G+Math.imul(ke,pt)|0,L=L+Math.imul(me,en)|0,j=(j=j+Math.imul(me,wn)|0)+Math.imul(ze,en)|0,G=G+Math.imul(ze,wn)|0;var Ct=(Ne+(L=L+Math.imul(Me,sn)|0)|0)+((8191&(j=(j=j+Math.imul(Me,zn)|0)+Math.imul(Z,sn)|0))<<13)|0;Ne=((G=G+Math.imul(Z,zn)|0)+(j>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,L=Math.imul(Qt,Nn),j=(j=Math.imul(Qt,Xn))+Math.imul(Ot,Nn)|0,G=Math.imul(Ot,Xn),L=L+Math.imul(ft,dr)|0,j=(j=j+Math.imul(ft,gr)|0)+Math.imul(Nt,dr)|0,G=G+Math.imul(Nt,gr)|0,L=L+Math.imul(Ue,Sr)|0,j=(j=j+Math.imul(Ue,Pr)|0)+Math.imul(it,Sr)|0,G=G+Math.imul(it,Pr)|0,L=L+Math.imul(St,Or)|0,j=(j=j+Math.imul(St,ln)|0)+Math.imul(It,Or)|0,G=G+Math.imul(It,ln)|0,L=L+Math.imul(Xe,_r)|0,j=(j=j+Math.imul(Xe,Ar)|0)+Math.imul(rt,_r)|0,G=G+Math.imul(rt,Ar)|0,L=L+Math.imul(we,Yn)|0,j=(j=j+Math.imul(we,pt)|0)+Math.imul(Ee,Yn)|0,G=G+Math.imul(Ee,pt)|0,L=L+Math.imul(je,en)|0,j=(j=j+Math.imul(je,wn)|0)+Math.imul(ke,en)|0,G=G+Math.imul(ke,wn)|0,L=L+Math.imul(me,sn)|0,j=(j=j+Math.imul(me,zn)|0)+Math.imul(ze,sn)|0,G=G+Math.imul(ze,zn)|0;var Xt=(Ne+(L=L+Math.imul(Me,lr)|0)|0)+((8191&(j=(j=j+Math.imul(Me,Zn)|0)+Math.imul(Z,lr)|0))<<13)|0;Ne=((G=G+Math.imul(Z,Zn)|0)+(j>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,L=Math.imul(Mt,Nn),j=(j=Math.imul(Mt,Xn))+Math.imul(nn,Nn)|0,G=Math.imul(nn,Xn),L=L+Math.imul(Qt,dr)|0,j=(j=j+Math.imul(Qt,gr)|0)+Math.imul(Ot,dr)|0,G=G+Math.imul(Ot,gr)|0,L=L+Math.imul(ft,Sr)|0,j=(j=j+Math.imul(ft,Pr)|0)+Math.imul(Nt,Sr)|0,G=G+Math.imul(Nt,Pr)|0,L=L+Math.imul(Ue,Or)|0,j=(j=j+Math.imul(Ue,ln)|0)+Math.imul(it,Or)|0,G=G+Math.imul(it,ln)|0,L=L+Math.imul(St,_r)|0,j=(j=j+Math.imul(St,Ar)|0)+Math.imul(It,_r)|0,G=G+Math.imul(It,Ar)|0,L=L+Math.imul(Xe,Yn)|0,j=(j=j+Math.imul(Xe,pt)|0)+Math.imul(rt,Yn)|0,G=G+Math.imul(rt,pt)|0,L=L+Math.imul(we,en)|0,j=(j=j+Math.imul(we,wn)|0)+Math.imul(Ee,en)|0,G=G+Math.imul(Ee,wn)|0,L=L+Math.imul(je,sn)|0,j=(j=j+Math.imul(je,zn)|0)+Math.imul(ke,sn)|0,G=G+Math.imul(ke,zn)|0,L=L+Math.imul(me,lr)|0,j=(j=j+Math.imul(me,Zn)|0)+Math.imul(ze,lr)|0,G=G+Math.imul(ze,Zn)|0;var Ut=(Ne+(L=L+Math.imul(Me,Br)|0)|0)+((8191&(j=(j=j+Math.imul(Me,Nr)|0)+Math.imul(Z,Br)|0))<<13)|0;Ne=((G=G+Math.imul(Z,Nr)|0)+(j>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,L=Math.imul(Mt,dr),j=(j=Math.imul(Mt,gr))+Math.imul(nn,dr)|0,G=Math.imul(nn,gr),L=L+Math.imul(Qt,Sr)|0,j=(j=j+Math.imul(Qt,Pr)|0)+Math.imul(Ot,Sr)|0,G=G+Math.imul(Ot,Pr)|0,L=L+Math.imul(ft,Or)|0,j=(j=j+Math.imul(ft,ln)|0)+Math.imul(Nt,Or)|0,G=G+Math.imul(Nt,ln)|0,L=L+Math.imul(Ue,_r)|0,j=(j=j+Math.imul(Ue,Ar)|0)+Math.imul(it,_r)|0,G=G+Math.imul(it,Ar)|0,L=L+Math.imul(St,Yn)|0,j=(j=j+Math.imul(St,pt)|0)+Math.imul(It,Yn)|0,G=G+Math.imul(It,pt)|0,L=L+Math.imul(Xe,en)|0,j=(j=j+Math.imul(Xe,wn)|0)+Math.imul(rt,en)|0,G=G+Math.imul(rt,wn)|0,L=L+Math.imul(we,sn)|0,j=(j=j+Math.imul(we,zn)|0)+Math.imul(Ee,sn)|0,G=G+Math.imul(Ee,zn)|0,L=L+Math.imul(je,lr)|0,j=(j=j+Math.imul(je,Zn)|0)+Math.imul(ke,lr)|0,G=G+Math.imul(ke,Zn)|0;var Tn=(Ne+(L=L+Math.imul(me,Br)|0)|0)+((8191&(j=(j=j+Math.imul(me,Nr)|0)+Math.imul(ze,Br)|0))<<13)|0;Ne=((G=G+Math.imul(ze,Nr)|0)+(j>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,L=Math.imul(Mt,Sr),j=(j=Math.imul(Mt,Pr))+Math.imul(nn,Sr)|0,G=Math.imul(nn,Pr),L=L+Math.imul(Qt,Or)|0,j=(j=j+Math.imul(Qt,ln)|0)+Math.imul(Ot,Or)|0,G=G+Math.imul(Ot,ln)|0,L=L+Math.imul(ft,_r)|0,j=(j=j+Math.imul(ft,Ar)|0)+Math.imul(Nt,_r)|0,G=G+Math.imul(Nt,Ar)|0,L=L+Math.imul(Ue,Yn)|0,j=(j=j+Math.imul(Ue,pt)|0)+Math.imul(it,Yn)|0,G=G+Math.imul(it,pt)|0,L=L+Math.imul(St,en)|0,j=(j=j+Math.imul(St,wn)|0)+Math.imul(It,en)|0,G=G+Math.imul(It,wn)|0,L=L+Math.imul(Xe,sn)|0,j=(j=j+Math.imul(Xe,zn)|0)+Math.imul(rt,sn)|0,G=G+Math.imul(rt,zn)|0,L=L+Math.imul(we,lr)|0,j=(j=j+Math.imul(we,Zn)|0)+Math.imul(Ee,lr)|0,G=G+Math.imul(Ee,Zn)|0;var Vn=(Ne+(L=L+Math.imul(je,Br)|0)|0)+((8191&(j=(j=j+Math.imul(je,Nr)|0)+Math.imul(ke,Br)|0))<<13)|0;Ne=((G=G+Math.imul(ke,Nr)|0)+(j>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,L=Math.imul(Mt,Or),j=(j=Math.imul(Mt,ln))+Math.imul(nn,Or)|0,G=Math.imul(nn,ln),L=L+Math.imul(Qt,_r)|0,j=(j=j+Math.imul(Qt,Ar)|0)+Math.imul(Ot,_r)|0,G=G+Math.imul(Ot,Ar)|0,L=L+Math.imul(ft,Yn)|0,j=(j=j+Math.imul(ft,pt)|0)+Math.imul(Nt,Yn)|0,G=G+Math.imul(Nt,pt)|0,L=L+Math.imul(Ue,en)|0,j=(j=j+Math.imul(Ue,wn)|0)+Math.imul(it,en)|0,G=G+Math.imul(it,wn)|0,L=L+Math.imul(St,sn)|0,j=(j=j+Math.imul(St,zn)|0)+Math.imul(It,sn)|0,G=G+Math.imul(It,zn)|0,L=L+Math.imul(Xe,lr)|0,j=(j=j+Math.imul(Xe,Zn)|0)+Math.imul(rt,lr)|0,G=G+Math.imul(rt,Zn)|0;var ur=(Ne+(L=L+Math.imul(we,Br)|0)|0)+((8191&(j=(j=j+Math.imul(we,Nr)|0)+Math.imul(Ee,Br)|0))<<13)|0;Ne=((G=G+Math.imul(Ee,Nr)|0)+(j>>>13)|0)+(ur>>>26)|0,ur&=67108863,L=Math.imul(Mt,_r),j=(j=Math.imul(Mt,Ar))+Math.imul(nn,_r)|0,G=Math.imul(nn,Ar),L=L+Math.imul(Qt,Yn)|0,j=(j=j+Math.imul(Qt,pt)|0)+Math.imul(Ot,Yn)|0,G=G+Math.imul(Ot,pt)|0,L=L+Math.imul(ft,en)|0,j=(j=j+Math.imul(ft,wn)|0)+Math.imul(Nt,en)|0,G=G+Math.imul(Nt,wn)|0,L=L+Math.imul(Ue,sn)|0,j=(j=j+Math.imul(Ue,zn)|0)+Math.imul(it,sn)|0,G=G+Math.imul(it,zn)|0,L=L+Math.imul(St,lr)|0,j=(j=j+Math.imul(St,Zn)|0)+Math.imul(It,lr)|0,G=G+Math.imul(It,Zn)|0;var Dn=(Ne+(L=L+Math.imul(Xe,Br)|0)|0)+((8191&(j=(j=j+Math.imul(Xe,Nr)|0)+Math.imul(rt,Br)|0))<<13)|0;Ne=((G=G+Math.imul(rt,Nr)|0)+(j>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,L=Math.imul(Mt,Yn),j=(j=Math.imul(Mt,pt))+Math.imul(nn,Yn)|0,G=Math.imul(nn,pt),L=L+Math.imul(Qt,en)|0,j=(j=j+Math.imul(Qt,wn)|0)+Math.imul(Ot,en)|0,G=G+Math.imul(Ot,wn)|0,L=L+Math.imul(ft,sn)|0,j=(j=j+Math.imul(ft,zn)|0)+Math.imul(Nt,sn)|0,G=G+Math.imul(Nt,zn)|0,L=L+Math.imul(Ue,lr)|0,j=(j=j+Math.imul(Ue,Zn)|0)+Math.imul(it,lr)|0,G=G+Math.imul(it,Zn)|0;var Wt=(Ne+(L=L+Math.imul(St,Br)|0)|0)+((8191&(j=(j=j+Math.imul(St,Nr)|0)+Math.imul(It,Br)|0))<<13)|0;Ne=((G=G+Math.imul(It,Nr)|0)+(j>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,L=Math.imul(Mt,en),j=(j=Math.imul(Mt,wn))+Math.imul(nn,en)|0,G=Math.imul(nn,wn),L=L+Math.imul(Qt,sn)|0,j=(j=j+Math.imul(Qt,zn)|0)+Math.imul(Ot,sn)|0,G=G+Math.imul(Ot,zn)|0,L=L+Math.imul(ft,lr)|0,j=(j=j+Math.imul(ft,Zn)|0)+Math.imul(Nt,lr)|0,G=G+Math.imul(Nt,Zn)|0;var Gn=(Ne+(L=L+Math.imul(Ue,Br)|0)|0)+((8191&(j=(j=j+Math.imul(Ue,Nr)|0)+Math.imul(it,Br)|0))<<13)|0;Ne=((G=G+Math.imul(it,Nr)|0)+(j>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,L=Math.imul(Mt,sn),j=(j=Math.imul(Mt,zn))+Math.imul(nn,sn)|0,G=Math.imul(nn,zn),L=L+Math.imul(Qt,lr)|0,j=(j=j+Math.imul(Qt,Zn)|0)+Math.imul(Ot,lr)|0,G=G+Math.imul(Ot,Zn)|0;var Sn=(Ne+(L=L+Math.imul(ft,Br)|0)|0)+((8191&(j=(j=j+Math.imul(ft,Nr)|0)+Math.imul(Nt,Br)|0))<<13)|0;Ne=((G=G+Math.imul(Nt,Nr)|0)+(j>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,L=Math.imul(Mt,lr),j=(j=Math.imul(Mt,Zn))+Math.imul(nn,lr)|0,G=Math.imul(nn,Zn);var Ao=(Ne+(L=L+Math.imul(Qt,Br)|0)|0)+((8191&(j=(j=j+Math.imul(Qt,Nr)|0)+Math.imul(Ot,Br)|0))<<13)|0;Ne=((G=G+Math.imul(Ot,Nr)|0)+(j>>>13)|0)+(Ao>>>26)|0,Ao&=67108863;var Di=(Ne+(L=Math.imul(Mt,Br))|0)+((8191&(j=(j=Math.imul(Mt,Nr))+Math.imul(nn,Br)|0))<<13)|0;return Ne=((G=Math.imul(nn,Nr))+(j>>>13)|0)+(Di>>>26)|0,Di&=67108863,ue[0]=si,ue[1]=Wr,ue[2]=ko,ue[3]=ma,ue[4]=eo,ue[5]=bi,ue[6]=nt,ue[7]=Ct,ue[8]=Xt,ue[9]=Ut,ue[10]=Tn,ue[11]=Vn,ue[12]=ur,ue[13]=Dn,ue[14]=Wt,ue[15]=Gn,ue[16]=Sn,ue[17]=Ao,ue[18]=Di,0!==Ne&&(ue[19]=Ne,P.length++),P};function Q(M,F,P){P.negative=F.negative^M.negative,P.length=M.length+F.length;for(var L=0,j=0,G=0;G>>26)|0)>>>26,X&=67108863}P.words[G]=se,L=X,X=j}return 0!==L?P.words[G]=L:P.length--,P._strip()}function ae(M,F,P){return Q(M,F,P)}function ge(M,F){this.x=M,this.y=F}Math.imul||(H=z),f.prototype.mulTo=function(M,F){var P=this.length+M.length;return 10===this.length&&10===M.length?H(this,M,F):P<63?z(this,M,F):P<1024?Q(this,M,F):ae(this,M,F)},ge.prototype.makeRBT=function(M){for(var F=new Array(M),P=f.prototype._countBits(M)-1,L=0;L>=1;return L},ge.prototype.permute=function(M,F,P,L,j,G){for(var X=0;X>>=1)j++;return 1<>>=13,P[2*G+1]=8191&j,j>>>=13;for(G=2*F;G>=26,P+=j/67108864|0,P+=G>>>26,this.words[L]=67108863&G}return 0!==P&&(this.words[L]=P,this.length++),F?this.ineg():this},f.prototype.muln=function(M){return this.clone().imuln(M)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(M){var F=function(G){for(var X=new Array(G.bitLength()),se=0;se>>Ne&1}return X}(M);if(0===F.length)return new f(1);for(var P=this,L=0;L=0);var F,P=M%26,L=(M-P)/26,j=67108863>>>26-P<<26-P;if(0!==P){var G=0;for(F=0;F>>26-P}G&&(this.words[F]=G,this.length++)}if(0!==L){for(F=this.length-1;F>=0;F--)this.words[F+L]=this.words[F];for(F=0;F=0),L=F?(F-F%26)/26:0;var j=M%26,G=Math.min((M-j)/26,this.length),X=67108863^67108863>>>j<G)for(this.length-=G,ue=0;ue=0&&(0!==Ne||ue>=L);ue--){var te=0|this.words[ue];this.words[ue]=Ne<<26-j|te>>>j,Ne=te&X}return se&&0!==Ne&&(se.words[se.length++]=Ne),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(M,F,P){return x(0===this.negative),this.iushrn(M,F,P)},f.prototype.shln=function(M){return this.clone().ishln(M)},f.prototype.ushln=function(M){return this.clone().iushln(M)},f.prototype.shrn=function(M){return this.clone().ishrn(M)},f.prototype.ushrn=function(M){return this.clone().iushrn(M)},f.prototype.testn=function(M){x("number"==typeof M&&M>=0);var F=M%26,P=(M-F)/26,L=1<=0);var F=M%26,P=(M-F)/26;if(x(0===this.negative,"imaskn works only with positive numbers"),this.length<=P)return this;if(0!==F&&P++,this.length=Math.min(P,this.length),0!==F){var L=67108863^67108863>>>F<=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},f.prototype.isubn=function(M){if(x("number"==typeof M),x(M<67108864),M<0)return this.iaddn(-M);if(0!==this.negative)return this.negative=0,this.iaddn(M),this.negative=1,this;if(this.words[0]-=M,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F>26)-(se/67108864|0),this.words[L+P]=67108863&j}for(;L>26,this.words[L+P]=67108863&j;if(0===X)return this._strip();for(x(-1===X),X=0,L=0;L>26,this.words[L]=67108863&j;return this.negative=1,this._strip()},f.prototype._wordDiv=function(M,F){var P=(this.length,M.length),L=this.clone(),j=M,G=0|j.words[j.length-1];0!=(P=26-this._countBits(G))&&(j=j.ushln(P),L.iushln(P),G=0|j.words[j.length-1]);var X,se=L.length-j.length;if("mod"!==F){(X=new f(null)).length=se+1,X.words=new Array(X.length);for(var ue=0;ue=0;te--){var Me=67108864*(0|L.words[j.length+te])+(0|L.words[j.length+te-1]);for(Me=Math.min(Me/G|0,67108863),L._ishlnsubmul(j,Me,te);0!==L.negative;)Me--,L.negative=0,L._ishlnsubmul(j,1,te),L.isZero()||(L.negative^=1);X&&(X.words[te]=Me)}return X&&X._strip(),L._strip(),"div"!==F&&0!==P&&L.iushrn(P),{div:X||null,mod:L}},f.prototype.divmod=function(M,F,P){return x(!M.isZero()),this.isZero()?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===M.negative?(G=this.neg().divmod(M,F),"mod"!==F&&(L=G.div.neg()),"div"!==F&&(j=G.mod.neg(),P&&0!==j.negative&&j.iadd(M)),{div:L,mod:j}):0===this.negative&&0!==M.negative?(G=this.divmod(M.neg(),F),"mod"!==F&&(L=G.div.neg()),{div:L,mod:G.mod}):this.negative&M.negative?(G=this.neg().divmod(M.neg(),F),"div"!==F&&(j=G.mod.neg(),P&&0!==j.negative&&j.isub(M)),{div:G.div,mod:j}):M.length>this.length||this.cmp(M)<0?{div:new f(0),mod:this}:1===M.length?"div"===F?{div:this.divn(M.words[0]),mod:null}:"mod"===F?{div:null,mod:new f(this.modrn(M.words[0]))}:{div:this.divn(M.words[0]),mod:new f(this.modrn(M.words[0]))}:this._wordDiv(M,F);var L,j,G},f.prototype.div=function(M){return this.divmod(M,"div",!1).div},f.prototype.mod=function(M){return this.divmod(M,"mod",!1).mod},f.prototype.umod=function(M){return this.divmod(M,"mod",!0).mod},f.prototype.divRound=function(M){var F=this.divmod(M);if(F.mod.isZero())return F.div;var P=0!==F.div.negative?F.mod.isub(M):F.mod,L=M.ushrn(1),j=M.andln(1),G=P.cmp(L);return G<0||1===j&&0===G?F.div:0!==F.div.negative?F.div.isubn(1):F.div.iaddn(1)},f.prototype.modrn=function(M){var F=M<0;F&&(M=-M),x(M<=67108863);for(var P=(1<<26)%M,L=0,j=this.length-1;j>=0;j--)L=(P*L+(0|this.words[j]))%M;return F?-L:L},f.prototype.modn=function(M){return this.modrn(M)},f.prototype.idivn=function(M){var F=M<0;F&&(M=-M),x(M<=67108863);for(var P=0,L=this.length-1;L>=0;L--){var j=(0|this.words[L])+67108864*P;this.words[L]=j/M|0,P=j%M}return this._strip(),F?this.ineg():this},f.prototype.divn=function(M){return this.clone().idivn(M)},f.prototype.egcd=function(M){x(0===M.negative),x(!M.isZero());var F=this,P=M.clone();F=0!==F.negative?F.umod(M):F.clone();for(var L=new f(1),j=new f(0),G=new f(0),X=new f(1),se=0;F.isEven()&&P.isEven();)F.iushrn(1),P.iushrn(1),++se;for(var ue=P.clone(),Ne=F.clone();!F.isZero();){for(var te=0,Me=1;!(F.words[0]&Me)&&te<26;++te,Me<<=1);if(te>0)for(F.iushrn(te);te-- >0;)(L.isOdd()||j.isOdd())&&(L.iadd(ue),j.isub(Ne)),L.iushrn(1),j.iushrn(1);for(var Z=0,Y=1;!(P.words[0]&Y)&&Z<26;++Z,Y<<=1);if(Z>0)for(P.iushrn(Z);Z-- >0;)(G.isOdd()||X.isOdd())&&(G.iadd(ue),X.isub(Ne)),G.iushrn(1),X.iushrn(1);F.cmp(P)>=0?(F.isub(P),L.isub(G),j.isub(X)):(P.isub(F),G.isub(L),X.isub(j))}return{a:G,b:X,gcd:P.iushln(se)}},f.prototype._invmp=function(M){x(0===M.negative),x(!M.isZero());var F=this,P=M.clone();F=0!==F.negative?F.umod(M):F.clone();for(var L,j=new f(1),G=new f(0),X=P.clone();F.cmpn(1)>0&&P.cmpn(1)>0;){for(var se=0,ue=1;!(F.words[0]&ue)&&se<26;++se,ue<<=1);if(se>0)for(F.iushrn(se);se-- >0;)j.isOdd()&&j.iadd(X),j.iushrn(1);for(var Ne=0,te=1;!(P.words[0]&te)&&Ne<26;++Ne,te<<=1);if(Ne>0)for(P.iushrn(Ne);Ne-- >0;)G.isOdd()&&G.iadd(X),G.iushrn(1);F.cmp(P)>=0?(F.isub(P),j.isub(G)):(P.isub(F),G.isub(j))}return(L=0===F.cmpn(1)?j:G).cmpn(0)<0&&L.iadd(M),L},f.prototype.gcd=function(M){if(this.isZero())return M.abs();if(M.isZero())return this.abs();var F=this.clone(),P=M.clone();F.negative=0,P.negative=0;for(var L=0;F.isEven()&&P.isEven();L++)F.iushrn(1),P.iushrn(1);for(;;){for(;F.isEven();)F.iushrn(1);for(;P.isEven();)P.iushrn(1);var j=F.cmp(P);if(j<0){var G=F;F=P,P=G}else if(0===j||0===P.cmpn(1))break;F.isub(P)}return P.iushln(L)},f.prototype.invm=function(M){return this.egcd(M).a.umod(M)},f.prototype.isEven=function(){return!(1&this.words[0])},f.prototype.isOdd=function(){return!(1&~this.words[0])},f.prototype.andln=function(M){return this.words[0]&M},f.prototype.bincn=function(M){x("number"==typeof M);var F=M%26,P=(M-F)/26,L=1<>>26,X&=67108863,this.words[G]=X}return 0!==j&&(this.words[G]=j,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(M){var F,P=M<0;if(0!==this.negative&&!P)return-1;if(0===this.negative&&P)return 1;if(this._strip(),this.length>1)F=1;else{P&&(M=-M),x(M<=67108863,"Number is too big");var L=0|this.words[0];F=L===M?0:LM.length)return 1;if(this.length=0;P--){var L=0|this.words[P],j=0|M.words[P];if(L!==j){Lj&&(F=1);break}}return F},f.prototype.gtn=function(M){return 1===this.cmpn(M)},f.prototype.gt=function(M){return 1===this.cmp(M)},f.prototype.gten=function(M){return this.cmpn(M)>=0},f.prototype.gte=function(M){return this.cmp(M)>=0},f.prototype.ltn=function(M){return-1===this.cmpn(M)},f.prototype.lt=function(M){return-1===this.cmp(M)},f.prototype.lten=function(M){return this.cmpn(M)<=0},f.prototype.lte=function(M){return this.cmp(M)<=0},f.prototype.eqn=function(M){return 0===this.cmpn(M)},f.prototype.eq=function(M){return 0===this.cmp(M)},f.red=function(M){return new J(M)},f.prototype.toRed=function(M){return x(!this.red,"Already a number in reduction context"),x(0===this.negative,"red works only with positives"),M.convertTo(this)._forceRed(M)},f.prototype.fromRed=function(){return x(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(M){return this.red=M,this},f.prototype.forceRed=function(M){return x(!this.red,"Already a number in reduction context"),this._forceRed(M)},f.prototype.redAdd=function(M){return x(this.red,"redAdd works only with red numbers"),this.red.add(this,M)},f.prototype.redIAdd=function(M){return x(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,M)},f.prototype.redSub=function(M){return x(this.red,"redSub works only with red numbers"),this.red.sub(this,M)},f.prototype.redISub=function(M){return x(this.red,"redISub works only with red numbers"),this.red.isub(this,M)},f.prototype.redShl=function(M){return x(this.red,"redShl works only with red numbers"),this.red.shl(this,M)},f.prototype.redMul=function(M){return x(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.mul(this,M)},f.prototype.redIMul=function(M){return x(this.red,"redMul works only with red numbers"),this.red._verify2(this,M),this.red.imul(this,M)},f.prototype.redSqr=function(){return x(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return x(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return x(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return x(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return x(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(M){return x(this.red&&!M.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,M)};var le={k256:null,p224:null,p192:null,p25519:null};function fe(M,F){this.name=M,this.p=new f(F,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function be(){fe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Se(){fe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ve(){fe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function W(){fe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(M){if("string"==typeof M){var F=f._prime(M);this.m=F.p,this.prime=F}else x(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}function de(M){J.call(this,M),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}fe.prototype._tmp=function(){var M=new f(null);return M.words=new Array(Math.ceil(this.n/13)),M},fe.prototype.ireduce=function(M){var F,P=M;do{this.split(P,this.tmp),F=(P=(P=this.imulK(P)).iadd(this.tmp)).bitLength()}while(F>this.n);var L=F0?P.isub(this.p):void 0!==P.strip?P.strip():P._strip(),P},fe.prototype.split=function(M,F){M.iushrn(this.n,0,F)},fe.prototype.imulK=function(M){return M.imul(this.k)},g(be,fe),be.prototype.split=function(M,F){for(var P=Math.min(M.length,9),L=0;L>>22,j=G}j>>>=22,M.words[L-10]=j,0===j&&M.length>10?M.length-=10:M.length-=9},be.prototype.imulK=function(M){M.words[M.length]=0,M.words[M.length+1]=0,M.length+=2;for(var F=0,P=0;P>>=26,M.words[P]=j,F=L}return 0!==F&&(M.words[M.length++]=F),M},f._prime=function(M){if(le[M])return le[M];var F;if("k256"===M)F=new be;else if("p224"===M)F=new Se;else if("p192"===M)F=new ve;else{if("p25519"!==M)throw new Error("Unknown prime "+M);F=new W}return le[M]=F,F},J.prototype._verify1=function(M){x(0===M.negative,"red works only with positives"),x(M.red,"red works only with red numbers")},J.prototype._verify2=function(M,F){x(!(M.negative|F.negative),"red works only with positives"),x(M.red&&M.red===F.red,"red works only with red numbers")},J.prototype.imod=function(M){return this.prime?this.prime.ireduce(M)._forceRed(this):(A(M,M.umod(this.m)._forceRed(this)),M)},J.prototype.neg=function(M){return M.isZero()?M.clone():this.m.sub(M)._forceRed(this)},J.prototype.add=function(M,F){this._verify2(M,F);var P=M.add(F);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},J.prototype.iadd=function(M,F){this._verify2(M,F);var P=M.iadd(F);return P.cmp(this.m)>=0&&P.isub(this.m),P},J.prototype.sub=function(M,F){this._verify2(M,F);var P=M.sub(F);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},J.prototype.isub=function(M,F){this._verify2(M,F);var P=M.isub(F);return P.cmpn(0)<0&&P.iadd(this.m),P},J.prototype.shl=function(M,F){return this._verify1(M),this.imod(M.ushln(F))},J.prototype.imul=function(M,F){return this._verify2(M,F),this.imod(M.imul(F))},J.prototype.mul=function(M,F){return this._verify2(M,F),this.imod(M.mul(F))},J.prototype.isqr=function(M){return this.imul(M,M.clone())},J.prototype.sqr=function(M){return this.mul(M,M)},J.prototype.sqrt=function(M){if(M.isZero())return M.clone();var F=this.m.andln(3);if(x(F%2==1),3===F){var P=this.m.add(new f(1)).iushrn(2);return this.pow(M,P)}for(var L=this.m.subn(1),j=0;!L.isZero()&&0===L.andln(1);)j++,L.iushrn(1);x(!L.isZero());var G=new f(1).toRed(this),X=G.redNeg(),se=this.m.subn(1).iushrn(1),ue=this.m.bitLength();for(ue=new f(2*ue*ue).toRed(this);0!==this.pow(ue,se).cmp(X);)ue.redIAdd(X);for(var Ne=this.pow(ue,L),te=this.pow(M,L.addn(1).iushrn(1)),Me=this.pow(M,L),Z=j;0!==Me.cmp(G);){for(var Y=Me,me=0;0!==Y.cmp(G);me++)Y=Y.redSqr();x(me=0;L--){for(var ue=F.words[L],Ne=se-1;Ne>=0;Ne--){var te=ue>>Ne&1;j!==P[0]&&(j=this.sqr(j)),0!==te||0!==G?(G<<=1,G|=te,(4==++X||0===L&&0===Ne)&&(j=this.mul(j,P[G]),X=0,G=0)):X=0}se=26}return j},J.prototype.convertTo=function(M){var F=M.umod(this.m);return F===M?F.clone():F},J.prototype.convertFrom=function(M){var F=M.clone();return F.red=null,F},f.mont=function(M){return new de(M)},g(de,J),de.prototype.convertTo=function(M){return this.imod(M.ushln(this.shift))},de.prototype.convertFrom=function(M){var F=this.imod(M.mul(this.rinv));return F.red=null,F},de.prototype.imul=function(M,F){if(M.isZero()||F.isZero())return M.words[0]=0,M.length=1,M;var P=M.imul(F),L=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=P.isub(L).iushrn(this.shift),G=j;return j.cmp(this.m)>=0?G=j.isub(this.m):j.cmpn(0)<0&&(G=j.iadd(this.m)),G._forceRed(this)},de.prototype.mul=function(M,F){if(M.isZero()||F.isZero())return new f(0)._forceRed(this);var P=M.mul(F),L=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=P.isub(L).iushrn(this.shift),G=j;return j.cmp(this.m)>=0?G=j.isub(this.m):j.cmpn(0)<0&&(G=j.iadd(this.m)),G._forceRed(this)},de.prototype.invm=function(M){return this.imod(M._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===K||K)},{buffer:188}],187:[function(k,K,U){"use strict";var I;function w(g){this.rand=g}if(K.exports=function(g){return I||(I=new w(null)),I.generate(g)},K.exports.Rand=w,w.prototype.generate=function(g){return this._rand(g)},w.prototype._rand=function(g){if(this.rand.getBytes)return this.rand.getBytes(g);for(var f=new Uint8Array(g),m=0;m>>24]^ae[be>>>16&255]^ge[Se>>>8&255]^le[255&ve]^v[W++],T=Q[be>>>24]^ae[Se>>>16&255]^ge[ve>>>8&255]^le[255&fe]^v[W++],z=Q[Se>>>24]^ae[ve>>>16&255]^ge[fe>>>8&255]^le[255&be]^v[W++],H=Q[ve>>>24]^ae[fe>>>16&255]^ge[be>>>8&255]^le[255&Se]^v[W++],fe=O,be=T,Se=z,ve=H;return O=(D[fe>>>24]<<24|D[be>>>16&255]<<16|D[Se>>>8&255]<<8|D[255&ve])^v[W++],T=(D[be>>>24]<<24|D[Se>>>16&255]<<16|D[ve>>>8&255]<<8|D[255&fe])^v[W++],z=(D[Se>>>24]<<24|D[ve>>>16&255]<<16|D[fe>>>8&255]<<8|D[255&be])^v[W++],H=(D[ve>>>24]<<24|D[fe>>>16&255]<<16|D[be>>>8&255]<<8|D[255&Se])^v[W++],[O>>>=0,T>>>=0,z>>>=0,H>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],m=function(){for(var b=new Array(256),v=0;v<256;v++)b[v]=v<128?v<<1:v<<1^283;for(var A=[],D=[],E=[[],[],[],[]],O=[[],[],[],[]],T=0,z=0,H=0;H<256;++H){var Q=z^z<<1^z<<2^z<<3^z<<4;Q=Q>>>8^255&Q^99,A[T]=Q,D[Q]=T;var ae=b[T],ge=b[ae],le=b[ge],fe=257*b[Q]^16843008*Q;E[0][T]=fe<<24|fe>>>8,E[1][T]=fe<<16|fe>>>16,E[2][T]=fe<<8|fe>>>24,E[3][T]=fe,fe=16843009*le^65537*ge^257*ae^16843008*T,O[0][Q]=fe<<24|fe>>>8,O[1][Q]=fe<<16|fe>>>16,O[2][Q]=fe<<8|fe>>>24,O[3][Q]=fe,0===T?T=z=1:(T=ae^b[b[b[le^ae]]],z^=b[b[z]])}return{SBOX:A,INV_SBOX:D,SUB_MIX:E,INV_SUB_MIX:O}}();function _(b){this._key=w(b),this._reset()}_.blockSize=16,_.keySize=32,_.prototype.blockSize=_.blockSize,_.prototype.keySize=_.keySize,_.prototype._reset=function(){for(var b=this._key,v=b.length,A=v+6,D=4*(A+1),E=[],O=0;O>>24,T=m.SBOX[T>>>24]<<24|m.SBOX[T>>>16&255]<<16|m.SBOX[T>>>8&255]<<8|m.SBOX[255&T],T^=f[O/v|0]<<24):v>6&&O%v==4&&(T=m.SBOX[T>>>24]<<24|m.SBOX[T>>>16&255]<<16|m.SBOX[T>>>8&255]<<8|m.SBOX[255&T]),E[O]=E[O-v]^T}for(var z=[],H=0;H>>24]]^m.INV_SUB_MIX[1][m.SBOX[ae>>>16&255]]^m.INV_SUB_MIX[2][m.SBOX[ae>>>8&255]]^m.INV_SUB_MIX[3][m.SBOX[255&ae]]}this._nRounds=A,this._keySchedule=E,this._invKeySchedule=z},_.prototype.encryptBlockRaw=function(b){return g(b=w(b),this._keySchedule,m.SUB_MIX,m.SBOX,this._nRounds)},_.prototype.encryptBlock=function(b){var v=this.encryptBlockRaw(b),A=I.allocUnsafe(16);return A.writeUInt32BE(v[0],0),A.writeUInt32BE(v[1],4),A.writeUInt32BE(v[2],8),A.writeUInt32BE(v[3],12),A},_.prototype.decryptBlock=function(b){var v=(b=w(b))[1];b[1]=b[3],b[3]=v;var A=g(b,this._invKeySchedule,m.INV_SUB_MIX,m.INV_SBOX,this._nRounds),D=I.allocUnsafe(16);return D.writeUInt32BE(A[0],0),D.writeUInt32BE(A[3],4),D.writeUInt32BE(A[2],8),D.writeUInt32BE(A[1],12),D},_.prototype.scrub=function(){x(this._keySchedule),x(this._invKeySchedule),x(this._key)},K.exports.AES=_},{"safe-buffer":494}],190:[function(k,K,U){"use strict";var I=k("./aes"),w=k("safe-buffer").Buffer,x=k("cipher-base"),g=k("inherits"),f=k("./ghash"),m=k("buffer-xor"),_=k("./incr32");function b(v,A,D,E){x.call(this);var O=w.alloc(4,0);this._cipher=new I.AES(A);var T=this._cipher.encryptBlock(O);this._ghash=new f(T),D=function(z,H,Q){if(12===H.length)return z._finID=w.concat([H,w.from([0,0,0,1])]),w.concat([H,w.from([0,0,0,2])]);var ae=new f(Q),ge=H.length,le=ge%16;ae.update(H),le&&(le=16-le,ae.update(w.alloc(le,0))),ae.update(w.alloc(8,0));var fe=8*ge,be=w.alloc(8);be.writeUIntBE(fe,0,8),ae.update(be),z._finID=ae.state;var Se=w.from(z._finID);return _(Se),Se}(this,D,T),this._prev=w.from(D),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=E,this._alen=0,this._len=0,this._mode=v,this._authTag=null,this._called=!1}g(b,x),b.prototype._update=function(v){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=w.alloc(A,0),this._ghash.update(A))}this._called=!0;var D=this._mode.encrypt(this,v);return this._decrypt?this._ghash.update(v):this._ghash.update(D),this._len+=v.length,D},b.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var v=m(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(A,D){var E=0;A.length!==D.length&&E++;for(var O=Math.min(A.length,D.length),T=0;T16)throw new Error("unable to decrypt data");for(var T=-1;++T16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E}else if(this.cache.length>=16)return E=this.cache.slice(0,16),this.cache=this.cache.slice(16),E;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},U.createDecipher=function(D,E){var O=x[D.toLowerCase()];if(!O)throw new TypeError("invalid suite type");var T=_(E,!1,O.key,O.iv);return A(D,T.key,T.iv)},U.createDecipheriv=A},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(k,K,U){"use strict";var I=k("./modes"),w=k("./authCipher"),x=k("safe-buffer").Buffer,g=k("./streamCipher"),f=k("cipher-base"),m=k("./aes"),_=k("evp_bytestokey");function b(E,O,T){f.call(this),this._cache=new A,this._cipher=new m.AES(O),this._prev=x.from(T),this._mode=E,this._autopadding=!0}k("inherits")(b,f),b.prototype._update=function(E){var O,T;this._cache.add(E);for(var z=[];O=this._cache.get();)T=this._mode.encrypt(this,O),z.push(T);return x.concat(z)};var v=x.alloc(16,16);function A(){this.cache=x.allocUnsafe(0)}function D(E,O,T){var z=I[E.toLowerCase()];if(!z)throw new TypeError("invalid suite type");if("string"==typeof O&&(O=x.from(O)),O.length!==z.key/8)throw new TypeError("invalid key length "+O.length);if("string"==typeof T&&(T=x.from(T)),"GCM"!==z.mode&&T.length!==z.iv)throw new TypeError("invalid iv length "+T.length);return"stream"===z.type?new g(z.module,O,T):"auth"===z.type?new w(z.module,O,T):new b(z.module,O,T)}b.prototype._final=function(){var E=this._cache.flush();if(this._autopadding)return E=this._mode.encrypt(this,E),this._cipher.scrub(),E;if(!E.equals(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},b.prototype.setAutoPadding=function(E){return this._autopadding=!!E,this},A.prototype.add=function(E){this.cache=x.concat([this.cache,E])},A.prototype.get=function(){if(this.cache.length>15){var E=this.cache.slice(0,16);return this.cache=this.cache.slice(16),E}return null},A.prototype.flush=function(){for(var E=16-this.cache.length,O=x.allocUnsafe(E),T=-1;++T>>0,0),m.writeUInt32BE(f[1]>>>0,4),m.writeUInt32BE(f[2]>>>0,8),m.writeUInt32BE(f[3]>>>0,12),m}function g(f){this.h=f,this.state=I.alloc(16,0),this.cache=I.allocUnsafe(0)}g.prototype.ghash=function(f){for(var m=-1;++m0;m--)b[m]=b[m]>>>1|(1&b[m-1])<<31;b[0]=b[0]>>>1,_&&(b[0]=b[0]^225<<24)}this.state=x(v)},g.prototype.update=function(f){var m;for(this.cache=I.concat([this.cache,f]);this.cache.length>=16;)m=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(m)},g.prototype.final=function(f,m){return this.cache.length&&this.ghash(I.concat([this.cache,w],16)),this.ghash(x([0,f,0,m])),this.state},K.exports=g},{"safe-buffer":494}],195:[function(k,K,U){"use strict";K.exports=function(I){for(var w,x=I.length;x--;){if(255!==(w=I.readUInt8(x))){w++,I.writeUInt8(w,x);break}I.writeUInt8(0,x)}}},{}],196:[function(k,K,U){"use strict";var I=k("buffer-xor");U.encrypt=function(w,x){var g=I(x,w._prev);return w._prev=w._cipher.encryptBlock(g),w._prev},U.decrypt=function(w,x){var g=w._prev;w._prev=x;var f=w._cipher.decryptBlock(x);return I(f,g)}},{"buffer-xor":219}],197:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer,w=k("buffer-xor");function x(g,f,m){var _=f.length,b=w(f,g._cache);return g._cache=g._cache.slice(_),g._prev=I.concat([g._prev,m?f:b]),b}U.encrypt=function(g,f,m){for(var _,b=I.allocUnsafe(0);f.length;){if(0===g._cache.length&&(g._cache=g._cipher.encryptBlock(g._prev),g._prev=I.allocUnsafe(0)),!(g._cache.length<=f.length)){b=I.concat([b,x(g,f,m)]);break}_=g._cache.length,b=I.concat([b,x(g,f.slice(0,_),m)]),f=f.slice(_)}return b}},{"buffer-xor":219,"safe-buffer":494}],198:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer;function w(g,f,m){for(var _,b,v=-1,A=0;++v<8;)_=f&1<<7-v?128:0,A+=(128&(b=g._cipher.encryptBlock(g._prev)[0]^_))>>v%8,g._prev=x(g._prev,m?_:b);return A}function x(g,f){var m=g.length,_=-1,b=I.allocUnsafe(g.length);for(g=I.concat([g,I.from([f])]);++_>7;return b}U.encrypt=function(g,f,m){for(var _=f.length,b=I.allocUnsafe(_),v=-1;++v<_;)b[v]=w(g,f[v],m);return b}},{"safe-buffer":494}],199:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer;function w(x,g,f){var m=x._cipher.encryptBlock(x._prev)[0]^g;return x._prev=I.concat([x._prev.slice(1),I.from([f?g:m])]),m}U.encrypt=function(x,g,f){for(var m=g.length,_=I.allocUnsafe(m),b=-1;++b=0||!_.umod(m.prime1)||!_.umod(m.prime2));return _}function f(m,_){var ge,le,b={blinder:(le=g(ge=_)).toRed(w.mont(ge.modulus)).redPow(new w(ge.publicExponent)).fromRed(),unblinder:le.invm(ge.modulus)},v=_.modulus.byteLength(),A=new w(m).mul(b.blinder).umod(_.modulus),D=A.toRed(w.mont(_.prime1)),E=A.toRed(w.mont(_.prime2)),O=_.coefficient,T=_.prime1,z=_.prime2,H=D.redPow(_.exponent1).fromRed(),Q=E.redPow(_.exponent2).fromRed(),ae=H.isub(Q).imul(O).umod(T).imul(z);return Q.iadd(ae).imul(b.unblinder).umod(_.modulus).toArrayLike(I,"be",v)}f.getr=g,K.exports=f}).call(this)}).call(this,k("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(k,K,U){"use strict";K.exports=k("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(k,K,U){K.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(k,K,U){K.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer,w=k("create-hash"),x=k("readable-stream"),g=k("inherits"),f=k("./sign"),m=k("./verify"),_=k("./algorithms.json");function b(E){x.Writable.call(this);var O=_[E];if(!O)throw new Error("Unknown message digest");this._hashType=O.hash,this._hash=w(O.hash),this._tag=O.id,this._signType=O.sign}function v(E){x.Writable.call(this);var O=_[E];if(!O)throw new Error("Unknown message digest");this._hash=w(O.hash),this._tag=O.id,this._signType=O.sign}function A(E){return new b(E)}function D(E){return new v(E)}Object.keys(_).forEach(function(E){_[E].id=I.from(_[E].id,"hex"),_[E.toLowerCase()]=_[E]}),g(b,x.Writable),b.prototype._write=function(E,O,T){this._hash.update(E),T()},b.prototype.update=function(E,O){return"string"==typeof E&&(E=I.from(E,O)),this._hash.update(E),this},b.prototype.sign=function(E,O){this.end();var T=this._hash.digest(),z=f(T,E,this._hashType,this._signType,this._tag);return O?z.toString(O):z},g(v,x.Writable),v.prototype._write=function(E,O,T){this._hash.update(E),T()},v.prototype.update=function(E,O){return"string"==typeof E&&(E=I.from(E,O)),this._hash.update(E),this},v.prototype.verify=function(E,O,T){"string"==typeof O&&(O=I.from(O,T)),this.end();var z=this._hash.digest();return m(O,z,E,this._signType,this._tag)},K.exports={Sign:A,Verify:D,createSign:A,createVerify:D}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer,w=k("create-hmac"),x=k("browserify-rsa"),g=k("elliptic").ec,f=k("bn.js"),m=k("parse-asn1"),_=k("./curves.json");function b(E,O,T,z){if((E=I.from(E.toArray())).length0&&T.ishrn(z),T}function A(E,O,T){var z,H;do{for(z=I.alloc(0);8*z.length=b)throw new Error("invalid sig")}K.exports=function(_,b,v,A,D){var E=g(v);if("ec"===E.type){if("ecdsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");return function(ge,le,fe){var be=f[fe.data.algorithm.curve.join(".")];if(!be)throw new Error("unknown curve "+fe.data.algorithm.curve.join("."));var Se=new x(be),ve=fe.data.subjectPrivateKey.data;return Se.verify(le,ge,ve)}(_,b,E)}if("dsa"===E.type){if("dsa"!==A)throw new Error("wrong public key type");return function(ge,le,fe){var be=fe.data.p,Se=fe.data.q,ve=fe.data.g,W=fe.data.pub_key,J=g.signature.decode(ge,"der"),de=J.s,M=J.r;m(de,Se),m(M,Se);var F=w.mont(be),P=de.invm(Se);return 0===ve.toRed(F).redPow(new w(le).mul(P).mod(Se)).fromRed().mul(W.toRed(F).redPow(M.mul(P).mod(Se)).fromRed()).mod(be).mod(Se).cmp(M)}(_,b,E)}if("rsa"!==A&&"ecdsa/rsa"!==A)throw new Error("wrong public key type");b=I.concat([D,b]);for(var O=E.modulus.byteLength(),T=[1],z=0;b.length+T.length+2>5==6?2:E>>4==14?3:E>>3==30?4:E>>6==2?-1:-2}function f(E){var O=this.lastTotal-this.lastNeed,T=function(z,H,Q){if(128!=(192&H[0]))return z.lastNeed=0,"\ufffd";if(z.lastNeed>1&&H.length>1){if(128!=(192&H[1]))return z.lastNeed=1,"\ufffd";if(z.lastNeed>2&&H.length>2&&128!=(192&H[2]))return z.lastNeed=2,"\ufffd"}}(this,E);return void 0!==T?T:this.lastNeed<=E.length?(E.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(E.copy(this.lastChar,O,0,E.length),void(this.lastNeed-=E.length))}function m(E,O){if((E.length-O)%2==0){var T=E.toString("utf16le",O);if(T){var z=T.charCodeAt(T.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=E[E.length-1],E.toString("utf16le",O,E.length-1)}function _(E){var O=E&&E.length?this.write(E):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,T)}return O}function b(E,O){var T=(E.length-O)%3;return 0===T?E.toString("base64",O):(this.lastNeed=3-T,this.lastTotal=3,1===T?this.lastChar[0]=E[E.length-1]:(this.lastChar[0]=E[E.length-2],this.lastChar[1]=E[E.length-1]),E.toString("base64",O,E.length-T))}function v(E){var O=E&&E.length?this.write(E):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function A(E){return E.toString(this.encoding)}function D(E){return E&&E.length?this.write(E):""}U.StringDecoder=x,x.prototype.write=function(E){if(0===E.length)return"";var O,T;if(this.lastNeed){if(void 0===(O=this.fillLast(E)))return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T=0?(le>0&&(H.lastNeed=le-1),le):--ge=0?(le>0&&(H.lastNeed=le-2),le):--ge=0?(le>0&&(2===le?le=0:H.lastNeed=le-3),le):0}(this,E,O);if(!this.lastNeed)return E.toString("utf8",O);this.lastTotal=T;var z=E.length-(T-this.lastNeed);return E.copy(this.lastChar,0,z),E.toString("utf8",O,z)},x.prototype.fillLast=function(E){if(this.lastNeed<=E.length)return E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);E.copy(this.lastChar,this.lastTotal-this.lastNeed,0,E.length),this.lastNeed-=E.length}},{"safe-buffer":217}],219:[function(k,K,U){(function(I){(function(){"use strict";K.exports=function(w,x){for(var g=Math.min(w.length,x.length),f=new I(g),m=0;m2147483647)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var Y=new Uint8Array(Z);return Y.__proto__=f.prototype,Y}function f(Z,Y,me){if("number"==typeof Z){if("string"==typeof Y)throw new TypeError('The "string" argument must be of type string. Received type number');return b(Z)}return m(Z,Y,me)}function m(Z,Y,me){if("string"==typeof Z)return function(je,ke){if("string"==typeof ke&&""!==ke||(ke="utf8"),!f.isEncoding(ke))throw new TypeError("Unknown encoding: "+ke);var ye=0|D(je,ke),we=g(ye),Ee=we.write(je,ke);return Ee!==ye&&(we=we.slice(0,Ee)),we}(Z,Y);if(ArrayBuffer.isView(Z))return v(Z);if(null==Z)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z);if(te(Z,ArrayBuffer)||Z&&te(Z.buffer,ArrayBuffer))return function(je,ke,ye){if(ke<0||je.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|Z}function D(Z,Y){if(f.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||te(Z,ArrayBuffer))return Z.byteLength;if("string"!=typeof Z)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Z);var me=Z.length,ze=arguments.length>2&&!0===arguments[2];if(!ze&&0===me)return 0;for(var Je=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return me;case"utf8":case"utf-8":return se(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*me;case"hex":return me>>>1;case"base64":return ue(Z).length;default:if(Je)return ze?-1:se(Z).length;Y=(""+Y).toLowerCase(),Je=!0}}function E(Z,Y,me){var ze=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===me||me>this.length)&&(me=this.length),me<=0)||(me>>>=0)<=(Y>>>=0))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return J(this,Y,me);case"utf8":case"utf-8":return Se(this,Y,me);case"ascii":return ve(this,Y,me);case"latin1":case"binary":return W(this,Y,me);case"base64":return be(this,Y,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,Y,me);default:if(ze)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),ze=!0}}function O(Z,Y,me){var ze=Z[Y];Z[Y]=Z[me],Z[me]=ze}function T(Z,Y,me,ze,Je){if(0===Z.length)return-1;if("string"==typeof me?(ze=me,me=0):me>2147483647?me=2147483647:me<-2147483648&&(me=-2147483648),Me(me=+me)&&(me=Je?0:Z.length-1),me<0&&(me=Z.length+me),me>=Z.length){if(Je)return-1;me=Z.length-1}else if(me<0){if(!Je)return-1;me=0}if("string"==typeof Y&&(Y=f.from(Y,ze)),f.isBuffer(Y))return 0===Y.length?-1:z(Z,Y,me,ze,Je);if("number"==typeof Y)return Y&=255,"function"==typeof Uint8Array.prototype.indexOf?Je?Uint8Array.prototype.indexOf.call(Z,Y,me):Uint8Array.prototype.lastIndexOf.call(Z,Y,me):z(Z,[Y],me,ze,Je);throw new TypeError("val must be string, number or Buffer")}function z(Z,Y,me,ze,Je){var je,ke=1,ye=Z.length,we=Y.length;if(void 0!==ze&&("ucs2"===(ze=String(ze).toLowerCase())||"ucs-2"===ze||"utf16le"===ze||"utf-16le"===ze)){if(Z.length<2||Y.length<2)return-1;ke=2,ye/=2,we/=2,me/=2}function Ee(at,St){return 1===ke?at[St]:at.readUInt16BE(St*ke)}if(Je){var He=-1;for(je=me;jeye&&(me=ye-we),je=me;je>=0;je--){for(var Xe=!0,rt=0;rtJe&&(ze=Je):ze=Je;var je=Y.length;ze>je/2&&(ze=je/2);for(var ke=0;ke>8,we=ke%256,Ee.push(we),Ee.push(ye);return Ee}(Y,Z.length-me),Z,me,ze)}function be(Z,Y,me){return 0===Y&&me===Z.length?w.fromByteArray(Z):w.fromByteArray(Z.slice(Y,me))}function Se(Z,Y,me){me=Math.min(Z.length,me);for(var ze=[],Je=Y;Je239?4:Ee>223?3:Ee>191?2:1;if(Je+Xe<=me)switch(Xe){case 1:Ee<128&&(He=Ee);break;case 2:128==(192&(je=Z[Je+1]))&&(we=(31&Ee)<<6|63&je)>127&&(He=we);break;case 3:je=Z[Je+1],ke=Z[Je+2],128==(192&je)&&128==(192&ke)&&(we=(15&Ee)<<12|(63&je)<<6|63&ke)>2047&&(we<55296||we>57343)&&(He=we);break;case 4:je=Z[Je+1],ke=Z[Je+2],ye=Z[Je+3],128==(192&je)&&128==(192&ke)&&128==(192&ye)&&(we=(15&Ee)<<18|(63&je)<<12|(63&ke)<<6|63&ye)>65535&&we<1114112&&(He=we)}null===He?(He=65533,Xe=1):He>65535&&(He-=65536,ze.push(He>>>10&1023|55296),He=56320|1023&He),ze.push(He),Je+=Xe}return function(rt){var at=rt.length;if(at<=4096)return String.fromCharCode.apply(String,rt);for(var St="",It=0;Itze)&&(me=ze);for(var Je="",je=Y;jeme)throw new RangeError("Trying to access beyond buffer length")}function F(Z,Y,me,ze,Je,je){if(!f.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>Je||YZ.length)throw new RangeError("Index out of range")}function P(Z,Y,me,ze,Je,je){if(me+ze>Z.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("Index out of range")}function L(Z,Y,me,ze,Je){return Y=+Y,me>>>=0,Je||P(Z,0,me,4),x.write(Z,Y,me,ze,23,4),me+4}function j(Z,Y,me,ze,Je){return Y=+Y,me>>>=0,Je||P(Z,0,me,8),x.write(Z,Y,me,ze,52,8),me+8}U.Buffer=f,U.SlowBuffer=function(Z){return+Z!=Z&&(Z=0),f.alloc(+Z)},U.INSPECT_MAX_BYTES=50,U.kMaxLength=2147483647,f.TYPED_ARRAY_SUPPORT=function(){try{var Z=new Uint8Array(1);return Z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===Z.foo()}catch{return!1}}(),f.TYPED_ARRAY_SUPPORT||typeof console>"u"||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(Z,Y,me){return m(Z,Y,me)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(Z,Y,me){return Je=Y,je=me,_(ze=Z),ze<=0?g(ze):void 0!==Je?"string"==typeof je?g(ze).fill(Je,je):g(ze).fill(Je):g(ze);var ze,Je,je},f.allocUnsafe=function(Z){return b(Z)},f.allocUnsafeSlow=function(Z){return b(Z)},f.isBuffer=function(Z){return null!=Z&&!0===Z._isBuffer&&Z!==f.prototype},f.compare=function(Z,Y){if(te(Z,Uint8Array)&&(Z=f.from(Z,Z.offset,Z.byteLength)),te(Y,Uint8Array)&&(Y=f.from(Y,Y.offset,Y.byteLength)),!f.isBuffer(Z)||!f.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Z===Y)return 0;for(var me=Z.length,ze=Y.length,Je=0,je=Math.min(me,ze);JeY&&(Z+=" ... "),""},f.prototype.compare=function(Z,Y,me,ze,Je){if(te(Z,Uint8Array)&&(Z=f.from(Z,Z.offset,Z.byteLength)),!f.isBuffer(Z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Z);if(void 0===Y&&(Y=0),void 0===me&&(me=Z?Z.length:0),void 0===ze&&(ze=0),void 0===Je&&(Je=this.length),Y<0||me>Z.length||ze<0||Je>this.length)throw new RangeError("out of range index");if(ze>=Je&&Y>=me)return 0;if(ze>=Je)return-1;if(Y>=me)return 1;if(this===Z)return 0;for(var je=(Je>>>=0)-(ze>>>=0),ke=(me>>>=0)-(Y>>>=0),ye=Math.min(je,ke),we=this.slice(ze,Je),Ee=Z.slice(Y,me),He=0;He>>=0,isFinite(me)?(me>>>=0,void 0===ze&&(ze="utf8")):(ze=me,me=void 0)}var Je=this.length-Y;if((void 0===me||me>Je)&&(me=Je),Z.length>0&&(me<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");ze||(ze="utf8");for(var je=!1;;)switch(ze){case"hex":return H(this,Z,Y,me);case"utf8":case"utf-8":return Q(this,Z,Y,me);case"ascii":return ae(this,Z,Y,me);case"latin1":case"binary":return ge(this,Z,Y,me);case"base64":return le(this,Z,Y,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,Z,Y,me);default:if(je)throw new TypeError("Unknown encoding: "+ze);ze=(""+ze).toLowerCase(),je=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(Z,Y){var me=this.length;(Z=~~Z)<0?(Z+=me)<0&&(Z=0):Z>me&&(Z=me),(Y=void 0===Y?me:~~Y)<0?(Y+=me)<0&&(Y=0):Y>me&&(Y=me),Y>>=0,Y>>>=0,me||M(Z,Y,this.length);for(var ze=this[Z],Je=1,je=0;++je>>=0,Y>>>=0,me||M(Z,Y,this.length);for(var ze=this[Z+--Y],Je=1;Y>0&&(Je*=256);)ze+=this[Z+--Y]*Je;return ze},f.prototype.readUInt8=function(Z,Y){return Z>>>=0,Y||M(Z,1,this.length),this[Z]},f.prototype.readUInt16LE=function(Z,Y){return Z>>>=0,Y||M(Z,2,this.length),this[Z]|this[Z+1]<<8},f.prototype.readUInt16BE=function(Z,Y){return Z>>>=0,Y||M(Z,2,this.length),this[Z]<<8|this[Z+1]},f.prototype.readUInt32LE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+16777216*this[Z+3]},f.prototype.readUInt32BE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),16777216*this[Z]+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},f.prototype.readIntLE=function(Z,Y,me){Z>>>=0,Y>>>=0,me||M(Z,Y,this.length);for(var ze=this[Z],Je=1,je=0;++je=(Je*=128)&&(ze-=Math.pow(2,8*Y)),ze},f.prototype.readIntBE=function(Z,Y,me){Z>>>=0,Y>>>=0,me||M(Z,Y,this.length);for(var ze=Y,Je=1,je=this[Z+--ze];ze>0&&(Je*=256);)je+=this[Z+--ze]*Je;return je>=(Je*=128)&&(je-=Math.pow(2,8*Y)),je},f.prototype.readInt8=function(Z,Y){return Z>>>=0,Y||M(Z,1,this.length),128&this[Z]?-1*(255-this[Z]+1):this[Z]},f.prototype.readInt16LE=function(Z,Y){Z>>>=0,Y||M(Z,2,this.length);var me=this[Z]|this[Z+1]<<8;return 32768&me?4294901760|me:me},f.prototype.readInt16BE=function(Z,Y){Z>>>=0,Y||M(Z,2,this.length);var me=this[Z+1]|this[Z]<<8;return 32768&me?4294901760|me:me},f.prototype.readInt32LE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},f.prototype.readInt32BE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},f.prototype.readFloatLE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),x.read(this,Z,!0,23,4)},f.prototype.readFloatBE=function(Z,Y){return Z>>>=0,Y||M(Z,4,this.length),x.read(this,Z,!1,23,4)},f.prototype.readDoubleLE=function(Z,Y){return Z>>>=0,Y||M(Z,8,this.length),x.read(this,Z,!0,52,8)},f.prototype.readDoubleBE=function(Z,Y){return Z>>>=0,Y||M(Z,8,this.length),x.read(this,Z,!1,52,8)},f.prototype.writeUIntLE=function(Z,Y,me,ze){Z=+Z,Y>>>=0,me>>>=0,ze||F(this,Z,Y,me,Math.pow(2,8*me)-1,0);var Je=1,je=0;for(this[Y]=255&Z;++je>>=0,me>>>=0,ze||F(this,Z,Y,me,Math.pow(2,8*me)-1,0);var Je=me-1,je=1;for(this[Y+Je]=255&Z;--Je>=0&&(je*=256);)this[Y+Je]=Z/je&255;return Y+me},f.prototype.writeUInt8=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,1,255,0),this[Y]=255&Z,Y+1},f.prototype.writeUInt16LE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,2,65535,0),this[Y]=255&Z,this[Y+1]=Z>>>8,Y+2},f.prototype.writeUInt16BE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,2,65535,0),this[Y]=Z>>>8,this[Y+1]=255&Z,Y+2},f.prototype.writeUInt32LE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,4,4294967295,0),this[Y+3]=Z>>>24,this[Y+2]=Z>>>16,this[Y+1]=Z>>>8,this[Y]=255&Z,Y+4},f.prototype.writeUInt32BE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,4,4294967295,0),this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=255&Z,Y+4},f.prototype.writeIntLE=function(Z,Y,me,ze){if(Z=+Z,Y>>>=0,!ze){var Je=Math.pow(2,8*me-1);F(this,Z,Y,me,Je-1,-Je)}var je=0,ke=1,ye=0;for(this[Y]=255&Z;++je>>=0,!ze){var Je=Math.pow(2,8*me-1);F(this,Z,Y,me,Je-1,-Je)}var je=me-1,ke=1,ye=0;for(this[Y+je]=255&Z;--je>=0&&(ke*=256);)Z<0&&0===ye&&0!==this[Y+je+1]&&(ye=1),this[Y+je]=(Z/ke|0)-ye&255;return Y+me},f.prototype.writeInt8=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,1,127,-128),Z<0&&(Z=255+Z+1),this[Y]=255&Z,Y+1},f.prototype.writeInt16LE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,2,32767,-32768),this[Y]=255&Z,this[Y+1]=Z>>>8,Y+2},f.prototype.writeInt16BE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,2,32767,-32768),this[Y]=Z>>>8,this[Y+1]=255&Z,Y+2},f.prototype.writeInt32LE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,4,2147483647,-2147483648),this[Y]=255&Z,this[Y+1]=Z>>>8,this[Y+2]=Z>>>16,this[Y+3]=Z>>>24,Y+4},f.prototype.writeInt32BE=function(Z,Y,me){return Z=+Z,Y>>>=0,me||F(this,Z,Y,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=255&Z,Y+4},f.prototype.writeFloatLE=function(Z,Y,me){return L(this,Z,Y,!0,me)},f.prototype.writeFloatBE=function(Z,Y,me){return L(this,Z,Y,!1,me)},f.prototype.writeDoubleLE=function(Z,Y,me){return j(this,Z,Y,!0,me)},f.prototype.writeDoubleBE=function(Z,Y,me){return j(this,Z,Y,!1,me)},f.prototype.copy=function(Z,Y,me,ze){if(!f.isBuffer(Z))throw new TypeError("argument should be a Buffer");if(me||(me=0),ze||0===ze||(ze=this.length),Y>=Z.length&&(Y=Z.length),Y||(Y=0),ze>0&&ze=this.length)throw new RangeError("Index out of range");if(ze<0)throw new RangeError("sourceEnd out of bounds");ze>this.length&&(ze=this.length),Z.length-Y=0;--je)Z[je+Y]=this[je+me];else Uint8Array.prototype.set.call(Z,this.subarray(me,ze),Y);return Je},f.prototype.fill=function(Z,Y,me,ze){if("string"==typeof Z){if("string"==typeof Y?(ze=Y,Y=0,me=this.length):"string"==typeof me&&(ze=me,me=this.length),void 0!==ze&&"string"!=typeof ze)throw new TypeError("encoding must be a string");if("string"==typeof ze&&!f.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);if(1===Z.length){var Je=Z.charCodeAt(0);("utf8"===ze&&Je<128||"latin1"===ze)&&(Z=Je)}}else"number"==typeof Z&&(Z&=255);if(Y<0||this.length>>=0,me=void 0===me?this.length:me>>>0,Z||(Z=0),"number"==typeof Z)for(je=Y;je55295&&me<57344){if(!Je){if(me>56319){(Y-=3)>-1&&je.push(239,191,189);continue}if(ke+1===ze){(Y-=3)>-1&&je.push(239,191,189);continue}Je=me;continue}if(me<56320){(Y-=3)>-1&&je.push(239,191,189),Je=me;continue}me=65536+(Je-55296<<10|me-56320)}else Je&&(Y-=3)>-1&&je.push(239,191,189);if(Je=null,me<128){if((Y-=1)<0)break;je.push(me)}else if(me<2048){if((Y-=2)<0)break;je.push(me>>6|192,63&me|128)}else if(me<65536){if((Y-=3)<0)break;je.push(me>>12|224,me>>6&63|128,63&me|128)}else{if(!(me<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;je.push(me>>18|240,me>>12&63|128,me>>6&63|128,63&me|128)}}return je}function ue(Z){return w.toByteArray(function(Y){if((Y=(Y=Y.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;Y.length%4!=0;)Y+="=";return Y}(Z))}function Ne(Z,Y,me,ze){for(var Je=0;Je=Y.length||Je>=Z.length);++Je)Y[Je+me]=Z[Je];return Je}function te(Z,Y){return Z instanceof Y||null!=Z&&null!=Z.constructor&&null!=Z.constructor.name&&Z.constructor.name===Y.name}function Me(Z){return Z!=Z}}).call(this)}).call(this,k("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(k,K,U){"use strict";var I=k("safe-buffer").Buffer,w=k("stream").Transform,x=k("string_decoder").StringDecoder;function g(f){w.call(this),this.hashMode="string"==typeof f,this.hashMode?this[f]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}k("inherits")(g,w),g.prototype.update=function(f,m,_){"string"==typeof f&&(f=I.from(f,m));var b=this._update(f);return this.hashMode?this:(_&&(b=this._toString(b,_)),b)},g.prototype.setAutoPadding=function(){},g.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},g.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},g.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},g.prototype._transform=function(f,m,_){var b;try{this.hashMode?this._update(f):this.push(this._update(f))}catch(v){b=v}finally{_(b)}},g.prototype._flush=function(f){var m;try{this.push(this.__final())}catch(_){m=_}f(m)},g.prototype._finalOrDigest=function(f){var m=this.__final()||I.alloc(0);return f&&(m=this._toString(m,f,!0)),m},g.prototype._toString=function(f,m,_){if(this._decoder||(this._decoder=new x(m),this._encoding=m),this._encoding!==m)throw new Error("can't switch encodings");var b=this._decoder.write(f);return _&&(b+=this._decoder.end()),b},K.exports=g},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(k,K,U){"use strict";var I=k("../internals/is-callable"),w=k("../internals/try-to-string"),x=TypeError;K.exports=function(g){if(I(g))return g;throw new x(w(g)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(k,K,U){"use strict";var I=k("../internals/is-constructor"),w=k("../internals/try-to-string"),x=TypeError;K.exports=function(g){if(I(g))return g;throw new x(w(g)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(k,K,U){"use strict";var I=k("../internals/is-callable"),w=String,x=TypeError;K.exports=function(g){if("object"==typeof g||I(g))return g;throw new x("Can't set "+w(g)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(k,K,U){"use strict";var I=k("../internals/well-known-symbol"),w=k("../internals/object-create"),x=k("../internals/object-define-property").f,g=I("unscopables"),f=Array.prototype;void 0===f[g]&&x(f,g,{configurable:!0,value:w(null)}),K.exports=function(m){f[g][m]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(k,K,U){"use strict";var I=k("../internals/object-is-prototype-of"),w=TypeError;K.exports=function(x,g){if(I(g,x))return x;throw new w("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(k,K,U){"use strict";var I=k("../internals/is-object"),w=String,x=TypeError;K.exports=function(g){if(I(g))return g;throw new x(w(g)+" is not an object")}},{"../internals/is-object":289}],228:[function(k,K,U){"use strict";var I=k("../internals/to-indexed-object"),w=k("../internals/to-absolute-index"),x=k("../internals/length-of-array-like"),g=function(f){return function(m,_,b){var v,A=I(m),D=x(A),E=w(b,D);if(f&&_!=_){for(;D>E;)if((v=A[E++])!=v)return!0}else for(;D>E;E++)if((f||E in A)&&A[E]===_)return f||E||0;return!f&&-1}};K.exports={includes:g(!0),indexOf:g(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(k,K,U){"use strict";var I=k("../internals/function-bind-context"),w=k("../internals/function-uncurry-this"),x=k("../internals/indexed-object"),g=k("../internals/to-object"),f=k("../internals/length-of-array-like"),m=k("../internals/array-species-create"),_=w([].push),b=function(v){var A=1===v,D=2===v,E=3===v,O=4===v,T=6===v,z=7===v,H=5===v||T;return function(Q,ae,ge,le){for(var fe,be,Se=g(Q),ve=x(Se),W=I(ae,ge),J=f(ve),de=0,M=le||m,F=A?M(Q,J):D||z?M(Q,0):void 0;J>de;de++)if((H||de in ve)&&(be=W(fe=ve[de],de,Se),v))if(A)F[de]=be;else if(be)switch(v){case 3:return!0;case 5:return fe;case 6:return de;case 2:_(F,fe)}else switch(v){case 4:return!1;case 7:_(F,fe)}return T?-1:E||O?O:F}};K.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterReject:b(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(k,K,U){"use strict";var I=k("../internals/to-absolute-index"),w=k("../internals/length-of-array-like"),x=k("../internals/create-property"),g=Array,f=Math.max;K.exports=function(m,_,b){for(var v=w(m),A=I(_,v),D=I(void 0===b?v:b,v),E=g(f(D-A,0)),O=0;A0&&I[0]<4?1:+(I[0]+I[1])),!w&&g&&(!(I=g.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=g.match(/Chrome\/(\d+)/))&&(w=+I[1]),K.exports=w},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(k,K,U){"use strict";K.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(k,K,U){"use strict";var I=k("../internals/global"),w=k("../internals/object-get-own-property-descriptor").f,x=k("../internals/create-non-enumerable-property"),g=k("../internals/define-built-in"),f=k("../internals/define-global-property"),m=k("../internals/copy-constructor-properties"),_=k("../internals/is-forced");K.exports=function(b,v){var A,D,E,O,T,z=b.target,H=b.global,Q=b.stat;if(A=H?I:Q?I[z]||f(z,{}):(I[z]||{}).prototype)for(D in v){if(O=v[D],E=b.dontCallGetSet?(T=w(A,D))&&T.value:A[D],!_(H?D:z+(Q?".":"#")+D,b.forced)&&void 0!==E){if(typeof O==typeof E)continue;m(O,E)}(b.sham||E&&E.sham)&&x(O,"sham",!0),g(A,D,O,b)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(k,K,U){"use strict";K.exports=function(I){try{return!!I()}catch{return!0}}},{}],261:[function(k,K,U){"use strict";var I=k("../internals/function-bind-native"),w=Function.prototype,x=w.apply,g=w.call;K.exports="object"==typeof Reflect&&Reflect.apply||(I?g.bind(x):function(){return g.apply(x,arguments)})},{"../internals/function-bind-native":263}],262:[function(k,K,U){"use strict";var I=k("../internals/function-uncurry-this-clause"),w=k("../internals/a-callable"),x=k("../internals/function-bind-native"),g=I(I.bind);K.exports=function(f,m){return w(f),void 0===m?f:x?g(f,m):function(){return f.apply(m,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(k,K,U){"use strict";var I=k("../internals/fails");K.exports=!I(function(){var w=function(){}.bind();return"function"!=typeof w||w.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(k,K,U){"use strict";var I=k("../internals/function-bind-native"),w=Function.prototype.call;K.exports=I?w.bind(w):function(){return w.apply(w,arguments)}},{"../internals/function-bind-native":263}],265:[function(k,K,U){"use strict";var I=k("../internals/descriptors"),w=k("../internals/has-own-property"),x=Function.prototype,g=I&&Object.getOwnPropertyDescriptor,f=w(x,"name"),m=f&&"something"===function(){}.name,_=f&&(!I||I&&g(x,"name").configurable);K.exports={EXISTS:f,PROPER:m,CONFIGURABLE:_}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(k,K,U){"use strict";var I=k("../internals/function-uncurry-this"),w=k("../internals/a-callable");K.exports=function(x,g,f){try{return I(w(Object.getOwnPropertyDescriptor(x,g)[f]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(k,K,U){"use strict";var I=k("../internals/classof-raw"),w=k("../internals/function-uncurry-this");K.exports=function(x){if("Function"===I(x))return w(x)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(k,K,U){"use strict";var I=k("../internals/function-bind-native"),w=Function.prototype,x=w.call,g=I&&w.bind.bind(x,x);K.exports=I?g:function(f){return function(){return x.apply(f,arguments)}}},{"../internals/function-bind-native":263}],269:[function(k,K,U){"use strict";var I=k("../internals/global"),w=k("../internals/is-callable"),x=function(g){return w(g)?g:void 0};K.exports=function(g,f){return arguments.length<2?x(I[g]):I[g]&&I[g][f]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(k,K,U){"use strict";var I=k("../internals/classof"),w=k("../internals/get-method"),x=k("../internals/is-null-or-undefined"),g=k("../internals/iterators"),f=k("../internals/well-known-symbol")("iterator");K.exports=function(m){if(!x(m))return w(m,f)||w(m,"@@iterator")||g[I(m)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(k,K,U){"use strict";var I=k("../internals/function-call"),w=k("../internals/a-callable"),x=k("../internals/an-object"),g=k("../internals/try-to-string"),f=k("../internals/get-iterator-method"),m=TypeError;K.exports=function(_,b){var v=arguments.length<2?f(_):b;if(w(v))return x(I(v,_));throw new m(g(_)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(k,K,U){"use strict";var I=k("../internals/function-uncurry-this"),w=k("../internals/is-array"),x=k("../internals/is-callable"),g=k("../internals/classof-raw"),f=k("../internals/to-string"),m=I([].push);K.exports=function(_){if(x(_))return _;if(w(_)){for(var b=_.length,v=[],A=0;Age;ge++)if((fe=L(T[ge]))&&_(O,fe))return fe;return new E(!1)}Q=b(T,ae)}for(be=J?T.next:Q.next;!(Se=w(be,Q)).done;){try{fe=L(Se.value)}catch(j){A(Q,"throw",j)}if("object"==typeof fe&&fe&&_(O,fe))return fe}return new E(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(k,K,U){"use strict";var I=k("../internals/function-call"),w=k("../internals/an-object"),x=k("../internals/get-method");K.exports=function(g,f,m){var _,b;w(g);try{if(!(_=x(g,"return"))){if("throw"===f)throw m;return m}_=I(_,g)}catch(v){b=!0,_=v}if("throw"===f)throw m;if(b)throw _;return w(_),m}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(k,K,U){"use strict";var I=k("../internals/iterators-core").IteratorPrototype,w=k("../internals/object-create"),x=k("../internals/create-property-descriptor"),g=k("../internals/set-to-string-tag"),f=k("../internals/iterators"),m=function(){return this};K.exports=function(_,b,v,A){var D=b+" Iterator";return _.prototype=w(I,{next:x(+!A,v)}),g(_,D,!1,!0),f[D]=m,_}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(k,K,U){"use strict";var I=k("../internals/export"),w=k("../internals/function-call"),x=k("../internals/is-pure"),g=k("../internals/function-name"),f=k("../internals/is-callable"),m=k("../internals/iterator-create-constructor"),_=k("../internals/object-get-prototype-of"),b=k("../internals/object-set-prototype-of"),v=k("../internals/set-to-string-tag"),A=k("../internals/create-non-enumerable-property"),D=k("../internals/define-built-in"),E=k("../internals/well-known-symbol"),O=k("../internals/iterators"),T=k("../internals/iterators-core"),z=g.PROPER,H=g.CONFIGURABLE,Q=T.IteratorPrototype,ae=T.BUGGY_SAFARI_ITERATORS,ge=E("iterator"),le=function(){return this};K.exports=function(fe,be,Se,ve,W,J,de){m(Se,be,ve);var M,F,P,L=function(te){if(te===W&&ue)return ue;if(!ae&&te&&te in X)return X[te];switch(te){case"keys":case"values":case"entries":return function(){return new Se(this,te)}}return function(){return new Se(this)}},j=be+" Iterator",G=!1,X=fe.prototype,se=X[ge]||X["@@iterator"]||W&&X[W],ue=!ae&&se||L(W),Ne="Array"===be&&X.entries||se;if(Ne&&(M=_(Ne.call(new fe)))!==Object.prototype&&M.next&&(x||_(M)===Q||(b?b(M,Q):f(M[ge])||D(M,ge,le)),v(M,j,!0,!0),x&&(O[j]=le)),z&&"values"===W&&se&&"values"!==se.name&&(!x&&H?A(X,"name","values"):(G=!0,ue=function(){return w(se,this)})),W)if(F={values:L("values"),keys:J?ue:L("keys"),entries:L("entries")},de)for(P in F)(ae||G||!(P in X))&&D(X,P,F[P]);else I({target:be,proto:!0,forced:ae||G},F);return x&&!de||X[ge]===ue||D(X,ge,ue,{name:W}),O[be]=ue,F}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(k,K,U){"use strict";var I,w,x,g=k("../internals/fails"),f=k("../internals/is-callable"),m=k("../internals/is-object"),_=k("../internals/object-create"),b=k("../internals/object-get-prototype-of"),v=k("../internals/define-built-in"),A=k("../internals/well-known-symbol"),D=k("../internals/is-pure"),E=A("iterator"),O=!1;[].keys&&("next"in(x=[].keys())?(w=b(b(x)))!==Object.prototype&&(I=w):O=!0),!m(I)||g(function(){var T={};return I[E].call(T)!==T})?I={}:D&&(I=_(I)),f(I[E])||v(I,E,function(){return this}),K.exports={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:O}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(k,K,U){arguments[4][276][0].apply(U,arguments)},{dup:276}],299:[function(k,K,U){"use strict";var I=k("../internals/to-length");K.exports=function(w){return I(w.length)}},{"../internals/to-length":343}],300:[function(k,K,U){"use strict";var I=k("../internals/function-uncurry-this"),w=k("../internals/fails"),x=k("../internals/is-callable"),g=k("../internals/has-own-property"),f=k("../internals/descriptors"),m=k("../internals/function-name").CONFIGURABLE,_=k("../internals/inspect-source"),b=k("../internals/internal-state"),v=b.enforce,A=b.get,D=String,E=Object.defineProperty,O=I("".slice),T=I("".replace),z=I([].join),H=f&&!w(function(){return 8!==E(function(){},"length",{value:8}).length}),Q=String(String).split("String"),ae=K.exports=function(ge,le,fe){"Symbol("===O(D(le),0,7)&&(le="["+T(D(le),/^Symbol\(([^)]*)\)/,"$1")+"]"),fe&&fe.getter&&(le="get "+le),fe&&fe.setter&&(le="set "+le),(!g(ge,"name")||m&&ge.name!==le)&&(f?E(ge,"name",{value:le,configurable:!0}):ge.name=le),H&&fe&&g(fe,"arity")&&ge.length!==fe.arity&&E(ge,"length",{value:fe.arity});try{fe&&g(fe,"constructor")&&fe.constructor?f&&E(ge,"prototype",{writable:!1}):ge.prototype&&(ge.prototype=void 0)}catch{}var be=v(ge);return g(be,"source")||(be.source=z(Q,"string"==typeof le?le:"")),ge};Function.prototype.toString=ae(function(){return x(this)&&A(this).source||_(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(k,K,U){"use strict";var I=Math.ceil,w=Math.floor;K.exports=Math.trunc||function(x){var g=+x;return(g>0?w:I)(g)}},{}],302:[function(k,K,U){"use strict";var I,w,x,g,f,m=k("../internals/global"),_=k("../internals/function-bind-context"),b=k("../internals/object-get-own-property-descriptor").f,v=k("../internals/task").set,A=k("../internals/queue"),D=k("../internals/engine-is-ios"),E=k("../internals/engine-is-ios-pebble"),O=k("../internals/engine-is-webos-webkit"),T=k("../internals/engine-is-node"),z=m.MutationObserver||m.WebKitMutationObserver,H=m.document,Q=m.process,ae=m.Promise,ge=b(m,"queueMicrotask"),le=ge&&ge.value;if(!le){var fe=new A,be=function(){var Se,ve;for(T&&(Se=Q.domain)&&Se.exit();ve=fe.get();)try{ve()}catch(W){throw fe.head&&I(),W}Se&&Se.enter()};D||T||O||!z||!H?!E&&ae&&ae.resolve?((g=ae.resolve(void 0)).constructor=ae,f=_(g.then,g),I=function(){f(be)}):T?I=function(){Q.nextTick(be)}:(v=_(v,m),I=function(){v(be)}):(w=!0,x=H.createTextNode(""),new z(be).observe(x,{characterData:!0}),I=function(){x.data=w=!w}),le=function(Se){fe.head||I(),fe.add(Se)}}K.exports=le},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(k,K,U){"use strict";var I=k("../internals/a-callable"),w=TypeError,x=function(g){var f,m;this.promise=new g(function(_,b){if(void 0!==f||void 0!==m)throw new w("Bad Promise constructor");f=_,m=b}),this.resolve=I(f),this.reject=I(m)};K.exports.f=function(g){return new x(g)}},{"../internals/a-callable":222}],304:[function(k,K,U){"use strict";var I=k("../internals/is-regexp"),w=TypeError;K.exports=function(x){if(I(x))throw new w("The method doesn't accept regular expressions");return x}},{"../internals/is-regexp":291}],305:[function(k,K,U){"use strict";var I=k("../internals/descriptors"),w=k("../internals/function-uncurry-this"),x=k("../internals/function-call"),g=k("../internals/fails"),f=k("../internals/object-keys"),m=k("../internals/object-get-own-property-symbols"),_=k("../internals/object-property-is-enumerable"),b=k("../internals/to-object"),v=k("../internals/indexed-object"),A=Object.assign,D=Object.defineProperty,E=w([].concat);K.exports=!A||g(function(){if(I&&1!==A({b:1},A(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var O={},T={},z=Symbol("assign detection");return O[z]=7,"abcdefghijklmnopqrst".split("").forEach(function(H){T[H]=H}),7!==A({},O)[z]||"abcdefghijklmnopqrst"!==f(A({},T)).join("")})?function(O,T){for(var z=b(O),H=arguments.length,Q=1,ae=m.f,ge=_.f;H>Q;)for(var le,fe=v(arguments[Q++]),be=ae?E(f(fe),ae(fe)):f(fe),Se=be.length,ve=0;Se>ve;)le=be[ve++],I&&!x(ge,fe,le)||(z[le]=fe[le]);return z}:A},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(k,K,U){"use strict";var I,w=k("../internals/an-object"),x=k("../internals/object-define-properties"),g=k("../internals/enum-bug-keys"),f=k("../internals/hidden-keys"),m=k("../internals/html"),_=k("../internals/document-create-element"),v=k("../internals/shared-key")("IE_PROTO"),A=function(){},D=function(T){return"