From 3a2cac2d170a6f35e2ea1fe6a4ab81a5e5618865 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Osornio Date: Mon, 6 May 2024 18:31:53 -0300 Subject: [PATCH] Modified welcome screen --- ...Histopathology-Reporting-Form.R4 (11).json | 6 +++- docs/index.html | 4 +-- ...f5840552c4.js => main.8186eee082a9bb4b.js} | 2 +- ...2a675f.css => styles.bd26200e00997c7d.css} | 2 +- .../questionnaire-history.component.ts | 15 ++++++--- .../questionnaires-main.component.html | 31 +++++++++++++++++-- ...Histopathology-Reporting-Form.R4 (11).json | 6 +++- 7 files changed, 53 insertions(+), 13 deletions(-) rename docs/{main.0e932bf5840552c4.js => main.8186eee082a9bb4b.js} (58%) rename docs/{styles.b0373a02df2a675f.css => styles.bd26200e00997c7d.css} (94%) diff --git a/docs/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json b/docs/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json index 7f5e05b..42427f3 100644 --- a/docs/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json +++ b/docs/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json @@ -1381,5 +1381,9 @@ "url": "http://snomed.info/fhir/cancer-synoptic-form/iccr-pancreatic", "title": "Carcinoma of the Exocrine Pancreas Histopathology Reporting Form", "status": "draft", - "description": "An FHIR Questionnaire implementation of the ICCR Exocrine pancreatic cancer form" + "description": "An FHIR Questionnaire implementation of the ICCR Exocrine pancreatic cancer form", + "meta": { + "versionId": "3", + "lastUpdated": "2024-05-06T18:24:30.652+00:00" + } } \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 3b71387..99e11f7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -30,8 +30,8 @@ gtag('config', 'G-7SK998GPMX', { 'page_path': '/home' }); } - + - + diff --git a/docs/main.0e932bf5840552c4.js b/docs/main.8186eee082a9bb4b.js similarity index 58% rename from docs/main.0e932bf5840552c4.js rename to docs/main.8186eee082a9bb4b.js index 6dc0bde..24e640e 100644 --- a/docs/main.0e932bf5840552c4.js +++ b/docs/main.8186eee082a9bb4b.js @@ -1 +1 @@ -(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[792],{857:(Hr,Yh,mo)=>{"use strict";function Lc(t,n,e,i,r,o,s){try{var a=t[o](s),c=a.value}catch(l){return void e(l)}a.done?n(c):Promise.resolve(c).then(i,r)}function me(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(c){Lc(o,i,r,s,a,"next",c)}function a(c){Lc(o,i,r,s,a,"throw",c)}s(void 0)})}}let hi=null,si=!1,ji=1;const cr=Symbol("SIGNAL");function Gt(t){const n=hi;return hi=t,n}const Ts={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 Tv(t){if((!ig(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==ji)){if(!t.producerMustRecompute(t)&&!XC(t))return t.dirty=!1,void(t.lastCleanEpoch=ji);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ji}}function ng(t){t.dirty=!0,function tg(t){if(void 0===t.liveConsumerNode)return;const n=si;si=!0;try{for(const e of t.liveConsumerNode)e.dirty||ng(e)}finally{si=n}}(t),t.consumerMarkedDirty?.(t)}function Jh(t){return t&&(t.nextProducerIndex=0),Gt(t)}function Vl(t,n){if(Gt(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(ig(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function XC(t){ef(t);for(let n=0;n0}function ef(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let NO=null;const ZC=()=>{},LZ={...Ts,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{null!==t.schedule&&t.schedule(t.ref)},hasRun:!1,cleanupFn:ZC};function On(t){return"function"==typeof t}function JC(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const eT=JC(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Sv(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Wt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(On(i))try{i()}catch(o){n=o instanceof eT?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{UO(o)}catch(s){n=n??[],s instanceof eT?n=[...n,...s.errors]:n.push(s)}}if(n)throw new eT(n)}}add(n){var e;if(n&&n!==this)if(this.closed)UO(n);else{if(n instanceof Wt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Sv(e,n)}remove(n){const{_finalizers:e}=this;e&&Sv(e,n),n instanceof Wt&&n._removeParent(this)}}Wt.EMPTY=(()=>{const t=new Wt;return t.closed=!0,t})();const VO=Wt.EMPTY;function BO(t){return t instanceof Wt||t&&"closed"in t&&On(t.remove)&&On(t.add)&&On(t.unsubscribe)}function UO(t){On(t)?t():t.unsubscribe()}const lu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Dv={setTimeout(t,n,...e){const{delegate:i}=Dv;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Dv;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function zO(t){Dv.setTimeout(()=>{const{onUnhandledError:n}=lu;if(!n)throw t;n(t)})}function Iv(){}const VZ=tT("C",void 0,void 0);function tT(t,n,e){return{kind:t,value:n,error:e}}let du=null;function Av(t){if(lu.useDeprecatedSynchronousErrorHandling){const n=!du;if(n&&(du={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=du;if(du=null,e)throw i}}else t()}class nT extends Wt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,BO(n)&&n.add(this)):this.destination=GZ}static create(n,e,i){return new tf(n,e,i)}next(n){this.isStopped?rT(function UZ(t){return tT("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?rT(function BZ(t){return tT("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?rT(VZ,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const HZ=Function.prototype.bind;function iT(t,n){return HZ.call(t,n)}class jZ{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Mv(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Mv(i)}else Mv(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Mv(e)}}}class tf extends nT{constructor(n,e,i){let r;if(super(),On(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&lu.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&iT(n.next,o),error:n.error&&iT(n.error,o),complete:n.complete&&iT(n.complete,o)}):r=n}this.destination=new jZ(r)}}function Mv(t){lu.useDeprecatedSynchronousErrorHandling?function zZ(t){lu.useDeprecatedSynchronousErrorHandling&&du&&(du.errorThrown=!0,du.error=t)}(t):zO(t)}function rT(t,n){const{onStoppedNotification:e}=lu;e&&Dv.setTimeout(()=>e(t,n))}const GZ={closed:!0,next:Iv,error:function $Z(t){throw t},complete:Iv},oT="function"==typeof Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}function HO(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let jn=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function QZ(t){return t&&t instanceof nT||function qZ(t){return t&&On(t.next)&&On(t.error)&&On(t.complete)}(t)&&BO(t)}(e)?e:new tf(e,i,r);return Av(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=jO(i))((r,o)=>{const s=new tf({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[oT](){return this}pipe(...e){return HO(e)(this)}toPromise(e){return new(e=jO(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function jO(t){var n;return null!==(n=t??lu.Promise)&&void 0!==n?n:Promise}const KZ=JC(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Me=(()=>{class t extends jn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new $O(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new KZ}next(e){Av(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Av(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Av(()=>{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:i,isStopped:r,observers:o}=this;return i||r?VO:(this.currentObservers=null,o.push(e),new Wt(()=>{this.currentObservers=null,Sv(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new jn;return e.source=this,e}}return t.create=(n,e)=>new $O(n,e),t})();class $O extends Me{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:VO}}class wi extends Me{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function GO(t){return On(t?.lift)}function Ni(t){return n=>{if(GO(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ki(t,n,e,i,r){return new XZ(t,n,e,i,r)}class XZ extends nT{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function mt(t,n){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>{i.next(t.call(n,o,r++))}))})}const WO="https://g.co/ng/security#xss";class le extends Error{constructor(n,e){super(function nf(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Vc(t){return{toString:t}.toString()}const sf="__parameters__";function cf(t,n,e){return Vc(()=>{const i=function sT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,d){const u=c.hasOwnProperty(sf)?c[sf]:Object.defineProperty(c,sf,{value:[]})[sf];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const $n=globalThis;function Kn(t){for(let n in t)if(t[n]===Kn)return n;throw Error("Could not find renamed property on target object.")}function YZ(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function xr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(xr).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function aT(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const ZZ=Kn({__forward_ref__:Kn});function an(t){return t.__forward_ref__=an,t.toString=function(){return xr(this())},t}function At(t){return Pv(t)?t():t}function Pv(t){return"function"==typeof t&&t.hasOwnProperty(ZZ)&&t.__forward_ref__===an}function we(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function yt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Fv(t){return XO(t,Nv)||XO(t,YO)}function XO(t,n){return t.hasOwnProperty(n)?t[n]:null}function Ov(t){return t&&(t.hasOwnProperty(cT)||t.hasOwnProperty(rJ))?t[cT]:null}const Nv=Kn({\u0275prov:Kn}),cT=Kn({\u0275inj:Kn}),YO=Kn({ngInjectableDef:Kn}),rJ=Kn({ngInjectorDef:Kn});class J{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=we({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fT(t){return t&&!!t.\u0275providers}const rg=Kn({\u0275cmp:Kn}),mT=Kn({\u0275dir:Kn}),pT=Kn({\u0275pipe:Kn}),JO=Kn({\u0275mod:Kn}),Bc=Kn({\u0275fac:Kn}),og=Kn({__NG_ELEMENT_ID__:Kn}),eN=Kn({__NG_ENV_ID__:Kn});function Lt(t){return"string"==typeof t?t:null==t?"":String(t)}function gT(t,n){throw new le(-201,!1)}var mn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(mn||{});let _T;function tN(){return _T}function ss(t){const n=_T;return _T=t,n}function nN(t,n,e){const i=Fv(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&mn.Optional?null:void 0!==n?n:void gT()}const sg={},bT="__NG_DI_FLAG__",Lv="ngTempTokenPath",dJ=/\n/gm,iN="__source";let lf;function zl(t){const n=lf;return lf=t,n}function fJ(t,n=mn.Default){if(void 0===lf)throw new le(-203,!1);return null===lf?nN(t,void 0,n):lf.get(t,n&mn.Optional?null:void 0,n)}function Y(t,n=mn.Default){return(tN()||fJ)(At(t),n)}function he(t,n=mn.Default){return Y(t,Vv(n))}function Vv(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function vT(t){const n=[];for(let e=0;eArray.isArray(e)?uf(e,n):n(e))}function oN(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Bv(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ds(t,n,e){let i=hf(t,n);return i>=0?t[1|i]=e:(i=~i,function sN(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function xT(t,n){const e=hf(t,n);if(e>=0)return t[1|e]}function hf(t,n){return function aN(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<n){s=o-1;break}}}for(;o-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&l!==u){if(va(i))return!1;s=!0}}}}else{if(!s&&!va(i)&&!va(c))return!1;if(s&&va(c))continue;s=!1,i=c|1&i}}return va(i)||s}function va(t){return!(1&t)}function TJ(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!va(s)&&(n+=mN(o,r),r=""),i=s,o=o||!va(i);e++}return""!==r&&(n+=mN(o,r)),n}function ze(t){return Vc(()=>{const n=gN(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Hv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ba.Emulated,styles:t.styles||An,_:null,schemas:t.schemas||null,tView:null,id:""};_N(e);const i=t.dependencies;return e.directiveDefs=jv(i,!1),e.pipeDefs=jv(i,!0),e.id=function NJ(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function PJ(t){return cn(t)||wr(t)}function FJ(t){return null!==t}function Ct(t){return Vc(()=>({type:t.type,bootstrap:t.bootstrap||An,declarations:t.declarations||An,imports:t.imports||An,exports:t.exports||An,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function pN(t,n){if(null==t)return $a;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let o,s,a=W.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==W.None?[i,a]:i,n[o]=s):e[o]=i}return e}function ce(t){return Vc(()=>{const n=gN(t);return _N(n),n})}function po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function cn(t){return t[rg]||null}function wr(t){return t[mT]||null}function to(t){return t[pT]||null}function go(t,n){const e=t[JO]||null;if(!e&&!0===n)throw new Error(`Type ${xr(t)} does not have '\u0275mod' property.`);return e}function gN(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||$a,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||An,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pN(t.inputs,n),outputs:pN(t.outputs),debugInfo:null}}function _N(t){t.features?.forEach(n=>n(t))}function jv(t,n){if(!t)return null;const e=n?to:PJ;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(FJ)}function LJ(...t){return{\u0275providers:TT(0,t),\u0275fromNgModule:!0}}function TT(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return uf(n,s=>{const a=s;$v(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&bN(r,o),e}function bN(t,n){for(let e=0;e{n(o,i)})}}function $v(t,n,e,i){if(!(t=At(t)))return!1;let r=null,o=Ov(t);const s=!o&&cn(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=Ov(c),!o)return!1;r=c}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)$v(l,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{uf(o.imports,d=>{$v(d,n,e,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&bN(l,n)}if(!a){const l=uu(r)||(()=>new r);n({provide:r,useFactory:l,deps:An},r),n({provide:wT,useValue:r,multi:!0},r),n({provide:hu,useValue:()=>Y(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=t;ET(c,d=>{n(d,l)})}}}return r!==t&&void 0!==t.providers}function ET(t,n){for(let e of t)fT(e)&&(e=e.\u0275providers),Array.isArray(e)?ET(e,n):n(e)}const VJ=Kn({provide:String,useValue:Kn});function ST(t){return null!==t&&"object"==typeof t&&VJ in t}function fu(t){return"function"==typeof t}const DT=new J(""),Gv={},UJ={};let IT;function Wv(){return void 0===IT&&(IT=new zv),IT}class cs{}class ff extends cs{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,MT(n,s=>this.processProvider(s)),this.records.set(cN,mf(void 0,this)),r.has("environment")&&this.records.set(cs,mf(void 0,this));const o=this.records.get(DT);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(wT,An,mn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=Gt(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Gt(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=zl(this),i=ss(void 0);try{return n()}finally{zl(e),ss(i)}}get(n,e=sg,i=mn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(eN))return n[eN](this);i=Vv(i);const o=zl(this),s=ss(void 0);try{if(!(i&mn.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function GJ(t){return"function"==typeof t||"object"==typeof t&&t instanceof J}(n)&&Fv(n);c=l&&this.injectableDefInScope(l)?mf(AT(n),Gv):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&mn.Self?Wv():this.parent).get(n,e=i&mn.Optional&&e===sg?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Lv]=a[Lv]||[]).unshift(xr(n)),o)throw a;return function pJ(t,n,e,i){const r=t[Lv];throw n[iN]&&r.unshift(n[iN]),t.message=function gJ(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=xr(n);if(Array.isArray(n))r=n.map(xr).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):xr(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(dJ,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Lv]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{ss(s),zl(o)}}resolveInjectorInitializers(){const n=Gt(null),e=zl(this),i=ss(void 0);try{const o=this.get(hu,An,mn.Self);for(const s of o)s()}finally{zl(e),ss(i),Gt(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(xr(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new le(205,!1)}processProvider(n){let e=fu(n=At(n))?n:At(n&&n.provide);const i=function HJ(t){return ST(t)?mf(void 0,t.useValue):mf(xN(t),Gv)}(n);if(!fu(n)&&!0===n.multi){let r=this.records.get(e);r||(r=mf(void 0,Gv,!0),r.factory=()=>vT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=Gt(null);try{return e.value===Gv&&(e.value=UJ,e.value=e.factory()),"object"==typeof e.value&&e.value&&function $J(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Gt(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=At(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function AT(t){const n=Fv(t),e=null!==n?n.factory:uu(t);if(null!==e)return e;if(t instanceof J)throw new le(204,!1);if(t instanceof Function)return function zJ(t){if(t.length>0)throw new le(204,!1);const e=function iJ(t){return t&&(t[Nv]||t[YO])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new le(204,!1)}function xN(t,n,e){let i;if(fu(t)){const r=At(t);return uu(r)||AT(r)}if(ST(t))i=()=>At(t.useValue);else if(function yN(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...vT(t.deps||[]));else if(function vN(t){return!(!t||!t.useExisting)}(t))i=()=>Y(At(t.useExisting));else{const r=At(t&&(t.useClass||t.provide));if(!function jJ(t){return!!t.deps}(t))return uu(r)||AT(r);i=()=>new r(...vT(t.deps))}return i}function mf(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function MT(t,n){for(const e of t)Array.isArray(e)?MT(e,n):e&&fT(e)?MT(e.\u0275providers,n):n(e)}function Ga(t,n){t instanceof ff&&t.assertNotDestroyed();const i=zl(t),r=ss(void 0);try{return n()}finally{zl(i),ss(r)}}function wN(){return void 0!==tN()||null!=function hJ(){return lf}()}function qv(t){if(!wN())throw new le(-203,!1)}const Di=0,Le=1,bt=2,$i=3,ya=4,_o=5,Is=6,gf=7,fi=8,no=9,xa=10,Rt=11,ug=12,CN=13,_f=14,Li=15,hg=16,bf=17,Uc=18,fg=19,TN=20,$l=21,Kv=22,mu=23,Vt=25,PT=1,Wa=7,vf=9,Gi=10;var FT=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(FT||{});function bo(t){return Array.isArray(t)&&"object"==typeof t[PT]}function vo(t){return Array.isArray(t)&&!0===t[PT]}function OT(t){return!!(4&t.flags)}function pu(t){return t.componentOffset>-1}function Yv(t){return!(1&~t.flags)}function wa(t){return!!t.template}function NT(t){return!!(512&t[bt])}class ree{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function IN(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Un(){return AN}function AN(t){return t.type.prototype.ngOnChanges&&(t.setInput=see),oee}function oee(){const t=RN(this),n=t?.current;if(n){const e=t.previous;if(e===$a)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function see(t,n,e,i,r){const o=this.declaredInputs[i],s=RN(t)||function aee(t,n){return t[MN]=n}(t,{previous:$a,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new ree(l&&l.currentValue,e,c===$a),IN(t,n,r,e)}Un.ngInherit=!0;const MN="__ngSimpleChanges__";function RN(t){return t[MN]||null}const qa=function(t,n,e){},PN="svg";let ON=!1;function ai(t){for(;Array.isArray(t);)t=t[Di];return t}function pg(t,n){return ai(n[t])}function Go(t,n){return ai(n[t.index])}function gg(t,n){return t.data[n]}function yf(t,n){return t[n]}function As(t,n){const e=n[t];return bo(e)?e:e[Di]}function zT(t){return!(128&~t[bt])}function Qa(t,n){return null==n?null:t[n]}function NN(t){t[bf]=0}function fee(t){1024&t[bt]||(t[bt]|=1024,zT(t)&&_g(t))}function HT(t){return!!(9216&t[bt]||t[mu]?.dirty)}function jT(t){t[xa].changeDetectionScheduler?.notify(1),HT(t)?_g(t):64&t[bt]&&(function lee(){return ON}()?(t[bt]|=1024,_g(t)):t[xa].changeDetectionScheduler?.notify())}function _g(t){t[xa].changeDetectionScheduler?.notify();let n=gu(t);for(;null!==n&&!(8192&n[bt])&&(n[bt]|=8192,zT(n));)n=gu(n)}function Zv(t,n){if(!(256&~t[bt]))throw new le(911,!1);null===t[$l]&&(t[$l]=[]),t[$l].push(n)}function gu(t){const n=t[$i];return vo(n)?n[$i]:n}const Pt={lFrame:WN(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function BN(){return Pt.bindingsEnabled}function xf(){return null!==Pt.skipHydrationRootTNode}function be(){return Pt.lFrame.lView}function pn(){return Pt.lFrame.tView}function j(t){return Pt.lFrame.contextLView=t,t[fi]}function G(t){return Pt.lFrame.contextLView=null,t}function Xn(){let t=UN();for(;null!==t&&64===t.type;)t=t.parent;return t}function UN(){return Pt.lFrame.currentTNode}function Ka(t,n){const e=Pt.lFrame;e.currentTNode=t,e.isParent=n}function GT(){return Pt.lFrame.isParent}function WT(){Pt.lFrame.isParent=!1}function Wo(){const t=Pt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function zc(){return Pt.lFrame.bindingIndex}function ka(){return Pt.lFrame.bindingIndex++}function Hc(t){const n=Pt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function Cee(t,n){const e=Pt.lFrame;e.bindingIndex=e.bindingRootIndex=t,qT(n)}function qT(t){Pt.lFrame.currentDirectiveIndex=t}function QT(t){const n=Pt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function KT(){return Pt.lFrame.currentQueryIndex}function Jv(t){Pt.lFrame.currentQueryIndex=t}function Eee(t){const n=t[Le];return 2===n.type?n.declTNode:1===n.type?t[_o]:null}function $N(t,n,e){if(e&mn.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&mn.Host||(r=Eee(o),null===r||(o=o[_f],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Pt.lFrame=GN();return i.currentTNode=n,i.lView=t,!0}function XT(t){const n=GN(),e=t[Le];Pt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function GN(){const t=Pt.lFrame,n=null===t?null:t.child;return null===n?WN(t):n}function WN(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function qN(){const t=Pt.lFrame;return Pt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const QN=qN;function YT(){const t=qN();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function yo(){return Pt.lFrame.selectedIndex}function _u(t){Pt.lFrame.selectedIndex=t}function mi(){const t=Pt.lFrame;return gg(t.tView,t.selectedIndex)}function jc(){Pt.lFrame.currentNamespace=PN}function ey(){!function Iee(){Pt.lFrame.currentNamespace=null}()}let XN=!0;function vg(){return XN}function Xa(t){XN=t}function ty(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[bf]+=65536),(a>14>16&&(3&t[bt])===n&&(t[bt]+=16384,ZN(a,o)):ZN(a,o)}const wf=-1;class yg{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function eE(t){return t!==wf}function xg(t){return 32767&t}function wg(t,n){let e=function Nee(t){return t>>16}(t),i=n;for(;e>0;)i=i[_f],e--;return i}let tE=!0;function ry(t){const n=tE;return tE=t,n}const JN=255,e4=5;let Lee=0;const Ya={};function oy(t,n){const e=t4(t,n);if(-1!==e)return e;const i=n[Le];i.firstCreatePass&&(t.injectorIndex=n.length,nE(i.data,t),nE(n,null),nE(i.blueprint,null));const r=sy(t,n),o=t.injectorIndex;if(eE(r)){const s=xg(r),a=wg(r,n),c=a[Le].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function nE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function t4(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function sy(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=l4(r),null===i)return wf;if(e++,r=r[_f],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wf}function iE(t,n,e){!function Vee(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(og)&&(i=e[og]),null==i&&(i=e[og]=Lee++);const r=i&JN;n.data[t+(r>>e4)]|=1<=0?n&JN:Hee:n}(e);if("function"==typeof o){if(!$N(n,t,i))return i&mn.Host?n4(r,0,i):r4(n,e,i,r);try{let s;if(s=o(i),null!=s||i&mn.Optional)return s;gT()}finally{QN()}}else if("number"==typeof o){let s=null,a=t4(t,n),c=wf,l=i&mn.Host?n[Li][_o]:null;for((-1===a||i&mn.SkipSelf)&&(c=-1===a?sy(t,n):n[a+8],c!==wf&&c4(i,!1)?(s=n[Le],a=xg(c),n=wg(c,n)):a=-1);-1!==a;){const d=n[Le];if(a4(o,a,d.data)){const u=Uee(a,n,e,s,i,l);if(u!==Ya)return u}c=n[a+8],c!==wf&&c4(i,n[Le].data[a+8]===l)&&a4(o,a,n)?(s=d,a=xg(c),n=wg(c,n)):a=-1}}return r}function Uee(t,n,e,i,r,o){const s=n[Le],a=s.data[t+8],d=ay(a,s,e,null==i?pu(a)&&tE:i!=s&&!!(3&a.type),r&mn.Host&&o===a);return null!==d?bu(n,s,d,a):Ya}function ay(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,c=t.directiveStart,d=o>>20,h=r?a+d:t.directiveEnd;for(let f=i?a:a+d;f=c&&m.type===e)return f}if(r){const f=s[c];if(f&&wa(f)&&f.type===e)return c}return null}function bu(t,n,e,i){let r=t[e];const o=n.data;if(function Ree(t){return t instanceof yg}(r)){const s=r;s.resolving&&function aJ(t,n){throw n&&n.join(" > "),new le(-200,t)}(function Bn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Lt(t)}(o[e]));const a=ry(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ss(s.injectImpl):null;$N(t,i,mn.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Aee(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=AN(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==l&&ss(l),ry(a),s.resolving=!1,QN()}}return r}function a4(t,n,e){return!!(e[n+(t>>e4)]&1<{const n=t.prototype.constructor,e=n[Bc]||rE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Bc]||rE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function rE(t){return Pv(t)?()=>{const n=rE(At(t));return n&&n()}:uu(t)}function l4(t){const n=t[Le],e=n.type;return 2===e?n.declTNode:1===e?t[_o]:null}function Ms(t){return function Bee(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{class t{static#e=this.THROW_IF_NOT_FOUND=sg;static#t=this.NULL=new zv;static create(e,i){if(Array.isArray(e))return m4({name:""},i,e,"");{const r=e.name??"";return m4({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=we({token:t,providedIn:"any",factory:()=>Y(cN)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function sE(t){return t.ngOriginalError}class Rs{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&sE(n);for(;e&&sE(e);)e=sE(e);return e||null}}const _4=new J("",{providedIn:"root",factory:()=>he(Rs).handleError.bind(void 0)});let Tf=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Zee;static#t=this.__NG_ENV_ID__=e=>e}return t})();class Yee extends Tf{constructor(n){super(),this._lView=n}onDestroy(n){return Zv(this._lView,n),()=>function $T(t,n){if(null===t[$l])return;const e=t[$l].indexOf(n);-1!==e&&t[$l].splice(e,1)}(this._lView,n)}}function Zee(){return new Yee(be())}function Jee(){return Ef(Xn(),be())}function Ef(t,n){return new He(Go(t,n))}let He=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=Jee}return t})();function v4(t){return t instanceof He?t.nativeElement:t}function aE(t){return n=>{setTimeout(t,void 0,n)}}const Ce=class ete extends Me{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,wN()&&(this.destroyRef=he(Tf,{optional:!0})??void 0)}emit(n){const e=Gt(null);try{super.next(n)}finally{Gt(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=aE(o),r&&(r=aE(r)),s&&(s=aE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Wt&&n.add(a),a}};function tte(){return this._results[Symbol.iterator]()}class Gl{static#e=Symbol.iterator;get changes(){return this._changes??=new Ce}constructor(n=!1){this._emitDistinctChangesOnly=n,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 e=Gl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=tte)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function as(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function yJ(t,n,e){if(t.length!==n.length)return!1;for(let i=0;ikte}),kte="ng",B4=new J(""),$c=new J("",{providedIn:"platform",factory:()=>"unknown"}),pi=new J(""),hE=new J("",{providedIn:"root",factory:()=>Wl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let U4=()=>null;function yE(t,n,e=!1){return U4(t,n,e)}const G4=new J("",{providedIn:"root",factory:()=>!1});let by,vy;function If(t){return function CE(){if(void 0===by&&(by=null,$n.trustedTypes))try{by=$n.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return by}()?.createHTML(t)||t}function q4(t){return function TE(){if(void 0===vy&&(vy=null,$n.trustedTypes))try{vy=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return vy}()?.createHTML(t)||t}class vu{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${WO})`}}class Lte extends vu{getTypeName(){return"HTML"}}class Vte extends vu{getTypeName(){return"Style"}}class Bte extends vu{getTypeName(){return"Script"}}class Ute extends vu{getTypeName(){return"URL"}}class zte extends vu{getTypeName(){return"ResourceURL"}}function Ps(t){return t instanceof vu?t.changingThisBreaksApplicationSecurity:t}function Za(t,n){const e=function Hte(t){return t instanceof vu&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${WO})`)}return e===n}class Qte{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(If(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Kte{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=If(n),e}}const Yte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yy(t){return(t=String(t)).match(Yte)?t:"unsafe:"+t}function Gc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ag(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Y4=Gc("area,br,col,hr,img,wbr"),Z4=Gc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),J4=Gc("rp,rt"),EE=Ag(Y4,Ag(Z4,Gc("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")),Ag(J4,Gc("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")),Ag(J4,Z4)),SE=Gc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),eL=Ag(SE,Gc("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"),Gc("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")),Zte=Gc("script,style,template");class Jte{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)r.push(e),e=nne(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=tne(e);if(o){e=o;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=tL(n).toLowerCase();if(!EE.hasOwnProperty(e))return this.sanitizedSomething=!0,!Zte.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=tL(n).toLowerCase();EE.hasOwnProperty(e)&&!Y4.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(iL(n))}}function tne(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw nL(n);return n}function nne(t){const n=t.firstChild;if(n&&function ene(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw nL(n);return n}function tL(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function nL(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const ine=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rne=/([^\#-~ |!])/g;function iL(t){return t.replace(/&/g,"&").replace(ine,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(rne,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let xy;function rL(t,n){let e=null;try{xy=xy||function X4(t){const n=new Kte(t);return function Xte(){try{return!!(new window.DOMParser).parseFromString(If(""),"text/html")}catch{return!1}}()?new Qte(n):n}(t);let i=n?String(n):"";e=xy.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=xy.getInertBodyElement(i)}while(i!==o);return If((new Jte).sanitizeChildren(DE(e)||e))}finally{if(e){const i=DE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function DE(t){return"content"in t&&function one(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var io=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(io||{});function yu(t){const n=Mg();return n?q4(n.sanitize(io.HTML,t)||""):Za(t,"HTML")?q4(Ps(t)):rL(Wl(),Lt(t))}function wy(t){const n=Mg();return n?n.sanitize(io.URL,t)||"":Za(t,"URL")?Ps(t):yy(Lt(t))}function Mg(){const t=be();return t&&t[xa].sanitizer}const une=/^>|^->||--!>|)/g,fne="\u200b$1\u200b";function Fs(t){return t instanceof Function?t():t}var Ql=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ql||{});let RE;function PE(t,n){return RE(t,n)}function Mf(t,n,e,i,r){if(null!=i){let o,s=!1;vo(i)?o=i:bo(i)&&(s=!0,i=i[Di]);const a=ai(i);0===t&&null!==e?null==r?bL(n,e,a):xu(n,e,a,r||null,!0):1===t&&null!==e?xu(n,e,a,r||null,!0):2===t?function Fg(t,n,e){const i=Sy(t,n);i&&function Rne(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function One(t,n,e,i,r){const o=e[Wa];o!==ai(e)&&Mf(n,t,i,o,r);for(let a=Gi;an.replace(hne,fne))}(n))}function Ty(t,n,e){return t.createElement(n,e)}function pL(t,n){n[xa].changeDetectionScheduler?.notify(1),Iy(t,n,n[Rt],2,null,null)}function gL(t,n){const e=t[vf],i=e.indexOf(n);e.splice(i,1)}function Rg(t,n){if(t.length<=Gi)return;const e=Gi+n,i=t[e];if(i){const r=i[hg];null!==r&&r!==t&&gL(r,i),n>0&&(t[e-1][ya]=i[ya]);const o=Bv(t,Gi+n);!function Tne(t,n){pL(t,n),n[Di]=null,n[_o]=null}(i[Le],i);const s=o[Uc];null!==s&&s.detachView(o[Le]),i[$i]=null,i[ya]=null,i[bt]&=-129}return i}function Ey(t,n){if(!(256&n[bt])){const e=n[Rt];e.destroyNode&&Iy(t,n,e,3,null,null),function Sne(t){let n=t[ug];if(!n)return NE(t[Le],t);for(;n;){let e=null;if(bo(n))e=n[ug];else{const i=n[Gi];i&&(e=i)}if(!e){for(;n&&!n[ya]&&n!==t;)bo(n)&&NE(n[Le],n),n=n[$i];null===n&&(n=t),bo(n)&&NE(n[Le],n),e=n&&n[ya]}n=e}}(n)}}function NE(t,n){if(256&n[bt])return;const e=Gt(null);try{n[bt]&=-129,n[bt]|=256,n[mu]&&PO(n[mu]),function Mne(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[gf]=null);const r=n[$l];if(null!==r){n[$l]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===ba.None||o===ba.Emulated)return null}return Go(i,e)}}(t,n.parent,e)}function xu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function bL(t,n,e){t.appendChild(n,e)}function vL(t,n,e,i,r){null!==i?xu(t,n,e,i,r):bL(t,n,e)}function Sy(t,n){return t.parentNode(n)}function yL(t,n,e){return wL(t,n,e)}let VE,wL=function xL(t,n,e){return 40&t.type?Go(t,e):null};function Dy(t,n,e,i){const r=LE(t,i,n),o=n[Rt],a=yL(i.parent||n[_o],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;cVt&&IL(t,n,Vt,!1),qa(s?2:0,r),e(i,r)}finally{_u(o),qa(s?3:1,r)}}function HE(t,n,e){if(OT(n)){const i=Gt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function FL(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,c=W.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(null!==r){if(!r.hasOwnProperty(o))continue;l=r[o]}0===t?OL(i,e,l,a,c):OL(i,e,l,a)}return i}function OL(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],void 0!==r&&o.push(r)}function ds(t,n,e,i,r,o,s,a){const c=Go(n,e);let d,l=n.inputs;!a&&null!=l&&(d=l[i])?(XE(t,e,d,i,r),pu(n)&&function Qne(t,n){const e=As(n,t);16&e[bt]||(e[bt]|=64)}(e,n.index)):3&n.type&&(i=function qne(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(c,i,r))}function WE(t,n,e,i){if(BN()){const r=null===i?null:{"":-1},o=function eie(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,Og(t,e,r.hostVars,Ut),r)}function Ja(t,n,e,i,r,o){const s=Go(t,n);!function QE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Lt(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Rt],s,o,t.value,e,i,r)}function sie(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(e[r-1][ya]=n),i{_g(t.lView)},consumerOnSignalRead(){this.lView[mu]=this}},WL=100;function Fy(t,n=!0,e=0){const i=t[xa],r=i.rendererFactory;r.begin?.();try{!function pie(t,n){JE(t,n);let e=0;for(;HT(t);){if(e===WL)throw new le(103,!1);e++,JE(t,1)}}(t,e)}catch(s){throw n&&Py(t,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function gie(t,n,e,i){const r=n[bt];if(!(256&~r))return;n[xa].inlineEffectRunner?.flush(),XT(n);let s=null,a=null;(function _ie(t){return 2!==t.type})(t)&&(a=function uie(t){return t[mu]??function hie(t){const n=GL.pop()??Object.create(mie);return n.lView=t,n}(t)}(n),s=Jh(a));try{NN(n),function HN(t){return Pt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&ML(t,n,e,2,i);const c=!(3&~r);if(c){const u=t.preOrderCheckHooks;null!==u&&ny(n,u,null)}else{const u=t.preOrderHooks;null!==u&&iy(n,u,0,null),ZT(n,0)}if(function bie(t){for(let n=I4(t);null!==n;n=A4(n)){if(!(n[bt]&FT.HasTransplantedViews))continue;const e=n[vf];for(let i=0;i-1&&(Rg(n,i),Bv(e,i))}this._attachedToViewContainer=!1}Ey(this._lView[Le],this._lView)}onDestroy(n){Zv(this._lView,n)}markForCheck(){Bg(this._cdRefInjectingView||this._lView)}detach(){this._lView[bt]&=-129}reattach(){jT(this._lView),this._lView[bt]|=128}detectChanges(){this._lView[bt]|=1024,Fy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,pL(this._lView[Le],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new le(902,!1);this._appRef=n,jT(this._lView)}}let Gn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=wie}return t})();const yie=Gn,xie=class extends yie{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=Ng(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Ug(r)}};function wie(){return Oy(Xn(),be())}function Oy(t,n){return 4&t.type?new xie(n,t,Ef(t,n)):null}let t3=()=>null;function Ff(t,n){return t3(t,n)}class Uy{}class Wie{}class n3{}class Qie{resolveComponentFactory(n){throw function qie(t){const n=Error(`No component factory found for ${xr(t)}.`);return n.ngComponent=t,n}(n)}}let wu=(()=>{class t{static#e=this.NULL=new Qie}return t})();class oS{}let qc=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Kie(){const t=be(),e=As(Xn().index,t);return(bo(e)?e:t)[Rt]}()}return t})(),Xie=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>null})}return t})();const sS={},o3=new Set;function ec(t){o3.has(t)||(o3.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function s3(...t){}class Be{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new le(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Yie(){const t="function"==typeof $n.requestAnimationFrame;let n=$n[t?"requestAnimationFrame":"setTimeout"],e=$n[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function ere(t){const n=()=>{!function Jie(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($n,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,cS(t),t.isCheckStableRunning=!0,aS(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),cS(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function tre(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return a3(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),c3(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return a3(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),c3(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,cS(t),aS(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Be.isInAngularZone())throw new le(909,!1)}static assertNotInAngularZone(){if(Be.isInAngularZone())throw new le(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Zie,s3,s3);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Zie={};function aS(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function cS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function a3(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function c3(t){t._nesting--,aS(t)}class l3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}var ku=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ku||{});const d3={destroy(){}};function u3(t,n){!n&&qv();const e=n?.injector??he(Ii);if(!function ql(t){return"browser"===(t??he(Ii)).get($c)}(e))return d3;ec("NgAfterNextRender");const i=e.get(Gg),r=i.handler??=new f3,o=n?.phase??ku.MixedReadWrite,s=()=>{r.unregister(c),a()},a=e.get(Tf).onDestroy(s),c=Ga(e,()=>new h3(o,()=>{s(),t()}));return r.register(c),{destroy:s}}class h3{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=he(Be),this.errorHandler=he(Rs,{optional:!0}),he(Uy,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class f3{constructor(){this.executingCallbacks=!1,this.buckets={[ku.EarlyRead]:new Set,[ku.Write]:new Set,[ku.MixedReadWrite]:new Set,[ku.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Gg=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>new t})}return t})();function Hy(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0&&SL(t,e,o.join(" "))}}(f,A,g,i),void 0!==e&&function fre(t,n,e){const i=t.projection=[];for(let r=0;r{class t{static#e=this.__NG_ELEMENT_ID__=pre}return t})();function pre(){return y3(Xn(),be())}const gre=di,b3=class extends gre{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ef(this._hostTNode,this._hostLView)}get injector(){return new Cr(this._hostTNode,this._hostLView)}get parentInjector(){const n=sy(this._hostTNode,this._hostLView);if(eE(n)){const e=wg(n,this._hostLView),i=xg(n);return new Cr(e[Le].data[i+8],e)}return new Cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=v3(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Gi}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=Ff(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Pf(this._hostTNode,s)),a}createComponent(n,e,i,r,o){const s=n&&!function dg(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const m=e||{};a=m.index,i=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const c=s?n:new Qg(cn(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const g=(s?l:this.parentInjector).get(cs,null);g&&(o=g)}const d=cn(c.componentType??{}),u=Ff(this._lContainer,d?.id??null),f=c.create(l,r,u?.firstChild??null,o);return this.insertImpl(f.hostView,a,Pf(this._hostTNode,u)),f}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const r=n._lView;if(function hee(t){return vo(t[$i])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=r[$i],l=new b3(c,c[_o],c[$i]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;return Lg(s,r,o,i),n.attachToViewContainerRef(),oN(hS(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=v3(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Rg(this._lContainer,e);i&&(Bv(hS(this._lContainer),e),Ey(i[Le],i))}detach(n){const e=this._adjustIndex(n,-1),i=Rg(this._lContainer,e);return i&&null!=Bv(hS(this._lContainer),e)?new Ug(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function v3(t){return t[8]}function hS(t){return t[8]||(t[8]=[])}function y3(t,n){let e;const i=n[t.index];return vo(i)?e=i:(e=VL(i,n,null,t),n[t.index]=e,Ry(n,e)),x3(e,n,t,i),new b3(e,t,n)}let x3=function k3(t,n,e,i){if(t[Wa])return;let r;r=8&e.type?ai(i):function _re(t,n){const e=t[Rt],i=e.createComment(""),r=Go(n,t);return xu(e,Sy(e,r),i,function Pne(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[Wa]=r},fS=()=>!1;class mS{constructor(n){this.queryList=n,this.matches=null}clone(){return new mS(this.queryList)}setDirty(){this.queryList.setDirty()}}class pS{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;on.trim())}(n):n}}class gS{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(s[a/2]);else{const l=o[a+1],d=n[-c];for(let u=Gi;u=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=cg(r.hostAttrs,e=cg(e,r.hostAttrs))}}(i)}function Lre(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function Wy(t){return t===$a?{}:t===An?[]:t}function Bre(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Ure(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function zre(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Kt(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}class Cu{}class q3{}class wS extends Cu{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new g3(this);const r=go(n);this._bootstrapComponents=Fs(r.bootstrap),this._r3Injector=p4(n,e,[{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver},...i],xr(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class kS extends q3{constructor(n){super(),this.moduleType=n}create(n){return new wS(this.moduleType,n,[])}}class Q3 extends Cu{constructor(n){super(),this.componentFactoryResolver=new g3(this),this.instance=null;const e=new ff([...n.providers,{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],n.parent||Wv(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function qy(t,n,e=null){return new Q3({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Yl=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new wi(!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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ky(t){return!!function CS(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function tc(t,n,e){return t[n]=e}function Wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Tu(t,n,e,i){const r=Wi(t,n,e);return Wi(t,n+1,i)||r}function q(t,n,e,i,r,o,s,a){const c=be(),l=pn(),d=t+Vt,u=l.firstCreatePass?function eoe(t,n,e,i,r,o,s,a,c){const l=n.consts,d=Rf(n,t,4,s||null,Qa(l,a));WE(n,e,d,Qa(l,c)),ty(n,d);const u=d.tView=GE(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,l,c,n,e,i,r,o,s):l.data[d];Ka(u,!1);const h=K3(l,c,u,t);vg()&&Dy(l,c,h,u),xo(h,c);const f=VL(h,c,h,u);return c[d]=f,Ry(c,f),function w3(t,n,e){return fS(t,n,e)}(f,u,c),Yv(u)&&jE(l,c,u),null!=s&&$E(c,u,a),q}let K3=function X3(t,n,e,i){return Xa(!0),n[Rt].createComment("")};function _t(t,n,e,i){const r=be();return Wi(r,ka(),n)&&(pn(),Ja(mi(),r,t,n,e,i)),_t}function jf(t,n,e,i){return Wi(t,ka(),e)?n+Lt(e)+i:Ut}function Gf(t,n,e,i,r,o,s,a){const l=function Xy(t,n,e,i,r){const o=Tu(t,n,e,i);return Wi(t,n+2,r)||o}(t,zc(),e,r,s);return Hc(3),l?n+Lt(e)+i+Lt(r)+o+Lt(s)+a:Ut}function nx(t,n){return t<<17|n<<2}function Jl(t){return t>>17&32767}function FS(t){return 2|t}function Su(t){return(131068&t)>>2}function OS(t,n){return-131069&t|n<<2}function NS(t){return 1|t}function SV(t,n,e,i){const r=t[e+1],o=null===n;let s=i?Jl(r):Su(r),a=!1;for(;0!==s&&(!1===a||o);){const l=t[s+1];Boe(t[s],n)&&(a=!0,t[s+1]=i?NS(l):FS(l)),s=i?Jl(l):Su(l)}a&&(t[e+1]=i?FS(r):NS(r))}function Boe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&hf(t,n)>=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function DV(t){return t.substring(Tr.key,Tr.keyEnd)}function IV(t,n){const e=Tr.textEnd;return e===n?-1:(n=Tr.keyEnd=function joe(t,n,e){for(;n32;)n++;return n}(t,Tr.key=n,e),Yf(t,n,e))}function Yf(t,n,e){for(;n=0;e=IV(n,e))Ds(t,DV(n),!0)}function Ca(t,n,e,i){const r=be(),o=pn(),s=Hc(2);o.firstUpdatePass&&OV(o,t,s,i),n!==Ut&&Wi(r,s,n)&&LV(o,o.data[yo()],r,r[Rt],t,r[s+1]=function ese(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=xr(Ps(t)))),t}(n,e),i,s)}function Ta(t,n,e,i){const r=pn(),o=Hc(2);r.firstUpdatePass&&OV(r,null,o,i);const s=be();if(e!==Ut&&Wi(s,o,e)){const a=r.data[yo()];if(BV(a,i)&&!FV(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=aT(c,e||"")),LS(r,a,s,e,i)}else!function Joe(t,n,e,i,r,o,s,a){r===Ut&&(r=An);let c=0,l=0,d=0=t.expandoStartIndex}function OV(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[yo()],s=FV(t,e);BV(o,i)&&null===n&&!s&&(n=!1),n=function qoe(t,n,e,i){const r=QT(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=t_(e=VS(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=VS(r,t,n,e,i),null===o){let c=function Qoe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Su(i))return t[Jl(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=VS(null,t,n,c[1],i),c=t_(c,n.attrs,i),function Koe(t,n,e,i){t[Jl(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function Xoe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Jl(t[a+1]);t[i+1]=nx(h,a),0!==h&&(t[h+1]=OS(t[h+1],i)),t[a+1]=function Ooe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=nx(a,0),0!==a&&(t[a+1]=OS(t[a+1],i)),a=i;else t[i+1]=nx(c,0),0===a?a=i:t[c+1]=OS(t[c+1],i),c=i;l&&(t[i+1]=FS(t[i+1])),SV(t,d,i,!0),SV(t,d,i,!1),function Voe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&hf(o,n)>=0&&(e[i+1]=NS(e[i+1]))}(n,d,t,i,o),s=nx(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function VS(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===Ut&&(h=u?An:void 0);let f=u?xT(h,i):d===i?h:void 0;if(l&&!ix(f)&&(f=xT(c,i)),ix(f)&&(a=f,s))return a;const m=t[r+1];r=s?Jl(m):Su(m)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=xT(c,i))}return a}function ix(t){return void 0!==t}function BV(t,n){return!!(t.flags&(n?8:16))}class dse{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){const s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}}function BS(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function US(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function zV(t,n,e,i,r){if(US(t,n,i,e(i,r)))t.updateValue(i,r);else{const o=t.create(i,r);t.attach(i,o)}}function HV(t,n,e,i){const r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}class jV{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}}function _n(t,n,e){ec("NgControlFlow");const i=be(),r=ka(),o=$S(i,Vt+t);if(Wi(i,r,n)){const a=Gt(null);try{if(ZE(o,0),-1!==n){const c=GS(i[Le],Vt+n),l=Ff(o,c.tView.ssrId);Lg(o,Ng(i,c,e,{dehydratedView:l}),0,Pf(c,l))}}finally{Gt(a)}}else{const a=jL(o,0);void 0!==a&&(a[fi]=e)}}class hse{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Gi}}function zS(t,n){return n}class mse{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function HS(t,n,e,i,r,o,s,a,c,l,d,u,h){ec("NgControlFlow");const f=void 0!==c,m=be(),g=a?s.bind(m[Li][fi]):s,p=new mse(f,g);m[Vt+t]=p,q(t+1,n,e,i,r,o),f&&q(t+2,c,l,d,u,h)}class pse extends dse{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Gi}at(n){return this.getLView(n)[fi].$implicit}attach(n,e){const i=e[Is];this.needsIndexUpdate||=n!==this.length,Lg(this.lContainer,e,n,Pf(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function gse(t,n){return Rg(t,n)}(this.lContainer,n)}create(n,e){const i=Ff(this.lContainer,this.templateTNode.tView.ssrId);return Ng(this.hostLView,this.templateTNode,new hse(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Ey(n[Le],n)}updateValue(n,e){this.getLView(n)[fi].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(a)})}(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=ka(),c=0===s.length;if(Wi(i,a,c)){const l=e+2,d=$S(i,l);if(c){const u=GS(r,l),h=Ff(d,u.tView.ssrId);Lg(d,Ng(i,u,void 0,{dehydratedView:h}),0,Pf(u,h))}else ZE(d,0)}}}finally{Gt(n)}}function $S(t,n){return t[n]}function GS(t,n){return gg(t,n)}function _(t,n,e,i){const r=be(),o=pn(),s=Vt+t,a=r[Rt],c=o.firstCreatePass?function bse(t,n,e,i,r,o){const s=n.consts,c=Rf(n,t,2,i,Qa(s,r));return WE(n,e,c,Qa(s,o)),null!==c.attrs&&Hy(c,c.attrs,!1),null!==c.mergedAttrs&&Hy(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],l=$V(o,r,c,a,n,t);r[s]=l;const d=Yv(c);return Ka(c,!0),DL(a,l,c),!function Yg(t){return!(32&~t.flags)}(c)&&vg()&&Dy(o,r,l,c),0===function mee(){return Pt.lFrame.elementDepthCount}()&&xo(l,r),function pee(){Pt.lFrame.elementDepthCount++}(),d&&(jE(o,r,c),HE(o,c,r)),null!==i&&$E(r,c),_}function b(){let t=Xn();GT()?WT():(t=t.parent,Ka(t,!1));const n=t;(function _ee(t){return Pt.skipHydrationRootTNode===t})(n)&&function xee(){Pt.skipHydrationRootTNode=null}(),function gee(){Pt.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(ty(e,t),OT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Fee(t){return!!(8&t.flags)}(n)&&LS(e,n,be(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Oee(t){return!!(16&t.flags)}(n)&&LS(e,n,be(),n.stylesWithoutHost,!1),b}function xe(t,n,e,i){return _(t,n,e,i),b(),xe}let $V=(t,n,e,i,r,o)=>(Xa(!0),Ty(i,r,function KN(){return Pt.lFrame.currentNamespace}()));function zt(t,n,e){const i=be(),r=pn(),o=t+Vt,s=r.firstCreatePass?function xse(t,n,e,i,r){const o=n.consts,s=Qa(o,i),a=Rf(n,t,8,"ng-container",s);return null!==s&&Hy(a,s,!0),WE(n,e,a,Qa(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ka(s,!0);const a=GV(r,i,s,t);return i[o]=a,vg()&&Dy(r,i,a,s),xo(a,i),Yv(s)&&(jE(r,i,s),HE(r,s,i)),null!=e&&$E(i,s),zt}function Ht(){let t=Xn();const n=pn();return GT()?WT():(t=t.parent,Ka(t,!1)),n.firstCreatePass&&(ty(n,t),OT(t)&&n.queries.elementEnd(t)),Ht}function Er(t,n,e){return zt(t,n,e),Ht(),Er}let GV=(t,n,e,i)=>(Xa(!0),OE(n[Rt],""));function Se(){return be()}function rc(t,n,e){const i=be();return Wi(i,ka(),n)&&ds(pn(),mi(),i,t,n,i[Rt],e,!0),rc}function rx(t,n,e){const i=be();if(Wi(i,ka(),n)){const o=pn(),s=mi();ds(o,s,i,t,n,HL(QT(o.data),s,i),e,!0)}return rx}const Du=void 0;var Tse=["en",[["a","p"],["AM","PM"],Du],[["AM","PM"],Du,Du],[["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"]],Du,[["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"]],Du,[["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}",Du,"{1} 'at' {0}",Du],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cse(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Zf={};function qo(t){const n=function Ese(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=qV(n);if(e)return e;const i=n.split("-")[0];if(e=qV(i),e)return e;if("en"===i)return Tse;throw new le(701,!1)}function qV(t){return t in Zf||(Zf[t]=$n.ng&&$n.ng.common&&$n.ng.common.locales&&$n.ng.common.locales[t]),Zf[t]}var gi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(gi||{});const Jf="en-US";let QV=Jf;function U(t,n,e,i){const r=be(),o=pn(),s=Xn();return QS(o,r,r[Rt],s,t,n,i),U}function lx(t,n){const e=Xn(),i=be(),r=pn();return QS(r,i,HL(QT(r.data),e,i),e,t,n),lx}function QS(t,n,e,i,r,o,s){const a=Yv(i),l=t.firstCreatePass&&zL(t),d=n[fi],u=UL(n);let h=!0;if(3&i.type||s){const g=Go(i,n),p=s?s(g):g,v=u.length,x=s?D=>s(ai(D[i.index])):i.index;let C=null;if(!s&&a&&(C=function wae(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=xB(i,n,d,o,!1);const D=e.listen(p,r,o);u.push(o,D),l&&l.push(r,x,v,v+1)}}else o=xB(i,n,d,o,!1);const f=i.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?As(t.index,n):n);let c=yB(n,e,i,s),l=o.__ngNextListenerFn__;for(;l;)c=yB(n,e,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function R(t=1){return function See(t){return(Pt.lFrame.contextLView=function LN(t,n){for(;t>0;)n=n[_f],t--;return n}(t,Pt.lFrame.contextLView))[fi]}(t)}function kae(t,n){let e=null;const i=function EJ(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r(Xa(!0),function FE(t,n){return t.createText(n)}(n[Rt],i));function Ke(t){return Je("",t,""),Ke}function Je(t,n,e){const i=be(),r=jf(i,t,n,e);return r!==Ut&&Wc(i,yo(),r),Je}function Iu(t,n,e,i,r){const o=be(),s=function $f(t,n,e,i,r,o){const a=Tu(t,zc(),e,r);return Hc(2),a?n+Lt(e)+i+Lt(r)+o:Ut}(o,t,n,e,i,r);return s!==Ut&&Wc(o,yo(),s),Iu}function c_(t,n,e,i,r,o,s){const a=be(),c=Gf(a,t,n,e,i,r,o,s);return c!==Ut&&Wc(a,yo(),c),c_}function Sr(t,n,e){R3(n)&&(n=n());const i=be();return Wi(i,ka(),n)&&ds(pn(),mi(),i,t,n,i[Rt],e,!1),Sr}function jr(t,n){const e=R3(t);return e&&t.set(n),e}function Dr(t,n){const e=be(),i=pn(),r=Xn();return QS(i,e,e[Rt],r,t,n),Dr}function KS(t,n,e,i,r){if(t=At(t),Array.isArray(t))for(let o=0;o>20;if(fu(t)||!t.multi){const f=new yg(l,r,w),m=YS(c,n,r?d:d+h,u);-1===m?(iE(oy(a,s),o,c),XS(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{const f=YS(c,n,d+h,u),m=YS(c,n,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){iE(oy(a,s),o,c);const v=function Hae(t,n,e,i,r){const o=new yg(t,e,w);return o.multi=[],o.index=n,o.componentProviders=0,WB(o,r,i&&!e),o}(r?zae:Uae,e.length,r,i,l);!r&&p&&(e[m].providerFactory=v),XS(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),s.push(v)}else XS(o,t,f>-1?f:m,WB(e[r?m:f],l,!r&&i));!r&&i&&p&&e[m].componentProviders++}}}function XS(t,n,e,i){const r=fu(n),o=function BJ(t){return!!t.useClass}(n);if(r||o){const c=(o?At(n.useClass):n).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(e);-1===d?l.push(e,[i,c]):l[d+1].push(i,c)}else l.push(e,c)}}}function WB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function YS(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Bae(t,n,e){const i=pn();if(i.firstCreatePass){const r=wa(t);KS(e,i.data,i.blueprint,r,!0),KS(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}let jae=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=TT(0,e.type),r=i.length>0?qy([i],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=we({token:t,providedIn:"environment",factory:()=>new t(Y(cs))})}return t})();function St(t){ec("NgStandalone"),t.getStandaloneInjector=n=>n.get(jae).getOrCreateStandaloneInjector(t)}function hs(t,n,e){const i=Wo()+t,r=be();return r[i]===Ut?tc(r,i,e?n.call(e):n()):function Xg(t,n){return t[n]}(r,i)}function Ea(t,n,e,i){return QB(be(),Wo(),t,n,e,i)}function JS(t,n,e,i,r){return KB(be(),Wo(),t,n,e,i,r)}function l_(t,n){const e=t[n];return e===Ut?void 0:e}function QB(t,n,e,i,r,o){const s=n+e;return Wi(t,s,r)?tc(t,s+1,o?i.call(o,r):i(r)):l_(t,s+1)}function KB(t,n,e,i,r,o,s){const a=n+e;return Tu(t,a,r,o)?tc(t,a+2,s?i.call(s,r,o):i(r,o)):l_(t,a+2)}function wo(t,n){const e=pn();let i;const r=t+Vt;e.firstCreatePass?(i=function Jae(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=uu(i.type)),a=ss(w);try{const c=ry(!1),l=o();return ry(c),function Sae(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,be(),r,l),l}finally{ss(a)}}function oc(t,n,e){const i=t+Vt,r=be(),o=yf(r,i);return d_(r,i)?QB(r,Wo(),n,o.transform,e,o):o.transform(e)}function Au(t,n,e,i){const r=t+Vt,o=be(),s=yf(o,r);return d_(o,r)?KB(o,Wo(),n,s.transform,e,i,s):s.transform(e,i)}function d_(t,n){return t[Le].data[n].pure}function tm(t,n){return Oy(t,n)}let m5=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const v5=new J(""),mx=new J("");let aD,oD=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,aD||(function Kce(t){aD=t}(r),r.addToWindow(i)),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:()=>{Be.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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(sD),Y(mx))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),sD=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}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,i=!0){return aD?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function f_(t){return!!t&&"function"==typeof t.then}function y5(t){return!!t&&"function"==typeof t.subscribe}const cD=new J("");let lD=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=he(cD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(f_(o))e.push(o);else if(y5(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dD=new J("");function k5(t,n){return Array.isArray(n)?n.reduce(k5,t):{...t,...n}}let Qc=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=he(_4),this.afterRenderEffectManager=he(Gg),this.externalTestViews=new Set,this.beforeRender=new Me,this.afterTick=new Me,this.componentTypes=[],this.components=[],this.isStable=he(Yl).hasPendingTasks.pipe(mt(e=>!e)),this._injector=he(cs)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof n3;if(!this._injector.get(lD).done)throw!r&&function jl(t){const n=cn(t)||wr(t)||to(t);return null!==n&&n.standalone}(e),new le(405,!1);let s;s=r?e:this._injector.get(wu).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Xce(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Cu),l=s.create(Ii.NULL,[],i||s.selector,a),d=l.location.nativeElement,u=l.injector.get(v5,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),px(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new le(101,!1);const i=Gt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,Gt(i)}}detectChangesInAttachedViews(e){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===WL)throw new le(103,!1);if(e){const o=0===i;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)Zce(s,o,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>uD(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>uD(o))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;px(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(dD,[]);[...this._bootstrapListeners,...i].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),()=>px(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new le(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function px(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function Zce(t,n,e){!n&&!uD(t)||function Jce(t,n,e){let i;e?(i=0,t[bt]|=1024):i=64&t[bt]?0:1,Fy(t,n,i)}(t,e,n)}function uD(t){return HT(t)}class ele{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let C5=(()=>{class t{compileModuleSync(e){return new kS(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Fs(go(e).declarations).reduce((s,a)=>{const c=cn(a);return c&&s.push(new Qg(c)),s},[]);return new ele(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ile=(()=>{class t{constructor(){this.zone=he(Be),this.applicationRef=he(Qc)}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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rle(){const t=he(Be),n=he(Rs);return e=>t.runOutsideAngular(()=>n.handleError(e))}let sle=(()=>{class t{constructor(){this.subscription=new Wt,this.initialized=!1,this.zone=he(Be),this.pendingTasks=he(Yl)}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(()=>{Be.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const sc=new J("",{providedIn:"root",factory:()=>he(sc,mn.Optional|mn.SkipSelf)||function ale(){return typeof $localize<"u"&&$localize.locale||Jf}()}),hD=new J("");let D5=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function nre(t="zone.js",n){return"noop"===t?new l3:"zone.js"===t?new Be(n):t}(i?.ngZone,function S5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function Qre(t,n,e){return new wS(t,n,e)}(e.moduleType,this.injector,function E5(t){return[{provide:Be,useFactory:t},{provide:hu,multi:!0,useFactory:()=>{const n=he(ile,{optional:!0});return()=>n.initialize()}},{provide:hu,multi:!0,useFactory:()=>{const n=he(sle);return()=>{n.initialize()}}},{provide:_4,useFactory:rle}]}(()=>r)),s=o.injector.get(Rs,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{px(this._modules,o),a.unsubscribe()})}),function w5(t,n,e){try{const i=e();return f_(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(lD);return a.runInitializers(),a.donePromise.then(()=>(function KV(t){"string"==typeof t&&(QV=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(sc,Jf)||Jf),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=k5({},i);return function nle(t,n,e){const i=new kS(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new le(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new le(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(hD,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ii))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),ed=null;const I5=new J("");function A5(t,n,e=[]){const i=`Platform: ${n}`,r=new J(i);return(o=[])=>{let s=fD();if(!s||s.injector.get(I5,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function dle(t){if(ed&&!ed.get(I5,!1))throw new le(400,!1);(function x5(){!function RZ(t){NO=t}(()=>{throw new le(600,!1)})})(),ed=t;const n=t.get(D5);(function R5(t){t.get(B4,null)?.forEach(e=>e())})(t)}(function M5(t=[],n){return Ii.create({name:n,providers:[{provide:DT,useValue:"platform"},{provide:hD,useValue:new Set([()=>ed=null])},...t]})}(a,i))}return function ule(t){const n=fD();if(!n)throw new le(401,!1);return n}()}}function fD(){return ed?.get(D5)??null}let gn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=fle}return t})();function fle(t){return function mle(t,n,e){if(pu(t)&&!e){const i=As(t.index,n);return new Ug(i,i)}return 47&t.type?new Ug(n[Li],n):null}(Xn(),be(),!(16&~t))}class L5{constructor(){}supports(n){return Ky(n)}create(n){return new vle(n)}}const ble=(t,n)=>n;class vle{constructor(n){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=n||ble}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new yle(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new V5),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new V5),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class yle{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xle{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class V5{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new xle,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function B5(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:z5});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||z5()),deps:[[t,new df,new Hl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new le(901,!1)}}return t})();const Ele=A5(null,"core",[]);let Sle=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Qc))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();function Ue(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Xi(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function d8(t){const n=Gt(null);try{return t()}finally{Gt(n)}}const ide=new J("",{providedIn:"root",factory:()=>he(rde)});let rde=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>new ode})}return t})();class ode{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=he(Yl),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){const e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);const i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,e]of this.queues)null===n?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(const e of n)n.delete(e),this.queuedEffectCount--,e.run()}}class sde{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=function NZ(t,n,e){const i=Object.create(LZ);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=c=>{i.cleanupFn=c};return i.ref={notify:()=>ng(i),run:()=>{if(null===i.fn)return;if(function Fn(){return si}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!XC(i))return;i.hasRun=!0;const c=Jh(i);try{i.cleanupFn(),i.cleanupFn=ZC,i.fn(r)}finally{Vl(i,c)}},cleanup:()=>i.cleanupFn(),destroy:()=>function s(c){(function o(c){return null===c.fn&&null===c.schedule})(c)||(PO(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=ZC)}(i),[cr]:i},i.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Rs,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let h8=null;function nd(){return h8}class lde{}const xt=new J("");let yD=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(ude),providedIn:"platform"})}return t})();const dde=new J("");let ude=(()=>{class t extends yD{constructor(){super(),this._doc=he(xt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nd().getBaseHref(this._doc)}onPopState(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function xD(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function f8(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Kc(t){return t&&"?"!==t[0]?"?"+t:t}let Pu=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(p8),providedIn:"root"})}return t})();const m8=new J("");let p8=(()=>{class t extends Pu{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??he(xt).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 xD(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Kc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Kc(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Kc(o));this._platformLocation.replaceState(e,i,s)}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(i){return new(i||t)(Y(yD),Y(m8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hde=(()=>{class t extends Pu{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=xD(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Kc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Kc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}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(i){return new(i||t)(Y(yD),Y(m8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),Fu=(()=>{class t{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function pde(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(f8(g8(i))),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,i=""){return this.path()==this.normalize(e+Kc(i))}normalize(e){return t.stripTrailingSlash(function mde(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,g8(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kc(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kc(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static#e=this.normalizeQueryParams=Kc;static#t=this.joinWithSlash=xD;static#n=this.stripTrailingSlash=f8;static#i=this.\u0275fac=function(i){return new(i||t)(Y(Pu))};static#r=this.\u0275prov=we({token:t,factory:()=>function fde(){return new Fu(Y(Pu))}(),providedIn:"root"})}return t})();function g8(t){return t.replace(/\/index.html$/,"")}var Ko=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ko||{}),ui=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(ui||{}),Ns=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Ns||{});const lr={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};function Ex(t,n){return Js(qo(t)[gi.DateFormat],n)}function Sx(t,n){return Js(qo(t)[gi.TimeFormat],n)}function Dx(t,n){return Js(qo(t)[gi.DateTimeFormat],n)}function Zs(t,n){const e=qo(t),i=e[gi.NumberSymbols][n];if(typeof i>"u"){if(n===lr.CurrencyDecimal)return e[gi.NumberSymbols][lr.Decimal];if(n===lr.CurrencyGroup)return e[gi.NumberSymbols][lr.Group]}return i}function b8(t){if(!t[gi.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[gi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Js(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function kD(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const Ide=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ix={},Ade=/((?:[^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 Xc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Xc||{}),zn=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(zn||{}),Hn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Hn||{});function Mde(t,n,e,i){let r=function Ude(t){if(x8(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ax(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Ide))return function zde(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,c,l),n}(i)}const n=new Date(t);if(!x8(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Yc(e,n)||n;let a,s=[];for(;n;){if(a=Ade.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const d=s.pop();if(!d)break;n=d}}let c=r.getTimezoneOffset();i&&(c=y8(i,c),r=function Bde(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Vde(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(y8(n,r)-r))}(r,i,!0));let l="";return s.forEach(d=>{const u=function Lde(t){if(TD[t])return TD[t];let n;switch(t){case"G":case"GG":case"GGG":n=_i(Hn.Eras,ui.Abbreviated);break;case"GGGG":n=_i(Hn.Eras,ui.Wide);break;case"GGGGG":n=_i(Hn.Eras,ui.Narrow);break;case"y":n=dr(zn.FullYear,1,0,!1,!0);break;case"yy":n=dr(zn.FullYear,2,0,!0,!0);break;case"yyy":n=dr(zn.FullYear,3,0,!1,!0);break;case"yyyy":n=dr(zn.FullYear,4,0,!1,!0);break;case"Y":n=Fx(1);break;case"YY":n=Fx(2,!0);break;case"YYY":n=Fx(3);break;case"YYYY":n=Fx(4);break;case"M":case"L":n=dr(zn.Month,1,1);break;case"MM":case"LL":n=dr(zn.Month,2,1);break;case"MMM":n=_i(Hn.Months,ui.Abbreviated);break;case"MMMM":n=_i(Hn.Months,ui.Wide);break;case"MMMMM":n=_i(Hn.Months,ui.Narrow);break;case"LLL":n=_i(Hn.Months,ui.Abbreviated,Ko.Standalone);break;case"LLLL":n=_i(Hn.Months,ui.Wide,Ko.Standalone);break;case"LLLLL":n=_i(Hn.Months,ui.Narrow,Ko.Standalone);break;case"w":n=CD(1);break;case"ww":n=CD(2);break;case"W":n=CD(1,!0);break;case"d":n=dr(zn.Date,1);break;case"dd":n=dr(zn.Date,2);break;case"c":case"cc":n=dr(zn.Day,1);break;case"ccc":n=_i(Hn.Days,ui.Abbreviated,Ko.Standalone);break;case"cccc":n=_i(Hn.Days,ui.Wide,Ko.Standalone);break;case"ccccc":n=_i(Hn.Days,ui.Narrow,Ko.Standalone);break;case"cccccc":n=_i(Hn.Days,ui.Short,Ko.Standalone);break;case"E":case"EE":case"EEE":n=_i(Hn.Days,ui.Abbreviated);break;case"EEEE":n=_i(Hn.Days,ui.Wide);break;case"EEEEE":n=_i(Hn.Days,ui.Narrow);break;case"EEEEEE":n=_i(Hn.Days,ui.Short);break;case"a":case"aa":case"aaa":n=_i(Hn.DayPeriods,ui.Abbreviated);break;case"aaaa":n=_i(Hn.DayPeriods,ui.Wide);break;case"aaaaa":n=_i(Hn.DayPeriods,ui.Narrow);break;case"b":case"bb":case"bbb":n=_i(Hn.DayPeriods,ui.Abbreviated,Ko.Standalone,!0);break;case"bbbb":n=_i(Hn.DayPeriods,ui.Wide,Ko.Standalone,!0);break;case"bbbbb":n=_i(Hn.DayPeriods,ui.Narrow,Ko.Standalone,!0);break;case"B":case"BB":case"BBB":n=_i(Hn.DayPeriods,ui.Abbreviated,Ko.Format,!0);break;case"BBBB":n=_i(Hn.DayPeriods,ui.Wide,Ko.Format,!0);break;case"BBBBB":n=_i(Hn.DayPeriods,ui.Narrow,Ko.Format,!0);break;case"h":n=dr(zn.Hours,1,-12);break;case"hh":n=dr(zn.Hours,2,-12);break;case"H":n=dr(zn.Hours,1);break;case"HH":n=dr(zn.Hours,2);break;case"m":n=dr(zn.Minutes,1);break;case"mm":n=dr(zn.Minutes,2);break;case"s":n=dr(zn.Seconds,1);break;case"ss":n=dr(zn.Seconds,2);break;case"S":n=dr(zn.FractionalSeconds,1);break;case"SS":n=dr(zn.FractionalSeconds,2);break;case"SSS":n=dr(zn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Rx(Xc.Short);break;case"ZZZZZ":n=Rx(Xc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Rx(Xc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Rx(Xc.Long);break;default:return null}return TD[t]=n,n}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ax(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Yc(t,n){const e=function _de(t){return qo(t)[gi.LocaleId]}(t);if(Ix[e]??={},Ix[e][n])return Ix[e][n];let i="";switch(n){case"shortDate":i=Ex(t,Ns.Short);break;case"mediumDate":i=Ex(t,Ns.Medium);break;case"longDate":i=Ex(t,Ns.Long);break;case"fullDate":i=Ex(t,Ns.Full);break;case"shortTime":i=Sx(t,Ns.Short);break;case"mediumTime":i=Sx(t,Ns.Medium);break;case"longTime":i=Sx(t,Ns.Long);break;case"fullTime":i=Sx(t,Ns.Full);break;case"short":const r=Yc(t,"shortTime"),o=Yc(t,"shortDate");i=Mx(Dx(t,Ns.Short),[r,o]);break;case"medium":const s=Yc(t,"mediumTime"),a=Yc(t,"mediumDate");i=Mx(Dx(t,Ns.Medium),[s,a]);break;case"long":const c=Yc(t,"longTime"),l=Yc(t,"longDate");i=Mx(Dx(t,Ns.Long),[c,l]);break;case"full":const d=Yc(t,"fullTime"),u=Yc(t,"fullDate");i=Mx(Dx(t,Ns.Full),[d,u])}return i&&(Ix[e][n]=i),i}function Mx(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Sa(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===zn.Hours)0===a&&-12===e&&(a=12);else if(t===zn.FractionalSeconds)return function Rde(t,n){return Sa(t,3).substring(0,n)}(a,n);const c=Zs(s,lr.MinusSign);return Sa(a,n,c,i,r)}}function _i(t,n,e=Ko.Format,i=!1){return function(r,o){return function Fde(t,n,e,i,r,o){switch(e){case Hn.Months:return function yde(t,n,e){const i=qo(t),o=Js([i[gi.MonthsFormat],i[gi.MonthsStandalone]],n);return Js(o,e)}(n,r,i)[t.getMonth()];case Hn.Days:return function vde(t,n,e){const i=qo(t),o=Js([i[gi.DaysFormat],i[gi.DaysStandalone]],n);return Js(o,e)}(n,r,i)[t.getDay()];case Hn.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const l=function Cde(t){const n=qo(t);return b8(n),(n[gi.ExtraData][2]||[]).map(i=>"string"==typeof i?kD(i):[kD(i[0]),kD(i[1])])}(n),d=function Tde(t,n,e){const i=qo(t);b8(i);const o=Js([i[gi.ExtraData][0],i[gi.ExtraData][1]],n)||[];return Js(o,e)||[]}(n,r,i),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=s>=f.hours&&a>=f.minutes,p=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Xc.Short:return(r>=0?"+":"")+Sa(s,2,o)+Sa(Math.abs(r%60),2,o);case Xc.ShortGMT:return"GMT"+(r>=0?"+":"")+Sa(s,1,o);case Xc.Long:return"GMT"+(r>=0?"+":"")+Sa(s,2,o)+":"+Sa(Math.abs(r%60),2,o);case Xc.Extended:return 0===i?"Z":(r>=0?"+":"")+Sa(s,2,o)+":"+Sa(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const Ode=0,Px=4;function v8(t){const n=t.getDay(),e=0===n?-3:Px-n;return Ax(t.getFullYear(),t.getMonth(),t.getDate()+e)}function CD(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=v8(e),s=function Nde(t){const n=Ax(t,Ode,1).getDay();return Ax(t,0,1+(n<=Px?Px:Px+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Sa(r,t,Zs(i,lr.MinusSign))}}function Fx(t,n=!1){return function(e,i){return Sa(v8(e).getFullYear(),t,Zs(i,lr.MinusSign),n)}}const TD={};function y8(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function x8(t){return t instanceof Date&&!isNaN(t.valueOf())}function T8(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const MD=/\s+/,E8=[];let Da=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=E8,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(MD):E8}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(MD):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(MD).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(qc))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngClass",""]],inputs:{klass:[W.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class eue{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ro=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new eue(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),D8(a,r)}});for(let r=0,o=i.length;r{D8(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Gn),w(td))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function D8(t,n){t.context.$implicit=n.item}let $r=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new tue,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){I8("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){I8("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,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class tue{constructor(){this.$implicit=null,this.ngIf=null}}function I8(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${xr(n)}'.`)}let Nx=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,r),get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static#e=this.\u0275fac=function(i){return new(i||t)(w(di))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Un]})}return t})();function Ia(t,n){return new le(2100,!1)}class aue{createSubscription(n,e){return d8(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){d8(()=>n.unsubscribe())}}class cue{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const lue=new cue,due=new aue;let FD=(()=>{class t{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,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(f_(e))return lue;if(y5(e))return due;throw Ia()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn,16))};static#t=this.\u0275pipe=po({name:"async",type:t,pure:!1,standalone:!0})}return t})(),OD=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Ia();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const pue=new J(""),gue=new J("");let Ou=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return Mde(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Ia()}}static#e=this.\u0275fac=function(i){return new(i||t)(w(sc,16),w(pue,24),w(gue,24))};static#t=this.\u0275pipe=po({name:"date",type:t,pure:!0,standalone:!0})}return t})(),ac=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const R8="browser";function P8(t){return t===R8}function F8(t){return"server"===t}let Iue=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>P8(he($c))?new Aue(he(xt),window):new Rue})}return t})();class Aue{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function Mue(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class Rue{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class O8{}class she extends lde{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class BD extends she{static makeCurrent(){!function cde(t){h8??=t}(new BD)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function ahe(){return v_=v_||document.querySelector("base"),v_?v_.getAttribute("href"):null}();return null==e?null:function che(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){v_=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return T8(document.cookie,n)}}let v_=null,dhe=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const UD=new J("");let $8=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new le(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(Y(UD),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class G8{constructor(n){this._doc=n}}const zD="ng-app-id";let W8=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=F8(o),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${zD}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(zD),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(zD,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){const r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Tg),Y(hE,8),Y($c))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const HD={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/"},jD=/%COMP%/g,mhe=new J("",{providedIn:"root",factory:()=>!0});function Q8(t,n){return n.map(e=>e.replace(jD,t))}let $D=(()=>{class t{constructor(e,i,r,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=F8(a),this.defaultRenderer=new GD(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ba.ShadowDom&&(i={...i,encapsulation:ba.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof X8?r.applyToHost(e):r instanceof WD&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case ba.Emulated:o=new X8(c,l,i,this.appId,d,s,a,u);break;case ba.ShadowDom:return new bhe(c,l,e,i,s,a,this.nonce,u);default:o=new WD(c,l,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(Y($8),Y(W8),Y(Tg),Y(mhe),Y(xt),Y($c),Y(Be),Y(hE))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class GD{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(HD[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(K8(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(K8(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new le(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=HD[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=HD[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Ql.DashCase|Ql.Important)?n.style.setProperty(e,i,r&Ql.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ql.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=nd().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function K8(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class bhe extends GD{constructor(n,e,i,r,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Q8(r.id,r.styles);for(const d of l){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class WD extends GD{constructor(n,e,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?Q8(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class X8 extends WD{constructor(n,e,i,r,o,s,a,c){const l=r+"-"+i.id;super(n,e,i,o,s,a,c,l),this.contentAttr=function phe(t){return"_ngcontent-%COMP%".replace(jD,t)}(l),this.hostAttr=function ghe(t){return"_nghost-%COMP%".replace(jD,t)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let vhe=(()=>{class t extends G8{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const Y8=["alt","control","meta","shift"],yhe={"\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"},xhe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let whe=(()=>{class t extends G8{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nd().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Y8.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=yhe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Y8.forEach(s=>{s!==r&&(0,xhe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const J8=[{provide:$c,useValue:R8},{provide:B4,useValue:function khe(){BD.makeCurrent()},multi:!0},{provide:xt,useFactory:function The(){return function wte(t){uE=t}(document),document},deps:[]}],Ehe=A5(Ele,"browser",J8),She=new J(""),e6=[{provide:mx,useClass:class lhe{addToWindow(n){$n.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new le(5103,!1);return o},$n.getAllAngularTestabilities=()=>n.getAllTestabilities(),$n.getAllAngularRootElements=()=>n.getAllRootElements(),$n.frameworkStabilizers||($n.frameworkStabilizers=[]),$n.frameworkStabilizers.push(i=>{const r=$n.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?nd().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:v5,useClass:oD,deps:[Be,sD,mx]},{provide:oD,useClass:oD,deps:[Be,sD,mx]}],t6=[{provide:DT,useValue:"root"},{provide:Rs,useFactory:function Che(){return new Rs},deps:[]},{provide:UD,useClass:vhe,multi:!0,deps:[xt,Be,$c]},{provide:UD,useClass:whe,multi:!0,deps:[xt]},$D,W8,$8,{provide:oS,useExisting:$D},{provide:O8,useClass:dhe,deps:[]},[]];let n6=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Tg,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(She,12))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[...t6,...e6],imports:[ac,Sle]})}return t})(),Dhe=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:function(i){let r=null;return r=i?new(i||t):Y(Rhe),r},providedIn:"root"})}return t})(),Rhe=(()=>{class t extends qD{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case io.NONE:return i;case io.HTML:return Za(i,"HTML")?Ps(i):rL(this._doc,String(i)).toString();case io.STYLE:return Za(i,"Style")?Ps(i):i;case io.SCRIPT:if(Za(i,"Script"))return Ps(i);throw new le(5200,!1);case io.URL:return Za(i,"URL")?Ps(i):yy(String(i));case io.RESOURCE_URL:if(Za(i,"ResourceURL"))return Ps(i);throw new le(5201,!1);default:throw new le(5202,!1)}}bypassSecurityTrustHtml(e){return function jte(t){return new Lte(t)}(e)}bypassSecurityTrustStyle(e){return function $te(t){return new Vte(t)}(e)}bypassSecurityTrustScript(e){return function Gte(t){return new Bte(t)}(e)}bypassSecurityTrustUrl(e){return function Wte(t){return new Ute(t)}(e)}bypassSecurityTrustResourceUrl(e){return function qte(t){return new zte(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QD(t){return!!t&&(t instanceof jn||On(t.lift)&&On(t.subscribe))}function id(t){return this instanceof id?(this.v=t,this):new id(t)}function l6(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function ZD(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=t[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const JD=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function d6(t){return On(t?.then)}function u6(t){return On(t[oT])}function h6(t){return Symbol.asyncIterator&&On(t?.[Symbol.asyncIterator])}function f6(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const m6=function efe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function p6(t){return On(t?.[m6])}function g6(t){return function c6(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||a(h,f)})})}function a(h,f){try{!function c(h){h.value instanceof id?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(i[h](f))}catch(m){u(o[0][3],m)}}function l(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield id(e.read());if(r)return yield id(void 0);yield yield id(i)}}finally{e.releaseLock()}})}function _6(t){return On(t?.getReader)}function ko(t){if(t instanceof jn)return t;if(null!=t){if(u6(t))return function tfe(t){return new jn(n=>{const e=t[oT]();if(On(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(JD(t))return function nfe(t){return new jn(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,zO)})}(t);if(h6(t))return b6(t);if(p6(t))return function rfe(t){return new jn(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(_6(t))return function ofe(t){return b6(g6(t))}(t)}throw f6(t)}function b6(t){return new jn(n=>{(function sfe(t,n){var e,i,r,o;return function s6(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(d.value).then(a,c)}l((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=l6(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Zc(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function v6(t,n=0){return Ni((e,i)=>{e.subscribe(ki(i,r=>Zc(i,t,()=>i.next(r),n),()=>Zc(i,t,()=>i.complete(),n),r=>Zc(i,t,()=>i.error(r),n)))})}function y6(t,n=0){return Ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function x6(t,n){if(!t)throw new Error("Iterable cannot be null");return new jn(e=>{Zc(e,n,()=>{const i=t[Symbol.asyncIterator]();Zc(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Yi(t,n){return n?function hfe(t,n){if(null!=t){if(u6(t))return function afe(t,n){return ko(t).pipe(y6(n),v6(n))}(t,n);if(JD(t))return function lfe(t,n){return new jn(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(d6(t))return function cfe(t,n){return ko(t).pipe(y6(n),v6(n))}(t,n);if(h6(t))return x6(t,n);if(p6(t))return function dfe(t,n){return new jn(e=>{let i;return Zc(e,n,()=>{i=t[m6](),Zc(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>On(i?.return)&&i.return()})}(t,n);if(_6(t))return function ufe(t,n){return x6(g6(t),n)}(t,n)}throw f6(t)}(t,n):ko(t)}function w6(t){return t&&On(t.schedule)}function eI(t){return t[t.length-1]}function k6(t){return On(eI(t))?t.pop():void 0}function x_(t){return w6(eI(t))?t.pop():void 0}function st(...t){return Yi(t,x_(t))}const{isArray:mfe}=Array,{getPrototypeOf:pfe,prototype:gfe,keys:_fe}=Object;function C6(t){if(1===t.length){const n=t[0];if(mfe(n))return{args:n,keys:null};if(function bfe(t){return t&&"object"==typeof t&&pfe(t)===gfe}(n)){const e=_fe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:vfe}=Array;function tI(t){return mt(n=>function yfe(t,n){return vfe(n)?t(...n):t(n)}(t,n))}function T6(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Jc(...t){const n=x_(t),e=k6(t),{args:i,keys:r}=C6(t);if(0===i.length)return Yi([],n);const o=new jn(function xfe(t,n,e=Bl){return i=>{E6(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let c=0;c{const l=Yi(t[c],n);let d=!1;l.subscribe(ki(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>T6(r,s):Bl));return e?o.pipe(tI(e)):o}function E6(t,n,e){t?Zc(e,t,n):n()}const sm=JC(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Gr(t,n,e=1/0){return On(n)?Gr((i,r)=>mt((o,s)=>n(i,o,r,s))(ko(t(i,r))),e):("number"==typeof n&&(e=n),Ni((i,r)=>function wfe(t,n,e,i,r,o,s,a){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&n.complete()},f=g=>l{o&&n.next(g),l++;let p=!1;ko(e(g,d++)).subscribe(ki(n,v=>{r?.(v),o?f(v):n.next(v)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(v)):m(v)}h()}catch(v){n.error(v)}}))};return t.subscribe(ki(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function am(t=1/0){return Gr(Bl,t)}function w_(...t){return function kfe(){return am(1)}()(Yi(t,x_(t)))}function cm(t){return new jn(n=>{ko(t()).subscribe(n)})}function lm(t,n){const e=On(t)?t:()=>t,i=r=>r.error(e());return new jn(n?r=>n.schedule(i,0,r):i)}const fs=new jn(t=>t.complete());function nI(){return Ni((t,n)=>{let e=null;t._refCount++;const i=ki(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class iI extends jn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,GO(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Wt;const e=this.getSubject();n.add(this.source.subscribe(ki(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Wt.EMPTY)}return n}refCount(){return nI()(this)}}function Zi(t,n){return Ni((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ki(i,c=>{r?.unsubscribe();let l=0;const d=o++;ko(t(c,d)).subscribe(r=ki(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Nn(t){return t<=0?()=>fs:Ni((n,e)=>{let i=0;n.subscribe(ki(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Wr(...t){const n=x_(t);return Ni((e,i)=>{(n?w_(t,e,n):w_(t,e)).subscribe(i)})}function un(t,n){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Ux(t){return Ni((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function S6(t=Tfe){return Ni((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function Tfe(){return new sm}function ea(t,n){const e=arguments.length>=2;return i=>i.pipe(t?un((r,o)=>t(r,o,i)):Bl,Nn(1),e?Ux(n):S6(()=>new sm))}function dm(t,n){return On(n)?Gr(t,n,1):Gr(t,1)}function Vi(t,n,e){const i=On(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ni((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ki(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;a=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):Bl}function Ar(t){return Ni((n,e)=>{let o,i=null,r=!1;i=n.subscribe(ki(e,void 0,void 0,s=>{o=ko(t(s,Ar(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function rI(t){return t<=0?()=>fs:Ni((n,e)=>{let i=[];n.subscribe(ki(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function zx(t){return mt(()=>t)}function um(t){return Ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Tt(t){return Ni((n,e)=>{ko(t).subscribe(ki(e,()=>e.complete(),Iv)),!e.closed&&n.subscribe(e)})}const Jt="primary",k_=Symbol("RouteTitle");class Ife{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hm(t){return new Ife(t)}function Afe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function I6(t){return t.length>0?t[t.length-1]:null}function rd(t){return QD(t)?t:f_(t)?Yi(Promise.resolve(t)):st(t)}const Rfe={exact:function R6(t,n,e){if(!Nu(t.segments,n.segments)||!Hx(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!R6(t.children[i],n.children[i],e))return!1;return!0},subset:P6},A6={exact:function Pfe(t,n){return cc(t,n)},subset:function Ffe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>D6(t[e],n[e]))},ignored:()=>!0};function M6(t,n,e){return Rfe[e.paths](t.root,n.root,e.matrixParams)&&A6[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function P6(t,n,e){return F6(t,n,n.segments,e)}function F6(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Nu(r,e)||n.hasChildren()||!Hx(r,e,i))}if(t.segments.length===e.length){if(!Nu(t.segments,e)||!Hx(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!P6(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Nu(t.segments,r)&&Hx(t.segments,r,i)&&t.children[Jt])&&F6(t.children[Jt],n,o,i)}}function Hx(t,n,e){return n.every((i,r)=>A6[e](t[r].parameters,i.parameters))}class fm{constructor(n=new ci([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hm(this.queryParams),this._queryParamMap}toString(){return Lfe.serialize(this)}}class ci{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jx(this)}}class C_{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hm(this.parameters),this._parameterMap}toString(){return L6(this)}}function Nu(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let mm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>new sI,providedIn:"root"})}return t})();class sI{parse(n){const e=new Qfe(n);return new fm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${T_(n.root,!0)}`,i=function Ufe(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${$x(e)}=${$x(r)}`).join("&"):`${$x(e)}=${$x(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Vfe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Lfe=new sI;function jx(t){return t.segments.map(n=>L6(n)).join("/")}function T_(t,n){if(!t.hasChildren())return jx(t);if(n){const e=t.children[Jt]?T_(t.children[Jt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Jt&&i.push(`${r}:${T_(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Nfe(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===Jt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==Jt&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===Jt?[T_(t.children[Jt],!1)]:[`${r}:${T_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Jt]?`${jx(t)}/${e[0]}`:`${jx(t)}/(${e.join("//")})`}}function O6(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $x(t){return O6(t).replace(/%3B/gi,";")}function aI(t){return O6(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gx(t){return decodeURIComponent(t)}function N6(t){return Gx(t.replace(/\+/g,"%20"))}function L6(t){return`${aI(t.path)}${function Bfe(t){return Object.entries(t).map(([n,e])=>`;${aI(n)}=${aI(e)}`).join("")}(t.parameters)}`}const zfe=/^[^\/()?;#]+/;function cI(t){const n=t.match(zfe);return n?n[0]:""}const Hfe=/^[^\/()?;=#]+/,$fe=/^[^=?&#]+/,Wfe=/^[^&#]+/;class Qfe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ci([],{}):new ci([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Jt]=new ci(n,e)),i}parseSegment(){const n=cI(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new le(4009,!1);return this.capture(n),new C_(Gx(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function jfe(t){const n=t.match(Hfe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=cI(this.remaining);r&&(i=r,this.capture(i))}n[Gx(e)]=Gx(i)}parseQueryParam(n){const e=function Gfe(t){const n=t.match($fe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function qfe(t){const n=t.match(Wfe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=N6(e),o=N6(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=cI(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new le(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Jt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Jt]:new ci([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new le(4011,!1)}}function V6(t){return t.segments.length>0?new ci([],{[Jt]:t}):t}function B6(t){const n={};for(const[i,r]of Object.entries(t.children)){const o=B6(r);if(i===Jt&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function Kfe(t){if(1===t.numberOfChildren&&t.children[Jt]){const n=t.children[Jt];return new ci(t.segments.concat(n.segments),n.children)}return t}(new ci(t.segments,n))}function pm(t){return t instanceof fm}function U6(t){let n;const r=V6(function e(o){const s={};for(const c of o.children){const l=e(c);s[c.outlet]=l}const a=new ci(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function z6(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return lI(r,r,r,e,i);const o=function Yfe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new j6(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new j6(e,n,i)}(n);if(o.toRoot())return lI(r,r,new ci([],{}),e,i);const s=function Zfe(t,n,e){if(t.isAbsolute)return new qx(n,!0,0);if(!e)return new qx(n,!1,NaN);if(null===e.parent)return new qx(e,!0,0);const i=Wx(t.commands[0])?0:1;return function Jfe(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new le(4005,!1);r=i.segments.length}return new qx(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?S_(s.segmentGroup,s.index,o.commands):$6(s.segmentGroup,s.index,o.commands);return lI(r,s.segmentGroup,a,e,i)}function Wx(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function E_(t){return"object"==typeof t&&null!=t&&t.outlets}function lI(t,n,e,i,r){let s,o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),s=t===n?e:H6(t,n,e);const a=V6(B6(s));return new fm(a,o,r)}function H6(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:H6(o,n,e)}),new ci(t.segments,i)}class j6{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Wx(i[0]))throw new le(4003,!1);const r=i.find(E_);if(r&&r!==I6(i))throw new le(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class qx{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function $6(t,n,e){if(t??=new ci([],{}),0===t.segments.length&&t.hasChildren())return S_(t,n,e);const i=function tme(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(E_(a))break;const c=`${a}`,l=i0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!W6(c,l,s))return o;i+=2}else{if(!W6(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Jt)&&t.children[Jt]&&1===t.numberOfChildren&&0===t.children[Jt].segments.length){const o=S_(t.children[Jt],n,e);return new ci(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=$6(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new ci(t.segments,r)}}function dI(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=dI(new ci([],{}),0,i))}),n}function G6(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function W6(t,n,e){return t==e.path&&cc(n,e.parameters)}const D_="imperative";var Sn=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Sn||{});class lc{constructor(n,e){this.id=n,this.url=e}}class Qx extends lc{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Sn.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dc extends lc{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Sn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Ls=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ls||{}),Kx=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Kx||{});class gm extends lc{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Sn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _m extends lc{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Sn.NavigationSkipped}}class Xx extends lc{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Sn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class q6 extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ime extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rme extends lc{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Sn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ome extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sme extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ame{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cme{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lme{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dme{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ume{constructor(n){this.snapshot=n,this.type=Sn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hme{constructor(n){this.snapshot=n,this.type=Sn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q6{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Sn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class uI{}class hI{constructor(n){this.url=n}}class fme{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new I_,this.attachRef=null}}let I_=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new fme,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class K6{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=fI(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=fI(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=mI(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return mI(n,this._root).map(e=>e.value)}}function fI(t,n){if(t===n.value)return n;for(const e of n.children){const i=fI(t,e);if(i)return i}return null}function mI(t,n){if(t===n.value)return[n];for(const e of n.children){const i=mI(t,e);if(i.length)return i.unshift(n),i}return[]}class Aa{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function bm(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class X6 extends K6{constructor(n,e){super(n),this.snapshot=e,_I(this,n)}toString(){return this.snapshot.toString()}}function Y6(t){const n=function mme(t){const o=new gI([],{},{},"",{},Jt,t,null,{});return new Z6("",new Aa(o,[]))}(t),e=new wi([new C_("",{})]),i=new wi({}),r=new wi({}),o=new wi({}),s=new wi(""),a=new od(e,i,o,s,r,Jt,t,n.root);return a.snapshot=n.root,new X6(new Aa(a,[]),n)}class od{constructor(n,e,i,r,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(mt(l=>l[k_]))??st(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(mt(n=>hm(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(mt(n=>hm(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pI(t,n,e="emptyOnly"){let i;const{routeConfig:r}=t;return i=null===n||"always"!==e&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...r?.data,...t._resolvedData}},r&&eU(r)&&(i.resolve[k_]=r.title),i}class gI{get title(){return this.data?.[k_]}constructor(n,e,i,r,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hm(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hm(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Z6 extends K6{constructor(n,e){super(e),this.url=n,_I(this,e)}toString(){return J6(this._root)}}function _I(t,n){n.value._routerState=t,n.children.forEach(e=>_I(t,e))}function J6(t){const n=t.children.length>0?` { ${t.children.map(J6).join(", ")} } `:"";return`${t.value}${n}`}function bI(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,cc(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),cc(n.params,e.params)||t.paramsSubject.next(e.params),function Mfe(t,n){if(t.length!==n.length)return!1;for(let e=0;ecc(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||vI(t.parent,n.parent))}function eU(t){return"string"==typeof t.title||null===t.title}let yI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Jt,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=he(I_),this.location=he(di),this.changeDetector=he(gn),this.environmentInjector=he(cs),this.inputBinder=he(Yx,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new le(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new le(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new le(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new le(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new pme(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Un]})}return t})();class pme{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i,this.__ngOutletInjector=!0}get(n,e){return n===od?this.route:n===I_?this.childContexts:this.parent.get(n,e)}}const Yx=new J("");let tU=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=Jc([i.queryParams,i.params,i.data]).pipe(Zi(([o,s,a],c)=>(a={...o,...s,...a},0===c?st(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function ade(t){const n=cn(t);if(!n)return null;const e=new Qg(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function A_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function _me(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return A_(t,i,r);return A_(t,i)})}(t,n,e);return new Aa(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>A_(t,a)),s}}const i=function bme(t){return new od(new wi(t.url),new wi(t.params),new wi(t.queryParams),new wi(t.fragment),new wi(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>A_(t,o));return new Aa(i,r)}}const nU="ngNavigationCancelingError";function iU(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=pm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=rU(!1,Ls.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function rU(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[nU]=!0,e.cancellationCode=n,e}function oU(t){return!!t&&t[nU]}let sU=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["ng-component"]],standalone:!0,features:[St],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[yI],encapsulation:2})}return t})();function xI(t){const n=t.children&&t.children.map(xI),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Jt&&(e.component=sU),e}function uc(t){return t.outlet||Jt}function M_(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Eme{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),bI(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=bm(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bm(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bm(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const r=bm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new hme(o.value.snapshot))}),n.children.length&&this.forwardEvent(new dme(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(bI(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),bI(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=M_(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class aU{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Zx{constructor(n,e){this.component=n,this.route=e}}function Sme(t,n,e){const i=t._root;return R_(i,n?n._root:null,e,[i.value])}function vm(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function nJ(t){return null!==Fv(t)}(t)?n.get(t):t:i}function R_(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bm(n);return t.children.forEach(s=>{(function Ime(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function Ame(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nu(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nu(t.url,n.url)||!cc(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vI(t,n)||!cc(t.queryParams,n.queryParams);default:return!vI(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new aU(i)):(o.data=s.data,o._resolvedData=s._resolvedData),R_(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Zx(a.outlet.component,s))}else s&&P_(n,a,r),r.canActivateChecks.push(new aU(i)),R_(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>P_(a,e.getContext(s),r)),r}function P_(t,n,e){const i=bm(t),r=t.value;Object.entries(i).forEach(([o,s])=>{P_(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Zx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function F_(t){return"function"==typeof t}function cU(t){return t instanceof sm||"EmptyError"===t?.name}const Jx=Symbol("INITIAL_VALUE");function ym(){return Zi(t=>Jc(t.map(n=>n.pipe(Nn(1),Wr(Jx)))).pipe(mt(n=>{for(const e of n)if(!0!==e){if(e===Jx)return Jx;if(!1===e||e instanceof fm)return e}return!0}),un(n=>n!==Jx),Nn(1)))}function lU(t){return function WZ(...t){return HO(t)}(Vi(n=>{if(pm(n))throw iU(0,n)}),mt(n=>!0===n))}class wI{constructor(n){this.segmentGroup=n||null}}class kI extends Error{constructor(n){super(),this.urlTree=n}}function xm(t){return lm(new wI(t))}class Kme{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return st(i);if(r.numberOfChildren>1||!r.children[Jt])return lm(new le(4e3,!1));r=r.children[Jt]}}applyRedirectCommands(n,e,i){const r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new kI(r);return r}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new fm(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,i,r)}),new ci(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new le(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const CI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Xme(t,n,e,i,r){const o=TI(t,n,e);return o.matched?(i=function yme(t,n){return t.providers&&!t._injector&&(t._injector=qy(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Wme(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?st(r.map(s=>{const a=vm(s,t);return rd(function Nme(t){return t&&F_(t.canMatch)}(a)?a.canMatch(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),lU()):st(!0)}(i,n,e).pipe(mt(s=>!0===s?o:{...CI}))):st(o)}function TI(t,n,e){if("**"===n.path)return function Yme(t){return{matched:!0,parameters:t.length>0?I6(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...CI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Afe)(e,t,n);if(!r)return{...CI};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function dU(t,n,e,i){return e.length>0&&function epe(t,n,e){return e.some(i=>ew(t,n,i)&&uc(i)!==Jt)}(t,e,i)?{segmentGroup:new ci(n,Jme(i,new ci(e,t.children))),slicedSegments:[]}:0===e.length&&function tpe(t,n,e){return e.some(i=>ew(t,n,i))}(t,e,i)?{segmentGroup:new ci(t.segments,Zme(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ci(t.segments,t.children),slicedSegments:e}}function Zme(t,n,e,i){const r={};for(const o of e)if(ew(t,n,o)&&!i[uc(o)]){const s=new ci([],{});r[uc(o)]=s}return{...i,...r}}function Jme(t,n){const e={};e[Jt]=n;for(const i of t)if(""===i.path&&uc(i)!==Jt){const r=new ci([],{});e[uc(i)]=r}return e}function ew(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class rpe{}class ape{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Kme(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new le(4002,`'${n.segmentGroup}'`)}recognize(){const n=dU(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(mt(e=>{const i=new gI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Jt,this.rootComponentType,null,{}),r=new Aa(i,e),o=new Z6("",r),s=function Xfe(t,n,e=null,i=null){return z6(U6(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Jt).pipe(Ar(i=>{if(i instanceof kI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof wI?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,r=pI(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o,i))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0).pipe(mt(o=>o instanceof Aa?[o]:[]))}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Yi(r).pipe(dm(o=>{const s=i.children[o],a=function Cme(t,n){const e=t.filter(i=>uc(i)===n);return e.push(...t.filter(i=>uc(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function Sfe(t,n){return Ni(function Efe(t,n,e,i,r){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(ki(s,d=>{const u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(t,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Ux(null),function Dfe(t,n){const e=arguments.length>=2;return i=>i.pipe(t?un((r,o)=>t(r,o,i)):Bl,rI(1),e?Ux(n):S6(()=>new sm))}(),Gr(o=>{if(null===o)return xm(i);const s=uU(o);return function cpe(t){t.sort((n,e)=>n.value.outlet===Jt?-1:e.value.outlet===Jt?1:n.value.outlet.localeCompare(e.value.outlet))}(s),st(s)}))}processSegment(n,e,i,r,o,s){return Yi(e).pipe(dm(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Ar(c=>{if(c instanceof wI)return st(null);throw c}))),ea(a=>!!a),Ar(a=>{if(cU(a))return function ipe(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?st(new rpe):xm(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function npe(t,n,e,i){return!!(uc(t)===i||i!==Jt&&ew(n,e,t))&&TI(n,t,e).matched}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s):xm(r):xm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=TI(e,r,o);if(!a)return xm(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const u=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,u).pipe(Gr(h=>this.processSegment(n,i,e,h.concat(d),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){const s=Xme(e,i,r,n);return"**"===i.path&&(e.children={}),s.pipe(Zi(a=>a.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Zi(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:d,remainingSegments:u,parameters:h}=a,f=new gI(d,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function dpe(t){return t.data||{}}(i),uc(i),i.component??i._loadedComponent??null,i,function upe(t){return t.resolve||{}}(i)),{segmentGroup:m,slicedSegments:g}=dU(e,d,u,c);if(0===g.length&&m.hasChildren())return this.processChildren(l,c,m).pipe(mt(v=>null===v?null:new Aa(f,v)));if(0===c.length&&0===g.length)return st(new Aa(f,[]));const p=uc(i)===o;return this.processSegment(l,c,m,g,p?Jt:o,!0).pipe(mt(v=>new Aa(f,v instanceof Aa?[v]:[])))})):xm(e)))}getChildConfig(n,e,i){return e.children?st({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?st({routes:e._loadedRoutes,injector:e._loadedInjector}):function Gme(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?st(!0):st(r.map(s=>{const a=vm(s,t);return rd(function Rme(t){return t&&F_(t.canLoad)}(a)?a.canLoad(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),lU())}(n,e,i).pipe(Gr(r=>r?this.configLoader.loadChildren(n,e).pipe(Vi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Qme(t){return lm(rU(!1,Ls.GuardRejected))}())):st({routes:[],injector:n})}}function lpe(t){const n=t.value.routeConfig;return n&&""===n.path}function uU(t){const n=[],e=new Set;for(const i of t){if(!lpe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=uU(i.children);n.push(new Aa(i.value,r))}return n.filter(i=>!e.has(i))}function hU(t){const n=t.children.map(e=>hU(e)).flat();return[t,...n]}function EI(t){return Zi(n=>{const e=t(n);return e?Yi(e).pipe(mt(()=>n)):st(n)})}let fU=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Jt);return i}getResolvedTitleForRoute(e){return e.data[k_]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(_pe),providedIn:"root"})}return t})(),_pe=(()=>{class t extends fU{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Dhe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wm=new J("",{providedIn:"root",factory:()=>({})}),km=new J("");let SI=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=he(C5)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return st(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=rd(e.loadComponent()).pipe(mt(mU),Vi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),um(()=>{this.componentLoaders.delete(e)})),r=new iI(i,()=>new Me).pipe(nI());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return st({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function bpe(t,n,e,i){return rd(t.loadChildren()).pipe(mt(mU),Gr(r=>r instanceof q3||Array.isArray(r)?st(r):Yi(n.compileModuleAsync(r))),mt(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(km,[],{optional:!0,self:!0}).flat()),{routes:s.map(xI),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(um(()=>{this.childrenLoaders.delete(i)})),s=new iI(o,()=>new Me).pipe(nI());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mU(t){return function vpe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let DI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(ype),providedIn:"root"})}return t})(),ype=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const pU=new J(""),gU=new J("");function xpe(t,n,e){const i=t.get(gU),r=t.get(xt);return t.get(Be).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),function wpe(t){return new Promise(n=>{u3(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ga(t,()=>c({transition:a,from:n,to:e})),s})}let tw=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me,this.transitionAbortSubject=new Me,this.configLoader=he(SI),this.environmentInjector=he(cs),this.urlSerializer=he(mm),this.rootContexts=he(I_),this.location=he(Fu),this.inputBindingEnabled=null!==he(Yx,{optional:!0}),this.titleStrategy=he(fU),this.options=he(wm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=he(DI),this.createViewTransition=he(pU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>st(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new cme(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new ame(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,r){return this.transitions=new wi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:D_,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(un(o=>0!==o.id),mt(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Zi(o=>{let s=!1,a=!1;return st(o).pipe(Zi(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Ls.SupersededByNewNavigation),fs;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new _m(c.id,this.urlSerializer.serialize(c.rawUrl),u,Kx.IgnoredSameUrlNavigation)),c.resolve(null),fs}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return st(c).pipe(Zi(u=>{const h=this.transitions?.getValue();return this.events.next(new Qx(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?fs:Promise.resolve(u)}),function hpe(t,n,e,i,r,o){return Gr(s=>function ope(t,n,e,i,r,o,s="emptyOnly"){return new ape(t,n,e,i,r,s,o).recognize()}(t,n,e,i,s.extractedUrl,r,o).pipe(mt(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Vi(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new q6(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:u,extractedUrl:h,source:f,restoredState:m,extras:g}=c,p=new Qx(u,this.urlSerializer.serialize(h),f,m);this.events.next(p);const v=Y6(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:v,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,st(o)}{const u="";return this.events.next(new _m(c.id,this.urlSerializer.serialize(c.extractedUrl),u,Kx.IgnoredByUrlHandlingStrategy)),c.resolve(null),fs}}),Vi(c=>{const l=new ime(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),mt(c=>(this.currentTransition=o={...c,guards:Sme(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function Lme(t,n){return Gr(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?st({...e,guardsResult:!0}):function Vme(t,n,e,i){return Yi(t).pipe(Gr(r=>function $me(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?st(o.map(a=>{const c=M_(n)??r,l=vm(a,c);return rd(function Ome(t){return t&&F_(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,i):Ga(c,()=>l(t,n,e,i))).pipe(ea())})).pipe(ym()):st(!0)}(r.component,r.route,e,n,i)),ea(r=>!0!==r,!0))}(s,i,r,t).pipe(Gr(a=>a&&function Mme(t){return"boolean"==typeof t}(a)?function Bme(t,n,e,i){return Yi(n).pipe(dm(r=>w_(function zme(t,n){return null!==t&&n&&n(new lme(t)),st(!0)}(r.route.parent,i),function Ume(t,n){return null!==t&&n&&n(new ume(t)),st(!0)}(r.route,i),function jme(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Dme(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>cm(()=>st(s.guards.map(c=>{const l=M_(s.node)??e,d=vm(c,l);return rd(function Fme(t){return t&&F_(t.canActivateChild)}(d)?d.canActivateChild(i,t):Ga(l,()=>d(i,t))).pipe(ea())})).pipe(ym())));return st(o).pipe(ym())}(t,r.path,e),function Hme(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return st(!0);const r=i.map(o=>cm(()=>{const s=M_(n)??e,a=vm(o,s);return rd(function Pme(t){return t&&F_(t.canActivate)}(a)?a.canActivate(n,t):Ga(s,()=>a(n,t))).pipe(ea())}));return st(r).pipe(ym())}(t,r.route,e))),ea(r=>!0!==r,!0))}(i,o,t,n):st(a)),mt(a=>({...e,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Vi(c=>{if(o.guardsResult=c.guardsResult,pm(c.guardsResult))throw iU(0,c.guardsResult);const l=new rme(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),un(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",Ls.GuardRejected),!1)),EI(c=>{if(c.guards.canActivateChecks.length)return st(c).pipe(Vi(l=>{const d=new ome(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Zi(l=>{let d=!1;return st(l).pipe(function fpe(t,n){return Gr(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return st(e);const o=new Set(r.map(c=>c.route)),s=new Set;for(const c of o)if(!s.has(c))for(const l of hU(c))s.add(l);let a=0;return Yi(s).pipe(dm(c=>o.has(c)?function mpe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!eU(r)&&(o[k_]=r.title),function ppe(t,n,e,i){const r=oI(t);if(0===r.length)return st({});const o={};return Yi(r).pipe(Gr(s=>function gpe(t,n,e,i){const r=M_(n)??i,o=vm(t,r);return rd(o.resolve?o.resolve(n,e):Ga(r,()=>o(n,e)))}(t[s],n,e,i).pipe(ea(),Vi(a=>{o[s]=a}))),rI(1),zx(o),Ar(s=>cU(s)?fs:lm(s)))}(o,t,n,i).pipe(mt(s=>(t._resolvedData=s,t.data=pI(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=pI(c,c.parent,t).resolve,st(void 0))),Vi(()=>a++),rI(1),Gr(c=>a===s.size?st(e):fs))})}(this.paramsInheritanceStrategy,this.environmentInjector),Vi({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ls.NoDataFromResolver)}}))}),Vi(l=>{const d=new sme(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),EI(c=>{const l=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Vi(h=>{d.component=h}),mt(()=>{})));for(const h of d.children)u.push(...l(h));return u};return Jc(l(c.targetSnapshot.root)).pipe(Ux(null),Nn(1))}),EI(()=>this.afterPreactivation()),Zi(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?Yi(d).pipe(mt(()=>o)):st(o)}),mt(c=>{const l=function gme(t,n,e){const i=A_(t,n._root,e?e._root:void 0);return new X6(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),Vi(()=>{this.events.next(new uI)}),((t,n,e,i)=>mt(r=>(new Eme(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Nn(1),Vi({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Tt(this.transitionAbortSubject.pipe(Vi(c=>{throw c}))),um(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Ls.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ar(c=>{if(a=!0,oU(c))this.events.next(new gm(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function vme(t){return oU(t)&&pm(t.url)}(c)?this.events.next(new hI(c.url)):o.resolve(!1);else{this.events.next(new Xx(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return fs}))}))}cancelNavigationTransition(e,i,r){const o=new gm(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kpe(t){return t!==D_}let Cpe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(Epe),providedIn:"root"})}return t})();class Tpe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Epe=(()=>{class t extends Tpe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_U=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(Spe),providedIn:"root"})}return t})(),Spe=(()=>{class t extends _U{constructor(){super(...arguments),this.location=he(Fu),this.urlSerializer=he(mm),this.options=he(wm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=he(DI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fm,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Y6(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Qx)this.stateMemento=this.createStateMemento();else if(e instanceof _m)this.rawUrlTree=i.initialUrl;else if(e instanceof q6){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof uI?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof gm&&(e.code===Ls.GuardRejected||e.code===Ls.NoDataFromResolver)?this.restoreHistory(i):e instanceof Xx?this.restoreHistory(i,!0):e instanceof dc&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&0===o&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var O_=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(O_||{});function bU(t,n){t.events.pipe(un(e=>e instanceof dc||e instanceof gm||e instanceof Xx||e instanceof _m),mt(e=>e instanceof dc||e instanceof _m?O_.COMPLETE:e instanceof gm&&(e.code===Ls.Redirect||e.code===Ls.SupersededByNewNavigation)?O_.REDIRECTING:O_.FAILED),un(e=>e!==O_.REDIRECTING),Nn(1)).subscribe(()=>{n()})}function Dpe(t){throw t}const Ipe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ape={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ms=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=he(m5),this.stateManager=he(_U),this.options=he(wm,{optional:!0})||{},this.pendingTasks=he(Yl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=he(tw),this.urlSerializer=he(mm),this.location=he(Fu),this.urlHandlingStrategy=he(DI),this._events=new Me,this.errorHandler=this.options.errorHandler||Dpe,this.navigated=!1,this.routeReuseStrategy=he(Cpe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=he(km,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!he(Yx,{optional:!0}),this.eventsSubscription=new Wt,this.isNgZoneEnabled=he(Be)instanceof Be&&Be.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof gm&&i.code!==Ls.Redirect&&i.code!==Ls.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof dc)this.navigated=!0;else if(i instanceof hI){const s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kpe(r.source)};this.scheduleNavigation(s,D_,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function Rpe(t){return!(t instanceof uI||t instanceof hI)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),D_,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xI),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s;let u,d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=U6(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),u=this.currentUrlTree.root}return z6(u,e,d,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=pm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,D_,null,i)}navigate(e,i={skipLocationChange:!1}){return function Mpe(t){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,h)=>{a=u,c=h});const d=this.pendingTasks.add();return bU(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class vU{}let Ope=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(un(e=>e instanceof dc),dm(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=qy(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Yi(r).pipe(am())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):st(null);const o=r.pipe(Gr(s=>null===s?st(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Yi([o,this.loader.loadComponent(i)]).pipe(am()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ms),Y(C5),Y(cs),Y(vU),Y(SI))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const AI=new J("");let yU=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Qx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dc?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof _m&&e.code===Kx.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Q6&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Q6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){Ay()};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function hc(t,n){return{\u0275kind:t,\u0275providers:n}}function wU(){const t=he(Ii);return n=>{const e=t.get(Qc);if(n!==e.components[0])return;const i=t.get(ms),r=t.get(kU);1===t.get(MI)&&i.initialNavigation(),t.get(CU,null,mn.Optional)?.setUpPreloading(),t.get(AI,null,mn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const kU=new J("",{factory:()=>new Me}),MI=new J("",{providedIn:"root",factory:()=>1}),CU=new J("");function Bpe(t){return hc(0,[{provide:CU,useExisting:Ope},{provide:vU,useExisting:t}])}function zpe(t){return hc(9,[{provide:pU,useValue:xpe},{provide:gU,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const TU=new J("ROUTER_FORROOT_GUARD"),Hpe=[Fu,{provide:mm,useClass:sI},ms,I_,{provide:od,useFactory:function xU(t){return t.routerState.root},deps:[ms]},SI,[]];let EU=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Hpe,[],{provide:km,multi:!0,useValue:e},{provide:TU,useFactory:Wpe,deps:[[ms,new Hl,new df]]},{provide:wm,useValue:i||{}},i?.useHash?{provide:Pu,useClass:hde}:{provide:Pu,useClass:p8},{provide:AI,useFactory:()=>{const t=he(Iue),n=he(Be),e=he(wm),i=he(tw),r=he(mm);return e.scrollOffset&&t.setOffset(e.scrollOffset),new yU(r,i,t,n,e)}},i?.preloadingStrategy?Bpe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?qpe(i):[],i?.bindToComponentInputs?hc(8,[tU,{provide:Yx,useExisting:tU}]).\u0275providers:[],i?.enableViewTransitions?zpe().\u0275providers:[],[{provide:SU,useFactory:wU},{provide:dD,multi:!0,useExisting:SU}]]}}static forChild(e){return{ngModule:t,providers:[{provide:km,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(TU,8))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();function Wpe(t){return"guarded"}function qpe(t){return["disabled"===t.initialNavigation?hc(3,[{provide:cD,multi:!0,useFactory:()=>{const n=he(ms);return()=>{n.setUpLocationChangeListener()}}},{provide:MI,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?hc(2,[{provide:MI,useValue:0},{provide:cD,multi:!0,deps:[Ii],useFactory:n=>{const e=n.get(dde,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(ms),o=n.get(kU);bU(r,()=>{i(!0)}),n.get(tw).afterPreactivation=()=>(i(!0),o.closed?st(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const SU=new J("");class nw{}function RI(t){return t&&"function"==typeof t.connect&&!(t instanceof iI)}var el=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(el||{});const N_=new J("_ViewRepeater");class DU{applyChanges(n,e,i,r,o){n.forEachOperation((s,a,c)=>{let l,d;if(null==s.previousIndex){const u=i(s,a,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=el.INSERTED}else null==c?(e.remove(a),d=el.REMOVED):(l=e.get(a),e.move(l,c),d=el.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}}class PI{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Me,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}return n}}let FI=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Co(t,n){const e="object"==typeof n;return new Promise((i,r)=>{let s,o=!1;t.subscribe({next:a=>{s=a,o=!0},error:r,complete:()=>{o?i(s):e?i(n.defaultValue):r(new sm)}})})}const OI={now:()=>(OI.delegate||Date).now(),delegate:void 0};class iw extends Me{constructor(n=1/0,e=1/0,i=OI){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ps?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ps;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ps?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class Kpe{encodeKey(n){return AU(n)}encodeValue(n){return AU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Ype=/%(\d[a-f0-9])/gi,Zpe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function AU(t){return encodeURIComponent(t).replace(Ype,(n,e)=>Zpe[e]??n)}function sw(t){return`${t}`}class sd{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Kpe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Xpe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(sw):[sw(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new sd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(sw(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(sw(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Jpe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function MU(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function RU(t){return typeof Blob<"u"&&t instanceof Blob}function PU(t){return typeof FormData<"u"&&t instanceof FormData}class L_{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function ege(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ps,this.context??=new Jpe,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,n.setHeaders[f]),l)),n.setParams&&(d=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),d)),new L_(e,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}}var ad=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ad||{});class NI{constructor(n,e=V_.Ok,i="OK"){this.headers=n.headers||new ps,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class aw extends NI{constructor(n={}){super(n),this.type=ad.ResponseHeader}clone(n={}){return new aw({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Lu extends NI{constructor(n={}){super(n),this.type=ad.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Lu({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cm extends NI{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var V_=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(V_||{});function LI(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let cd=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof L_)o=e;else{let c,l;c=r.headers instanceof ps?r.headers:new ps(r.headers),r.params&&(l=r.params instanceof sd?r.params:new sd({fromObject:r.params})),o=new L_(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=st(o).pipe(dm(c=>this.handler.handle(c)));if(e instanceof L_||"events"===r.observe)return s;const a=s.pipe(un(c=>c instanceof Lu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(mt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(mt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(mt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(mt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new sd).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,LI(r,i))}post(e,i,r={}){return this.request("POST",e,LI(r,i))}put(e,i,r={}){return this.request("PUT",e,LI(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(rw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function OU(t,n){return n(t)}function sge(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const cge=new J(""),B_=new J(""),NU=new J(""),LU=new J("");function lge(){let t=null;return(n,e)=>{null===t&&(t=(he(cge,{optional:!0})??[]).reduceRight(sge,OU));const i=he(Yl),r=i.add();return t(n,e).pipe(um(()=>i.remove(r)))}}let VU=(()=>{class t extends rw{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=he(Yl);const r=he(LU,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(B_),...this.injector.get(NU,[])]));this.chain=r.reduceRight((o,s)=>function age(t,n,e){return(i,r)=>Ga(e,()=>n(i,o=>t(o,r)))}(o,s,this.injector),OU)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(um(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ow),Y(cs))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const mge=/^\)\]\}',?\n/;let UU=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new le(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Yi(i.\u0275loadImpl()):st(null)).pipe(Zi(()=>new jn(o=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((g,p)=>s.setRequestHeader(g,p.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=e.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const g=s.statusText||"OK",p=new ps(s.getAllResponseHeaders()),v=function pge(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return c=new aw({headers:p,status:s.status,statusText:g,url:v}),c},d=()=>{let{headers:g,status:p,statusText:v,url:x}=l(),C=null;p!==V_.NoContent&&(C=typeof s.response>"u"?s.responseText:s.response),0===p&&(p=C?V_.Ok:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const z=C;C=C.replace(mge,"");try{C=""!==C?JSON.parse(C):null}catch(A){C=z,D&&(D=!1,C={error:A,text:C})}}D?(o.next(new Lu({body:C,headers:g,status:p,statusText:v,url:x||void 0})),o.complete()):o.error(new Cm({error:C,headers:g,status:p,statusText:v,url:x||void 0}))},u=g=>{const{url:p}=l(),v=new Cm({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});o.error(v)};let h=!1;const f=g=>{h||(o.next(l()),h=!0);let p={type:ad.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),"text"===e.responseType&&s.responseText&&(p.partialText=s.responseText),o.next(p)},m=g=>{let p={type:ad.UploadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),o.next(p)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:ad.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(O8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const UI=new J(""),zU=new J("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),HU=new J("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jU{}let bge=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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=T8(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y($c),Y(zU))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function vge(t,n){const e=t.url.toLowerCase();if(!he(UI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=he(jU).getToken(),r=he(HU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var ld=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ld||{});function yge(...t){const n=[cd,UU,VU,{provide:rw,useExisting:VU},{provide:ow,useExisting:UU},{provide:B_,useValue:vge,multi:!0},{provide:UI,useValue:!0},{provide:jU,useClass:bge}];for(const e of t)n.push(...e.\u0275providers);return function lg(t){return{\u0275providers:t}}(n)}const $U=new J("");function xge(){return function Vu(t,n){return{\u0275kind:t,\u0275providers:n}}(ld.LegacyInterceptors,[{provide:$U,useFactory:lge},{provide:B_,useExisting:$U,multi:!0}])}let zI,wge=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[yge(xge())]})}return t})();try{zI=typeof Intl<"u"&&Intl.v8BreakIterator}catch{zI=!1}let Tm,Ln=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?P8(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&&!zI)&&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(i){return new(i||t)(Y($c))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ZU=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function JU(){if(Tm)return Tm;if("object"!=typeof document||!document)return Tm=new Set(ZU),Tm;let t=document.createElement("input");return Tm=new Set(ZU.filter(n=>(t.setAttribute("type",n),t.type===n))),Tm}let U_;function Ma(t){return function Dge(){if(null==U_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>U_=!0}))}finally{U_=U_||!1}return U_}()?t:!!t.capture}var fc=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(fc||{});let lw,Bu,HI;function e9(){if(null==Bu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Bu=!1,Bu;if("scrollBehavior"in document.documentElement.style)Bu=!0;else{const t=Element.prototype.scrollTo;Bu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Bu}function z_(){if("object"!=typeof document||!document)return fc.NORMAL;if(null==lw){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),lw=fc.NORMAL,0===t.scrollLeft&&(t.scrollLeft=1,lw=0===t.scrollLeft?fc.NEGATED:fc.INVERTED),t.remove()}return lw}function jI(t){if(function Ige(){if(null==HI){const t=typeof document<"u"?document.head:null;HI=!(!t||!t.createShadowRoot&&!t.attachShadow)}return HI}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function dw(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Vs(t){return t.composedPath?t.composedPath()[0]:t.target}function $I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function To(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Hge extends Wt{constructor(n,e){super()}schedule(n,e=0){return this}}const fw={setInterval(t,n,...e){const{delegate:i}=fw;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=fw;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class WI extends Hge{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return fw.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&fw.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Sv(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class j_{constructor(n,e=j_.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}j_.now=OI.now;class qI extends j_{constructor(n,e=j_.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const $_=new qI(WI),jge=$_;function nl(t,n=$_){return Ni((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,i.next(l)}};function c(){const l=s+t,d=n.now();if(d{o=l,s=n.now(),r||(r=n.schedule(c,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function QI(t){return un((n,e)=>t<=e)}function il(t,n=Bl){return t=t??$ge,Ni((e,i)=>{let r,o=!0;e.subscribe(ki(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function $ge(t,n){return t===n}function Mr(t){return null!=t&&"false"!=`${t}`}function hd(t,n=0){return n9(t)?Number(t):n}function n9(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function G_(t){return Array.isArray(t)?t:[t]}function ur(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Bi(t){return t instanceof He?t.nativeElement:t}let i9=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wge=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Bi(e);return new jn(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Me,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(i9))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r9=(()=>{class t{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=hd(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ce,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(nl(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Wge),w(He),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",Ue],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Kt]})}return t})(),KI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[i9]})}return t})();const o9=new Set;let Uu,qge=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Kge}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Qge(t,n){if(!o9.has(t))try{Uu||(Uu=document.createElement("style"),n&&Uu.setAttribute("nonce",n),Uu.setAttribute("type","text/css"),document.head.appendChild(Uu)),Uu.sheet&&(Uu.sheet.insertRule(`@media ${t} {body{ }}`,0),o9.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(hE,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kge(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let s9=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Me}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return a9(G_(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jc(a9(G_(e)).map(s=>this._registerQuery(s).observable));return o=w_(o.pipe(Nn(1)),o.pipe(QI(1),nl(0))),o.pipe(mt(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new jn(s=>{const a=c=>this._zone.run(()=>s.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Wr(i),mt(({matches:s})=>({query:e,matches:s})),Tt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(i){return new(i||t)(Y(qge),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function a9(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function mw(t,n,e){const i=pw(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(" ")))}function Sm(t,n,e){const i=pw(t,n);e=e.trim();const r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}function pw(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}const l9="cdk-describedby-message",gw="cdk-describedby-host";let XI=0,d9=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+XI++,this._document=e,this._id=he(Tg)+"-"+XI++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=YI(i,r);"string"!=typeof i?(u9(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=YI(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${gw}="${this._id}"]`);for(let i=0;i0!=r.indexOf(l9));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);mw(e,"aria-describedby",r.messageElement.id),e.setAttribute(gw,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,Sm(e,"aria-describedby",r.messageElement.id),e.removeAttribute(gw)}_isElementDescribedByMessage(e,i){const r=pw(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Ln))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YI(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function u9(t,n){t.id||(t.id=`${l9}-${n}-${XI++}`)}class h9{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=Wt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,n instanceof Gl?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):$y(n)&&(this._effectRef=function u8(t,n){ec("NgSignals"),!n?.injector&&qv();const e=n?.injector??he(Ii),i=!0!==n?.manualCleanup?e.get(Tf):null,r=new sde(e.get(ide),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(gn,null,{optional:!0});return o&&8&o._lView[bt]?(o._lView[Kv]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Vi(e=>this._pressedLetters.push(e)),nl(n),un(()=>this._pressedLetters.length>0),mt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.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._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return $y(this._items)?this._items():this._items instanceof Gl?this._items.toArray():this._items}_itemsChanged(n){if(this._activeItem){const e=n.indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}}}class f9 extends h9{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class ZI extends h9{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let _w=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Zge(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Yge(t){try{return t.frameElement}catch{return null}}(function s_e(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===p9(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=p9(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function r_e(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function o_e(t){return!function e_e(t){return function n_e(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Jge(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function t_e(t){return function i_e(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||m9(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m9(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function p9(t){if(!m9(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class g9{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Nn(1)).subscribe(n)}}let JI=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new g9(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(_w),Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bw(t){return 0===t.buttons||0===t.detail}function vw(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const a_e=new J("cdk-input-modality-detector-options"),c_e={ignoreKeys:[18,17,224,91,16]},Dm=Ma({passive:!0,capture:!0});let l_e=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new wi(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vs(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bw(s)?"keyboard":"mouse"),this._mostRecentTarget=Vs(s))},this._onTouchstart=s=>{vw(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vs(s))},this._options={...c_e,...o},this.modalityDetected=this._modality.pipe(QI(1)),this.modalityChanged=this.modalityDetected.pipe(il()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dm),r.addEventListener("mousedown",this._onMousedown,Dm),r.addEventListener("touchstart",this._onTouchstart,Dm)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dm),document.removeEventListener("mousedown",this._onMousedown,Dm),document.removeEventListener("touchstart",this._onTouchstart,Dm))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(Be),Y(xt),Y(a_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const d_e=new J("liveAnnouncerElement",{providedIn:"root",factory:function u_e(){return null}}),h_e=new J("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let f_e=0,b9=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,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 Me,this._rootNodeFocusAndBlurListener=a=>{for(let l=Vs(a);l;l=l.parentElement)"focus"===a.type?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||yw.IMMEDIATE}monitor(e,i=!1){const r=Bi(e);if(!this._platform.isBrowser||1!==r.nodeType)return st();const o=jI(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Me,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Bi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Bi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===yw.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===yw.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Vs(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,xw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,xw)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xw),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ta))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return t})();var zu=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(zu||{});const v9="cdk-high-contrast-black-on-white",y9="cdk-high-contrast-white-on-black",e2="cdk-high-contrast-active";let x9=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=he(s9).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return zu.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return zu.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return zu.BLACK_ON_WHITE}return zu.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(e2,v9,y9),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===zu.BLACK_ON_WHITE?e.add(e2,v9):i===zu.WHITE_ON_BLACK&&e.add(e2,y9)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w9=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(x9))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[KI]})}return t})();const g_e=new J("cdk-dir-doc",{providedIn:"root",factory:function __e(){return he(xt)}}),b_e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let oo=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function v_e(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?b_e.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(g_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W_=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const y_e=["text"],x_e=[[["mat-icon"]],"*"],w_e=["mat-icon","*"];function k_e(t,n){if(1&t&&xe(0,"mat-pseudo-checkbox",1),2&t){const e=R();T("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function C_e(t,n){1&t&&xe(0,"mat-pseudo-checkbox",3),2&t&&T("disabled",R().disabled)}function T_e(t,n){if(1&t&&(_(0,"span",4),k(1),b()),2&t){const e=R();y(),Je("(",e.group.label,")")}}const E_e=["mat-internal-form-field",""],S_e=["*"];let D_e=(()=>{class t{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#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return t})(),I_e=(()=>{class t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return t})();const M_e=new J("mat-sanity-checks",{providedIn:"root",factory:function A_e(){return!0}});let Ft=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!$I()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(Y(x9),Y(M_e,8),Y(xt))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[W_,W_]})}return t})();class t2{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}}let T9=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var na=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(na||{});class L_e{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=na.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const E9=Ma({passive:!0,capture:!0});class V_e{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Vs(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){const o=this._events.get(e);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,E9)})}removeHandler(n,e,i){const r=this._events.get(n);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,E9)))}}const S9={enterDuration:225,exitDuration:150},D9=Ma({passive:!0,capture:!0}),I9=["mousedown","touchstart"],A9=["mouseup","mouseleave","touchend","touchcancel"];class Q_{static#e=this._eventManager=new V_e;constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bi(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...S9,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function U_e(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),a=n-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=c-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new L_e(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=na.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const v=()=>this._finishRippleTransition(g),x=()=>this._destroyRipple(g);d.addEventListener("transitionend",v),d.addEventListener("transitioncancel",x),p={onTransitionEnd:v,onTransitionCancel:x}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(n.state===na.FADING_OUT||n.state===na.HIDDEN)return;const e=n.element,i={...S9,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=na.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Bi(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,I9.forEach(i=>{Q_._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{A9.forEach(e=>{this._triggerElement.addEventListener(e,this,D9)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===na.FADING_IN?this._startFadeOutTransition(n):n.state===na.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=na.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=na.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=bw(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===na.VISIBLE||n.config.terminateOnPointerUp&&n.state===na.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(I9.forEach(e=>Q_._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&A9.forEach(e=>n.removeEventListener(e,this,D9)))}}const ww=new J("mat-ripple-global-options");let rl=(()=>{class t{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,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Q_(this,i,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,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(Ln),w(ww,8),w(pi,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-ripple-unbounded",r.unbounded)},inputs:{color:[W.None,"matRippleColor","color"],unbounded:[W.None,"matRippleUnbounded","unbounded"],centered:[W.None,"matRippleCentered","centered"],radius:[W.None,"matRippleRadius","radius"],animation:[W.None,"matRippleAnimation","animation"],disabled:[W.None,"matRippleDisabled","disabled"],trigger:[W.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return t})(),Im=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})(),z_e=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){2&i&<("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:[St],decls:0,vars:0,template:function(i,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})}return t})(),M9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft]})}return t})();const n2=new J("MAT_OPTION_PARENT_COMPONENT"),r2=new J("MatOptgroup");let H_e=0;class R9{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fd=(()=>{class t{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,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+H_e++,this.onSelectionChange=new Ce,this._stateChanges=new Me}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,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}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)&&!To(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 R9(this,e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(n2,8),w(r2,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(1&i&&vt(y_e,7),2&i){let o;Re(o=Pe())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){1&i&&U("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(rc("id",r.id),_t("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),lt("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:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Kt,St],ngContentSelectors:w_e,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(i,r){1&i&&(Mn(x_e),q(0,k_e,1,2,"mat-pseudo-checkbox",1),ct(1),_(2,"span",2,0),ct(4,1),b(),q(5,C_e,1,1,"mat-pseudo-checkbox",3)(6,T_e,2,1,"span",4),xe(7,"div",5)),2&i&&(_n(0,r.multiple?0:-1),y(5),_n(5,r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),y(),_n(6,r.group&&r.group._inert?6:-1),y(),T("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[z_e,rl],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})}return t})();function P9(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,t-i+n):e}let kw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Im,Ft,M9]})}return t})();const O9={capture:!0},N9=["focus","click","mouseenter","touchstart"],o2="mat-ripple-loader-uninitialized",s2="mat-ripple-loader-class-name",L9="mat-ripple-loader-centered",Cw="mat-ripple-loader-disabled";let j_e=(()=>{class t{constructor(){this._document=he(xt,{optional:!0}),this._animationMode=he(pi,{optional:!0}),this._globalRippleOptions=he(ww,{optional:!0}),this._platform=he(Ln),this._ngZone=he(Be),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${o2}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of N9)this._document?.addEventListener(e,this._onInteraction,O9)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of N9)this._document?.removeEventListener(i,this._onInteraction,O9)}configureRipple(e,i){e.setAttribute(o2,""),(i.className||!e.hasAttribute(s2))&&e.setAttribute(s2,i.className||""),i.centered&&e.setAttribute(L9,""),i.disabled&&e.setAttribute(Cw,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const r=this._hosts.get(e);r?r.disabled=i:i?e.setAttribute(Cw,""):e.removeAttribute(Cw)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(s2)),e.append(r);const o=new rl(new He(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(L9),o.disabled=e.hasAttribute(Cw),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(o2),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-form-field--align-end","before"===r.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[St],attrs:E_e,ngContentSelectors:S_e,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})();const V9=["mat-button",""],B9=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],U9=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],z9=".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}",G_e=["mat-icon-button",""],W_e=["*"],q_e=new J("MAT_BUTTON_CONFIG"),Q_e=[{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"]}];let c2=(()=>{class t{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,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=he(ta),this._rippleLoader=he(j_e),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=he(q_e,{optional:!0}),a=e.nativeElement,c=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(const{attribute:l,mdcClasses:d}of Q_e)a.hasAttribute(l)&&c.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){Ay()};static#t=this.\u0275dir=ce({type:t,inputs:{color:"color",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],ariaDisabled:[W.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Ue],disabledInteractive:[W.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Ue]},features:[Kt]})}return t})(),K_e=(()=>{class t extends c2{constructor(e,i,r,o){super(e,i,r,o),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.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(i){Ay()};static#t=this.\u0275dir=ce({type:t,inputs:{tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:Xi(e)]},features:[Kt,tt]})}return t})(),Eo=(()=>{class t extends c2{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:V9,ngContentSelectors:U9,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(i,r){1&i&&(Mn(B9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),b(),ct(4,2),xe(5,"span",2)(6,"span",3)),2&i&<("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})}return t})(),X_e=(()=>{class t extends K_e{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:V9,ngContentSelectors:U9,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(i,r){1&i&&(Mn(B9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),b(),ct(4,2),xe(5,"span",2)(6,"span",3)),2&i&<("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)}',z9],encapsulation:2,changeDetection:0})}return t})(),ia=(()=>{class t extends c2{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:G_e,ngContentSelectors:W_e,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(i,r){1&i&&(Mn(),xe(0,"span",0),ct(1),xe(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}',z9],encapsulation:2,changeDetection:0})}return t})(),H9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Im,Ft]})}return t})();var Ot=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Ot||{});const ol="*";function Yn(t,n){return{type:Ot.Trigger,name:t,definitions:n,options:{}}}function qt(t,n=null){return{type:Ot.Animate,styles:n,timings:t}}function l2(t,n=null){return{type:Ot.Group,steps:t,options:n}}function We(t){return{type:Ot.Style,styles:t,offset:null}}function bn(t,n,e){return{type:Ot.State,name:t,styles:n,options:e}}function Am(t){return{type:Ot.Keyframes,steps:t}}function Xt(t,n,e=null){return{type:Ot.Transition,expr:t,animation:n,options:e}}function Tw(t=null){return{type:Ot.AnimateChild,options:t}}function Ew(t,n,e=null){return{type:Ot.Query,selector:t,animation:n,options:e}}class K_{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class j9{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class u2{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Mm extends u2{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class sl extends u2{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class i0e extends u2{constructor(n){super(),this.element=n instanceof He?n.nativeElement:n}}class Sw{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Mm?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof sl?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof i0e?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class r0e extends Sw{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ii.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let o0e=(()=>{class t extends sl{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(di))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[tt]})}return t})(),al=(()=>{class t extends Sw{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ce,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},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 i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(w(wu),w(di),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[W.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[tt]})}return t})(),Rm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const s0e=["addListener","removeListener"],a0e=["addEventListener","removeEventListener"],c0e=["on","off"];function Ra(t,n,e,i){if(On(e)&&(i=e,e=void 0),i)return Ra(t,n,e).pipe(tI(i));const[r,o]=function u0e(t){return On(t.addEventListener)&&On(t.removeEventListener)}(t)?a0e.map(s=>a=>t[s](n,a,e)):function l0e(t){return On(t.addListener)&&On(t.removeListener)}(t)?s0e.map($9(t,n)):function d0e(t){return On(t.on)&&On(t.off)}(t)?c0e.map($9(t,n)):[];if(!r&&JD(t))return Gr(s=>Ra(s,n,e))(ko(t));if(!r)throw new TypeError("Invalid event target");return new jn(s=>{const a=(...c)=>s.next(1o(a)})}function $9(t,n){return e=>i=>t[e](n,i)}const X_={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=X_;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new Wt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=X_;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=X_;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},G9=new class f0e extends qI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class h0e extends WI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=X_.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(X_.cancelAnimationFrame(e),n._scheduled=void 0)}});let h2,m0e=1;const Dw={};function W9(t){return t in Dw&&(delete Dw[t],!0)}const p0e={setImmediate(t){const n=m0e++;return Dw[n]=!0,h2||(h2=Promise.resolve()),h2.then(()=>W9(n)&&t()),n},clearImmediate(t){W9(t)}},{setImmediate:g0e,clearImmediate:_0e}=p0e,Iw={setImmediate(...t){const{delegate:n}=Iw;return(n?.setImmediate||g0e)(...t)},clearImmediate(t){const{delegate:n}=Iw;return(n?.clearImmediate||_0e)(t)},delegate:void 0},f2=new class v0e extends qI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class b0e extends WI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Iw.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Iw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function Y_(t=0,n,e=jge){let i=-1;return null!=n&&(w6(n)?e=n:i=n),new jn(r=>{let o=function x0e(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function q9(t,n=$_){return function y0e(t){return Ni((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const l=r;r=null,e.next(l)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};n.subscribe(ki(e,l=>{i=!0,r=l,o||ko(t(l)).subscribe(o=ki(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>Y_(t,n))}let Z_=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Me,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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new jn(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(q9(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):st()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(un(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Bi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ra(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(Ln),Y(xt,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Aw=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Me,this._elementScrolled=new jn(s=>this.ngZone.runOutsideAngular(()=>Ra(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(s)))}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 i=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=i.scrollHeight-i.clientHeight-e.bottom),r&&z_()!=fc.NORMAL?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),z_()==fc.INVERTED?e.left=e.right:z_()==fc.NEGATED&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;e9()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&z_()==fc.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&z_()==fc.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Z_),w(Be),w(oo,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),cl=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(q9(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(i){return new(i||t)(Y(Ln),Y(Be),Y(xt,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})(),m2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[W_,ll,W_,ll]})}return t})();function Q9(t,n=!1){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}function Ci(...t){const n=x_(t),e=function ffe(t,n){return"number"==typeof eI(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?ko(i[0]):am(e)(Yi(i,n)):fs}const K9=e9();class C0e{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ur(-this._previousScrollPosition.left),n.style.top=ur(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),K9&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K9&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class T0e{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(un(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class X9{enable(){}disable(){}attach(){}}function p2(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function Y9(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class E0e{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();p2(e,[{width:i,height:r,bottom:r,right:i,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}}let S0e=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new X9,this.close=s=>new T0e(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new C0e(this._viewportRuler,this._document),this.reposition=s=>new E0e(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Z_),Y(cl),Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Pm{constructor(n){if(this.scrollStrategy=new X9,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class D0e{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let Z9=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I0e=(()=>{class t extends Z9{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.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(i){return new(i||t)(Y(xt),Y(Be,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),A0e=(()=>{class t extends Z9{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vs(o)},this._clickListener=o=>{const s=Vs(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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(i){return new(i||t)(Y(xt),Y(Ln),Y(Be,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mw=(()=>{class t{constructor(e,i){this._platform=i,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||$I()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me,this._outsidePointerEvents=new Me,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Nn(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 e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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,n&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=ur(this._config.width),n.height=ur(this._config.height),n.minWidth=ur(this._config.minWidth),n.minHeight=ur(this._config.minHeight),n.maxWidth=ur(this._config.maxWidth),n.maxHeight=ur(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const r=G_(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Tt(Ci(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const J9="cdk-overlay-connected-position-bounding-box",M0e=/([A-Za-z%]+)$/;class R0e{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,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 Me,this._resizeSubscription=Wt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(J9),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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 n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(d,l,i)?o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(J9),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=tz(e);let{x:s,y:a}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let h=0-a,f=a+o.height-i.height,m=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),p=m*g;return{visibleArea:p,isCompletelyWithinViewport:o.width*o.height===p,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=ez(this._overlayRef.getConfig().minHeight),a=ez(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=tz(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?l||-s:n.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),m=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ur(i.height),r.top=ur(i.top),r.bottom=ur(i.bottom),r.width=ur(i.width),r.left=ur(i.left),r.right=ur(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ur(o)),s&&(r.maxWidth=ur(s))}this._lastBoundingBoxSize=i,Hu(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Hu(i,this._getExactOverlayY(e,n,d)),Hu(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ur(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ur(s.maxWidth):o&&(i.maxWidth="")),Hu(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ur(o.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ur(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y9(n,i),isOriginOutsideView:p2(n,i),isOverlayClipped:Y9(e,i),isOverlayOutsideView:p2(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&G_(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof He)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Hu(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function ez(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(M0e);return e&&"px"!==e?null:parseFloat(n)}return t||null}function tz(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const nz="cdk-global-overlay-wrapper";class F0e{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(nz),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",g="";c?g="flex-start":"center"===d?(g="center",h?m=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",m=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",m=u),n.position=this._cssPosition,n.marginLeft=c?"0":f,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(nz),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let O0e=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new F0e}flexibleConnectedTo(e){return new R0e(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cl),Y(xt),Y(Ln),Y(Mw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),N0e=0,Ui=(()=>{class t{constructor(e,i,r,o,s,a,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Pm(e);return s.direction=s.direction||this._directionality.value,new Rw(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+N0e++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Qc)),new r0e(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(S0e),Y(Mw),Y(wu),Y(O0e),Y(I0e),Y(Ii),Y(Be),Y(xt),Y(oo),Y(Fu),Y(A0e),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const L0e=[{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"}],iz=new J("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}});let g2=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),rz=(()=>{class t{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,i,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=Wt.EMPTY,this._attachSubscription=Wt.EMPTY,this._detachSubscription=Wt.EMPTY,this._positionSubscription=Wt.EMPTY,this._disposeOnNavigation=!1,this._ngZone=he(Be),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 Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new sl(i,r),this._scrollStrategyFactory=o,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=L0e);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!To(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Pm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=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._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof g2?this.origin.elementRef:this.origin}_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(Q9(()=>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(i){return new(i||t)(w(Ui),w(Gn),w(di),w(iz),w(oo,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[W.None,"cdkConnectedOverlayOrigin","origin"],positions:[W.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[W.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[W.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[W.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[W.None,"cdkConnectedOverlayWidth","width"],height:[W.None,"cdkConnectedOverlayHeight","height"],minWidth:[W.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[W.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[W.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[W.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[W.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[W.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[W.None,"cdkConnectedOverlayOpen","open"],disableClose:[W.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[W.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[W.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ue],lockPosition:[W.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",Ue],flexibleDimensions:[W.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ue],growAfterOpen:[W.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ue],push:[W.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",Ue],disposeOnNavigation:[W.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ue]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Kt,Un]})}return t})();const B0e={provide:iz,deps:[Ui],useFactory:function V0e(t){return()=>t.scrollStrategies.reposition()}};let ju=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Ui,B0e],imports:[W_,Rm,m2,m2]})}return t})();function U0e(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"button",2),U("click",function(){return j(e),G(R().action())}),k(2),b()()}if(2&t){const e=R();y(2),Je(" ",e.data.action," ")}}const z0e=["label"];function H0e(t,n){}const j0e=Math.pow(2,31)-1;class Pw{constructor(n,e){this._overlayRef=e,this._afterDismissed=new Me,this._afterOpened=new Me,this._onAction=new Me,this._dismissedByAction=!1,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,j0e))}_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 _2=new J("MatSnackBarData");class Fw{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let oz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}return t})(),sz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}return t})(),az=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}return t})(),cz=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(w(Pw),w(_2))};static#t=this.\u0275cmp=ze({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[St],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){1&i&&(_(0,"div",0),k(1),b(),q(2,U0e,3,1,"div",1)),2&i&&(y(),Je(" ",r.data.message,"\n"),y(),_n(2,r.hasAction?2:-1))},dependencies:[Eo,oz,sz,az],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const $0e={snackBarState:Yn("state",[bn("void, hidden",We({transform:"scale(0.8)",opacity:0})),bn("visible",We({transform:"scale(1)",opacity:1})),Xt("* => visible",qt("150ms cubic-bezier(0, 0, 0.2, 1)")),Xt("* => void, * => hidden",qt("75ms cubic-bezier(0.4, 0.0, 1, 1)",We({opacity:0})))])};let G0e=0,lz=(()=>{class t extends Sw{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=he(xt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Me,this._onExit=new Me,this._onEnter=new Me,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+G0e++,this.attachDomPortal=a=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(s=>e.classList.add(s)):e.classList.add(i)),this._exposeToModals();const r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.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]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Be),w(He),w(gn),w(Ln),w(Fw))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&(vt(al,7),vt(z0e,7)),2&i){let o;Re(o=Pe())&&(r._portalOutlet=o.first),Re(o=Pe())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){1&i&&lx("@state.done",function(s){return r.onAnimationEnd(s)}),2&i&&rx("@state",r._animationState)},standalone:!0,features:[tt,St],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(_(0,"div",1)(1,"div",2,0)(3,"div",3),q(4,H0e,0,0,"ng-template",4),b(),xe(5,"div"),b()()),2&i&&(y(5),_t("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[al],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:[$0e.snackBarState]}})}return t})();const q0e=new J("mat-snack-bar-default-options",{providedIn:"root",factory:function W0e(){return new Fw}});let $u=(()=>{class t{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,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=cz,this.snackBarContainerComponent=lz,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Ii.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Fw,useValue:i}]}),s=new Mm(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Fw,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Pw(s,o);if(e instanceof Gn){const c=new sl(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),l=new Mm(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Pm;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Ii.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Pw,useValue:i},{provide:_2,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(b9),Y(Ii),Y(s9),Y(t,12),Y(q0e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Q0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[$u],imports:[ju,Rm,H9,Ft,cz,Ft]})}return t})(),Ti=(()=>{class t{constructor(e,i){this.sbRef=e,this.data=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Pw),w(_2))};static#t=this.\u0275cmp=ze({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(i,r){1&i&&(_(0,"span",0),k(1),b()),2&i&&(y(),Ke(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),so=(()=>{class t{constructor(e,i){this.http=e,this._snackBar=i,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.snowstormFhirBaseSubject=new wi(this.snowstormFhirBase),this.fhirUrlParamSubject=new wi(this.fhirUrlParam),this.langSubject=new wi(this.lang),this.snowstormFhirBase$=this.snowstormFhirBaseSubject.asObservable(),this.fhirUrlParam$=this.fhirUrlParamSubject.asObservable(),this.lang$=this.langSubject.asObservable(),this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e,this.snowstormFhirBaseSubject.next(e)}setFhirUrlParam(e){this.fhirUrlParam=e,this.fhirUrlParamSubject.next(e)}setLang(e){this.lang=e,this.langSubject.next(e)}getSnowstormFhirBase(){return this.snowstormFhirBase}getFhirUrlParam(){return this.fhirUrlParam}getLang(){return this.lang}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(Ar(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(Ar(this.handleError("getCodeSystem",{})))}getValueSetExpansionUrl(e,i,r,o){return r||(r=0),o||(o=20),"string"!=typeof i&&(i=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${i}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,i,r,o){let s=this.getValueSetExpansionUrl(e,i,r,o);return this.http.get(s).pipe(Ar(this.handleError("expandValueSet",{})))}translate(e,i,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${i}&system=${r}`).pipe(Ar(this.handleError("translate",{})))}expandValueSetFromServer(e,i,r,o,s,a){s||(s=0),a||(a=20),e||(e=this.snowstormFhirBase),i||(i=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${i}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${a}&offset=${s}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(Ar(this.handleError("expandValueSet",{})))}handleError(e="operation",i){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Ti,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),st(i))}lookupConcept(e,i){i||(i=this.fhirUrlParam);const r=`${i}:${e}`,o=this.conceptCache.get(r);if(o)return st(o);let s=`${this.snowstormFhirBase}/CodeSystem/$lookup?system=http://snomed.info/sct&code=${e}&property=normalForm`;"http://snomed.info/sct"!=i&&(s+=`&version=${i}`);const a={headers:new ps({"Accept-Language":"en"})};return this.http.get(s,a).pipe(Vi(c=>{this.conceptCache.set(r,c)}),Ar(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let i=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(i).pipe(Ar(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let i=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new ps({"Content-Type":"application/fhir+json"})};return this.http.patch(i,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(Ar(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let i=`https://browser.ihtsdotools.org/snowstorm/snomed-ct/MAIN/SNOMEDCT-ES/2022-10-31/concepts?offset=0&limit=100&termActive=true&ecl=${encodeURIComponent(e)}`;return this.http.get(i).pipe(Ar(this.handleError("expandValueSet",{})))}getIcd10MapTargets(e){return this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?code=${e}&system=http://snomed.info/sct&source=http://snomed.info/sct?fhir_vs&target=http://hl7.org/fhir/sid/icd-10&url=http://snomed.info/sct/900000000000207008/version/20200131?fhir_cm=447562003`).pipe(Ar(this.handleError("translate",{})))}lookupOtherCodeSystems(e,i){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${i}`).pipe(Ar(this.handleError("lookup",{})))}getNormalForm(e){if(e.parameter)for(let i of e.parameter){let r=!1;if("property"==i.name){for(let o of i.part)"code"==o.name&&"normalForm"==o.valueString&&(r=!0);if(r)for(let o of i.part)if("valueString"==o.name)return o.valueString}}return""}parseNormmalForm(e){const i=[];return e.split("} {").forEach(o=>{const s=o.match(/\d+\|[^\|]+\|\s*=\s*\d+\|[^\|]+\|/g);if(!s)return;const a=s.map(c=>{const[l,d]=c.split("=").map(g=>g.trim()),[u,h]=l.split("|").map(g=>g.trim()),[f,m]=d.split("|").map(g=>g.trim());return{type:{code:u,display:h.replace(/\(.*\)/,"").trim()},target:{code:f,display:m}}});i.push(a)}),{groups:i}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y($u))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dz(...t){const n=k6(t),{args:e,keys:i}=C6(t),r=new jn(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?T6(i,a):a),o.complete())}))}});return n?r.pipe(tI(n)):r}function uz(t={}){const{connector:n=(()=>new Me),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,d=u=!1},m=()=>{const g=s;f(),g?.unsubscribe()};return Ni((g,p)=>{l++,!u&&!d&&h();const v=c=c??n();p.add(()=>{l--,0===l&&!u&&!d&&(a=b2(m,r))}),v.subscribe(p),!s&&l>0&&(s=new tf({next:x=>v.next(x),error:x=>{u=!0,h(),a=b2(f,e,x),v.error(x)},complete:()=>{d=!0,h(),a=b2(f,i),v.complete()}}),ko(g).subscribe(s))})(o)}}function b2(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new tf({next:()=>{i.unsubscribe(),t()}});return ko(n(...e)).subscribe(i)}const K0e=["*"];let Ow;function J_(t){return function X0e(){if(void 0===Ow&&(Ow=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Ow=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Ow}()?.createHTML(t)||t}function hz(t){return Error(`Unable to find icon with the name "${t}"`)}function fz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function mz(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Gu{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let Nw=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,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,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Gu(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(io.HTML,r);if(!s)throw mz(r);const a=J_(s);return this._addSvgIconConfig(e,i,new Gu("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Gu(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(io.HTML,i);if(!o)throw mz(i);const s=J_(o);return this._addSvgIconSetConfig(e,new Gu("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(io.RESOURCE_URL,e);if(!i)throw fz(e);const r=this._cachedIconsByUrl.get(i);return r?st(Lw(r)):this._loadSvgIconFromConfig(new Gu(e,null)).pipe(Vi(o=>this._cachedIconsByUrl.set(i,o)),mt(o=>Lw(o)))}getNamedSvgIcon(e,i=""){const r=pz(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):lm(hz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?st(Lw(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(mt(i=>Lw(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?st(r):dz(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Ar(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(io.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),st(null)})))).pipe(mt(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw hz(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Vi(i=>e.svgText=i),mt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?st(null):this._fetchIcon(e).pipe(Vi(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(J_(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(J_("")),r=e.attributes;for(let o=0;oJ_(l)),um(()=>this._inProgressUrlFetches.delete(s)),uz());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(pz(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}}),gz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ibe=gz.map(t=>`[${t}]`).join(", "),rbe=/^url\(['"]?#(.*?)['"]?\)$/;let So=(()=>{class t{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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,s,a){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Wt.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(ibe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],c=a.getAttribute(s),l=c?c.match(rbe):null;if(l){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Nn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Nw),Ms("aria-hidden"),w(tbe),w(Rs),w(ebe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(_t("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),Ys(r.color?"mat-"+r.color:""),lt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[W.HasDecoratorInputTransform,"inline","inline",Ue],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Kt,St],ngContentSelectors:K0e,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})(),obe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();function _z(t,n){return n?e=>w_(n.pipe(Nn(1),function sbe(){return Ni((t,n)=>{t.subscribe(ki(n,Iv))})}()),e.pipe(_z(t))):Gr((e,i)=>ko(t(e,i)).pipe(Nn(1),zx(e)))}function v2(t,n=$_){const e=Y_(t,n);return _z(()=>e)}const abe=["mat-menu-item",""],cbe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lbe=["mat-icon, [matMenuItemIcon]","*"];function dbe(t,n){1&t&&(jc(),_(0,"svg",2),xe(1,"polygon",3),b())}const ube=["*"];function hbe(t,n){if(1&t){const e=Se();_(0,"div",0),U("keydown",function(r){return j(e),G(R()._handleKeydown(r))})("click",function(){return j(e),G(R().closed.emit("click"))})("@transformMenu.start",function(r){return j(e),G(R()._onAnimationStart(r))})("@transformMenu.done",function(r){return j(e),G(R()._onAnimationDone(r))}),_(1,"div",1),ct(2),b()()}if(2&t){const e=R();T("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),_t("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const y2=new J("MAT_MENU_PANEL");let mc=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new Me,this._focused=new Me,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",qt("120ms cubic-bezier(0, 0, 0.2, 1)",We({opacity:1,transform:"scale(1)"}))),Xt("* => void",qt("100ms 25ms linear",We({opacity:0})))]),fadeInItems:Yn("fadeInItems",[bn("showing",We({opacity:1})),Xt("void => *",[We({opacity:0}),qt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let mbe=0;const pbe=new J("mat-menu-default-options",{providedIn:"root",factory:function gbe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Pa=(()=>{class t{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 i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new Gl,this._classList={},this._panelAnimationState="void",this._animationDone=new Me,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+mbe++,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 ZI(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wr(this._directDescendantItems),Zi(e=>Ci(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Wr(this._directDescendantItems),Zi(i=>Ci(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:To(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===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Nn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,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(Wr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(pbe),w(gn))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,fbe,5),ln(o,mc,5),ln(o,mc,4)),2&i){let s;Re(s=Pe())&&(r.lazyContent=s.first),Re(s=Pe())&&(r._allItems=s),Re(s=Pe())&&(r.items=s)}},viewQuery:function(i,r){if(1&i&&vt(Gn,5),2&i){let o;Re(o=Pe())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){2&i&&_t("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[W.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",Ue],hasBackdrop:[W.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>null==e?null:Ue(e)],panelClass:[W.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[it([{provide:y2,useExisting:t}]),Kt,St],ngContentSelectors:ube,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id","ngClass"],[1,"mat-mdc-menu-content"]],template:function(i,r){1&i&&(Mn(),q(0,hbe,3,6,"ng-template"))},dependencies:[Da],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{right:auto;padding-right:var(--mat-menu-item-spacing);padding-left:0}.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:[Vw.transformMenu,Vw.fadeInItems]},changeDetection:0})}return t})();const bz=new J("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),bbe={provide:bz,deps:[Ui],useFactory:function _be(t){return()=>t.scrollStrategies.reposition()}},vz=Ma({passive:!0});let Wu=(()=>{class t{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._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,s,a,c,l,d){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Wt.EMPTY,this._hoverSubscription=Wt.EMPTY,this._menuCloseSubscription=Wt.EMPTY,this._changeDetectorRef=he(gn),this._handleTouchStart=u=>{vw(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Pa?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,vz)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vz),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 i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Pa&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Pa?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(un(r=>"void"===r.toState),Nn(1),Tt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.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 i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Pm({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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[s,a],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",o=d="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===s?"bottom":"top",l="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:s,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ci(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:st(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(un(s=>s!==this._menuItemInstance),un(()=>this._menuOpen)):st(),i)}_handleMousedown(e){bw(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"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(un(e=>e===this._menuItemInstance&&!e.disabled),v2(0,f2)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pa&&this.menu._isAnimating?this.menu._animationDone.pipe(Nn(1),v2(0,f2),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new sl(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ui),w(He),w(di),w(bz),w(y2,8),w(mc,10),w(oo,8),w(ta),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){1&i&&U("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&_t("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[W.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[W.None,"matMenuTriggerFor","menu"],menuData:[W.None,"matMenuTriggerData","menuData"],restoreFocus:[W.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return t})(),vbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[bbe],imports:[ac,Im,Ft,ju,ll,Ft]})}return t})();const ybe=["determinateSpinner"];function xbe(t,n){if(1&t&&(jc(),_(0,"svg",11),xe(1,"circle",12),b()),2&t){const e=R();_t("viewBox",e._viewBox()),y(),Ki("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),_t("r",e._circleRadius())}}const wbe=new J("mat-progress-spinner-default-options",{providedIn:"root",factory:function kbe(){return{diameter:yz}}}),yz=100;let md=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,i,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=yz,this._noopAnimations="NoopAnimations"===i&&!!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(i){return new(i||t)(w(He),w(pi,8),w(wbe))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(1&i&&vt(ybe,5),2&i){let o;Re(o=Pe())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){2&i&&(_t("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),Ys("mat-"+r.color),Ki("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),lt("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===r.mode))},inputs:{color:"color",mode:"mode",value:[W.HasDecoratorInputTransform,"value","value",Xi],diameter:[W.HasDecoratorInputTransform,"diameter","diameter",Xi],strokeWidth:[W.HasDecoratorInputTransform,"strokeWidth","strokeWidth",Xi]},exportAs:["matProgressSpinner"],standalone:!0,features:[Kt,St],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(i,r){if(1&i&&(q(0,xbe,2,8,"ng-template",null,0,tm),_(2,"div",2,1),jc(),_(4,"svg",3),xe(5,"circle",4),b()(),ey(),_(6,"div",5)(7,"div",6)(8,"div",7),Er(9,8),b(),_(10,"div",9),Er(11,8),b(),_(12,"div",10),Er(13,8),b()()()),2&i){const o=jt(1);y(4),_t("viewBox",r._viewBox()),y(),Ki("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),_t("r",r._circleRadius()),y(4),T("ngTemplateOutlet",o),y(2),T("ngTemplateOutlet",o),y(2),T("ngTemplateOutlet",o)}},dependencies:[Nx],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})}return t})(),Tbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[ac,Ft]})}return t})();const Ebe=["*"],Mbe=new J("MAT_CARD_CONFIG");let x2=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(w(Mbe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){2&i&<("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[St],ngContentSelectors:Ebe,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})(),Rbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,Ft]})}return t})();const Pbe=[[["caption"]],[["colgroup"],["col"]],"*"],Fbe=["caption","colgroup, col","*"];function Obe(t,n){1&t&&ct(0,2)}function Nbe(t,n){1&t&&(_(0,"thead",0),Er(1,1),b(),_(2,"tbody",0),Er(3,2)(4,3),b(),_(5,"tfoot",0),Er(6,4),b())}function Lbe(t,n){1&t&&Er(0,1)(1,2)(2,3)(3,4)}const pc=new J("CDK_TABLE");let Fm=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkCellDef",""]],standalone:!0})}return t})(),Om=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return t})(),Bw=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return t})(),dl=(()=>{class t{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(i){return new(i||t)(w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Fm,5),ln(o,Om,5),ln(o,Bw,5)),2&i){let s;Re(s=Pe())&&(r.cell=s.first),Re(s=Pe())&&(r.headerCell=s.first),Re(s=Pe())&&(r.footerCell=s.first)}},inputs:{name:[W.None,"cdkColumnDef","name"],sticky:[W.HasDecoratorInputTransform,"sticky","sticky",Ue],stickyEnd:[W.HasDecoratorInputTransform,"stickyEnd","stickyEnd",Ue]},standalone:!0,features:[it([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Kt]})}return t})();class w2{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let k2=(()=>{class t extends w2{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(dl),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[tt]})}return t})(),C2=(()=>{class t extends w2{constructor(e,i){super(e,i);const r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static#e=this.\u0275fac=function(i){return new(i||t)(w(dl),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[tt]})}return t})();class wz{constructor(){this.tasks=[],this.endTasks=[]}}const T2=new J("_COALESCED_STYLE_SCHEDULER");let kz=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Me}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new wz,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new wz;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Yi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Nn(1))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),E2=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof e0?e.headerCell.template:this instanceof t0?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td))};static#t=this.\u0275dir=ce({type:t,features:[Un]})}return t})(),e0=(()=>{class t extends E2{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[W.None,"cdkHeaderRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",Ue]},standalone:!0,features:[Kt,tt,Un]})}return t})(),t0=(()=>{class t extends E2{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[W.None,"cdkFooterRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",Ue]},standalone:!0,features:[Kt,tt,Un]})}return t})(),Uw=(()=>{class t extends E2{constructor(e,i,r){super(e,i),this._table=r}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[W.None,"cdkRowDefColumns","columns"],when:[W.None,"cdkRowDefWhen","when"]},standalone:!0,features:[tt]})}return t})(),ul=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(w(di))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return t})(),S2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),I2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),zw=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return t})();const Cz=["top","bottom","left","right"];class zbe{constructor(n,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const r of n)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(n,e,i,r=!0){n.length&&this._isBrowser&&(e.some(o=>o)||i.some(o=>o))?this._coalescedStyleScheduler.schedule(()=>{const o=n[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i),d=e.lastIndexOf(!0),u=i.indexOf(!0),h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of n)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,p)=>i[p+u]?g:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(n,e,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const r="bottom"===i?n.slice().reverse():n,o="bottom"===i?e.slice().reverse():e,s=[],a=[],c=[];for(let d=0,u=0;d{const i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(n,e){for(const r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);Cz.some(r=>-1===e.indexOf(r)&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of Cz)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}}const A2=new J("CDK_SPL");let M2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._rowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}return t})(),R2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._headerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}return t})(),P2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._footerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}return t})(),F2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._noDataRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return t})(),Hw=(()=>{class t{_getCellRole(){if(void 0===this._cellRoleInternal){const e=this._elementRef.nativeElement.getAttribute("role"),i="grid"===e||"treegrid"===e?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===i?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,r,o,s,a,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new Me,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ce,this.viewChange=new wi({start:0,end:Number.MAX_VALUE}),o||r.nativeElement.setAttribute("role","table"),this._document=a,this._isServer=!c.isBrowser,this._isNativeHtmlTable="TABLE"===r.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),RI(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{r.operation===el.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&Be.isInAngularZone()?this._ngZone.onStable.pipe(Nn(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const r=Tz(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}const i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const r=Tz(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}const i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const c=a.shift();return c.dataIndex=i,c}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),jw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=jw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=jw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=jw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],RI(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;RI(this.dataSource)?e=this.dataSource.connect(this):QD(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=st(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))ul.mostRecentCellOutlet&&ul.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new zbe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:st()).pipe(Tt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(w(td),w(gn),w(He),Ms("role"),w(oo,8),w(xt),w(Ln),w(N_),w(T2),w(cl),w(A2,12),w(Be,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(1&i&&(ln(o,zw,5),ln(o,dl,5),ln(o,Uw,5),ln(o,e0,5),ln(o,t0,5)),2&i){let s;Re(s=Pe())&&(r._noDataRow=s.first),Re(s=Pe())&&(r._contentColumnDefs=s),Re(s=Pe())&&(r._contentRowDefs=s),Re(s=Pe())&&(r._contentHeaderRowDefs=s),Re(s=Pe())&&(r._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){2&i&<("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[W.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",Ue],fixedLayout:[W.HasDecoratorInputTransform,"fixedLayout","fixedLayout",Ue]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[it([{provide:pc,useExisting:t},{provide:N_,useClass:DU},{provide:T2,useClass:kz},{provide:A2,useValue:null}]),Kt,St],ngContentSelectors:Fbe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Mn(Pbe),ct(0),ct(1,1),q(2,Obe,1,0)(3,Nbe,7,0)(4,Lbe,4,0)),2&i&&(y(2),_n(2,r._isServer?2:-1),y(),_n(3,r._isNativeHtmlTable?3:4))},dependencies:[R2,M2,F2,P2],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function jw(t,n){return t.concat(Array.from(n))}function Tz(t,n){const e=n.toUpperCase();let i=t.viewContainer.element.nativeElement;for(;i;){const r=1===i.nodeType?i.nodeName:null;if(r===e)return i;if("TABLE"===r)break;i=i.parentNode}return null}let jbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[m2]})}return t})();const $be=[[["caption"]],[["colgroup"],["col"]],"*"],Gbe=["caption","colgroup, col","*"];function Wbe(t,n){1&t&&ct(0,2)}function qbe(t,n){1&t&&(_(0,"thead",0),Er(1,1),b(),_(2,"tbody",2),Er(3,3)(4,4),b(),_(5,"tfoot",0),Er(6,5),b())}function Qbe(t,n){1&t&&Er(0,1)(1,3)(2,4)(3,5)}let pd=(()=>{class t extends Hw{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[it([{provide:Hw,useExisting:t},{provide:pc,useExisting:t},{provide:T2,useClass:kz},{provide:N_,useClass:DU},{provide:A2,useValue:null}]),tt,St],ngContentSelectors:Gbe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Mn($be),ct(0),ct(1,1),q(2,Wbe,1,0)(3,qbe,7,0)(4,Qbe,4,0)),2&i&&(y(2),_n(2,r._isServer?2:-1),y(),_n(3,r._isNativeHtmlTable?3:4))},dependencies:[R2,M2,F2,P2],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),hl=(()=>{class t extends Fm{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matCellDef",""]],standalone:!0,features:[it([{provide:Fm,useExisting:t}]),tt]})}return t})(),fl=(()=>{class t extends Om{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[it([{provide:Om,useExisting:t}]),tt]})}return t})(),ml=(()=>{class t extends dl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[W.None,"matColumnDef","name"]},standalone:!0,features:[it([{provide:dl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),tt]})}return t})(),pl=(()=>{class t extends k2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[tt]})}return t})(),gl=(()=>{class t extends C2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[tt]})}return t})(),gd=(()=>{class t extends e0{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[W.None,"matHeaderRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",Ue]},standalone:!0,features:[it([{provide:e0,useExisting:t}]),Kt,tt]})}return t})(),_d=(()=>{class t extends Uw{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[W.None,"matRowDefColumns","columns"],when:[W.None,"matRowDefWhen","when"]},standalone:!0,features:[it([{provide:Uw,useExisting:t}]),tt]})}return t})(),bd=(()=>{class t extends S2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[it([{provide:S2,useExisting:t}]),tt,St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),vd=(()=>{class t extends I2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[it([{provide:I2,useExisting:t}]),tt,St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),nve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,jbe,Ft]})}return t})();class qu extends nw{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new wi([]),this._filter=new wi(""),this._internalPageChanges=new Me,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(n9(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((s,a)=>{let c=this.sortingDataAccessor(s,r),l=this.sortingDataAccessor(a,r);const d=typeof c,u=typeof l;d!==u&&("number"===d&&(c+=""),"number"===u&&(l+=""));let h=0;return null!=c&&null!=l?c>l?h=1:c{const r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new wi(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?Ci(this._sort.sortChange,this._sort.initialized):st(null),e=this._paginator?Ci(this._paginator.page,this._internalPageChanges,this._paginator.initialized):st(null),r=Jc([this._data,this._filter]).pipe(mt(([a])=>this._filterData(a))),o=Jc([r,n]).pipe(mt(([a])=>this._orderData(a))),s=Jc([o,e]).pipe(mt(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}let Sz=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qc),w(He))};static#t=this.\u0275dir=ce({type:t})}return t})(),Qu=(()=>{class t extends Sz{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,features:[tt]})}return t})();const Rr=new J(""),ove={provide:Rr,useExisting:an(()=>ra),multi:!0},ave=new J("");let ra=(()=>{class t extends Sz{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function sve(){const t=nd()?nd().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qc),w(He),w(ave,8))};static#t=this.\u0275dir=ce({type:t,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(i,r){1&i&&U("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[it([ove]),tt]})}return t})();function yd(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Iz(t){return null!=t&&"number"==typeof t.length}const hr=new J(""),xd=new J(""),cve=/^(?=.{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 Nm{static min(n){return function Az(t){return n=>{if(yd(n.value)||yd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(yd(n.value)||yd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return Rz(n)}static requiredTrue(n){return function Pz(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Fz(t){return yd(t.value)||cve.test(t.value)?null:{email:!0}}(n)}static minLength(n){return Oz(n)}static maxLength(n){return function Nz(t){return n=>Iz(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return Lz(n)}static nullValidator(n){return null}static compose(n){return jz(n)}static composeAsync(n){return $z(n)}}function Rz(t){return yd(t.value)?{required:!0}:null}function Oz(t){return n=>yd(n.value)||!Iz(n.value)?null:n.value.length{if(yd(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function $w(t){return null}function Vz(t){return null!=t}function Bz(t){return f_(t)?Yi(t):t}function Uz(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function zz(t,n){return n.map(e=>e(t))}function Hz(t){return t.map(n=>function lve(t){return!t.validate}(n)?n:e=>n.validate(e))}function jz(t){if(!t)return null;const n=t.filter(Vz);return 0==n.length?null:function(e){return Uz(zz(e,n))}}function O2(t){return null!=t?jz(Hz(t)):null}function $z(t){if(!t)return null;const n=t.filter(Vz);return 0==n.length?null:function(e){return dz(zz(e,n).map(Bz)).pipe(mt(Uz))}}function N2(t){return null!=t?$z(Hz(t)):null}function Gz(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Wz(t){return t._rawValidators}function qz(t){return t._rawAsyncValidators}function L2(t){return t?Array.isArray(t)?t:[t]:[]}function Gw(t,n){return Array.isArray(t)?t.includes(n):t===n}function Qz(t,n){const e=L2(n);return L2(t).forEach(r=>{Gw(e,r)||e.push(r)}),e}function Kz(t,n){return L2(n).filter(e=>!Gw(t,e))}class Xz{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(n){this._rawValidators=n||[],this._composedValidatorFn=O2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=N2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Xo extends Xz{get formDirective(){return null}get path(){return null}}class gc extends Xz{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yz{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Yo=(()=>{class t extends Yz{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(gc,2))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})(),n0=(()=>{class t extends Yz{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Xo,10))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})();const r0="VALID",qw="INVALID",Lm="PENDING",o0="DISABLED";function U2(t){return(Qw(t)?t.validators:t)||null}function z2(t,n){return(Qw(n)?n.asyncValidators:t)||null}function Qw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Jz(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new le(1e3,"");if(!i[e])throw new le(1001,"")}function eH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new le(1002,"")})}class Kw{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===r0}get invalid(){return this.status===qw}get pending(){return this.status==Lm}get disabled(){return this.status===o0}get enabled(){return this.status!==o0}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Qz(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Qz(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Kz(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Kz(n,this._rawAsyncValidators))}hasValidator(n){return Gw(this._rawValidators,n)}hasAsyncValidator(n){return Gw(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Lm,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=o0,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=r0,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===r0||this.status===Lm)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?o0:r0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Lm,this._hasOwnPendingAsyncValidator=!0;const e=Bz(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?o0:this.errors?qw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Lm)?Lm:this._anyControlsHaveStatus(qw)?qw:r0}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Qw(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function fve(t){return Array.isArray(t)?O2(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function mve(t){return Array.isArray(t)?N2(t):t||null}(this._rawAsyncValidators)}}class Vm extends Kw{constructor(n,e,i){super(U2(e),z2(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){eH(this,0,n),Object.keys(n).forEach(i=>{Jz(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class tH extends Vm{}const Ku=new J("CallSetDisabledState",{providedIn:"root",factory:()=>s0}),s0="always";function Xw(t,n){return[...n.path,t]}function a0(t,n,e=s0){H2(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function gve(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&nH(t,n)})}(t,n),function bve(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function _ve(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&nH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function pve(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Yw(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Jw(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Zw(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function H2(t,n){const e=Wz(t);null!==n.validator?t.setValidators(Gz(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=qz(t);null!==n.asyncValidator?t.setAsyncValidators(Gz(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Zw(n._rawValidators,r),Zw(n._rawAsyncValidators,r)}function Jw(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=Wz(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=qz(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Zw(n._rawValidators,i),Zw(n._rawAsyncValidators,i),e}function nH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function iH(t,n){H2(t,n)}function $2(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function rH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function G2(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===ra?e=o:function xve(t){return Object.getPrototypeOf(t.constructor)===Qu}(o)?i=o:r=o}),r||i||e||null}const kve={provide:Xo,useExisting:an(()=>Xu)},c0=Promise.resolve();let Xu=(()=>{class t extends Xo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new Vm({},O2(e),N2(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){c0.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),a0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){c0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){c0.then(()=>{const i=this._findContainer(e.path),r=new Vm({});iH(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){c0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){c0.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,rH(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(i){return new(i||t)(w(hr,10),w(xd,10),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[W.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([kve]),tt]})}return t})();function oH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function sH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gs=class extends Kw{constructor(n=null,e,i){super(U2(e),z2(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qw(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){oH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){oH(this._onDisabledChange,n)}_forEachChild(n){}_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(n){sH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Cve=gs,Sve={provide:gc,useExisting:an(()=>_s)},lH=Promise.resolve();let _s=(()=>{class t extends gc{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new gs,this._registered=!1,this.name="",this.update=new Ce,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=G2(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),$2(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(){a0(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){lH.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ue(i);lH.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Xw(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(w(Xo,9),w(hr,10),w(xd,10),w(Rr,10),w(gn,8),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"],options:[W.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[it([Sve]),tt,Un]})}return t})(),l0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const Dve={provide:Rr,useExisting:an(()=>e1),multi:!0};let e1=(()=>{class t extends Qu{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&U("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[it([Dve]),tt]})}return t})();const W2=new J(""),Rve={provide:gc,useExisting:an(()=>t1)};let t1=(()=>{class t extends gc{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=G2(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Yw(i,this,!1),a0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}$2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Yw(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(i){return new(i||t)(w(hr,10),w(xd,10),w(Rr,10),w(W2,8),w(Ku,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","formControl",""]],inputs:{form:[W.None,"formControl","form"],isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[it([Rve]),tt,Un]})}return t})();const Pve={provide:Xo,useExisting:an(()=>wd)};let wd=(()=>{class t extends Xo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Jw(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 i=this.form.get(e.path);return a0(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Yw(e.control||null,e,!1),function wve(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,rH(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 i=e.control,r=this.form.get(e.path);i!==r&&(Yw(i||null,e),(t=>t instanceof gs)(r)&&(a0(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);iH(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function vve(t,n){return Jw(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){H2(this.form,this),this._oldForm&&Jw(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(w(hr,10),w(xd,10),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[W.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([Pve]),tt,Un]})}return t})();const Nve={provide:gc,useExisting:an(()=>d0)};let d0=(()=>{class t extends gc{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=G2(0,o)}ngOnChanges(e){this._added||this._setUpControl(),$2(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 Xw(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(i){return new(i||t)(w(Xo,13),w(hr,10),w(xd,10),w(Rr,10),w(W2,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","formControlName",""]],inputs:{name:[W.None,"formControlName","name"],isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[it([Nve]),tt,Un]})}return t})();let Yu=(()=>{class t{constructor(){this._validator=$w}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):$w,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(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,features:[Un]})}return t})();const Gve={provide:hr,useExisting:an(()=>n1),multi:!0};let n1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ue,this.createValidator=e=>Rz}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){2&i&&_t("required",r._enabled?"":null)},inputs:{required:"required"},features:[it([Gve]),tt]})}return t})();const Qve={provide:hr,useExisting:an(()=>Y2),multi:!0};let Y2=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function pH(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>Oz(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&_t("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[it([Qve]),tt]})}return t})();const Xve={provide:hr,useExisting:an(()=>o1),multi:!0};let o1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Lz(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&_t("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[it([Xve]),tt]})}return t})(),xH=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();class wH extends Kw{constructor(n,e,i){super(U2(e),z2(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){eH(this,0,n),n.forEach((i,r)=>{Jz(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let CH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return kH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Vm(r,o)}record(e,i=null){const r=this._reduceControls(e);return new tH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(kH(i)?o=i:(o.validators=i,o.asyncValidators=r),new gs(e,{...o,nonNullable:!0})):new gs(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new wH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof gs||e instanceof Kw?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Z2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ku,useValue:e.callSetDisabledState??s0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[xH]})}return t})(),Yve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:W2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ku,useValue:e.callSetDisabledState??s0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[xH]})}return t})();class Jve{constructor(n){this._box=n,this._destroyed=new Me,this._resizeSubject=new Me,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new jn(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(un(e=>e.some(i=>i.target===n)),function Zve(t,n,e){let i,r=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t):i=t??1/0,uz({connector:()=>new iw(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Tt(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let eye=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=he(Be)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Jve(r)),this._observers.get(r).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tye=["notch"],nye=["matFormFieldNotchedOutline",""],iye=["*"],rye=["textField"],oye=["iconPrefixContainer"],sye=["textPrefixContainer"],aye=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],cye=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function lye(t,n){1&t&&xe(0,"span",17)}function dye(t,n){if(1&t&&(_(0,"label",16),ct(1,1),q(2,lye,1,0,"span",17),b()),2&t){const e=R(2);T("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),_t("for",e._control.id),y(2),_n(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function uye(t,n){1&t&&q(0,dye,3,5,"label",16),2&t&&_n(0,R()._hasFloatingLabel()?0:-1)}function hye(t,n){1&t&&xe(0,"div",5)}function fye(t,n){}function mye(t,n){1&t&&q(0,fye,0,0,"ng-template",11),2&t&&(R(2),T("ngTemplateOutlet",jt(1)))}function pye(t,n){if(1&t&&(_(0,"div",7),q(1,mye,1,1,null,11),b()),2&t){const e=R();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),y(),_n(1,e._forceDisplayInfixLabel()?-1:1)}}function gye(t,n){1&t&&(_(0,"div",8,2),ct(2,2),b())}function _ye(t,n){1&t&&(_(0,"div",9,3),ct(2,3),b())}function bye(t,n){}function vye(t,n){1&t&&q(0,bye,0,0,"ng-template",11),2&t&&(R(),T("ngTemplateOutlet",jt(1)))}function yye(t,n){1&t&&(_(0,"div",12),ct(1,4),b())}function xye(t,n){1&t&&(_(0,"div",13),ct(1,5),b())}function wye(t,n){1&t&&xe(0,"div",14)}function kye(t,n){1&t&&(_(0,"div",18),ct(1,6),b()),2&t&&T("@transitionMessages",R()._subscriptAnimationState)}function Cye(t,n){if(1&t&&(_(0,"mat-hint",20),k(1),b()),2&t){const e=R(2);T("id",e._hintLabelId),y(),Ke(e.hintLabel)}}function Tye(t,n){if(1&t&&(_(0,"div",19),q(1,Cye,2,2,"mat-hint",20),ct(2,7),xe(3,"div",21),ct(4,8),b()),2&t){const e=R();T("@transitionMessages",e._subscriptAnimationState),y(),_n(1,e.hintLabel?1:-1)}}let Bs=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-label"]],standalone:!0})}return t})(),Eye=0;const TH=new J("MatError");let EH=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+Eye++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(Ms("aria-live"),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){2&i&&rc("id",r.id)},inputs:{id:"id"},standalone:!0,features:[it([{provide:TH,useExisting:t}])]})}return t})(),Sye=0,Zu=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Sye++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("align",null),lt("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"},standalone:!0})}return t})();const Dye=new J("MatPrefix"),SH=new J("MatSuffix");let DH=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[W.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[it([{provide:SH,useExisting:t}])]})}return t})();const IH=new J("FloatingLabelParent");let AH=(()=>{class t{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=he(eye),this._ngZone=he(Be),this._parent=he(IH),this._resizeSubscription=new Wt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Iye(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(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(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return t})();const MH="mdc-line-ripple--active",s1="mdc-line-ripple--deactivating";let RH=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(s1);"opacity"===r.propertyName&&s&&o.remove(MH,s1)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(s1),e.add(MH)}deactivate(){this._elementRef.nativeElement.classList.add(s1)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return t})(),PH=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,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._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be))};static#t=this.\u0275cmp=ze({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&vt(tye,5),2&i){let o;Re(o=Pe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-notched-outline--notched",r.open)},inputs:{open:[W.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[St],attrs:nye,ngContentSelectors:iye,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(i,r){1&i&&(Mn(),xe(0,"div",1),_(1,"div",2,0),ct(3),b(),xe(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const Aye={transitionMessages:Yn("transitionMessages",[bn("enter",We({opacity:1,transform:"translateY(0%)"})),Xt("void => enter",[We({opacity:0,transform:"translateY(-5px)"}),qt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let a1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t})}return t})();const c1=new J("MatFormField"),Mye=new J("MAT_FORM_FIELD_DEFAULT_OPTIONS");let FH=0,Fa=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Mr(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 i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(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,i,r,o,s,a,c,l){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=c,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-"+FH++,this._hintLabelId="mat-mdc-hint-"+FH++,this._subscriptAnimationState="",this._destroyed=new Me,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.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(Tt(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(),Ci(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(){}_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(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(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 i=this._control?this._control.ngControl:null;return i&&i[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(){}_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 i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.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 i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,s=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(Be),w(oo),w(Ln),w(Mye,8),w(pi,8),w(xt))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Bs,5),ln(o,Bs,7),ln(o,a1,5),ln(o,Dye,5),ln(o,SH,5),ln(o,TH,5),ln(o,Zu,5)),2&i){let s;Re(s=Pe())&&(r._labelChildNonStatic=s.first),Re(s=Pe())&&(r._labelChildStatic=s.first),Re(s=Pe())&&(r._formFieldControl=s.first),Re(s=Pe())&&(r._prefixChildren=s),Re(s=Pe())&&(r._suffixChildren=s),Re(s=Pe())&&(r._errorChildren=s),Re(s=Pe())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(1&i&&(vt(rye,5),vt(oye,5),vt(sye,5),vt(AH,5),vt(PH,5),vt(RH,5)),2&i){let o;Re(o=Pe())&&(r._textField=o.first),Re(o=Pe())&&(r._iconPrefixContainer=o.first),Re(o=Pe())&&(r._textPrefixContainer=o.first),Re(o=Pe())&&(r._floatingLabel=o.first),Re(o=Pe())&&(r._notchedOutline=o.first),Re(o=Pe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){2&i&<("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:[it([{provide:c1,useExisting:t},{provide:IH,useExisting:t}]),St],ngContentSelectors:cye,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(i,r){if(1&i){const o=Se();Mn(aye),q(0,uye,1,1,"ng-template",null,0,tm),_(2,"div",4,1),U("click",function(a){return j(o),G(r._control.onContainerClick(a))}),q(4,hye,1,0,"div",5),_(5,"div",6),q(6,pye,2,2,"div",7)(7,gye,3,0,"div",8)(8,_ye,3,0,"div",9),_(9,"div",10),q(10,vye,1,1,null,11),ct(11),b(),q(12,yye,2,0,"div",12)(13,xye,2,0,"div",13),b(),q(14,wye,1,0,"div",14),b(),_(15,"div",15),q(16,kye,2,1)(17,Tye,5,2),b()}if(2&i){let o;y(2),lt("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),y(2),_n(4,r._hasOutline()||r._control.disabled?-1:4),y(2),_n(6,r._hasOutline()?6:-1),y(),_n(7,r._hasIconPrefix?7:-1),y(),_n(8,r._hasTextPrefix?8:-1),y(2),_n(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),y(2),_n(12,r._hasTextSuffix?12:-1),y(),_n(13,r._hasIconSuffix?13:-1),y(),_n(14,r._hasOutline()?-1:14),y(),lt("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),y(),_n(16,"error"===(o=r._getDisplayedMessages())?16:"hint"===o?17:-1)}},dependencies:[AH,PH,Nx,RH,Zu],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:[Aye.transitionMessages]},changeDetection:0})}return t})(),l1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,KI,Ft]})}return t})();const Fye=["panel"],Oye=["*"];function Nye(t,n){if(1&t){const e=Se();_(0,"div",1,0),U("@panelAnimation.done",function(r){return j(e),G(R()._animationDone.next(r))}),ct(2),b()}if(2&t){const e=n.id,i=R();T("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),_t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Lye=Yn("panelAnimation",[bn("void, hidden",We({opacity:0,transform:"scaleY(0.8)"})),Xt(":enter, hidden => visible",[l2([qt("0.03s linear",We({opacity:1})),qt("0.12s cubic-bezier(0, 0, 0.2, 1)",We({transform:"scaleY(1)"}))])]),Xt(":leave, visible => hidden",[qt("0.075s linear",We({opacity:0}))])]);let Vye=0;class Bye{constructor(n,e){this.source=n,this.option=e}}const LH=new J("mat-autocomplete-default-options",{providedIn:"root",factory:function Uye(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let zye=(()=>{class t{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}set classList(e){this._classList=e&&e.length?function Gge(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,i,r,o){this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=Wt.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Ce,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+Vye++,this.inertGroups=o?.SAFARI||!1,this.autoActiveFirstOption=!!r.autoActiveFirstOption,this.autoSelectActiveOption=!!r.autoSelectActiveOption,this.requireSelection=!!r.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new f9(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new Bye(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(He),w(LH),w(Ln))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,fd,5),ln(o,r2,5)),2&i){let s;Re(s=Pe())&&(r.options=s),Re(s=Pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(1&i&&(vt(Gn,7),vt(Fye,5)),2&i){let o;Re(o=Pe())&&(r.template=o.first),Re(o=Pe())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[W.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",Ue],autoSelectActiveOption:[W.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",Ue],requireSelection:[W.HasDecoratorInputTransform,"requireSelection","requireSelection",Ue],panelWidth:"panelWidth",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],classList:[W.None,"class","classList"],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ue]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[it([{provide:n2,useExisting:t}]),Kt,St],ngContentSelectors:Oye,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"]],template:function(i,r){1&i&&(Mn(),q(0,Nye,3,5,"ng-template"))},dependencies:[Da],styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Lye]},changeDetection:0})}return t})();const Hye={provide:Rr,useExisting:an(()=>BH),multi:!0},VH=new J("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),$ye={provide:VH,deps:[Ui],useFactory:function jye(t){return()=>t.scrollStrategies.reposition()}};let BH=(()=>{class t{constructor(e,i,r,o,s,a,c,l,d,u,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=c,this._formField=l,this._document=d,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Wt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=cm(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Wr(f),Zi(()=>Ci(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(Nn(1),Zi(()=>this.optionSelections))}),this._handlePanelKeydown=f=>{(27===f.keyCode&&!To(f)||38===f.keyCode&&To(f,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),f.stopPropagation(),f.preventDefault())},this._trackedModal=null,this._scrollStrategy=a}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&Sm(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ci(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(un(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(un(()=>this._overlayAttached)):st()).pipe(mt(e=>e instanceof R9?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ci(Ra(this._document,"click"),Ra(this._document,"auxclick"),Ra(this._document,"touchend")).pipe(un(e=>{const i=Vs(e),r=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=To(e);if(27===i&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if("number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),r){if(this.panelOpen&&!this.autocomplete.requireSelection){const o=this.autocomplete.options?.find(s=>s.selected);o&&r!==this._getDisplayValue(o.value)&&o.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===e.target){const o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ci(this._zone.onStable.pipe(Nn(1)),this.autocomplete.options.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),v2(0))).pipe(Zi(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),Nn(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){const i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){const i=this._getDisplayValue(e);null==e&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Nn(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){this._attachOverlay(e),this._floatLabel(),this._trackedModal&&mw(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(e){let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new sl(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Pm({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&Sm(this._trackedModal,"aria-owns",i),mw(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Sm(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ui),w(di),w(Be),w(gn),w(VH),w(oo,8),w(c1,9),w(xt,8),w(cl),w(LH,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){1&i&&U("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(s){return r._handleInput(s)})("keydown",function(s){return r._handleKeydown(s)})("click",function(){return r._handleClick()}),2&i&&_t("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||null==r.autocomplete?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[W.None,"matAutocomplete","autocomplete"],position:[W.None,"matAutocompletePosition","position"],connectedTo:[W.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[W.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[W.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",Ue]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[it([Hye]),Kt,Un]})}return t})(),Gye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[$ye],imports:[ju,kw,Ft,ac,ll,kw,Ft]})}return t})();const UH=Ma({passive:!0});let Wye=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return fs;const i=Bi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Me,s="cdk-text-field-autofilled",a=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,UH),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,UH)}}),o}stopMonitoring(e){const i=Bi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const Qye=new J("MAT_INPUT_VALUE_ACCESSOR"),Kye=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Xye=0,kd=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Mr(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(Nm.required)??!1}set required(e){this._required=Mr(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&JU().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=Mr(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,c,l,d,u){this._elementRef=e,this._platform=i,this.ngControl=r,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+Xye++,this.focused=!1,this.stateChanges=new Me,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(m=>JU().has(m)),this._iOSKeyupListener=m=>{const g=m.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new t2(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Kye.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.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(i){return new(i||t)(w(He),w(Ln),w(gc,10),w(Xu,8),w(wd,8),w(T9),w(Qye,10),w(Wye),w(Be),w(c1,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){1&i&&U("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&i&&(rc("id",r.id)("disabled",r.disabled)("required",r.required),_t("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),lt("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:[W.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[it([{provide:a1,useExisting:t}]),Un]})}return t})(),Yye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,l1,l1,qye,Ft]})}return t})();function Zye(t,n){if(1&t&&(_(0,"mat-label"),k(1),b()),2&t){const e=R();y(),Ke(e.binding.title)}}function Jye(t,n){if(1&t){const e=Se();_(0,"button",7),U("click",function(){return j(e),G(R().clearInput())}),_(1,"mat-icon"),k(2,"close"),b()()}}function exe(t,n){1&t&&(_(0,"mat-option",8),xe(1,"mat-spinner",9),b())}function txe(t,n){if(1&t&&(_(0,"mat-option",10)(1,"span",11),k(2),b(),k(3),b()),2&t){const e=n.$implicit;T("value",e),y(2),Ke(e.code),y(),Je("",e.display," ")}}let u0=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Ce,this.formControl=new Cve,this.loading=!1,this.selectedConcept={},this.stateChanges=new Me,this.focused=!1,this.ngControl=null,this.errorState=!1,this.controlType="app-autocomplete-binding",this.id="app-autocomplete-binding-"+t.nextId++,this.describedBy="",this.onChange=()=>{},this.onTouched=()=>{}}get empty(){return!this.formControl.value}setDescribedByIds(e){this.describedBy=e.join(" ")}onContainerClick(e){}writeValue(e){this.formControl.setValue(e&&"object"==typeof e&&e.display?e.display:e,{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnChanges(e){e.term&&(this.term=e.term.currentValue,this.formControl.setValue(this.term&&"object"==typeof this.term&&this.term.display?this.term.display:this.term))}ngOnInit(){this.autoFilter=this.formControl.valueChanges.pipe(nl(300),il(),Zi(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):st([])),Vi(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},this.selectionChange.emit(this.selectedConcept)}change(e){const i=e?.option?.value;i&&(this.optionSelected({code:i.code,display:i.display}),this.formControl.setValue(i.display))}static#t=this.\u0275fac=function(i){return new(i||t)(w(so))};static#n=this.\u0275cmp=ze({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[it([{provide:Rr,useExisting:an(()=>t),multi:!0},{provide:a1,useExisting:t}]),Un],decls:11,vars:10,consts:[["auto","matAutocomplete"],[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["disabled","","class","loading",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["disabled","",1,"loading"],["diameter","35"],[3,"value"],[1,"code"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-form-field"),q(1,Zye,2,1,"mat-label",1),xe(2,"input",2),_(3,"mat-hint"),k(4),b(),q(5,Jye,3,0,"button",3),_(6,"mat-autocomplete",4,0),U("optionSelected",function(a){return j(o),G(r.change(a))}),q(8,exe,2,0,"mat-option",5)(9,txe,4,3,"mat-option",6),wo(10,"async"),b()()}if(2&i){let o;const s=jt(7);y(),T("ngIf",r.binding.title),y(),em("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),T("formControl",r.formControl)("matAutocomplete",s),y(2),Ke(r.binding.note),y(),T("ngIf",r.formControl.value),y(3),T("ngIf",r.loading),y(),T("ngForOf",null==(o=oc(10,8,r.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[ro,$r,ia,So,Fa,Bs,Zu,DH,zye,fd,BH,md,kd,ra,Yo,t1,FD],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();function nxe(t,n){1&t&&xe(0,"mat-spinner",20)}function ixe(t,n){1&t&&(_(0,"th",21),k(1," Date "),b())}function rxe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"date"),b()),2&t){const e=n.$implicit;y(),Je(" ",Au(2,1,e.date,"yyyy-MM-dd")," ")}}function oxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function sxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.code," ")}}function axe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function cxe(t,n){1&t&&(_(0,"span",24),k(1,"Allergy / Intolerance condition"),b())}function lxe(t,n){if(1&t&&(_(0,"td",22),q(1,cxe,2,0,"span",23),k(2),b()),2&t){const e=n.$implicit;y(),T("ngIf",e.allergy),y(),Je(" ",e.display," ")}}function dxe(t,n){1&t&&xe(0,"tr",25)}function uxe(t,n){1&t&&xe(0,"tr",26)}function hxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function fxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.code," ")}}function mxe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function pxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.display," ")}}function gxe(t,n){1&t&&xe(0,"tr",25)}function _xe(t,n){1&t&&xe(0,"tr",26)}const bxe=[],vxe=[];let zH=(()=>{class t{constructor(e){this.terminologyService=e,this.problemBinding={ecl:"< 404684003 |Clinical finding|",title:"Search..."},this.eclProblem="< 404684003 |Clinical finding|",this.term="",this.displayedColumns=["date","code","display"],this.dataToDisplay=[...bxe],this.dataSource=new yxe(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...vxe],this.dataSource2=new xxe(this.dataToDisplay2)}updateProblem(e){var i=this;return me(function*(){i.selectedProblemSct=e})()}addProblem(e){var i=this;return me(function*(){if(i.selectedProblemSct||e){let r=e||i.selectedProblemSct;if(i.loading=!0,i.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;i.dataToDisplay2.find(s=>s.code===o.code)||(i.dataToDisplay2=[...i.dataToDisplay2,o],i.dataSource2.setData(i.dataToDisplay2))}else(yield i.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,i.addAllergySubstanceToList(r));i.dataToDisplay.find(o=>o.code===r.code)||(i.dataToDisplay=[...i.dataToDisplay,r],i.dataSource.setData(i.dataToDisplay)),i.loading=!1,i.term=""}})()}addAllergySubstanceToList(e){var i=this;return me(function*(){(yield i.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{i.dataToDisplay2.find(s=>s.code===o.code)||(i.dataToDisplay2=[...i.dataToDisplay2,o],i.dataSource2.setData(i.dataToDisplay2))})})()}getAllergyData(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(mt(o=>o)))})()}getAllergySubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(mt(o=>o)))})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["substancePopoverMenu","matMenu"],["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"selectionChange","binding","term"],["mat-flat-button","","color","primary",3,"click"],["diameter","35",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["matColumnDef","display"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35"],["mat-header-cell",""],["mat-cell",""],["class","tag pill",4,"ngIf"],[1,"tag","pill"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"h4"),k(4,"Problem List "),_(5,"button",4)(6,"mat-icon"),k(7,"info"),b()(),_(8,"mat-menu",null,0)(10,"span",5),U("click",function(a){return j(o),G(a.stopPropagation())}),_(11,"h4"),k(12,"Problem list"),b(),_(13,"p"),k(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),b(),_(15,"p"),k(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),b(),_(17,"p"),k(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),b(),_(19,"p"),k(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),b(),_(21,"p"),k(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),b(),_(23,"p"),k(24,"For more information check the "),_(25,"a",6),k(26,"Implementation Guide"),b(),k(27," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),U("selectionChange",function(a){return j(o),G(r.updateProblem(a))}),b()(),_(31,"div",8)(32,"button",10),U("click",function(){return j(o),G(r.addProblem())}),k(33,"Add problem"),b()(),_(34,"div",8),q(35,nxe,1,0,"mat-spinner",11),b()(),_(36,"table",12),zt(37,13),q(38,ixe,2,0,"th",14)(39,rxe,3,4,"td",15),Ht(),zt(40,16),q(41,oxe,2,0,"th",14)(42,sxe,2,1,"td",15),Ht(),zt(43,17),q(44,axe,2,0,"th",14)(45,lxe,3,2,"td",15),Ht(),q(46,dxe,1,0,"tr",18)(47,uxe,1,0,"tr",19),b()(),_(48,"div",3)(49,"h4"),k(50,"Substances the patient is allergic to:"),b(),_(51,"table",12),zt(52,16),q(53,hxe,2,0,"th",14)(54,fxe,2,1,"td",15),Ht(),zt(55,17),q(56,mxe,2,0,"th",14)(57,pxe,2,1,"td",15),Ht(),q(58,gxe,1,0,"tr",18)(59,_xe,1,0,"tr",19),b()()()()}if(2&i){const o=jt(9);y(5),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(20),T("binding",r.problemBinding)("term",r.term),y(5),T("ngIf",r.loading),y(),T("dataSource",r.dataSource),y(10),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(4),T("dataSource",r.dataSource2),y(7),T("matHeaderRowDef",r.displayedColumns2),y(),T("matRowDefColumns",r.displayedColumns2)}},dependencies:[$r,Eo,ia,So,Pa,mc,Wu,md,x2,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,u0,Ou],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();class yxe extends nw{constructor(n){super(),this._dataStream=new iw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}class xxe extends nw{constructor(n){super(),this._dataStream=new iw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}const J2=["*"];function wxe(t,n){1&t&&ct(0)}const kxe=["tabListContainer"],Cxe=["tabList"],Txe=["tabListInner"],Exe=["nextPaginator"],Sxe=["previousPaginator"],Dxe=t=>({animationDuration:t}),Ixe=(t,n)=>({value:t,params:n});function Axe(t,n){}const Mxe=["tabBodyWrapper"],Rxe=["tabHeader"];function Pxe(t,n){}function Fxe(t,n){1&t&&q(0,Pxe,0,0,"ng-template",12),2&t&&T("cdkPortalOutlet",R().$implicit.templateLabel)}function Oxe(t,n){1&t&&k(0),2&t&&Ke(R().$implicit.textLabel)}function Nxe(t,n){if(1&t){const e=Se();_(0,"div",7,2),U("click",function(){const r=j(e),o=r.$implicit,s=r.$index,a=R(),c=jt(1);return G(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const o=j(e).$index;return G(R()._tabFocusChanged(r,o))}),xe(2,"span",8)(3,"div",9),_(4,"span",10)(5,"span",11),q(6,Fxe,1,1,null,12)(7,Oxe,1,1),b()()()}if(2&t){const e=n.$implicit,i=n.$index,r=jt(1),o=R();lt("mdc-tab--active",o.selectedIndex===i),T("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),_t("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),y(3),T("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),y(3),_n(6,e.templateLabel?6:7)}}function Lxe(t,n){1&t&&ct(0)}function Vxe(t,n){if(1&t){const e=Se();_(0,"mat-tab-body",13),U("_onCentered",function(){return j(e),G(R()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return j(e),G(R()._setTabBodyWrapperHeight(r))}),b()}if(2&t){const e=n.$implicit,i=n.$index,r=R();lt("mat-mdc-tab-body-active",r.selectedIndex===i),T("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),_t("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}const Bxe=new J("MatTabContent");let Uxe=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[it([{provide:Bxe,useExisting:t}])]})}return t})();const zxe=new J("MatTabLabel"),HH=new J("MAT_TAB");let Hxe=(()=>{class t extends o0e{constructor(e,i,r){super(e,i),this._closestTab=r}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(di),w(HH,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[it([{provide:zxe,useExisting:t}]),tt]})}return t})();const jH=new J("MAT_TAB_GROUP");let d1=(()=>{class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new Me,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 sl(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(jH,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Hxe,5),ln(o,Uxe,7,Gn)),2&i){let s;Re(s=Pe())&&(r.templateLabel=s.first),Re(s=Pe())&&(r._explicitContent=s.first)}},viewQuery:function(i,r){if(1&i&&vt(Gn,7),2&i){let o;Re(o=Pe())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],textLabel:[W.None,"label","textLabel"],ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[it([{provide:HH,useExisting:t}]),Kt,Un,St],ngContentSelectors:J2,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),q(0,wxe,1,0,"ng-template"))},encapsulation:2})}return t})();const eA="mdc-tab-indicator--active",$H="mdc-tab-indicator--no-transition";class jxe{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}let $xe=(()=>{class t{constructor(){this._elementRef=he(He),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){const i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(eA);const r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add($H),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove($H),i.classList.add(eA),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(eA)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,inputs:{fitInkBarToContent:[W.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ue]},features:[Kt]})}return t})(),GH=(()=>{class t extends $xe{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(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){2&i&&(_t("aria-disabled",!!r.disabled),lt("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},standalone:!0,features:[Kt,tt]})}return t})();const WH=Ma({passive:!0});let Qxe=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,s.runOutsideAngular(()=>{Ra(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ra(this._previousPaginator.nativeElement,"touchstart",WH).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ra(this._nextPaginator.nativeElement,"touchstart",WH).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:st("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ZI(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Nn(1)).subscribe(r),Ci(e,i,this._items.changes,this._itemsResized()).pipe(Tt(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(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?fs:this._items.changes.pipe(Wr(this._items),Zi(e=>new jn(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),QI(1),un(e=>e.some(i=>i.contentRect.width>0&&i.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(!To(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,c;"ltr"==this._getLayoutDirection()?(a=o,c=a+s):(c=this._tabListInner.nativeElement.offsetWidth-o,a=c-s);const l=this.scrollDistance,d=this.scrollDistance+r;ad&&(this.scrollDistance+=Math.min(c-d,a-l))}_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,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Y_(650,100).pipe(Tt(Ci(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(cl),w(oo,8),w(Be),w(Ln),w(pi,8))};static#t=this.\u0275dir=ce({type:t,inputs:{disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Ue],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Xi]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Kt]})}return t})(),Kxe=(()=>{class t extends Qxe{constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new jxe(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(cl),w(oo,8),w(Be),w(Ln),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(1&i&&ln(o,GH,4),2&i){let s;Re(s=Pe())&&(r._items=s)}},viewQuery:function(i,r){if(1&i&&(vt(kxe,7),vt(Cxe,7),vt(Txe,7),vt(Exe,5),vt(Sxe,5)),2&i){let o;Re(o=Pe())&&(r._tabListContainer=o.first),Re(o=Pe())&&(r._tabList=o.first),Re(o=Pe())&&(r._tabListInner=o.first),Re(o=Pe())&&(r._nextPaginator=o.first),Re(o=Pe())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){2&i&<("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue]},standalone:!0,features:[Kt,tt,St],ngContentSelectors:J2,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(i,r){if(1&i){const o=Se();Mn(),_(0,"button",5,0),U("click",function(){return j(o),G(r._handlePaginatorClick("before"))})("mousedown",function(a){return j(o),G(r._handlePaginatorPress("before",a))})("touchend",function(){return j(o),G(r._stopInterval())}),xe(2,"div",6),b(),_(3,"div",7,1),U("keydown",function(a){return j(o),G(r._handleKeydown(a))}),_(5,"div",8,2),U("cdkObserveContent",function(){return j(o),G(r._onContentChanges())}),_(7,"div",9,3),ct(9),b()()(),_(10,"button",10,4),U("mousedown",function(a){return j(o),G(r._handlePaginatorPress("after",a))})("click",function(){return j(o),G(r._handlePaginatorClick("after"))})("touchend",function(){return j(o),G(r._stopInterval())}),xe(12,"div",6),b()}2&i&&(lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),T("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),y(3),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),y(7),lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),T("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[rl,r9],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})}return t})();const Xxe=new J("MAT_TABS_CONFIG"),Yxe={translateTab:Yn("translateTab",[bn("center, void, left-origin-center, right-origin-center",We({transform:"none"})),bn("left",We({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bn("right",We({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Xt("* => left, * => right, left => center, right => center",qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Xt("void => left-origin-center",[We({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Xt("void => right-origin-center",[We({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Zxe=(()=>{class t extends al{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=Wt.EMPTY,this._leavingSub=Wt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wr(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(i){return new(i||t)(w(wu),w(di),w(an(()=>qH)),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[tt]})}return t})(),qH=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Wt.EMPTY,this._translateTabComplete=new Me,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(il((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.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 i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&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._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(oo,8),w(gn))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(1&i&&vt(al,5),2&i){let o;Re(o=Pe())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[W.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[St],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(1&i){const o=Se();_(0,"div",1,0),U("@translateTab.start",function(a){return j(o),G(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return j(o),G(r._translateTabComplete.next(a))}),q(2,Axe,0,0,"ng-template",2),b()}2&i&&T("@translateTab",JS(3,Ixe,r._position,Ea(1,Dxe,r.animationDuration)))},dependencies:[Zxe,Aw],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:[Yxe.translateTab]}})}return t})(),Jxe=0,h0=(()=>{class t{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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Gl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Wt.EMPTY,this._tabLabelSubscription=Wt.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 Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._isServer=!he(Ln).isBrowser,this._groupId=Jxe++,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 i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.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 i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Wr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new twe;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ci(...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 i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(Xxe,8),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(1&i&&ln(o,d1,5),2&i){let s;Re(s=Pe())&&(r._allTabs=s)}},viewQuery:function(i,r){if(1&i&&(vt(Mxe,5),vt(Rxe,5)),2&i){let o;Re(o=Pe())&&(r._tabBodyWrapper=o.first),Re(o=Pe())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){2&i&&(Ys("mat-"+(r.color||"primary")),Ki("--mat-tab-animation-duration",r.animationDuration),lt("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:[W.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ue],stretchTabs:[W.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",Ue],dynamicHeight:[W.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",Ue],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Xi],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[W.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",Xi],disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],preserveContent:[W.HasDecoratorInputTransform,"preserveContent","preserveContent",Ue],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[it([{provide:jH,useExisting:t}]),Kt,St],ngContentSelectors:J2,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","ngClass","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","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","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"mat-tab-header",3,0),U("indexFocused",function(a){return j(o),G(r._focusChanged(a))})("selectFocusedIndex",function(a){return j(o),G(r.selectedIndex=a)}),HS(2,Nxe,8,16,"div",4,zS),b(),q(4,Lxe,1,0),_(5,"div",5,1),HS(7,Vxe,1,12,"mat-tab-body",6,zS),b()}2&i&&(T("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),y(2),jS(r._tabs),y(2),_n(4,r._isServer?4:-1),y(),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),y(2),jS(r._tabs))},dependencies:[Kxe,GH,p_e,Da,rl,al,qH],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})}return t})();class twe{}let nwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();var _c=mo(578);class iwe{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let tA=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new iwe(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const rwe=new J("HighlightJs-Config");let u1=(()=>{class t{constructor(e,i,r,o,s){this.el=e,this.ngModel=i,this.doc=r,this.ngZone=s,this.lang="html",this.mode="simple",Object.assign(this,o)}escapeHTML(e){return(e||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const e=this.el.nativeElement,i=this.code||""+e.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const r="simple"===this.mode;r?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=e.parentNode,this.parentEl.insertBefore(this.codeEl,e.nextSibling)):(this.parentEl=e,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i,hljs.configure({...this.options}),r?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(o=>{hljs.highlightElement(o)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(e=>{this.code=this.escapeHTML(e),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return t.\u0275fac=function(e){return new(e||t)(w(He),w(_s,8),w(xt),w(rwe,8),w(Be))},t.\u0275dir=ce({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,i){2&e&&Ki("display","simple"===i.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),owe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ct({type:t}),t.\u0275inj=yt({imports:[Z2]}),t})();const swe=["trigger"],awe=["panel"],cwe=[[["mat-select-trigger"]],"*"],lwe=["mat-select-trigger","*"];function dwe(t,n){if(1&t&&(_(0,"span",4),k(1),b()),2&t){const e=R();y(),Ke(e.placeholder)}}function uwe(t,n){1&t&&ct(0)}function hwe(t,n){if(1&t&&(_(0,"span",11),k(1),b()),2&t){const e=R(2);y(),Ke(e.triggerValue)}}function fwe(t,n){if(1&t&&(_(0,"span",10),q(1,uwe,1,0)(2,hwe,2,1),b()),2&t){const e=R();y(),_n(1,e.customTrigger?1:2)}}function mwe(t,n){if(1&t){const e=Se();_(0,"div",12,1),U("@transformPanel.done",function(r){return j(e),G(R()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return j(e),G(R()._handleKeydown(r))}),ct(2,1),b()}if(2&t){const e=R();(function UV(t,n,e){Ta(Ds,ic,jf(be(),t,n,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),_t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const pwe={transformPanelWrap:Yn("transformPanelWrap",[Xt("* => void",Ew("@transformPanel",[Tw()],{optional:!0}))]),transformPanel:Yn("transformPanel",[bn("void",We({opacity:0,transform:"scale(1, 0.8)"})),Xt("void => showing",qt("120ms cubic-bezier(0, 0, 0.2, 1)",We({opacity:1,transform:"scale(1, 1)"}))),Xt("* => void",qt("100ms linear",We({opacity:0})))])};let QH=0;const KH=new J("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),_we=new J("MAT_SELECT_CONFIG"),bwe={provide:KH,deps:[Ui],useFactory:function gwe(t){return()=>t.scrollStrategies.reposition()}},vwe=new J("MatSelectTrigger");class ywe{constructor(n,e){this.source=n,this.value=e}}let f0=(()=>{class t{_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=P9(e,this.options,this.optionGroups),s=i._getHostElement();r.scrollTop=0===e&&1===o?0:F9(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ywe(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(Nm.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){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,i,r,o,s,a,c,l,d,u,h,f,m,g){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=g,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=(p,v)=>p===v,this._uid="mat-select-"+QH++,this._triggerAriaLabelledBy=null,this._destroy=new Me,this.stateChanges=new Me,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QH++,this._panelDoneAnimatingStream=new Me,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 Me,this.optionSelectionChanges=cm(()=>{const p=this.options;return p?p.changes.pipe(Wr(p),Zi(()=>Ci(...p.map(v=>v.onSelectionChange)))):this._initialized.pipe(Zi(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(un(p=>p),mt(()=>{})),this._closedStream=this.openedChange.pipe(un(p=>!p),mt(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,this._trackedModal=null,this._skipPredicate=p=>!this.panelOpen&&p.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._errorStateTracker=new t2(o,u,l,c,this.stateChanges),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new PI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(il(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Tt(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(Tt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Wr(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.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 i=`${this.id}-panel`;this._trackedModal&&Sm(this._trackedModal,"aria-owns",i),mw(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Sm(this._trackedModal,"aria-owns",`${this.id}-panel`),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(i=>i.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 i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!To(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||To(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.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(Nn(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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=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 i&&this._selectionModel.select(i),i}_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 g2?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 f9(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=Ci(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ci(...this.options.map(i=>i._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&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((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+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 i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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(i){return new(i||t)(w(cl),w(gn),w(Be),w(T9),w(He),w(oo,8),w(Xu,8),w(wd,8),w(c1,8),w(gc,10),Ms("tabindex"),w(KH),w(b9),w(_we,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,vwe,5),ln(o,fd,5),ln(o,r2,5)),2&i){let s;Re(s=Pe())&&(r.customTrigger=s.first),Re(s=Pe())&&(r.options=s),Re(s=Pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(1&i&&(vt(swe,5),vt(awe,5),vt(rz,5)),2&i){let o;Re(o=Pe())&&(r.trigger=o.first),Re(o=Pe())&&(r.panel=o.first),Re(o=Pe())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){1&i&&U("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&i&&(_t("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()),lt("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:[W.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ue],placeholder:"placeholder",required:[W.HasDecoratorInputTransform,"required","required",Ue],multiple:[W.HasDecoratorInputTransform,"multiple","multiple",Ue],disableOptionCentering:[W.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",Ue],compareWith:"compareWith",value:"value",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[W.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",Xi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[it([{provide:a1,useExisting:t},{provide:n2,useExisting:t}]),Kt,Un,St],ngContentSelectors:lwe,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(i,r){if(1&i){const o=Se();Mn(cwe),_(0,"div",2,0),U("click",function(){return j(o),G(r.open())}),_(3,"div",3),q(4,dwe,2,1,"span",4)(5,fwe,3,1),b(),_(6,"div",5)(7,"div",6),jc(),_(8,"svg",7),xe(9,"path",8),b()()()(),q(10,mwe,3,9,"ng-template",9),U("backdropClick",function(){return j(o),G(r.close())})("attach",function(){return j(o),G(r._onAttached())})("detach",function(){return j(o),G(r.close())})}if(2&i){const o=jt(1);y(3),_t("id",r._valueId),y(),_n(4,r.empty?4:5),y(6),T("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[g2,rz,Da],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:[pwe.transformPanel]},changeDetection:0})}return t})(),xwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[bwe],imports:[ac,ju,kw,Ft,ll,l1,kw,Ft]})}return t})();const wwe=["tooltip"],YH=new J("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition({scrollThrottle:20})}}),Cwe={provide:YH,deps:[Ui],useFactory:function kwe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Ewe=new J("mat-tooltip-default-options",{providedIn:"root",factory:function Twe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ZH="tooltip-panel",JH=Ma({passive:!0});let Ju=(()=>{class t{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=Mr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Mr(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=hd(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=hd(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,i,r,o,s,a,c,l,d,u,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=c,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Mwe,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Me,this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(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(([i,r])=>{e.removeEventListener(i,r,JH)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Mm(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof He)return this._overlayRef;this._detach()}const i=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(i);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${ZH}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!To(o)&&(o.preventDefault(),o.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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.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,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nn(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const c=`${this._cssClassPrefix}-${ZH}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.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",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,JH)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ui),w(He),w(Z_),w(di),w(Be),w(Ln),w(d9),w(ta),w(YH),w(oo),w(Ewe,8),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[W.None,"matTooltipPosition","position"],positionAtOrigin:[W.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[W.None,"matTooltipDisabled","disabled"],showDelay:[W.None,"matTooltipShowDelay","showDelay"],hideDelay:[W.None,"matTooltipHideDelay","hideDelay"],touchGestures:[W.None,"matTooltipTouchGestures","touchGestures"],message:[W.None,"matTooltip","message"],tooltipClass:[W.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return t})(),Mwe=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Me,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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(He),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&vt(wwe,7),2&i){let o;Re(o=Pe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,r){1&i&&U("mouseleave",function(s){return r._handleMouseLeave(s)}),2&i&&Ki("zoom",r.isVisible()?1:null)},standalone:!0,features:[St],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(i,r){if(1&i){const o=Se();_(0,"div",1,0),U("animationend",function(a){return j(o),G(r._handleAnimationEnd(a))}),_(2,"div",2),k(3),b()()}2&i&&(lt("mdc-tooltip--multiline",r._isMultiline),T("ngClass",r.tooltipClass),y(3),Ke(r.message))},dependencies:[Da],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})}return t})(),Rwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Cwe],imports:[w9,ac,ju,Ft,Ft,ll]})}return t})();const Pwe=["switch"],Fwe=["*"];function Owe(t,n){1&t&&(_(0,"div",10),jc(),_(1,"svg",12),xe(2,"path",13),b(),_(3,"svg",14),xe(4,"path",15),b()())}const Nwe=new J("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Lwe={provide:Rr,useExisting:an(()=>nA),multi:!0};class e7{constructor(n,e){this.source=n,this.checked=e}}let Vwe=0,nA=(()=>{class t{_createChangeEvent(e){return new e7(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=s,this._onChange=c=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(o)||0,this.color=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++Vwe,this.hideIcon=s.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new e7(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ta),w(gn),Ms("tabindex"),w(Nwe),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(1&i&&vt(Pwe,5),2&i){let o;Re(o=Pe())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ys(r.color?"mat-"+r.color:""),lt("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],required:[W.HasDecoratorInputTransform,"required","required",Ue],color:"color",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],hideIcon:[W.HasDecoratorInputTransform,"hideIcon","hideIcon",Ue]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[it([Lwe,{provide:hr,useExisting:t,multi:!0}]),Kt,Un,St],ngContentSelectors:Fwe,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"div",1)(1,"button",2,0),U("click",function(){return j(o),G(r._handleClick())}),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),xe(7,"div",7),b(),_(8,"div",8),xe(9,"div",9),b(),q(10,Owe,5,0,"div",10),b()()(),_(11,"label",11),U("click",function(a){return j(o),G(a.stopPropagation())}),ct(12),b()()}if(2&i){const o=jt(2);T("labelPosition",r.labelPosition),y(),lt("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),T("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled),_t("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked),y(8),T("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),y(),_n(10,r.hideIcon?-1:10),y(),T("for",r.buttonId),_t("id",r._labelId)}},dependencies:[rl,a2],styles:['.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);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}return t})(),zwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[nA,Ft,Ft]})}return t})();function Hwe(t,n){if(1&t){const e=Se();_(0,"button",14),U("click",function(){j(e);const r=R().index;return G(R().removeReaction(r))}),_(1,"mat-icon"),k(2,"close"),b()()}}function jwe(t,n){if(1&t){const e=Se();_(0,"mat-option",15),U("click",function(){const r=j(e).$implicit,o=R().$implicit;return G(R().reactionSeveritySelected(o,r))}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function $we(t,n){if(1&t){const e=Se();_(0,"div",4)(1,"div",5),q(2,Hwe,3,0,"button",6),b(),_(3,"div",7)(4,"div",8)(5,"app-autocomplete-binding",9),U("selectionChange",function(r){const o=j(e).$implicit;return G(R().reactionManifestationSelected(o,r))}),b()(),_(6,"button",10)(7,"mat-icon"),k(8,"info"),b()(),_(9,"mat-menu",null,0)(11,"span",11),U("click",function(r){return j(e),G(r.stopPropagation())}),_(12,"p"),k(13,"Terminology binding:"),b(),_(14,"pre"),k(15),b()()()(),_(16,"mat-form-field",12)(17,"mat-label"),k(18,"Reaction Severity"),b(),_(19,"mat-select"),q(20,jwe,2,2,"mat-option",13),b()(),_(21,"div",7)(22,"div",8)(23,"app-autocomplete-binding",9),U("selectionChange",function(r){const o=j(e).$implicit;return G(R().reactionRouteSelected(o,r))}),b()(),_(24,"button",10)(25,"mat-icon"),k(26,"info"),b()(),_(27,"mat-menu",null,1)(29,"span",11),U("click",function(r){return j(e),G(r.stopPropagation())}),_(30,"p"),k(31,"Terminology binding:"),b(),_(32,"pre"),k(33),b()()()()()}if(2&t){const e=n.index,i=jt(10),r=jt(28),o=R();y(2),T("ngIf",e>0),y(3),T("binding",o.reactionManifestationBinding),y(),T("matMenuTriggerFor",i),y(5),T("disableRipple",!0),y(4),Ke(o.reactionManifestationBinding.ecl),y(5),T("ngForOf",o.severityOptions),y(3),T("binding",o.routeBinding),y(),T("matMenuTriggerFor",r),y(5),T("disableRipple",!0),y(4),Ke(o.routeBinding.ecl)}}let Gwe=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Ce,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,i){e.manifestation=i,this.newManifestation.emit(i),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,i){e.severity=i,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,i){e.route=i,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[it([{provide:Rr,useExisting:an(()=>t),multi:!0}])],decls:5,vars:1,consts:[["reactionPopoverMenu","matMenu"],["routePopoverMenu","matMenu"],["class","reaction",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Add reaction",3,"click"],[1,"reaction"],[1,"button-container"],["mat-icon-button","","color","primary","class","remove","matTooltip","Remove reaction",3,"click",4,"ngIf"],[1,"row-centered"],[1,"small-form-field"],[3,"selectionChange","binding"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click","disableRipple"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"click","value"]],template:function(i,r){1&i&&(q(0,$we,34,10,"div",2),_(1,"div")(2,"button",3),U("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),k(4,"add"),b()()()),2&i&&T("ngForOf",r.reactions)},dependencies:[ro,$r,ia,So,Pa,mc,Wu,Fa,Bs,fd,f0,Ju,u0],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]})}return t})();const Wwe=()=>({});function qwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return j(e),G(R().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Qwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return j(e),G(R().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Kwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return j(e),G(R().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Xwe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),U("selectionChange",function(r){return j(e),G(R().substanceSelected(r,!0))}),b()}if(2&t){const e=R();T("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function Ywe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),U("selectionChange",function(r){return j(e),G(R().substanceSelected(r))}),b()}if(2&t){const e=R();T("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function Zwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=R();y(),Ke(e.substanceBinding.ecl)}}function Jwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=R();y(),Ke(e.refinedSubstanceBinding.ecl)}}function e1e(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return j(e),G(R().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function t1e(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return j(e),G(R().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}let n1e=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this._snackBar=r,this.newProblem=new Ce,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new gs(this.selectedIntoleranceCategories),this.criticalityOptions=[{code:"low",display:"Low Risk"},{code:"high",display:"High Risk"},{code:"unable-to-assess",display:"Unable to Assess Risk"}],this.selectedCriticality=null,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.codeBinding={ecl:"<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",title:"Allergy/Intolerance by propensity"},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.substanceBinding={ecl:"<<105590001 | Substance (substance) | OR <<373873005 | Pharmaceutical / biologic product (product) |",title:"Allergy/Intolerance substance or product"},this.refinedSubstanceBinding={ecl:"<<105590001 | Substance (substance) |",title:"Allergy/Intolerance substance based on propensity"},this.selectedSubstanceTerm="",this.selectedSubstance=null,this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm="",this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.selectedRoute=null,this.selectedRouteTerm="",this.outputAllergyBase={resourceType:"AllergyIntolerance",id:"medication",text:{},clinicalStatus:{coding:[]},verificationStatus:{coding:[]},type:"",category:[],criticality:"high",code:{coding:[]},reaction:[{substance:[{coding:[]}],manifestation:[{coding:[]}],exposureRoute:{coding:[]},severity:""}],patient:{reference:"Patient/example"},recordedDate:"2010-03-01",participant:[{function:{coding:[{system:"http://terminology.hl7.org/CodeSystem/provenance-participant-type",code:"author",display:"Author"}]},actor:{reference:"Practitioner/example"}}]},this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.outputAllergyStr=""}ngOnInit(){this.updateAllergyStr()}onReactionsChange(e){this.updateAllergyStr()}clear(){this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.selectedIntoleranceType=null,this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new gs(this.selectedIntoleranceCategories),this.selectedCriticality=null,this.selectedSeverity={},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.selectedSubstanceTerm="",this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm=" ",this.selectedRoute=null,this.selectedRouteTerm=" ",this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.updateAllergyStr(),setTimeout(()=>{this.selectedReactionManifestationTerm="",this.selectedRouteTerm=""},100)}updateAllergyStr(){this.outputAllergy.clinicalStatus.coding=[this.selectedClinicalStatus],this.outputAllergy.verificationStatus.coding=[this.selectedVerificationStatus],this.outputAllergy.type=this.selectedIntoleranceType?this.selectedIntoleranceType.fhirCode:"",this.outputAllergy.category=this.selectedIntoleranceCategories.length?this.selectedIntoleranceCategories.map(e=>e.display):[],this.outputAllergy.criticality=this.selectedCriticality?.code?[this.selectedCriticality.code]:{},this.outputAllergy.reaction=[],this.selectedReactions.forEach(e=>{e.manifestation.code&&(e.manifestation.system="http://snomed.info/sct"),e.route.code&&(e.route.system="http://snomed.info/sct"),this.outputAllergy.reaction.push({substance:[{coding:[this.selectedSubstance]}],manifestation:[{coding:e.manifestation?[e.manifestation]:[{}]}],exposureRoute:{coding:e.route?[e.route]:[{}]},severity:e.severity?e.severity.code:""})}),setTimeout(()=>{this.outputAllergyStr=JSON.stringify(this.outputAllergy,null,2)},100)}substanceSelected(e,i){var r=this;return me(function*(){i&&(r.selectedCodeTerm=""),r.selectedSubstance=e,r.selectedIntoleranceCategories=[],e=Object.assign({system:"http://snomed.info/sct"},e),r.recordPropensity||(r.outputAllergy.code.coding=[e]),r.outputAllergy.reaction[0].substance[0].coding=[e],(yield r.getSubstanceCategories(e))?.expansion?.contains?.forEach(s=>{"762766007"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==s.code&&r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[2])}),r.selectedIntoleranceCategoriesControl.setValue(r.selectedIntoleranceCategories),r.updateAllergyStr()})()}propensityRecordChanged(){this.outputAllergy.code.coding=[],this.selectedCode&&this.codeSelected(this.selectedCode)}codeSelected(e){var i=this;return me(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){i.selectedCodeTerm=e.display,i.selectedCode=e,i.recordPropensity&&(i.outputAllergy.code.coding=[e]);let r=yield i.getTypes(e);if(r.expansion?.contains){const s=r.expansion?.contains[0];i.selectedIntoleranceType=i.intoleranceTypeOptions.find(a=>a.code===s.code)}let o=yield i.getAllergySubstance(e);if(o.expansion.contains||(o=yield i.getIntoleranceSubstance(e)),o.expansion?.contains){const s=o.expansion?.contains[0];i.refinedSubstanceBinding.ecl=`<<${s.code} | ${s.display} |`,i.substanceSelected(s),i.selectedSubstanceTerm=s.display}else i.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(mt(o=>o)))})()}getAllergySubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(mt(o=>o)))})()}getSubstanceCategories(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (762766007 |Edible substance| OR 115668003 |Biological substance (substance)| OR 410942007 |Drug or medicament (substance)| OR 57795002 |Chemical element|)`,"")).pipe(mt(o=>o)))})()}getTypes(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(mt(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(e,"AllergyIntolerance.json")}copyToClipboard(e){this.clipboard.copy(e)}addToProblemsList(){if(this.selectedCode)this.newProblem.emit(this.selectedCode);else if(this.selectedSubstance&&this.selectedIntoleranceType){let e="";"609433001"===this.selectedIntoleranceType.code?e="Allergy to ":"782197009"===this.selectedIntoleranceType.code&&(e="Intolerance to "),e+=this.selectedSubstance.display,this.newProblem.emit({code:`${this.selectedIntoleranceType.code}:246075003=${this.selectedSubstance.code}`,display:e,substance:this.selectedSubstance})}else this._snackBar.openFromComponent(Ti,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(tA),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["substancePopoverMenu","matMenu"],["codePopoverMenu","matMenu"],["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-flat-button","","color","accent","id","clear",3,"click"],[1,"row-centered"],[1,"smallest-form-field"],[3,"selectionChange","binding","term"],["mat-menu-item","",3,"click","disableRipple"],["matTooltip","Defines wether to use a propensity based model or a substance based model. Defines which one is recorded in the code element of the AllergyIntolerance resource.",3,"ngModelChange","click","ngModel"],[1,"form-field"],[3,"ngModelChange","ngModel"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModelChange","newManifestation","ngModel"],["mat-flat-button","","color","accent",3,"click"],["href","https://hl7.org/FHIR/allergyintolerance.html","target","_blank"],["id","output"],["id","save"],["mat-icon-button","","matTooltip","Download FHIR Resource",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy FHIR Resource",3,"click"],["fontIcon","content_copy"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],[3,"click","value"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-card",2)(1,"div",3)(2,"div",4)(3,"h4"),k(4,"Allergy Intolerance Form "),_(5,"button",5)(6,"mat-icon"),k(7,"info"),b()(),_(8,"mat-menu",null,0)(10,"span",6),U("click",function(a){return j(o),G(a.stopPropagation())}),_(11,"h4"),k(12,"Allergy list"),b(),_(13,"p"),k(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),b(),_(15,"p"),k(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),b(),_(17,"p"),k(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),b(),_(19,"p"),k(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),b(),_(21,"p"),k(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),b(),_(23,"p"),k(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),b(),_(25,"p"),k(26,"For more information check the "),_(27,"a",7),k(28,"Implementation Guide"),b(),k(29," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(30,"button",8),U("click",function(){return j(o),G(r.clear())}),k(31,"Clear"),b(),_(32,"div",9)(33,"div",10)(34,"app-autocomplete-binding",11),U("selectionChange",function(a){return j(o),G(r.codeSelected(a))}),b()(),_(35,"button",5)(36,"mat-icon"),k(37,"info"),b()(),_(38,"mat-menu",null,1)(40,"span",12),U("click",function(a){return j(o),G(a.stopPropagation())}),_(41,"p"),k(42,"Terminology binding:"),b(),_(43,"pre"),k(44),b()()(),_(45,"mat-slide-toggle",13),Dr("ngModelChange",function(a){return j(o),jr(r.recordPropensity,a)||(r.recordPropensity=a),G(a)}),U("click",function(){return j(o),G(r.propensityRecordChanged())}),k(46," Propensity based model "),b()(),_(47,"mat-form-field",14)(48,"mat-label"),k(49,"Allergy Intolerance Type"),b(),_(50,"mat-select",15),Dr("ngModelChange",function(a){return j(o),jr(r.selectedIntoleranceType,a)||(r.selectedIntoleranceType=a),G(a)}),q(51,qwe,2,2,"mat-option",16),b()(),_(52,"div",9)(53,"mat-form-field",4)(54,"mat-label"),k(55,"Clinical Status"),b(),_(56,"mat-select",15),Dr("ngModelChange",function(a){return j(o),jr(r.selectedClinicalStatus,a)||(r.selectedClinicalStatus=a),G(a)}),q(57,Qwe,2,2,"mat-option",16),b()(),_(58,"mat-form-field",4)(59,"mat-label"),k(60,"Verification Status"),b(),_(61,"mat-select",15),Dr("ngModelChange",function(a){return j(o),jr(r.selectedVerificationStatus,a)||(r.selectedVerificationStatus=a),G(a)}),q(62,Kwe,2,2,"mat-option",16),b()()(),_(63,"div",9)(64,"div",17),q(65,Xwe,1,2,"app-autocomplete-binding",18)(66,Ywe,1,2,"app-autocomplete-binding",18),b(),_(67,"button",5)(68,"mat-icon"),k(69,"info"),b()(),_(70,"mat-menu",null,0)(72,"span",12),U("click",function(a){return j(o),G(a.stopPropagation())}),_(73,"p"),k(74,"Terminology binding:"),b(),q(75,Zwe,2,1,"pre",19)(76,Jwe,2,1,"pre",19),b()()(),_(77,"div",9)(78,"mat-form-field",4)(79,"mat-label"),k(80,"Substance Category"),b(),_(81,"mat-select",20),q(82,e1e,2,2,"mat-option",16),b()(),_(83,"mat-form-field",4)(84,"mat-label"),k(85,"Allergy Criticality"),b(),_(86,"mat-select",15),Dr("ngModelChange",function(a){return j(o),jr(r.selectedCriticality,a)||(r.selectedCriticality=a),G(a)}),q(87,t1e,2,2,"mat-option",16),b()()(),_(88,"app-allergies-allergy-list-reaction",21),Dr("ngModelChange",function(a){return j(o),jr(r.selectedReactions,a)||(r.selectedReactions=a),G(a)}),U("ngModelChange",function(a){return j(o),G(r.onReactionsChange(a))})("newManifestation",function(a){return j(o),G(r.newProblem.emit(a))}),b(),_(89,"button",22),U("click",function(){return j(o),G(r.addToProblemsList())}),k(90,"Save"),b()(),_(91,"div",4)(92,"h4"),k(93,"AllergyIntolerance HL7 FHIR Resource ("),_(94,"a",23),k(95,"link"),b(),k(96,")"),b(),_(97,"div",24)(98,"div",25)(99,"button",26),U("click",function(){return j(o),G(r.saveFhirResource())}),xe(100,"mat-icon",27),b(),_(101,"button",28),U("click",function(){return j(o),G(r.copyToClipboard(r.outputAllergyStr))}),xe(102,"mat-icon",29),b()(),_(103,"textarea",30),k(104," "),b()()()()()}if(2&i){const o=jt(9),s=jt(39);y(5),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(24),T("binding",r.codeBinding)("term",r.selectedCodeTerm),y(),T("matMenuTriggerFor",s),y(5),T("disableRipple",!0),y(4),Ke(r.codeBinding.ecl),y(),Sr("ngModel",r.recordPropensity),y(5),Sr("ngModel",r.selectedIntoleranceType),y(),T("ngForOf",r.intoleranceTypeOptions),y(5),Sr("ngModel",r.selectedClinicalStatus),y(),T("ngForOf",r.clinicalStatusOptions),y(4),Sr("ngModel",r.selectedVerificationStatus),y(),T("ngForOf",r.verificationStatusOptions),y(3),T("ngIf",!r.recordPropensity),y(),T("ngIf",r.recordPropensity),y(),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(3),T("ngIf",!r.recordPropensity),y(),T("ngIf",r.recordPropensity),y(5),T("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),y(),T("ngForOf",r.intoleranceCategoryOptions),y(4),Sr("ngModel",r.selectedCriticality),y(),T("ngForOf",r.criticalityOptions),y(),Sr("ngModel",r.selectedReactions),y(15),T("options",hs(29,Wwe))("lang","json")("innerHTML",r.outputAllergyStr,yu)}},dependencies:[ro,$r,u1,Eo,ia,So,Pa,mc,Wu,Fa,Bs,fd,Yo,t1,x2,f0,_s,Ju,nA,u0,Gwe],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})(),t7=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var i=this;return me(function*(){i.allergiesProblemListComponent.addProblem(e),i._snackBar.openFromComponent(Ti,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies"]],viewQuery:function(i,r){if(1&i&&vt(zH,5),2&i){let o;Re(o=Pe())&&(r.allergiesProblemListComponent=o.first)}},decls:31,vars:2,consts:[["substancePopoverMenu","matMenu"],["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Allergy List Approach (AllergyIntolerance FHIR resource)"],[3,"newProblem"],["label","Problem List Approach (Condition FHIR resource)"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",1)(1,"h3"),k(2,"Allergy, Hypersensitivity and Intolerance "),_(3,"button",2)(4,"mat-icon"),k(5,"info"),b()(),_(6,"mat-menu",null,0)(8,"span",3),U("click",function(a){return j(o),G(a.stopPropagation())}),_(9,"h4"),k(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),b(),_(11,"p"),k(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),b(),_(13,"p")(14,"b"),k(15,"Allergy list:"),b(),k(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),b(),_(17,"p")(18,"b"),k(19,"Problem list:"),b(),k(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),b(),_(21,"p"),k(22,"For more information check the "),_(23,"a",4),k(24,"Implementation Guide"),b(),k(25," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),U("newProblem",function(a){return j(o),G(r.addProblem(a))}),b()(),_(29,"mat-tab",8),xe(30,"app-allergies-problem-list"),b()()()}if(2&i){const o=jt(7);y(3),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0)}},dependencies:[ia,So,Pa,mc,Wu,d1,h0,zH,n1e],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();function iA(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];r?t.setProperty(i,r,e?.has(i)?"important":""):t.removeProperty(i)}return t}function Bm(t,n){const e=n?"":"none";iA(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function n7(t,n,e){iA(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function h1(t,n){return n&&"none"!=n?t+" "+n:t}function i7(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function rA(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function oA(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function sA(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function m0(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function r7(t,n,e,i){const{top:r,right:o,bottom:s,left:a,width:c,height:l}=t,d=c*n,u=l*n;return i>r-u&&ia-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:oA(e)})})}handleScroll(n){const e=Vs(n),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,c=r.left-s;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&m0(l.clientRect,a,c)}),r.top=o,r.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function s7(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;rBm(e,n)))}constructor(n,e,i,r,o,s){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Me,this._pointerMoveSubscription=Wt.EMPTY,this._pointerUpSubscription=Wt.EMPTY,this._scrollSubscription=Wt.EMPTY,this._resizeSubscription=Wt.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Me,this.started=new Me,this.released=new Me,this.ended=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),m=this._dropContainer;if(!f)return void this._endDragSequence(a);(!m||!m.isDragging()&&!m.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{const d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new o7(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Bi(i)),this._handles.forEach(i=>Bm(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=Bi(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,f1),e.addEventListener("touchstart",this._pointerDown,d7),e.addEventListener("dragstart",this._nativeDragStart,f1)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Bi(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),Bm(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Bm(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){p0(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),n7(i,!1,aA),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=p0(e),o=!r&&0!==e.button,s=this._rootElement,a=Vs(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?vw(e):bw(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||c||l)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=oA(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){n7(this._rootElement,!0,aA),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:n}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let r;if(i&&n){const o=n.matchSize?this._initialDomRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=h7(s,this._document),this._previewRef=s,n.matchSize?f7(r,o):r.style.transform=m1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=s7(this._rootElement),f7(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return iA(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},aA),Bm(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function r1e(t){const n=getComputedStyle(t),e=rA(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=rA(n,"transition-duration"),s=rA(n,"transition-delay");return i7(o[r])+i7(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Vs(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=h7(this._placeholderRef,this._document)):i=s7(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():n,s=p0(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-n.left+(s.pageX-o.left-a.left),y:o.top-n.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=p0(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(l-s);i=u7(i,a.left+o,a.right-(c-o)),r=u7(r,d,u)}return{x:i,y:r}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,Bm(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,f1),n.removeEventListener("touchstart",this._pointerDown,d7),n.removeEventListener("dragstart",this._nativeDragStart,f1)}_applyRootElementTransform(n,e){const i=m1(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=h1(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=m1(n,e);this._preview.style.transform=h1(r,i)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,c=i.bottom-r.bottom;r.width>i.width?(o>0&&(n+=o),s>0&&(n-=s)):n=0,r.height>i.height?(a>0&&(e+=a),c>0&&(e-=c)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:p0(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=Vs(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&m0(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jI(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Bi(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function m1(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function u7(t,n,e){return Math.max(n,Math.min(e,t))}function p0(t){return"t"===t.type[0]}function h7(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function f7(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=m1(n.left,n.top)}function cA(t,n,e){const i=g0(n,t.length-1),r=g0(e,t.length-1);if(i===r)return;const o=t[i],s=r0)return null;const a="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===n),l=o[s],u=l.clientRect,h=c>s?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return cA(o,c,s),o.forEach((p,v)=>{if(g[v]===p)return;const x=p.drag===n,C=x?f:m,D=x?n.getPlaceholderElement():p.drag.getRootElement();p.offset+=C,a?(D.style.transform=h1(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),m0(p.clientRect,0,C)):(D.style.transform=h1(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),m0(p.clientRect,C,0))}),this._previousSwap.overlaps=sA(u,e,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:c,currentIndex:s}}enter(n,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(n,e,i):r,s=this._activeDraggables,a=s.indexOf(n),c=n.getPlaceholderElement();let l=s[o];if(l===n&&(l=s[o+1]),!l&&(null==o||-1===o||o-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,n)}else Bi(this._element).appendChild(c),s.push(n);c.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables.forEach(n=>{const e=n.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===n)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n)}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:i})=>{m0(i,n,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const n="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:oA(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(n,e,i){const r="horizontal"===this.orientation;let o=r?e.left-n.left:e.top-n.top;return-1===i&&(o+=r?e.width-n.width:e.height-n.height),o}_getSiblingOffsetPx(n,e,i){const r="horizontal"===this.orientation,o=e[n].clientRect,s=e[n+-1*i];let a=o[r?"width":"height"]*i;if(s){const c=r?"left":"top",l=r?"right":"bottom";-1===i?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?n>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?n<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(n,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>a!==n&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this.receivingStarted=new Me,this.receivingStopped=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Wt.EMPTY,this._verticalScrollDirection=oa.NONE,this._horizontalScrollDirection=Zo.NONE,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function i1e(t=0,n=$_){return t<0&&(t=0),Y_(t,t,n)}(0,G9).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===oa.UP?s.scrollBy(0,-a):this._verticalScrollDirection===oa.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===Zo.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===Zo.RIGHT&&s.scrollBy(a,0)})},this.element=Bi(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new o7(i),this._sortStrategy=new c1e(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,s,a,c={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===n.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._sortStrategy.direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._sortStrategy.orientation=n,this}withScrollableParents(n){const e=Bi(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._domRect||!r7(this._domRect,.05,e,i))return;const o=this._sortStrategy.sort(n,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=oa.NONE,o=Zo.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||r7(s.clientRect,.05,n,e)&&([r,o]=function d1e(t,n,e,i,r){const o=g7(n,r),s=_7(n,i);let a=oa.NONE,c=Zo.NONE;if(o){const l=t.scrollTop;o===oa.UP?l>0&&(a=oa.UP):t.scrollHeight-l>t.clientHeight&&(a=oa.DOWN)}if(s){const l=t.scrollLeft;"rtl"===e?s===Zo.RIGHT?l<0&&(c=Zo.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=Zo.LEFT):s===Zo.LEFT?l>0&&(c=Zo.LEFT):t.scrollWidth-l>t.clientWidth&&(c=Zo.RIGHT)}return[a,c]}(a,s.clientRect,this._sortStrategy.direction,n,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};r=g7(c,e),o=_7(c,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=Bi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=Bi(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(n).clientRect}_reset(){this._isDragging=!1;const n=Bi(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(n,e){return null!=this._domRect&&sA(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._domRect||!sA(this._domRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Bi(this.element);return r===o||o.contains(r)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=jI(Bi(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function g7(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?oa.UP:n>=i-o&&n<=i+o?oa.DOWN:oa.NONE}function _7(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?Zo.LEFT:n>=i-o&&n<=i+o?Zo.RIGHT:Zo.NONE}const p1=Ma({passive:!1,capture:!0});let u1e=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,p1)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,p1)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:p1}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:p1}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new jn(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Ci(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const h1e={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let lA=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=h1e){return new a1e(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new l1e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Be),Y(cl),Y(u1e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _0=new J("CDK_DRAG_PARENT"),b7=new J("CdkDragHandle");let v7=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}constructor(e,i){this.element=e,this._parentDrag=i,this._stateChanges=new Me,this._disabled=!1,i?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(_0,12))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkDragHandleDisabled","disabled",Ue]},standalone:!0,features:[it([{provide:b7,useExisting:t}]),Kt]})}return t})();const y7=new J("CDK_DRAG_CONFIG"),x7=new J("CdkDropList");let dA=(()=>{class t{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}constructor(e,i,r,o,s,a,c,l,d,u,h){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new Me,this._handles=new wi([]),this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=new jn(f=>{const m=this._dragRef.moved.pipe(mt(g=>({source:this,pointerPosition:g.pointerPosition,event:g.event,delta:g.delta,distance:g.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Nn(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){const i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){const i=this._handles.getValue(),r=i.indexOf(e);r>-1&&(i.splice(r,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Bi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:hd(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Nn(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(Vi(e=>{const i=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Zi(e=>Ci(...e.map(i=>i._stateChanges.pipe(Wr(i))))),Tt(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}static#t=this.\u0275fac=function(i){return new(i||t)(w(He),w(x7,12),w(xt),w(Be),w(di),w(y7,8),w(oo,8),w(lA),w(gn),w(b7,10),w(_0,12))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,r){2&i&<("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[W.None,"cdkDragData","data"],lockAxis:[W.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[W.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[W.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[W.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[W.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[W.HasDecoratorInputTransform,"cdkDragDisabled","disabled",Ue],constrainPosition:[W.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[W.None,"cdkDragPreviewClass","previewClass"],previewContainer:[W.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[it([{provide:_0,useExisting:t}]),Kt,Un]})}return t})();const uA=new J("CdkDropListGroup");let p1e=0,hA=(()=>{class t{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}constructor(e,i,r,o,s,a,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new Me,this.connectedTo=[],this.id="cdk-drop-list-"+p1e++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ce,this.entered=new Ce,this.exited=new Ce,this.sorted=new Ce,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(l,d)=>this.enterPredicate(l.data,d.data),this._dropListRef.sortPredicate=(l,d,u)=>this.sortPredicate(l,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Wr(this._dir.value),Tt(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=G_(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=hd(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),Ci(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}static#t=this.\u0275fac=function(i){return new(i||t)(w(He),w(lA),w(gn),w(Z_),w(oo,8),w(uA,12),w(y7,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,r){2&i&&(_t("id",r.id),lt("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[W.None,"cdkDropListConnectedTo","connectedTo"],data:[W.None,"cdkDropListData","data"],orientation:[W.None,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[W.None,"cdkDropListLockAxis","lockAxis"],disabled:[W.HasDecoratorInputTransform,"cdkDropListDisabled","disabled",Ue],sortingDisabled:[W.HasDecoratorInputTransform,"cdkDropListSortingDisabled","sortingDisabled",Ue],enterPredicate:[W.None,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[W.None,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[W.HasDecoratorInputTransform,"cdkDropListAutoScrollDisabled","autoScrollDisabled",Ue],autoScrollStep:[W.None,"cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[it([{provide:uA,useValue:void 0},{provide:x7,useExisting:t}]),Kt]})}return t})(),v1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[lA],imports:[ll]})}return t})();function y1e(t,n){}class g1{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}}let w7=(()=>{class t extends Sw{constructor(e,i,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=he(Ln),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=he(gn),this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){const i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_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(i=>{i||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 i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=dw(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=dw();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dw()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(JI),w(xt,8),w(g1),w(_w),w(Be),w(Rw),w(ta))};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&vt(al,7),2&i){let o;Re(o=Pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&_t("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:[tt,St],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&q(0,y1e,0,0,"ng-template",0)},dependencies:[al],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class fA{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new Me,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!To(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const k7=new J("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.block()}}),x1e=new J("DialogData"),w1e=new J("DefaultDialogConfig");let C1e=0,C7=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me,this._afterOpenedAtThisLevel=new Me,this._ariaHiddenElements=new Map,this.afterAllClosed=cm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wr(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new g1,...i}).id=i.id||"cdk-dialog-"+C1e++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new fA(s,i),c=this._attachContainer(s,a,i);return a.containerInstance=c,this._attachDialogContent(e,a,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){mA(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){mA(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),mA(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Pm({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&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:g1,useValue:r},{provide:fA,useValue:i},{provide:Rw,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=w7;const c=new Mm(a,r.viewContainerRef,Ii.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof Gn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new sl(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Mm(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:x1e,useValue:e.data},{provide:fA,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(oo,null,{optional:!0}))&&a.push({provide:oo,useValue:{value:e.direction,change:st()}}),Ii.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(Ii),Y(w1e,8),Y(t,12),Y(Mw),Y(k7))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mA(t,n){let e=t.length;for(;e--;)n(t[e])}let T1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[C7],imports:[ju,Rm,w9,Rm]})}return t})();function E1e(t,n){}class pA{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 gA="mdc-dialog--open",T7="mdc-dialog--opening",E7="mdc-dialog--closing";let S7=(()=>{class t extends w7{constructor(e,i,r,o,s,a,c,l,d){super(e,i,r,o,s,a,c,d),this._animationMode=l,this._animationStateChanged=new Ce,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?I7(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?I7(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(D7,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(T7,gA)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(gA),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(gA),this._animationsEnabled?(this._hostElement.style.setProperty(D7,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(E7)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(T7,E7)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,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 i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(JI),w(xt,8),w(pA),w(_w),w(Be),w(Rw),w(pi,8),w(ta))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){2&i&&(rc("id",r._config.id),_t("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),lt("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[tt,St],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1),q(2,E1e,0,0,"ng-template",2),b()())},dependencies:[al],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})}return t})();const D7="--mat-dialog-transition-duration";function I7(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?hd(t.substring(0,t.length-2)):t.endsWith("s")?1e3*hd(t.substring(0,t.length-1)):"0"===t?0:null}var _1=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(_1||{});class Cd{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Me,this._beforeClosed=new Me,this._state=_1.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(un(r=>"opened"===r.state),Nn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(un(r=>"closed"===r.state),Nn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ci(this.backdropClick(),this.keydownEvents().pipe(un(r=>27===r.keyCode&&!this.disableClose&&!To(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),A7(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(un(e=>"closing"===e.state),Nn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=_1.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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=_1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function A7(t,n,e){return t._closeInteractionType=n,t.close(e)}const b1=new J("MatMdcDialogData"),I1e=new J("mat-mdc-dialog-default-options"),M7=new J("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.block()}});let M1e=0,Um=(()=>{class t{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,i,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me,this._afterOpenedAtThisLevel=new Me,this.dialogConfigClass=pA,this.afterAllClosed=cm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wr(void 0))),this._dialog=i.get(C7),this._dialogRefConstructor=Cd,this._dialogContainerType=S7,this._dialogDataToken=b1}open(e,i){let r;(i={...this._defaultOptions||new pA,...i}).id=i.id||"mat-mdc-dialog-"+M1e++,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:g1,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(Ii),Y(Fu,8),Y(I1e,8),Y(M7),Y(t,12),Y(Mw),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),R1e=0,zm=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=P7(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){A7(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd,8),w(He),w(Um))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){1&i&&U("click",function(s){return r._onButtonClick(s)}),2&i&&_t("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[W.None,"aria-label","ariaLabel"],type:"type",dialogResult:[W.None,"mat-dialog-close","dialogResult"],_matDialogClose:[W.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Un]})}return t})(),R7=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=P7(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(i){return new(i||t)(w(Cd,8),w(He),w(Um))};static#t=this.\u0275dir=ce({type:t,standalone:!0})}return t})(),_A=(()=>{class t extends R7{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+R1e++}_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=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){2&i&&rc("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[tt]})}return t})(),b0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}return t})(),v0=(()=>{class t extends R7{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})();function P7(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let P1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Um],imports:[T1e,ju,Rm,Ft,Ft]})}return t})(),F1e=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.localEcl="",this.localEcl=i.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd),w(b1))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://snowstorm.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclOutput","eclstring"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(i,r){1&i&&(_(0,"h1",0),k(1,"ECL Builder"),b(),_(2,"div",1)(3,"snomed-ecl-builder",2),U("eclOutput",function(s){return r.eclChanged(s)}),b()(),_(4,"div",3)(5,"button",4),k(6,"Ok"),b()()),2&i&&(y(3),em("eclstring",r.localEcl),y(2),T("mat-dialog-close",r.data))},dependencies:[Eo,zm,_A,v0,b0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const O7=new J("CdkAccordion");let O1e=0,N1e=(()=>{class t{get expanded(){return this._expanded}set expanded(e){this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=Wt.EMPTY,this.closed=new Ce,this.opened=new Ce,this.destroyed=new Ce,this.expandedChange=new Ce,this.id="cdk-accordion-child-"+O1e++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(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(i){return new(i||t)(w(O7,12),w(gn),w(FI))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[W.HasDecoratorInputTransform,"expanded","expanded",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[it([{provide:O7,useValue:void 0}]),Kt]})}return t})(),L1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const V1e=["body"],B1e=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],U1e=["mat-expansion-panel-header","*","mat-action-row"];function z1e(t,n){}const H1e=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],j1e=["mat-panel-title","mat-panel-description","*"];function $1e(t,n){1&t&&(_(0,"span",1),jc(),_(1,"svg",2),xe(2,"path",3),b()()),2&t&&T("@indicatorRotate",R()._getExpandedState())}const N7=new J("MAT_ACCORDION"),L7="225ms cubic-bezier(0.4,0.0,0.2,1)",V7={indicatorRotate:Yn("indicatorRotate",[bn("collapsed, void",We({transform:"rotate(0deg)"})),bn("expanded",We({transform:"rotate(180deg)"})),Xt("expanded <=> collapsed, void => collapsed",qt(L7))]),bodyExpansion:Yn("bodyExpansion",[bn("collapsed, void",We({height:"0px",visibility:"hidden"})),bn("expanded",We({height:"*",visibility:""})),Xt("expanded <=> collapsed, void => collapsed",qt(L7))])},B7=new J("MAT_EXPANSION_PANEL");let G1e=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(B7,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}return t})(),W1e=0;const U7=new J("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let z7=(()=>{class t extends N1e{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,i,r,o,s,a,c){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Ce,this.afterCollapse=new Ce,this._inputChanges=new Me,this._headerId="mat-expansion-panel-header-"+W1e++,this.accordion=e,this._document=s,this._animationsDisabled="NoopAnimations"===a,c&&(this.hideToggle=c.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(Wr(null),un(()=>this.expanded&&!this._portal),Nn(1)).subscribe(()=>{this._portal=new sl(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_animationStarted(e){!H7(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){H7(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(i){return new(i||t)(w(N7,12),w(gn),w(FI),w(di),w(xt),w(pi,8),w(U7,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&ln(o,G1e,5),2&i){let s;Re(s=Pe())&&(r._lazyContent=s.first)}},viewQuery:function(i,r){if(1&i&&vt(V1e,5),2&i){let o;Re(o=Pe())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){2&i&<("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[W.HasDecoratorInputTransform,"hideToggle","hideToggle",Ue],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[it([{provide:N7,useValue:void 0},{provide:B7,useExisting:t}]),Kt,tt,Un,St],ngContentSelectors:U1e,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){if(1&i){const o=Se();Mn(B1e),ct(0),_(1,"div",1,0),U("@bodyExpansion.start",function(a){return j(o),G(r._animationStarted(a))})("@bodyExpansion.done",function(a){return j(o),G(r._animationDone(a))}),_(3,"div",2),ct(4,1),q(5,z1e,0,0,"ng-template",3),b(),ct(6,2),b()}2&i&&(y(),T("@bodyExpansion",r._getExpandedState())("id",r.id),_t("aria-labelledby",r._headerId),y(4),T("cdkPortalOutlet",r._portal))},dependencies:[al],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:[V7.bodyExpansion]},changeDetection:0})}return t})();function H7(t){return"void"===t.fromState}let q1e=(()=>{class t{constructor(e,i,r,o,s,a,c){this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=Wt.EMPTY,this.tabIndex=0;const l=e.accordion?e.accordion._stateChanges.pipe(un(d=>!(!d.hideToggle&&!d.togglePosition))):fs;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ci(e.opened,e.closed,l,e._inputChanges.pipe(un(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(un(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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:To(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)(w(z7,1),w(He),w(ta),w(gn),w(U7,8),w(pi,8),Ms("tabindex"))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,r){1&i&&U("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&i&&(_t("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Ki("height",r._getHeaderHeight()),lt("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:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)]},standalone:!0,features:[Kt,St],ngContentSelectors:j1e,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(i,r){1&i&&(Mn(H1e),_(0,"span",0),ct(1),ct(2,1),ct(3,2),b(),q(4,$1e,3,1,"span",1)),2&i&&(lt("mat-content-hide-toggle",!r._showToggle()),y(4),_n(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:[V7.indicatorRotate]},changeDetection:0})}return t})(),Q1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"],standalone:!0})}return t})(),K1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}return t})(),X1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,L1e,Rm]})}return t})();function Y1e(t,n){if(1&t){const e=Se();_(0,"mat-option",2),U("click",function(){return j(e),G(R().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e.display," ")}}let Z1e=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"ngModelChange","multiple","ngModel"],[3,"value","click",4,"ngFor","ngForOf"],[3,"click","value"]],template:function(i,r){1&i&&(_(0,"mat-form-field")(1,"mat-label"),k(2),b(),_(3,"mat-select",0),Dr("ngModelChange",function(s){return jr(r.selectedOptions,s)||(r.selectedOptions=s),s}),q(4,Y1e,2,2,"mat-option",1),b(),_(5,"mat-hint"),k(6),b()()),2&i&&(y(2),Ke(r.binding.title),y(),T("multiple","Select (Multiple)"==r.binding.type),Sr("ngModel",r.selectedOptions),y(),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,Fa,Bs,Zu,fd,Yo,f0,_s],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const J1e=["input"],eke=["formField"],tke=["*"];let j7=0;class $7{constructor(n,e){this.source=n,this.value=e}}const nke={provide:Rr,useExisting:an(()=>v1),multi:!0},G7=new J("MatRadioGroup"),ike=new J("mat-radio-default-options",{providedIn:"root",factory:function rke(){return{color:"accent"}}});let v1=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+j7++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ce}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new $7(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(1&i&&ln(o,y0,5),2&i){let s;Re(s=Pe())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],required:[W.HasDecoratorInputTransform,"required","required",Ue]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[it([nke,{provide:G7,useExisting:t}]),Kt]})}return t})(),y0=(()=>{class t{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a,c,l){this._elementRef=i,this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=s,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++j7,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=Xi(l,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new $7(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){return new(i||t)(w(G7,8),w(He),w(gn),w(ta),w(FI),w(pi,8),w(ike,8),Ms("tabindex"))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(1&i&&(vt(J1e,5),vt(eke,7,He)),2&i){let o;Re(o=Pe())&&(r._inputElement=o.first),Re(o=Pe())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,r){1&i&&U("focus",function(){return r._inputElement.nativeElement.focus()}),2&i&&(_t("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),lt("mat-primary","primary"===r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],value:"value",labelPosition:"labelPosition",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],required:[W.HasDecoratorInputTransform,"required","required",Ue],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[Kt,St],ngContentSelectors:tke,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"div",2,0)(2,"div",3)(3,"div",4),U("click",function(a){return j(o),G(r._onTouchTargetClick(a))}),b(),_(4,"input",5,1),U("change",function(a){return j(o),G(r._onInputInteraction(a))}),b(),_(6,"div",6),xe(7,"div",7)(8,"div",8),b(),_(9,"div",9),xe(10,"div",10),b()(),_(11,"label",11),ct(12),b()()}2&i&&(T("labelPosition",r.labelPosition),y(2),lt("mdc-radio--disabled",r.disabled),y(2),T("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),_t("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),y(5),T("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),y(2),T("for",r.inputId))},dependencies:[rl,a2],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),oke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,Im,y0,Ft]})}return t})();function ske(t,n){if(1&t){const e=Se();_(0,"mat-radio-button",3),U("click",function(){const r=j(e).$implicit;return G(R().optionSelected(r))}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e.code),y(),Je(" ",e.display," ")}}let ake=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-radios-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:6,vars:3,consts:[["aria-label","Select an option",1,"radio-group"],["class","radio-button",3,"value","click",4,"ngFor","ngForOf"],["id","hint"],[1,"radio-button",3,"click","value"]],template:function(i,r){1&i&&(_(0,"div"),k(1),b(),_(2,"mat-radio-group",0),q(3,ske,2,2,"mat-radio-button",1),b(),_(4,"div",2),k(5),b()),2&i&&(y(),Ke(r.binding.title),y(2),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,v1,y0],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]})}return t})(),cke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-textbox-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","placeholder","Enter text...",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"textarea",1),Dr("ngModelChange",function(s){return jr(r.text,s)||(r.text=s),s}),U("ngModelChange",function(s){return r.onTextChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),Sr("ngModel",r.text),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,Yo,_s],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const lke=["input"],dke=["label"],uke=["*"],hke=new J("mat-checkbox-default-options",{providedIn:"root",factory:W7});function W7(){return{color:"accent",clickAction:"check-indeterminate"}}var Do=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Do||{});const fke={provide:Rr,useExisting:an(()=>bA),multi:!0};class mke{}let pke=0;const q7=W7();let bA=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new mke;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._animationMode=s,this._options=a,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 Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Do.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||q7,this.color=this._options.color||q7.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++pke}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 i=e!=this._indeterminate;this._indeterminate=e,i&&(this._transitionCheckState(this._indeterminate?Do.Indeterminate:this.checked?Do.Checked:Do.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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?Do.Checked:Do.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case Do.Init:if(i===Do.Checked)return this._animationClasses.uncheckedToChecked;if(i==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return i===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return i===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return i===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.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(i){return new(i||t)(w(He),w(gn),w(Be),Ms("tabindex"),w(pi,8),w(hke,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(1&i&&(vt(lke,5),vt(dke,5),vt(rl,5)),2&i){let o;Re(o=Pe())&&(r._inputElement=o.first),Re(o=Pe())&&(r._labelElement=o.first),Re(o=Pe())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("tabindex",null)("aria-label",null)("aria-labelledby",null),Ys(r.color?"mat-"+r.color:"mat-accent"),lt("_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:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],id:"id",required:[W.HasDecoratorInputTransform,"required","required",Ue],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:Xi(e)],color:"color",checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],indeterminate:[W.HasDecoratorInputTransform,"indeterminate","indeterminate",Ue]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[it([fke,{provide:hr,useExisting:t,multi:!0}]),Kt,Un,St],ngContentSelectors:uke,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(i,r){if(1&i){const o=Se();Mn(),_(0,"div",3),U("click",function(a){return j(o),G(r._preventBubblingFromLabel(a))}),_(1,"div",4,0)(3,"div",5),U("click",function(){return j(o),G(r._onTouchTargetClick())}),b(),_(4,"input",6,1),U("blur",function(){return j(o),G(r._onBlur())})("click",function(){return j(o),G(r._onInputClick())})("change",function(a){return j(o),G(r._onInteractionEvent(a))}),b(),xe(6,"div",7),_(7,"div",8),jc(),_(8,"svg",9),xe(9,"path",10),b(),ey(),xe(10,"div",11),b(),xe(11,"div",12),b(),_(12,"label",13,2),ct(14),b()()}if(2&i){const o=jt(2);T("labelPosition",r.labelPosition),y(4),lt("mdc-checkbox--selected",r.checked),T("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),_t("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),y(7),T("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),y(),T("for",r.inputId)}},dependencies:[rl,a2],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})}return t})(),bke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[bA,Ft,Ft]})}return t})();function vke(t,n){if(1&t){const e=Se();_(0,"mat-checkbox",3),U("click",function(){return j(e),G(R().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;em("formControlName",e.display),y(),Je(" ",e.display," ")}}let yke=(()=>{class t{constructor(e,i){this.terminologyService=e,this._formBuilder=i,this.selectionChange=new Ce,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(CH))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-checkbox-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:4,vars:3,consts:[[1,"check-group",3,"formGroup"],["class","check","labelPosition","before",3,"formControlName","click",4,"ngFor","ngForOf"],[1,"hint"],["labelPosition","before",1,"check",3,"click","formControlName"]],template:function(i,r){1&i&&(_(0,"form",0),q(1,vke,2,2,"mat-checkbox",1),_(2,"span",2),k(3),b()()),2&i&&(T("formGroup",r.checkboxes),y(),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,l0,Yo,n0,wd,d0,bA],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]})}return t})(),xke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"input",1),Dr("ngModelChange",function(s){return jr(r.value,s)||(r.value=s),s}),U("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),Sr("ngModel",r.value),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,e1,Yo,o1,_s],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})(),wke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"input",1),Dr("ngModelChange",function(s){return jr(r.value,s)||(r.value=s),s}),U("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),Sr("ngModel",r.value),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,e1,Yo,o1,_s],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const kke=["newPanel"],Cke=()=>({standalone:!0}),vA=()=>({});function Tke(t,n){1&t&&(_(0,"mat-panel-description"),k(1," Click to add new binding "),b())}function Eke(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return j(e),G(null==(r=R().newBindingForm.get("title"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Ske(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function Dke(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures + Situations"),b())}function Ike(t,n){if(1&t&&(_(0,"mat-option",47),k(1),b()),2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e," ")}}function Ake(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return j(e),G(null==(r=R(2).newBindingForm.get("ecl"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Mke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14)(1,"mat-label"),k(2,"Answer options: ECL Expression"),b(),xe(3,"input",48),_(4,"a",49),U("click",function(){let r;j(e);const o=R();return G(o.openEclBuilder(null==(r=o.newBindingForm.get("ecl"))?null:r.value,"ecl"))}),k(5,"ECL Builder"),b(),q(6,Ake,3,0,"button",16),_(7,"mat-error"),k(8),b()()}if(2&t){let e;const i=R();y(6),T("ngIf",null==(e=i.newBindingForm.get("ecl"))?null:e.value),y(2),Ke(i.getErrorMessage("ecl"))}}function Rke(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function Pke(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),b())}function Fke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14),xe(1,"app-autocomplete-binding",50),_(2,"a",19),U("click",function(){return j(e),G(R().toggleCheckboxBinding())}),q(3,Rke,2,0,"span",10)(4,Pke,2,0,"span",10),b(),_(5,"mat-error"),k(6),b()()}if(2&t){const e=R();y(),T("binding",e.checkboxBinding),y(2),T("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),y(),T("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),y(2),Ke(e.getErrorMessage("ecl"))}}function Oke(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return j(e),G(null==(r=R(2).newBindingForm.get("note"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Nke(t,n){if(1&t&&(_(0,"mat-form-field",51)(1,"mat-label"),k(2,"Note"),b(),xe(3,"input",52),q(4,Oke,3,0,"button",16),_(5,"mat-error"),k(6),b()()),2&t){let e;const i=R();y(4),T("ngIf",null==(e=i.newBindingForm.get("note"))?null:e.value),y(2),Ke(i.getErrorMessage("note"))}}function Lke(t,n){if(1&t){const e=Se();_(0,"button",27),U("click",function(){return j(e),G(R().addBinding())}),k(1,"Add binding"),b()}}function Vke(t,n){if(1&t){const e=Se();_(0,"button",27),U("click",function(){j(e);const r=R();return r.addBinding(),G(r.clearOutput())}),k(1,"Update binding"),b()}}function Bke(t,n){if(1&t){const e=Se();_(0,"button",35),U("click",function(){j(e);const r=R();return G(r.showRightContainer=!r.showRightContainer)}),k(1),b()}if(2&t){const e=R();y(),Je(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Uke(t,n){1&t&&(_(0,"button",53),k(1," Download form "),b()),2&t&&(R(),T("matMenuTriggerFor",jt(69)))}function zke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"p",55),k(2),b(),_(3,"button",56),U("click",function(){return j(e),G(R().titleEditMode=!0)}),_(4,"mat-icon"),k(5,"edit"),b()()()}if(2&t){const e=R();y(2),Ke(e.formTitle)}}function Hke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"form",57)(2,"mat-form-field")(3,"mat-label"),k(4,"Title"),b(),_(5,"input",58),Dr("ngModelChange",function(r){j(e);const o=R();return jr(o.formTitle,r)||(o.formTitle=r),G(r)}),U("ngModelChange",function(){return j(e),G(R().refreshFhirQuestionnaire())}),b(),_(6,"button",46),U("click",function(){return j(e),G(R().formTitle="")}),_(7,"mat-icon"),k(8,"close"),b()()()(),_(9,"button",56),U("click",function(){return j(e),G(R().titleEditMode=!1)}),_(10,"mat-icon"),k(11,"save"),b()()()}if(2&t){const e=R();y(5),Sr("ngModel",e.formTitle),T("ngModelOptions",hs(2,Cke))}}function jke(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",67),U("selectionChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function $ke(t,n){if(1&t){const e=Se();_(0,"app-dropdown-binding",67),U("selectionChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Gke(t,n){if(1&t){const e=Se();_(0,"app-radios-binding",67),U("selectionChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Wke(t,n){if(1&t&&(_(0,"span",68),k(1),b()),2&t){const e=R().$implicit;y(),Ke(e.title)}}function qke(t,n){if(1&t){const e=Se();_(0,"app-textbox-binding",69),U("textChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Qke(t,n){if(1&t){const e=Se();_(0,"app-integer-binding",69),U("textChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Kke(t,n){if(1&t){const e=Se();_(0,"app-decimal-binding",69),U("textChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Xke(t,n){if(1&t){const e=Se();_(0,"app-checkbox-binding",67),U("selectionChange",function(r){j(e);const o=R().$implicit;return G(R().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",R().$implicit)}function Yke(t,n){if(1&t&&(_(0,"button",70)(1,"mat-icon"),k(2,"info"),b()()),2&t){const e=R().$implicit;T("matMenuTriggerFor",jt(14))("disabled",!e.code&&!e.ecl)}}function Zke(t,n){if(1&t){const e=Se();_(0,"span",6),U("click",function(r){return j(e),G(r.stopPropagation())}),_(1,"h4"),k(2,"Question terminology binding"),b(),_(3,"pre"),k(4),b()()}if(2&t){const e=R().$implicit;T("disableRipple",!0),y(4),Iu("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function Jke(t,n){if(1&t){const e=Se();_(0,"span",6),U("click",function(r){return j(e),G(r.stopPropagation())}),_(1,"h4"),k(2,"Answer terminology binding"),b(),_(3,"pre"),k(4),b()()}if(2&t){const e=R().$implicit;T("disableRipple",!0),y(4),Ke(e.ecl)}}function eCe(t,n){if(1&t){const e=Se();_(0,"div",59)(1,"div",60)(2,"mat-icon",61),k(3,"drag_indicator"),b(),q(4,jke,1,1,"app-autocomplete-binding",62)(5,$ke,1,1,"app-dropdown-binding",62)(6,Gke,1,1,"app-radios-binding",62)(7,Wke,2,1,"span",63)(8,qke,1,1,"app-textbox-binding",64)(9,Qke,1,1,"app-integer-binding",64)(10,Kke,1,1,"app-decimal-binding",64)(11,Xke,1,1,"app-checkbox-binding",62)(12,Yke,3,2,"button",65),_(13,"mat-menu",null,0),q(15,Zke,5,3,"span",66)(16,Jke,5,2,"span",66),b(),_(17,"button",56),U("click",function(){const r=j(e).index;return G(R().bindings.splice(r,1))}),_(18,"mat-icon"),k(19,"delete"),b()(),_(20,"button",56),U("click",function(){const r=j(e).index;return G(R().edit(r))}),_(21,"mat-icon"),k(22,"edit"),b()()()()}if(2&t){const e=n.$implicit;y(4),T("ngIf","Autocomplete"==e.type),y(),T("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),y(),T("ngIf","Options"==e.type),y(),T("ngIf","Section header"==e.type),y(),T("ngIf","Text box"==e.type),y(),T("ngIf","Integer"==e.type),y(),T("ngIf","Decimal"==e.type),y(),T("ngIf","Checkbox"==e.type),y(),T("ngIf","Section header"!=e.type),y(3),T("ngIf",e.code),y(),T("ngIf",e.ecl)}}function tCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){j(e);const r=R(2);return G(r.saveOutput(r.outputStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){j(e);const r=R(2);return G(r.copyOutputToClipboard(r.outputStr))}),xe(4,"mat-icon",78),b()()}}function nCe(t,n){if(1&t&&(_(0,"div",71),q(1,tCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=R();y(),T("ngIf",e.showRightContainer),y(),T("options",hs(4,vA))("lang","json")("innerHTML",e.responseStr,yu)}}function iCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){j(e);const r=R(2);return G(r.saveBundleOutput(r.responseBundleStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){j(e);const r=R(2);return G(r.copyOutputToClipboard(r.responseBundleStr))}),xe(4,"mat-icon",78),b()()}}function rCe(t,n){if(1&t&&(_(0,"div",71),q(1,iCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=R();y(),T("ngIf",e.showRightContainer),y(),T("options",hs(4,vA))("lang","json")("innerHTML",e.responseBundleStr,yu)}}function oCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){j(e);const r=R(2);return G(r.saveOutput(r.fhirQuestionnaireStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){j(e);const r=R(2);return G(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),xe(4,"mat-icon",78),b()()}}function sCe(t,n){if(1&t&&(_(0,"div",71),q(1,oCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=R();y(),T("ngIf",e.showRightContainer),y(),T("options",hs(4,vA))("lang","json")("innerHTML",e.fhirQuestionnaireStr,yu)}}let aCe=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.response={},this.responseStr="{}",this.responseBundle={},this.responseBundleStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingObservables={title:"Question code (Observables)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingAll={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)| OR << 243796009 |Situation with explicit context (situation)|",value:""},this.codeBinding=this.codeBindingAll,this.checkboxBinding=JSON.parse(JSON.stringify(this.codeBindingAll)),this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new Vm({title:new gs("",[Nm.required,Nm.maxLength(50)]),code:new gs("",[]),type:new gs("",[Nm.required]),ecl:new gs("",[]),value:new gs("",[]),note:new gs("",[Nm.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,s)=>o.localeCompare(s)),this.showRightContainer=!1}ngOnInit(){this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return me(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:i,code:r,type:o,ecl:s,value:a,note:c}=e.newBindingForm.controls;let l={title:i.value,code:r.value,type:o.value,ecl:s.value,value:a.value,note:c.value},d=!1;s.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(s.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,s.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(s.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,s.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,s.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]},this.bindings.forEach((e,i)=>{const r=this.createItemForBinding(e,i);r&&this.fhirQuestionnaire.item.push(r)}),this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}createItemForBinding(e,i){const r=this.initializeBaseItem(e,i);return["Select (Single)","Select (Multiple)","Options","Autocomplete"].includes(e.type)&&(r.extension=this.getExtensionForSelectableTypes(),r.answerValueSet=this.getAnswerValueSet(e)),"Autocomplete"===e.type&&r.extension.push(this.getAutocompleteExtension()),"Select (Multiple)"===e.type&&(r.repeats=!0),r}initializeBaseItem(e,i){const r={linkId:i+1,text:e.title,type:this.getQuestionnaireItemType(e.type)};return e.code&&(r.code=[{system:"http://snomed.info/sct",code:e.code.code,display:e.code.display}]),r}getQuestionnaireItemType(e){switch(e){case"Section header":return"display";case"Select (Single)":case"Select (Multiple)":case"Options":case"Autocomplete":return"choice";case"Text box":return"text";case"Integer":return"integer";case"Decimal":return"decimal";default:return console.warn(`Unhandled binding type: ${e}`),null}}getExtensionForSelectableTypes(){return[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}]}getAutocompleteExtension(){return{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}}getAnswerValueSet(e){return`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(e.ecl)}`}getEclPreview(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(e,"")).pipe(mt(o=>o)))})()}edit(e){this.indexInEdit=e;const i=this.bindings[e];this.newBindingForm.setValue({title:i.title,code:i.code?i.code:"",type:i.type,ecl:i.ecl,value:i.value,note:i.note}),this.newPanel.open()}onDrop(e){cA(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const i=this.newBindingForm.get(e);return i?i.errors:null}getErrorMessage(e){const i=this.getErrors(e);if(i){if(i.required)return"This field is required";if(i.maxlength)return`This field must be less than ${i.maxlength.requiredLength} characters`;if(i.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(i.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}refreshResponse(){this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,i]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2),this.refreshResponseBundle()}refreshResponseBundle(){this.responseBundle={resourceType:"Bundle",type:"collection",entry:[]};for(let[e,i]of Object.entries(this.response)){let r=i;const o=r.code?{coding:[{system:"http://snomed.info/sct",code:r.code.code,display:r.code.display}]}:void 0,s=r.value?.code?{coding:[{system:"http://snomed.info/sct",code:r.value.code,display:r.value.display}]}:void 0;let a={resourceType:"Observation",status:"final",category:[{coding:[{system:"http://terminology.hl7.org/CodeSystem/observation-category",code:"survey",display:"Survey"}]}],subject:{reference:"Patient/123"}};a.code=o||{coding:[{system:"http://snomed.info/sct",code:"363788007",display:"Clinical history/examination observable (observable entity)"}]},s&&(a.valueCodeableConcept=s),r.value&&"string"==typeof r.value&&(a.valueString=r.value),(a.valueCodeableConcept||a.valueString)&&this.responseBundle.entry.push(a)}this.responseBundleStr=JSON.stringify(this.responseBundle,null,2)}optionSelected(e,i,r){this.output[e]={code:i,value:r},i||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.formTitle}-data.json`)}saveBundleOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.formTitle}-fhir-bundle.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const i=new FileReader;i.onloadend=r=>{if(i.result){const o=JSON.parse(i.result?.toString());Array.isArray(o)?(this.bindings=o,this.formTitle="My new form"):(this.bindings=[],this.bindings=o.bindings,this.formTitle=o.title),this.clearOutput(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},i.readAsText(e.target.files[0])}}openEclBuilder(e,i){this.dialog.open(F1e,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const s=this.newBindingForm.get(i);s&&s.setValue(o.ecl)}})}toggleCodeBinding(){this.codeBinding=this.codeBinding===this.codeBindingAll?this.codeBindingObservables:this.codeBindingAll}toggleCheckboxBinding(){this.checkboxBinding=this.checkboxBinding.ecl===this.codeBindingAll.ecl?JSON.parse(JSON.stringify(this.codeBindingObservables)):JSON.parse(JSON.stringify(this.codeBindingAll)),this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(tA),w(Um))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(i,r){if(1&i&&vt(kke,5),2&i){let o;Re(o=Pe())&&(r.newPanel=o.first)}},decls:94,vars:27,consts:[["substancePopoverMenu","matMenu"],["newPanel",""],["fileInput",""],["demosMenu","matMenu"],["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click","disableRipple"],[1,"flex","flex-row","mb-8"],[1,"w-2/3"],[1,"editPanel","w-full","pt-4","pb-4",3,"opened","closed"],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"form-row"],[1,"form-column"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["href","javascript:void(0)",1,"bottom-right-link",3,"click"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],["class","input-field full-width",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],[1,"w-1/3"],[1,"flex","flex-row","gap-4","justify-end","flex-wrap"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","Data collected (FHIR Bundle)"],["label","FHIR Questionnaire"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"value"],["matInput","","type","text","formControlName","ecl","placeholder","Enter ECL..."],["href","javascript:void(0)",1,"top-right-link",3,"click"],["formControlName","ecl",1,"grow",3,"binding"],[1,"input-field","full-width"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"compact-row-container"],[1,"title"],["mat-icon-button","","color","primary",1,"tool",3,"click"],[1,"row","form-title"],["matInput","","type","text","placeholder","Enter title...",3,"ngModelChange","ngModel","ngModelOptions"],["cdkDrag","",1,"output-panel"],[1,"row","control"],["cdkDragHandle","",1,"tool","drag-handle"],["class","grow",3,"binding","selectionChange",4,"ngIf"],["class","title grow",4,"ngIf"],["class","grow",3,"binding","textChange",4,"ngIf"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled",4,"ngIf"],["mat-menu-item","",3,"disableRipple","click",4,"ngIf"],[1,"grow",3,"selectionChange","binding"],[1,"title","grow"],[1,"grow",3,"textChange","binding"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",4)(1,"h3"),k(2,"Terminology Bindings Sandbox "),_(3,"button",5)(4,"mat-icon"),k(5,"info"),b()(),_(6,"mat-menu",null,0)(8,"span",6),U("click",function(a){return j(o),G(a.stopPropagation())}),_(9,"h4"),k(10,"Terminology Bindings Sandbox"),b(),_(11,"p"),k(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),b()()()(),_(13,"div",7)(14,"div",8)(15,"mat-expansion-panel",9,1),U("opened",function(){return j(o),G(r.panelOpenState=!0)})("closed",function(){return j(o),G(r.panelOpenState=!1)}),_(17,"mat-expansion-panel-header")(18,"mat-panel-title")(19,"h4"),k(20,"New binding:"),b()(),q(21,Tke,2,0,"mat-panel-description",10),b(),_(22,"div")(23,"form",11)(24,"div",12)(25,"div",13)(26,"h5"),k(27,"Question"),b(),_(28,"mat-form-field",14)(29,"mat-label"),k(30,"Question text"),b(),xe(31,"input",15),q(32,Eke,3,0,"button",16),_(33,"mat-error"),k(34),b()(),_(35,"mat-form-field",17),xe(36,"app-autocomplete-binding",18),_(37,"a",19),U("click",function(){return j(o),G(r.toggleCodeBinding())}),q(38,Ske,2,0,"span",10)(39,Dke,2,0,"span",10),b(),_(40,"mat-error"),k(41),b()()(),_(42,"div",13)(43,"h5"),k(44,"Answer"),b(),_(45,"mat-form-field",14)(46,"mat-label"),k(47,"Answer Type"),b(),_(48,"mat-select",20),q(49,Ike,2,2,"mat-option",21),b(),_(50,"mat-error"),k(51),b()(),q(52,Mke,9,2,"mat-form-field",22)(53,Fke,7,4,"mat-form-field",22),b()(),q(54,Nke,7,2,"mat-form-field",23),b(),xe(55,"br"),_(56,"div",24),xe(57,"span",25),q(58,Lke,2,0,"button",26)(59,Vke,2,0,"button",26),_(60,"button",27),U("click",function(){return j(o),G(r.cancelEdit())}),k(61,"Cancel"),b()()()()(),_(62,"div",28)(63,"div",29),q(64,Bke,2,1,"button",30),_(65,"input",31,2),U("change",function(a){return j(o),G(r.uploadFile(a))}),b(),q(67,Uke,2,1,"button",32),_(68,"mat-menu",33,3)(70,"button",34),U("click",function(){return j(o),G(r.saveForm())}),k(71,"Download"),b(),_(72,"button",34),U("click",function(){return j(o),G(r.saveOutput(r.fhirQuestionnaireStr))}),k(73,"Download as FHIR Questionnaire"),b()(),_(74,"button",35),U("click",function(){return j(o),G(jt(66).click())}),k(75,"Upload form"),b(),_(76,"button",35),U("click",function(){return j(o),G(r.loadExample1())}),k(77,"Example"),b(),_(78,"button",35),U("click",function(){return j(o),G(r.clear())}),k(79,"Clear"),b()()()(),q(80,zke,6,1,"div",36)(81,Hke,12,3,"div",36),_(82,"div",37)(83,"div",38)(84,"div",39),U("cdkDropListDropped",function(a){return j(o),G(r.onDrop(a))}),q(85,eCe,23,11,"div",40),b()(),_(86,"div",38)(87,"mat-tab-group",41)(88,"mat-tab",42),q(89,nCe,4,5,"div",43),b(),_(90,"mat-tab",44),q(91,rCe,4,5,"div",43),b(),_(92,"mat-tab",45),q(93,sCe,4,5,"div",43),b()()()()()}if(2&i){let o;const s=jt(7);y(3),T("matMenuTriggerFor",s),y(5),T("disableRipple",!0),y(13),T("ngIf",!r.panelOpenState),y(2),T("formGroup",r.newBindingForm),y(9),T("ngIf",null==(o=r.newBindingForm.get("title"))?null:o.value),y(2),Ke(r.getErrorMessage("title")),y(2),T("binding",r.codeBinding),y(2),T("ngIf",r.codeBinding===r.codeBindingAll),y(),T("ngIf",r.codeBinding!=r.codeBindingAll),y(2),Ke(r.getErrorMessage("code")),y(8),T("ngForOf",r.controlTypes),y(2),Ke(r.getErrorMessage("type")),y(),T("ngIf","Section header"!=r.newBindingForm.controls.type.value&&"Text box"!=r.newBindingForm.controls.type.value&&"Checkbox"!=r.newBindingForm.controls.type.value&&"Integer"!=r.newBindingForm.controls.type.value&&"Decimal"!=r.newBindingForm.controls.type.value),y(),T("ngIf","Checkbox"==r.newBindingForm.controls.type.value),y(),T("ngIf","Section header"!=r.newBindingForm.controls.type.value),y(4),T("ngIf",-1==r.indexInEdit),y(),T("ngIf",r.indexInEdit>-1),y(5),T("ngIf",r.bindings.length),y(3),T("ngIf",r.bindings.length),y(13),T("ngIf",!r.titleEditMode),y(),T("ngIf",r.titleEditMode),y(2),T("@growShrink",r.stateName),y(2),T("ngForOf",r.bindings),y(),T("@openClose",r.stateName),y(3),T("ngIf",r.bindings.length>0),y(2),T("ngIf",r.bindings.length>0),y(2),T("ngIf",r.bindings.length>0)}},dependencies:[ro,$r,u1,hA,dA,v7,Eo,ia,So,Pa,mc,Wu,Fa,Bs,EH,DH,fd,kd,l0,ra,Yo,n0,wd,d0,d1,h0,f0,_s,Xu,Ju,z7,q1e,K1e,Q1e,u0,Z1e,ake,cke,yke,xke,wke],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{border:1px solid #cccccc00;border-radius:5px;background-color:#a0c8e5}.control[_ngcontent-%COMP%]{margin-bottom:30px}.output-panel[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{opacity:0;transition:opacity .5s}.row[_ngcontent-%COMP%]:hover .tool[_ngcontent-%COMP%]{opacity:1}.drag-handle[_ngcontent-%COMP%]{cursor:move;color:#616161}.title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-bottom:10px;margin-left:2rem}.action-button[_ngcontent-%COMP%]{position:absolute;right:0;margin-right:20px}.action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.compact-row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem}.row-container-item[_ngcontent-%COMP%]{width:100%;padding:10px}.output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.top-right-link[_ngcontent-%COMP%]{position:absolute;top:5px;right:0;font-size:smaller}.form-title[_ngcontent-%COMP%]{margin-left:1rem}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}.bottom-right-link[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;font-size:smaller}.form-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px;width:100%}.form-column[_ngcontent-%COMP%]{flex:1 1 0px;padding-right:10px;padding-left:10px;display:flex;flex-direction:column;width:100%}.input-field.full-width[_ngcontent-%COMP%]{width:calc(100% - 20px);margin-bottom:20px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}"],data:{animation:[Yn("openClose",[bn("open",We({opacity:1,width:"50%"})),bn("closed",We({opacity:0,width:"0"})),Xt("open <=> closed",[qt("0.5s")])]),Yn("growShrink",[bn("open",We({width:"50%"})),bn("closed",We({width:"100%"})),Xt("open <=> closed",[qt("0.5s")])])]}})}return t})(),cCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(i,r){1&i&&(_(0,"p"),k(1,"prescription-main works!, no?"),b())}})}return t})();const lCe=["mat-sort-header",""],dCe=["*"];function uCe(t,n){if(1&t){const e=Se();_(0,"div",2),U("@arrowPosition.start",function(){return j(e),G(R()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return j(e),G(R()._disableViewStateAnimation=!1)}),xe(1,"div",3),_(2,"div",4),xe(3,"div",5)(4,"div",6)(5,"div",7),b()()}if(2&t){const e=R();T("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),y(2),T("@indicator",e._getArrowDirectionState()),y(),T("@leftPointer",e._getArrowDirectionState()),y(),T("@rightPointer",e._getArrowDirectionState())}}const Q7=new J("MAT_SORT_DEFAULT_OPTIONS");let Td=(()=>{class t{get direction(){return this._direction}set direction(e){this._direction=e}constructor(e){this._defaultOptions=e,this._initializedStream=new iw(1),this.sortables=new Map,this._stateChanges=new Me,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new Ce,this.initialized=this._initializedStream}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function hCe(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Q7,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[W.None,"matSortActive","active"],start:[W.None,"matSortStart","start"],direction:[W.None,"matSortDirection","direction"],disableClear:[W.HasDecoratorInputTransform,"matSortDisableClear","disableClear",Ue],disabled:[W.HasDecoratorInputTransform,"matSortDisabled","disabled",Ue]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[Kt,Un]})}return t})();const Ed=I_e.ENTERING+" "+D_e.STANDARD_CURVE,Hm={indicator:Yn("indicator",[bn("active-asc, asc",We({transform:"translateY(0px)"})),bn("active-desc, desc",We({transform:"translateY(10px)"})),Xt("active-asc <=> active-desc",qt(Ed))]),leftPointer:Yn("leftPointer",[bn("active-asc, asc",We({transform:"rotate(-45deg)"})),bn("active-desc, desc",We({transform:"rotate(45deg)"})),Xt("active-asc <=> active-desc",qt(Ed))]),rightPointer:Yn("rightPointer",[bn("active-asc, asc",We({transform:"rotate(45deg)"})),bn("active-desc, desc",We({transform:"rotate(-45deg)"})),Xt("active-asc <=> active-desc",qt(Ed))]),arrowOpacity:Yn("arrowOpacity",[bn("desc-to-active, asc-to-active, active",We({opacity:1})),bn("desc-to-hint, asc-to-hint, hint",We({opacity:.54})),bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",We({opacity:0})),Xt("* => asc, * => desc, * => active, * => hint, * => void",qt("0ms")),Xt("* <=> *",qt(Ed))]),arrowPosition:Yn("arrowPosition",[Xt("* => desc-to-hint, * => desc-to-active",qt(Ed,Am([We({transform:"translateY(-25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-desc, * => active-to-desc",qt(Ed,Am([We({transform:"translateY(0)"}),We({transform:"translateY(25%)"})]))),Xt("* => asc-to-hint, * => asc-to-active",qt(Ed,Am([We({transform:"translateY(25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-asc, * => active-to-asc",qt(Ed,Am([We({transform:"translateY(0)"}),We({transform:"translateY(-25%)"})]))),bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",We({transform:"translateY(0)"})),bn("hint-to-desc, active-to-desc, desc",We({transform:"translateY(-25%)"})),bn("hint-to-asc, active-to-asc, asc",We({transform:"translateY(25%)"}))]),allowChildren:Yn("allowChildren",[Xt("* <=> *",[Ew("@*",Tw(),{optional:!0})])])};let y1=(()=>{class t{constructor(){this.changes=new Me}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const mCe={provide:y1,deps:[[new Hl,new df,y1]],useFactory:function fCe(t){return t||new y1}};let yA=(()=>{class t{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}constructor(e,i,r,o,s,a,c,l){this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",l?.arrowPosition&&(this.arrowPosition=l?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Ci(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(y1),w(gn),w(Td,8),w("MAT_SORT_HEADER_COLUMN_DEF",8),w(ta),w(He),w(d9,8),w(Q7,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){1&i&&U("click",function(){return r._handleClick()})("keydown",function(s){return r._handleKeydown(s)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),2&i&&(_t("aria-sort",r._getAriaSortAttribute()),lt("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[W.None,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],sortActionDescription:"sortActionDescription",disableClear:[W.HasDecoratorInputTransform,"disableClear","disableClear",Ue]},exportAs:["matSortHeader"],standalone:!0,features:[Kt,St],attrs:lCe,ngContentSelectors:dCe,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){1&i&&(Mn(),_(0,"div",0)(1,"div",1),ct(2),b(),q(3,uCe,6,6,"div",2),b()),2&i&&(lt("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before","before"===r.arrowPosition),_t("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),y(3),_n(3,r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Hm.indicator,Hm.leftPointer,Hm.rightPointer,Hm.arrowOpacity,Hm.arrowPosition,Hm.allowChildren]},changeDetection:0})}return t})(),pCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[mCe],imports:[Ft]})}return t})(),gCe=(()=>{class t{saveItem(e,i){localStorage.setItem(e,i)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}isLocalStorageSupported(){try{const e="__test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jm=(()=>{class t{constructor(e,i){this.http=e,this.storageService=i,this.baseUrlSubject=new wi("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new wi(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const i=this.storageService.getItem("userTag");i&&this.userTagSubject.next(i)}}setBaseUrl(e){this.baseUrlSubject.next(e),this.storageService.saveItem("baseUrl",e)}getBaseUrl(){return this.baseUrlSubject.getValue()}setUserTag(e){this.userTagSubject.next(e),this.storageService.saveItem("userTag",e)}getUserTag(){return this.userTagSubject.getValue()}postQuestionnaire(e){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire`,e)}getQuestionnairesByTag(e){return this.http.get(`${this.baseUrlSubject.value}/Questionnaire?_tag=${e}`)}tagQuestionnaire(e,i){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:i}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,i){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${i}`,e).pipe(Ar(o=>404===o.status?this.postQuestionnaire(e):lm(o))):this.postQuestionnaire(e)}getQuestionnaireHistory(e){return this.http.get(`${this.getBaseUrl()}/Questionnaire/${e}/_history`)}getSpecificQuestionnaireVersion(e,i){return this.http.get(`${this.getBaseUrl()}/Questionnaire/${e}/_history/${i}`)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y(gCe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _Ce(t,n){if(1&t&&(_(0,"mat-option",15),k(1),b()),2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e.title," ")}}function bCe(t,n){1&t&&xe(0,"mat-spinner",16)}function vCe(t,n){if(1&t){const e=Se();_(0,"div",17)(1,"span",18),k(2,"\u2261"),b(),k(3),_(4,"button",19),U("click",function(){const r=j(e).index;return G(R().deleteQuestionnaire(r))}),_(5,"mat-icon"),k(6,"delete"),b()()()}if(2&t){const e=n.$implicit;y(3),Je(" ",e.title," ")}}let K7=(()=>{class t{constructor(e,i,r,o){this.fb=e,this.fhirService=i,this.data=r,this.dialogRef=o,this.allQuestionnaires=[],this.availableQuestionnaires=[],this.addedQuestionnaires=[],this.userTag="",this.loading=!1}ngOnInit(){this.questionnaireForm=this.fb.group({selectedQuestionnaire:[{value:"",disabled:!0}],assignedName:[{value:"",disabled:!0}]}),this.data&&(this.addedQuestionnaires=this.data.questionnaires,this.questionnaireForm.get("assignedName")?.setValue(this.data.title)),this.questionnaireForm.get("selectedQuestionnaire"),this.userTag=this.fhirService.getUserTag(),this.loadAvailableQuestionnaires()}updateAvailableQuestionnaires(){this.availableQuestionnaires=this.addedQuestionnaires?this.allQuestionnaires.filter(e=>!this.addedQuestionnaires.some(i=>i.id===e.id)):this.allQuestionnaires,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode))}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(i=>i.resource),this.allQuestionnaires.sort((i,r)=>i.title.localeCompare(r.title)),this.updateAvailableQuestionnaires(),this.loading=!1,this.questionnaireForm?.get("selectedQuestionnaire")?.enable(),this.questionnaireForm?.get("assignedName")?.enable()})}addQuestionnaire(){const e=this.questionnaireForm.value;e.selectedQuestionnaire&&(this.addedQuestionnaires.push({...e.selectedQuestionnaire,assignedName:e.assignedName}),this.questionnaireForm.get("selectedQuestionnaire")?.reset(),this.updateAvailableQuestionnaires())}drop(e){cA(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}static#e=this.\u0275fac=function(i){return new(i||t)(w(CH),w(jm),w(b1),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-create-root-module"]],decls:26,vars:6,consts:[[1,"form-layout",3,"formGroup"],[1,"form-row"],[1,"full-width"],["matInput","","formControlName","assignedName"],[1,"half-width"],["formControlName","selectedQuestionnaire"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",1,"add-button",3,"click","disabled"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"questionnaire-list"],[1,"list",3,"cdkDropListDropped"],["cdkDrag","","class","cdk-drag",4,"ngFor","ngForOf"],[1,"button-container"],["mat-flat-button","","color","primary","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"click","disabled"],[3,"value"],["diameter","35",1,"loading-spinner"],["cdkDrag","",1,"cdk-drag"],[1,"drag-handle"],["mat-icon-button","","aria-label","Delete questionnaire",3,"click"]],template:function(i,r){1&i&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Create a modular Questionnaire"),b(),_(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),k(7,"Assign Name"),b(),xe(8,"input",3),b()(),_(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),k(12,"Select Child Questionnaire"),b(),_(13,"mat-select",5),q(14,_Ce,2,2,"mat-option",6),b()(),_(15,"button",7),U("click",function(){return r.addQuestionnaire()}),k(16,"Add questionnaire"),b(),q(17,bCe,1,0,"mat-spinner",8),b()(),_(18,"div",9)(19,"cdk-drop-list",10),U("cdkDropListDropped",function(s){return r.drop(s)}),q(20,vCe,7,1,"div",11),b()()(),_(21,"mat-dialog-actions",12)(22,"button",13),k(23,"Cancel"),b(),_(24,"button",14),U("click",function(){return r.closeModal()}),k(25,"Save"),b()()),2&i&&(y(3),T("formGroup",r.questionnaireForm),y(11),T("ngForOf",r.availableQuestionnaires),y(),T("disabled",r.loading),y(2),T("ngIf",r.loading),y(3),T("ngForOf",r.addedQuestionnaires),y(4),T("disabled",r.isSaveDisabled()||r.loading))},dependencies:[ro,$r,hA,dA,Eo,ia,So,Fa,Bs,fd,md,kd,l0,ra,Yo,n0,wd,d0,f0,zm,v0,b0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]})}return t})(),X7=(()=>{class t{constructor(e,i){this.http=e,this.fhirService=i}generateRootQuestionnaire(e,i){var r=this;return me(function*(){try{let s=yield Co(r.http.get("assets/questionnaires/root-questionnaire-template.json"));s.title=e;let a=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),i.forEach(d=>{a++,d.url=c+"/Questionnaire/"+d.id,s.item.push({linkId:a.toString(),text:d.title,type:"group",required:!1,item:[{extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",valueCanonical:d.url}],linkId:a.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),s}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}getRootQuestionnaireData(e){var i=this;return me(function*(){if(!e||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=e.item.filter(a=>"group"===a.type&&a.item&&Array.isArray(a.item)).flatMap(a=>a.item).map(function(){var a=me(function*(c){const l=c.extension?.find(d=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===d.url);return l?i.getQuestionnaireFromUrl(l.valueCanonical):null});return function(c){return a.apply(this,arguments)}}());return{title:r,questionnaires:(yield Promise.all(o)).filter(a=>null!==a)}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(i=>"assemble-root"===i.valueCode)}assembleQuestionnaire(e){var i=this;return me(function*(){if(e=JSON.parse(JSON.stringify(e)),!i.checkForAssembleRoot(e))return null;for(let r of e.item)if("group"==r.type){r.extension=[];for(let o of r.item)if(o.extension&&Array.isArray(o.extension))for(let s of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===s.url){let a=yield i.getQuestionnaireFromUrl(s.valueCanonical);a&&(r.item=a.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:s.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}disassembleQuestionnaire(e){var i=this;return me(function*(){if(!e||!e.item||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=[];for(const s of e.item)if("group"===s.type&&s.extension&&Array.isArray(s.extension)){const a=s.extension.find(c=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"===c.url);if(a){const c=a.valueCanonical,l=yield i.getQuestionnaireFromUrl(c);l&&o.push(l)}}return{title:r,questionnaires:o}})()}getQuestionnaireFromUrl(e){var i=this;return me(function*(){try{return yield Co(i.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y(jm))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yCe=t=>["status-pill",t],xCe=()=>["status-pill","active"],wCe=()=>["status-pill","draft"];function kCe(t,n){1&t&&(_(0,"th",17),k(1," Title "),b())}function CCe(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.title," ")}}function TCe(t,n){1&t&&(_(0,"th",17),k(1," Status "),b())}function ECe(t,n){if(1&t&&(_(0,"td",18)(1,"span",19),k(2),wo(3,"uppercase"),b()()),2&t){const e=n.$implicit;y(),T("ngClass",Ea(4,yCe,e.status)),y(),Ke(oc(3,2,e.status))}}function SCe(t,n){1&t&&(_(0,"th",17),k(1," Version "),b())}function DCe(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.meta.versionId," ")}}function ICe(t,n){1&t&&(_(0,"th",17),k(1," Type "),b())}function ACe(t,n){1&t&&(_(0,"span",19),k(1,"QUESTIONNAIRE"),b()),2&t&&T("ngClass",hs(1,xCe))}function MCe(t,n){1&t&&(_(0,"span",19),k(1,"MODULAR ROOT"),b()),2&t&&T("ngClass",hs(1,wCe))}function RCe(t,n){if(1&t&&(_(0,"td",18),q(1,ACe,2,2,"span",20)(2,MCe,2,2,"span",20),b()),2&t){const e=n.$implicit,i=R();y(),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e))}}function PCe(t,n){1&t&&(_(0,"th",21),k(1," Actions "),b())}function FCe(t,n){if(1&t){const e=Se();_(0,"button",32),U("click",function(){j(e);const r=R().$implicit;return G(R().validate(r))}),_(1,"mat-icon"),k(2,"done"),b()()}if(2&t){const e=R().$implicit;T("disabled",R().isRootQuestionnaire(e))}}function OCe(t,n){if(1&t){const e=Se();_(0,"button",33),U("click",function(){j(e);const r=R().$implicit;return G(R().assemble(r))}),_(1,"mat-icon"),k(2,"build"),b()()}}function NCe(t,n){if(1&t){const e=Se();_(0,"button",34),U("click",function(){j(e);const r=R().$implicit;return G(R().preview(r))}),_(1,"mat-icon"),k(2,"visibility"),b()()}}function LCe(t,n){if(1&t){const e=Se();_(0,"button",35),U("click",function(){j(e);const r=R().$implicit;return G(R().openInNewTab(r))}),_(1,"mat-icon"),k(2,"open_in_new"),b()()}}function VCe(t,n){if(1&t){const e=Se();_(0,"button",36),U("click",function(){j(e);const r=R().$implicit;return G(R().editQuestionnaire(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function BCe(t,n){if(1&t){const e=Se();_(0,"button",37),U("click",function(){j(e);const r=R().$implicit;return G(R().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function UCe(t,n){if(1&t){const e=Se();_(0,"td",18),q(1,FCe,3,1,"button",22)(2,OCe,3,0,"button",23)(3,NCe,3,0,"button",24)(4,LCe,3,0,"button",25),_(5,"button",26),U("click",function(){const r=j(e).$implicit;return G(R().saveQuestionnaire(r))}),_(6,"mat-icon"),k(7,"cloud_download"),b()(),q(8,VCe,3,0,"button",27)(9,BCe,3,0,"button",28),_(10,"button",29),U("click",function(){const r=j(e).$implicit;return G(R().viewHistory(r))}),_(11,"mat-icon"),k(12,"history"),b()(),_(13,"span",30)(14,"button",31),U("click",function(){const r=j(e).$implicit;return G(R().deleteQuestionnaire(r))}),_(15,"mat-icon"),k(16,"delete"),b()()()()}if(2&t){const e=n.$implicit,i=R();y(),T("ngIf",i.config.validate),y(),T("ngIf",i.isRootQuestionnaire(e)),y(),T("ngIf",i.config.preview&&!i.isRootQuestionnaire(e)),y(),T("ngIf",i.config.preview),y(4),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e)),y(),T("disabled",1==e.meta.versionId),y(3),em("matTooltip",i.getDeleteTooltip(e)),y(),T("disabled",i.getReferencingQuestionnaires(e).length>0)}}function zCe(t,n){1&t&&xe(0,"tr",38)}function HCe(t,n){1&t&&xe(0,"tr",39)}function jCe(t,n){1&t&&(_(0,"p",40)(1,"i"),k(2," No questionnaires found. Upload your questionnaires to start. "),b()())}function $Ce(t,n){1&t&&xe(0,"mat-spinner",41)}function GCe(t,n){if(1&t){const e=Se();_(0,"button",42),U("click",function(){return j(e),G(R().downloadAllQuestionnaires())}),k(1," Download bundle "),b()}}let Y7=(()=>{class t{constructor(e,i,r,o){this.fhirService=e,this.questionnaireService=i,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Ce,this.validateQuestionnaire=new Ce,this.previewQuestionnaire=new Ce,this.viewQuestionaireHistory=new Ce,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new qu,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new Me,this.userTagChanged=new Me,this.fbUrl="https://formbuilder.nlm.nih.gov",this.blankQuestionnaire={resourceType:"Questionnaire",title:"New Form",status:"draft",item:[{type:"string",linkId:"4009522077787",text:"Item 0"}]}}ngOnInit(){Jc([this.fhirService.baseUrl$.pipe(nl(1e3),il()),this.fhirService.userTag$.pipe(nl(1e3),il())]).subscribe(([e,i])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==i)&&(this.selectedFhirServer=e,this.selectedUserTag=i,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,i)=>{switch(i){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[i]}},this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires()}loadQuestionnaires(){this.loading=!0,this.notFound=!1,this.questionnaires=[],this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{e.entry?(this.questionnaires=e.entry.map(i=>i.resource),this.dataSource.data=this.questionnaires,this.dataSource.sort=this.sort,this.loading=!1):(this.questionnaires=[],this.dataSource.data=this.questionnaires,this.loading=!1,this.notFound=!0)})}updateQuestionnairesList(e){const i=this.questionnaires.findIndex(r=>r.id===e.id);-1!==i?(this.questionnaires[i]=e,this.dataSource.data=this.questionnaires):(this.questionnaires.push(e),this.dataSource.data=this.questionnaires)}addQuestionnaire(e){this.updateQuestionnairesList(e)}deleteQuestionnaire(e){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(i=>i.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}viewHistory(e){this.viewQuestionaireHistory.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode)}assemble(e){this._snackBar.openFromComponent(Ti,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(i=>{i.title=e.title+" (assembled)",this.previewQuestionnaire.emit(i),this._snackBar.openFromComponent(Ti,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(i=>{console.error("Error assembling questionnaire:",i)})}createQuestionnaire(){let e=this.blankQuestionnaire;e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.editQuestionnaire(e)}editQuestionnaire(e){const i=window.open(this.fbUrl+"/window-open?referrer="+encodeURIComponent(window.location.href));window.addEventListener("message",function o(s){if(s.origin===r.fbUrl){const c=s.data.questionnaire;switch(s.data.type){case"initialized":i?.postMessage({type:"initialQuestionnaire",questionnaire:e},r.fbUrl);break;case"updateQuestionnaire":break;case"closed":r.fhirService.updateOrCreateQuestionnaire(c,r.selectedUserTag).pipe(ea()).subscribe(l=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(l)},l=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}}},!0);let r=this}openModularQuestionnaireModal(e){var i=this;return me(function*(){let r=yield i.questionnaireService.getRootQuestionnaireData(e);i.dialog.open(K7,{data:r,width:"75%"}).afterClosed().subscribe(s=>{s&&i.handleDialogResult(s,e)})})()}handleDialogResult(e,i){var r=this;return me(function*(){r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Updating questionnaire...",panelClass:["green-snackbar"]});try{let o=yield r.questionnaireService.generateRootQuestionnaire(e.title,e.questionnaires);o&&(i.title=e.title,i.item=o.item,r.addQuestionnaire(i),r.fhirService.updateOrCreateQuestionnaire(i,r.selectedUserTag).pipe(ea()).subscribe(s=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(s)},s=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}getReferencingQuestionnaires(e){let r=`${this.fhirService.getBaseUrl()}/Questionnaire/${e.id}`;return this.dataSource.data.filter(s=>s.item&&Array.isArray(s.item)&&s.item.some(a=>a.item&&Array.isArray(a.item)&&a.item.some(c=>c.extension&&Array.isArray(c.extension)&&c.extension.some(l=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===l.url&&l.valueCanonical===r))))}getDeleteTooltip(e){const i=this.getReferencingQuestionnaires(e);return 0===i.length?"Delete Questionnaire":`Cannot delete: Referenced by ${i.map(o=>`"${o.title}"`).join(", ")}`}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm),w(X7),w(Um),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(i,r){if(1&i&&vt(Td,5),2&i){let o;Re(o=Pe())&&(r.sort=o.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire",viewQuestionaireHistory:"viewQuestionaireHistory"},features:[Un],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","View Questionnaire History",1,"action-button",3,"click","disabled"],[3,"matTooltip"],["mat-icon-button","","color","accent",3,"click","disabled"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"click","disabled"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"table",1),zt(2,2),q(3,kCe,2,0,"th",3)(4,CCe,2,1,"td",4),Ht(),zt(5,5),q(6,TCe,2,0,"th",3)(7,ECe,4,6,"td",4),Ht(),zt(8,6),q(9,SCe,2,0,"th",3)(10,DCe,2,1,"td",4),Ht(),zt(11,7),q(12,ICe,2,0,"th",3)(13,RCe,3,2,"td",4),Ht(),zt(14,8),q(15,PCe,2,0,"th",9)(16,UCe,17,9,"td",4),Ht(),q(17,zCe,1,0,"tr",10)(18,HCe,1,0,"tr",11),b(),q(19,jCe,3,0,"p",12)(20,$Ce,1,0,"mat-spinner",13),b(),_(21,"div",14)(22,"div",15),q(23,GCe,2,0,"button",16),b()()),2&i&&(y(),T("dataSource",r.dataSource),y(16),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",r.notFound&&!r.questionnaires.length),y(),T("ngIf",r.loading),y(3),T("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[Da,$r,Eo,ia,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,OD],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:2rem}"]})}return t})(),WCe=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"questionnaireSelected","config"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(i,r){1&i&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Available Questionnaires"),b(),_(3,"app-list-questionnaires",0),U("questionnaireSelected",function(s){return r.selectAndDownload(s)}),b()(),_(4,"mat-dialog-actions",1)(5,"button",2),k(6,"Close"),b()()),2&i&&(y(3),T("config",r.listConfig))},dependencies:[Eo,zm,v0,b0,Y7]})}return t})();const qCe=["settingsForm"];function QCe(t,n){1&t&&(_(0,"mat-error"),k(1,"Base URL is required"),b())}function KCe(t,n){1&t&&(_(0,"mat-error"),k(1,"User Tag is required and must be at least 3 characters"),b())}let xA=(()=>{class t{constructor(e,i){this.fhirService=e,this.dialogRef=i,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const i=this.settingsForm.control.get(e);i?.markAsTouched({onlySelf:!0}),i?.markAsDirty({onlySelf:!0})})}ngOnInit(){this.baseUrl=this.fhirService.getBaseUrl(),this.userTag=this.fhirService.getUserTag()}updateSettings(){this.settingsForm.valid&&(this.fhirService.setBaseUrl(this.baseUrl),this.fhirService.setUserTag(this.userTag),this.dialogRef.close("save"))}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(i,r){if(1&i&&vt(qCe,5),2&i){let o;Re(o=Pe())&&(r.settingsForm=o.first)}},decls:29,vars:5,consts:[["settingsForm","ngForm"],["baseUrlField","ngModel"],["userTagField","ngModel"],[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["matInput","","name","baseUrl","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModelChange","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(i,r){if(1&i){const o=Se();_(0,"div",3)(1,"h2"),k(2,"FHIR Server Connection"),b(),_(3,"p"),k(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),_(5,"b"),k(6,"User Tag"),b(),k(7,", this value will be used to identify your questionnaires."),b(),_(8,"p",4),k(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),b(),_(10,"form",5,0),U("ngSubmit",function(){return j(o),G(r.updateSettings())}),_(12,"mat-form-field")(13,"mat-label"),k(14,"Base URL of the FHIR Server"),b(),_(15,"input",6,1),Dr("ngModelChange",function(a){return j(o),jr(r.baseUrl,a)||(r.baseUrl=a),G(a)}),b(),q(17,QCe,2,0,"mat-error",7),b(),_(18,"mat-form-field")(19,"mat-label"),k(20,"User Tag"),b(),_(21,"input",8,2),Dr("ngModelChange",function(a){return j(o),jr(r.userTag,a)||(r.userTag=a),G(a)}),b(),q(23,KCe,2,0,"mat-error",7),b(),_(24,"div",9)(25,"button",10),k(26,"Open FHIR Repository"),b(),_(27,"button",11),k(28,"Close"),b()()()()}if(2&i){const o=jt(11),s=jt(16),a=jt(22);y(15),Sr("ngModel",r.baseUrl),y(2),T("ngIf",s.invalid&&s.touched),y(4),Sr("ngModel",r.userTag),y(2),T("ngIf",a.invalid&&a.touched),y(2),T("disabled",!o.valid)}},dependencies:[$r,Eo,Fa,Bs,EH,kd,l0,ra,Yo,n0,n1,Y2,_s,Xu,zm],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]})}return t})(),Z7=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(b1),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(i,r){1&i&&(_(0,"h1",0),k(1),b(),_(2,"div",1)(3,"p"),k(4),b()(),_(5,"div",2)(6,"button",3),k(7,"Yes"),b(),_(8,"button",3),k(9,"No"),b()()),2&i&&(y(),Ke(r.data.title),y(3),Ke(r.data.message),y(2),T("mat-dialog-close",!0),y(2),T("mat-dialog-close",!1))},dependencies:[Eo,zm,_A,v0,b0],encapsulation:2})}return t})();const XCe=new J("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let J7=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new Ce,this._mode="determinate",this._transitionendHandler=a=>{0===this.animationEnd.observers.length||!a.target||!a.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===o,s&&(s.color&&(this.color=this._defaultColor=s.color),this.mode=s.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(e){this._color=e}get value(){return this._value}set value(e){this._value=ej(e||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=ej(e||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(gn),w(pi,8),w(XCe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(i,r){2&i&&(_t("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),Ys("mat-"+r.color),lt("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:[W.HasDecoratorInputTransform,"value","value",Xi],bufferValue:[W.HasDecoratorInputTransform,"bufferValue","bufferValue",Xi],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[Kt,St],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,r){1&i&&(_(0,"div",0),xe(1,"div",1)(2,"div",2),b(),_(3,"div",3),xe(4,"span",4),b(),_(5,"div",5),xe(6,"span",4),b()),2&i&&(y(),Ki("flex-basis",r._getBufferBarFlexBasis()),y(2),Ki("transform",r._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}.mdc-linear-progress__buffer-dots{background-color:var(--mdc-linear-progress-track-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E\")}}.mdc-linear-progress__buffer-bar{background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:start;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function ej(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let ZCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft]})}return t})();const JCe=["questionnairesList"];function eTe(t,n){if(1&t&&(_(0,"div",20),xe(1,"mat-progress-bar",21),_(2,"div",22),k(3),b()()),2&t){const e=R();y(),T("value",e.validatingProgress),y(2),Je("",e.validatingProgress,"%")}}function tTe(t,n){1&t&&(_(0,"span"),k(1,"Run validation"),b())}function nTe(t,n){1&t&&xe(0,"mat-spinner",23)}function iTe(t,n){if(1&t&&(_(0,"span",29),k(1),b()),2&t){const e=R(2);y(),Je("Error: ",e.loadResults.error,"")}}function rTe(t,n){if(1&t&&(_(0,"span",30),k(1),b()),2&t){const e=R(2);y(),Je("Inactive: ",e.loadResults.inactive,"")}}function oTe(t,n){if(1&t&&(_(0,"span",31),k(1),b()),2&t){const e=R(2);y(),Je("Active: ",e.loadResults.active,"")}}function sTe(t,n){if(1&t&&(_(0,"p",24)(1,"b"),k(2,"Questionnaire:"),b(),k(3),_(4,"i"),k(5),b(),k(6,") - "),_(7,"span",25),k(8),b(),k(9),wo(10,"date"),q(11,iTe,2,1,"span",26)(12,rTe,2,1,"span",27)(13,oTe,2,1,"span",28),b()),2&t){const e=R();y(3),Je(" ",e.questionnaire.title," ("),y(2),Ke(e.questionnaire.url),y(3),Je("",e.dataSource.data.length," bindings"),y(),Iu(" - - Version: ",e.questionnaire.meta.versionId," (",Au(10,8,e.questionnaire.meta.lastUpdated,"fullDate"),") "),y(2),T("ngIf",e.loadResults.total>0),y(),T("ngIf",e.loadResults.total>0),y(),T("ngIf",e.loadResults.total>0)}}function aTe(t,n){1&t&&(_(0,"th",32),k(1," # "),b())}function cTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.order," ")}}function lTe(t,n){1&t&&(_(0,"th",32),k(1," FHIRPath "),b())}function dTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.path," ")}}function uTe(t,n){1&t&&(_(0,"th",32),k(1," Path "),b())}function hTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.readablePath," ")}}function fTe(t,n){1&t&&(_(0,"th",32),k(1,"Code "),b())}function mTe(t,n){if(1&t&&(_(0,"td",33)(1,"a",34),k(2),b()()),2&t){const e=n.$implicit;y(),dx("href","http://snomed.info/id/",e.code,"",wy),y(),Ke(e.code)}}function pTe(t,n){1&t&&(_(0,"th",32),k(1," Display "),b())}function gTe(t,n){if(1&t&&(_(0,"p",38),k(1),b()),2&t){const e=R().$implicit;y(),Je("Concept FSN: ",e.serverDisplay,"")}}function _Te(t,n){1&t&&(_(0,"p",39),k(1,"Concept is inactive"),b())}function bTe(t,n){if(1&t){const e=Se();_(0,"p",40),k(1),_(2,"button",41),U("click",function(){const r=j(e).$implicit,o=R().$implicit;return G(R().replaceInactiveConcept(o,r.replacement))}),_(3,"mat-icon"),k(4,"arrow_forward"),b()()()}if(2&t){const e=n.$implicit,i=R(2);y(),c_(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),y(),T("disabled",i.validating)}}function vTe(t,n){if(1&t&&(_(0,"td",33),k(1),q(2,gTe,2,1,"p",35)(3,_Te,2,0,"p",36)(4,bTe,5,4,"p",37),b()),2&t){const e=n.$implicit;y(),Je(" ",e.display," "),y(),T("ngIf",e.serverDisplay),y(),T("ngIf","Inactive"==e.status),y(),T("ngForOf",e.replacements)}}function yTe(t,n){1&t&&(_(0,"th",32),k(1," System "),b())}function xTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.system," ")}}function wTe(t,n){1&t&&(_(0,"th",32),k(1," Status "),b())}function kTe(t,n){1&t&&(_(0,"span"),xe(1,"mat-progress-bar",42),b())}function CTe(t,n){if(1&t&&(_(0,"span")(1,"span",43),k(2),b()()),2&t){const e=R().$implicit;y(),T("ngClass",e.status),y(),Ke(e.status)}}function TTe(t,n){if(1&t&&(_(0,"td",33),q(1,kTe,2,0,"span",3)(2,CTe,3,2,"span",3),b()),2&t){const e=n.$implicit;y(),T("ngIf","Validating"==e.status),y(),T("ngIf","Validating"!=e.status)}}function ETe(t,n){1&t&&xe(0,"tr",44)}function STe(t,n){1&t&&xe(0,"tr",45)}function DTe(t,n){1&t&&xe(0,"mat-spinner",46)}let ITe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Ce,this.validatingQuestionnaire=new Ce,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new qu,this.validatingProgress=0,this.orderCounter=0,this.loadResults={total:0,active:0,inactive:0,error:0}}ngOnChanges(e){e.questionnaire&&(this.questionnaire?this.loadQuestionnaire(this.questionnaire):this.clearQuestionnaire())}clearQuestionnaire(){this.questionnaire=null,this.dataSource.data=[],this.orderCounter=0,this.validatingProgress=0,this.loadResults={total:0,active:0,inactive:0,error:0}}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e;let i=this.extractObjects(e);this.dataSource.data=i,this.dataSource.sort=this.sort},700)}validate(){var e=this;this.loadResults={total:0,active:0,inactive:0,error:0},this.dataSource.data.forEach(o=>{o.status="Not checked"}),this.validating=!0,this.validatingQuestionnaire.emit(!0);let i=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=me(function*(s){e.loadResults.total++,s.status="Validating",r++,e.validatingProgress=Math.round(r/i*100);try{const a=yield e.terminologyService.lookupConcept(s.code,s.system).pipe(ea()).toPromise();let c=[],l="";for(const d of a.parameter){if("designation"===d.name){let u="",h="";for(const f of d.part)"value"===f.name&&(u=f.valueString),"use"===f.name&&(h=f.valueCoding?.code);c.push(u),"900000000000003001"===h&&(l=u)}"inactive"===d.name&&(d.valueBoolean?(s.status="Inactive",e.loadResults.inactive++):(s.status="Active",e.loadResults.active++))}if((!s.display||!c.includes(s.display))&&(s.serverDisplay=l),"Inactive"==s.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",s.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",s.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",s.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",s.code),m=d.concat(u,h,f);s.replacements=m}}catch{s.status="Error",e.loadResults.error++}});return function(s){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,i){var r=this;return me(function*(){let o=[];const s=r.terminologyService.translate(e,i);let a=yield Co(s.pipe(mt(c=>c)));if(a.parameter)for(const c of a.parameter)if("match"===c.name){let l={replacement:{},equivalence:""};for(const d of c.part)"concept"===d.name&&d.valueCoding&&(l.replacement={code:d.valueCoding.code,display:d.valueCoding.display,system:d.valueCoding.system}),"equivalence"===d.name&&d.valueCode&&(l.equivalence=d.valueCode);o.push(l)}return o})()}removeSemanticTag(e){return e.replace(/\s*\([^)]+\)\s*$/,"").trim().toLowerCase()}asyncForEach(e,i){return me(function*(){for(let r=0;r ${e.text}`:e.text),e.system&&e.system.startsWith("http://snomed.info/sct")&&e.code&&e.display){this.orderCounter++;const s={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:i,readablePath:r,status:"Not checked"};o.some(a=>a.system===s.system&&a.code===s.code&&a.display===s.display)||o.push(s)}if(Array.isArray(e))for(let s in e)o=o.concat(this.extractObjects(e[s],`${i}[${s}]`,r));else for(let s in e)e.hasOwnProperty(s)&&(o=o.concat(this.extractObjects(e[s],i?`${i}.${s}`:s,r)));if(e.answerValueSet){const a=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(a){const c=decodeURIComponent(a),l=/(\d{5,})(?:\s*\|\s*([^|]*)\s*\|)?/g;let d;for(;null!==(d=l.exec(c));)this.orderCounter++,o.push({order:this.orderCounter,code:d[1],display:d[2]?d[2].trim():void 0,system:"http://snomed.info/sct",path:i+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,i){this.searchAndReplace(this.questionnaire,e,i,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,i,r,o){if("object"!=typeof e||null===e)return o;if(e.system==i.system&&e.code==i.code&&e.display==i.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const s=new URL(e.answerValueSet),a=s.searchParams.get("fhir_vs");if(a){const c=decodeURIComponent(a),l=new RegExp(`(\\s|^)${i.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${i.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);s.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=s.toString()}s.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=s.toString()}}}if(Array.isArray(e))for(let s in e)o=this.searchAndReplace(e[s],i,r,o);else for(let s in e)e.hasOwnProperty(s)&&(o=this.searchAndReplace(e[s],i,r,o));return o}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(i,r){if(1&i&&(vt(Td,5),vt(h0,5),vt(JCe,5)),2&i){let o;Re(o=Pe())&&(r.sort=o.first),Re(o=Pe())&&(r.tabGroup=o.first),Re(o=Pe())&&(r.questionnairesList=o.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Un],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container","mt-4"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"click","disabled"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,eTe,4,2,"div",1),_(2,"button",2),U("click",function(){return r.validate()}),q(3,tTe,2,0,"span",3)(4,nTe,1,0,"mat-spinner",4),b()(),q(5,sTe,14,11,"p",5),_(6,"div",6)(7,"table",7),zt(8,8),q(9,aTe,2,0,"th",9)(10,cTe,2,1,"td",10),Ht(),zt(11,11),q(12,lTe,2,0,"th",9)(13,dTe,2,1,"td",10),Ht(),zt(14,12),q(15,uTe,2,0,"th",9)(16,hTe,2,1,"td",10),Ht(),zt(17,13),q(18,fTe,2,0,"th",9)(19,mTe,3,3,"td",10),Ht(),zt(20,14),q(21,pTe,2,0,"th",9)(22,vTe,5,4,"td",10),Ht(),zt(23,15),q(24,yTe,2,0,"th",9)(25,xTe,2,1,"td",10),Ht(),zt(26,16),q(27,wTe,2,0,"th",9)(28,TTe,3,2,"td",10),Ht(),q(29,ETe,1,0,"tr",17)(30,STe,1,0,"tr",18),b(),q(31,DTe,1,0,"mat-spinner",19),b()),2&i&&(y(),T("ngIf",r.validating),y(),T("disabled",r.validating||!r.questionnaire),y(),T("ngIf",!r.validating),y(),T("ngIf",r.validating),y(),T("ngIf",r.questionnaire),y(2),T("dataSource",r.dataSource),y(22),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",r.loading))},dependencies:[Da,ro,$r,Eo,ia,So,J7,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,Ou],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]})}return t})();const ATe=t=>["status-pill",t],MTe=()=>["status-pill","active"],RTe=()=>["status-pill","draft"];function PTe(t,n){1&t&&(_(0,"th",15),k(1," Title "),b())}function FTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.title," ")}}function OTe(t,n){1&t&&(_(0,"th",15),k(1," Status "),b())}function NTe(t,n){if(1&t&&(_(0,"td",16)(1,"span",17),k(2),wo(3,"uppercase"),b()()),2&t){const e=n.$implicit;y(),T("ngClass",Ea(4,ATe,e.status)),y(),Ke(oc(3,2,e.status))}}function LTe(t,n){1&t&&(_(0,"th",15),k(1," Version "),b())}function VTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.meta.versionId," ")}}function BTe(t,n){1&t&&(_(0,"th",15),k(1," Date "),b())}function UTe(t,n){if(1&t&&(_(0,"td",16)(1,"i"),k(2),wo(3,"date"),b()()),2&t){const e=n.$implicit;y(2),Ke(Au(3,1,e.meta.lastUpdated,"MMMM d, y, h:mm:ss a"))}}function zTe(t,n){1&t&&(_(0,"th",15),k(1," Type "),b())}function HTe(t,n){1&t&&(_(0,"span",17),k(1,"QUESTIONNAIRE"),b()),2&t&&T("ngClass",hs(1,MTe))}function jTe(t,n){1&t&&(_(0,"span",17),k(1,"MODULAR ROOT"),b()),2&t&&T("ngClass",hs(1,RTe))}function $Te(t,n){if(1&t&&(_(0,"td",16),q(1,HTe,2,2,"span",18)(2,jTe,2,2,"span",18),b()),2&t){const e=n.$implicit,i=R();y(),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e))}}function GTe(t,n){1&t&&(_(0,"th",19),k(1," Actions "),b())}function WTe(t,n){if(1&t){const e=Se();_(0,"button",24),U("click",function(){j(e);const r=R().$implicit;return G(R().restore(r))}),_(1,"mat-icon"),k(2,"restore_page"),b()()}}function qTe(t,n){if(1&t){const e=Se();_(0,"td",16)(1,"button",20),U("click",function(){const r=j(e).$implicit;return G(R().preview(r))}),_(2,"mat-icon"),k(3,"visibility"),b()(),_(4,"button",21),U("click",function(){const r=j(e).$implicit;return G(R().openInNewTab(r))}),_(5,"mat-icon"),k(6,"open_in_new"),b()(),_(7,"button",22),U("click",function(){const r=j(e).$implicit;return G(R().saveQuestionnaire(r))}),_(8,"mat-icon"),k(9,"cloud_download"),b()(),q(10,WTe,3,0,"button",23),b()}if(2&t){const e=n.$implicit,i=R();y(10),T("ngIf",(null==e||null==e.meta?null:e.meta.versionId)!=(null==i.versions[0]||null==i.versions[0].meta?null:i.versions[0].meta.versionId))}}function QTe(t,n){1&t&&xe(0,"tr",25)}function KTe(t,n){1&t&&xe(0,"tr",26)}function XTe(t,n){1&t&&(_(0,"p",27)(1,"i"),k(2," No questionnaire selected. "),b()())}function YTe(t,n){1&t&&xe(0,"mat-spinner",28)}let ZTe=(()=>{class t{constructor(e){this.fhirService=e,this.previewQuestionnaire=new Ce,this.restoreQuestionnaireVersion=new Ce,this.versions=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.displayedColumns=["title","status","version","lastUpdated","type","actions"],this.dataSource=new qu}ngOnChanges(e){e.questionnaire&&e.questionnaire.currentValue&&this.loadVersions()}ngOnInit(){Jc([this.fhirService.baseUrl$.pipe(nl(1e3),il()),this.fhirService.userTag$.pipe(nl(1e3),il())]).subscribe(([e,i])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==i)&&(this.selectedFhirServer=e,this.selectedUserTag=i,this.selectedUserTag&&this.selectedFhirServer&&this.loadVersions())})}loadVersions(e){this.versions=[],this.dataSource.data=this.versions,e&&(this.questionnaire=e),this.questionnaire&&(this.loading=!0,this.fhirService.getQuestionnaireHistory(this.questionnaire.id).subscribe(i=>{this.versions=i.entry.map(r=>r.resource),this.dataSource.data=this.versions,this.loading=!1}))}preview(e){this.previewQuestionnaire.emit(e),this.loadVersions()}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id+"/_history/"+e.meta.versionId,"_blank")}saveQuestionnaire(e){var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,`${e.title}-v${e.meta.versionId}.json`)}restore(e){this.restoreQuestionnaireVersion.emit(e)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode)}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-questionnaire-history"]],inputs:{questionnaire:"questionnaire"},outputs:{previewQuestionnaire:"previewQuestionnaire",restoreQuestionnaireVersion:"restoreQuestionnaireVersion"},features:[Un],decls:24,vars:5,consts:[[1,"table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","lastUpdated"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Restore Version",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Restore Version",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"table",1),zt(2,2),q(3,PTe,2,0,"th",3)(4,FTe,2,1,"td",4),Ht(),zt(5,5),q(6,OTe,2,0,"th",3)(7,NTe,4,6,"td",4),Ht(),zt(8,6),q(9,LTe,2,0,"th",3)(10,VTe,2,1,"td",4),Ht(),zt(11,7),q(12,BTe,2,0,"th",3)(13,UTe,4,4,"td",4),Ht(),zt(14,8),q(15,zTe,2,0,"th",3)(16,$Te,3,2,"td",4),Ht(),zt(17,9),q(18,GTe,2,0,"th",10)(19,qTe,11,1,"td",4),Ht(),q(20,QTe,1,0,"tr",11)(21,KTe,1,0,"tr",12),b(),q(22,XTe,3,0,"p",13)(23,YTe,1,0,"mat-spinner",14),b()),2&i&&(y(),T("dataSource",r.dataSource),y(19),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",!r.questionnaire),y(),T("ngIf",r.loading))},dependencies:[Da,$r,ia,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,OD,Ou],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}.table-container[_ngcontent-%COMP%]{margin:2rem;padding-bottom:2rem}"]})}return t})();const JTe=["questionnairesList"],eEe=["fileInput"],tEe=["questionnaireHistory"];function nEe(t,n){1&t&&(_(0,"span"),k(1," / Validator"),b())}function iEe(t,n){1&t&&(_(0,"span"),k(1," / Questionnaires repository"),b())}function rEe(t,n){if(1&t){const e=Se();_(0,"span",19)(1,"a",20),U("click",function(){return j(e),G(R(2).mode="Manager")}),_(2,"mat-icon"),k(3,"play_arrow"),b(),_(4,"span"),k(5,"Reconnect to last FHIR Server"),b()(),_(6,"span",21),k(7),_(8,"i"),k(9),b(),k(10,'" )'),b()()}if(2&t){const e=R(2);y(7),Je(" ( ",e.selectedFhirServer,' as "'),y(2),Ke(e.selectedUserTag)}}function oEe(t,n){if(1&t){const e=Se();_(0,"div",10)(1,"p"),k(2,"What do you want to do today?"),b(),_(3,"mat-radio-group",11),Dr("ngModelChange",function(r){j(e);const o=R();return jr(o.step1Response,r)||(o.step1Response=r),G(r)}),_(4,"mat-radio-button",12),k(5,"Edit a questionnaire in the NLM Form Builder"),b(),_(6,"mat-radio-button",13),k(7,"Load an example questionnaire"),b(),_(8,"mat-radio-button",14),k(9,"Upload and validate a questionnaire"),b(),_(10,"mat-radio-button",15),k(11,"Work with your questionnaires from a FHIR server"),b(),q(12,rEe,11,2,"span",16),b(),_(13,"div",17)(14,"button",18),U("click",function(){return j(e),G(R().advanceFromStep1())}),k(15,"Next"),b()()()}if(2&t){const e=R();y(3),Sr("ngModel",e.step1Response),y(9),T("ngIf",e.selectedFhirServer&&e.selectedUserTag),y(2),T("disabled",!e.step1Response)}}function sEe(t,n){if(1&t&&(_(0,"span"),k(1," Connected to "),_(2,"a",34),k(3),b(),k(4,' as "'),_(5,"i"),k(6),b(),k(7,'" '),b()),2&t){const e=R(2);y(3),Ke(e.selectedFhirServer),y(3),Ke(e.selectedUserTag)}}function aEe(t,n){if(1&t){const e=Se();_(0,"button",18),U("click",function(){return j(e),G(R(2).createQuestionnaire())}),k(1," Create Questionnaire "),b()}2&t&&T("disabled",R(2).validating)}function cEe(t,n){if(1&t){const e=Se();_(0,"button",18),U("click",function(){return j(e),G(R(2).openModularQuestionnaireModal())}),k(1," Create Modular Questionnaire "),b()}2&t&&T("disabled",R(2).validating)}function lEe(t,n){if(1&t){const e=Se();_(0,"mat-tab",35)(1,"div",28)(2,"app-list-questionnaires",36,3),U("validateQuestionnaire",function(r){return j(e),G(R(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return j(e),G(R(2).switchToPreviewTab(r))})("viewQuestionaireHistory",function(r){return j(e),G(R(2).switchToHistoryTab(r))}),b()()()}if(2&t){const e=R(2);y(2),T("config",e.listConfig)}}function dEe(t,n){if(1&t&&(_(0,"h4"),k(1),wo(2,"date"),b()),2&t){const e=R(2);y(),c_("",e.questionnaire.title," - Version: ",e.questionnaire.meta.versionId," (",Au(2,3,e.questionnaire.meta.lastUpdated,"fullDate"),")")}}function uEe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",22),q(2,sEe,8,2,"span",8),_(3,"input",23,0),U("change",function(r){return j(e),G(R().onFileSelected(r))}),b(),_(5,"button",18),U("click",function(){return j(e),G(jt(4).click())}),k(6," Upload "),b(),_(7,"button",18),U("click",function(){return j(e),G(R().saveQuestionnaireToDisk())}),k(8,"Download"),b(),q(9,aEe,2,1,"button",24)(10,cEe,2,1,"button",24),b(),_(11,"mat-tab-group",25),U("selectedIndexChange",function(r){return j(e),G(R().onTabChange(r))}),q(12,lEe,4,1,"mat-tab",26),_(13,"mat-tab",27)(14,"div",28),q(15,dEe,3,6,"h4",8),xe(16,"div",29),b()(),_(17,"mat-tab",30)(18,"app-validate-questionnaire",31,1),U("questionnaireUpdated",function(r){return j(e),G(R().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return j(e),G(R().validating=r)}),b()(),_(20,"mat-tab",32)(21,"app-questionnaire-history",33,2),U("previewQuestionnaire",function(r){return j(e),G(R().switchToPreviewTab(r))})("restoreQuestionnaireVersion",function(r){return j(e),G(R().saveQuestionnaire(r))}),b()()()()}if(2&t){const e=R();y(2),T("ngIf","Manager"==e.mode),y(3),T("disabled",e.validating),y(2),T("disabled",e.validating||!e.questionnaire),y(2),T("ngIf","Manager"==e.mode),y(),T("ngIf","Manager"==e.mode),y(2),T("ngIf","Manager"===e.mode),y(3),T("ngIf",e.questionnaire),y(),lt("hidden",!e.questionnaire),y(2),T("questionnaire",e.questionnaire),y(3),T("questionnaire",e.questionnaire)}}let hEe=(()=>{class t{constructor(e,i,r,o,s,a){this.http=e,this.terminologyService=i,this.fhirService=r,this.questionnaireService=o,this.dialog=s,this._snackBar=a,this.loading=!1,this.validating=!1,this.orderCounter=0,this.savingQuestionnaire=!1,this.selectedFhirServer="",this.selectedUserTag="",this.showFhirSetupModal=!1,this.listConfig={validate:!0,preview:!0},this.mode="step1"}ngOnInit(){this.fhirService.baseUrl$.subscribe(e=>{this.selectedFhirServer=e}),this.fhirService.userTag$.subscribe(e=>{this.selectedUserTag=e}),this.loadScript()}loadScript(){const e=document.createElement("script");e.src="https://clinicaltables.nlm.nih.gov/lforms-versions/35.0.4/webcomponent/lhc-forms.js",e.onload=()=>{const i=document.createElement("script");i.src="https://clinicaltables.nlm.nih.gov/lforms-versions/35.0.4/fhir/R4/lformsFHIR.min.js",i.onload=()=>{},document.head.appendChild(i)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(xA,{width:"60%",disableClose:!0}).afterClosed().subscribe(i=>{"save"===i&&(this.mode="Manager",setTimeout(()=>{this.tabGroup.selectedIndex=0},500))}):this.mode="Validator"}previewForm(){"Preview"==this.getCurrentTabName()&&(this.questionnaire?LForms.Util.addFormToPage(this.questionnaire,"myFormContainer"):LForms.Util.addFormToPage({},"myFormContainer"))}getFormData(){if(this.questionnaire){const e=LForms.Util.getFormData("myFormContainer",!0,!0,!0);console.log(e)}}displayHistory(e){e&&this.questionnaireHistory.loadVersions(e)}loadExampleQuestionnaire(){Co(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}createQuestionnaire(){this.questionnairesList.createQuestionnaire()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});_c(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const s=JSON.parse(o.target?.result);"Questionnaire"===s.resourceType?(this.loadQuestionnaire(s),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Ti,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(s){console.error(s),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(i)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(Z7,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(s=>s.title===e.title&&s.id===e.id&&s.meta?.versionId>=e.meta?.versionId)?this.dialog.open(Z7,{width:"400px",data:{title:"Confirm Action",message:"A newer version or identical of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(a=>{a?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Saving Questionnaire...",panelClass:["green-snackbar"]}),e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.fhirService.updateOrCreateQuestionnaire(e,this.selectedUserTag).pipe(ea()).subscribe(i=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(i)},300)},300),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},i=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(ea()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(WCe,{width:"70%"}).afterClosed().subscribe(i=>{this.loadQuestionnaire(i)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(xA,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}switchToHistoryTab(e){this.displayHistory(e),this.tabGroup.selectedIndex=3}advanceFromStep1(){"edit"==this.step1Response?window.open("https://lhcformbuilder.nlm.nih.gov/","_blank"):"validate"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.uploadInput.nativeElement.click()},200)):"repository"==this.step1Response?this.dialog.open(xA,{width:"60%"}).afterClosed().subscribe(i=>{i&&(this.mode="Manager")}):"example"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.loadExampleQuestionnaire()},300)):"reconnect"==this.step1Response&&(this.mode="Manager"),this.step1Response=""}getCurrentTabName(){const e=this.tabGroup.selectedIndex;return null!=e?this.tabGroup._tabs.toArray()[e].textLabel:""}onTabChange(e){"Preview"===this.tabGroup._tabs.toArray()[e].textLabel&&setTimeout(()=>{this.previewForm()},300)}openModularQuestionnaireModal(){this.dialog.open(K7,{width:"75%"}).afterClosed().subscribe(i=>{i&&this.questionnaireService.generateRootQuestionnaire(i.title,i.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}static#e=this.\u0275fac=function(i){return new(i||t)(w(cd),w(so),w(jm),w(X7),w(Um),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(i,r){if(1&i&&(vt(Td,5),vt(h0,5),vt(JTe,5),vt(eEe,5),vt(tEe,5)),2&i){let o;Re(o=Pe())&&(r.sort=o.first),Re(o=Pe())&&(r.tabGroup=o.first),Re(o=Pe())&&(r.questionnairesList=o.first),Re(o=Pe())&&(r.uploadInput=o.first),Re(o=Pe())&&(r.questionnaireHistory=o.first)}},decls:11,vars:4,consts:[["fileInput",""],["validateQuestionnaire",""],["questionnaireHistory",""],["questionnairesList",""],[1,"header-container"],[1,"header"],[1,"breadcrumb"],["href","javascript:void(0)",3,"click"],[4,"ngIf"],["id","step1",4,"ngIf"],["id","step1"],["aria-label","Select an option",3,"ngModelChange","ngModel"],["value","edit"],["value","example"],["value","validate"],["value","repository"],["id","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"click","disabled"],["id","reconnect"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["mat-flat-button","","color","accent",3,"disabled","click",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange"],["label","My Questionnaires",4,"ngIf"],["label","Preview"],[1,"tab-container"],["id","myFormContainer"],["label","Validate SNOMED Bindings"],[3,"questionnaireUpdated","validatingQuestionnaire","questionnaire"],["label","History"],[3,"previewQuestionnaire","restoreQuestionnaireVersion","questionnaire"],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"validateQuestionnaire","previewQuestionnaire","viewQuestionaireHistory","config"]],template:function(i,r){1&i&&(_(0,"div",4)(1,"h2",5),k(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),b(),_(3,"div",6)(4,"span")(5,"a",7),U("click",function(){return r.mode="step1"}),k(6,"Home"),b(),q(7,nEe,2,0,"span",8)(8,iEe,2,0,"span",8),b()()(),q(9,oEe,16,3,"div",9)(10,uEe,23,11,"div",8)),2&i&&(y(7),T("ngIf","Validator"==r.mode),y(),T("ngIf","Manager"==r.mode),y(),T("ngIf","step1"==r.mode),y(),T("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[$r,Eo,So,Yo,d1,h0,_s,v1,y0,Y7,ITe,ZTe,Ou],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]})}return t})();const fEe=t=>({"bg-pink":t});function mEe(t,n){if(1&t&&(_(0,"p",18),k(1),b()),2&t){const e=R();y(),Ke(e.studentSubsetDefinition)}}function pEe(t,n){1&t&&xe(0,"mat-spinner",19)}function gEe(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=R(2);y(),Ke(e.definitionVsMembersValidationResult)}}function _Ee(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=R(2);y(),Ke(e.keyConceptValidationResult)}}function bEe(t,n){if(1&t&&(_(0,"div",20)(1,"h3",21),k(2,"Validation Results"),b(),q(3,gEe,2,1,"p",22)(4,_Ee,2,1,"p",22),_(5,"p",23),k(6),b(),_(7,"p",23),k(8),b()()),2&t){const e=R();y(3),T("ngIf",e.selectedAssignment.referenceDefinition),y(),T("ngIf",e.selectedAssignment.referenceDefinition),y(2),Ke(e.membersNotInRefrenceListResult),y(2),Ke(e.refrenceListVsStudentListResult)}}function vEe(t,n){1&t&&(_(0,"th",33),k(1,"ID"),b())}function yEe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e.referencedComponentId)}}function xEe(t,n){1&t&&(_(0,"th",33),k(1,"Name"),b())}function wEe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e.name)}}function kEe(t,n){1&t&&(_(0,"th",33),k(1,"Result"),b())}function CEe(t,n){1&t&&(_(0,"span"),k(1,"OK"),b())}function TEe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=R(2).$implicit;y(),Je(" ",e.customMessage.note," ")}}function EEe(t,n){1&t&&(_(0,"span"),k(1," Error "),b())}function SEe(t,n){if(1&t&&(_(0,"span"),q(1,CEe,2,0,"span",16)(2,TEe,2,1,"span",16)(3,EEe,2,0,"span",16),b()),2&t){const e=R().$implicit;y(),T("ngIf",null==e||null==e.inReferenceList?null:e.inReferenceList.value),y(),T("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value)&&(null==e||null==e.customMessage?null:e.customMessage.value)),y(),T("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value||null!=e&&null!=e.customMessage&&e.customMessage.value))}}function DEe(t,n){if(1&t&&(_(0,"td",34),q(1,SEe,4,3,"span",16),b()),2&t){const e=R(2);y(),T("ngIf",e.membersValidationResult)}}function IEe(t,n){1&t&&xe(0,"tr",35)}function AEe(t,n){if(1&t&&xe(0,"tr",36),2&t){const e=n.$implicit,i=R(2);T("ngClass",Ea(1,fEe,!(null!=e.inReferenceList&&e.inReferenceList.value)&&i.membersValidationResult))}}function MEe(t,n){if(1&t&&(_(0,"div",24)(1,"table",25),zt(2,26),q(3,vEe,2,0,"th",27)(4,yEe,2,1,"td",28),Ht(),zt(5,29),q(6,xEe,2,0,"th",27)(7,wEe,2,1,"td",28),Ht(),zt(8,30),q(9,kEe,2,0,"th",27)(10,DEe,2,1,"td",28),Ht(),q(11,IEe,1,0,"tr",31)(12,AEe,1,3,"tr",32),b()()),2&t){const e=R();y(),T("dataSource",e.studentSubsetMembersDataSource),y(10),T("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),y(),T("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}function REe(t,n){if(1&t){const e=Se();_(0,"button",40),U("click",function(){const r=j(e).$implicit;return G(R(2).setAssignment(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function PEe(t,n){if(1&t&&(_(0,"div")(1,"h3"),k(2,"Assignment"),b(),_(3,"button",37),k(4),b(),_(5,"mat-menu",38,2),q(7,REe,2,1,"button",39),b()()),2&t){const e=jt(6),i=R();y(3),T("matMenuTriggerFor",e),y(),Je("Selected assignment: ",null==i.selectedAssignment?null:i.selectedAssignment.name,""),y(3),T("ngForOf",i.assignments)}}function FEe(t,n){if(1&t&&(_(0,"h3"),k(1),b()),2&t){const e=R();y(),Je(" Assignment: ",null==e.selectedAssignment?null:e.selectedAssignment.name," ")}}function OEe(t,n){1&t&&(_(0,"ol")(1,"li"),k(2,"1- Upload definition file"),b(),_(3,"li"),k(4,"2- Upload members file"),b(),_(5,"li"),k(6,"3- Click validate"),b()())}function NEe(t,n){1&t&&(_(0,"ol")(1,"li"),k(2,"1- Upload members file"),b(),_(3,"li"),k(4,"2- Click validate"),b()())}function LEe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div")(2,"h3"),k(3,"Reference Data"),b(),_(4,"mat-form-field",41)(5,"mat-label"),k(6,"Textarea"),b(),_(7,"textarea",42),Dr("ngModelChange",function(r){j(e);const o=R();return jr(o.assignmentsString,r)||(o.assignmentsString=r),G(r)}),b()(),_(8,"button",11),U("click",function(){return j(e),G(R().updateAssignments())}),k(9,"Update Assignments"),b()()()}if(2&t){const e=R();y(7),Sr("ngModel",e.assignmentsString)}}let VEe=(()=>{class t{constructor(e,i,r,o){this.http=e,this.terminologyService=i,this._snackBar=r,this.activatedRoute=o,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result"],this.studentSubsetMembersDataSource=new qu,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.keyConceptValidationResult="",this.definitionVsMembersValidationResult="",this.membersNotInRefrenceListResult="",this.membersValidationResult=!1,this.refrenceListVsStudentListResult="",this.embeddedMode=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.assignments=[{name:"Assignment X",referenceData:[{referencedComponentId:"403197009",name:"Sun-induced wrinkles"},{referencedComponentId:"279002006",name:"Lichenification of skin"},{referencedComponentId:"274672009",name:"Changes in skin texture"},{referencedComponentId:"271767006",name:"Peeling of skin"},{referencedComponentId:"271761007",name:"Scaly skin"},{referencedComponentId:"247434009",name:"Wrinkled skin"}],referenceDefinition:"< 185823004 |Finding of skin texture (finding)|",keyConceptsInECL:[{code:"185823004",display:"Finding of skin texture (finding)"}],customMessages:[{conceptId:"85345005",note:"wrong hierarchy",principle:"wrong hierarchy"},{conceptId:"403197009",note:"wrong hierarchy",principle:"wrong hierarchy"}]}],this.assignmentsString=JSON.stringify(this.assignments),this.selectedAssignment=this.assignments[0],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new qu(this.selectedAssignment.referenceData)}ngOnInit(){var e=this;return me(function*(){const i=yield Co(e.http.get("assets/definitions/assignments.json"));e.assignments=i,e.assignmentsString=JSON.stringify(e.assignments),e.setAssignment(e.assignments[0]),e.activatedRoute.queryParams.subscribe(r=>{r.assignment&&e.setAssignment(e.assignments.find(o=>o.name===r.assignment)),e.embeddedMode="true"===r.embedded})})()}setAssignment(e){e&&(this.selectedAssignment=e,this.referenceDataDataSource=new qu(this.selectedAssignment.referenceData))}checkStudentECLvsStudentList(){var e=this;return me(function*(){if(!e.studentSubsetDefinition){let r=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),s=0;e.studentSubsetmembers.forEach(a=>{r.expansion.contains.find(l=>l.code===a.referencedComponentId)?a.inStudentECL={value:!0,message:""}:(a.inStudentECL={value:!1,message:""},s++)})}return 0})()}checkStudentECLvsKeyConcept(){if(this.studentSubsetDefinition){console.log("Student ECL not defined");let e=this.studentSubsetDefinition,r=!0;return this.selectedAssignment.keyConceptsInECL.forEach(o=>{e.includes(o.code)||(r=!1)}),r}return!0}checkStudentListVsReferenceList(){let i=this.selectedAssignment.referenceData;this.studentSubsetmembers.forEach(o=>{o.inReferenceList=i.find(a=>a.referencedComponentId===o.referencedComponentId)?{value:!0,message:""}:{value:!1,message:""}})}checkReferenceListVsStudentList(){let e=this.studentSubsetmembers,r=0;return this.selectedAssignment.referenceData.forEach(o=>{e.find(a=>a.referencedComponentId===o.referencedComponentId)?o.inStudentList={value:!0,message:""}:(o.inStudentList={value:!1,message:""},r++)}),r}checkStudentListVsCustomMessages(){let i=this.selectedAssignment.customMessages;this.studentSubsetmembers.forEach(r=>{const o=i.find(s=>s.conceptId===r.referencedComponentId);r.customMessage=o?{value:!0,principle:o.principle,note:o.note}:{value:!1,principle:"",note:""}})}updateAssignments(){this.assignments=JSON.parse(this.assignmentsString),this.setAssignment(this.assignments[0])}validateAssignment(){var e=this;return me(function*(){e.loading=!0,e.keyConceptValidationResult="",e.definitionVsMembersValidationResult="",e.membersValidationResult=!1,e.loading=!0,e.studentSubsetDefinition&&(e.definitionVsMembersValidationResult=(yield e.checkStudentECLvsStudentList())>0?e.error+" The uploaded definition and members files are not in alignment":e.ok+" The uploaded definition and members files are in alignment",e.keyConceptValidationResult=e.checkStudentECLvsKeyConcept()?e.ok+" The definition of your subset includes the key subhierarchy":e.error+" The definition of your subset does not include the key subhierarchy"),e.checkStudentListVsReferenceList();let i=e.studentSubsetmembers.filter(o=>!o.inReferenceList.value).length;e.membersNotInRefrenceListResult=i>0?e.error+" There are "+i+" members in your subset that are not recommended to be included":e.ok+" All members match the recommended list of concepts for the subset",e.checkStudentListVsCustomMessages();let r=e.checkReferenceListVsStudentList();e.refrenceListVsStudentListResult=r>0?e.error+" "+r+" "+(r>1?"concepts are":"concept is")+" missing in the uploaded member list that would be recommended to be included in this subset":e.ok+" All recommended concepts are included in this subset",e.loading=!1,e.membersValidationResult=!0})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new qu,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const a=r.result.split("\n"),c=a[0].split("\t");if(c.length<2)throw new Error("Invalid file format");const l=c.indexOf("referencedComponentId"),d=c.indexOf("name");if(l<0||d<0)throw new Error("Invalid file format");const u=[];for(let h=1;hh.name.localeCompare(f.name)),this.studentSubsetmembers=u,this.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(s){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(i)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const c=r.result.replace(/\r/g,"").split("\n"),l=c[0].split("\t");if(l.length<2)throw new Error("Invalid file format");const d=l.indexOf("referencedComponentId"),u=l.indexOf("definition");if(d<0||u<0)throw new Error("Invalid file format");this.studentSubsetDefinition=c[1].split("\t")[u],this.loading=!1}catch(s){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(i)}else this.loading=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(cd),w(so),w($u),w(od))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-subset-validator"]],viewQuery:function(i,r){if(1&i&&vt(Td,5),2&i){let o;Re(o=Pe())&&(r.sort=o.first)}},decls:31,vars:12,consts:[["fileInput",""],["fileInputDefinition",""],["demosMenu","matMenu"],[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],[1,"mb-4"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],[4,"ngIf"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[1,"text-white","mb-1"],["class","validation-result",4,"ngIf"],[1,"validation-result"],[1,"table-container"],["mat-table","",3,"dataSource"],["matColumnDef","referencedComponentId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","result"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["appearance","fill"],["matInput","",3,"ngModelChange","ngModel"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3"),k(4,"Subset Members Validator"),b(),_(5,"p",6),k(6),b(),q(7,mEe,2,1,"p",7),_(8,"input",8,0),U("change",function(a){return j(o),G(r.onSubsetmembersFileSelected(a))}),b(),_(10,"input",8,1),U("change",function(a){return j(o),G(r.onDefinitionFileSelected(a))}),b(),_(12,"div",9)(13,"button",10),U("click",function(){return j(o),G(jt(11).click())}),k(14," Upload Definition File "),b(),_(15,"button",11),U("click",function(){return j(o),G(jt(9).click())}),k(16,"Upload Members File"),b(),_(17,"button",10),U("click",function(){return j(o),G(r.validateAssignment())}),k(18,"Validate"),b(),q(19,pEe,1,0,"mat-spinner",12),b(),q(20,bEe,9,4,"div",13),b(),q(21,MEe,13,3,"div",14),b(),_(22,"div",15),q(23,PEe,8,3,"div",16)(24,FEe,2,1,"h3",16),_(25,"h3"),k(26,"Instructions"),b(),_(27,"div",17),q(28,OEe,7,0,"ol",16)(29,NEe,5,0,"ol",16),b(),q(30,LEe,10,1,"div",16),b()()}2&i&&(y(6),Je("Validating against ",r.terminologyService.getFhirUrlParam(),""),y(),T("ngIf",r.studentSubsetDefinition),y(6),T("disabled",!r.selectedAssignment.referenceDefinition),y(4),T("disabled",!r.studentSubsetMembersDataSource.data.length),y(2),T("ngIf",r.loading),y(),T("ngIf",!r.loading&&r.membersNotInRefrenceListResult),y(),T("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),y(2),T("ngIf",!r.embeddedMode),y(),T("ngIf",r.embeddedMode),y(4),T("ngIf",r.selectedAssignment.referenceDefinition),y(),T("ngIf",!r.selectedAssignment.referenceDefinition),y(),T("ngIf",!r.embeddedMode))},dependencies:[Da,ro,$r,Eo,Pa,mc,Wu,Fa,Bs,md,kd,ra,Yo,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,_s],styles:["[_nghost-%COMP%]{display:block;height:calc(100% - 65px)}.layout-container[_ngcontent-%COMP%]{display:flex;height:100%}.left-column[_ngcontent-%COMP%]{flex:0 0 68%;display:flex;flex-direction:column;height:100%}.right-column[_ngcontent-%COMP%]{flex:0 0 28%}.buttons-panel[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem;margin-top:2rem}.upload-controls[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.table-container[_ngcontent-%COMP%]{overflow-y:auto}.upload-controls[_ngcontent-%COMP%]{margin-left:20px}table[_ngcontent-%COMP%]{width:100%}.validation-result[_ngcontent-%COMP%]{font-weight:400;font-size:larger}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:.5rem 3rem 1rem;width:80%;color:#f5f5f5;margin-top:20px}.terminal-style[_ngcontent-%COMP%]{font-family:monospace;font-size:.9rem;background-color:#000;color:#fff;padding:10px;border-radius:10px;margin-top:20px;width:80%}h4[_ngcontent-%COMP%]{margin-top:10px}.instructions[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;font-weight:lighter;font-size:larger}h3[_ngcontent-%COMP%]{margin-top:10px}.bg-pink[_ngcontent-%COMP%]{background-color:pink}tr.mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#aba9a9!important}"]})}return t})();const tj=function(t){const n=[];let e=0;for(let i=0;i>6|192,n[e++]=63&r|128):55296==(64512&r)&&i+1>18|240,n[e++]=r>>12&63|128,n[e++]=r>>6&63|128,n[e++]=63&r|128):(n[e++]=r>>12|224,n[e++]=r>>6&63|128,n[e++]=63&r|128)}return n},nj={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(t,n){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const e=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r>6,f=63&l;c||(f=64,s||(h=64)),i.push(e[o>>2],e[(3&o)<<4|a>>4],e[h],e[f])}return i.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(tj(t),n)},decodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(t):function(t){const n=[];let e=0,i=0;for(;e191&&r<224){const o=t[e++];n[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){const c=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536;n[i++]=String.fromCharCode(55296+(c>>10)),n[i++]=String.fromCharCode(56320+(1023&c))}else{const o=t[e++],s=t[e++];n[i++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&s)}}return n.join("")}(this.decodeStringToByteArray(t,n))},decodeStringToByteArray(t,n){this.init_();const e=n?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r>4),64!==l&&(i.push(a<<4&240|l>>2),64!==u&&i.push(l<<6&192|u))}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class jEe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const x1=function(t){return function(t){const n=tj(t);return nj.encodeByteArray(n,!0)}(t).replace(/\./g,"")},w1=()=>{try{return function WEe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||(()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const n=t&&function(t){try{return nj.decodeString(t,!0)}catch(n){console.error("base64Decode failed: ",n)}return null}(t[1]);return n&&JSON.parse(n)})()}catch(t){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`)}},rj=()=>{var t;return null===(t=w1())||void 0===t?void 0:t.config};class oj{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}wrapCallback(n){return(e,i)=>{e?this.reject(e):this.resolve(i),"function"==typeof n&&(this.promise.catch(()=>{}),1===n.length?n(e):n(e,i))}}}function Sd(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function aj(){try{return"object"==typeof indexedDB}catch{return!1}}class $m extends Error{constructor(n,e,i){super(e),this.code=n,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,$m.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,cj.prototype.create)}}class cj{constructor(n,e,i){this.service=n,this.serviceName=e,this.errors=i}create(n,...e){const i=e[0]||{},r=`${this.service}/${n}`,o=this.errors[n],s=o?function nSe(t,n){return t.replace(iSe,(e,i)=>{const r=n[i];return null!=r?String(r):`<${i}?>`})}(o,i):"Error";return new $m(r,`${this.serviceName}: ${s} (${r}).`,i)}}const iSe=/\{\$([^}]+)}/g;function x0(t,n){if(t===n)return!0;const e=Object.keys(t),i=Object.keys(n);for(const r of e){if(!i.includes(r))return!1;const o=t[r],s=n[r];if(dj(o)&&dj(s)){if(!x0(o,s))return!1}else if(o!==s)return!1}for(const r of i)if(!e.includes(r))return!1;return!0}function dj(t){return null!==t&&"object"==typeof t}function Oa(t){return t&&t._delegate?t._delegate:t}class w0{constructor(n,e,i){this.name=n,this.instanceFactory=e,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(n){return this.instantiationMode=n,this}setMultipleInstances(n){return this.multipleInstances=n,this}setServiceProps(n){return this.serviceProps=n,this}setInstanceCreatedCallback(n){return this.onInstanceCreated=n,this}}const eh="[DEFAULT]";class uSe{constructor(n,e){this.name=n,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(n){const e=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(e)){const i=new oj;if(this.instancesDeferred.set(e,i),this.isInitialized(e)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:e});r&&i.resolve(r)}catch{}}return this.instancesDeferred.get(e).promise}getImmediate(n){var e;const i=this.normalizeInstanceIdentifier(n?.identifier),r=null!==(e=n?.optional)&&void 0!==e&&e;if(!this.isInitialized(i)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:i})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(n){if(n.name!==this.name)throw Error(`Mismatching Component ${n.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=n,this.shouldAutoInitialize()){if(function fSe(t){return"EAGER"===t.instantiationMode}(n))try{this.getOrInitializeService({instanceIdentifier:eh})}catch{}for(const[e,i]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const o=this.getOrInitializeService({instanceIdentifier:r});i.resolve(o)}catch{}}}}clearInstance(n=eh){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}delete(){var n=this;return me(function*(){const e=Array.from(n.instances.values());yield Promise.all([...e.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...e.filter(i=>"_delete"in i).map(i=>i._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(n=eh){return this.instances.has(n)}getOptions(n=eh){return this.instancesOptions.get(n)||{}}initialize(n={}){const{options:e={}}=n,i=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:i,options:e});for(const[o,s]of this.instancesDeferred.entries())i===this.normalizeInstanceIdentifier(o)&&s.resolve(r);return r}onInit(n,e){var i;const r=this.normalizeInstanceIdentifier(e),o=null!==(i=this.onInitCallbacks.get(r))&&void 0!==i?i:new Set;o.add(n),this.onInitCallbacks.set(r,o);const s=this.instances.get(r);return s&&n(s,r),()=>{o.delete(n)}}invokeOnInitCallbacks(n,e){const i=this.onInitCallbacks.get(e);if(i)for(const r of i)try{r(n,e)}catch{}}getOrInitializeService({instanceIdentifier:n,options:e={}}){let i=this.instances.get(n);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===eh?void 0:t),options:e}),this.instances.set(n,i),this.instancesOptions.set(n,e),this.invokeOnInitCallbacks(i,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,i)}catch{}var t;return i||null}normalizeInstanceIdentifier(n=eh){return this.component?this.component.multipleInstances?n:eh:n}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class mSe{constructor(n){this.name=n,this.providers=new Map}addComponent(n){const e=this.getProvider(n.name);if(e.isComponentSet())throw new Error(`Component ${n.name} has already been registered with ${this.name}`);e.setComponent(n)}addOrOverwriteComponent(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)}getProvider(n){if(this.providers.has(n))return this.providers.get(n);const e=new uSe(n,this);return this.providers.set(n,e),e}getProviders(){return Array.from(this.providers.values())}}const EA=[];var Dn=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}(Dn||{});const uj={debug:Dn.DEBUG,verbose:Dn.VERBOSE,info:Dn.INFO,warn:Dn.WARN,error:Dn.ERROR,silent:Dn.SILENT},pSe=Dn.INFO,gSe={[Dn.DEBUG]:"log",[Dn.VERBOSE]:"log",[Dn.INFO]:"info",[Dn.WARN]:"warn",[Dn.ERROR]:"error"},_Se=(t,n,...e)=>{if(nn.some(e=>t instanceof e);let fj,mj;const pj=new WeakMap,SA=new WeakMap,gj=new WeakMap,DA=new WeakMap,IA=new WeakMap;let AA={get(t,n,e){if(t instanceof IDBTransaction){if("done"===n)return SA.get(t);if("objectStoreNames"===n)return t.objectStoreNames||gj.get(t);if("store"===n)return e.objectStoreNames[1]?void 0:e.objectStore(e.objectStoreNames[0])}return Dd(t[n])},set:(t,n,e)=>(t[n]=e,!0),has:(t,n)=>t instanceof IDBTransaction&&("done"===n||"store"===n)||n in t};function TSe(t){return"function"==typeof t?function CSe(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function ySe(){return mj||(mj=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(t)?function(...n){return t.apply(MA(this),n),Dd(pj.get(this))}:function(...n){return Dd(t.apply(MA(this),n))}:function(n,...e){const i=t.call(MA(this),n,...e);return gj.set(i,n.sort?n.sort():[n]),Dd(i)}}(t):(t instanceof IDBTransaction&&function wSe(t){if(SA.has(t))return;const n=new Promise((e,i)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{e(),r()},s=()=>{i(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});SA.set(t,n)}(t),bSe(t,function vSe(){return fj||(fj=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(t,AA):t)}function Dd(t){if(t instanceof IDBRequest)return function xSe(t){const n=new Promise((e,i)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{e(Dd(t.result)),r()},s=()=>{i(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",s)});return n.then(e=>{e instanceof IDBCursor&&pj.set(e,t)}).catch(()=>{}),IA.set(n,t),n}(t);if(DA.has(t))return DA.get(t);const n=TSe(t);return n!==t&&(DA.set(t,n),IA.set(n,t)),n}const MA=t=>IA.get(t),SSe=["get","getKey","getAll","getAllKeys","count"],DSe=["put","add","delete","clear"],RA=new Map;function _j(t,n){if(!(t instanceof IDBDatabase)||n in t||"string"!=typeof n)return;if(RA.get(n))return RA.get(n);const e=n.replace(/FromIndex$/,""),i=n!==e,r=DSe.includes(e);if(!(e in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!SSe.includes(e))return;const o=function(){var s=me(function*(a,...c){const l=this.transaction(a,r?"readwrite":"readonly");let d=l.store;return i&&(d=d.index(c.shift())),(yield Promise.all([d[e](...c),r&&l.done]))[0]});return function(c){return s.apply(this,arguments)}}();return RA.set(n,o),o}!function kSe(t){AA=t(AA)}(t=>({...t,get:(n,e,i)=>_j(n,e)||t.get(n,e,i),has:(n,e)=>!!_j(n,e)||t.has(n,e)}));class ISe{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function ASe(t){const n=t.getComponent();return"VERSION"===n?.type}(e)){const i=e.getImmediate();return`${i.library}/${i.version}`}return null}).filter(e=>e).join(" ")}}const PA="@firebase/app",th=new hj("@firebase/app"),C1="[DEFAULT]",nDe={[PA]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},nh=new Map,T1=new Map;function iDe(t,n){try{t.container.addComponent(n)}catch(e){th.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,e)}}function E1(t){const n=t.name;if(T1.has(n))return th.debug(`There were multiple attempts to register component ${n}.`),!1;T1.set(n,t);for(const e of nh.values())iDe(e,t);return!0}const _l=new cj("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class oDe{constructor(n,e,i){this._isDeleted=!1,this._options=Object.assign({},n),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new w0("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(n){this.checkDestroyed(),this._automaticDataCollectionEnabled=n}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(n){this._isDeleted=n}checkDestroyed(){if(this.isDeleted)throw _l.create("app-deleted",{appName:this._name})}}function yj(t,n={}){let e=t;"object"!=typeof n&&(n={name:n});const i=Object.assign({name:C1,automaticDataCollectionEnabled:!1},n),r=i.name;if("string"!=typeof r||!r)throw _l.create("bad-app-name",{appName:String(r)});if(e||(e=rj()),!e)throw _l.create("no-options");const o=nh.get(r);if(o){if(x0(e,o.options)&&x0(i,o.config))return o;throw _l.create("duplicate-app",{appName:r})}const s=new mSe(r);for(const c of T1.values())s.addComponent(c);const a=new oDe(e,i,s);return nh.set(r,a),a}function Gm(t,n,e){var i;let r=null!==(i=nDe[t])&&void 0!==i?i:t;e&&(r+=`-${e}`);const o=r.match(/\s|\//),s=n.match(/\s|\//);if(o||s){const a=[`Unable to register library "${r}" with version "${n}":`];return o&&a.push(`library name "${r}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${n}" contains illegal characters (whitespace or "/")`),void th.warn(a.join(" "))}E1(new w0(`${r}-version`,()=>({library:r,version:n}),"VERSION"))}const cDe="firebase-heartbeat-database",lDe=1,k0="firebase-heartbeat-store";let OA=null;function xj(){return OA||(OA=function ESe(t,n,{blocked:e,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(t,n),a=Dd(s);return i&&s.addEventListener("upgradeneeded",c=>{i(Dd(s.result),c.oldVersion,c.newVersion,Dd(s.transaction),c)}),e&&s.addEventListener("blocked",c=>e(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),r&&c.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}(cDe,lDe,{upgrade:(t,n)=>{if(0===n)try{t.createObjectStore(k0)}catch(e){console.warn(e)}}}).catch(t=>{throw _l.create("idb-open",{originalErrorMessage:t.message})})),OA}function NA(){return(NA=me(function*(t){try{const e=(yield xj()).transaction(k0),i=yield e.objectStore(k0).get(kj(t));return yield e.done,i}catch(n){if(n instanceof $m)th.warn(n.message);else{const e=_l.create("idb-get",{originalErrorMessage:n?.message});th.warn(e.message)}}})).apply(this,arguments)}function wj(t,n){return LA.apply(this,arguments)}function LA(){return(LA=me(function*(t,n){try{const i=(yield xj()).transaction(k0,"readwrite");yield i.objectStore(k0).put(n,kj(t)),yield i.done}catch(e){if(e instanceof $m)th.warn(e.message);else{const i=_l.create("idb-set",{originalErrorMessage:e?.message});th.warn(i.message)}}})).apply(this,arguments)}function kj(t){return`${t.name}!${t.options.appId}`}class fDe{constructor(n){this.container=n,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new pDe(e),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}triggerHeartbeat(){var n=this;return me(function*(){var e,i;const o=n.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=Cj();if((null!=(null===(e=n._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(n._heartbeatsCache=yield n._heartbeatsCachePromise,null!=(null===(i=n._heartbeatsCache)||void 0===i?void 0:i.heartbeats)))&&n._heartbeatsCache.lastSentHeartbeatDate!==s&&!n._heartbeatsCache.heartbeats.some(a=>a.date===s))return n._heartbeatsCache.heartbeats.push({date:s,agent:o}),n._heartbeatsCache.heartbeats=n._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=2592e6}),n._storage.overwrite(n._heartbeatsCache)})()}getHeartbeatsHeader(){var n=this;return me(function*(){var e;if(null===n._heartbeatsCache&&(yield n._heartbeatsCachePromise),null==(null===(e=n._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===n._heartbeatsCache.heartbeats.length)return"";const i=Cj(),{heartbeatsToSend:r,unsentEntries:o}=function mDe(t,n=1024){const e=[];let i=t.slice();for(const r of t){const o=e.find(s=>s.agent===r.agent);if(o){if(o.dates.push(r.date),Tj(e)>n){o.dates.pop();break}}else if(e.push({agent:r.agent,dates:[r.date]}),Tj(e)>n){e.pop();break}i=i.slice(1)}return{heartbeatsToSend:e,unsentEntries:i}}(n._heartbeatsCache.heartbeats),s=x1(JSON.stringify({version:2,heartbeats:r}));return n._heartbeatsCache.lastSentHeartbeatDate=i,o.length>0?(n._heartbeatsCache.heartbeats=o,yield n._storage.overwrite(n._heartbeatsCache)):(n._heartbeatsCache.heartbeats=[],n._storage.overwrite(n._heartbeatsCache)),s})()}}function Cj(){return(new Date).toISOString().substring(0,10)}class pDe{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return me(function*(){return!!aj()&&function eSe(){return new Promise((t,n)=>{try{let e=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),e||self.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=()=>{e=!1},r.onerror=()=>{var o;n((null===(o=r.error)||void 0===o?void 0:o.message)||"")}}catch(e){n(e)}})}().then(()=>!0).catch(()=>!1)})()}read(){var n=this;return me(function*(){if(yield n._canUseIndexedDBPromise){const i=yield function dDe(t){return NA.apply(this,arguments)}(n.app);return i?.heartbeats?i:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(n){var e=this;return me(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return wj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:n.heartbeats})}})()}add(n){var e=this;return me(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return wj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...n.heartbeats]})}})()}}function Tj(t){return x1(JSON.stringify({version:2,heartbeats:t})).length}!function gDe(t){E1(new w0("platform-logger",n=>new ISe(n),"PRIVATE")),E1(new w0("heartbeat",n=>new fDe(n),"PRIVATE")),Gm(PA,"0.9.29",t),Gm(PA,"0.9.29","esm2017"),Gm("fire-js","")}("");var nt,_De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Na={},VA=VA||{},Bt=_De||self;function S1(t){var n=typeof t;return"array"==(n="object"!=n?n:t?Array.isArray(t)?"array":n:"null")||"object"==n&&"number"==typeof t.length}function C0(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}var BA="closure_uid_"+(1e9*Math.random()>>>0),vDe=0;function yDe(t,n,e){return t.call.apply(t.bind,arguments)}function xDe(t,n,e){if(!t)throw Error();if(2{};Bt.addEventListener("test",e,n),Bt.removeEventListener("test",e,n)}catch{}return t}();function T0(t){return/^[\s\xa0]*$/.test(t)}function I1(){var t=Bt.navigator;return t&&(t=t.userAgent)?t:""}function bc(t){return-1!=I1().indexOf(t)}function zA(t){return zA[" "](t),t}zA[" "]=function(){};var jA,t,TDe=bc("Opera"),Wm=bc("Trident")||bc("MSIE"),Dj=bc("Edge"),HA=Dj||Wm,Ij=bc("Gecko")&&!(-1!=I1().toLowerCase().indexOf("webkit")&&!bc("Edge"))&&!(bc("Trident")||bc("MSIE"))&&!bc("Edge"),EDe=-1!=I1().toLowerCase().indexOf("webkit")&&!bc("Edge");function Aj(){var t=Bt.document;return t?t.documentMode:void 0}e:{var $A="",GA=(t=I1(),Ij?/rv:([^\);]+)(\)|;)/.exec(t):Dj?/Edge\/([\d\.]+)/.exec(t):Wm?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):EDe?/WebKit\/(\S+)/.exec(t):TDe?/(?:Version)[ \/]?(\S+)/.exec(t):void 0);if(GA&&($A=GA?GA[1]:""),Wm){var WA=Aj();if(null!=WA&&WA>parseFloat($A)){jA=String(WA);break e}}jA=$A}var SDe=Bt.document&&Wm&&(Aj()||parseInt(jA,10))||void 0;function E0(t,n){if(Ao.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var e=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=n,n=t.relatedTarget){if(Ij){e:{try{zA(n.nodeName);var r=!0;break e}catch{}r=!1}r||(n=null)}}else"mouseover"==e?n=t.fromElement:"mouseout"==e&&(n=t.toElement);this.relatedTarget=n,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:DDe[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&E0.$.h.call(this)}}qr(E0,Ao);var DDe={2:"touch",3:"pen",4:"mouse"};E0.prototype.h=function(){E0.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var S0="closure_listenable_"+(1e6*Math.random()|0),IDe=0;function ADe(t,n,e,i,r){this.listener=t,this.proxy=null,this.src=n,this.type=e,this.capture=!!i,this.la=r,this.key=++IDe,this.fa=this.ia=!1}function A1(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function QA(t,n,e){for(const i in t)n.call(e,t[i],i,t)}function Rj(t){const n={};for(const e in t)n[e]=t[e];return n}const Pj="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Fj(t,n){let e,i;for(let r=1;r>>0);function nM(t){return"function"==typeof t?t:(t[tM]||(t[tM]=function(n){return t.handleEvent(n)}),t[tM])}function Qr(){Id.call(this),this.i=new M1(this),this.S=this,this.J=null}function ao(t,n){var e,i=t.J;if(i)for(e=[];i;i=i.J)e.push(i);if(t=t.S,i=n.type||n,"string"==typeof n)n=new Ao(n,t);else if(n instanceof Ao)n.target=n.target||t;else{var r=n;Fj(n=new Ao(i,t),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var s=n.g=e[o];r=R1(s,i,!0,n)&&r}if(r=R1(s=n.g=t,i,!0,n)&&r,r=R1(s,i,!1,n)&&r,e)for(o=0;onew LDe,t=>t.reset());class LDe{constructor(){this.next=this.g=this.h=null}set(n,e){this.h=n,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}function VDe(t){var n=1;t=t.split(":");const e=[];for(;0{throw t},0)}let D0,I0=!1,rM=new class NDe{constructor(){this.h=this.g=null}add(n,e){const i=Uj.get();i.set(n,e),this.h?this.h.next=i:this.g=i,this.h=i}},zj=()=>{const t=Bt.Promise.resolve(void 0);D0=()=>{t.then(UDe)}};var UDe=()=>{for(var t;t=ODe();){try{t.h.call(t.g)}catch(e){BDe(e)}var n=Uj;n.j(t),100>n.h&&(n.h++,t.next=n.g,n.g=t)}I0=!1};function P1(t,n){Qr.call(this),this.h=t||1,this.g=n||Bt,this.j=Io(this.qb,this),this.l=Date.now()}function oM(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function sM(t,n,e){if("function"==typeof t)e&&(t=Io(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Io(t.handleEvent,t)}return 2147483647{t.g=null,t.i&&(t.i=!1,Hj(t))},t.j);const n=t.h;t.h=null,t.m.apply(null,n)}qr(P1,Qr),(nt=P1.prototype).ga=!1,nt.T=null,nt.qb=function(){if(this.ga){var t=Date.now()-this.l;0i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var o=r[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;sn.length?uM:(n=n.slice(i,i+e),t.o=i+e,n))}function O0(t){t.Y=Date.now()+t.P,r$(t,t.P)}function r$(t,n){if(null!=t.C)throw Error("WatchDog timer not null");t.C=R0(Io(t.lb,t),n)}function V1(t){t.C&&(Bt.clearTimeout(t.C),t.C=null)}function N0(t){0==t.l.H||t.J||M$(t.l,t)}function rh(t){V1(t);var n=t.M;n&&"function"==typeof n.sa&&n.sa(),t.M=null,oM(t.V),Gj(t.U),t.g&&(n=t.g,t.g=null,n.abort(),n.sa())}function fM(t,n){try{var e=t.l;if(0!=e.H&&(e.g==t||mM(e.i,t)))if(!t.K&&mM(e.i,t)&&3==e.H){try{var i=e.Ja.g.parse(n)}catch{i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){e:if(!e.u){if(e.g){if(!(e.g.G+3e3r[2]&&e.G&&0==e.A&&!e.v&&(e.v=R0(Io(e.ib,e),6e3));if(1>=m$(e.i)&&e.oa){try{e.oa()}catch{}e.oa=void 0}}else sh(e,11)}else if((t.K||e.g==t)&&q1(e),!T0(n))for(r=e.Ja.g.parse(n),n=0;nd)&&(3!=d||HA||this.g&&(this.h.h||this.g.ja()||k$(this.g)))){this.J||4!=d||7==n||M0(),V1(this);var e=this.g.da();this.ca=e;t:if(n$(this)){var i=k$(this.g);t="";var r=i.length,o=4==vc(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){rh(this),N0(this);var s="";break t}this.h.i=new Bt.TextDecoder}for(n=0;nn)throw Error("Bad port number "+n);t.m=n}else t.m=null}function a$(t,n,e){n instanceof B0?(t.i=n,function nIe(t,n){n&&!t.j&&(Ad(t),t.i=null,t.g.forEach(function(e,i){var r=i.toLowerCase();i!=r&&(l$(this,i),u$(this,r,e))},t)),t.j=n}(t.i,t.h)):(e||(n=V0(n,eIe)),t.i=new B0(n,t.h))}function Ei(t,n,e){t.i.set(n,e)}function z1(t){return Ei(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function L0(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function V0(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,YDe),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function YDe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}oh.prototype.toString=function(){var t=[],n=this.j;n&&t.push(V0(n,c$,!0),":");var e=this.g;return(e||"file"==n)&&(t.push("//"),(n=this.s)&&t.push(V0(n,c$,!0),"@"),t.push(encodeURIComponent(String(e)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(e=this.m)&&t.push(":",String(e))),(e=this.l)&&(this.g&&"/"!=e.charAt(0)&&t.push("/"),t.push(V0(e,"/"==e.charAt(0)?JDe:ZDe,!0))),(e=this.i.toString())&&t.push("?",e),(e=this.o)&&t.push("#",V0(e,tIe)),t.join("")};var c$=/[#\/\?@]/g,ZDe=/[#\?:]/g,JDe=/[#\?]/g,eIe=/[#\?@]/g,tIe=/#/g;function B0(t,n){this.h=this.g=null,this.i=t||null,this.j=!!n}function Ad(t){t.g||(t.g=new Map,t.h=0,t.i&&function XDe(t,n){if(t){t=t.split("&");for(var e=0;e=t.j}function m$(t){return t.h?1:t.g?t.g.size:0}function mM(t,n){return t.h?t.h==n:!!t.g&&t.g.has(n)}function pM(t,n){t.g?t.g.add(n):t.h=n}function p$(t,n){t.h&&t.h==n?t.h=null:t.g&&t.g.has(n)&&t.g.delete(n)}function g$(t){if(null!=t.h)return t.i.concat(t.h.F);if(null!=t.g&&0!==t.g.size){let n=t.i;for(const e of t.g.values())n=n.concat(e.F);return n}return UA(t.i)}h$.prototype.cancel=function(){if(this.i=g$(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const t of this.g.values())t.cancel();this.g.clear()}};var oIe=class{stringify(t){return Bt.JSON.stringify(t,void 0)}parse(t){return Bt.JSON.parse(t,void 0)}};function sIe(){this.g=new oIe}function aIe(t,n,e){const i=e||"";try{o$(t,function(r,o){let s=r;C0(r)&&(s=iM(r)),n.push(i+o+"="+encodeURIComponent(s))})}catch(r){throw n.push(i+"type="+encodeURIComponent("_badmap")),r}}function H1(t,n,e,i,r){try{n.onload=null,n.onerror=null,n.onabort=null,n.ontimeout=null,r(i)}catch{}}function U0(t){this.l=t.ec||null,this.j=t.ob||!1}function j1(t,n){Qr.call(this),this.F=t,this.u=n,this.m=void 0,this.readyState=gM,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}qr(U0,aM),U0.prototype.g=function(){return new j1(this.l,this.j)},U0.prototype.i=function(t){return function(){return t}}({}),qr(j1,Qr);var gM=0;function _$(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function z0(t){t.readyState=4,t.l=null,t.j=null,t.A=null,H0(t)}function H0(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(nt=j1.prototype).open=function(t,n){if(this.readyState!=gM)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=n,this.readyState=1,H0(this)},nt.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const n={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(n.body=t),(this.F||Bt).fetch(new Request(this.B,n)).then(this.$a.bind(this),this.ka.bind(this))},nt.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,z0(this)),this.readyState=gM},nt.$a=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,H0(this)),this.g&&(this.readyState=3,H0(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Bt.ReadableStream<"u"&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;_$(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))},nt.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var n=t.value?t.value:new Uint8Array(0);(n=this.A.decode(n,{stream:!t.done}))&&(this.response=this.responseText+=n)}t.done?z0(this):H0(this),3==this.readyState&&_$(this)}},nt.Za=function(t){this.g&&(this.response=this.responseText=t,z0(this))},nt.Ya=function(t){this.g&&(this.response=t,z0(this))},nt.ka=function(){this.g&&z0(this)},nt.setRequestHeader=function(t,n){this.v.append(t,n)},nt.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},nt.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],n=this.h.entries();for(var e=n.next();!e.done;)t.push((e=e.value)[0]+": "+e[1]),e=n.next();return t.join("\r\n")},Object.defineProperty(j1.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var lIe=Bt.JSON.parse;function zi(t){Qr.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=b$,this.L=this.M=!1}qr(zi,Qr);var b$="",dIe=/^https?$/i,uIe=["POST","PUT"];function v$(t,n){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=n,t.m=5,y$(t),$1(t)}function y$(t){t.F||(t.F=!0,ao(t,"complete"),ao(t,"error"))}function x$(t){if(t.h&&typeof VA<"u"&&(!t.C[1]||4!=vc(t)||2!=t.da()))if(t.v&&4==vc(t))sM(t.La,0,t);else if(ao(t,"readystatechange"),4==vc(t)){t.h=!1;try{const s=t.da();e:switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}var e;if(!(e=n)){var i;if(i=0===s){var r=String(t.I).match(s$)[1]||null;!r&&Bt.self&&Bt.self.location&&(r=Bt.self.location.protocol.slice(0,-1)),i=!dIe.test(r?r.toLowerCase():"")}e=i}if(e)ao(t,"complete"),ao(t,"success");else{t.m=6;try{var o=2{}:null;t.g=null,t.C=null,n||ao(t,"ready");try{e.onreadystatechange=i}catch{}}}function w$(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Bt.clearTimeout(t.A),t.A=null)}function vc(t){return t.g?t.g.readyState:0}function k$(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case b$:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function C$(t){let n="";return QA(t,function(e,i){n+=i,n+=":",n+=e,n+="\r\n"}),n}function _M(t,n,e){e:{for(i in e){var i=!1;break e}i=!0}i||(e=C$(e),"string"==typeof t?null!=e&&encodeURIComponent(String(e)):Ei(t,n,e))}function j0(t,n,e){return e&&e.internalChannelParams&&e.internalChannelParams[t]||n}function T$(t){this.Ga=0,this.j=[],this.l=new F1,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=j0("failFast",!1,t),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=j0("baseRetryDelayMs",5e3,t),this.hb=j0("retryDelaySeedMs",1e4,t),this.eb=j0("forwardChannelMaxRetries",2,t),this.xa=j0("forwardChannelRequestTimeoutMs",2e4,t),this.va=t&&t.xmlHttpFactory||void 0,this.Ha=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.i=new h$(t&&t.concurrentRequestLimit),this.Ja=new sIe,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=t&&t.bc||!1,t&&t.Ea&&this.l.Ea(),t&&t.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&t&&t.detectBufferingProxy||!1,this.qa=void 0,t&&t.longPollingTimeout&&0l)o=Math.max(0,r[c].g-100),a=!1;else try{aIe(d,s,"req"+l+"_")}catch{i&&i(d)}}if(a){i=s.join("&");break e}}}return t=t.j.splice(0,e),n.F=t,i}function I$(t){if(!t.g&&!t.u){t.ba=1;var n=t.Ma;D0||zj(),I0||(D0(),I0=!0),rM.add(n,t),t.A=0}}function vM(t){return!(t.g||t.u||3<=t.A||(t.ba++,t.u=R0(Io(t.Ma,t),R$(t,t.A)),t.A++,0))}function yM(t){null!=t.B&&(Bt.clearTimeout(t.B),t.B=null)}function A$(t){t.g=new F0(t,t.l,"rpc",t.ba),null===t.o&&(t.g.I=t.s),t.g.O=0;var n=bl(t.wa);Ei(n,"RID","rpc"),Ei(n,"SID",t.K),Ei(n,"AID",t.V),Ei(n,"CI",t.G?"0":"1"),!t.G&&t.qa&&Ei(n,"TO",t.qa),Ei(n,"TYPE","xmlhttp"),$0(t,n),t.o&&t.s&&_M(n,t.o,t.s),t.L&&t.g.setTimeout(t.L);var e=t.g;t=t.pa,e.L=1,e.A=z1(bl(n)),e.u=null,e.S=!0,t$(e,t)}function q1(t){null!=t.v&&(Bt.clearTimeout(t.v),t.v=null)}function M$(t,n){var e=null;if(t.g==n){q1(t),yM(t),t.g=null;var i=2}else{if(!mM(t.i,n))return;e=n.F,p$(t.i,n),i=1}if(0!=t.H)if(n.i)if(1==i){e=n.u?n.u.length:0,n=Date.now()-n.G;var r=t.C;ao(i=O1(),new Kj(i,e)),W1(t)}else I$(t);else if(3==(r=n.s)||0==r&&0=t.i.j-(t.m?1:0)||(t.m?(t.j=n.F.concat(t.j),0):1==t.H||2==t.H||t.C>=(t.cb?0:t.eb)||(t.m=R0(Io(t.Na,t,n),R$(t,t.C)),t.C++,0)))}(t,n)||2==i&&vM(t)))switch(e&&0r;++r)i[r]=n.charCodeAt(e++)|n.charCodeAt(e++)<<8|n.charCodeAt(e++)<<16|n.charCodeAt(e++)<<24;else for(r=0;16>r;++r)i[r]=n[e++]|n[e++]<<8|n[e++]<<16|n[e++]<<24;var o=t.g[3],s=(n=t.g[0])+(o^(e=t.g[1])&((r=t.g[2])^o))+i[0]+3614090360&4294967295;s=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=e+(s<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[1]+3905402710&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[2]+606105819&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[3]+3250441966&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[4]+4118548399&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[5]+1200080426&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[6]+2821735955&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[7]+4249261313&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[8]+1770035416&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[9]+2336552879&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[10]+4294925233&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[11]+2304563134&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[12]+1804603682&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[13]+4254626195&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[14]+2792965006&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[15]+1236535329&4294967295)<<22&4294967295|s>>>10))+((s=n+(r^o&(e^r))+i[1]+4129170786&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[6]+3225465664&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[11]+643717713&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[0]+3921069994&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[5]+3593408605&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[10]+38016083&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[15]+3634488961&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[4]+3889429448&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[9]+568446438&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[14]+3275163606&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[3]+4107603335&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[8]+1163531501&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[13]+2850285829&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[2]+4243563512&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[7]+1735328473&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[12]+2368359562&4294967295)<<20&4294967295|s>>>12))+((s=n+(e^r^o)+i[5]+4294588738&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[8]+2272392833&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[11]+1839030562&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[14]+4259657740&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[1]+2763975236&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[4]+1272893353&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[7]+4139469664&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[10]+3200236656&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[13]+681279174&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[0]+3936430074&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[3]+3572445317&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[6]+76029189&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[9]+3654602809&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[12]+3873151461&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[15]+530742520&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[2]+3299628645&4294967295)<<23&4294967295|s>>>9))+((s=n+(r^(e|~o))+i[0]+4096336452&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[7]+1126891415&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[14]+2878612391&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[5]+4237533241&4294967295)<<21&4294967295|s>>>11))+((s=n+(r^(e|~o))+i[12]+1700485571&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[3]+2399980690&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[10]+4293915773&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[1]+2240044497&4294967295)<<21&4294967295|s>>>11))+((s=n+(r^(e|~o))+i[8]+1873313359&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[15]+4264355552&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[6]+2734768916&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[13]+1309151649&4294967295)<<21&4294967295|s>>>11))+((o=(n=e+((s=n+(r^(e|~o))+i[4]+4149444226&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[11]+3174756917&4294967295)<<10&4294967295|s>>>22))^((r=o+((s=r+(n^(o|~e))+i[2]+718787259&4294967295)<<15&4294967295|s>>>17))|~n))+i[9]+3951481745&4294967295,t.g[0]=t.g[0]+n&4294967295,t.g[1]=t.g[1]+(r+(s<<21&4294967295|s>>>11))&4294967295,t.g[2]=t.g[2]+r&4294967295,t.g[3]=t.g[3]+o&4294967295}function Zn(t,n){this.h=n;for(var e=[],i=!0,r=t.length-1;0<=r;r--){var o=0|t[r];i&&o==n||(e[r]=o,i=!1)}this.g=e}(nt=zi.prototype).Oa=function(t){this.M=t},nt.ha=function(t,n,e,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);n=n?n.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():dM.g(),this.C=function Yj(t){return t.h||(t.h=t.i())}(this.u?this.u:dM),this.g.onreadystatechange=Io(this.La,this);try{this.G=!0,this.g.open(n,String(t),!0),this.G=!1}catch(o){return void v$(this,o)}if(t=e||"",e=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var r in i)e.set(r,i[r]);else{if("function"!=typeof i.keys||"function"!=typeof i.get)throw Error("Unknown input type for opt_headers: "+String(i));for(const o of i.keys())e.set(o,i.get(o))}i=Array.from(e.keys()).find(o=>"content-type"==o.toLowerCase()),r=Bt.FormData&&t instanceof Bt.FormData,!(0<=Ej(uIe,n))||i||r||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[o,s]of e)this.g.setRequestHeader(o,s);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{w$(this),0=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=R0(Io(this.jb,this),t)}},nt.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Jo(10),G1(this),A$(this))},nt.ib=function(){null!=this.v&&(this.v=null,G1(this),vM(this),Jo(19))},nt.pb=function(t){t?(this.l.info("Successfully pinged google.com"),Jo(2)):(this.l.info("Failed to ping google.com"),Jo(1))},nt.isActive=function(){return!!this.h&&this.h.isActive(this)},(nt=N$.prototype).Ba=function(){},nt.Aa=function(){},nt.za=function(){},nt.ya=function(){},nt.isActive=function(){return!0},nt.Va=function(){},Q1.prototype.g=function(t,n){return new Us(t,n)},qr(Us,Qr),Us.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var t=this.g,n=this.l,e=this.h||void 0;Jo(0),t.Y=n,t.na=e||{},t.G=t.aa,t.I=F$(t,null,t.Y),W1(t)},Us.prototype.close=function(){bM(this.g)},Us.prototype.u=function(t){var n=this.g;if("string"==typeof t){var e={};e.__data__=t,t=e}else this.v&&((e={}).__data__=iM(t),t=e);n.j.push(new iIe(n.fb++,t)),3==n.H&&W1(n)},Us.prototype.N=function(){this.g.h=null,delete this.j,bM(this.g),delete this.g,Us.$.N.call(this)},qr(L$,cM),qr(V$,lM),qr(Km,N$),Km.prototype.Ba=function(){ao(this.g,"a")},Km.prototype.Aa=function(t){ao(this.g,new L$(t))},Km.prototype.za=function(t){ao(this.g,new V$)},Km.prototype.ya=function(){ao(this.g,"b")},qr(La,function pIe(){this.blockSize=-1}),La.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},La.prototype.j=function(t,n){void 0===n&&(n=t.length);for(var e=n-this.blockSize,i=this.m,r=this.h,o=0;othis.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var n=1;nn;++n)for(var i=0;32>i;i+=8)t[e++]=this.g[n]>>>i&255;return t};var gIe={};function wM(t){return-128<=t&&128>t?function CDe(t,n){var e=gIe;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=n(t)}(t,function(n){return new Zn([0|n],0>n?-1:0)}):new Zn([0|t],0>t?-1:0)}function yc(t){if(isNaN(t)||!isFinite(t))return Xm;if(0>t)return co(yc(-t));for(var n=[],e=1,i=0;t>=e;i++)n[i]=t/e|0,e*=kM;return new Zn(n,0)}var kM=4294967296,Xm=wM(0),CM=wM(1),U$=wM(16777216);function vl(t){if(0!=t.h)return!1;for(var n=0;n>>16,t[n]&=65535,n++}function G0(t,n){this.g=t,this.h=n}function Y1(t,n){if(vl(n))throw Error("division by zero");if(vl(t))return new G0(Xm,Xm);if(sa(t))return n=Y1(co(t),n),new G0(co(n.g),co(n.h));if(sa(n))return n=Y1(t,co(n)),new G0(co(n.g),n.h);if(30=i.X(t);)e=z$(e),i=z$(i);var r=Ym(e,1),o=Ym(i,1);for(i=Ym(i,2),e=Ym(e,2);!vl(i);){var s=o.add(i);0>=s.X(t)&&(r=r.add(e),o=s),i=Ym(i,1),e=Ym(e,1)}return n=K1(t,r.R(n)),new G0(r,n)}for(r=Xm;0<=t.X(n);){for(e=Math.max(1,Math.floor(t.ea()/n.ea())),i=48>=(i=Math.ceil(Math.log(e)/Math.LN2))?1:Math.pow(2,i-48),s=(o=yc(e)).R(n);sa(s)||0>>31;return new Zn(e,t.h)}function Ym(t,n){var e=n>>5;n%=32;for(var i=t.g.length-e,r=[],o=0;o>>n|t.D(o+e+1)<<32-n:t.D(o+e);return new Zn(r,t.h)}(nt=Zn.prototype).ea=function(){if(sa(this))return-co(this).ea();for(var t=0,n=1,e=0;e(t=t||10)||36>>0).toString(t);if(vl(e=r))return o+i;for(;6>o.length;)o="0"+o;i=o+i}},nt.D=function(t){return 0>t?0:t>>16)+(this.D(r)>>>16)+(t.D(r)>>>16);i=s>>>16,e[r]=(s&=65535)<<16|(o&=65535)}return new Zn(e,-2147483648&e[e.length-1]?-1:0)},nt.R=function(t){if(vl(this)||vl(t))return Xm;if(sa(this))return sa(t)?co(this).R(co(t)):co(co(this).R(t));if(sa(t))return co(this.R(co(t)));if(0>this.X(U$)&&0>t.X(U$))return yc(this.ea()*t.ea());for(var n=this.g.length+t.g.length,e=[],i=0;i<2*n;i++)e[i]=0;for(i=0;i>>16,s=65535&this.D(i),a=t.D(r)>>>16,c=65535&t.D(r);e[2*i+2*r]+=s*c,X1(e,2*i+2*r),e[2*i+2*r+1]+=o*c,X1(e,2*i+2*r+1),e[2*i+2*r+1]+=s*a,X1(e,2*i+2*r+1),e[2*i+2*r+2]+=o*a,X1(e,2*i+2*r+2)}for(i=0;i(n=n||10)||36o?(o=yc(Math.pow(n,o)),i=i.R(o).add(yc(s))):i=(i=i.R(e)).add(yc(s))}return i};var _Ie=Na.createWebChannelTransport=function(){return new Q1},bIe=Na.getStatEventTarget=function(){return O1()},TM=Na.ErrorCode=N1,vIe=Na.EventType=Xj,yIe=Na.Event=ih,H$=Na.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},Z1=(Na.FetchXmlHttpFactory=U0,Na.WebChannel=Zj),xIe=Na.XhrIo=zi,wIe=Na.Md5=La,Zm=Na.Integer=Zn;const j$="@firebase/firestore";class Kr{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Kr.UNAUTHENTICATED=new Kr(null),Kr.GOOGLE_CREDENTIALS=new Kr("google-credentials-uid"),Kr.FIRST_PARTY=new Kr("first-party-uid"),Kr.MOCK_USER=new Kr("mock-user");let Jm="10.9.0";const Md=new hj("@firebase/firestore");function ep(){return Md.logLevel}function De(t,...n){if(Md.logLevel<=Dn.DEBUG){const e=n.map(EM);Md.debug(`Firestore (${Jm}): ${t}`,...e)}}function Ji(t,...n){if(Md.logLevel<=Dn.ERROR){const e=n.map(EM);Md.error(`Firestore (${Jm}): ${t}`,...e)}}function zs(t,...n){if(Md.logLevel<=Dn.WARN){const e=n.map(EM);Md.warn(`Firestore (${Jm}): ${t}`,...e)}}function EM(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return t}}function ot(t="Unexpected state"){const n=`FIRESTORE (${Jm}) INTERNAL ASSERTION FAILED: `+t;throw Ji(n),new Error(n)}function ht(t,n){t||ot()}function qe(t,n){return t}const de={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ie extends $m{constructor(n,e){super(n,e),this.code=n,this.message=e,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Pr{constructor(){this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}}class $${constructor(n,e){this.user=e,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class kIe{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,e){n.enqueueRetryable(()=>e(Kr.UNAUTHENTICATED))}shutdown(){}}class CIe{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,e){this.changeListener=e,n.enqueueRetryable(()=>e(this.token.user))}shutdown(){this.changeListener=null}}class TIe{constructor(n){this.t=n,this.currentUser=Kr.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,e){var i=this;let r=this.i;const o=l=>this.i!==r?(r=this.i,e(l)):Promise.resolve();let s=new Pr;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new Pr,n.enqueueRetryable(()=>o(this.currentUser))};const a=()=>{const l=s;n.enqueueRetryable(me(function*(){yield l.promise,yield o(i.currentUser)}))},c=l=>{De("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(l=>c(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?c(l):(De("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new Pr)}},0),a()}getToken(){const n=this.i,e=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(e).then(i=>this.i!==n?(De("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):i?(ht("string"==typeof i.accessToken),new $$(i.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return ht(null===n||"string"==typeof n),new Kr(n)}}class EIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i,this.type="FirstParty",this.user=Kr.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class SIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i}getToken(){return Promise.resolve(new EIe(this.l,this.h,this.P))}start(n,e){n.enqueueRetryable(()=>e(Kr.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class G${constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class DIe{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,e){const i=o=>{null!=o.error&&De("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const s=o.token!==this.R;return this.R=o.token,De("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?e(o.token):Promise.resolve()};this.o=o=>{n.enqueueRetryable(()=>i(o))};const r=o=>{De("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.appCheck.addTokenListener(this.o)};this.A.onInit(o=>r(o)),setTimeout(()=>{if(!this.appCheck){const o=this.A.getImmediate({optional:!0});o?r(o):De("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(e=>e?(ht("string"==typeof e.token),this.R=e.token,new G$(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function IIe(t){const n=typeof self<"u"&&(self.crypto||self.msCrypto),e=new Uint8Array(t);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(e);else for(let i=0;in?1:0}function tp(t,n,e){return t.length===n.length&&t.every((i,r)=>e(i,n[r]))}class Ai{constructor(n,e){if(this.seconds=n,this.nanoseconds=e,e<0)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(n<-62135596800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Ai.fromMillis(Date.now())}static fromDate(n){return Ai.fromMillis(n.getTime())}static fromMillis(n){const e=Math.floor(n/1e3),i=Math.floor(1e6*(n-1e3*e));return new Ai(e,i)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Nt(this.nanoseconds,n.nanoseconds):Nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class pt{constructor(n){this.timestamp=n}static fromTimestamp(n){return new pt(n)}static min(){return new pt(new Ai(0,0))}static max(){return new pt(new Ai(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class W0{constructor(n,e,i){void 0===e?e=0:e>n.length&&ot(),void 0===i?i=n.length-e:i>n.length-e&&ot(),this.segments=n,this.offset=e,this.len=i}get length(){return this.len}isEqual(n){return 0===W0.comparator(this,n)}child(n){const e=this.segments.slice(this.offset,this.limit());return n instanceof W0?n.forEach(i=>{e.push(i)}):e.push(n),this.construct(e)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.lengths)return 1}return n.lengthe.length?1:0}}class vn extends W0{construct(n,e,i){return new vn(n,e,i)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const e=[];for(const i of n){if(i.indexOf("//")>=0)throw new Ie(de.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);e.push(...i.split("/").filter(r=>r.length>0))}return new vn(e)}static emptyPath(){return new vn([])}}const AIe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Mi extends W0{construct(n,e,i){return new Mi(n,e,i)}static isValidIdentifier(n){return AIe.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Mi.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Mi(["__name__"])}static fromServerFormat(n){const e=[];let i="",r=0;const o=()=>{if(0===i.length)throw new Ie(de.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);e.push(i),i=""};let s=!1;for(;r=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===vn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,e){return vn.comparator(n.path,e.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Xe(new vn(n.slice()))}}function K$(t){return new Hs(t.readTime,t.key,-1)}class Hs{constructor(n,e,i){this.readTime=n,this.documentKey=e,this.largestBatchId=i}static min(){return new Hs(pt.min(),Xe.empty(),-1)}static max(){return new Hs(pt.max(),Xe.empty(),-1)}}function DM(t,n){let e=t.readTime.compareTo(n.readTime);return 0!==e?e:(e=Xe.comparator(t.documentKey,n.documentKey),0!==e?e:Nt(t.largestBatchId,n.largestBatchId))}const X$="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Y${constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Rd(t){return IM.apply(this,arguments)}function IM(){return IM=me(function*(t){if(t.code!==de.FAILED_PRECONDITION||t.message!==X$)throw t;De("LocalStore","Unexpectedly lost primary lease")}),IM.apply(this,arguments)}class Z{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(n){return this.next(void 0,n)}next(n,e){return this.callbackAttached&&ot(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(e,this.error):this.wrapSuccess(n,this.result):new Z((i,r)=>{this.nextCallback=o=>{this.wrapSuccess(n,o).next(i,r)},this.catchCallback=o=>{this.wrapFailure(e,o).next(i,r)}})}toPromise(){return new Promise((n,e)=>{this.next(n,e)})}wrapUserFunction(n){try{const e=n();return e instanceof Z?e:Z.resolve(e)}catch(e){return Z.reject(e)}}wrapSuccess(n,e){return n?this.wrapUserFunction(()=>n(e)):Z.resolve(e)}wrapFailure(n,e){return n?this.wrapUserFunction(()=>n(e)):Z.reject(e)}static resolve(n){return new Z((e,i)=>{e(n)})}static reject(n){return new Z((e,i)=>{i(n)})}static waitFor(n){return new Z((e,i)=>{let r=0,o=0,s=!1;n.forEach(a=>{++r,a.next(()=>{++o,s&&o===r&&e()},c=>i(c))}),s=!0,o===r&&e()})}static or(n){let e=Z.resolve(!1);for(const i of n)e=e.next(r=>r?Z.resolve(r):i());return e}static forEach(n,e){const i=[];return n.forEach((r,o)=>{i.push(e.call(this,r,o))}),this.waitFor(i)}static mapArray(n,e){return new Z((i,r)=>{const o=n.length,s=new Array(o);let a=0;for(let c=0;c{s[l]=d,++a,a===o&&i(s)},d=>r(d))}})}static doWhile(n,e){return new Z((i,r)=>{const o=()=>{!0===n()?e().next(()=>{o()},r):i()};o()})}}class J1{constructor(n,e){this.action=n,this.transaction=e,this.aborted=!1,this.V=new Pr,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{e.error?this.V.reject(new q0(n,e.error)):this.V.resolve()},this.transaction.onerror=i=>{const r=AM(i.target.error);this.V.reject(new q0(n,r))}}static open(n,e,i,r){try{return new J1(e,n.transaction(r,i))}catch(o){throw new q0(e,o)}}get m(){return this.V.promise}abort(n){n&&this.V.reject(n),this.aborted||(De("SimpleDb","Aborting transaction:",n?n.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}g(){const n=this.transaction;this.aborted||"function"!=typeof n.commit||n.commit()}store(n){const e=this.transaction.objectStore(n);return new FIe(e)}}class aa{constructor(n,e,i){this.name=n,this.version=e,this.p=i,12.2===aa.S(Sd())&&Ji("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(n){return De("SimpleDb","Removing database:",n),lh(window.indexedDB.deleteDatabase(n)).toPromise()}static D(){if(!aj())return!1;if(aa.C())return!0;const n=Sd(),e=aa.S(n),i=00||n.indexOf("Trident/")>0||n.indexOf("Edge/")>0||i||o)}static C(){var n;return typeof process<"u"&&"YES"===(null===(n=process.__PRIVATE_env)||void 0===n?void 0:n.F)}static M(n,e){return n.store(e)}static S(n){const e=n.match(/i(?:phone|pad|pod) os ([\d_]+)/i),i=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(i)}static v(n){const e=n.match(/Android ([\d.]+)/i),i=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(i)}O(n){var e=this;return me(function*(){return e.db||(De("SimpleDb","Opening database:",e.name),e.db=yield new Promise((i,r)=>{const o=indexedDB.open(e.name,e.version);o.onsuccess=s=>{i(s.target.result)},o.onblocked=()=>{r(new q0(n,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},o.onerror=s=>{const a=s.target.error;r("VersionError"===a.name?new Ie(de.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):"InvalidStateError"===a.name?new Ie(de.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+a):new q0(n,a))},o.onupgradeneeded=s=>{De("SimpleDb",'Database "'+e.name+'" requires upgrade from version:',s.oldVersion),e.p.N(s.target.result,o.transaction,s.oldVersion,e.version).next(()=>{De("SimpleDb","Database upgrade to version "+e.version+" complete")})}})),e.L&&(e.db.onversionchange=i=>e.L(i)),e.db})()}B(n){this.L=n,this.db&&(this.db.onversionchange=e=>n(e))}runTransaction(n,e,i,r){var o=this;return me(function*(){const s="readonly"===e;let a=0;for(;;){++a;try{o.db=yield o.O(n);const c=J1.open(o.db,n,s?"readonly":"readwrite",i),l=r(c).next(d=>(c.g(),d)).catch(d=>(c.abort(d),Z.reject(d))).toPromise();return l.catch(()=>{}),yield c.m,l}catch(c){const l=c,d="FirebaseError"!==l.name&&a<3;if(De("SimpleDb","Transaction failed with error:",l.message,"Retrying:",d),o.close(),!d)return Promise.reject(l)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}class PIe{constructor(n){this.k=n,this.q=!1,this.K=null}get isDone(){return this.q}get $(){return this.K}set cursor(n){this.k=n}done(){this.q=!0}U(n){this.K=n}delete(){return lh(this.k.delete())}}class q0 extends Ie{constructor(n,e){super(de.UNAVAILABLE,`IndexedDB transaction '${n}' failed: ${e}`),this.name="IndexedDbTransactionError"}}function Pd(t){return"IndexedDbTransactionError"===t.name}class FIe{constructor(n){this.store=n}put(n,e){let i;return void 0!==e?(De("SimpleDb","PUT",this.store.name,n,e),i=this.store.put(e,n)):(De("SimpleDb","PUT",this.store.name,"",n),i=this.store.put(n)),lh(i)}add(n){return De("SimpleDb","ADD",this.store.name,n,n),lh(this.store.add(n))}get(n){return lh(this.store.get(n)).next(e=>(void 0===e&&(e=null),De("SimpleDb","GET",this.store.name,n,e),e))}delete(n){return De("SimpleDb","DELETE",this.store.name,n),lh(this.store.delete(n))}count(){return De("SimpleDb","COUNT",this.store.name),lh(this.store.count())}W(n,e){const i=this.options(n,e),r=i.index?this.store.index(i.index):this.store;if("function"==typeof r.getAll){const o=r.getAll(i.range);return new Z((s,a)=>{o.onerror=c=>{a(c.target.error)},o.onsuccess=c=>{s(c.target.result)}})}{const o=this.cursor(i),s=[];return this.G(o,(a,c)=>{s.push(c)}).next(()=>s)}}j(n,e){const i=this.store.getAll(n,null===e?void 0:e);return new Z((r,o)=>{i.onerror=s=>{o(s.target.error)},i.onsuccess=s=>{r(s.target.result)}})}H(n,e){De("SimpleDb","DELETE ALL",this.store.name);const i=this.options(n,e);i.J=!1;const r=this.cursor(i);return this.G(r,(o,s,a)=>a.delete())}Y(n,e){let i;e?i=n:(i={},e=n);const r=this.cursor(i);return this.G(r,e)}Z(n){const e=this.cursor({});return new Z((i,r)=>{e.onerror=o=>{const s=AM(o.target.error);r(s)},e.onsuccess=o=>{const s=o.target.result;s?n(s.primaryKey,s.value).next(a=>{a?s.continue():i()}):i()}})}G(n,e){const i=[];return new Z((r,o)=>{n.onerror=s=>{o(s.target.error)},n.onsuccess=s=>{const a=s.target.result;if(!a)return void r();const c=new PIe(a),l=e(a.primaryKey,a.value,c);if(l instanceof Z){const d=l.catch(u=>(c.done(),Z.reject(u)));i.push(d)}c.isDone?r():null===c.$?a.continue():a.continue(c.$)}}).next(()=>Z.waitFor(i))}options(n,e){let i;return void 0!==n&&("string"==typeof n?i=n:e=n),{index:i,range:e}}cursor(n){let e="next";if(n.reverse&&(e="prev"),n.index){const i=this.store.index(n.index);return n.J?i.openKeyCursor(n.range,e):i.openCursor(n.range,e)}return this.store.openCursor(n.range,e)}}function lh(t){return new Z((n,e)=>{t.onsuccess=i=>{n(i.target.result)},t.onerror=i=>{const r=AM(i.target.error);e(r)}})}let Z$=!1;function AM(t){const n=aa.S(Sd());if(n>=12.2&&n<13){const e="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(e)>=0){const i=new Ie("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${e}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return Z$||(Z$=!0,setTimeout(()=>{throw i},0)),i}}return t}let js=(()=>{class t{constructor(e,i){this.previousValue=e,i&&(i.sequenceNumberHandler=r=>this.se(r),this.oe=r=>i.writeSequenceNumber(r))}se(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.oe&&this.oe(e),e}}return t._e=-1,t})();function Q0(t){return null==t}function K0(t){return 0===t&&1/t==-1/0}function sG(t){let n=0;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n++;return n}function Fd(t,n){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n(e,t[e])}function aG(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}class vi{constructor(n,e){this.comparator=n,this.root=e||lo.EMPTY}insert(n,e){return new vi(this.comparator,this.root.insert(n,e,this.comparator).copy(null,null,lo.BLACK,null,null))}remove(n){return new vi(this.comparator,this.root.remove(n,this.comparator).copy(null,null,lo.BLACK,null,null))}get(n){let e=this.root;for(;!e.isEmpty();){const i=this.comparator(n,e.key);if(0===i)return e.value;i<0?e=e.left:i>0&&(e=e.right)}return null}indexOf(n){let e=0,i=this.root;for(;!i.isEmpty();){const r=this.comparator(n,i.key);if(0===r)return e+i.left.size;r<0?i=i.left:(e+=i.left.size+1,i=i.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((e,i)=>(n(e,i),!1))}toString(){const n=[];return this.inorderTraversal((e,i)=>(n.push(`${e}:${i}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new tk(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new tk(this.root,n,this.comparator,!1)}getReverseIterator(){return new tk(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new tk(this.root,n,this.comparator,!0)}}class tk{constructor(n,e,i,r){this.isReverse=r,this.nodeStack=[];let o=1;for(;!n.isEmpty();)if(o=e?i(n.key,e):1,e&&r&&(o*=-1),o<0)n=this.isReverse?n.left:n.right;else{if(0===o){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const e={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return e}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class lo{constructor(n,e,i,r,o){this.key=n,this.value=e,this.color=i??lo.RED,this.left=r??lo.EMPTY,this.right=o??lo.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,e,i,r,o){return new lo(n??this.key,e??this.value,i??this.color,r??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,e,i){let r=this;const o=i(n,r.key);return r=o<0?r.copy(null,null,null,r.left.insert(n,e,i),null):0===o?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(n,e,i)),r.fixUp()}removeMin(){if(this.left.isEmpty())return lo.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,e){let i,r=this;if(e(n,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(n,e),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===e(n,r.key)){if(r.right.isEmpty())return lo.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(n,e))}return r.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,lo.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,lo.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,e)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw ot();const n=this.left.check();if(n!==this.right.check())throw ot();return n+(this.isRed()?0:1)}}lo.EMPTY=null,lo.RED=!0,lo.BLACK=!1,lo.EMPTY=new class{constructor(){this.size=0}get key(){throw ot()}get value(){throw ot()}get color(){throw ot()}get left(){throw ot()}get right(){throw ot()}copy(n,e,i,r,o){return this}insert(n,e,i){return new lo(n,e)}remove(n,e){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class li{constructor(n){this.comparator=n,this.data=new vi(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((e,i)=>(n(e),!1))}forEachInRange(n,e){const i=this.data.getIteratorFrom(n[0]);for(;i.hasNext();){const r=i.getNext();if(this.comparator(r.key,n[1])>=0)return;e(r.key)}}forEachWhile(n,e){let i;for(i=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();i.hasNext();)if(!n(i.getNext().key))return}firstAfterOrEqual(n){const e=this.data.getIteratorFrom(n);return e.hasNext()?e.getNext().key:null}getIterator(){return new cG(this.data.getIterator())}getIteratorFrom(n){return new cG(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let e=this;return e.size{e=e.add(i)}),e}isEqual(n){if(!(n instanceof li)||this.size!==n.size)return!1;const e=this.data.getIterator(),i=n.data.getIterator();for(;e.hasNext();){const r=e.getNext().key,o=i.getNext().key;if(0!==this.comparator(r,o))return!1}return!0}toArray(){const n=[];return this.forEach(e=>{n.push(e)}),n}toString(){const n=[];return this.forEach(e=>n.push(e)),"SortedSet("+n.toString()+")"}copy(n){const e=new li(this.comparator);return e.data=n,e}}class cG{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class bs{constructor(n){this.fields=n,n.sort(Mi.comparator)}static empty(){return new bs([])}unionWith(n){let e=new li(Mi.comparator);for(const i of this.fields)e=e.add(i);for(const i of n)e=e.add(i);return new bs(e.toArray())}covers(n){for(const e of this.fields)if(e.isPrefixOf(n))return!0;return!1}isEqual(n){return tp(this.fields,n.fields,(e,i)=>e.isEqual(i))}}class lG extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Fr{constructor(n){this.binaryString=n}static fromBase64String(n){const e=function(r){try{return atob(r)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new lG("Invalid base64 string: "+o):o}}(n);return new Fr(e)}static fromUint8Array(n){const e=function(r){let o="";for(let s=0;snwc(e,n))}function Vd(t,n){if(t===n)return 0;const e=Ld(t),i=Ld(n);if(e!==i)return Nt(e,i);switch(e){case 0:case 9007199254740991:return 0;case 1:return Nt(t.booleanValue,n.booleanValue);case 2:return function(o,s){const a=Hi(o.integerValue||o.doubleValue),c=Hi(s.integerValue||s.doubleValue);return ac?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1}(t,n);case 3:return dG(t.timestampValue,n.timestampValue);case 4:return dG(X0(t),X0(n));case 5:return Nt(t.stringValue,n.stringValue);case 6:return function(o,s){const a=yl(o),c=yl(s);return a.compareTo(c)}(t.bytesValue,n.bytesValue);case 7:return function(o,s){const a=o.split("/"),c=s.split("/");for(let l=0;ln.mapValue.fields[e]=J0(i)),n}if(t.arrayValue){const n={arrayValue:{values:[]}};for(let e=0;e<(t.arrayValue.values||[]).length;++e)n.arrayValue.values[e]=J0(t.arrayValue.values[e]);return n}return Object.assign({},t)}function fG(t){return"__max__"===(((t.mapValue||{}).fields||{}).__type__||{}).stringValue}class uo{constructor(n){this.value=n}static empty(){return new uo({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let e=this.value;for(let i=0;i{if(!e.isImmediateParentOf(a)){const c=this.getFieldsMap(e);this.applyChanges(c,i,r),i={},r=[],e=a.popLast()}s?i[a.lastSegment()]=J0(s):r.push(a.lastSegment())});const o=this.getFieldsMap(e);this.applyChanges(o,i,r)}delete(n){const e=this.field(n.popLast());sk(e)&&e.mapValue.fields&&delete e.mapValue.fields[n.lastSegment()]}isEqual(n){return wc(this.value,n.value)}getFieldsMap(n){let e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(let i=0;in[r]=o);for(const r of i)delete n[r]}clone(){return new uo(J0(this.value))}}function gG(t){const n=[];return Fd(t.fields,(e,i)=>{const r=new Mi([e]);if(sk(i)){const o=gG(i.mapValue).fields;if(0===o.length)n.push(r);else for(const s of o)n.push(r.child(s))}else n.push(r)}),new bs(n)}class Si{constructor(n,e,i,r,o,s,a){this.key=n,this.documentType=e,this.version=i,this.readTime=r,this.createTime=o,this.data=s,this.documentState=a}static newInvalidDocument(n){return new Si(n,0,pt.min(),pt.min(),pt.min(),uo.empty(),0)}static newFoundDocument(n,e,i,r){return new Si(n,1,e,pt.min(),i,r,0)}static newNoDocument(n,e){return new Si(n,2,e,pt.min(),pt.min(),uo.empty(),0)}static newUnknownDocument(n,e){return new Si(n,3,e,pt.min(),pt.min(),uo.empty(),2)}convertToFoundDocument(n,e){return!this.createTime.isEqual(pt.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=e,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=uo.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=uo.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=pt.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Si&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Si(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class Bd{constructor(n,e){this.position=n,this.inclusive=e}}function _G(t,n,e){let i=0;for(let r=0;r":return n>0;case">=":return n>=0;default:return ot()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Jn extends vG{constructor(n,e){super(),this.filters=n,this.op=e,this.ue=null}static create(n,e){return new Jn(n,e)}matches(n){return sp(this)?void 0===this.filters.find(e=>!e.matches(n)):void 0!==this.filters.find(e=>e.matches(n))}getFlattenedFilters(){return null!==this.ue||(this.ue=this.filters.reduce((n,e)=>n.concat(e.getFlattenedFilters()),[])),this.ue}getFilters(){return Object.assign([],this.filters)}}function sp(t){return"and"===t.op}function OM(t){return function yG(t){for(const n of t.filters)if(n instanceof Jn)return!1;return!0}(t)&&sp(t)}function NM(t){if(t instanceof yn)return t.field.canonicalString()+t.op.toString()+op(t.value);if(OM(t))return t.filters.map(n=>NM(n)).join(",");{const n=t.filters.map(e=>NM(e)).join(",");return`${t.op}(${n})`}}function xG(t,n){return t instanceof yn?(i=t,(r=n)instanceof yn&&i.op===r.op&&i.field.isEqual(r.field)&&wc(i.value,r.value)):t instanceof Jn?function(i,r){return r instanceof Jn&&i.op===r.op&&i.filters.length===r.filters.length&&i.filters.reduce((o,s,a)=>o&&xG(s,r.filters[a]),!0)}(t,n):void ot();var i,r}function kG(t){return t instanceof yn?`${(e=t).field.canonicalString()} ${e.op} ${op(e.value)}`:t instanceof Jn?function(e){return e.op.toString()+" {"+e.getFilters().map(kG).join(" ,")+"}"}(t):"Filter";var e}class s2e extends yn{constructor(n,e,i){super(n,e,i),this.key=Xe.fromName(i.referenceValue)}matches(n){const e=Xe.comparator(n.key,this.key);return this.matchesComparison(e)}}class a2e extends yn{constructor(n,e){super(n,"in",e),this.keys=CG(0,e)}matches(n){return this.keys.some(e=>e.isEqual(n.key))}}class c2e extends yn{constructor(n,e){super(n,"not-in",e),this.keys=CG(0,e)}matches(n){return!this.keys.some(e=>e.isEqual(n.key))}}function CG(t,n){var e;return((null===(e=n.arrayValue)||void 0===e?void 0:e.values)||[]).map(i=>Xe.fromName(i.referenceValue))}class l2e extends yn{constructor(n,e){super(n,"array-contains",e)}matches(n){const e=n.data.field(this.field);return Z0(e)&&Y0(e.arrayValue,this.value)}}class TG extends yn{constructor(n,e){super(n,"in",e)}matches(n){const e=n.data.field(this.field);return null!==e&&Y0(this.value.arrayValue,e)}}class d2e extends yn{constructor(n,e){super(n,"not-in",e)}matches(n){if(Y0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const e=n.data.field(this.field);return null!==e&&!Y0(this.value.arrayValue,e)}}class u2e extends yn{constructor(n,e){super(n,"array-contains-any",e)}matches(n){const e=n.data.field(this.field);return!(!Z0(e)||!e.arrayValue.values)&&e.arrayValue.values.some(i=>Y0(this.value.arrayValue,i))}}class h2e{constructor(n,e=null,i=[],r=[],o=null,s=null,a=null){this.path=n,this.collectionGroup=e,this.orderBy=i,this.filters=r,this.limit=o,this.startAt=s,this.endAt=a,this.ce=null}}function LM(t,n=null,e=[],i=[],r=null,o=null,s=null){return new h2e(t,n,e,i,r,o,s)}function hh(t){const n=qe(t);if(null===n.ce){let e=n.path.canonicalString();null!==n.collectionGroup&&(e+="|cg:"+n.collectionGroup),e+="|f:",e+=n.filters.map(i=>NM(i)).join(","),e+="|ob:",e+=n.orderBy.map(i=>{return(o=i).field.canonicalString()+o.dir;var o}).join(","),Q0(n.limit)||(e+="|l:",e+=n.limit),n.startAt&&(e+="|lb:",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(i=>op(i)).join(",")),n.endAt&&(e+="|ub:",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(i=>op(i)).join(",")),n.ce=e}return n.ce}function tb(t,n){if(t.limit!==n.limit||t.orderBy.length!==n.orderBy.length)return!1;for(let e=0;e0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new li(Mi.comparator);return s.filters.forEach(c=>{c.getFlattenedFilters().forEach(l=>{l.isInequality()&&(a=a.add(l.field))})}),a})(n).forEach(o=>{e.has(o.canonicalString())||o.isKeyField()||n.le.push(new eb(o,i))}),e.has(Mi.keyField().canonicalString())||n.le.push(new eb(Mi.keyField(),i))}return n.le}function es(t){const n=qe(t);return n.he||(n.he=function AG(t,n){if("F"===t.limitType)return LM(t.path,t.collectionGroup,n,t.filters,t.limit,t.startAt,t.endAt);{n=n.map(r=>new eb(r.field,"desc"===r.dir?"asc":"desc"));const e=t.endAt?new Bd(t.endAt.position,t.endAt.inclusive):null,i=t.startAt?new Bd(t.startAt.position,t.startAt.inclusive):null;return LM(t.path,t.collectionGroup,n,t.filters,t.limit,e,i)}}(n,cp(t))),n.he}function BM(t,n){const e=t.filters.concat([n]);return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),e,t.limit,t.limitType,t.startAt,t.endAt)}function lk(t,n,e){return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),n,e,t.startAt,t.endAt)}function nb(t,n){return tb(es(t),es(n))&&t.limitType===n.limitType}function MG(t){return`${hh(es(t))}|lt:${t.limitType}`}function lp(t){return`Query(target=${function(e){let i=e.path.canonicalString();return null!==e.collectionGroup&&(i+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(i+=`, filters: [${e.filters.map(r=>kG(r)).join(", ")}]`),Q0(e.limit)||(i+=", limit: "+e.limit),e.orderBy.length>0&&(i+=`, orderBy: [${e.orderBy.map(r=>{return`${(s=r).field.canonicalString()} (${s.dir})`;var s}).join(", ")}]`),e.startAt&&(i+=", startAt: ",i+=e.startAt.inclusive?"b:":"a:",i+=e.startAt.position.map(r=>op(r)).join(",")),e.endAt&&(i+=", endAt: ",i+=e.endAt.inclusive?"a:":"b:",i+=e.endAt.position.map(r=>op(r)).join(",")),`Target(${i})`}(es(t))}; limitType=${t.limitType})`}function ib(t,n){return n.isFoundDocument()&&function(i,r){const o=r.key.path;return null!==i.collectionGroup?r.key.hasCollectionId(i.collectionGroup)&&i.path.isPrefixOf(o):Xe.isDocumentKey(i.path)?i.path.isEqual(o):i.path.isImmediateParentOf(o)}(t,n)&&function(i,r){for(const o of cp(i))if(!o.field.isKeyField()&&null===r.data.field(o.field))return!1;return!0}(t,n)&&function(i,r){for(const o of i.filters)if(!o.matches(r))return!1;return!0}(t,n)&&(r=n,!((i=t).startAt&&!function(s,a,c){const l=_G(s,a,c);return s.inclusive?l<=0:l<0}(i.startAt,cp(i),r)||i.endAt&&!function(s,a,c){const l=_G(s,a,c);return s.inclusive?l>=0:l>0}(i.endAt,cp(i),r)));var i,r}function PG(t){return(n,e)=>{let i=!1;for(const r of cp(t)){const o=f2e(r,n,e);if(0!==o)return o;i=i||r.field.isKeyField()}return 0}}function f2e(t,n,e){const i=t.field.isKeyField()?Xe.comparator(n.key,e.key):function(o,s,a){const c=s.data.field(o),l=a.data.field(o);return null!==c&&null!==l?Vd(c,l):ot()}(t.field,n,e);switch(t.dir){case"asc":return i;case"desc":return-1*i;default:return ot()}}class wl{constructor(n,e){this.mapKeyFn=n,this.equalsFn=e,this.inner={},this.innerSize=0}get(n){const e=this.mapKeyFn(n),i=this.inner[e];if(void 0!==i)for(const[r,o]of i)if(this.equalsFn(r,n))return o}has(n){return void 0!==this.get(n)}set(n,e){const i=this.mapKeyFn(n),r=this.inner[i];if(void 0===r)return this.inner[i]=[[n,e]],void this.innerSize++;for(let o=0;o{for(const[r,o]of i)n(r,o)})}isEmpty(){return aG(this.inner)}size(){return this.innerSize}}const m2e=new vi(Xe.comparator);function vs(){return m2e}const FG=new vi(Xe.comparator);function rb(...t){let n=FG;for(const e of t)n=n.insert(e.key,e);return n}function OG(t){let n=FG;return t.forEach((e,i)=>n=n.insert(e,i.overlayedDocument)),n}function kc(){return ob()}function NG(){return ob()}function ob(){return new wl(t=>t.toString(),(t,n)=>t.isEqual(n))}const p2e=new vi(Xe.comparator),g2e=new li(Xe.comparator);function Yt(...t){let n=g2e;for(const e of t)n=n.add(e);return n}const _2e=new li(Nt);function LG(t,n){if(t.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:K0(n)?"-0":n}}function VG(t){return{integerValue:""+t}}function BG(t,n){return function J$(t){return"number"==typeof t&&Number.isInteger(t)&&!K0(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}(n)?VG(n):LG(t,n)}class dk{constructor(){this._=void 0}}function b2e(t,n,e){return t instanceof dp?function(r,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return o&&nk(o)&&(o=ik(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(e,n):t instanceof fh?zG(t,n):t instanceof mh?HG(t,n):function(r,o){const s=UG(r,o),a=jG(s)+jG(r.Ie);return PM(s)&&PM(r.Ie)?VG(a):LG(r.serializer,a)}(t,n)}function v2e(t,n,e){return t instanceof fh?zG(t,n):t instanceof mh?HG(t,n):e}function UG(t,n){return t instanceof up?PM(i=n)||(o=i)&&"doubleValue"in o?n:{integerValue:0}:null;var i,o}class dp extends dk{}class fh extends dk{constructor(n){super(),this.elements=n}}function zG(t,n){const e=$G(n);for(const i of t.elements)e.some(r=>wc(r,i))||e.push(i);return{arrayValue:{values:e}}}class mh extends dk{constructor(n){super(),this.elements=n}}function HG(t,n){let e=$G(n);for(const i of t.elements)e=e.filter(r=>!wc(r,i));return{arrayValue:{values:e}}}class up extends dk{constructor(n,e){super(),this.serializer=n,this.Ie=e}}function jG(t){return Hi(t.integerValue||t.doubleValue)}function $G(t){return Z0(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class x2e{constructor(n,e){this.version=n,this.transformResults=e}}class Ri{constructor(n,e){this.updateTime=n,this.exists=e}static none(){return new Ri}static exists(n){return new Ri(void 0,n)}static updateTime(n){return new Ri(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function uk(t,n){return void 0!==t.updateTime?n.isFoundDocument()&&n.version.isEqual(t.updateTime):void 0===t.exists||t.exists===n.isFoundDocument()}class hk{}function GG(t,n){if(!t.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return t.isNoDocument()?new fp(t.key,Ri.none()):new hp(t.key,t.data,Ri.none());{const e=t.data,i=uo.empty();let r=new li(Mi.comparator);for(let o of n.fields)if(!r.has(o)){let s=e.field(o);null===s&&o.length>1&&(o=o.popLast(),s=e.field(o)),null===s?i.delete(o):i.set(o,s),r=r.add(o)}return new kl(t.key,i,new bs(r.toArray()),Ri.none())}}function w2e(t,n,e){t instanceof hp?function(r,o,s){const a=r.value.clone(),c=QG(r.fieldTransforms,o,s.transformResults);a.setAll(c),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,n,e):t instanceof kl?function(r,o,s){if(!uk(r.precondition,o))return void o.convertToUnknownDocument(s.version);const a=QG(r.fieldTransforms,o,s.transformResults),c=o.data;c.setAll(qG(r)),c.setAll(a),o.convertToFoundDocument(s.version,c).setHasCommittedMutations()}(t,n,e):n.convertToNoDocument(e.version).setHasCommittedMutations()}function ab(t,n,e,i){return t instanceof hp?function(o,s,a,c){if(!uk(o.precondition,s))return a;const l=o.value.clone(),d=KG(o.fieldTransforms,c,s);return l.setAll(d),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null}(t,n,e,i):t instanceof kl?function(o,s,a,c){if(!uk(o.precondition,s))return a;const l=KG(o.fieldTransforms,c,s),d=s.data;return d.setAll(qG(o)),d.setAll(l),s.convertToFoundDocument(s.version,d).setHasLocalMutations(),null===a?null:a.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(u=>u.field))}(t,n,e,i):(a=e,uk(t.precondition,s=n)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a);var s,a}function k2e(t,n){let e=null;for(const i of t.fieldTransforms){const r=n.data.field(i.field),o=UG(i.transform,r||null);null!=o&&(null===e&&(e=uo.empty()),e.set(i.field,o))}return e||null}function WG(t,n){return t.type===n.type&&!!t.key.isEqual(n.key)&&!!t.precondition.isEqual(n.precondition)&&(r=n.fieldTransforms,!!(void 0===(i=t.fieldTransforms)&&void 0===r||i&&r&&tp(i,r,(o,s)=>function y2e(t,n){return t.field.isEqual(n.field)&&(r=n.transform,(i=t.transform)instanceof fh&&r instanceof fh||i instanceof mh&&r instanceof mh?tp(i.elements,r.elements,wc):i instanceof up&&r instanceof up?wc(i.Ie,r.Ie):i instanceof dp&&r instanceof dp);var i,r}(o,s))))&&(0===t.type?t.value.isEqual(n.value):1!==t.type||t.data.isEqual(n.data)&&t.fieldMask.isEqual(n.fieldMask));var i,r}class hp extends hk{constructor(n,e,i,r=[]){super(),this.key=n,this.value=e,this.precondition=i,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class kl extends hk{constructor(n,e,i,r,o=[]){super(),this.key=n,this.data=e,this.fieldMask=i,this.precondition=r,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function qG(t){const n=new Map;return t.fieldMask.fields.forEach(e=>{if(!e.isEmpty()){const i=t.data.field(e);n.set(e,i)}}),n}function QG(t,n,e){const i=new Map;ht(t.length===e.length);for(let r=0;r{const o=n.get(r.key),s=o.overlayedDocument;let a=this.applyToLocalView(s,o.mutatedFields);a=e.has(r.key)?null:a;const c=GG(s,a);null!==c&&i.set(r.key,c),s.isValidDocument()||s.convertToNoDocument(pt.min())}),i}keys(){return this.mutations.reduce((n,e)=>n.add(e.key),Yt())}isEqual(n){return this.batchId===n.batchId&&tp(this.mutations,n.mutations,(e,i)=>WG(e,i))&&tp(this.baseMutations,n.baseMutations,(e,i)=>WG(e,i))}}class jM{constructor(n,e,i,r){this.batch=n,this.commitVersion=e,this.mutationResults=i,this.docVersions=r}static from(n,e,i){ht(n.mutations.length===i.length);let r=function(){return p2e}();const o=n.mutations;for(let s=0;s=8)throw new cb(`Invalid padding: ${e}`);if(i<0)throw new cb(`Invalid hash count: ${i}`);if(n.length>0&&0===this.hashCount)throw new cb(`Invalid hash count: ${i}`);if(0===n.length&&0!==e)throw new cb(`Invalid padding when bitmap length is 0: ${e}`);this.Te=8*n.length-e,this.Ee=Zm.fromNumber(this.Te)}de(n,e,i){let r=n.add(e.multiply(Zm.fromNumber(i)));return 1===r.compare(E2e)&&(r=new Zm([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Ee).toNumber()}Ae(n){return!!(this.bitmap[Math.floor(n/8)]&1<s.insert(a)),s}insert(n){if(0===this.Te)return;const e=JG(n),[i,r]=eW(e);for(let o=0;o0&&(this.Se=!0,this.ye=n)}ve(){let n=Yt(),e=Yt(),i=Yt();return this.pe.forEach((r,o)=>{switch(o){case 0:n=n.add(r);break;case 2:e=e.add(r);break;case 1:i=i.add(r);break;default:ot()}}),new db(this.ye,this.we,n,e,i)}Fe(){this.Se=!1,this.pe=oW()}Me(n,e){this.Se=!0,this.pe=this.pe.insert(n,e)}xe(n){this.Se=!0,this.pe=this.pe.remove(n)}Oe(){this.ge+=1}Ne(){this.ge-=1,ht(this.ge>=0)}Le(){this.Se=!0,this.we=!0}}class S2e{constructor(n){this.Be=n,this.ke=new Map,this.qe=vs(),this.Qe=rW(),this.Ke=new vi(Nt)}$e(n){for(const e of n.Ve)n.me&&n.me.isFoundDocument()?this.Ue(e,n.me):this.We(e,n.key,n.me);for(const e of n.removedTargetIds)this.We(e,n.key,n.me)}Ge(n){this.forEachTarget(n,e=>{const i=this.ze(e);switch(n.state){case 0:this.je(e)&&i.Ce(n.resumeToken);break;case 1:i.Ne(),i.be||i.Fe(),i.Ce(n.resumeToken);break;case 2:i.Ne(),i.be||this.removeTarget(e);break;case 3:this.je(e)&&(i.Le(),i.Ce(n.resumeToken));break;case 4:this.je(e)&&(this.He(e),i.Ce(n.resumeToken));break;default:ot()}})}forEachTarget(n,e){n.targetIds.length>0?n.targetIds.forEach(e):this.ke.forEach((i,r)=>{this.je(r)&&e(r)})}Je(n){const e=n.targetId,i=n.fe.count,r=this.Ye(e);if(r){const o=r.target;if(ak(o))if(0===i){const s=new Xe(o.path);this.We(e,s,Si.newNoDocument(s,pt.min()))}else ht(1===i);else{const s=this.Ze(e);if(s!==i){const a=this.Xe(n),c=a?this.et(a,n,s):1;0!==c&&(this.He(e),this.Ke=this.Ke.insert(e,2===c?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Xe(n){const e=n.fe.unchangedNames;if(!e||!e.bits)return null;const{bits:{bitmap:i="",padding:r=0},hashCount:o=0}=e;let s,a;try{s=yl(i).toUint8Array()}catch(c){if(c instanceof lG)return zs("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}try{a=new GM(s,r,o)}catch(c){return zs(c instanceof cb?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return 0===a.Te?null:a}et(n,e,i){return e.fe.count===i-this.rt(n,e.targetId)?0:2}rt(n,e){const i=this.Be.getRemoteKeysForTarget(e);let r=0;return i.forEach(o=>{const s=this.Be.nt(),a=`projects/${s.projectId}/databases/${s.database}/documents/${o.path.canonicalString()}`;n.mightContain(a)||(this.We(e,o,null),r++)}),r}it(n){const e=new Map;this.ke.forEach((o,s)=>{const a=this.Ye(s);if(a){if(o.current&&ak(a.target)){const c=new Xe(a.target.path);null!==this.qe.get(c)||this.st(s,c)||this.We(s,c,Si.newNoDocument(c,n))}o.De&&(e.set(s,o.ve()),o.Fe())}});let i=Yt();this.Qe.forEach((o,s)=>{let a=!0;s.forEachWhile(c=>{const l=this.Ye(c);return!l||"TargetPurposeLimboResolution"===l.purpose||(a=!1,!1)}),a&&(i=i.add(o))}),this.qe.forEach((o,s)=>s.setReadTime(n));const r=new lb(n,e,this.Ke,this.qe,i);return this.qe=vs(),this.Qe=rW(),this.Ke=new vi(Nt),r}Ue(n,e){if(!this.je(n))return;const i=this.st(n,e.key)?2:0;this.ze(n).Me(e.key,i),this.qe=this.qe.insert(e.key,e),this.Qe=this.Qe.insert(e.key,this.ot(e.key).add(n))}We(n,e,i){if(!this.je(n))return;const r=this.ze(n);this.st(n,e)?r.Me(e,1):r.xe(e),this.Qe=this.Qe.insert(e,this.ot(e).delete(n)),i&&(this.qe=this.qe.insert(e,i))}removeTarget(n){this.ke.delete(n)}Ze(n){const e=this.ze(n).ve();return this.Be.getRemoteKeysForTarget(n).size+e.addedDocuments.size-e.removedDocuments.size}Oe(n){this.ze(n).Oe()}ze(n){let e=this.ke.get(n);return e||(e=new iW,this.ke.set(n,e)),e}ot(n){let e=this.Qe.get(n);return e||(e=new li(Nt),this.Qe=this.Qe.insert(n,e)),e}je(n){const e=null!==this.Ye(n);return e||De("WatchChangeAggregator","Detected inactive target",n),e}Ye(n){const e=this.ke.get(n);return e&&e.be?null:this.Be._t(n)}He(n){this.ke.set(n,new iW),this.Be.getRemoteKeysForTarget(n).forEach(e=>{this.We(n,e,null)})}st(n,e){return this.Be.getRemoteKeysForTarget(n).has(e)}}function rW(){return new vi(Xe.comparator)}function oW(){return new vi(Xe.comparator)}const D2e={asc:"ASCENDING",desc:"DESCENDING"},I2e={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},A2e={and:"AND",or:"OR"};class M2e{constructor(n,e){this.databaseId=n,this.useProto3Json=e}}function WM(t,n){return t.useProto3Json||Q0(n)?n:{value:n}}function mp(t,n){return t.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function sW(t,n){return t.useProto3Json?n.toBase64():n.toUint8Array()}function R2e(t,n){return mp(t,n.toTimestamp())}function er(t){return ht(!!t),pt.fromTimestamp(function(e){const i=Od(e);return new Ai(i.seconds,i.nanos)}(t))}function qM(t,n){return QM(t,n).canonicalString()}function QM(t,n){const e=(r=t,new vn(["projects",r.projectId,"databases",r.database])).child("documents");var r;return void 0===n?e:e.child(n)}function aW(t){const n=vn.fromString(t);return ht(_W(n)),n}function ub(t,n){return qM(t.databaseId,n.path)}function Cc(t,n){const e=aW(n);if(e.get(1)!==t.databaseId.projectId)throw new Ie(de.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+e.get(1)+" vs "+t.databaseId.projectId);if(e.get(3)!==t.databaseId.database)throw new Ie(de.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+e.get(3)+" vs "+t.databaseId.database);return new Xe(dW(e))}function cW(t,n){return qM(t.databaseId,n)}function KM(t){return new vn(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function dW(t){return ht(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function uW(t,n,e){return{name:ub(t,n),fields:e.value.mapValue.fields}}function fW(t,n){return{documents:[cW(t,n.path)]}}function YM(t,n){const e={structuredQuery:{}},i=n.path;let r;null!==n.collectionGroup?(r=i,e.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(r=i.popLast(),e.structuredQuery.from=[{collectionId:i.lastSegment()}]),e.parent=cW(t,r);const o=function(l){if(0!==l.length)return gW(Jn.create(l,"and"))}(n.filters);o&&(e.structuredQuery.where=o);const s=function(l){if(0!==l.length)return l.map(d=>{return{field:Ud((h=d).field),direction:L2e(h.dir)};var h})}(n.orderBy);s&&(e.structuredQuery.orderBy=s);const a=WM(t,n.limit);return null!==a&&(e.structuredQuery.limit=a),n.startAt&&(e.structuredQuery.startAt={before:(l=n.startAt).inclusive,values:l.position}),n.endAt&&(e.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(n.endAt)),{ut:e,parent:r};var l}function mW(t){let n=function lW(t){const n=aW(t);return 4===n.length?vn.emptyPath():dW(n)}(t.parent);const e=t.structuredQuery,i=e.from?e.from.length:0;let r=null;if(i>0){ht(1===i);const d=e.from[0];d.allDescendants?r=d.collectionId:n=n.child(d.collectionId)}let o=[];e.where&&(o=function(u){const h=pW(u);return h instanceof Jn&&OM(h)?h.getFilters():[h]}(e.where));let s=[];e.orderBy&&(s=e.orderBy.map(h=>{return new eb(pp((m=h).field),function(p){switch(p){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction));var m}));let a=null;e.limit&&(a=function(u){let h;return h="object"==typeof u?u.value:u,Q0(h)?null:h}(e.limit));let c=null;var u;e.startAt&&(c=new Bd((u=e.startAt).values||[],!!u.before));let l=null;return e.endAt&&(l=function(u){return new Bd(u.values||[],!u.before)}(e.endAt)),function DG(t,n,e,i,r,o,s,a){return new xl(t,n,e,i,r,o,s,a)}(n,r,s,o,a,"F",c,l)}function pW(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const i=pp(e.unaryFilter.field);return yn.create(i,"==",{doubleValue:NaN});case"IS_NULL":const r=pp(e.unaryFilter.field);return yn.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=pp(e.unaryFilter.field);return yn.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=pp(e.unaryFilter.field);return yn.create(s,"!=",{nullValue:"NULL_VALUE"});default:return ot()}}(t):void 0!==t.fieldFilter?yn.create(pp((e=t).fieldFilter.field),function(r){switch(r){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return ot()}}(e.fieldFilter.op),e.fieldFilter.value):void 0!==t.compositeFilter?function(e){return Jn.create(e.compositeFilter.filters.map(i=>pW(i)),function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return ot()}}(e.compositeFilter.op))}(t):ot();var e}function L2e(t){return D2e[t]}function V2e(t){return I2e[t]}function B2e(t){return A2e[t]}function Ud(t){return{fieldPath:t.canonicalString()}}function pp(t){return Mi.fromServerFormat(t.fieldPath)}function gW(t){return t instanceof yn?function(e){if("=="===e.op){if(hG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NAN"}};if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(hG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NAN"}};if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ud(e.field),op:V2e(e.op),value:e.value}}}(t):t instanceof Jn?function(e){const i=e.getFilters().map(r=>gW(r));return 1===i.length?i[0]:{compositeFilter:{op:B2e(e.op),filters:i}}}(t):ot()}function U2e(t){const n=[];return t.fields.forEach(e=>n.push(e.canonicalString())),{fieldPaths:n}}function _W(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}class Cl{constructor(n,e,i,r,o=pt.min(),s=pt.min(),a=Fr.EMPTY_BYTE_STRING,c=null){this.target=n,this.targetId=e,this.purpose=i,this.sequenceNumber=r,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(n){return new Cl(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,e){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,e,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class bW{constructor(n){this.ct=n}}function ZM(t){const n=mW({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?lk(n,n.limit,"L"):n}class bh{constructor(){}Pt(n,e){this.It(n,e),e.Tt()}It(n,e){if("nullValue"in n)this.Et(e,5);else if("booleanValue"in n)this.Et(e,10),e.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(e,15),e.dt(Hi(n.integerValue));else if("doubleValue"in n){const i=Hi(n.doubleValue);isNaN(i)?this.Et(e,13):(this.Et(e,15),K0(i)?e.dt(0):e.dt(i))}else if("timestampValue"in n){const i=n.timestampValue;this.Et(e,20),"string"==typeof i?e.At(i):(e.At(`${i.seconds||""}`),e.dt(i.nanos||0))}else if("stringValue"in n)this.Rt(n.stringValue,e),this.Vt(e);else if("bytesValue"in n)this.Et(e,30),e.ft(yl(n.bytesValue)),this.Vt(e);else if("referenceValue"in n)this.gt(n.referenceValue,e);else if("geoPointValue"in n){const i=n.geoPointValue;this.Et(e,45),e.dt(i.latitude||0),e.dt(i.longitude||0)}else"mapValue"in n?fG(n)?this.Et(e,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,e),this.Vt(e)):"arrayValue"in n?(this.wt(n.arrayValue,e),this.Vt(e)):ot()}Rt(n,e){this.Et(e,25),this.St(n,e)}St(n,e){e.At(n)}yt(n,e){const i=n.fields||{};this.Et(e,55);for(const r of Object.keys(i))this.Rt(r,e),this.It(i[r],e)}wt(n,e){const i=n.values||[];this.Et(e,50);for(const r of i)this.It(r,e)}gt(n,e){this.Et(e,37),Xe.fromName(n).path.forEach(i=>{this.Et(e,60),this.St(i,e)})}Et(n,e){n.dt(e)}Vt(n){n.dt(2)}}bh.bt=new bh;class Q2e{constructor(){this._n=new rR}addToCollectionParentIndex(n,e){return this._n.add(e),Z.resolve()}getCollectionParents(n,e){return Z.resolve(this._n.getEntries(e))}addFieldIndex(n,e){return Z.resolve()}deleteFieldIndex(n,e){return Z.resolve()}deleteAllFieldIndexes(n){return Z.resolve()}createTargetIndexes(n,e){return Z.resolve()}getDocumentsMatchingTarget(n,e){return Z.resolve(null)}getIndexType(n,e){return Z.resolve(0)}getFieldIndexes(n,e){return Z.resolve([])}getNextCollectionGroupToUpdate(n){return Z.resolve(null)}getMinOffset(n,e){return Z.resolve(Hs.min())}getMinOffsetFromCollectionGroup(n,e){return Z.resolve(Hs.min())}updateCollectionGroup(n,e,i){return Z.resolve()}updateIndexEntries(n,e){return Z.resolve()}}class rR{constructor(){this.index={}}add(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e]||new li(vn.comparator),o=!r.has(i);return this.index[e]=r.add(i),o}has(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e];return r&&r.has(i)}getEntries(n){return(this.index[n]||new li(vn.comparator)).toArray()}}new Uint8Array(0);class Ro{constructor(n,e,i){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=i}static withCacheSize(n){return new Ro(n,Ro.DEFAULT_COLLECTION_PERCENTILE,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Ro.DEFAULT_COLLECTION_PERCENTILE=10,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ro.DEFAULT=new Ro(41943040,Ro.DEFAULT_COLLECTION_PERCENTILE,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ro.DISABLED=new Ro(-1,0,0);class yh{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new yh(0)}static Ln(){return new yh(-1)}}class zW{constructor(){this.changes=new wl(n=>n.toString(),(n,e)=>n.isEqual(e)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,e){this.assertNotApplied(),this.changes.set(n,Si.newInvalidDocument(n).setReadTime(e))}getEntry(n,e){this.assertNotApplied();const i=this.changes.get(e);return void 0!==i?Z.resolve(i):this.getFromCache(n,e)}getEntries(n,e){return this.getAllFromCache(n,e)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class nAe{constructor(n,e){this.overlayedDocument=n,this.mutatedFields=e}}class WW{constructor(n,e,i,r){this.remoteDocumentCache=n,this.mutationQueue=e,this.documentOverlayCache=i,this.indexManager=r}getDocument(n,e){let i=null;return this.documentOverlayCache.getOverlay(n,e).next(r=>(i=r,this.remoteDocumentCache.getEntry(n,e))).next(r=>(null!==i&&ab(i.mutation,r,bs.empty(),Ai.now()),r))}getDocuments(n,e){return this.remoteDocumentCache.getEntries(n,e).next(i=>this.getLocalViewOfDocuments(n,i,Yt()).next(()=>i))}getLocalViewOfDocuments(n,e,i=Yt()){const r=kc();return this.populateOverlays(n,r,e).next(()=>this.computeViews(n,e,r,i).next(o=>{let s=rb();return o.forEach((a,c)=>{s=s.insert(a,c.overlayedDocument)}),s}))}getOverlayedDocuments(n,e){const i=kc();return this.populateOverlays(n,i,e).next(()=>this.computeViews(n,e,i,Yt()))}populateOverlays(n,e,i){const r=[];return i.forEach(o=>{e.has(o)||r.push(o)}),this.documentOverlayCache.getOverlays(n,r).next(o=>{o.forEach((s,a)=>{e.set(s,a)})})}computeViews(n,e,i,r){let o=vs();const s=ob(),a=ob();return e.forEach((c,l)=>{const d=i.get(l.key);r.has(l.key)&&(void 0===d||d.mutation instanceof kl)?o=o.insert(l.key,l):void 0!==d?(s.set(l.key,d.mutation.getFieldMask()),ab(d.mutation,l,d.mutation.getFieldMask(),Ai.now())):s.set(l.key,bs.empty())}),this.recalculateAndSaveOverlays(n,o).next(c=>(c.forEach((l,d)=>s.set(l,d)),e.forEach((l,d)=>{var u;return a.set(l,new nAe(d,null!==(u=s.get(l))&&void 0!==u?u:null))}),a))}recalculateAndSaveOverlays(n,e){const i=ob();let r=new vi((s,a)=>s-a),o=Yt();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,e).next(s=>{for(const a of s)a.keys().forEach(c=>{const l=e.get(c);if(null===l)return;let d=i.get(c)||bs.empty();d=a.applyToLocalView(l,d),i.set(c,d);const u=(r.get(a.batchId)||Yt()).add(c);r=r.insert(a.batchId,u)})}).next(()=>{const s=[],a=r.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),l=c.key,d=c.value,u=NG();d.forEach(h=>{if(!o.has(h)){const f=GG(e.get(h),i.get(h));null!==f&&u.set(h,f),o=o.add(h)}}),s.push(this.documentOverlayCache.saveOverlays(n,l,u))}return Z.waitFor(s)}).next(()=>i)}recalculateAndSaveOverlaysForDocumentKeys(n,e){return this.remoteDocumentCache.getEntries(n,e).next(i=>this.recalculateAndSaveOverlays(n,i))}getDocumentsMatchingQuery(n,e,i,r){return Xe.isDocumentKey((s=e).path)&&null===s.collectionGroup&&0===s.filters.length?this.getDocumentsMatchingDocumentQuery(n,e.path):VM(e)?this.getDocumentsMatchingCollectionGroupQuery(n,e,i,r):this.getDocumentsMatchingCollectionQuery(n,e,i,r);var s}getNextDocuments(n,e,i,r){return this.remoteDocumentCache.getAllFromCollectionGroup(n,e,i,r).next(o=>{const s=r-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,e,i.largestBatchId,r-o.size):Z.resolve(kc());let a=-1,c=o;return s.next(l=>Z.forEach(l,(d,u)=>(a{c=c.insert(d,h)}))).next(()=>this.populateOverlays(n,l,o)).next(()=>this.computeViews(n,c,l,Yt())).next(d=>({batchId:a,changes:OG(d)})))})}getDocumentsMatchingDocumentQuery(n,e){return this.getDocument(n,new Xe(e)).next(i=>{let r=rb();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(n,e,i,r){const o=e.collectionGroup;let s=rb();return this.indexManager.getCollectionParents(n,o).next(a=>Z.forEach(a,c=>{const l=(u=e,h=c.child(o),new xl(h,null,u.explicitOrderBy.slice(),u.filters.slice(),u.limit,u.limitType,u.startAt,u.endAt));var u,h;return this.getDocumentsMatchingCollectionQuery(n,l,i,r).next(d=>{d.forEach((u,h)=>{s=s.insert(u,h)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(n,e,i,r){let o;return this.documentOverlayCache.getOverlaysForCollection(n,e.path,i.largestBatchId).next(s=>(o=s,this.remoteDocumentCache.getDocumentsMatchingQuery(n,e,i,o,r))).next(s=>{o.forEach((c,l)=>{const d=l.getKey();null===s.get(d)&&(s=s.insert(d,Si.newInvalidDocument(d)))});let a=rb();return s.forEach((c,l)=>{const d=o.get(c);void 0!==d&&ab(d.mutation,l,bs.empty(),Ai.now()),ib(e,l)&&(a=a.insert(c,l))}),a})}}class iAe{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,e){return Z.resolve(this.cr.get(e))}saveBundleMetadata(n,e){return this.cr.set(e.id,{id:(r=e).id,version:r.version,createTime:er(r.createTime)}),Z.resolve();var r}getNamedQuery(n,e){return Z.resolve(this.lr.get(e))}saveNamedQuery(n,e){return this.lr.set(e.name,{name:(r=e).name,query:ZM(r.bundledQuery),readTime:er(r.readTime)}),Z.resolve();var r}}class rAe{constructor(){this.overlays=new vi(Xe.comparator),this.hr=new Map}getOverlay(n,e){return Z.resolve(this.overlays.get(e))}getOverlays(n,e){const i=kc();return Z.forEach(e,r=>this.getOverlay(n,r).next(o=>{null!==o&&i.set(r,o)})).next(()=>i)}saveOverlays(n,e,i){return i.forEach((r,o)=>{this.ht(n,e,o)}),Z.resolve()}removeOverlaysForBatchId(n,e,i){const r=this.hr.get(i);return void 0!==r&&(r.forEach(o=>this.overlays=this.overlays.remove(o)),this.hr.delete(i)),Z.resolve()}getOverlaysForCollection(n,e,i){const r=kc(),o=e.length+1,s=new Xe(e.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const c=a.getNext().value,l=c.getKey();if(!e.isPrefixOf(l.path))break;l.path.length===o&&c.largestBatchId>i&&r.set(c.getKey(),c)}return Z.resolve(r)}getOverlaysForCollectionGroup(n,e,i,r){let o=new vi((l,d)=>l-d);const s=this.overlays.getIterator();for(;s.hasNext();){const l=s.getNext().value;if(l.getKey().getCollectionGroup()===e&&l.largestBatchId>i){let d=o.get(l.largestBatchId);null===d&&(d=kc(),o=o.insert(l.largestBatchId,d)),d.set(l.getKey(),l)}}const a=kc(),c=o.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach((l,d)=>a.set(l,d)),!(a.size()>=r)););return Z.resolve(a)}ht(n,e,i){const r=this.overlays.get(i.key);if(null!==r){const s=this.hr.get(r.largestBatchId).delete(i.key);this.hr.set(r.largestBatchId,s)}this.overlays=this.overlays.insert(i.key,new $M(e,i));let o=this.hr.get(e);void 0===o&&(o=Yt(),this.hr.set(e,o)),this.hr.set(e,o.add(i.key))}}class oR{constructor(){this.Pr=new li(Yr.Ir),this.Tr=new li(Yr.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,e){const i=new Yr(n,e);this.Pr=this.Pr.add(i),this.Tr=this.Tr.add(i)}dr(n,e){n.forEach(i=>this.addReference(i,e))}removeReference(n,e){this.Ar(new Yr(n,e))}Rr(n,e){n.forEach(i=>this.removeReference(i,e))}Vr(n){const e=new Xe(new vn([])),i=new Yr(e,n),r=new Yr(e,n+1),o=[];return this.Tr.forEachInRange([i,r],s=>{this.Ar(s),o.push(s.key)}),o}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const e=new Xe(new vn([])),i=new Yr(e,n),r=new Yr(e,n+1);let o=Yt();return this.Tr.forEachInRange([i,r],s=>{o=o.add(s.key)}),o}containsKey(n){const e=new Yr(n,0),i=this.Pr.firstAfterOrEqual(e);return null!==i&&n.isEqual(i.key)}}class Yr{constructor(n,e){this.key=n,this.pr=e}static Ir(n,e){return Xe.comparator(n.key,e.key)||Nt(n.pr,e.pr)}static Er(n,e){return Nt(n.pr,e.pr)||Xe.comparator(n.key,e.key)}}class oAe{constructor(n,e){this.indexManager=n,this.referenceDelegate=e,this.mutationQueue=[],this.yr=1,this.wr=new li(Yr.Ir)}checkEmpty(n){return Z.resolve(0===this.mutationQueue.length)}addMutationBatch(n,e,i,r){const o=this.yr;this.yr++;const s=new HM(o,e,i,r);this.mutationQueue.push(s);for(const a of r)this.wr=this.wr.add(new Yr(a.key,o)),this.indexManager.addToCollectionParentIndex(n,a.key.path.popLast());return Z.resolve(s)}lookupMutationBatch(n,e){return Z.resolve(this.Sr(e))}getNextMutationBatchAfterBatchId(n,e){const r=this.br(e+1),o=r<0?0:r;return Z.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return Z.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return Z.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,e){const i=new Yr(e,0),r=new Yr(e,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([i,r],s=>{const a=this.Sr(s.pr);o.push(a)}),Z.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(n,e){let i=new li(Nt);return e.forEach(r=>{const o=new Yr(r,0),s=new Yr(r,Number.POSITIVE_INFINITY);this.wr.forEachInRange([o,s],a=>{i=i.add(a.pr)})}),Z.resolve(this.Dr(i))}getAllMutationBatchesAffectingQuery(n,e){const i=e.path,r=i.length+1;let o=i;Xe.isDocumentKey(o)||(o=o.child(""));const s=new Yr(new Xe(o),0);let a=new li(Nt);return this.wr.forEachWhile(c=>{const l=c.key.path;return!!i.isPrefixOf(l)&&(l.length===r&&(a=a.add(c.pr)),!0)},s),Z.resolve(this.Dr(a))}Dr(n){const e=[];return n.forEach(i=>{const r=this.Sr(i);null!==r&&e.push(r)}),e}removeMutationBatch(n,e){ht(0===this.Cr(e.batchId,"removed")),this.mutationQueue.shift();let i=this.wr;return Z.forEach(e.mutations,r=>{const o=new Yr(r.key,e.batchId);return i=i.delete(o),this.referenceDelegate.markPotentiallyOrphaned(n,r.key)}).next(()=>{this.wr=i})}Mn(n){}containsKey(n,e){const i=new Yr(e,0),r=this.wr.firstAfterOrEqual(i);return Z.resolve(e.isEqual(r&&r.key))}performConsistencyCheck(n){return Z.resolve()}Cr(n,e){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const e=this.br(n);return e<0||e>=this.mutationQueue.length?null:this.mutationQueue[e]}}class sAe{constructor(n){this.vr=n,this.docs=new vi(Xe.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,e){const i=e.key,r=this.docs.get(i),o=r?r.size:0,s=this.vr(e);return this.docs=this.docs.insert(i,{document:e.mutableCopy(),size:s}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(n,i.path.popLast())}removeEntry(n){const e=this.docs.get(n);e&&(this.docs=this.docs.remove(n),this.size-=e.size)}getEntry(n,e){const i=this.docs.get(e);return Z.resolve(i?i.document.mutableCopy():Si.newInvalidDocument(e))}getEntries(n,e){let i=vs();return e.forEach(r=>{const o=this.docs.get(r);i=i.insert(r,o?o.document.mutableCopy():Si.newInvalidDocument(r))}),Z.resolve(i)}getDocumentsMatchingQuery(n,e,i,r){let o=vs();const s=e.path,a=new Xe(s.child("")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:l,value:{document:d}}=c.getNext();if(!s.isPrefixOf(l.path))break;l.path.length>s.length+1||DM(K$(d),i)<=0||(r.has(d.key)||ib(e,d))&&(o=o.insert(d.key,d.mutableCopy()))}return Z.resolve(o)}getAllFromCollectionGroup(n,e,i,r){ot()}Fr(n,e){return Z.forEach(this.docs,i=>e(i))}newChangeBuffer(n){return new aAe(this)}getSize(n){return Z.resolve(this.size)}}class aAe extends zW{constructor(n){super(),this.ar=n}applyChanges(n){const e=[];return this.changes.forEach((i,r)=>{r.isValidDocument()?e.push(this.ar.addEntry(n,r)):this.ar.removeEntry(i)}),Z.waitFor(e)}getFromCache(n,e){return this.ar.getEntry(n,e)}getAllFromCache(n,e){return this.ar.getEntries(n,e)}}class cAe{constructor(n){this.persistence=n,this.Mr=new wl(e=>hh(e),tb),this.lastRemoteSnapshotVersion=pt.min(),this.highestTargetId=0,this.Or=0,this.Nr=new oR,this.targetCount=0,this.Lr=yh.Nn()}forEachTarget(n,e){return this.Mr.forEach((i,r)=>e(r)),Z.resolve()}getLastRemoteSnapshotVersion(n){return Z.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return Z.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),Z.resolve(this.highestTargetId)}setTargetsMetadata(n,e,i){return i&&(this.lastRemoteSnapshotVersion=i),e>this.Or&&(this.Or=e),Z.resolve()}qn(n){this.Mr.set(n.target,n);const e=n.targetId;e>this.highestTargetId&&(this.Lr=new yh(e),this.highestTargetId=e),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,e){return this.qn(e),this.targetCount+=1,Z.resolve()}updateTargetData(n,e){return this.qn(e),Z.resolve()}removeTargetData(n,e){return this.Mr.delete(e.target),this.Nr.Vr(e.targetId),this.targetCount-=1,Z.resolve()}removeTargets(n,e,i){let r=0;const o=[];return this.Mr.forEach((s,a)=>{a.sequenceNumber<=e&&null===i.get(a.targetId)&&(this.Mr.delete(s),o.push(this.removeMatchingKeysForTargetId(n,a.targetId)),r++)}),Z.waitFor(o).next(()=>r)}getTargetCount(n){return Z.resolve(this.targetCount)}getTargetData(n,e){const i=this.Mr.get(e)||null;return Z.resolve(i)}addMatchingKeys(n,e,i){return this.Nr.dr(e,i),Z.resolve()}removeMatchingKeys(n,e,i){this.Nr.Rr(e,i);const r=this.persistence.referenceDelegate,o=[];return r&&e.forEach(s=>{o.push(r.markPotentiallyOrphaned(n,s))}),Z.waitFor(o)}removeMatchingKeysForTargetId(n,e){return this.Nr.Vr(e),Z.resolve()}getMatchingKeysForTargetId(n,e){const i=this.Nr.gr(e);return Z.resolve(i)}containsKey(n,e){return Z.resolve(this.Nr.containsKey(e))}}class sR{constructor(n,e){this.Br={},this.overlays={},this.kr=new js(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new cAe(this),this.indexManager=new Q2e,this.remoteDocumentCache=new sAe(i=>this.referenceDelegate.Kr(i)),this.serializer=new bW(e),this.$r=new iAe(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let e=this.overlays[n.toKey()];return e||(e=new rAe,this.overlays[n.toKey()]=e),e}getMutationQueue(n,e){let i=this.Br[n.toKey()];return i||(i=new oAe(e,this.referenceDelegate),this.Br[n.toKey()]=i),i}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,e,i){De("MemoryPersistence","Starting transaction:",n);const r=new lAe(this.kr.next());return this.referenceDelegate.Ur(),i(r).next(o=>this.referenceDelegate.Wr(r).next(()=>o)).toPromise().then(o=>(r.raiseOnCommittedEvent(),o))}Gr(n,e){return Z.or(Object.values(this.Br).map(i=>()=>i.containsKey(n,e)))}}class lAe extends Y${constructor(n){super(),this.currentSequenceNumber=n}}class wk{constructor(n){this.persistence=n,this.zr=new oR,this.jr=null}static Hr(n){return new wk(n)}get Jr(){if(this.jr)return this.jr;throw ot()}addReference(n,e,i){return this.zr.addReference(i,e),this.Jr.delete(i.toString()),Z.resolve()}removeReference(n,e,i){return this.zr.removeReference(i,e),this.Jr.add(i.toString()),Z.resolve()}markPotentiallyOrphaned(n,e){return this.Jr.add(e.toString()),Z.resolve()}removeTarget(n,e){this.zr.Vr(e.targetId).forEach(r=>this.Jr.add(r.toString()));const i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(n,e.targetId).next(r=>{r.forEach(o=>this.Jr.add(o.toString()))}).next(()=>i.removeTargetData(n,e))}Ur(){this.jr=new Set}Wr(n){const e=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Z.forEach(this.Jr,i=>{const r=Xe.fromPath(i);return this.Yr(n,r).next(o=>{o||e.removeEntry(r,pt.min())})}).next(()=>(this.jr=null,e.apply(n)))}updateLimboDocument(n,e){return this.Yr(n,e).next(i=>{i?this.Jr.delete(e.toString()):this.Jr.add(e.toString())})}Kr(n){return 0}Yr(n,e){return Z.or([()=>Z.resolve(this.zr.containsKey(e)),()=>this.persistence.getTargetCache().containsKey(n,e),()=>this.persistence.Gr(n,e)])}}class dR{constructor(n,e,i,r){this.targetId=n,this.fromCache=e,this.qi=i,this.Qi=r}static Ki(n,e){let i=Yt(),r=Yt();for(const o of e.docChanges)switch(o.type){case 0:i=i.add(o.doc.key);break;case 1:r=r.add(o.doc.key)}return new dR(n,e.fromCache,i,r)}}class uAe{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class QW{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=function sj(){return!function JEe(){var t;const n=null===(t=w1())||void 0===t?void 0:t.forceEnvironment;if("node"===n)return!0;if("browser"===n)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}()?8:aa.v(Sd())>0?6:4}initialize(n,e){this.zi=n,this.indexManager=e,this.$i=!0}getDocumentsMatchingQuery(n,e,i,r){const o={result:null};return this.ji(n,e).next(s=>{o.result=s}).next(()=>{if(!o.result)return this.Hi(n,e,r,i).next(s=>{o.result=s})}).next(()=>{if(o.result)return;const s=new uAe;return this.Ji(n,e,s).next(a=>{if(o.result=a,this.Ui)return this.Yi(n,e,s,a.size)})}).next(()=>o.result)}Yi(n,e,i,r){return i.documentReadCountthis.Gi*r?(ep()<=Dn.DEBUG&&De("QueryEngine","The SDK decides to create cache indexes for query:",lp(e),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,es(e))):Z.resolve())}ji(n,e){if(IG(e))return Z.resolve(null);let i=es(e);return this.indexManager.getIndexType(n,i).next(r=>0===r?null:(null!==e.limit&&1===r&&(e=lk(e,null,"F"),i=es(e)),this.indexManager.getDocumentsMatchingTarget(n,i).next(o=>{const s=Yt(...o);return this.zi.getDocuments(n,s).next(a=>this.indexManager.getMinOffset(n,i).next(c=>{const l=this.Zi(e,a);return this.Xi(e,l,s,c.readTime)?this.ji(n,lk(e,null,"F")):this.es(n,l,e,c)}))})))}Hi(n,e,i,r){return IG(e)||r.isEqual(pt.min())?Z.resolve(null):this.zi.getDocuments(n,i).next(o=>{const s=this.Zi(e,o);return this.Xi(e,s,i,r)?Z.resolve(null):(ep()<=Dn.DEBUG&&De("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),lp(e)),this.es(n,s,e,function Q$(t,n){const e=t.toTimestamp().seconds,i=t.toTimestamp().nanoseconds+1,r=pt.fromTimestamp(1e9===i?new Ai(e+1,0):new Ai(e,i));return new Hs(r,Xe.empty(),n)}(r,-1)).next(a=>a))})}Zi(n,e){let i=new li(PG(n));return e.forEach((r,o)=>{ib(n,o)&&(i=i.add(o))}),i}Xi(n,e,i,r){if(null===n.limit)return!1;if(i.size!==e.size)return!0;const o="F"===n.limitType?e.last():e.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(r)>0)}Ji(n,e,i){return ep()<=Dn.DEBUG&&De("QueryEngine","Using full collection scan to execute query:",lp(e)),this.zi.getDocumentsMatchingQuery(n,e,Hs.min(),i)}es(n,e,i,r){return this.zi.getDocumentsMatchingQuery(n,i,r).next(o=>(e.forEach(s=>{o=o.insert(s.key,s)}),o))}}class hAe{constructor(n,e,i,r){this.persistence=n,this.ts=e,this.serializer=r,this.ns=new vi(Nt),this.rs=new wl(o=>hh(o),tb),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(i)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new WW(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",e=>n.collect(e,this.ns))}}function XW(t,n){return uR.apply(this,arguments)}function uR(){return uR=me(function*(t,n){const e=qe(t);return yield e.persistence.runTransaction("Handle user change","readonly",i=>{let r;return e.mutationQueue.getAllMutationBatches(i).next(o=>(r=o,e._s(n),e.mutationQueue.getAllMutationBatches(i))).next(o=>{const s=[],a=[];let c=Yt();for(const l of r){s.push(l.batchId);for(const d of l.mutations)c=c.add(d.key)}for(const l of o){a.push(l.batchId);for(const d of l.mutations)c=c.add(d.key)}return e.localDocuments.getDocuments(i,c).next(l=>({us:l,removedBatchIds:s,addedBatchIds:a}))})})}),uR.apply(this,arguments)}function YW(t){const n=qe(t);return n.persistence.runTransaction("Get last remote snapshot version","readonly",e=>n.Qr.getLastRemoteSnapshotVersion(e))}function pAe(t,n){const e=qe(t);return e.persistence.runTransaction("Get next mutation batch","readonly",i=>(void 0===n&&(n=-1),e.mutationQueue.getNextMutationBatchAfterBatchId(i,n)))}function xp(t,n,e){return hR.apply(this,arguments)}function hR(){return hR=me(function*(t,n,e){const i=qe(t),r=i.ns.get(n),o=e?"readwrite":"readwrite-primary";try{e||(yield i.persistence.runTransaction("Release target",o,s=>i.persistence.referenceDelegate.removeTarget(s,r)))}catch(s){if(!Pd(s))throw s;De("LocalStore",`Failed to update sequence numbers for target ${n}: ${s}`)}i.ns=i.ns.remove(n),i.rs.delete(r.target)}),hR.apply(this,arguments)}function Tk(t,n,e){const i=qe(t);let r=pt.min(),o=Yt();return i.persistence.runTransaction("Execute query","readwrite",s=>function(c,l,d){const u=qe(c),h=u.rs.get(d);return void 0!==h?Z.resolve(u.ns.get(h)):u.Qr.getTargetData(l,d)}(i,s,es(n)).next(a=>{if(a)return r=a.lastLimboFreeSnapshotVersion,i.Qr.getMatchingKeysForTargetId(s,a.targetId).next(c=>{o=c})}).next(()=>i.ts.getDocumentsMatchingQuery(s,n,e?r:pt.min(),e?o:Yt())).next(a=>(function tq(t,n,e){let i=t.ss.get(n)||pt.min();e.forEach((r,o)=>{o.readTime.compareTo(i)>0&&(i=o.readTime)}),t.ss.set(n,i)}(i,function RG(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}(n),a),{documents:a,hs:o})))}class _R{constructor(){this.activeTargetIds=function UM(){return _2e}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rq{constructor(){this.no=new _R,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,e,i){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,e,i){this.ro[n]=e}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new _R,Promise.resolve()}handleUserChange(n,e,i){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class bAe{io(n){}shutdown(){}}class oq{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){De("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){De("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Dk=null;function vR(){return null===Dk?Dk=268435456+Math.round(2147483648*Math.random()):Dk++,"0x"+Dk.toString(16)}const vAe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class yAe{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}onMessage(n){this.Ao=n}close(){this.ho()}send(n){this.lo(n)}Ro(){this.Io()}Vo(n){this.Eo(n)}mo(n){this.Ao(n)}}const Po="WebChannelConnection";class xAe extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const i=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),o=encodeURIComponent(this.databaseId.database);this.fo=i+"://"+e.host,this.po=`projects/${r}/databases/${o}`,this.yo="(default)"===this.databaseId.database?`project_id=${r}`:`project_id=${r}&database_id=${o}`}get wo(){return!1}So(e,i,r,o,s){const a=vR(),c=this.bo(e,i.toUriEncodedString());De("RestConnection",`Sending RPC '${e}' ${a}:`,c,r);const l={"google-cloud-resource-prefix":this.po,"x-goog-request-params":this.yo};return this.Do(l,o,s),this.Co(e,c,l,r).then(d=>(De("RestConnection",`Received RPC '${e}' ${a}: `,d),d),d=>{throw zs("RestConnection",`RPC '${e}' ${a} failed with error: `,d,"url: ",c,"request:",r),d})}vo(e,i,r,o,s,a){return this.So(e,i,r,o,s)}Do(e,i,r){e["X-Goog-Api-Client"]="gl-js/ fire/"+Jm,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),i&&i.headers.forEach((o,s)=>e[s]=o),r&&r.headers.forEach((o,s)=>e[s]=o)}bo(e,i){return`${this.fo}/v1/${i}:${vAe[e]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Co(n,e,i,r){const o=vR();return new Promise((s,a)=>{const c=new xIe;c.setWithCredentials(!0),c.listenOnce(vIe.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case TM.NO_ERROR:const d=c.getResponseJson();De(Po,`XHR for RPC '${n}' ${o} received:`,JSON.stringify(d)),s(d);break;case TM.TIMEOUT:De(Po,`RPC '${n}' ${o} timed out`),a(new Ie(de.DEADLINE_EXCEEDED,"Request time out"));break;case TM.HTTP_ERROR:const u=c.getStatus();if(De(Po,`RPC '${n}' ${o} failed with status:`,u,"response text:",c.getResponseText()),u>0){let h=c.getResponseJson();Array.isArray(h)&&(h=h[0]);const f=h?.error;if(f&&f.status&&f.message){const m=function(p){const v=p.toLowerCase().replace(/_/g,"-");return Object.values(de).indexOf(v)>=0?v:de.UNKNOWN}(f.status);a(new Ie(m,f.message))}else a(new Ie(de.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new Ie(de.UNAVAILABLE,"Connection failed."));break;default:ot()}}finally{De(Po,`RPC '${n}' ${o} completed.`)}});const l=JSON.stringify(r);De(Po,`RPC '${n}' ${o} sending request:`,r),c.send(e,"POST",l,i,15)})}Fo(n,e,i){const r=vR(),o=[this.fo,"/","google.firestore.v1.Firestore","/",n,"/channel"],s=_Ie(),a=bIe(),c={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(c.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(c.useFetchStreams=!0),this.Do(c.initMessageHeaders,e,i),c.encodeInitMessageHeaders=!0;const d=o.join("");De(Po,`Creating RPC '${n}' stream ${r}: ${d}`,c);const u=s.createWebChannel(d,c);let h=!1,f=!1;const m=new yAe({lo:p=>{f?De(Po,`Not sending because RPC '${n}' stream ${r} is closed:`,p):(h||(De(Po,`Opening RPC '${n}' stream ${r} transport.`),u.open(),h=!0),De(Po,`RPC '${n}' stream ${r} sending:`,p),u.send(p))},ho:()=>u.close()}),g=(p,v,x)=>{p.listen(v,C=>{try{x(C)}catch(D){setTimeout(()=>{throw D},0)}})};return g(u,Z1.EventType.OPEN,()=>{f||De(Po,`RPC '${n}' stream ${r} transport opened.`)}),g(u,Z1.EventType.CLOSE,()=>{f||(f=!0,De(Po,`RPC '${n}' stream ${r} transport closed`),m.Vo())}),g(u,Z1.EventType.ERROR,p=>{f||(f=!0,zs(Po,`RPC '${n}' stream ${r} transport errored:`,p),m.Vo(new Ie(de.UNAVAILABLE,"The operation could not be completed")))}),g(u,Z1.EventType.MESSAGE,p=>{var v;if(!f){const x=p.data[0];ht(!!x);const D=x.error||(null===(v=x[0])||void 0===v?void 0:v.error);if(D){De(Po,`RPC '${n}' stream ${r} received error:`,D);const z=D.status;let A=function(B){const X=fr[B];if(void 0!==X)return YG(X)}(z),E=D.message;void 0===A&&(A=de.INTERNAL,E="Unknown error status: "+z+" with message "+D.message),f=!0,m.Vo(new Ie(A,E)),u.close()}else De(Po,`RPC '${n}' stream ${r} received:`,x),m.mo(x)}}),g(a,yIe.STAT_EVENT,p=>{p.stat===H$.PROXY?De(Po,`RPC '${n}' stream ${r} detected buffering proxy`):p.stat===H$.NOPROXY&&De(Po,`RPC '${n}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{m.Ro()},0),m}}function Ik(){return typeof document<"u"?document:null}function yb(t){return new M2e(t,!0)}class yR{constructor(n,e,i=1e3,r=1.5,o=6e4){this.oi=n,this.timerId=e,this.Mo=i,this.xo=r,this.Oo=o,this.No=0,this.Lo=null,this.Bo=Date.now(),this.reset()}reset(){this.No=0}ko(){this.No=this.Oo}qo(n){this.cancel();const e=Math.floor(this.No+this.Qo()),i=Math.max(0,Date.now()-this.Bo),r=Math.max(0,e-i);r>0&&De("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.No} ms, delay with jitter: ${e} ms, last attempt: ${i} ms ago)`),this.Lo=this.oi.enqueueAfterDelay(this.timerId,r,()=>(this.Bo=Date.now(),n())),this.No*=this.xo,this.Nothis.Oo&&(this.No=this.Oo)}Ko(){null!==this.Lo&&(this.Lo.skipDelay(),this.Lo=null)}cancel(){null!==this.Lo&&(this.Lo.cancel(),this.Lo=null)}Qo(){return(Math.random()-.5)*this.No}}class aq{constructor(n,e,i,r,o,s,a,c){this.oi=n,this.$o=i,this.Uo=r,this.connection=o,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.Wo=0,this.Go=null,this.zo=null,this.stream=null,this.jo=new yR(n,e)}Ho(){return 1===this.state||5===this.state||this.Jo()}Jo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Yo()}stop(){var n=this;return me(function*(){n.Ho()&&(yield n.close(0))})()}Zo(){this.state=0,this.jo.reset()}Xo(){this.Jo()&&null===this.Go&&(this.Go=this.oi.enqueueAfterDelay(this.$o,6e4,()=>this.e_()))}t_(n){this.n_(),this.stream.send(n)}e_(){var n=this;return me(function*(){if(n.Jo())return n.close(0)})()}n_(){this.Go&&(this.Go.cancel(),this.Go=null)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}close(n,e){var i=this;return me(function*(){i.n_(),i.r_(),i.jo.cancel(),i.Wo++,4!==n?i.jo.reset():e&&e.code===de.RESOURCE_EXHAUSTED?(Ji(e.toString()),Ji("Using maximum backoff delay to prevent overloading the backend."),i.jo.ko()):e&&e.code===de.UNAUTHENTICATED&&3!==i.state&&(i.authCredentialsProvider.invalidateToken(),i.appCheckCredentialsProvider.invalidateToken()),null!==i.stream&&(i.i_(),i.stream.close(),i.stream=null),i.state=n,yield i.listener.To(e)})()}i_(){}auth(){this.state=1;const n=this.s_(this.Wo),e=this.Wo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([i,r])=>{this.Wo===e&&this.o_(i,r)},i=>{n(()=>{const r=new Ie(de.UNKNOWN,"Fetching auth token failed: "+i.message);return this.__(r)})})}o_(n,e){const i=this.s_(this.Wo);this.stream=this.a_(n,e),this.stream.Po(()=>{i(()=>(this.state=2,this.zo=this.oi.enqueueAfterDelay(this.Uo,1e4,()=>(this.Jo()&&(this.state=3),Promise.resolve())),this.listener.Po()))}),this.stream.To(r=>{i(()=>this.__(r))}),this.stream.onMessage(r=>{i(()=>this.onMessage(r))})}Yo(){var n=this;this.state=5,this.jo.qo(me(function*(){n.state=0,n.start()}))}__(n){return De("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}s_(n){return e=>{this.oi.enqueueAndForget(()=>this.Wo===n?e():(De("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class wAe extends aq{constructor(n,e,i,r,o,s){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",e,i,r,s),this.serializer=o}a_(n,e){return this.connection.Fo("Listen",n,e)}onMessage(n){this.jo.reset();const e=function F2e(t,n){let e;if("targetChange"in n){const i="NO_CHANGE"===(l=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===l?1:"REMOVE"===l?2:"CURRENT"===l?3:"RESET"===l?4:ot(),r=n.targetChange.targetIds||[],o=function(l,d){return l.useProto3Json?(ht(void 0===d||"string"==typeof d),Fr.fromBase64String(d||"")):(ht(void 0===d||d instanceof Uint8Array),Fr.fromUint8Array(d||new Uint8Array))}(t,n.targetChange.resumeToken),s=n.targetChange.cause,a=s&&function(l){const d=void 0===l.code?de.UNKNOWN:YG(l.code);return new Ie(d,l.message||"")}(s);e=new nW(i,r,o,a||null)}else if("documentChange"in n){const i=n.documentChange,r=Cc(t,i.document.name),o=er(i.document.updateTime),s=i.document.createTime?er(i.document.createTime):pt.min(),a=new uo({mapValue:{fields:i.document.fields}}),c=Si.newFoundDocument(r,o,s,a);e=new mk(i.targetIds||[],i.removedTargetIds||[],c.key,c)}else if("documentDelete"in n){const i=n.documentDelete,r=Cc(t,i.document),o=i.readTime?er(i.readTime):pt.min(),s=Si.newNoDocument(r,o);e=new mk([],i.removedTargetIds||[],s.key,s)}else if("documentRemove"in n){const i=n.documentRemove,r=Cc(t,i.document);e=new mk([],i.removedTargetIds||[],r,null)}else{if(!("filter"in n))return ot();{const i=n.filter,{count:r=0,unchangedNames:o}=i,s=new T2e(r,o);e=new tW(i.targetId,s)}}var l;return e}(this.serializer,n),i=function(o){if(!("targetChange"in o))return pt.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?pt.min():s.readTime?er(s.readTime):pt.min()}(n);return this.listener.u_(e,i)}c_(n){const e={};e.database=KM(this.serializer),e.addTarget=function(o,s){let a;const c=s.target;if(a=ak(c)?{documents:fW(o,c)}:{query:YM(o,c).ut},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=sW(o,s.resumeToken);const l=WM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}else if(s.snapshotVersion.compareTo(pt.min())>0){a.readTime=mp(o,s.snapshotVersion.toTimestamp());const l=WM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}return a}(this.serializer,n);const i=function N2e(t,n){const e=function(r){switch(r){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ot()}}(n.purpose);return null==e?null:{"goog-listen-tags":e}}(0,n);i&&(e.labels=i),this.t_(e)}l_(n){const e={};e.database=KM(this.serializer),e.removeTarget=n,this.t_(e)}}class kAe extends aq{constructor(n,e,i,r,o,s){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",e,i,r,s),this.serializer=o,this.h_=!1}get P_(){return this.h_}start(){this.h_=!1,this.lastStreamToken=void 0,super.start()}i_(){this.h_&&this.I_([])}a_(n,e){return this.connection.Fo("Write",n,e)}onMessage(n){if(ht(!!n.streamToken),this.lastStreamToken=n.streamToken,this.h_){this.jo.reset();const e=function O2e(t,n){return t&&t.length>0?(ht(void 0!==n),t.map(e=>function(r,o){let s=er(r.updateTime?r.updateTime:o);return s.isEqual(pt.min())&&(s=er(o)),new x2e(s,r.transformResults||[])}(e,n))):[]}(n.writeResults,n.commitTime),i=er(n.commitTime);return this.listener.T_(i,e)}return ht(!n.writeResults||0===n.writeResults.length),this.h_=!0,this.listener.E_()}d_(){const n={};n.database=KM(this.serializer),this.t_(n)}I_(n){const e={streamToken:this.lastStreamToken,writes:n.map(i=>function hb(t,n){let e;if(n instanceof hp)e={update:uW(t,n.key,n.value)};else if(n instanceof fp)e={delete:ub(t,n.key)};else if(n instanceof kl)e={update:uW(t,n.key,n.data),updateMask:U2e(n.fieldMask)};else{if(!(n instanceof zM))return ot();e={verify:ub(t,n.key)}}return n.fieldTransforms.length>0&&(e.updateTransforms=n.fieldTransforms.map(i=>function(o,s){const a=s.transform;if(a instanceof dp)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof fh)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof mh)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof up)return{fieldPath:s.field.canonicalString(),increment:a.Ie};throw ot()}(0,i))),n.precondition.isNone||(e.currentDocument=void 0!==(o=n.precondition).updateTime?{updateTime:R2e(t,o.updateTime)}:void 0!==o.exists?{exists:o.exists}:ot()),e;var o}(this.serializer,i))};this.t_(e)}}class CAe extends class{}{constructor(n,e,i,r){super(),this.authCredentials=n,this.appCheckCredentials=e,this.connection=i,this.serializer=r,this.A_=!1}R_(){if(this.A_)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.")}So(n,e,i,r){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.So(n,QM(e,i),r,o,s)).catch(o=>{throw"FirebaseError"===o.name?(o.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Ie(de.UNKNOWN,o.toString())})}vo(n,e,i,r,o){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,a])=>this.connection.vo(n,QM(e,i),r,s,a,o)).catch(s=>{throw"FirebaseError"===s.name?(s.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Ie(de.UNKNOWN,s.toString())})}terminate(){this.A_=!0,this.connection.terminate()}}class EAe{constructor(n,e){this.asyncQueue=n,this.onlineStateHandler=e,this.state="Unknown",this.m_=0,this.f_=null,this.g_=!0}p_(){0===this.m_&&(this.y_("Unknown"),this.f_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.f_=null,this.w_("Backend didn't respond within 10 seconds."),this.y_("Offline"),Promise.resolve())))}S_(n){"Online"===this.state?this.y_("Unknown"):(this.m_++,this.m_>=1&&(this.b_(),this.w_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.y_("Offline")))}set(n){this.b_(),this.m_=0,"Online"===n&&(this.g_=!1),this.y_(n)}y_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}w_(n){const e=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.g_?(Ji(e),this.g_=!1):De("OnlineStateTracker",e)}b_(){null!==this.f_&&(this.f_.cancel(),this.f_=null)}}class SAe{constructor(n,e,i,r,o){var s=this;this.localStore=n,this.datastore=e,this.asyncQueue=i,this.remoteSyncer={},this.D_=[],this.C_=new Map,this.v_=new Set,this.F_=[],this.M_=o,this.M_.io(a=>{i.enqueueAndForget(me(function*(){var c;$d(s)&&(De("RemoteStore","Restarting streams for network reachability change."),yield(c=me(function*(d){const u=qe(d);u.v_.add(4),yield wp(u),u.x_.set("Unknown"),u.v_.delete(4),yield xb(u)}),function l(d){return c.apply(this,arguments)})(s))}))}),this.x_=new EAe(i,r)}}function xb(t){return wR.apply(this,arguments)}function wR(){return wR=me(function*(t){if($d(t))for(const n of t.F_)yield n(!0)}),wR.apply(this,arguments)}function wp(t){return kR.apply(this,arguments)}function kR(){return kR=me(function*(t){for(const n of t.F_)yield n(!1)}),kR.apply(this,arguments)}function Ak(t,n){const e=qe(t);e.C_.has(n.targetId)||(e.C_.set(n.targetId,n),ER(e)?TR(e):Tp(e).Jo()&&CR(e,n))}function kp(t,n){const e=qe(t),i=Tp(e);e.C_.delete(n),i.Jo()&&cq(e,n),0===e.C_.size&&(i.Jo()?i.Xo():$d(e)&&e.x_.set("Unknown"))}function CR(t,n){if(t.O_.Oe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(pt.min())>0){const e=t.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(e)}Tp(t).c_(n)}function cq(t,n){t.O_.Oe(n),Tp(t).l_(n)}function TR(t){t.O_=new S2e({getRemoteKeysForTarget:n=>t.remoteSyncer.getRemoteKeysForTarget(n),_t:n=>t.C_.get(n)||null,nt:()=>t.datastore.serializer.databaseId}),Tp(t).start(),t.x_.p_()}function ER(t){return $d(t)&&!Tp(t).Ho()&&t.C_.size>0}function $d(t){return 0===qe(t).v_.size}function lq(t){t.O_=void 0}function DAe(t){return SR.apply(this,arguments)}function SR(){return SR=me(function*(t){t.C_.forEach((n,e)=>{CR(t,n)})}),SR.apply(this,arguments)}function IAe(t,n){return DR.apply(this,arguments)}function DR(){return DR=me(function*(t,n){lq(t),ER(t)?(t.x_.S_(n),TR(t)):t.x_.set("Unknown")}),DR.apply(this,arguments)}function AAe(t,n,e){return IR.apply(this,arguments)}function IR(){return IR=me(function*(t,n,e){if(t.x_.set("Online"),n instanceof nW&&2===n.state&&n.cause)try{yield(i=me(function*(o,s){const a=s.cause;for(const c of s.targetIds)o.C_.has(c)&&(yield o.remoteSyncer.rejectListen(c,a),o.C_.delete(c),o.O_.removeTarget(c))}),function r(o,s){return i.apply(this,arguments)})(t,n)}catch(i){De("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),i),yield Mk(t,i)}else if(n instanceof mk?t.O_.$e(n):n instanceof tW?t.O_.Je(n):t.O_.Ge(n),!e.isEqual(pt.min()))try{const i=yield YW(t.localStore);e.compareTo(i)>=0&&(yield function(o,s){const a=o.O_.it(s);return a.targetChanges.forEach((c,l)=>{if(c.resumeToken.approximateByteSize()>0){const d=o.C_.get(l);d&&o.C_.set(l,d.withResumeToken(c.resumeToken,s))}}),a.targetMismatches.forEach((c,l)=>{const d=o.C_.get(c);if(!d)return;o.C_.set(c,d.withResumeToken(Fr.EMPTY_BYTE_STRING,d.snapshotVersion)),cq(o,c);const u=new Cl(d.target,c,l,d.sequenceNumber);CR(o,u)}),o.remoteSyncer.applyRemoteEvent(a)}(t,e))}catch(i){De("RemoteStore","Failed to raise snapshot:",i),yield Mk(t,i)}var i}),IR.apply(this,arguments)}function Mk(t,n,e){return AR.apply(this,arguments)}function AR(){return AR=me(function*(t,n,e){if(!Pd(n))throw n;t.v_.add(1),yield wp(t),t.x_.set("Offline"),e||(e=()=>YW(t.localStore)),t.asyncQueue.enqueueRetryable(me(function*(){De("RemoteStore","Retrying IndexedDB access"),yield e(),t.v_.delete(1),yield xb(t)}))}),AR.apply(this,arguments)}function dq(t,n){return n().catch(e=>Mk(t,e,n))}function Cp(t){return MR.apply(this,arguments)}function MR(){return MR=me(function*(t){const n=qe(t),e=Gd(n);let i=n.D_.length>0?n.D_[n.D_.length-1].batchId:-1;for(;MAe(n);)try{const r=yield pAe(n.localStore,i);if(null===r){0===n.D_.length&&e.Xo();break}i=r.batchId,RAe(n,r)}catch(r){yield Mk(n,r)}uq(n)&&hq(n)}),MR.apply(this,arguments)}function MAe(t){return $d(t)&&t.D_.length<10}function RAe(t,n){t.D_.push(n);const e=Gd(t);e.Jo()&&e.P_&&e.I_(n.mutations)}function uq(t){return $d(t)&&!Gd(t).Ho()&&t.D_.length>0}function hq(t){Gd(t).start()}function PAe(t){return RR.apply(this,arguments)}function RR(){return RR=me(function*(t){Gd(t).d_()}),RR.apply(this,arguments)}function FAe(t){return PR.apply(this,arguments)}function PR(){return PR=me(function*(t){const n=Gd(t);for(const e of t.D_)n.I_(e.mutations)}),PR.apply(this,arguments)}function OAe(t,n,e){return FR.apply(this,arguments)}function FR(){return FR=me(function*(t,n,e){const i=t.D_.shift(),r=jM.from(i,n,e);yield dq(t,()=>t.remoteSyncer.applySuccessfulWrite(r)),yield Cp(t)}),FR.apply(this,arguments)}function NAe(t,n){return OR.apply(this,arguments)}function OR(){return OR=me(function*(t,n){var e;n&&Gd(t).P_&&(yield(e=me(function*(r,o){if(function XG(t){switch(t){default:return ot();case de.CANCELLED:case de.UNKNOWN:case de.DEADLINE_EXCEEDED:case de.RESOURCE_EXHAUSTED:case de.INTERNAL:case de.UNAVAILABLE:case de.UNAUTHENTICATED:return!1;case de.INVALID_ARGUMENT:case de.NOT_FOUND:case de.ALREADY_EXISTS:case de.PERMISSION_DENIED:case de.FAILED_PRECONDITION:case de.ABORTED:case de.OUT_OF_RANGE:case de.UNIMPLEMENTED:case de.DATA_LOSS:return!0}}(a=o.code)&&a!==de.ABORTED){const s=r.D_.shift();Gd(r).Zo(),yield dq(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,o)),yield Cp(r)}var a}),function i(r,o){return e.apply(this,arguments)})(t,n)),uq(t)&&hq(t)}),OR.apply(this,arguments)}function fq(t,n){return NR.apply(this,arguments)}function NR(){return NR=me(function*(t,n){const e=qe(t);e.asyncQueue.verifyOperationInProgress(),De("RemoteStore","RemoteStore received new credentials");const i=$d(e);e.v_.add(3),yield wp(e),i&&e.x_.set("Unknown"),yield e.remoteSyncer.handleCredentialChange(n),e.v_.delete(3),yield xb(e)}),NR.apply(this,arguments)}function VR(){return VR=me(function*(t,n){const e=qe(t);n?(e.v_.delete(2),yield xb(e)):n||(e.v_.add(2),yield wp(e),e.x_.set("Unknown"))}),VR.apply(this,arguments)}function Tp(t){return t.N_||(t.N_=function(e,i,r){const o=qe(e);return o.R_(),new wAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:DAe.bind(null,t),To:IAe.bind(null,t),u_:AAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.N_.Zo(),ER(t)?TR(t):t.x_.set("Unknown")):(yield t.N_.stop(),lq(t))});return function(e){return n.apply(this,arguments)}}())),t.N_}function Gd(t){return t.L_||(t.L_=function(e,i,r){const o=qe(e);return o.R_(),new kAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:PAe.bind(null,t),To:NAe.bind(null,t),E_:FAe.bind(null,t),T_:OAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.L_.Zo(),yield Cp(t)):(yield t.L_.stop(),t.D_.length>0&&(De("RemoteStore",`Stopping write stream with ${t.D_.length} pending writes`),t.D_=[]))});return function(e){return n.apply(this,arguments)}}())),t.L_}class BR{constructor(n,e,i,r,o){this.asyncQueue=n,this.timerId=e,this.targetTimeMs=i,this.op=r,this.removalCallback=o,this.deferred=new Pr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,e,i,r,o){const s=Date.now()+i,a=new BR(n,e,s,r,o);return a.start(i),a}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ie(de.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Ep(t,n){if(Ji("AsyncQueue",`${n}: ${t}`),Pd(t))return new Ie(de.UNAVAILABLE,`${n}: ${t}`);throw t}class Sp{constructor(n){this.comparator=n?(e,i)=>n(e,i)||Xe.comparator(e.key,i.key):(e,i)=>Xe.comparator(e.key,i.key),this.keyedMap=rb(),this.sortedSet=new vi(this.comparator)}static emptySet(n){return new Sp(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const e=this.keyedMap.get(n);return e?this.sortedSet.indexOf(e):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((e,i)=>(n(e),!1))}add(n){const e=this.delete(n.key);return e.copy(e.keyedMap.insert(n.key,n),e.sortedSet.insert(n,null))}delete(n){const e=this.get(n);return e?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(e)):this}isEqual(n){if(!(n instanceof Sp)||this.size!==n.size)return!1;const e=this.sortedSet.getIterator(),i=n.sortedSet.getIterator();for(;e.hasNext();){const r=e.getNext().key,o=i.getNext().key;if(!r.isEqual(o))return!1}return!0}toString(){const n=[];return this.forEach(e=>{n.push(e.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,e){const i=new Sp;return i.comparator=this.comparator,i.keyedMap=n,i.sortedSet=e,i}}class mq{constructor(){this.B_=new vi(Xe.comparator)}track(n){const e=n.doc.key,i=this.B_.get(e);i?0!==n.type&&3===i.type?this.B_=this.B_.insert(e,n):3===n.type&&1!==i.type?this.B_=this.B_.insert(e,{type:i.type,doc:n.doc}):2===n.type&&2===i.type?this.B_=this.B_.insert(e,{type:2,doc:n.doc}):2===n.type&&0===i.type?this.B_=this.B_.insert(e,{type:0,doc:n.doc}):1===n.type&&0===i.type?this.B_=this.B_.remove(e):1===n.type&&2===i.type?this.B_=this.B_.insert(e,{type:1,doc:i.doc}):0===n.type&&1===i.type?this.B_=this.B_.insert(e,{type:2,doc:n.doc}):ot():this.B_=this.B_.insert(e,n)}k_(){const n=[];return this.B_.inorderTraversal((e,i)=>{n.push(i)}),n}}class Dp{constructor(n,e,i,r,o,s,a,c,l){this.query=n,this.docs=e,this.oldDocs=i,this.docChanges=r,this.mutatedKeys=o,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=l}static fromInitialDocuments(n,e,i,r,o){const s=[];return e.forEach(a=>{s.push({type:0,doc:a})}),new Dp(n,e,Sp.emptySet(e),s,i,r,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&nb(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const e=this.docChanges,i=n.docChanges;if(e.length!==i.length)return!1;for(let r=0;rn.U_())}}class VAe{constructor(){this.queries=new wl(n=>MG(n),nb),this.onlineState="Unknown",this.W_=new Set}}function zR(){return zR=me(function*(t,n){const e=qe(t);let i=3;const r=n.query;let o=e.queries.get(r);o?!o.K_()&&n.U_()&&(i=2):(o=new LAe,i=n.U_()?0:1);try{switch(i){case 0:o.q_=yield e.onListen(r,!0);break;case 1:o.q_=yield e.onListen(r,!1);break;case 2:yield e.onFirstRemoteStoreListen(r)}}catch(s){const a=Ep(s,`Initialization of query '${lp(n.query)}' failed`);return void n.onError(a)}e.queries.set(r,o),o.Q_.push(n),n.G_(e.onlineState),o.q_&&n.z_(o.q_)&&$R(e)}),zR.apply(this,arguments)}function jR(){return jR=me(function*(t,n){const e=qe(t),i=n.query;let r=3;const o=e.queries.get(i);if(o){const s=o.Q_.indexOf(n);s>=0&&(o.Q_.splice(s,1),0===o.Q_.length?r=n.U_()?0:1:!o.K_()&&n.U_()&&(r=2))}switch(r){case 0:return e.queries.delete(i),e.onUnlisten(i,!0);case 1:return e.queries.delete(i),e.onUnlisten(i,!1);case 2:return e.onLastRemoteStoreUnlisten(i);default:return}}),jR.apply(this,arguments)}function BAe(t,n){const e=qe(t);let i=!1;for(const r of n){const s=e.queries.get(r.query);if(s){for(const a of s.Q_)a.z_(r)&&(i=!0);s.q_=r}}i&&$R(e)}function UAe(t,n,e){const i=qe(t),r=i.queries.get(n);if(r)for(const o of r.Q_)o.onError(e);i.queries.delete(n)}function $R(t){t.W_.forEach(n=>{n.next()})}var GR,pq;(pq=GR||(GR={})).j_="default",pq.Cache="cache";class WR{constructor(n,e,i){this.query=n,this.H_=e,this.J_=!1,this.Y_=null,this.onlineState="Unknown",this.options=i||{}}z_(n){if(!this.options.includeMetadataChanges){const i=[];for(const r of n.docChanges)3!==r.type&&i.push(r);n=new Dp(n.query,n.docs,n.oldDocs,i,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let e=!1;return this.J_?this.Z_(n)&&(this.H_.next(n),e=!0):this.X_(n,this.onlineState)&&(this.ea(n),e=!0),this.Y_=n,e}onError(n){this.H_.error(n)}G_(n){this.onlineState=n;let e=!1;return this.Y_&&!this.J_&&this.X_(this.Y_,n)&&(this.ea(this.Y_),e=!0),e}X_(n,e){return!n.fromCache||!this.U_()||(!this.options.ta||!("Offline"!==e))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===e)}Z_(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.Y_&&this.Y_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}ea(n){n=Dp.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.J_=!0,this.H_.next(n)}U_(){return this.options.source!==GR.Cache}}class bq{constructor(n){this.key=n}}class vq{constructor(n){this.key=n}}class yq{constructor(n,e){this.query=n,this.ua=e,this.ca=null,this.hasCachedResults=!1,this.current=!1,this.la=Yt(),this.mutatedKeys=Yt(),this.ha=PG(n),this.Pa=new Sp(this.ha)}get Ia(){return this.ua}Ta(n,e){const i=e?e.Ea:new mq,r=e?e.Pa:this.Pa;let o=e?e.mutatedKeys:this.mutatedKeys,s=r,a=!1;const c="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(n.inorderTraversal((d,u)=>{const h=r.get(d),f=ib(this.query,u)?u:null,m=!!h&&this.mutatedKeys.has(h.key),g=!!f&&(f.hasLocalMutations||this.mutatedKeys.has(f.key)&&f.hasCommittedMutations);let p=!1;h&&f?h.data.isEqual(f.data)?m!==g&&(i.track({type:3,doc:f}),p=!0):this.da(h,f)||(i.track({type:2,doc:f}),p=!0,(c&&this.ha(f,c)>0||l&&this.ha(f,l)<0)&&(a=!0)):!h&&f?(i.track({type:0,doc:f}),p=!0):h&&!f&&(i.track({type:1,doc:h}),p=!0,(c||l)&&(a=!0)),p&&(f?(s=s.add(f),o=g?o.add(d):o.delete(d)):(s=s.delete(d),o=o.delete(d)))}),null!==this.query.limit)for(;s.size>this.query.limit;){const d="F"===this.query.limitType?s.last():s.first();s=s.delete(d.key),o=o.delete(d.key),i.track({type:1,doc:d})}return{Pa:s,Ea:i,Xi:a,mutatedKeys:o}}da(n,e){return n.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations}applyChanges(n,e,i,r){const o=this.Pa;this.Pa=n.Pa,this.mutatedKeys=n.mutatedKeys;const s=n.Ea.k_();s.sort((d,u)=>function(f,m){const g=p=>{switch(p){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ot()}};return g(f)-g(m)}(d.type,u.type)||this.ha(d.doc,u.doc)),this.Aa(i),r=null!=r&&r;const a=e&&!r?this.Ra():[],c=0===this.la.size&&this.current&&!r?1:0,l=c!==this.ca;return this.ca=c,0!==s.length||l?{snapshot:new Dp(this.query,n.Pa,o,s,n.mutatedKeys,0===c,l,!1,!!i&&i.resumeToken.approximateByteSize()>0),Va:a}:{Va:a}}G_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Pa:this.Pa,Ea:new mq,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{Va:[]}}ma(n){return!this.ua.has(n)&&!!this.Pa.has(n)&&!this.Pa.get(n).hasLocalMutations}Aa(n){n&&(n.addedDocuments.forEach(e=>this.ua=this.ua.add(e)),n.modifiedDocuments.forEach(e=>{}),n.removedDocuments.forEach(e=>this.ua=this.ua.delete(e)),this.current=n.current)}Ra(){if(!this.current)return[];const n=this.la;this.la=Yt(),this.Pa.forEach(i=>{this.ma(i.key)&&(this.la=this.la.add(i.key))});const e=[];return n.forEach(i=>{this.la.has(i)||e.push(new vq(i))}),this.la.forEach(i=>{n.has(i)||e.push(new bq(i))}),e}fa(n){this.ua=n.hs,this.la=Yt();const e=this.Ta(n.documents);return this.applyChanges(e,!0)}ga(){return Dp.fromInitialDocuments(this.query,this.Pa,this.mutatedKeys,0===this.ca,this.hasCachedResults)}}class jAe{constructor(n,e,i){this.query=n,this.targetId=e,this.view=i}}class $Ae{constructor(n){this.key=n,this.pa=!1}}class GAe{constructor(n,e,i,r,o,s){this.localStore=n,this.remoteStore=e,this.eventManager=i,this.sharedClientState=r,this.currentUser=o,this.maxConcurrentLimboResolutions=s,this.ya={},this.wa=new wl(a=>MG(a),nb),this.Sa=new Map,this.ba=new Set,this.Da=new vi(Xe.comparator),this.Ca=new Map,this.va=new oR,this.Fa={},this.Ma=new Map,this.xa=yh.Ln(),this.onlineState="Unknown",this.Oa=void 0}get isPrimaryClient(){return!0===this.Oa}}function WAe(t,n){return qR.apply(this,arguments)}function qR(){return qR=me(function*(t,n,e=!0){const i=Rk(t);let r;const o=i.wa.get(n);return o?(i.sharedClientState.addLocalQueryTarget(o.targetId),r=o.view.ga()):r=yield xq(i,n,e,!0),r}),qR.apply(this,arguments)}function qAe(t,n){return QR.apply(this,arguments)}function QR(){return QR=me(function*(t,n){const e=Rk(t);yield xq(e,n,!0,!1)}),QR.apply(this,arguments)}function xq(t,n,e,i){return KR.apply(this,arguments)}function KR(){return KR=me(function*(t,n,e,i){const r=yield function yp(t,n){const e=qe(t);return e.persistence.runTransaction("Allocate target","readwrite",i=>{let r;return e.Qr.getTargetData(i,n).next(o=>o?(r=o,Z.resolve(r)):e.Qr.allocateTargetId(i).next(s=>(r=new Cl(n,s,"TargetPurposeListen",i.currentSequenceNumber),e.Qr.addTargetData(i,r).next(()=>r))))}).then(i=>{const r=e.ns.get(i.targetId);return(null===r||i.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(e.ns=e.ns.insert(i.targetId,i),e.rs.set(n,i.targetId)),i})}(t.localStore,es(n)),o=r.targetId,s=e?t.sharedClientState.addLocalQueryTarget(o):"not-current";let a;return i&&(a=yield function XR(t,n,e,i,r){return YR.apply(this,arguments)}(t,n,o,"current"===s,r.resumeToken)),t.isPrimaryClient&&e&&Ak(t.remoteStore,r),a}),KR.apply(this,arguments)}function YR(){return YR=me(function*(t,n,e,i,r){t.Na=(u,h,f)=>{return(m=me(function*(p,v,x,C){let D=v.view.Ta(x);D.Xi&&(D=yield Tk(p.localStore,v.query,!1).then(({documents:V})=>v.view.Ta(V,D)));const z=C&&C.targetChanges.get(v.targetId),A=C&&null!=C.targetMismatches.get(v.targetId),E=v.view.applyChanges(D,p.isPrimaryClient,z,A);return cP(p,v.targetId,E.Va),E.snapshot}),function g(p,v,x,C){return m.apply(this,arguments)})(t,u,h,f);var m};const o=yield Tk(t.localStore,n,!0),s=new yq(n,o.hs),a=s.Ta(o.documents),c=db.createSynthesizedTargetChangeForCurrentChange(e,i&&"Offline"!==t.onlineState,r),l=s.applyChanges(a,t.isPrimaryClient,c);cP(t,e,l.Va);const d=new jAe(n,e,s);return t.wa.set(n,d),t.Sa.has(e)?t.Sa.get(e).push(n):t.Sa.set(e,[n]),l.snapshot}),YR.apply(this,arguments)}function QAe(t,n,e){return ZR.apply(this,arguments)}function ZR(){return ZR=me(function*(t,n,e){const i=qe(t),r=i.wa.get(n),o=i.Sa.get(r.targetId);if(o.length>1)return i.Sa.set(r.targetId,o.filter(s=>!nb(s,n))),void i.wa.delete(n);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(r.targetId),i.sharedClientState.isActiveQueryTarget(r.targetId)||(yield xp(i.localStore,r.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(r.targetId),e&&kp(i.remoteStore,r.targetId),Ip(i,r.targetId)}).catch(Rd))):(Ip(i,r.targetId),yield xp(i.localStore,r.targetId,!0))}),ZR.apply(this,arguments)}function KAe(t,n){return JR.apply(this,arguments)}function JR(){return JR=me(function*(t,n){const e=qe(t),i=e.wa.get(n),r=e.Sa.get(i.targetId);e.isPrimaryClient&&1===r.length&&(e.sharedClientState.removeLocalQueryTarget(i.targetId),kp(e.remoteStore,i.targetId))}),JR.apply(this,arguments)}function eP(){return eP=me(function*(t,n,e){const i=function vP(t){const n=qe(t);return n.remoteStore.remoteSyncer.applySuccessfulWrite=ZAe.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=JAe.bind(null,n),n}(t);try{const r=yield function(s,a){const c=qe(s),l=Ai.now(),d=a.reduce((f,m)=>f.add(m.key),Yt());let u,h;return c.persistence.runTransaction("Locally write mutations","readwrite",f=>{let m=vs(),g=Yt();return c.os.getEntries(f,d).next(p=>{m=p,m.forEach((v,x)=>{x.isValidDocument()||(g=g.add(v))})}).next(()=>c.localDocuments.getOverlayedDocuments(f,m)).next(p=>{u=p;const v=[];for(const x of a){const C=k2e(x,u.get(x.key).overlayedDocument);null!=C&&v.push(new kl(x.key,C,gG(C.value.mapValue),Ri.exists(!0)))}return c.mutationQueue.addMutationBatch(f,l,v,a)}).next(p=>{h=p;const v=p.applyToLocalDocumentSet(u,g);return c.documentOverlayCache.saveOverlays(f,p.batchId,v)})}).then(()=>({batchId:h.batchId,changes:OG(u)}))}(i.localStore,n);i.sharedClientState.addPendingMutation(r.batchId),function(s,a,c){let l=s.Fa[s.currentUser.toKey()];l||(l=new vi(Nt)),l=l.insert(a,c),s.Fa[s.currentUser.toKey()]=l}(i,r.batchId,e),yield Tl(i,r.changes),yield Cp(i.remoteStore)}catch(r){const o=Ep(r,"Failed to persist write");e.reject(o)}}),eP.apply(this,arguments)}function wq(t,n){return tP.apply(this,arguments)}function tP(){return tP=me(function*(t,n){const e=qe(t);try{const i=yield function mAe(t,n){const e=qe(t),i=n.snapshotVersion;let r=e.ns;return e.persistence.runTransaction("Apply remote event","readwrite-primary",o=>{const s=e.os.newChangeBuffer({trackRemovals:!0});r=e.ns;const a=[];n.targetChanges.forEach((d,u)=>{const h=r.get(u);if(!h)return;a.push(e.Qr.removeMatchingKeys(o,d.removedDocuments,u).next(()=>e.Qr.addMatchingKeys(o,d.addedDocuments,u)));let f=h.withSequenceNumber(o.currentSequenceNumber);var g,p,v;null!==n.targetMismatches.get(u)?f=f.withResumeToken(Fr.EMPTY_BYTE_STRING,pt.min()).withLastLimboFreeSnapshotVersion(pt.min()):d.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(d.resumeToken,i)),r=r.insert(u,f),p=f,v=d,(0===(g=h).resumeToken.approximateByteSize()||p.snapshotVersion.toMicroseconds()-g.snapshotVersion.toMicroseconds()>=3e8||v.addedDocuments.size+v.modifiedDocuments.size+v.removedDocuments.size>0)&&a.push(e.Qr.updateTargetData(o,f))});let c=vs(),l=Yt();if(n.documentUpdates.forEach(d=>{n.resolvedLimboDocuments.has(d)&&a.push(e.persistence.referenceDelegate.updateLimboDocument(o,d))}),a.push(function ZW(t,n,e){let i=Yt(),r=Yt();return e.forEach(o=>i=i.add(o)),n.getEntries(t,i).next(o=>{let s=vs();return e.forEach((a,c)=>{const l=o.get(a);c.isFoundDocument()!==l.isFoundDocument()&&(r=r.add(a)),c.isNoDocument()&&c.version.isEqual(pt.min())?(n.removeEntry(a,c.readTime),s=s.insert(a,c)):!l.isValidDocument()||c.version.compareTo(l.version)>0||0===c.version.compareTo(l.version)&&l.hasPendingWrites?(n.addEntry(c),s=s.insert(a,c)):De("LocalStore","Ignoring outdated watch update for ",a,". Current version:",l.version," Watch version:",c.version)}),{cs:s,ls:r}})}(o,s,n.documentUpdates).next(d=>{c=d.cs,l=d.ls})),!i.isEqual(pt.min())){const d=e.Qr.getLastRemoteSnapshotVersion(o).next(u=>e.Qr.setTargetsMetadata(o,o.currentSequenceNumber,i));a.push(d)}return Z.waitFor(a).next(()=>s.apply(o)).next(()=>e.localDocuments.getLocalViewOfDocuments(o,c,l)).next(()=>c)}).then(o=>(e.ns=r,o))}(e.localStore,n);n.targetChanges.forEach((r,o)=>{const s=e.Ca.get(o);s&&(ht(r.addedDocuments.size+r.modifiedDocuments.size+r.removedDocuments.size<=1),r.addedDocuments.size>0?s.pa=!0:r.modifiedDocuments.size>0?ht(s.pa):r.removedDocuments.size>0&&(ht(s.pa),s.pa=!1))}),yield Tl(e,i,n)}catch(i){yield Rd(i)}}),tP.apply(this,arguments)}function kq(t,n,e){const i=qe(t);if(i.isPrimaryClient&&0===e||!i.isPrimaryClient&&1===e){const r=[];i.wa.forEach((o,s)=>{const a=s.view.G_(n);a.snapshot&&r.push(a.snapshot)}),function(s,a){const c=qe(s);c.onlineState=a;let l=!1;c.queries.forEach((d,u)=>{for(const h of u.Q_)h.G_(a)&&(l=!0)}),l&&$R(c)}(i.eventManager,n),r.length&&i.ya.u_(r),i.onlineState=n,i.isPrimaryClient&&i.sharedClientState.setOnlineState(n)}}function YAe(t,n,e){return nP.apply(this,arguments)}function nP(){return nP=me(function*(t,n,e){const i=qe(t);i.sharedClientState.updateQueryState(n,"rejected",e);const r=i.Ca.get(n),o=r&&r.key;if(o){let s=new vi(Xe.comparator);s=s.insert(o,Si.newNoDocument(o,pt.min()));const a=Yt().add(o),c=new lb(pt.min(),new Map,new vi(Nt),s,a);yield wq(i,c),i.Da=i.Da.remove(o),i.Ca.delete(n),lP(i)}else yield xp(i.localStore,n,!1).then(()=>Ip(i,n,e)).catch(Rd)}),nP.apply(this,arguments)}function ZAe(t,n){return iP.apply(this,arguments)}function iP(){return iP=me(function*(t,n){const e=qe(t),i=n.batch.batchId;try{const r=yield function fAe(t,n){const e=qe(t);return e.persistence.runTransaction("Acknowledge batch","readwrite-primary",i=>{const r=n.batch.keys(),o=e.os.newChangeBuffer({trackRemovals:!0});return function(a,c,l,d){const u=l.batch,h=u.keys();let f=Z.resolve();return h.forEach(m=>{f=f.next(()=>d.getEntry(c,m)).next(g=>{const p=l.docVersions.get(m);ht(null!==p),g.version.compareTo(p)<0&&(u.applyToRemoteDocument(g,l),g.isValidDocument()&&(g.setReadTime(l.commitVersion),d.addEntry(g)))})}),f.next(()=>a.mutationQueue.removeMutationBatch(c,u))}(e,i,n,o).next(()=>o.apply(i)).next(()=>e.mutationQueue.performConsistencyCheck(i)).next(()=>e.documentOverlayCache.removeOverlaysForBatchId(i,r,n.batch.batchId)).next(()=>e.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(i,function(a){let c=Yt();for(let l=0;l0&&(c=c.add(a.batch.mutations[l].key));return c}(n))).next(()=>e.localDocuments.getDocuments(i,r))})}(e.localStore,n);aP(e,i,null),sP(e,i),e.sharedClientState.updateMutationState(i,"acknowledged"),yield Tl(e,r)}catch(r){yield Rd(r)}}),iP.apply(this,arguments)}function JAe(t,n,e){return rP.apply(this,arguments)}function rP(){return rP=me(function*(t,n,e){const i=qe(t);try{const r=yield function(s,a){const c=qe(s);return c.persistence.runTransaction("Reject batch","readwrite-primary",l=>{let d;return c.mutationQueue.lookupMutationBatch(l,a).next(u=>(ht(null!==u),d=u.keys(),c.mutationQueue.removeMutationBatch(l,u))).next(()=>c.mutationQueue.performConsistencyCheck(l)).next(()=>c.documentOverlayCache.removeOverlaysForBatchId(l,d,a)).next(()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(l,d)).next(()=>c.localDocuments.getDocuments(l,d))})}(i.localStore,n);aP(i,n,e),sP(i,n),i.sharedClientState.updateMutationState(n,"rejected",e),yield Tl(i,r)}catch(r){yield Rd(r)}}),rP.apply(this,arguments)}function sP(t,n){(t.Ma.get(n)||[]).forEach(e=>{e.resolve()}),t.Ma.delete(n)}function aP(t,n,e){const i=qe(t);let r=i.Fa[i.currentUser.toKey()];if(r){const o=r.get(n);o&&(e?o.reject(e):o.resolve(),r=r.remove(n)),i.Fa[i.currentUser.toKey()]=r}}function Ip(t,n,e=null){t.sharedClientState.removeLocalQueryTarget(n);for(const i of t.Sa.get(n))t.wa.delete(i),e&&t.ya.La(i,e);t.Sa.delete(n),t.isPrimaryClient&&t.va.Vr(n).forEach(i=>{t.va.containsKey(i)||Cq(t,i)})}function Cq(t,n){t.ba.delete(n.path.canonicalString());const e=t.Da.get(n);null!==e&&(kp(t.remoteStore,e),t.Da=t.Da.remove(n),t.Ca.delete(e),lP(t))}function cP(t,n,e){for(const i of e)i instanceof bq?(t.va.addReference(i.key,n),tMe(t,i)):i instanceof vq?(De("SyncEngine","Document no longer in limbo: "+i.key),t.va.removeReference(i.key,n),t.va.containsKey(i.key)||Cq(t,i.key)):ot()}function tMe(t,n){const e=n.key,i=e.path.canonicalString();t.Da.get(e)||t.ba.has(i)||(De("SyncEngine","New document in limbo: "+e),t.ba.add(i),lP(t))}function lP(t){for(;t.ba.size>0&&t.Da.size{s.push(i.Na(c,n,e).then(l=>{if((l||e)&&i.isPrimaryClient&&i.sharedClientState.updateQueryState(c.targetId,l?.fromCache?"not-current":"current"),l){r.push(l);const d=dR.Ki(c.targetId,l);o.push(d)}}))}),yield Promise.all(s),i.ya.u_(r),yield(a=me(function*(l,d){const u=qe(l);try{yield u.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>Z.forEach(d,f=>Z.forEach(f.qi,m=>u.persistence.referenceDelegate.addReference(h,f.targetId,m)).next(()=>Z.forEach(f.Qi,m=>u.persistence.referenceDelegate.removeReference(h,f.targetId,m)))))}catch(h){if(!Pd(h))throw h;De("LocalStore","Failed to update sequence numbers: "+h)}for(const h of d){const f=h.targetId;if(!h.fromCache){const m=u.ns.get(f),p=m.withLastLimboFreeSnapshotVersion(m.snapshotVersion);u.ns=u.ns.insert(f,p)}}}),function c(l,d){return a.apply(this,arguments)})(i.localStore,o))}),dP.apply(this,arguments)}function nMe(t,n){return uP.apply(this,arguments)}function uP(){return uP=me(function*(t,n){const e=qe(t);if(!e.currentUser.isEqual(n)){De("SyncEngine","User change. New user:",n.toKey());const i=yield XW(e.localStore,n);e.currentUser=n,(o=e).Ma.forEach(a=>{a.forEach(c=>{c.reject(new Ie(de.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),o.Ma.clear(),e.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),yield Tl(e,i.us)}var o}),uP.apply(this,arguments)}function iMe(t,n){const e=qe(t),i=e.Ca.get(n);if(i&&i.pa)return Yt().add(i.key);{let r=Yt();const o=e.Sa.get(n);if(!o)return r;for(const s of o){const a=e.wa.get(s);r=r.unionWith(a.view.Ia)}return r}}function Rk(t){const n=qe(t);return n.remoteStore.remoteSyncer.applyRemoteEvent=wq.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=iMe.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=YAe.bind(null,n),n.ya.u_=BAe.bind(null,n.eventManager),n.ya.La=UAe.bind(null,n.eventManager),n}class Ap{constructor(){this.synchronizeTabs=!1}initialize(n){var e=this;return me(function*(){e.serializer=yb(n.databaseInfo.databaseId),e.sharedClientState=e.createSharedClientState(n),e.persistence=e.createPersistence(n),yield e.persistence.start(),e.localStore=e.createLocalStore(n),e.gcScheduler=e.createGarbageCollectionScheduler(n,e.localStore),e.indexBackfillerScheduler=e.createIndexBackfillerScheduler(n,e.localStore)})()}createGarbageCollectionScheduler(n,e){return null}createIndexBackfillerScheduler(n,e){return null}createLocalStore(n){return function KW(t,n,e,i){return new hAe(t,n,e,i)}(this.persistence,new QW,n.initialUser,this.serializer)}createPersistence(n){return new sR(wk.Hr,this.serializer)}createSharedClientState(n){return new rq}terminate(){var n=this;return me(function*(){var e,i;null===(e=n.gcScheduler)||void 0===e||e.stop(),null===(i=n.indexBackfillerScheduler)||void 0===i||i.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Mp{initialize(n,e){var i=this;return me(function*(){i.localStore||(i.localStore=n.localStore,i.sharedClientState=n.sharedClientState,i.datastore=i.createDatastore(e),i.remoteStore=i.createRemoteStore(e),i.eventManager=i.createEventManager(e),i.syncEngine=i.createSyncEngine(e,!n.synchronizeTabs),i.sharedClientState.onlineStateHandler=r=>kq(i.syncEngine,r,1),i.remoteStore.remoteSyncer.handleCredentialChange=nMe.bind(null,i.syncEngine),yield function LR(t,n){return VR.apply(this,arguments)}(i.remoteStore,i.syncEngine.isPrimaryClient))})()}createEventManager(n){return new VAe}createDatastore(n){const e=yb(n.databaseInfo.databaseId),i=new xAe(n.databaseInfo);return new CAe(n.authCredentials,n.appCheckCredentials,i,e)}createRemoteStore(n){return i=this.localStore,r=this.datastore,o=n.asyncQueue,s=e=>kq(this.syncEngine,e,0),a=oq.D()?new oq:new bAe,new SAe(i,r,o,s,a);var i,r,o,s,a}createSyncEngine(n,e){return function(r,o,s,a,c,l,d){const u=new GAe(r,o,s,a,c,l);return d&&(u.Oa=!0),u}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,e)}terminate(){var n=this;return me(function*(){var e,i;yield(i=me(function*(o){const s=qe(o);De("RemoteStore","RemoteStore shutting down."),s.v_.add(5),yield wp(s),s.M_.shutdown(),s.x_.set("Unknown")}),function r(o){return i.apply(this,arguments)})(n.remoteStore),null===(e=n.datastore)||void 0===e||e.terminate()})()}}class Pk{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.qa(this.observer.next,n)}error(n){this.observer.error?this.qa(this.observer.error,n):Ji("Uncaught Error in snapshot listener:",n.toString())}Qa(){this.muted=!0}qa(n,e){this.muted||setTimeout(()=>{this.muted||n(e)},0)}}class gMe{constructor(n,e,i,r){var o=this;this.authCredentials=n,this.appCheckCredentials=e,this.asyncQueue=i,this.databaseInfo=r,this.user=Kr.UNAUTHENTICATED,this.clientId=W$.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(i,function(){var s=me(function*(a){De("FirestoreClient","Received user=",a.uid),yield o.authCredentialListener(a),o.user=a});return function(a){return s.apply(this,arguments)}}()),this.appCheckCredentials.start(i,s=>(De("FirestoreClient","Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const e=new Pr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(me(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),e.resolve()}catch(i){const r=Ep(i,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}function Fk(t,n){return xP.apply(this,arguments)}function xP(){return xP=me(function*(t,n){t.asyncQueue.verifyOperationInProgress(),De("FirestoreClient","Initializing OfflineComponentProvider");const e=t.configuration;yield n.initialize(e);let i=e.initialUser;t.setCredentialChangeListener(function(){var r=me(function*(o){i.isEqual(o)||(yield XW(n.localStore,o),i=o)});return function(o){return r.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=n}),xP.apply(this,arguments)}function wP(t,n){return kP.apply(this,arguments)}function kP(){return kP=me(function*(t,n){t.asyncQueue.verifyOperationInProgress();const e=yield function CP(t){return TP.apply(this,arguments)}(t);De("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(e,t.configuration),t.setCredentialChangeListener(i=>fq(n.remoteStore,i)),t.setAppCheckTokenChangeListener((i,r)=>fq(n.remoteStore,r)),t._onlineComponents=n}),kP.apply(this,arguments)}function TP(){return TP=me(function*(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){De("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Fk(t,t._uninitializedComponentsProvider._offline)}catch(n){const e=n;if(!function Iq(t){return"FirebaseError"===t.name?t.code===de.FAILED_PRECONDITION||t.code===de.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(e))throw e;zs("Error using user provided cache. Falling back to memory cache: "+e),yield Fk(t,new Ap)}}else De("FirestoreClient","Using default OfflineComponentProvider"),yield Fk(t,new Ap);return t._offlineComponents}),TP.apply(this,arguments)}function Ok(t){return EP.apply(this,arguments)}function EP(){return EP=me(function*(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(De("FirestoreClient","Using user provided OnlineComponentProvider"),yield wP(t,t._uninitializedComponentsProvider._online)):(De("FirestoreClient","Using default OnlineComponentProvider"),yield wP(t,new Mp))),t._onlineComponents}),EP.apply(this,arguments)}function DP(){return DP=me(function*(t){const n=yield Ok(t),e=n.eventManager;return e.onListen=WAe.bind(null,n.syncEngine),e.onUnlisten=QAe.bind(null,n.syncEngine),e.onFirstRemoteStoreListen=qAe.bind(null,n.syncEngine),e.onLastRemoteStoreUnlisten=KAe.bind(null,n.syncEngine),e}),DP.apply(this,arguments)}function Fq(t,n,e={}){const i=new Pr;return t.asyncQueue.enqueueAndForget(me(function*(){return function(o,s,a,c,l){const d=new Pk({next:h=>{s.enqueueAndForget(()=>function HR(t,n){return jR.apply(this,arguments)}(o,u)),h.fromCache&&"server"===c.source?l.reject(new Ie(de.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):l.resolve(h)},error:h=>l.reject(h)}),u=new WR(a,d,{includeMetadataChanges:!0,ta:!0});return function UR(t,n){return zR.apply(this,arguments)}(o,u)}(yield function Pp(t){return DP.apply(this,arguments)}(t),t.asyncQueue,n,e,i)})),i.promise}function Oq(t){const n={};return void 0!==t.timeoutSeconds&&(n.timeoutSeconds=t.timeoutSeconds),n}const Nq=new Map;function IP(t,n,e){if(!e)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${n}.`)}function Lq(t){if(!Xe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function Vq(t){if(Xe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Nk(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";{const n=(i=t).constructor?i.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var i;return"function"==typeof t?"a function":ot()}function xn(t,n){if("_delegate"in t&&(t=t._delegate),!(t instanceof n)){if(n.name===t.constructor.name)throw new Ie(de.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const e=Nk(t);throw new Ie(de.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${e}`)}}return t}class Uq{constructor(n){var e,i;if(void 0===n.host){if(void 0!==n.ssl)throw new Ie(de.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(e=n.ssl)||void 0===e||e;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Ie(de.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function SMe(t,n,e,i){if(!0===n&&!0===i)throw new Ie(de.INVALID_ARGUMENT,`${t} and ${e} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=Oq(null!==(i=n.experimentalLongPollingOptions)&&void 0!==i?i:{}),function(o){if(void 0!==o.timeoutSeconds){if(isNaN(o.timeoutSeconds))throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (must not be NaN)`);if(o.timeoutSeconds<5)throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (minimum allowed value is 5)`);if(o.timeoutSeconds>30)throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class wb{constructor(n,e,i,r){this._authCredentials=n,this._appCheckCredentials=e,this._databaseId=i,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Uq({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ie(de.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Ie(de.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Uq(n),void 0!==n.credentials&&(this._authCredentials=function(i){if(!i)return new kIe;switch(i.type){case"firstParty":return new SIe(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new Ie(de.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const i=Nq.get(e);i&&(De("ComponentProvider","Removing Datastore"),Nq.delete(e),i.terminate())}(this),Promise.resolve()}}class ho{constructor(n,e,i){this.converter=e,this._query=i,this.type="query",this.firestore=n}withConverter(n){return new ho(this.firestore,n,this._query)}}class tr{constructor(n,e,i){this.converter=e,this._key=i,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Tc(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new tr(this.firestore,n,this._key)}}class Tc extends ho{constructor(n,e,i){super(n,e,ap(i)),this._path=i,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new tr(this.firestore,null,new Xe(n))}withConverter(n){return new Tc(this.firestore,n,this._path)}}function zq(t,n,...e){if(t=Oa(t),IP("collection","path",n),t instanceof wb){const i=vn.fromString(n,...e);return Vq(i),new Tc(t,null,i)}{if(!(t instanceof tr||t instanceof Tc))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(vn.fromString(n,...e));return Vq(i),new Tc(t.firestore,null,i)}}class AMe{constructor(){this.nu=Promise.resolve(),this.ru=[],this.iu=!1,this.su=[],this.ou=null,this._u=!1,this.au=!1,this.uu=[],this.jo=new yR(this,"async_queue_retry"),this.cu=()=>{const e=Ik();e&&De("AsyncQueue","Visibility state changed to "+e.visibilityState),this.jo.Ko()};const n=Ik();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.cu)}get isShuttingDown(){return this.iu}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.lu(),this.hu(n)}enterRestrictedMode(n){if(!this.iu){this.iu=!0,this.au=n||!1;const e=Ik();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.cu)}}enqueue(n){if(this.lu(),this.iu)return new Promise(()=>{});const e=new Pr;return this.hu(()=>this.iu&&this.au?Promise.resolve():(n().then(e.resolve,e.reject),e.promise)).then(()=>e.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.ru.push(n),this.Pu()))}Pu(){var n=this;return me(function*(){if(0!==n.ru.length){try{yield n.ru[0](),n.ru.shift(),n.jo.reset()}catch(e){if(!Pd(e))throw e;De("AsyncQueue","Operation failed with retryable error: "+e)}n.ru.length>0&&n.jo.qo(()=>n.Pu())}})()}hu(n){const e=this.nu.then(()=>(this._u=!0,n().catch(i=>{throw this.ou=i,this._u=!1,Ji("INTERNAL UNHANDLED ERROR: ",function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+"\n"+s.stack),a}(i)),i}).then(i=>(this._u=!1,i))));return this.nu=e,e}enqueueAfterDelay(n,e,i){this.lu(),this.uu.indexOf(n)>-1&&(e=0);const r=BR.createAndSchedule(this,n,e,i,o=>this.Iu(o));return this.su.push(r),r}lu(){this.ou&&ot()}verifyOperationInProgress(){}Tu(){var n=this;return me(function*(){let e;do{e=n.nu,yield e}while(e!==n.nu)})()}Eu(n){for(const e of this.su)if(e.timerId===n)return!0;return!1}du(n){return this.Tu().then(()=>{this.su.sort((e,i)=>e.targetTimeMs-i.targetTimeMs);for(const e of this.su)if(e.skipDelay(),"all"!==n&&e.timerId===n)break;return this.Tu()})}Au(n){this.uu.push(n)}Iu(n){const e=this.su.indexOf(n);this.su.splice(e,1)}}class yi extends wb{constructor(n,e,i,r){super(n,e,i,r),this.type="firestore",this._queue=new AMe,this._persistenceKey=r?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||jq(this),this._firestoreClient.terminate()}}function RMe(t,n){const e="object"==typeof t?t:function aDe(t=C1){const n=nh.get(t);if(!n&&t===C1&&rj())return yj();if(!n)throw _l.create("no-app",{appName:t});return n}(),i="string"==typeof t?t:n||"(default)",r=function vj(t,n){const e=t.container.getProvider("heartbeat").getImmediate({optional:!0});return e&&e.triggerHeartbeat(),t.container.getProvider(n)}(e,"firestore").getImmediate({identifier:i});if(!r._initialized){const o=(t=>{const n=(t=>{var n,e;return null===(e=null===(n=w1())||void 0===n?void 0:n.emulatorHosts)||void 0===e?void 0:e[t]})(t);if(!n)return;const e=n.lastIndexOf(":");if(e<=0||e+1===n.length)throw new Error(`Invalid host ${n} with no separate hostname and port!`);const i=parseInt(n.substring(e+1),10);return"["===n[0]?[n.substring(1,e-1),i]:[n.substring(0,e),i]})("firestore");o&&function DMe(t,n,e,i={}){var r;const o=(t=xn(t,wb))._getSettings(),s=`${n}:${e}`;if("firestore.googleapis.com"!==o.host&&o.host!==s&&zs("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},o),{host:s,ssl:!1})),i.mockUserToken){let a,c;if("string"==typeof i.mockUserToken)a=i.mockUserToken,c=Kr.MOCK_USER;else{a=function ZEe(t,n){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const i=n||"demo-project",r=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${i}`,aud:i,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},t);return[x1(JSON.stringify({alg:"none",type:"JWT"})),x1(JSON.stringify(s)),""].join(".")}(i.mockUserToken,null===(r=t._app)||void 0===r?void 0:r.options.projectId);const l=i.mockUserToken.sub||i.mockUserToken.user_id;if(!l)throw new Ie(de.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");c=new Kr(l)}t._authCredentials=new CIe(new $$(a,c))}}(r,...o)}return r}function nr(t){return t._firestoreClient||jq(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function jq(t){var n,e,i;const r=t._freezeSettings(),o=(c=(null===(n=t._app)||void 0===n?void 0:n.options.appId)||"",new n2e(t._databaseId,c,t._persistenceKey,(d=r).host,d.ssl,d.experimentalForceLongPolling,d.experimentalAutoDetectLongPolling,Oq(d.experimentalLongPollingOptions),d.useFetchStreams));var c,d;t._firestoreClient=new gMe(t._authCredentials,t._appCheckCredentials,t._queue,o),null!==(e=r.localCache)&&void 0!==e&&e._offlineComponentProvider&&null!==(i=r.localCache)&&void 0!==i&&i._onlineComponentProvider&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:r.localCache.kind,_offline:r.localCache._offlineComponentProvider,_online:r.localCache._onlineComponentProvider})}class wh{constructor(n){this._byteString=n}static fromBase64String(n){try{return new wh(Fr.fromBase64String(n))}catch(e){throw new Ie(de.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(n){return new wh(Fr.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class kh{constructor(...n){for(let e=0;e90)throw new Ie(de.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(e)||e<-180||e>180)throw new Ie(de.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=n,this._long=e}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Nt(this._lat,n._lat)||Nt(this._long,n._long)}}const FMe=/^__.*__$/;class OMe{constructor(n,e,i){this.data=n,this.fieldMask=e,this.fieldTransforms=i}toMutation(n,e){return null!==this.fieldMask?new kl(n,this.data,this.fieldMask,e,this.fieldTransforms):new hp(n,this.data,e,this.fieldTransforms)}}function qq(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ot()}}class Lk{constructor(n,e,i,r,o,s){this.settings=n,this.databaseId=e,this.serializer=i,this.ignoreUndefinedProperties=r,void 0===o&&this.Ru(),this.fieldTransforms=o||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Vu(){return this.settings.Vu}mu(n){return new Lk(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}fu(n){var e;const i=null===(e=this.path)||void 0===e?void 0:e.child(n),r=this.mu({path:i,gu:!1});return r.pu(n),r}yu(n){var e;const i=null===(e=this.path)||void 0===e?void 0:e.child(n),r=this.mu({path:i,gu:!1});return r.Ru(),r}wu(n){return this.mu({path:void 0,gu:!0})}Su(n){return Uk(n,this.settings.methodName,this.settings.bu||!1,this.path,this.settings.Du)}contains(n){return void 0!==this.fieldMask.find(e=>n.isPrefixOf(e))||void 0!==this.fieldTransforms.find(e=>n.isPrefixOf(e.field))}Ru(){if(this.path)for(let n=0;nc.covers(u.field))}else c=null,l=s.fieldTransforms;return new OMe(new uo(a),c,l)}function Th(t,n){if(Yq(t=Oa(t)))return VP("Unsupported field value:",n,t),Xq(t,n);if(t instanceof Fp)return function(i,r){if(!qq(r.Vu))throw r.Su(`${i._methodName}() can only be used with update() and set()`);if(!r.path)throw r.Su(`${i._methodName}() is not currently supported inside arrays`);const o=i._toFieldTransform(r);o&&r.fieldTransforms.push(o)}(t,n),null;if(void 0===t&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),t instanceof Array){if(n.settings.gu&&4!==n.Vu)throw n.Su("Nested arrays are not supported");return function(i,r){const o=[];let s=0;for(const a of i){let c=Th(a,r.wu(s));null==c&&(c={nullValue:"NULL_VALUE"}),o.push(c),s++}return{arrayValue:{values:o}}}(t,n)}return function(i,r){if(null===(i=Oa(i)))return{nullValue:"NULL_VALUE"};if("number"==typeof i)return BG(r.serializer,i);if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){const o=Ai.fromDate(i);return{timestampValue:mp(r.serializer,o)}}if(i instanceof Ai){const o=new Ai(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:mp(r.serializer,o)}}if(i instanceof MP)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof wh)return{bytesValue:sW(r.serializer,i._byteString)};if(i instanceof tr){const o=r.databaseId,s=i.firestore._databaseId;if(!s.isEqual(o))throw r.Su(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:qM(i.firestore._databaseId||r.databaseId,i._key.path)}}throw r.Su(`Unsupported field value: ${Nk(i)}`)}(t,n)}function Xq(t,n){const e={};return aG(t)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Fd(t,(i,r)=>{const o=Th(r,n.fu(i));null!=o&&(e[i]=o)}),{mapValue:{fields:e}}}function Yq(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Ai||t instanceof MP||t instanceof wh||t instanceof tr||t instanceof Fp)}function VP(t,n,e){if(!Yq(e)||"object"!=typeof(r=e)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){const i=Nk(e);throw n.Su("an object"===i?t+" a custom object":t+" "+i)}var r}function Tb(t,n,e){if((n=Oa(n))instanceof kh)return n._internalPath;if("string"==typeof n)return Bk(t,n);throw Uk("Field path arguments must be of type string or ",t,!1,void 0,e)}const LMe=new RegExp("[~\\*/\\[\\]]");function Bk(t,n,e){if(n.search(LMe)>=0)throw Uk(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,e);try{return new kh(...n.split("."))._internalPath}catch{throw Uk(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,e)}}function Uk(t,n,e,i,r){const o=i&&!i.isEmpty(),s=void 0!==r;let a=`Function ${n}() called with invalid data`;e&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(o||s)&&(c+=" (found",o&&(c+=` in field ${i}`),s&&(c+=` in document ${r}`),c+=")"),new Ie(de.INVALID_ARGUMENT,a+t+c)}function Zq(t,n){return t.some(e=>e.isEqual(n))}class Eb{constructor(n,e,i,r,o){this._firestore=n,this._userDataWriter=e,this._key=i,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new tr(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new VMe(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const e=this._document.data.field(zk("DocumentSnapshot.get",n));if(null!==e)return this._userDataWriter.convertValue(e)}}}class VMe extends Eb{data(){return super.data()}}function zk(t,n){return"string"==typeof n?Bk(t,n):n instanceof kh?n._internalPath:n._delegate._internalPath}class BP{}class Sb extends BP{}class Db extends Sb{constructor(n,e,i){super(),this._field=n,this._op=e,this._value=i,this.type="where"}static _create(n,e,i){return new Db(n,e,i)}_apply(n){const e=this._parse(n);return iQ(n._query,e),new ho(n.firestore,n.converter,BM(n._query,e))}_parse(n){const e=Ch(n.firestore);return function(o,s,a,c,l,d,u){let h;if(l.isKeyField()){if("array-contains"===d||"array-contains-any"===d)throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. You can't perform '${d}' queries on documentId().`);if("in"===d||"not-in"===d){nQ(u,d);const f=[];for(const m of u)f.push(tQ(c,o,m));h={arrayValue:{values:f}}}else h=tQ(c,o,u)}else"in"!==d&&"not-in"!==d&&"array-contains-any"!==d||nQ(u,d),h=function Kq(t,n,e,i=!1){return Th(e,t.Cu(i?4:3,n))}(a,"where",u,"in"===d||"not-in"===d);return yn.create(l,d,h)}(n._query,0,e,n.firestore._databaseId,this._field,this._op,this._value)}}class Op extends BP{constructor(n,e){super(),this.type=n,this._queryConstraints=e}static _create(n,e){return new Op(n,e)}_parse(n){const e=this._queryConstraints.map(i=>i._parse(n)).filter(i=>i.getFilters().length>0);return 1===e.length?e[0]:Jn.create(e,this._getOperator())}_apply(n){const e=this._parse(n);return 0===e.getFilters().length?n:(function(r,o){let s=r;const a=o.getFlattenedFilters();for(const c of a)iQ(s,c),s=BM(s,c)}(n._query,e),new ho(n.firestore,n.converter,BM(n._query,e)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class UP extends Sb{constructor(n,e){super(),this._field=n,this._direction=e,this.type="orderBy"}static _create(n,e){return new UP(n,e)}_apply(n){const e=function(r,o,s){if(null!==r.startAt)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==r.endAt)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new eb(o,s)}(n._query,this._field,this._direction);return new ho(n.firestore,n.converter,function(r,o){const s=r.explicitOrderBy.concat([o]);return new xl(r.path,r.collectionGroup,s,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)}(n._query,e))}}class Hk extends Sb{constructor(n,e,i){super(),this.type=n,this._limit=e,this._limitType=i}static _create(n,e,i){return new Hk(n,e,i)}_apply(n){return new ho(n.firestore,n.converter,lk(n._query,this._limit,this._limitType))}}function tQ(t,n,e){if("string"==typeof(e=Oa(e))){if(""===e)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!VM(n)&&-1!==e.indexOf("/"))throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);const i=n.path.child(vn.fromString(e));if(!Xe.isDocumentKey(i))throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${i}' is not because it has an odd number of segments (${i.length}).`);return uh(t,new Xe(i))}if(e instanceof tr)return uh(t,e._key);throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Nk(e)}.`)}function nQ(t,n){if(!Array.isArray(t)||0===t.length)throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${n.toString()}' filters.`)}function iQ(t,n){const e=function(r,o){for(const s of r)for(const a of s.getFlattenedFilters())if(o.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(r){switch(r){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(n.op));if(null!==e)throw new Ie(de.INVALID_ARGUMENT,e===n.op?`Invalid query. You cannot use more than one '${n.op.toString()}' filter.`:`Invalid query. You cannot use '${n.op.toString()}' filters with '${e.toString()}' filters.`)}class oQ{convertValue(n,e="none"){switch(Ld(n)){case 0:return null;case 1:return n.booleanValue;case 2:return Hi(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,e);case 5:return n.stringValue;case 6:return this.convertBytes(yl(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,e);case 10:return this.convertObject(n.mapValue,e);default:throw ot()}}convertObject(n,e){return this.convertObjectMap(n.fields,e)}convertObjectMap(n,e="none"){const i={};return Fd(n,(r,o)=>{i[r]=this.convertValue(o,e)}),i}convertGeoPoint(n){return new MP(Hi(n.latitude),Hi(n.longitude))}convertArray(n,e){return(n.values||[]).map(i=>this.convertValue(i,e))}convertServerTimestamp(n,e){switch(e){case"previous":const i=ik(n);return null==i?null:this.convertValue(i,e);case"estimate":return this.convertTimestamp(X0(n));default:return null}}convertTimestamp(n){const e=Od(n);return new Ai(e.seconds,e.nanos)}convertDocumentKey(n,e){const i=vn.fromString(n);ht(_W(i));const r=new dh(i.get(1),i.get(3)),o=new Xe(i.popFirst(5));return r.isEqual(e)||Ji(`Document ${o} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${e.projectId}/${e.database}) instead.`),o}}class Eh{constructor(n,e){this.hasPendingWrites=n,this.fromCache=e}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class Np extends Eb{constructor(n,e,i,r,o,s){super(n,e,i,r,s),this._firestore=n,this._firestoreImpl=n,this.metadata=o}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const e=new Wk(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,e={}){if(this._document){const i=this._document.data.field(zk("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i,e.serverTimestamps)}}}class Wk extends Np{data(n={}){return super.data(n)}}class Lp{constructor(n,e,i,r){this._firestore=n,this._userDataWriter=e,this._snapshot=r,this.metadata=new Eh(r.hasPendingWrites,r.fromCache),this.query=i}get docs(){const n=[];return this.forEach(e=>n.push(e)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,e){this._snapshot.docs.forEach(i=>{n.call(e,new Wk(this._firestore,this._userDataWriter,i.key,i,new Eh(this._snapshot.mutatedKeys.has(i.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const e=!!n.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new Ie(de.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(r,o){if(r._snapshot.oldDocs.isEmpty()){let s=0;return r._snapshot.docChanges.map(a=>({type:"added",doc:new Wk(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Eh(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter),oldIndex:-1,newIndex:s++}))}{let s=r._snapshot.oldDocs;return r._snapshot.docChanges.filter(a=>o||3!==a.type).map(a=>{const c=new Wk(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Eh(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter);let l=-1,d=-1;return 0!==a.type&&(l=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),1!==a.type&&(s=s.add(a.doc),d=s.indexOf(a.doc.key)),{type:$Me(a.type),doc:c,oldIndex:l,newIndex:d}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function $Me(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ot()}}class Wd extends oQ{constructor(n){super(),this.firestore=n}convertBytes(n){return new wh(n)}convertReference(n){const e=this.convertDocumentKey(n,this.firestore._databaseId);return new tr(this.firestore,null,e)}}function WMe(t,n){const e=xn(t.firestore,yi),i=function IMe(t,n,...e){if(t=Oa(t),1===arguments.length&&(n=W$.newId()),IP("doc","path",n),t instanceof wb){const i=vn.fromString(n,...e);return Lq(i),new tr(t,null,new Xe(i))}{if(!(t instanceof tr||t instanceof Tc))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(vn.fromString(n,...e));return Lq(i),new tr(t.firestore,t instanceof Tc?t.converter:null,new Xe(i))}}(t),r=function Gk(t,n,e){let i;return i=t?e&&(e.merge||e.mergeFields)?t.toFirestore(n,e):t.toFirestore(n):n,i}(t.converter,n);return function Ib(t,n){return function(i,r){const o=new Pr;return i.asyncQueue.enqueueAndForget(me(function*(){return function XAe(t,n,e){return eP.apply(this,arguments)}(yield function SP(t){return Ok(t).then(n=>n.syncEngine)}(i),r,o)})),o.promise}(nr(t),n)}(e,[Vk(Ch(t.firestore),"addDoc",i._key,r,null!==t.converter,{}).toMutation(i._key,Ri.exists(!1))]).then(()=>i)}!function(n,e=!0){Jm="10.9.0",E1(new w0("firestore",(i,{instanceIdentifier:r,options:o})=>{const s=i.getProvider("app").getImmediate(),a=new yi(new TIe(i.getProvider("auth-internal")),new DIe(i.getProvider("app-check-internal")),function(l,d){if(!Object.prototype.hasOwnProperty.apply(l.options,["projectId"]))throw new Ie(de.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new dh(l.options.projectId,d)}(s,r),s);return o=Object.assign({useFetchStreams:e},o),a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),Gm(j$,"4.5.0",n),Gm(j$,"4.5.0","esm2017")}();let oRe=(()=>{class t{constructor(e){this.terminologyService=e,this.goals=[{name:"Bronze",score:100},{name:"Silver",score:200},{name:"Gold",score:300},{name:"Platinum",score:400},{name:"Diamond",score:500}],this.difficultyLevels=[{name:"Easy",rules:{maxHitPoints:5,hitpointsAwardedForGuessingfullTerm:1,freeHints:2,pointsPerGuessedLetter:1,goals:this.goals,difficultyBonus:0}},{name:"Medium",rules:{maxHitPoints:4,hitpointsAwardedForGuessingfullTerm:1,freeHints:1,pointsPerGuessedLetter:2,goals:this.goals,difficultyBonus:50}},{name:"Hard",rules:{maxHitPoints:3,hitpointsAwardedForGuessingfullTerm:1,freeHints:0,pointsPerGuessedLetter:3,goals:this.goals,difficultyBonus:100}}],this.rules=this.difficultyLevels[0].rules,this.fsn="",this.scg="",this.focusConcepts=[],this.attributePairs=[],this.usedHints=new Set,this.randomLimit=4e3,this.guessResult=new Ce,this.termResult=new Ce,this.game=new wi(this.initialize())}loadMenu(){this.game.next({...this.game.value,state:"menu"})}getDifficultyLevels(){return this.difficultyLevels}newRound(e){var i=this;return me(function*(){i.game.next({...i.game.value,state:"choosingTerm",score:e?0:i.game.value.score,hitPoints:e?i.rules.maxHitPoints:i.game.value.hitPoints,round:e?1:i.game.value.round+1});const r=Math.floor(Math.random()*i.randomLimit)+1,o=yield Co(i.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));i.randomLimit=o.expansion.total-1;const s=yield Co(i.terminologyService.lookupConcept(o.expansion.contains[0].code));let a=i.extractFSN(s);i.fsn=a||"";let c=i.extractScg(s);i.scg=c||"";let l=i.extractFocusConcepts(c||"");i.focusConcepts=l||[];let d=i.extractAttributePairs(c||"");i.attributePairs=d||[],a?i.initializeRound(a,e):i.initializeRound("No term found"),i.game.next({...i.game.value,state:"playing"}),i.usedHints.clear()})()}extractFSN(e){let i=this.extractTerm(e,"900000000000003001",this.terminologyService.getLang());return i||(i=this.extractTerm(e,"900000000000013009",this.terminologyService.getLang())),i||(i=this.extractTerm(e,"900000000000003001","en")),i}extractTerm(e,i,r){let o="";return e.parameter.forEach(s=>{if("designation"===s.name){let a=s.part.some(l=>"use"===l.name&&l.valueCoding.code===i),c=s.part.some(l=>"language"===l.name&&l.valueCode===r);a&&c&&(o=s.part.find(l=>"value"===l.name)?.valueString)}}),o}extractScg(e){let i;return e.parameter.forEach(r=>{"property"===r.name&&r.part.some(o=>"code"===o.name&&"normalForm"===o.valueString)&&(i=r.part.find(o=>"valueString"===o.name)?.valueString)}),i}extractFocusConcepts(e){const[i]=e.split(":").map(a=>a.trim()),o=i.match(/\d+\|.*?\|/g);return o?o.map(a=>this.transformSnomedConcept(a.trim())||{code:"",display:""}).filter(a=>""!==a.code):[]}extractAttributePairs(e){const i=e.split(":").slice(1).join(":").trim(),r=/(\d+\|.*?\|)\s*=\s*(\d+\|.*?\|)/g;let o;const s=[];for(;null!==(o=r.exec(i));){const a=this.transformSnomedConcept(o[1].trim()),c=this.transformSnomedConcept(o[2].trim());a&&c&&s.push({type:a,target:c})}return s}transformSnomedConcept(e){const r=e.match(/^(\d+)\|(.+?)\|$/);return r?{code:r[1],display:r[2]}:null}initialize(){return{term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"menu",score:0,round:0,rules:this.rules,difficultyLevel:"",startTimestamp:0,endTimestamp:0,difficultyBonus:0,livesBonus:0,timeBonus:0}}startGame(e){this.rules=this.difficultyLevels.find(i=>i.name.toLowerCase()===e.toLocaleLowerCase())?.rules,this.game.next({term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"playing",score:0,round:0,rules:this.rules,difficultyLevel:e,startTimestamp:Date.now(),endTimestamp:0,difficultyBonus:0,livesBonus:0,timeBonus:0}),this.newRound(!0)}initializeRound(e,i){const r=e.match(/\(([^)]+)\)$/),o=r?r[0]:"",s=o?e.lastIndexOf(o):e.length,a=e.split("").map((c,l)=>l>=s?c:/[a-zA-Z0-9\xe1-\xfa\xf1]/.test(c)?"_":c);this.game.next({...this.game.value,term:e,displayTerm:a,hitPoints:i?this.rules.maxHitPoints:this.game.value.hitPoints,hints:[],state:"playing",score:i?0:this.game.value.score});for(let c=0;c{cthis.goals[this.goals.length-1].score){i.state="won",i.endTimestamp=Date.now(),i.difficultyBonus=this.rules.difficultyBonus,i.livesBonus=10*i.hitPoints;const c=Math.round((i.endTimestamp-i.startTimestamp)/1e3);i.timeBonus=Math.max(0,180-c),i.score+=i.difficultyBonus+i.livesBonus+i.timeBonus}else i.hitPoints=i.hitPoints+this.rules.hitpointsAwardedForGuessingfullTerm,i.hitPoints>this.rules.maxHitPoints&&(i.hitPoints=this.rules.maxHitPoints),setTimeout(()=>{this.newRound()},1500)}else this.guessResult.emit({letter:e,result:!1}),i.hitPoints-=1,i.hitPoints<=0&&(i.hitPoints=0,i.state="gameOver",i.endTimestamp=Date.now());this.game.next(i)}guessTerm(e){return e.toLowerCase()===this.game.value.term.toLowerCase()?(this.termResult.emit(e),this.game.next({...this.game.value,displayTerm:this.game.value.term.split("")}),!0):(this.game.next({...this.game.value,hitPoints:this.game.value.hitPoints-1}),this.game.value.hitPoints<=0&&this.game.next({...this.game.value,hitPoints:0,state:"gameOver"}),!1)}revealHint(e){let i={...this.game.value},r="";if(0===this.focusConcepts.length&&0===this.attributePairs.length)return i.hints.push("No more hints available."),void this.game.next(i);let o=this.focusConcepts.length>0,s=this.attributePairs.length>0;if(o&&s&&(o=Math.random()<.5),o){let a=Math.floor(Math.random()*this.focusConcepts.length);r=`One of the parents of this concept is: ${this.focusConcepts[a].display}`,this.focusConcepts.splice(a,1)}else if(s){let a=Math.floor(Math.random()*this.attributePairs.length),c=this.attributePairs[a];r=`This concept has a ${c.type.display} of ${c.target.display}`,this.attributePairs.splice(a,1)}this.usedHints.add(r),i.hints.push(r),e||(i.hitPoints-=1),i.hintsAvailable=this.focusConcepts.length>0||this.attributePairs.length>0,this.game.next(i),i.hitPoints<=0&&(i.hitPoints=0,i.state="gameOver",this.game.next(i))}getGameState(){return this.game.asObservable()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(so))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sRe=(()=>{class t{constructor(){this.loadingProgress=new wi(0)}preloadImages(e){const i=e.map((r,o)=>this.preloadImage(r,e.length,o));return Promise.all(i).then(()=>{this.loadingProgress.next(100)})}preloadImage(e,i,r){return new Promise((o,s)=>{const a=new Image;a.src=e,a.onload=()=>{this.loadingProgress.next((r+1)/i*100),o()},a.onerror=s})}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lQ=(()=>{class t{constructor(){this.db=RMe(),this.scoreLimit=20}addScore(e){var i=this;return me(function*(){try{yield WMe(zq(i.db,"scoreboard"),e)}catch(r){console.error("Error adding document: ",r)}})()}getScores(){var e=this;return me(function*(){const r=function BMe(t,n,...e){let i=[];n instanceof BP&&i.push(n),i=i.concat(e),function(o){const s=o.filter(c=>c instanceof Op).length,a=o.filter(c=>c instanceof Db).length;if(s>1||s>0&&a>0)throw new Ie(de.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(i);for(const r of i)t=r._apply(t);return t}(zq(e.db,"scoreboard"),function UMe(t,n="asc"){const e=n,i=zk("orderBy",t);return UP._create(i,e)}("score","desc"),function zMe(t){return function Bq(t,n){if(n<=0)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${n}.`)}("limit",t),Hk._create("limit",t,"F")}(e.scoreLimit));return(yield function GMe(t){t=xn(t,ho);const n=xn(t.firestore,yi),e=nr(n),i=new Wd(n);return function Jq(t){if("L"===t.limitType&&0===t.explicitOrderBy.length)throw new Ie(de.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(t._query),Fq(e,t._query).then(r=>new Lp(n,i,t,r))}(r)).docs.map(s=>({id:s.id,...s.data()}))})()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aRe(t,n){if(1&t){const e=Se();_(0,"button",4),U("click",function(){const r=j(e).$implicit;return G(R(2).guessLetter(r))}),k(1),b()}if(2&t){const e=n.$implicit,i=R(2);lt("guessed-correct","correct"===i.guessedLetters[e])("guessed-wrong","wrong"===i.guessedLetters[e]),T("disabled",i.isLetterGuessed(e)),y(),Je(" ",e," ")}}function cRe(t,n){if(1&t&&(_(0,"div",2),q(1,aRe,2,6,"button",3),b()),2&t){const e=n.$implicit;y(),T("ngForOf",e)}}let lRe=(()=>{class t{constructor(){this.keyboardLayout=[["1","2","3","4","5","6","7","8","9","0"],["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]],this.guessedLetters={},this.letterGuessed=new Ce}addGuessedLetter(e,i){this.guessedLetters[e]=i?"correct":"wrong"}guessLetter(e){this.letterGuessed.emit(e)}isLetterGuessed(e){return e in this.guessedLetters}markLetterAsGuessed(e,i){this.guessedLetters[e]=i}reset(){this.guessedLetters={}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-keyboard"]],outputs:{letterGuessed:"letterGuessed"},decls:2,vars:1,consts:[[1,"keyboard-container"],["class","keyboard-row",4,"ngFor","ngForOf"],[1,"keyboard-row"],["mat-button","",3,"guessed-correct","guessed-wrong","disabled","click",4,"ngFor","ngForOf"],["mat-button","",3,"click","disabled"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,cRe,2,1,"div",1),b()),2&i&&(y(),T("ngForOf",r.keyboardLayout))},dependencies:[ro,Eo],styles:[".keyboard-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.keyboard-row[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:5px;flex-wrap:wrap}button[_ngcontent-%COMP%]{margin:2px;padding:8px 6px;border-radius:8px;border:1px solid #000;transition:background-color .3s ease;min-width:40px;flex:1}button.guessed-correct[_ngcontent-%COMP%]{background-color:green;color:#fff}button.guessed-wrong[_ngcontent-%COMP%]{background-color:red;color:#fff}@media (max-width: 768px){.keyboard-row[_ngcontent-%COMP%]{margin:1px 0}.keyboard-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:1px;padding:8px;min-width:0;width:9%;flex:1 1 auto;font-size:14px}}"]})}return t})(),dRe=(()=>{class t{constructor(){this.tooltipDismissedKey="iosSafariTooltipDismissed"}isIosSafari(){return/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/Safari/i.test(window.navigator.userAgent)&&!/CriOS/i.test(window.navigator.userAgent)&&!/FxiOS/i.test(window.navigator.userAgent)}tooltipDismissed(){return"true"===localStorage.getItem(this.tooltipDismissedKey)}dismissTooltip(){localStorage.setItem(this.tooltipDismissedKey,"true")}isRunningStandalone(){return"standalone"in window.navigator&&window.navigator.standalone}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uRe(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"div",2),k(2," Install this webapp on your iPhone: tap "),_(3,"mat-icon"),k(4,"ios_share"),b(),k(5," and then 'Add to Home Screen' "),b(),_(6,"button",3),U("click",function(){return j(e),G(R().dismiss())}),_(7,"mat-icon"),k(8,"close"),b()()()}}let hRe=(()=>{class t{constructor(e){this.platformDetectionService=e,this.isIosSafari=!1,this.tooltipDismissed=!1}ngOnInit(){this.isIosSafari=this.platformDetectionService.isIosSafari(),this.tooltipDismissed=this.platformDetectionService.tooltipDismissed()||this.platformDetectionService.isRunningStandalone()}dismiss(){this.tooltipDismissed=!0,this.platformDetectionService.dismissTooltip()}static#e=this.\u0275fac=function(i){return new(i||t)(w(dRe))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-add-to-home"]],decls:1,vars:1,consts:[["class","custom-tooltip",4,"ngIf"],[1,"custom-tooltip"],[1,"tooltip-text"],[1,"tooltip-dismiss-button",3,"click"]],template:function(i,r){1&i&&q(0,uRe,9,0,"div",0),2&i&&T("ngIf",r.isIosSafari&&!r.tooltipDismissed)},dependencies:[$r,So],styles:['.custom-tooltip[_ngcontent-%COMP%]{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#fff;border-radius:8px;padding:16px;box-shadow:0 4px 8px #0003;display:flex;flex-direction:row;align-items:center;max-width:320px;box-sizing:border-box;z-index:1000}.custom-tooltip[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-20px;left:50%;transform:translate(-50%);width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:20px solid white}.tooltip-icon[_ngcontent-%COMP%]{background:#007bff;color:#fff;border-radius:50%;padding:10px;margin-right:16px}.tooltip-text[_ngcontent-%COMP%]{color:#333;font-size:16px}.tooltip-dismiss-button[_ngcontent-%COMP%]{margin-left:auto;background:transparent;border:none;cursor:pointer}.tooltip-dismiss-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#666;vertical-align:bottom}']})}return t})(),dQ=(()=>{class t{transform(e,...i){if(!e)return e;const r=Math.floor(e/1e3%60),o=Math.floor(e/6e4%60),s=Math.floor(e/36e5%24),a=0===s&&o<10?o.toString():o<10?"0"+o:o;let d="";return s>0&&(d+=`${s<10?"0"+s:s}h `),(o>0||s>0)&&(d+=`${a}m `),d+=`${0===s&&0===o&&r<10?r.toString():r<10?"0"+r:r}s`,d}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"elapsedTime",type:t,pure:!0})}return t})();const fRe=["keyboard"],uQ=()=>[],mRe=(t,n)=>[t,n],jP=t=>[t],hQ=t=>[t,"shadow-local"],pRe=t=>[t,"trophy-large","shadow-local"];function gRe(t,n){if(1&t&&(_(0,"div",8)(1,"div",9)(2,"div",10),k(3," Loading... "),b(),xe(4,"mat-progress-bar",11),b()()),2&t){const e=R(2);y(4),T("value",e.loadingAssetsProgress)}}function _Re(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite"),b()())}function bRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite_border"),b()())}function vRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e)}}function yRe(t,n){if(1&t&&(_(0,"span",33),q(1,vRe,2,1,"span",18),b()),2&t){const e=n.$implicit;y(),T("ngForOf",e.split(""))}}function xRe(t,n){if(1&t&&(_(0,"div",31),q(1,yRe,2,1,"span",32),b()),2&t){const e=R(2).ngIf;y(),T("ngForOf",e.displayTerm.join("").split(" "))}}function wRe(t,n){1&t&&(_(0,"div",34)(1,"div",35),k(2," Choosing a random SNOMED CT concept using the FHIR API "),b(),xe(3,"mat-progress-bar",36),b())}function kRe(t,n){if(1&t){const e=Se();_(0,"div",37),U("click",function(){return j(e),G(R(3).revealHint())}),k(1," Reveal Hint "),b()}}function CRe(t,n){if(1&t){const e=Se();_(0,"div",37),U("click",function(){return j(e),G(R(3).loadMenu())}),k(1," Abandon game "),b()}}function TRe(t,n){1&t&&xe(0,"li",41),2&t&&T("innerHTML",n.$implicit,yu)}function ERe(t,n){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),k(3,"Hints:"),b(),_(4,"ul"),q(5,TRe,1,1,"li",40),b()()()),2&t){const e=R(2).ngIf;y(5),T("ngForOf",e.hints)}}function SRe(t,n){if(1&t&&(_(0,"mat-icon",47),k(1,"grade"),b()),2&t){const e=R().$implicit;Ki("left",R(3).calculateGoalPosition(e.score-5),"%"),T("ngClass",Ea(3,jP,e.name.toLowerCase()))}}function DRe(t,n){if(1&t&&(_(0,"mat-icon",48),k(1,"grade"),b()),2&t){const e=R().$implicit;Ki("left",R(3).calculateGoalPosition(e.score-1),"%"),T("ngClass",Ea(3,jP,e.name.toLowerCase()))}}function IRe(t,n){if(1&t&&(_(0,"div",49),k(1),b()),2&t){const e=R().$implicit;Ki("left",R(3).calculateGoalPosition(e.score),"%"),T("ngClass",Ea(4,jP,e.name.toLowerCase())),y(),Je("",e.name," trophy!")}}function ARe(t,n){if(1&t&&(zt(0),xe(1,"div",42),q(2,SRe,2,5,"mat-icon",43),_(3,"mat-icon",44),k(4,"emoji_events"),b(),q(5,DRe,2,5,"mat-icon",45)(6,IRe,2,6,"div",46),Ht()),2&t){const e=n.$implicit,i=R(2).ngIf,r=R();y(),Ys(e.name.toLowerCase()),Ki("left",r.calculateGoalPosition(e.score),"%"),y(),T("ngIf",i.score>=e.score),y(),Ki("left",r.calculateGoalPosition(e.score-3),"%"),T("ngClass",JS(10,mRe,e.name.toLowerCase(),i.score>=e.score?"trophy-large":"")),y(2),T("ngIf",i.score>=e.score),y(),T("ngIf",i.score>=e.score)}}function MRe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",12)(2,"div",13),xe(3,"img",14),_(4,"div",15),k(5),b()()(),_(6,"div",16)(7,"span",17),k(8),b(),q(9,_Re,3,0,"span",18)(10,bRe,3,0,"span",18),_(11,"span",17),k(12),wo(13,"elapsedTime"),b()(),q(14,xRe,2,1,"div",19)(15,wRe,4,0,"div",20),_(16,"p",21),k(17,"Click the keys to guess the letters of the term!"),b(),_(18,"div")(19,"app-keyboard",22,0),U("letterGuessed",function(r){return j(e),G(R(2).guessLetter(r))}),b()(),_(21,"div",23),q(22,kRe,2,0,"div",24)(23,CRe,2,0,"div",25),b(),q(24,ERe,6,1,"div",26),_(25,"div",27),k(26," * Hints are generated from the definition of the SNOMED CT concept, retrieved from the FHIR API as an SCG grammar expression "),b(),_(27,"div",28)(28,"h3"),k(29,"Score Progression"),b(),_(30,"div",29),xe(31,"mat-progress-bar",30),q(32,ARe,7,13,"ng-container",18),b()()()}if(2&t){const e=R().ngIf,i=R();y(3),T("@popIn",void 0),y(2),Iu(" ",e.difficultyLevel," - ",i.getLanguageName(i.selectedLanguage)," "),y(3),Iu(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),y(),T("ngForOf",hs(18,uQ).constructor(e.hitPoints)),y(),T("ngForOf",hs(19,uQ).constructor(e.rules.maxHitPoints-e.hitPoints)),y(2),Je(" \xa0\xa0\xa0\xa0 Time: ",oc(13,16,1e3*i.elapsedTime),""),y(2),T("ngIf","playing"==e.state),y(),T("ngIf","choosingTerm"===e.state),y(3),T("@shake",i.shakeState),y(4),T("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),y(),T("ngIf","playing"==e.state),y(),T("ngIf",e.hints.length>0&&"playing"==e.state),y(7),T("value",i.calculateProgress(e.score)),y(),T("ngForOf",i.goals)}}function RRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",52),_(3,"p",53)(4,"b"),k(5,"Welcome to SnoGuess!"),b()(),_(6,"p",53),k(7," A fun way to learn about SNOMED CT concepts and their definitions. "),b(),_(8,"div",54),U("click",function(){return j(e),G(R(2).chooseDifficultyLevel())}),k(9," New game "),b(),_(10,"div",54),U("click",function(){return j(e),G(R(2).showInstructionsPanel())}),k(11," Instructions "),b(),_(12,"div",55),U("click",function(){return j(e),G(R(2).openScoreboard())}),k(13," High Scores "),b(),_(14,"p",56),k(15," Playing with terms in the IPS Reference Set in "),_(16,"b"),k(17),b(),k(18,", change language: "),b(),_(19,"div",57)(20,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("da"))}),k(21,"DA"),b(),_(22,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("de"))}),k(23,"DE"),b(),_(24,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("en"))}),k(25,"EN"),b(),_(26,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("es"))}),k(27,"ES"),b(),_(28,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("et"))}),k(29,"ET"),b(),_(30,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("fi"))}),k(31,"FI"),b(),_(32,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("fr"))}),k(33,"FR"),b(),_(34,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("nl"))}),k(35,"NL"),b(),_(36,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("no"))}),k(37,"NO"),b(),_(38,"button",58),U("click",function(){return j(e),G(R(2).setLanguage("sv"))}),k(39,"SV"),b()()()}if(2&t){const e=R(2);y(2),T("@popIn",void 0),y(6),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(5),Ke(e.getLanguageName(e.selectedLanguage))}}function PRe(t,n){if(1&t){const e=Se();_(0,"div",62)(1,"div",63),U("click",function(){const r=j(e).$implicit;return G(R(3).startGame(r.name))}),k(2),b(),_(3,"p",64),k(4),_(5,"mat-icon",65),k(6,"favorite"),b(),k(7),_(8,"mat-icon",66),k(9,"contact_support"),b(),k(10),b()()}if(2&t){const e=n.$implicit;y(),T("@scrollUp",void 0),y(),Je(" ",e.name," "),y(),T("@fadeInDelayed",void 0),y(),Je(" Life: ",e.rules.maxHitPoints," "),y(3),Je(", Free hints: ",e.rules.freeHints," "),y(3),Je(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function FRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",59),_(3,"p",53)(4,"b"),k(5,"Choose the game difficulty"),b()(),q(6,PRe,11,6,"div",60),_(7,"div",61),U("click",function(){return j(e),G(R(2).backToMenu())}),k(8," Back "),b()()}if(2&t){const e=R(2);y(2),T("@popIn",void 0),y(4),T("ngForOf",e.difficultyLevels),y(),T("@scrollUp",void 0)}}function ORe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",67),_(3,"ul",68)(4,"li",69)(5,"mat-icon"),k(6,"check"),b(),k(7,"Click the keys on the screen to guess the letters of the term "),_(8,"mat-icon",70),k(9,"keyboard"),b()(),_(10,"li",69)(11,"mat-icon"),k(12,"check"),b(),k(13,"You have three to five lives, depending on your difficulty level "),_(14,"span",71)(15,"mat-icon"),k(16,"favorite"),b(),_(17,"mat-icon"),k(18,"favorite"),b(),_(19,"mat-icon"),k(20,"favorite"),b()()(),_(21,"li",69)(22,"mat-icon"),k(23,"check"),b(),k(24,"You will loose one life with each wrong guess "),_(25,"mat-icon",71),k(26,"favorite_border"),b()(),_(27,"li",69)(28,"mat-icon"),k(29,"check"),b(),k(30,"You earn points for each correct guess "),_(31,"mat-icon",70),k(32,"plus_one"),b()(),_(33,"li",69)(34,"mat-icon"),k(35,"check"),b(),k(36,"In Easy mode you get 2 hints for free, and in Medium mode you get one \u{1f4a1} "),b(),_(37,"li",69)(38,"mat-icon"),k(39,"check"),b(),k(40,"You can reveal more hints, but each hint it will cost one life "),_(41,"mat-icon",71),k(42,"favorite_border"),b()(),_(43,"li",69)(44,"mat-icon"),k(45,"check"),b(),k(46,"If you guess the whole term you can recover one life"),_(47,"mat-icon",71),k(48,"favorite"),b()(),_(49,"li",69)(50,"mat-icon"),k(51,"check"),b(),k(52,"Keep guessing terms to increase your score and earn trophies "),_(53,"mat-icon",72),k(54,"emoji_events"),b()()(),_(55,"div",73),U("click",function(){return j(e),G(R(2).hideInstructionsPanel())}),k(56," Back "),b()()}2&t&&(y(2),T("@popIn",void 0),y(53),T("@scrollUp",void 0))}function NRe(t,n){1&t&&(_(0,"div",74),xe(1,"img",75),b()),2&t&&(y(),T("@popIn",void 0))}function LRe(t,n){if(1&t&&(_(0,"div"),k(1),b()),2&t){const e=R(2).ngIf,i=R();y(),Je(" Trophy: ",i.getMaxTrophyObtained(e.score)," ")}}function VRe(t,n){if(1&t&&(_(0,"div")(1,"mat-icon",83),k(2,"grade"),b(),k(3," \xa0\xa0 "),_(4,"mat-icon",83),k(5,"emoji_events"),b(),k(6," \xa0 "),_(7,"mat-icon",83),k(8,"grade"),b()()),2&t){const e=R(2).ngIf,i=R();y(),T("ngClass",Ea(3,hQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),y(3),T("ngClass",Ea(5,pRe,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),y(3),T("ngClass",Ea(7,hQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function BRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",76),_(3,"div",77)(4,"div"),k(5," The term was: "),b(),_(6,"div",78),k(7),b(),_(8,"div",79),k(9),b(),_(10,"div",80),k(11),wo(12,"elapsedTime"),b(),q(13,LRe,2,1,"div",5),b(),q(14,VRe,9,9,"div",5),_(15,"div",81),U("click",function(){j(e);const r=R(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),k(16," New game "),b(),_(17,"div",81),U("click",function(){return j(e),G(R(2).openScoreboard())}),k(18," High Scores "),b(),_(19,"div",82),U("click",function(){return j(e),G(R(2).loadMenu())}),k(20," Main menu "),b()()}if(2&t){const e=R().ngIf,i=R();y(2),T("@popIn",void 0),y(5),Je(" ",e.term,""),y(2),Iu("",e.round," ",1==e.round?"round":"rounds",""),y(2),c_(" Final Score: ",e.score," points - Difficulty: ",e.difficultyLevel," - Time: ",oc(12,12,e.endTimestamp-e.startTimestamp)," "),y(2),T("ngIf",i.getMaxTrophyObtained(e.score)),y(),T("ngIf",i.getMaxTrophyObtained(e.score)),y(),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0)}}function URe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=R(2).ngIf;y(),Je("\u2192 Bonus: ",e.livesBonus,"")}}function zRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=R(2).ngIf;y(),Je("\u2192 Bonus: ",e.difficultyBonus,"")}}function HRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=R(2).ngIf;y(),Je("\u2192 Bonus: ",e.timeBonus,"")}}function jRe(t,n){if(1&t){const e=Se();_(0,"div",90)(1,"p",91),k(2,"This is a High Score! Save a message to the public leaderboard!"),b(),_(3,"div",92)(4,"input",93),Dr("ngModelChange",function(r){j(e);const o=R(3);return jr(o.messageForLeaderboard,r)||(o.messageForLeaderboard=r),G(r)}),b(),_(5,"div",94),U("click",function(){j(e);const r=R(2).ngIf;return G(R().saveScore(r))}),k(6," Save "),b()(),_(7,"p",95),k(8,"No personal information is recorded"),b()()}if(2&t){const e=R(3);y(4),Sr("ngModel",e.messageForLeaderboard)}}function $Re(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",84),_(3,"div",85)(4,"mat-icon",86),k(5,"grade"),b(),_(6,"mat-icon",86),k(7,"emoji_events"),b(),_(8,"mat-icon",86),k(9,"grade"),b()(),_(10,"div",87),k(11),q(12,URe,2,1,"span",5),b(),_(13,"div",87),k(14),q(15,zRe,2,1,"span",5),b(),_(16,"div",87),k(17),wo(18,"elapsedTime"),q(19,HRe,2,1,"span",5),b(),_(20,"div",88),k(21),b(),q(22,jRe,9,1,"div",89),_(23,"div",81),U("click",function(){j(e);const r=R(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),k(24," New game "),b(),_(25,"div",81),U("click",function(){return j(e),G(R(2).openScoreboard())}),k(26," High Scores "),b(),_(27,"div",82),U("click",function(){return j(e),G(R(2).loadMenu())}),k(28," Main menu "),b()()}if(2&t){const e=R().ngIf,i=R();y(2),T("@popIn",void 0),y(9),Je("Lives left: ",e.hitPoints," "),y(),T("ngIf",e.livesBonus>0),y(2),Je("Difficulty: ",e.difficultyLevel," "),y(),T("ngIf",e.difficultyBonus>0),y(2),Je("Time: ",oc(18,12,e.endTimestamp-e.startTimestamp)," "),y(2),T("ngIf",e.timeBonus>0),y(2),Je("Final score: ",e.score,""),y(),T("ngIf",i.highScore),y(),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0)}}function GRe(t,n){if(1&t&&(_(0,"div",3),q(1,gRe,5,1,"div",4)(2,MRe,33,20,"div",5)(3,RRe,40,5,"div",6)(4,FRe,9,3,"div",6)(5,ORe,57,2,"div",6)(6,NRe,2,1,"div",7)(7,BRe,21,14,"div",6)(8,$Re,29,14,"div",6),b()),2&t){const e=n.ngIf,i=R();y(),T("ngIf",i.loadingAssets),y(),T("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!i.loadingAssets),y(),T("ngIf","menu"===e.state&&!i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),y(),T("ngIf","menu"===e.state&&i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),y(),T("ngIf",i.showInstructions),y(),T("ngIf",i.termGuessed),y(),T("ngIf","gameOver"===e.state),y(),T("ngIf","won"==e.state)}}let WRe=(()=>{class t{constructor(e,i,r,o,s){this.snoguessMainService=e,this.preloadService=i,this.terminologyService=r,this.firebaseService=o,this.router=s,this.shakeState="normal",this.termGuessed="",this.goals=[],this.loadingAssetsProgress=0,this.loadingAssets=!0,this.showInstructions=!1,this.chooseDifficulty=!1,this.currentYear=new Date,this.difficultyLevels=[],this.elapsedTime=0,this.gameInProgress=!1,this.messageForLeaderboard="",this.highScore=!1}ngOnInit(){this.game=this.snoguessMainService.getGameState(),this.difficultyLevels=this.snoguessMainService.getDifficultyLevels(),this.game.subscribe(i=>{"playing"===i.state&&(this.goals=i.rules.goals),("gameOver"===i.state||"won"===i.state)&&(this.stopTimer(),"won"===i.state&&this.firebaseService.getScores().then(r=>{i.score>r[r.length-1].score&&(this.highScore=!0)}))}),this.snoguessMainService.guessResult.subscribe(i=>{!1===i.result?(this.keyboard?.addGuessedLetter(i.letter,!1),this.shakeState="shake",setTimeout(()=>this.shakeState="normal",200)):this.keyboard?.addGuessedLetter(i.letter,!0)}),this.snoguessMainService.termResult.subscribe(i=>{i&&(this.keyboard?.reset(),this.termGuessed=i,setTimeout(()=>{this.termGuessed=""},2e3))}),this.preloadService.preloadImages(["assets/img/SI_CT_w_tagline.png","assets/img/snoguess-logo.png","assets/img/congratulations.png","assets/img/correct.png","assets/img/game-over.png","assets/img/instructions.png","assets/img/difficulty.png","assets/img/scoreboard.png"]).then(()=>{setTimeout(()=>{this.loadingAssets=!1,this.loadMenu()},500)}),this.preloadService.loadingProgress.subscribe(i=>{this.loadingAssetsProgress=i}),this.terminologyService.fhirUrlParam$.subscribe(i=>{i&&this.terminologyService.getCodeSystem(i).subscribe(r=>{this.selectedEdition=r?.entry[0]?.resource?.title})}),this.terminologyService.lang$.subscribe(i=>{this.selectedLanguage=i})}loadMenu(){this.snoguessMainService.loadMenu()}backToMenu(){this.chooseDifficulty=!1}showInstructionsPanel(){this.showInstructions=!0}hideInstructionsPanel(){this.showInstructions=!1}chooseDifficultyLevel(){this.chooseDifficulty=!0}startGame(e){this.chooseDifficulty=!1,this.keyboard&&this.keyboard.reset(),this.stopTimer(),this.snoguessMainService.startGame(e),this.startTimer(),this.highScore=!1}guessLetter(e){var i=this;return me(function*(){"playing"===(yield function BEe(t,n){const e="object"==typeof n;return new Promise((i,r)=>{const o=new tf({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new sm)}});t.subscribe(o)})}(i.game))?.state&&i.snoguessMainService.guessLetter(e)})()}revealHint(){this.snoguessMainService.revealHint()}calculateProgress(e){return Math.min(e/this.goals[this.goals.length-1].score*100,100)}calculateGoalPosition(e){return e/this.goals[this.goals.length-1].score*100}findCurrentGoal(e){if(!e||e{e>=r.score&&(i=r.name)}),i}startTimer(){this.elapsedTime=0,this.gameInProgress=!0;const e=Y_(0,1e3).pipe(mt(i=>this.elapsedTime=i),Q9(()=>this.gameInProgress));this.gameTimerSubscription=e.subscribe()}stopTimer(){this.gameInProgress=!1,this.gameTimerSubscription&&this.gameTimerSubscription.unsubscribe()}openScoreboard(){this.router.navigate(["/snoguess/scoreboard"])}saveScore(e){let i={score:e.score,numberOfRounds:e.round,difficulty:e.difficultyLevel,elapsed:e.endTimestamp-e.startTimestamp,date:Ai.now(),message:this.messageForLeaderboard};this.firebaseService.addScore(i).then(()=>{this.messageForLeaderboard="",this.openScoreboard()}).catch(r=>{this.messageForLeaderboard="",console.error("Error saving score: ",r),this.loadMenu()})}getLanguageName(e){return{en:"English",es:"Spanish",fr:"French",de:"German",da:"Danish",nl:"Dutch",et:"Estonian",fi:"Finnish",no:"Norwegian",sv:"Swedish"}[e]||e}setLanguage(e){this.terminologyService.setLang(e),this.terminologyService.setFhirUrlParam({en:{lang:"en",fhirUrl:"http://snomed.info/sct/900000000000207008/version/20240401"},es:{lang:"es",fhirUrl:"http://snomed.info/sct/449081005/version/20240331"},fr:{lang:"fr",fhirUrl:"http://snomed.info/sct/11000241103/version/20230331"},de:{lang:"de",fhirUrl:"http://snomed.info/sct/11000274103/version/20231115"},da:{lang:"da",fhirUrl:"http://snomed.info/sct/554471000005108/version/20240331"},nl:{lang:"nl",fhirUrl:"http://snomed.info/sct/11000146104/version/20240331"},et:{lang:"et",fhirUrl:"http://snomed.info/sct/11000181102/version/20231130"},fi:{lang:"fi",fhirUrl:"http://snomed.info/sct/11000229106/version/20231215"},no:{lang:"no",fhirUrl:"http://snomed.info/sct/51000202101/version/20231015"},sv:{lang:"sv",fhirUrl:"http://snomed.info/sct/45991000052106/version/20231130"}}[e].fhirUrl)}static#e=this.\u0275fac=function(i){return new(i||t)(w(oRe),w(sRe),w(so),w(lQ),w(ms))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(i,r){if(1&i&&vt(fRe,5),2&i){let o;Re(o=Pe())&&(r.keyboard=o.first)}},decls:6,vars:7,consts:[["keyboard",""],["class","snoguess-game",4,"ngIf"],[1,"text-center","mt-8","mb-4"],[1,"snoguess-game"],["class","assets-loading-container",4,"ngIf"],[4,"ngIf"],["class","flex flex-col items-center gap-4",4,"ngIf"],["class","overlay overlay-transparent",4,"ngIf"],[1,"assets-loading-container"],[1,"mt-48","mb-48"],[1,"progress-bar-message","text-center"],["mode","determinate",1,"game-progress-bar",3,"value"],[1,"flex","justify-center","mt-8","mb-8"],[1,"relative","w-1/4"],["src","assets/img/snoguess-logo.png","alt","Game Logo"],[1,"diff-label","absolute","-bottom-3","right-5","italic","text-gray-500"],[1,"hit-points"],[1,"score"],[4,"ngFor","ngForOf"],["class","term-display flex flex-row flex-wrap justify-center gap-8",4,"ngIf"],["class","loading-container",4,"ngIf"],[1,"guess-message"],[3,"letterGuessed"],[1,"game-buttons","mt-4"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","hints-container",4,"ngIf"],[1,"note"],[1,"score-progression-panel"],[1,"progress-bar-container"],["mode","determinate",3,"value"],[1,"term-display","flex","flex-row","flex-wrap","justify-center","gap-8"],["class","whitespace-nowrap",4,"ngFor","ngForOf"],[1,"whitespace-nowrap"],[1,"loading-container"],[1,"progress-bar-message"],["mode","indeterminate"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pt-1","pb-1","pl-6","pr-6","w-fit","text-center","cursor-pointer","font-bold","text-white",3,"click"],[1,"hints-container"],[1,"hints-callout","text-center"],["class","hint-item",3,"innerHTML",4,"ngFor","ngForOf"],[1,"hint-item",3,"innerHTML"],[1,"goal-indicator"],["class","star-icon left-star",3,"ngClass","left",4,"ngIf"],[1,"trophy-icon",3,"ngClass"],["class","star-icon right-star",3,"ngClass","left",4,"ngIf"],["class","goal-name",3,"left","ngClass",4,"ngIf"],[1,"star-icon","left-star",3,"ngClass"],[1,"star-icon","right-star",3,"ngClass"],[1,"goal-name",3,"ngClass"],[1,"flex","flex-col","items-center","gap-4"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/snoguess-logo.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,"text-center","font-light","text-lg"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","text-3xl",3,"click"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-12","text-3xl",3,"click"],[1,"text-center","font-light","italic","text-lg"],[1,"text-center","font-light","italic","text-sm"],["mat-button","",3,"click"],["src","assets/img/difficulty.png","alt","Game Logo",1,"w-1/4","mt-8"],["class","level-container w-full flex flex-col justify-center items-center",4,"ngFor","ngForOf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","mb-8","text-3xl",3,"click"],[1,"level-container","w-full","flex","flex-col","justify-center","items-center"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","text-3xl",3,"click"],[1,"level-details","text-center","mt-3","flex","flex-row","align-middle"],[1,"text-red-500","text-sm"],[1,"text-yellow-500","text-sm"],["src","assets/img/instructions.png","alt","Game Logo",1,"w-1/4","mt-8","mb-12"],[1,"text-left","instructions-text"],[1,"flex","flex-row","align-middle","gap-2"],[1,"text-blue-900"],[1,"text-red-500"],[1,"text-yellow-500"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"overlay","overlay-transparent"],["src","assets/img/correct.png","alt","Correct",1,"w-1/5","mt-8"],["src","assets/img/game-over.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-xl","text-pretty","text-center"],[1,"font-bold"],[1,"mt-12"],[1,"mt-4"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","text-2xl",3,"click"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],[3,"ngClass"],["src","assets/img/congratulations.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,""],[1,"large-icon","diamond","shadow-local"],[1,"text-lg"],[1,"reveal","won"],["class","flex flex-col items-center gap-4 w-full",4,"ngIf"],[1,"flex","flex-col","items-center","gap-4","w-full"],[1,"font-bold","text-lg","text-blue-900"],[1,"flex","flex-row","align-middle","justify-center","w-full"],["type","text","placeholder","Your message here",1,"w-1/3",3,"ngModelChange","ngModel"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pl-4","pr-4","pt-1","pb-1","w-fit","text-center","cursor-pointer","font-bold","text-white","ml-4",3,"click"],[1,"text-sm","text-gray-400"]],template:function(i,r){1&i&&(q(0,GRe,9,8,"div",1),wo(1,"async"),_(2,"div",2),k(3),wo(4,"date"),b(),xe(5,"app-add-to-home")),2&i&&(T("ngIf",oc(1,2,r.game)),y(3),Je(" Copyright \xa9 ",Au(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[Da,ro,$r,Eo,So,J7,ra,Yo,_s,lRe,hRe,FD,Ou,dQ],styles:[".snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a;min-height:85vh!important}.term-display[_ngcontent-%COMP%]{font-size:24px;letter-spacing:4px;word-break:break-all;margin-bottom:20px;text-align:center;font-family:monospace}.term-display[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0}.hit-points[_ngcontent-%COMP%]{font-weight:700;color:#d9534f;text-align:center;margin-bottom:2rem}mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}button[_ngcontent-%COMP%]{margin-right:8px}.guess-field[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1000}.overlay-dark[_ngcontent-%COMP%]{background-color:#00000080}.overlay-transparent[_ngcontent-%COMP%]{background-color:#0000}.message[_ngcontent-%COMP%]{font-size:4rem;text-align:center;margin-bottom:20px;font-weight:bolder}.reveal[_ngcontent-%COMP%]{font-size:2rem;text-align:center;margin-bottom:20px;font-weight:bolder}.won[_ngcontent-%COMP%]{color:#4caf50;text-shadow:black 2px 2px 2px}.lost[_ngcontent-%COMP%]{color:#f44336;text-shadow:rgb(0,0,0) 2px 2px 2px}.overlay[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1.5rem;padding:10px 20px}.loading-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:1rem}.progress-bar-message[_ngcontent-%COMP%]{color:#000;font-size:larger;margin-bottom:10px;font-style:italic;font-weight:lighter}.score[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700}.score-progression-panel[_ngcontent-%COMP%]{margin-top:2rem}.progress-bar-container[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:5rem;position:relative;background-color:#e0e0e0;border-radius:5px}.goal-indicator[_ngcontent-%COMP%]{position:absolute;bottom:0;width:2px;height:10px;background-color:#000}.goal-indicator.bronze[_ngcontent-%COMP%]{background-color:#cd7f32}.goal-indicator.silver[_ngcontent-%COMP%]{background-color:silver}.goal-indicator.gold[_ngcontent-%COMP%]{background-color:gold}.goal-indicator.platinum[_ngcontent-%COMP%]{background-color:#e5e4e2}.goal-indicator.diamond[_ngcontent-%COMP%]{background-color:#3b49c4}.trophy-icon[_ngcontent-%COMP%]{position:absolute;bottom:-35px;font-size:24px;width:24px;transition:transform .3s ease}.trophy-large[_ngcontent-%COMP%]{transform:scale(2.5) translate(-2px,3px)}.bronze[_ngcontent-%COMP%]{color:#cd7f32}.silver[_ngcontent-%COMP%]{color:silver}.gold[_ngcontent-%COMP%]{color:gold}.platinum[_ngcontent-%COMP%]{color:#e5e4e2}.diamond[_ngcontent-%COMP%]{color:#3b49c4}.shadow-local[_ngcontent-%COMP%]{text-shadow:black 2px 2px 2px}.star-icon[_ngcontent-%COMP%]{position:absolute;bottom:-40px;font-size:30px;width:30px;transition:transform .3s ease}.left-star[_ngcontent-%COMP%]{transform:translate(-50px)}.right-star[_ngcontent-%COMP%]{transform:translate(30px)}.goal-name[_ngcontent-%COMP%]{position:absolute;bottom:-75px;width:100px;margin-left:-50px;text-align:center;font-size:12px;font-weight:700;color:#000}.large-icon[_ngcontent-%COMP%]{font-size:5rem;width:5rem;height:5rem}.note[_ngcontent-%COMP%]{font-size:.8rem;font-weight:lighter;margin-top:1rem;text-align:center}.hints-container[_ngcontent-%COMP%]{margin-top:1rem}.hints-callout[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.5rem}.hint-item[_ngcontent-%COMP%]{color:#555;font-size:1em;list-style-type:none;position:relative;padding:5px 0 5px 30px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{margin-bottom:10px;color:#666;font-size:1.2rem}.guess-message[_ngcontent-%COMP%]{text-align:center;margin-top:1rem;font-size:1.2rem}.assests-loading-container[_ngcontent-%COMP%]{text-align:center;font-size:20px;color:#fff}.game-progress-bar[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden;background-color:#e0e0e0;box-shadow:0 4px 8px #0003}.game-progress-bar[_ngcontent-%COMP%] .mat-progress-bar-fill[_ngcontent-%COMP%]:after{background-color:#4caf50;border-radius:22px}.game-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.level-details[_ngcontent-%COMP%]{visibility:hidden}.level-container[_ngcontent-%COMP%]:hover .level-details[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[Yn("shake",[Xt("normal => shake",qt(200,Am([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Xt(":enter",[We({transform:"scale(0.8)",opacity:0}),qt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1.3)",opacity:1})),qt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1)",opacity:1}))])]),Yn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const qRe=()=>({});function QRe(t,n){if(1&t){const e=Se();_(0,"li")(1,"a",11),U("click",function(){const r=j(e).$implicit;return G(R().findingWithExplicitContextSelected(r))}),k(2),b()()}if(2&t){const e=n.$implicit;y(2),Ke(e.display)}}function KRe(t,n){1&t&&(_(0,"th",20),k(1," Type "),b())}function XRe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.type.display," ")}}function YRe(t,n){1&t&&(_(0,"th",20),k(1," Target "),b())}function ZRe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.target.code," ")}}function JRe(t,n){1&t&&(_(0,"th",20),k(1," Target "),b())}function ePe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.target.display," ")}}function tPe(t,n){1&t&&xe(0,"tr",22)}function nPe(t,n){1&t&&xe(0,"tr",23)}function iPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),b(),_(3,"table",12),zt(4,13),q(5,KRe,2,0,"th",14)(6,XRe,2,1,"td",15),Ht(),zt(7,16),q(8,YRe,2,0,"th",14)(9,ZRe,2,1,"td",15),Ht(),zt(10,17),q(11,JRe,2,0,"th",14)(12,ePe,2,1,"td",15),Ht(),q(13,tPe,1,0,"tr",18)(14,nPe,1,0,"tr",19),b()()),2&t){const e=R();y(2),Je("Relevant attributes (",e.selectedSituation.display,")"),y(),T("dataSource",e.dataSource),y(10),T("matHeaderRowDef",e.displayedColumns),y(),T("matRowDefColumns",e.displayedColumns)}}function rPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2,"Resource Type"),b(),_(3,"a",24)(4,"span"),k(5),b(),_(6,"mat-icon"),k(7,"open_in_new"),b()()()),2&t){const e=R();y(3),T("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",wy),y(2),Je("FHIR R4 ",e.resourceType,"")}}function oPe(t,n){if(1&t){const e=Se();_(0,"div",25)(1,"button",26),U("click",function(){j(e);const r=R();return G(r.saveOutput(r.fhirRepresentationString))}),xe(2,"mat-icon",27),b(),_(3,"button",28),U("click",function(){j(e);const r=R();return G(r.copyOutputToClipboard(r.fhirRepresentationString))}),xe(4,"mat-icon",29),b()()}}let sPe=(()=>{class t{constructor(e,i){this.terminologyService=e,this.clipboard=i,this.fhirRepresentationString="{}",this.situationsBinding={title:"Finding with explicit context",type:"Autocomplete",ecl:"<< 413350009 |Finding with explicit context (situation)|",value:"",note:"Select a finding with explicit context"},this.SituationConstants={KnownPresent:{code:"410515003",display:"Known present",selfAndDescendants:[]},KnownAbsent:{code:"410516002",display:"Known absent",selfAndDescendants:[]},SubjectOfRecord:{code:"410604004",display:"Subject of record",selfAndDescendants:[]},PersonInTheFamily:{code:"303071001",display:"Person in the family",selfAndDescendants:[]},InThePast:{code:"410513005",display:"In the past",selfAndDescendants:[]},CurrentOrSpecifiedTime:{code:"410512000",display:"Current or specified time",selfAndDescendants:[]},KnownPossible:{code:"410590009",display:"Known possible",selfAndDescendants:[]}},this.examples=[{code:"160377001",display:"Family history of asthma"},{code:"12147341000119108",display:"History of burn"},{code:"428942009",display:"History of fall"},{code:"300890009",display:"Swelling absent"},{code:"162057007",display:"Nausea present"},{code:"401204006",display:"Suspected autism"}],this.displayedColumns=["type","targetCode","targetDisplay"],this.dataSource=[]}ngOnInit(){this.loadOrUpdateConstants()}loadOrUpdateConstants(){var e=this;return me(function*(){let i=localStorage.getItem("SituationConstants");i?(e.SituationConstants=JSON.parse(i),console.log("Loaded constants from cache.")):(yield e.updateConstantDescendants(),localStorage.setItem("SituationConstants",JSON.stringify(e.SituationConstants)),console.log("Updated constants and cached them."))})()}updateConstantDescendants(){var e=this;return me(function*(){for(const i in e.SituationConstants)if(Object.prototype.hasOwnProperty.call(e.SituationConstants,i)){const r=e.SituationConstants[i];let o=yield Co(e.terminologyService.expandValueSet("<< "+r.code,"",0,1e3));r.selfAndDescendants=o.expansion.contains.map(s=>s.code)}})()}convertSituationToFhir(e){var i=this;return me(function*(){i.selectedSituation=e,i.fhirRepresentation=null,i.fhirRepresentationString="Loading...",i.dataSource=[],i.resourceType=void 0;let a,c,l,d,r=yield Co(i.terminologyService.lookupConcept(e.code)),o=i.terminologyService.getNormalForm(r);if(i.terminologyService.parseNormmalForm(o).groups.forEach(u=>{const h=u.find(p=>"408732007"===p.type.code);h&&(i.dataSource=[...i.dataSource,h],c=h.target);const f=u.find(p=>"408729009"===p.type.code);f&&(i.dataSource=[...i.dataSource,f],a=f.target);const m=u.find(p=>"408731000"===p.type.code);m&&(i.dataSource=[...i.dataSource,m],l=m.target);const g=u.find(p=>"246090004"===p.type.code);g&&(i.dataSource=[...i.dataSource,g],d=g.target)}),d){const u=i.SituationConstants.KnownPresent.selfAndDescendants.includes(a?.code),h=i.SituationConstants.SubjectOfRecord.selfAndDescendants.includes(c?.code),f=i.SituationConstants.InThePast.selfAndDescendants.includes(l?.code),m=i.SituationConstants.KnownAbsent.selfAndDescendants.includes(a?.code),g=i.SituationConstants.KnownPossible.selfAndDescendants.includes(a?.code),p=i.SituationConstants.CurrentOrSpecifiedTime.selfAndDescendants.includes(l?.code),v=i.SituationConstants.PersonInTheFamily.selfAndDescendants.includes(c?.code);u&&h&&f?i.updateFhirRepresentation(i.createFhirCondition(d,"inactive")):u&&h&&p?i.updateFhirRepresentation(i.createFhirCondition(d,"active")):g&&h&&p?i.updateFhirRepresentation(i.createFhirCondition(d,"unconfirmed")):u&&v?i.updateFhirRepresentation(i.createFamilyMemberHistoryForFinding(d,c)):m&&h&&p?i.updateFhirRepresentation(i.createFhirObservationForAbsentFinding(d)):i.fhirRepresentationString="No FHIR representation for this situation"}else i.fhirRepresentationString="No FHIR representation for this situation"})()}updateFhirRepresentation(e){this.fhirRepresentation=e,this.fhirRepresentationString=JSON.stringify(e,null,2)}findingWithExplicitContextSelected(e){e&&e.code&&this.convertSituationToFhir(e)}createFhirCondition(e,i){return this.resourceType="Condition",{resourceType:"Condition",subject:{reference:"Patient/1234"},clinicalStatus:{coding:[{system:"http://terminology.hl7.org/CodeSystem/condition-clinical",code:i}]},code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}}createFhirObservationForAbsentFinding(e){return this.resourceType="Observation",{resourceType:"Observation",subject:{reference:"Patient/1234"},status:"registered",code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]},valueCodeableConcept:{coding:[{system:"http://snomed.info/sct",code:"410516002",display:"Known absent"}]}}}createFamilyMemberHistoryForFinding(e,i){return this.resourceType="FamilyMemberHistory",{resourceType:"FamilyMemberHistory",status:"completed",patient:{reference:"Patient/1234"},relationship:{coding:[{system:"http://snomed.info/sct",code:i.code,display:i.display}]},condition:[{code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}]}}saveOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.selectedSituation.display}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(tA))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-situation-map"]],decls:17,vars:9,consts:[[1,"p-8"],[1,"flex","flex-wrap","gap-4"],[1,"w-1/3"],[1,"w-auto",3,"selectionChange","binding"],[1,"mt-8"],[4,"ngFor","ngForOf"],["class","mt-8",4,"ngIf"],[1,"flex-grow"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["href","javascript:void(0);",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","targetCode"],["matColumnDef","targetDisplay"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["target","_blank",1,"flex","flex-row","align-middle","gap-2",3,"href"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h2"),k(2,"Consistent Context Representation for Situations with Explicit Context"),b(),_(3,"div",1)(4,"div",2)(5,"app-autocomplete-binding",3),U("selectionChange",function(s){return r.findingWithExplicitContextSelected(s)}),b(),_(6,"h3",4),k(7,"Examples"),b(),_(8,"ul"),q(9,QRe,3,1,"li",5),b(),q(10,iPe,15,4,"div",6)(11,rPe,8,2,"div",6),b(),_(12,"div",7)(13,"div",8),q(14,oPe,5,0,"div",9),_(15,"textarea",10),k(16," "),b()()()()()),2&i&&(y(5),T("binding",r.situationsBinding),y(4),T("ngForOf",r.examples),y(),T("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),y(),T("ngIf",r.resourceType),y(3),T("ngIf",r.fhirRepresentationString.length>15),y(),T("options",hs(8,qRe))("lang","json")("innerHTML",r.fhirRepresentationString,yu))},dependencies:[ro,$r,u1,ia,So,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,u0],styles:[".output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem;min-height:45rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}"]})}return t})(),aPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"app-situation-map")},dependencies:[sPe]})}return t})();var cPe=mo(867),lPe=mo.n(cPe);let dPe=(()=>{class t{constructor(){this.filter=new(lPe())}transform(e){return e&&this.filter.clean(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"safeText",type:t,pure:!0})}return t})();function uPe(t,n){1&t&&xe(0,"mat-spinner",8)}function hPe(t,n){1&t&&(_(0,"th",21),k(1," Position "),b())}function fPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.index;y(),Je(" ",e+1," ")}}function mPe(t,n){1&t&&(_(0,"th",21),k(1," Message "),b())}function pPe(t,n){if(1&t&&(_(0,"span"),k(1),wo(2,"safeText"),b()),2&t){const e=R().$implicit;y(),Ke(oc(2,1,e.message))}}function gPe(t,n){1&t&&(_(0,"span",24)(1,"i"),k(2,"No information available (qualifier value)"),b()())}function _Pe(t,n){if(1&t&&(_(0,"td",22),q(1,pPe,3,3,"span",6)(2,gPe,3,0,"span",23),b()),2&t){const e=n.$implicit;y(),T("ngIf",e.message),y(),T("ngIf",!e.message)}}function bPe(t,n){1&t&&(_(0,"th",21),k(1," Score "),b())}function vPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.score," ")}}function yPe(t,n){1&t&&(_(0,"th",21),k(1," Rounds "),b())}function xPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.numberOfRounds," ")}}function wPe(t,n){1&t&&(_(0,"th",21),k(1," Difficulty "),b())}function kPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.difficulty," ")}}function CPe(t,n){1&t&&(_(0,"th",21),k(1," Time Played "),b())}function TPe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"elapsedTime"),b()),2&t){const e=n.$implicit;y(),Je(" ",oc(2,1,e.elapsed)," ")}}function EPe(t,n){1&t&&(_(0,"th",21),k(1," Date "),b())}function SPe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"date"),b()),2&t){const e=n.$implicit;y(),Je(" ",Au(2,1,e.date,"short")," ")}}function DPe(t,n){1&t&&xe(0,"tr",25)}function IPe(t,n){1&t&&xe(0,"tr",26)}function APe(t,n){if(1&t&&(_(0,"div")(1,"table",9),zt(2,10),q(3,hPe,2,0,"th",11)(4,fPe,2,1,"td",12),Ht(),zt(5,13),q(6,mPe,2,0,"th",11)(7,_Pe,3,2,"td",12),Ht(),zt(8,14),q(9,bPe,2,0,"th",11)(10,vPe,2,1,"td",12),Ht(),zt(11,15),q(12,yPe,2,0,"th",11)(13,xPe,2,1,"td",12),Ht(),zt(14,16),q(15,wPe,2,0,"th",11)(16,kPe,2,1,"td",12),Ht(),zt(17,17),q(18,CPe,2,0,"th",11)(19,TPe,3,3,"td",12),Ht(),zt(20,18),q(21,EPe,2,0,"th",11)(22,SPe,3,4,"td",12),Ht(),q(23,DPe,1,0,"tr",19)(24,IPe,1,0,"tr",20),b()()),2&t){const e=R();y(),T("dataSource",e.dataSource),y(22),T("matHeaderRowDef",e.displayedColumns),y(),T("matRowDefColumns",e.displayedColumns)}}let MPe=(()=>{class t{constructor(e,i){this.firebaseService=e,this.router=i,this.displayedColumns=["position","message","difficulty","score","numberOfRounds","secondsPlayed","date"],this.dataSource=[],this.loadingScores=!1}ngOnInit(){this.loadScores()}loadScores(){this.loadingScores=!0,this.firebaseService.getScores().then(e=>{this.dataSource=e.map(i=>({...i,date:i.date?i.date.toDate():new Date})),this.loadingScores=!1})}backToGame(){this.router.navigate(["/snoguess"])}static#e=this.\u0275fac=function(i){return new(i||t)(w(lQ),w(ms))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-scoreboard"]],decls:12,vars:4,consts:[[1,"flex","flex-col","items-center","gap-4","pt-6","snoguess-game"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/scoreboard.png","alt","High Scores",1,"w-1/4","mt-8"],[1,"mb-8","flex","flex-row","align-middle","gap-1"],[1,"diamond"],["diameter","50",4,"ngIf"],[4,"ngIf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],["diameter","50"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","message"],["matColumnDef","score"],["matColumnDef","numberOfRounds"],["matColumnDef","difficulty"],["matColumnDef","secondsPlayed"],["matColumnDef","date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","text-gray-400",4,"ngIf"],[1,"text-gray-400"],["mat-header-row",""],["mat-row",""]],template:function(i,r){1&i&&(_(0,"div",0),xe(1,"img",1)(2,"img",2),_(3,"div",3)(4,"span"),k(5,"Messages posted by playes who reached the Diamond trophy"),b(),_(6,"mat-icon",4),k(7,"emoji_events"),b()(),q(8,uPe,1,0,"mat-spinner",5)(9,APe,25,3,"div",6),_(10,"div",7),U("click",function(){return r.backToGame()}),k(11," Back to game "),b()()),2&i&&(y(2),T("@popIn",void 0),y(6),T("ngIf",r.loadingScores),y(),T("ngIf",!r.loadingScores),y(),T("@scrollUp",void 0))},dependencies:[$r,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ou,dQ,dPe],styles:[".diamond[_ngcontent-%COMP%]{color:#3b49c4}.snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[Yn("shake",[Xt("normal => shake",qt(200,Am([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Xt(":enter",[We({transform:"scale(0.8)",opacity:0}),qt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1.3)",opacity:1})),qt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1)",opacity:1}))])]),Yn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const RPe=()=>[1,2,3,4,5];function PPe(t,n){1&t&&xe(0,"mat-radio-button",6),2&t&&T("value",n.$implicit)}let FPe=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-maturity-question"]],inputs:{metric:"metric"},decls:10,vars:6,consts:[[1,"question-container"],[1,"question-label"],["aria-labelledby","question-label",1,"radio-group",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"labels"],[1,"end-label"],[3,"value"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"label",1),k(2),b(),_(3,"mat-radio-group",2),Dr("ngModelChange",function(s){return jr(r.metric.response,s)||(r.metric.response=s),s}),q(4,PPe,1,1,"mat-radio-button",3),b(),_(5,"div",4)(6,"span"),k(7),b(),_(8,"span",5),k(9),b()()()),2&i&&(y(2),Ke(r.metric.question),y(),Sr("ngModel",r.metric.response),y(),T("ngForOf",hs(5,RPe)),y(3),Ke(r.metric.label1),y(2),Ke(r.metric.label5))},dependencies:[ro,Yo,_s,v1,y0],styles:[".question-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.question-label[_ngcontent-%COMP%]{margin-bottom:8px}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:8px}.labels[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.end-label[_ngcontent-%COMP%]{margin-left:auto}"]})}return t})();function OPe(t,n){if(1&t&&(_(0,"div",6),xe(1,"app-maturity-question",7),b()),2&t){const e=n.$implicit;y(),T("metric",e)}}function NPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),b(),q(3,OPe,2,1,"div",5),b()),2&t){const e=n.$implicit;y(2),Ke(e.component),y(),T("ngForOf",e.metrics)}}function LPe(t,n){if(1&t&&(_(0,"div",2)(1,"h2"),k(2),b(),q(3,NPe,4,2,"div",3),b()),2&t){const e=n.$implicit;y(2),Ke(e.goal),y(),T("ngForOf",e.components)}}const VPe=[{path:"",component:t7},{path:"allergies",component:t7},{path:"sandbox",component:aCe},{path:"prescription",component:cCe},{path:"questionnaires",component:hEe},{path:"implementation-course/subset-validator",component:VEe},{path:"snoguess",component:WRe},{path:"snoguess/scoreboard",component:MPe},{path:"context",component:aPe},{path:"maturity",component:(()=>{class t{constructor(){this.maturityQuestions=[{goal:"Adoption",components:[{component:"Roadmap",metrics:[{metric:"Explicit plan",question:"Have you documented a plan for your implementation activities for the next 5 years?",label1:"No, a plan is not documented",label5:"Yes, a detailed plan is documented",response:0},{metric:"Resources",question:"Have you established a team with the required skills and competencies to implement the plan?",label1:"No, a team is not established",label5:"Yes, a team is fully established and sufficient for the implementation",response:0},{metric:"Training",question:"Have you designed a training a trainign strategy for team members, users, vendors, decision makers, etc.?",label1:"No, a training strategy is not designed",label5:"Yes, a detailed training strategy is designed",response:0},{metric:"Sustainability",question:"Have you identified the resources needed to sustain the implementation of the plan?",label1:"No, resources are not identified",label5:"Yes, resources are identified and secured",response:0},{metric:"National Terminology Server",question:"Do you have a defined clinical terminology servers strategy?",label1:"No, a strategy is not defined, a technology has not been selected",label5:"Yes, a strategy is defined, the server is operational and in use",response:0}]},{component:"Usage",metrics:[{metric:"Facilities",question:"What percentage of all the clinics or hospitals in your country are using SNOMED CT in production?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Systems",question:"What percentage of all the EHR or other clinical systems in your country are using SNOMED CT in production?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Population",question:"What percentage of the population in your country is covered by EHR systems using SNOMED CT?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Content scope",question:"From the following list of basic SNOMED hierarchies, how many are used in the EHR systems in your country?
1. Clinical finding
2. Procedure
3. Body structure
4. Substance
5. Pharmaceutical products",label1:"1 hierarchy",label5:"All 5 hierarchies",response:0},{metric:"Clinical care levels",question:"From the following list of clinical care levels, how many are covered by the EHR systems in your country?
1. Primary care
2. Secondary care
3. Tertiary care
4. Long-term care
5. Home care",label1:"1 care level",label5:"All 5 care levels",response:0}]}]},{goal:"Customization",components:[{component:"Local extensions",metrics:[{metric:"Maps",question:"Do you have the maps that are required to meet your strategy goals?",label1:"No, maps are not available",label5:"Yes, all necessary maps are available and in use",response:0},{metric:"Subsets",question:"Do you have the subsets that are required to meet your strategy goals?",label1:"No, subsets are not available",label5:"Yes, all necessary subsets are available and in use",response:0},{metric:"Clinical concepts",question:"Do you have the clinical concepts that are required to meet your strategy goals?",label1:"No, clinical concepts are not available",label5:"Yes, There are no outstanding content requirements. They may have been met by the International Edition or already developed in the national Edition",response:0},{metric:"Language",question:"Are the local terms that are required to support your goals available in your edition? This may include additional synonyms or patient friendly terms.",label1:"No, local terms are not available",label5:"Yes, all necessary local terms are available and in use",response:0},{metric:"Translation",question:"Do you have the translations that are required to meet your strategy goals?",label1:"No, translations are not available",label5:"Yes, all necessary translations are available and in use",response:0}]}]}]}ngOnInit(){}onNext(){console.log(this.maturityQuestions)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-maturity-main"]],decls:2,vars:1,consts:[[1,"main"],["class","goal-section",4,"ngFor","ngForOf"],[1,"goal-section"],["class","component-section",4,"ngFor","ngForOf"],[1,"component-section"],["class","metric-section",4,"ngFor","ngForOf"],[1,"metric-section"],[3,"metric"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,LPe,4,2,"div",1),b()),2&i&&(y(),T("ngForOf",r.maturityQuestions))},dependencies:[ro,FPe],styles:[".main[_ngcontent-%COMP%]{height:50%;max-height:50%}.goal-section[_ngcontent-%COMP%]{padding:10px}.component-section[_ngcontent-%COMP%]{margin-left:20px;margin-bottom:24px}.metric-section[_ngcontent-%COMP%]{margin-left:40px;margin-bottom:16px}"]})}return t})()},{path:"**",redirectTo:""}];let BPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[EU.forRoot(VPe,{useHash:!0}),EU]})}return t})();const UPe=[{title:"GROUP 1",description:"The first group of bindings in the coding demonstration",bindings:[{title:"Medicinal product + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, contain at least provided ingredientes (open world assuption), no information on form."},{title:"Gender",type:"dropdown",ecl:"< 365873007 |Gender finding (finding)|",value:"",note:"Patient gender."},{title:"Medicinal product form + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details."}]},{title:"GROUP 2",description:"The second group of bindings in the coding demonstration",bindings:[{title:"Medicinal product only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, containing only the provided ingredientes (close world assuption), with no information on form."},{title:"Medicinal product form only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 732943007 |Has basis of strength substance (attribute)| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details, containing only the provided ingredientes (close world assuption)."}]}];let zPe=(()=>{class t{constructor(){}getCodingSpec(){return UPe}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zt,Ab={version:"0.19.3"},Or=1200,Sh=1252,HPe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],$P={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Qk=function(t){-1!=HPe.indexOf(t)&&(Sh=$P[0]=t)},ca=function(t){Or=t,Qk(t)};var Mb=function(n){return String.fromCharCode(n)},GP=function(n){return String.fromCharCode(n)},ir=null,la="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Yk(t){for(var n="",e=0,i=0,r=0,o=0,s=0,a=0,c=0,l=0;l>2,s=(3&e)<<4|(i=t.charCodeAt(l++))>>4,a=(15&i)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(i)?a=c=64:isNaN(r)&&(c=64),n+=la.charAt(o)+la.charAt(s)+la.charAt(a)+la.charAt(c);return n}function $s(t){var n="",o=0,s=0,a=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(a=la.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((15&s)<<4|a>>2)),64!==(c=la.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((3&a)<<6|c));return n}var on=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ec=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(n,e){return e?new Buffer(n,e):new Buffer(n)}:Buffer.from.bind(Buffer)}return function(){}}(),Rb=function(){if(typeof Buffer>"u")return!1;var t=Ec([65,0]);return!!t&&1==t.toString("utf16le").length}();function Qd(t){return on?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function gQ(t){return on?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var ts=function(n){return on?Ec(n,"binary"):n.split("").map(function(e){return 255&e.charCodeAt(0)})};function Pb(t){if(typeof ArrayBuffer>"u")return ts(t);for(var n=new ArrayBuffer(t.length),e=new Uint8Array(n),i=0;i!=t.length;++i)e[i]=255&t.charCodeAt(i);return n}function Sc(t){if(Array.isArray(t))return t.map(function(i){return String.fromCharCode(i)}).join("");for(var n=[],e=0;e=0;)n+=t.charAt(e--);return n}function Va(t,n){var e=""+t;return e.length>=n?e:Rn("0",n-e.length)+e}function qP(t,n){var e=""+t;return e.length>=n?e:Rn(" ",n-e.length)+e}function Zk(t,n){var e=""+t;return e.length>=n?e:e+Rn(" ",n-e.length)}var _Q=Math.pow(2,32);function Up(t,n){return t>_Q||t<-_Q?function KPe(t,n){var e=""+Math.round(t);return e.length>=n?e:Rn("0",n-e.length)+e}(t,n):function XPe(t,n){var e=""+t;return e.length>=n?e:Rn("0",n-e.length)+e}(Math.round(t),n)}function Jk(t,n){return t.length>=7+(n=n||0)&&103==(32|t.charCodeAt(n))&&101==(32|t.charCodeAt(n+1))&&110==(32|t.charCodeAt(n+2))&&101==(32|t.charCodeAt(n+3))&&114==(32|t.charCodeAt(n+4))&&97==(32|t.charCodeAt(n+5))&&108==(32|t.charCodeAt(n+6))}var bQ=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],QP=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Et={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},vQ={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},ZPe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function eC(t,n,e){for(var i=t<0?-1:1,r=t*i,o=0,s=1,a=0,c=1,l=0,d=0,u=Math.floor(r);ln&&(l>n?(d=c,a=o):(d=l,a=s)),!e)return[0,i*a,d];var h=Math.floor(i*a/d);return[h,i*a-h*d,d]}function Kd(t,n,e){if(t>2958465||t<0)return null;var i=0|t,r=Math.floor(86400*(t-i)),o=0,s=[],a={D:i,T:r,u:86400*(t-i)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),n&&n.date1904&&(i+=1462),a.u>.9999&&(a.u=0,86400==++r&&(a.T=r=0,++i,++a.D)),60===i)s=e?[1317,10,29]:[1900,2,29],o=3;else if(0===i)s=e?[1317,8,29]:[1900,1,0],o=6;else{i>60&&--i;var c=new Date(1900,0,1);c.setDate(c.getDate()+i-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),i<60&&(o=(o+6)%7),e&&(o=function rFe(t,n){n[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=r%60,r=Math.floor(r/60),a.M=r%60,r=Math.floor(r/60),a.H=r,a.q=o,a}var yQ=new Date(1899,11,31,0,0,0),JPe=yQ.getTime(),eFe=new Date(1900,2,1,0,0,0);function xQ(t,n){var e=t.getTime();return n?e-=1262304e5:t>=eFe&&(e+=864e5),(e-(JPe+6e4*(t.getTimezoneOffset()-yQ.getTimezoneOffset())))/864e5}function KP(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Dh(t,n){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function Ob(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function nFe(t){var n=t<0?12:11,e=KP(t.toFixed(12));return e.length<=n||(e=t.toPrecision(10)).length<=n?e:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function iFe(t){var n=KP(t.toFixed(11));return n.length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n}(t),KP(function tFe(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return ys(14,xQ(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function oFe(t,n,e,i){var c,r="",o=0,s=0,a=e.y,l=0;switch(t){case 98:a=e.y+543;case 121:switch(n.length){case 1:case 2:c=a%100,l=2;break;default:c=a%1e4,l=4}break;case 109:switch(n.length){case 1:case 2:c=e.m,l=n.length;break;case 3:return QP[e.m-1][1];case 5:return QP[e.m-1][0];default:return QP[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:c=e.d,l=n.length;break;case 3:return bQ[e.q][0];default:return bQ[e.q][1]}break;case 104:switch(n.length){case 1:case 2:c=1+(e.H+11)%12,l=n.length;break;default:throw"bad hour format: "+n}break;case 72:switch(n.length){case 1:case 2:c=e.H,l=n.length;break;default:throw"bad hour format: "+n}break;case 77:switch(n.length){case 1:case 2:c=e.M,l=n.length;break;default:throw"bad minute format: "+n}break;case 115:if("s"!=n&&"ss"!=n&&".0"!=n&&".00"!=n&&".000"!=n)throw"bad second format: "+n;return 0!==e.u||"s"!=n&&"ss"!=n?(s=i>=2?3===i?1e3:100:1===i?10:1,(o=Math.round(s*(e.S+e.u)))>=60*s&&(o=0),"s"===n?0===o?"0":""+o/s:(r=Va(o,2+i),"ss"===n?r.substr(0,2):"."+r.substr(2,n.length-1))):Va(e.S,n.length);case 90:switch(n){case"[h]":case"[hh]":c=24*e.D+e.H;break;case"[m]":case"[mm]":c=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":c=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+n}l=3===n.length?1:2;break;case 101:c=a,l=1}return l>0?Va(c,l):""}function El(t){if(t.length<=3)return t;for(var e=t.length%3,i=t.substr(0,e);e!=t.length;e+=3)i+=(i.length>0?",":"")+t.substr(e,3);return i}var wQ=/%/g;function kQ(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+kQ(t,-n);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(n/Math.pow(10,o)).toPrecision(i+1+(r+o)%r)).indexOf("e")){var s=Math.floor(Math.log(n)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,r)+"."+e.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var CQ=/# (\?+)( ?)\/( ?)(\d+)/,TQ=/^#*0*\.([0#]+)/,EQ=/\).*[0#]/,SQ=/\(###\) ###\\?-####/;function ns(t){for(var e,n="",i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function DQ(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function IQ(t,n){var e=t-Math.floor(t),i=Math.pow(10,n);return n<(""+Math.round(e*i)).length?0:Math.round(e*i)}function da(t,n,e){if(40===t.charCodeAt(0)&&!n.match(EQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?da("n",i,e):"("+da("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function aFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return Sl(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}(t,n,e);if(-1!==n.indexOf("%"))return function sFe(t,n,e){var i=n.replace(wQ,""),r=n.length-i.length;return Sl(t,i,e*Math.pow(10,2*r))+Rn("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return kQ(n,e);if(36===n.charCodeAt(0))return"$"+da(t,n.substr(" "==n.charAt(1)?2:1),e);var r,o,s,a,c=Math.abs(e),l=e<0?"-":"";if(n.match(/^00+$/))return l+Up(c,n.length);if(n.match(/^[#?]+$/))return"0"===(r=Up(e,0))&&(r=""),r.length>n.length?r:ns(n.substr(0,n.length-r.length))+r;if(o=n.match(CQ))return function cFe(t,n,e){var i=parseInt(t[4],10),r=Math.round(n*i),o=Math.floor(r/i),s=r-o*i,a=i;return e+(0===o?"":""+o)+" "+(0===s?Rn(" ",t[1].length+1+t[4].length):qP(s,t[1].length)+t[2]+"/"+t[3]+Va(a,t[4].length))}(o,c,l);if(n.match(/^#+0+$/))return l+Up(c,n.length-n.indexOf("0"));if(o=n.match(TQ))return r=DQ(e,o[1].length).replace(/^([^\.]+)$/,"$1."+ns(o[1])).replace(/\.$/,"."+ns(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+Rn("0",ns(o[1]).length-g.length)}),-1!==n.indexOf("0.")?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return l+DQ(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return l+El(Up(c,0));if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+da(t,n,-e):El(""+(Math.floor(e)+function dFe(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(e,o[1].length)))+"."+Va(IQ(e,o[1].length),o[1].length);if(o=n.match(/^#,#*,#0/))return da(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Bp(da(t,n.replace(/[\\-]/g,""),e)),s=0,Bp(Bp(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return s-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Va(0,3-m.length):"")+m})+"."+Va(s,o[1].length);switch(n){case"###,##0.00":return da(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=El(Up(c,0));return"0"!==f?l+f:"";case"###,###.00":return da(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return da(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function AQ(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+AQ(t,-n);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(n/Math.pow(10,o)).toPrecision(i+1+(r+o)%r)).match(/[Ee]/)){var s=Math.floor(Math.log(n)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Dc(t,n,e){if(40===t.charCodeAt(0)&&!n.match(EQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Dc("n",i,e):"("+Dc("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function hFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return Sl(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}(t,n,e);if(-1!==n.indexOf("%"))return function fFe(t,n,e){var i=n.replace(wQ,""),r=n.length-i.length;return Sl(t,i,e*Math.pow(10,2*r))+Rn("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return AQ(n,e);if(36===n.charCodeAt(0))return"$"+Dc(t,n.substr(" "==n.charAt(1)?2:1),e);var r,o,s,a,c=Math.abs(e),l=e<0?"-":"";if(n.match(/^00+$/))return l+Va(c,n.length);if(n.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>n.length?r:ns(n.substr(0,n.length-r.length))+r;if(o=n.match(CQ))return function lFe(t,n,e){return e+(0===n?"":""+n)+Rn(" ",t[1].length+2+t[4].length)}(o,c,l);if(n.match(/^#+0+$/))return l+Va(c,n.length-n.indexOf("0"));if(o=n.match(TQ))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+ns(o[1])).replace(/\.$/,"."+ns(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+Rn("0",ns(o[1]).length-g.length)}),-1!==n.indexOf("0.")?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return l+El(""+c);if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Dc(t,n,-e):El(""+e)+"."+Rn("0",o[1].length);if(o=n.match(/^#,#*,#0/))return Dc(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Bp(Dc(t,n.replace(/[\\-]/g,""),e)),s=0,Bp(Bp(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return s-1||"\\"==e&&"-"==t.charAt(n+1)&&"0#".indexOf(t.charAt(n+2))>-1););break;case"?":for(;t.charAt(++n)===e;);break;case"*":++n,(" "==t.charAt(n)||"*"==t.charAt(n))&&++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n-1;);break;default:++n}return!1}var RQ=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function PQ(t,n){if(null==n)return!1;var e=parseFloat(n[2]);switch(n[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function ys(t,n,e){null==e&&(e={});var i="";switch(typeof t){case"string":i="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(i=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:Et)[t])&&(i=e.table&&e.table[vQ[t]]||Et[vQ[t]]),null==i&&(i=ZPe[t]||"General")}if(Jk(i,0))return Dh(n,e);n instanceof Date&&(n=xQ(n,e.date1904));var r=function gFe(t,n){var e=function mFe(t){for(var n=[],e=!1,i=0,r=0;i-1&&--i,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof n)return[4,4===e.length||r>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=r>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=r>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=r>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=n>0?e[0]:n<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[i,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var s=e[0].match(RQ),a=e[1].match(RQ);return PQ(n,s)?[i,e[0]]:PQ(n,a)?[i,e[1]]:[i,e[null!=s&&null!=a?2:1]]}return[i,o]}(i,n);if(Jk(r[1]))return Dh(n,e);if(!0===n)n="TRUE";else if(!1===n)n="FALSE";else if(""===n||null==n)return"";return function pFe(t,n,e,i){for(var l,d,u,r=[],o="",s=0,a="",c="t",h="H";s=12?t.charAt(s+2):a),g.t="T",h="h",s+=3):"AM/PM"===t.substr(s,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",s+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(s,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",s+=5,h="h"):(g.t="t",++s),null==l&&"T"===g.t)return"";r[r.length]=g,c=a;break;case"[":for(o=a;"]"!==t.charAt(s++)&&s-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Xd(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=a;++s-1;)o+=a;r[r.length]={t:"n",v:o};break;case"?":for(o=a;t.charAt(++s)===a;)o+=a;r[r.length]={t:a,v:o},c=a;break;case"*":++s,(" "==t.charAt(s)||"*"==t.charAt(s))&&++s;break;case"(":case")":r[r.length]={t:1===i?"t":a,v:a},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=a;s-1;)o+=t.charAt(s);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:a,v:a},++s;break;case"$":r[r.length]={t:"t",v:"$"},++s;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(a))throw new Error("unrecognized character "+a+" in "+t);r[r.length]={t:"t",v:a},++s}var x,p=0,v=0;for(s=r.length-1,c="t";s>=0;--s)switch(r[s].t){case"h":case"H":r[s].t=h,c="h",p<1&&(p=1);break;case"s":(x=r[s].v.match(/\.0+$/))&&(v=Math.max(v,x[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[s].t;break;case"m":"s"===c&&(r[s].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[s].v.match(/[Hh]/)&&(p=1),p<2&&r[s].v.match(/[Mm]/)&&(p=2),p<3&&r[s].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var D,C="";for(s=0;s0){40==C.charCodeAt(0)?(A=n<0&&45===C.charCodeAt(0)?-n:n,E=Sl("n",C,A)):(E=Sl("n",C,A=n<0&&i>1?-n:n),A<0&&r[0]&&"t"==r[0].t&&(E=E.substr(1),r[0].v="-"+r[0].v)),D=E.length-1;var V=r.length;for(s=0;s-1){V=s;break}var B=r.length;if(V===r.length&&-1===E.indexOf("E")){for(s=r.length-1;s>=0;--s)null==r[s]||-1==="n?".indexOf(r[s].t)||(D>=r[s].v.length-1?r[s].v=E.substr(1+(D-=r[s].v.length),r[s].v.length):D<0?r[s].v="":(r[s].v=E.substr(0,D+1),D=-1),r[s].t="t",B=s);D>=0&&B=0;--s)if(null!=r[s]&&-1!=="n?".indexOf(r[s].t)){for(d=r[s].v.indexOf(".")>-1&&s===V?r[s].v.indexOf(".")-1:r[s].v.length-1,z=r[s].v.substr(d+1);d>=0;--d)D>=0&&("0"===r[s].v.charAt(d)||"#"===r[s].v.charAt(d))&&(z=E.charAt(D--)+z);r[s].v=z,r[s].t="t",B=s}for(D>=0&&B-1&&s===V?r[s].v.indexOf(".")+1:0,z=r[s].v.substr(0,d);d-1&&(r[s].v=Sl(r[s].t,r[s].v,A=i>1&&n<0&&s>0&&"-"===r[s-1].v?-n:n),r[s].t="t");var X="";for(s=0;s!==r.length;++s)null!=r[s]&&(X+=r[s].v);return X}(r[1],n,e,r[0])}function XP(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=Et[e]){if(Et[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return Et[n]=t,n}function Nb(t){for(var n=0;392!=n;++n)void 0!==t[n]&&XP(t[n],n)}function zp(){Et=function YPe(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var OQ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,yFe={"d.m":"d\\.m"};function Yd(t,n){return XP(yFe[t]||t,n)}var Dl,NQ=function(){var t={version:"1.2.0"},e=function n(){for(var E=0,V=new Array(256),B=0;256!=B;++B)V[B]=E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=B)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1;return typeof Int32Array<"u"?new Int32Array(V):V}(),r=function i(E){var V=0,B=0,X=0,ne=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(X=0;256!=X;++X)ne[X]=E[X];for(X=0;256!=X;++X)for(B=E[X],V=256+X;V<4096;V+=256)B=ne[V]=B>>>8^E[255&B];var Q=[];for(X=1;16!=X;++X)Q[X-1]=typeof Int32Array<"u"&&"function"==typeof ne.subarray?ne.subarray(256*X,256*X+256):ne.slice(256*X,256*X+256);return Q}(e),o=r[0],s=r[1],a=r[2],c=r[3],l=r[4],d=r[5],u=r[6],h=r[7],f=r[8],m=r[9],g=r[10],p=r[11],v=r[12],x=r[13],C=r[14];return t.table=e,t.bstr=function D(E,V){for(var B=~V,X=0,ne=E.length;X>>8^e[255&(B^E.charCodeAt(X++))];return~B},t.buf=function z(E,V){for(var B=~V,X=E.length-15,ne=0;ne>8&255]^v[E[ne++]^B>>16&255]^p[E[ne++]^B>>>24]^g[E[ne++]]^m[E[ne++]]^f[E[ne++]]^h[E[ne++]]^u[E[ne++]]^d[E[ne++]]^l[E[ne++]]^c[E[ne++]]^a[E[ne++]]^s[E[ne++]]^o[E[ne++]]^e[E[ne++]];for(X+=15;ne>>8^e[255&(B^E[ne++])];return~B},t.str=function A(E,V){for(var B=~V,X=0,ne=E.length,Q=0,Te=0;X>>8^e[255&(B^Q)]:Q<2048?B=(B=B>>>8^e[255&(B^(192|Q>>6&31))])>>>8^e[255&(B^(128|63&Q))]:Q>=55296&&Q<57344?(Q=64+(1023&Q),Te=1023&E.charCodeAt(X++),B=(B=(B=(B=B>>>8^e[255&(B^(240|Q>>8&7))])>>>8^e[255&(B^(128|Q>>2&63))])>>>8^e[255&(B^(128|Te>>6&15|(3&Q)<<4))])>>>8^e[255&(B^(128|63&Te))]):B=(B=(B=B>>>8^e[255&(B^(224|Q>>12&15))])>>>8^e[255&(B^(128|Q>>6&63))])>>>8^e[255&(B^(128|63&Q))];return~B},t}(),wt=function(){var c,n={};function i(S){if("/"==S.charAt(S.length-1))return-1===S.slice(0,-1).indexOf("/")?S:i(S.slice(0,-1));var O=S.lastIndexOf("/");return-1===O?S:S.slice(0,O+1)}function r(S){if("/"==S.charAt(S.length-1))return r(S.slice(0,-1));var O=S.lastIndexOf("/");return-1===O?S:S.slice(O+1)}function o(S,O){"string"==typeof O&&(O=new Date(O));var I=O.getHours();I=(I=I<<6|O.getMinutes())<<5|O.getSeconds()>>>1,S.write_shift(2,I);var P=O.getFullYear()-1980;P=(P=P<<4|O.getMonth()+1)<<5|O.getDate(),S.write_shift(2,P)}function a(S){Lr(S,0);for(var O={},I=0;S.l<=S.length-4;){var P=S.read_shift(2),N=S.read_shift(2),L=S.l+N,re={};switch(P){case 21589:1&(I=S.read_shift(1))&&(re.mtime=S.read_shift(4)),N>5&&(2&I&&(re.atime=S.read_shift(4)),4&I&&(re.ctime=S.read_shift(4))),re.mtime&&(re.mt=new Date(1e3*re.mtime));break;case 1:var _e=S.read_shift(4),ie=S.read_shift(4);re.usz=ie*Math.pow(2,32)+_e,_e=S.read_shift(4),ie=S.read_shift(4),re.csz=ie*Math.pow(2,32)+_e}S.l=L,O[P]=re}return O}function l(){return c||(c=Dl)}function d(S,O){if(80==S[0]&&75==S[1])return IZ(S,O);if(109==(32|S[0])&&105==(32|S[1]))return function T7e(S,O){if("mime-version:"!=pe(S.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var I=O&&O.root||"",P=(on&&Buffer.isBuffer(S)?S.toString("binary"):pe(S)).split("\r\n"),N=0,L="";for(N=0;N0&&(I=(I=I.slice(0,I.length-1)).slice(0,I.lastIndexOf("/")+1),L.slice(0,I.length)!=I););var re=(P[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var _e="--"+(re[1]||""),se={FileIndex:[],FullPaths:[]};E(se);var Oe,Ve=0;for(N=0;N=N&&(Ve-=N),!re[Ve]){ie=[];var Ge=[];for(Oe=Ve;Oe>=0;){Ge[Oe]=!0,re[Oe]=!0,_e[_e.length]=Oe,ie.push(S[Oe]);var Fe=I[Math.floor(4*Oe/P)];if(P<4+(dt=4*Oe&oe))throw new Error("FAT boundary crossed: "+Oe+" 4 "+P);if(!S[Fe]||Ge[Oe=Mh(S[Fe],dt)])break}L[Ve]={nodes:_e,data:rK([ie])}}return L}($t,re,oe,P);re0&&_e!==Te&&(xi[_e].name="!MiniFAT"),xi[oe[0]].name="!FAT",xi.fat_addrs=oe,xi.ssz=P;var yr=[],Ks=[],kv=[];(function C(S,O,I,P,N,L,re,_e){for(var dt,ie=0,oe=P.length?2:0,se=O[S].data,Oe=0,Ve=0;Oe0&&ie!==Te&&(O[ie].name="!StreamData")):Fe.size>=4096?(Fe.storage="fat",void 0===O[Fe.start]&&(O[Fe.start]=v(I,Fe.start,O.fat_addrs,O.ssz)),O[Fe.start].name=Fe.name,Fe.content=O[Fe.start].data.slice(0,Fe.size)):(Fe.storage="minifat",Fe.size<0?Fe.size=0:ie!==Te&&Fe.start!==Te&&O[ie]&&(Fe.content=g(Fe,O[ie].data,(O[_e]||{}).data))),Fe.content&&Lr(Fe.content,0),L[dt]=Fe,re.push(Fe)}})(re,xi,$t,yr,N,{},Ks,_e),function m(S,O,I){for(var P=0,N=0,L=0,re=0,_e=0,ie=I.length,oe=[],se=[];P0&&re>=0;)L.push(O.slice(re*Q,re*Q+Q)),N-=Q,re=Mh(I,4*re);return 0===L.length?ue(0):mr(L).slice(0,S.size)}function p(S,O,I,P,N){var L=Te;if(S===Te){if(0!==O)throw new Error("DIFAT chain shorter than expected")}else if(-1!==S){var re=I[S],_e=(P>>>2)-1;if(!re)return;for(var ie=0;ie<_e&&(L=Mh(re,4*ie))!==Te;++ie)N.push(L);O>=1&&p(Mh(re,P-4),O-1,I,P,N)}}function v(S,O,I,P,N){var L=[],re=[];N||(N=[]);var _e=P-1,ie=0,oe=0;for(ie=O;ie>=0;){N[ie]=!0,L[L.length]=ie,re.push(S[ie]);var se=I[Math.floor(4*ie/P)];if(P<4+(oe=4*ie&_e))throw new Error("FAT boundary crossed: "+ie+" 4 "+P);if(!S[se])break;ie=Mh(S[se],oe)}return{nodes:L,data:rK([re])}}function D(S,O){return new Date(1e3*(Zr(S,O+4)/1e7*Math.pow(2,32)+Zr(S,O)/1e7-11644473600))}function E(S,O){var I=O||{},P=I.root||"Root Entry";if(S.FullPaths||(S.FullPaths=[]),S.FileIndex||(S.FileIndex=[]),S.FullPaths.length!==S.FileIndex.length)throw new Error("inconsistent CFB structure");0===S.FullPaths.length&&(S.FullPaths[0]=P+"/",S.FileIndex[0]={name:P,type:5}),I.CLSID&&(S.FileIndex[0].clsid=I.CLSID),function V(S){var O="\x01Sh33tJ5";if(!wt.find(S,"/"+O)){var I=ue(4);I[0]=55,I[1]=I[3]=50,I[2]=54,S.FileIndex.push({name:O,type:2,content:I,size:4,L:69,R:69,C:69}),S.FullPaths.push(S.FullPaths[0]+O),B(S)}}(S)}function B(S,O){E(S);for(var I=!1,P=!1,N=S.FullPaths.length-1;N>=0;--N){var L=S.FileIndex[N];switch(L.type){case 0:P?I=!0:(S.FileIndex.pop(),S.FullPaths.pop());break;case 1:case 2:case 5:P=!0,isNaN(L.R*L.L*L.C)&&(I=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(I=!0);break;default:I=!0}}if(I||O){var re=new Date(1987,1,19),_e=0,ie=Object.create?Object.create(null):{},oe=[];for(N=0;N1?1:-1,Oe.size=0,Oe.type=5;else if("/"==Ve.slice(-1)){for(_e=N+1;_e=oe.length?-1:_e,_e=N+1;_e=oe.length?-1:_e,Oe.type=1}else i(S.FullPaths[N+1]||"")==i(Ve)&&(Oe.R=N+1),Oe.type=2}}}function X(S,O){var I=O||{};if("mad"==I.fileType)return function E7e(S,O){for(var I=O||{},P=I.boundary||"SheetJS",N=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(P="------="+P).slice(2)+'"',"","",""],L=S.FullPaths[0],re=L,_e=S.FileIndex[0],ie=1;ie=32&&dt<128&&++Oe;var Fe=Oe>=4*Ve/5;N.push(P),N.push("Content-Location: "+(I.root||"file:///C:/SheetJS/")+re),N.push("Content-Transfer-Encoding: "+(Fe?"quoted-printable":"base64")),N.push("Content-Type: "+y7e(_e,re)),N.push(""),N.push(Fe?w7e(se):x7e(se))}return N.push(P+"--\r\n"),N.join("\r\n")}(S,I);if("zip"===(B(S),I.fileType))return function v7e(S,O){var I=O||{},P=[],N=[],L=ue(1),re=I.compression?8:0,_e=0,oe=0,se=0,Oe=0,Ve=0,dt=S.FullPaths[0],Ge=dt,Fe=S.FileIndex[0],$t=[],xi=0;for(oe=1;oe0&&(Cs<4096?Ge+=Cs+63>>6:Fe+=Cs+511>>9)}}for(var yr=dt.FullPaths.length+3>>2,kv=Ge+127>>7,Cv=(Ge+7>>3)+Fe+yr+kv,Xh=Cv+127>>7,RO=Xh<=109?0:Math.ceil((Xh-109)/127);Cv+Xh+RO+127>>7>Xh;)RO=++Xh<=109?0:Math.ceil((Xh-109)/127);var Ll=[1,RO,Xh,kv,yr,Fe,Ge,0];return dt.FileIndex[0].size=Ge<<6,Ll[7]=(dt.FileIndex[0].start=Ll[0]+Ll[1]+Ll[2]+Ll[3]+Ll[4]+Ll[5])+(Ll[6]+7>>3),Ll}(S),N=ue(P[7]<<9),L=0,re=0;for(L=0;L<8;++L)N.write_shift(1,ve[L]);for(L=0;L<8;++L)N.write_shift(2,0);for(N.write_shift(2,62),N.write_shift(2,3),N.write_shift(2,65534),N.write_shift(2,9),N.write_shift(2,6),L=0;L<3;++L)N.write_shift(2,0);for(N.write_shift(4,0),N.write_shift(4,P[2]),N.write_shift(4,P[0]+P[1]+P[2]+P[3]-1),N.write_shift(4,0),N.write_shift(4,4096),N.write_shift(4,P[3]?P[0]+P[1]+P[2]-1:Te),N.write_shift(4,P[3]),N.write_shift(-4,P[1]?P[0]-1:Te),N.write_shift(4,P[1]),L=0;L<109;++L)N.write_shift(-4,L>9));for(_e(P[6]+7>>3);511&N.l;)N.write_shift(-4,ee.ENDOFCHAIN);for(re=L=0,ie=0;ie=4096)&&(se.start=re,_e(oe+63>>6));for(;511&N.l;)N.write_shift(-4,ee.ENDOFCHAIN);for(L=0;L32&&(console.error("Name "+Ve+" will be truncated to "+Ve.slice(0,32)),Ve=Ve.slice(0,32)),oe=2*(Ve.length+1),N.write_shift(64,Ve,"utf16le"),N.write_shift(2,oe),N.write_shift(1,se.type),N.write_shift(1,se.color),N.write_shift(-4,se.L),N.write_shift(-4,se.R),N.write_shift(-4,se.C),se.clsid)N.write_shift(16,se.clsid,"hex");else for(ie=0;ie<4;++ie)N.write_shift(4,0);N.write_shift(4,se.state||0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,se.start),N.write_shift(4,se.size),N.write_shift(4,0)}else{for(ie=0;ie<17;++ie)N.write_shift(4,0);for(ie=0;ie<3;++ie)N.write_shift(4,-1);for(ie=0;ie<12;++ie)N.write_shift(4,0)}}for(L=1;L=4096)if(N.l=se.start+1<<9,on&&Buffer.isBuffer(se.content))se.content.copy(N,N.l,0,se.size),N.l+=se.size+511&-512;else{for(ie=0;ie0&&se.size<4096)if(on&&Buffer.isBuffer(se.content))se.content.copy(N,N.l,0,se.size),N.l+=se.size+63&-64;else{for(ie=0;ie>16|O>>8|O));function M(S,O){var I=$e[255&S];return O<=8?I>>>8-O:(I=I<<8|$e[S>>8&255],O<=16?I>>>16-O:(I=I<<8|$e[S>>16&255])>>>24-O)}function Mt(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=6?0:S[P+1]<<8))>>>I&3}function En(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=5?0:S[P+1]<<8))>>>I&7}function hn(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=3?0:S[P+1]<<8))>>>I&31}function Oi(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=1?0:S[P+1]<<8))>>>I&127}function Vn(S,O,I){var P=7&O,N=O>>>3,re=S[N]>>>P;return I<8-P||(re|=S[N+1]<<8-P,I<16-P)||(re|=S[N+2]<<16-P,I<24-P)||(re|=S[N+3]<<24-P),re&(1<>>3;return P<=5?S[N]|=(7&I)<>8-P),O+3}function Ze(S,O,I){return S[O>>>3]|=I=(1&I)<<(7&O),O+1}function Ho(S,O,I){var N=O>>>3;return S[N]|=255&(I<<=7&O),S[N+1]=I>>>=8,O+8}function Pn(S,O,I){var N=O>>>3;return S[N]|=255&(I<<=7&O),S[N+1]=255&(I>>>=8),S[N+2]=I>>>8,O+16}function oi(S,O){var I=S.length,P=2*I>O?2*I:O+5,N=0;if(I>=O)return S;if(on){var L=gQ(P);if(S.copy)S.copy(L);else for(;N>P-Oe,re=(1<=0;--re)O[_e|re<0;)ie[ie.l++]=_e[oe++]}return ie.l}(ie,oe):function re(_e,ie){for(var oe=0,se=0,Oe=Ee?new Uint16Array(32768):[];se<_e.length;){var Ve=Math.min(65535,_e.length-se);if(Ve<10){for(7&(oe=ft(ie,oe,+(se+Ve==_e.length)))&&(oe+=8-(7&oe)),ie.l=oe/8|0,ie.write_shift(2,Ve),ie.write_shift(2,65535&~Ve);Ve-- >0;)ie[ie.l++]=_e[se++];oe=8*ie.l}else{oe=ft(ie,oe,+(se+Ve==_e.length)+2);for(var dt=0;Ve-- >0;){var Ge=_e[se],Fe=-1,$t=0;if((Fe=Oe[dt=32767&(dt<<5^Ge)])&&((Fe|=-32768&se)>se&&(Fe-=32768),Fe2){(Ge=N[$t])<=22?oe=Ho(ie,oe,$e[Ge+1]>>1)-1:(Ho(ie,oe,3),Ho(ie,oe+=5,$e[Ge-23]>>5),oe+=3);var xi=Ge<8?0:Ge-4>>2;xi>0&&(Pn(ie,oe,$t-K[Ge]),oe+=xi),oe=Ho(ie,oe,$e[Ge=O[se-Fe]]>>3),oe-=3;var Cs=Ge<4?0:Ge-2>>1;Cs>0&&(Pn(ie,oe,se-Fe-H[Ge]),oe+=Cs);for(var yr=0;yr<$t;++yr)Oe[dt]=32767&se,dt=32767&(dt<<5^_e[se]),++se;Ve-=$t-1}else Ge<=143?Ge+=48:oe=Ze(ie,oe,1),oe=Ho(ie,oe,$e[Ge]),Oe[dt]=32767&se,++se}oe=Ho(ie,oe,0)-1}}return ie.l=(oe+7)/8|0,ie.l}(ie,oe)}}();function fn(S){var O=ue(50+Math.floor(1.1*S.length)),I=Nc(S,O);return O.slice(0,I)}var ar=Ee?new Uint16Array(32768):rs(32768),_a=Ee?new Uint16Array(32768):rs(32768),zr=Ee?new Uint16Array(128):rs(128),Kh=1,EZ=1;function g7e(S,O){var I=hn(S,O)+257,P=hn(S,O+=5)+1,N=function rt(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=4?0:S[P+1]<<8))>>>I&15}(S,O+=5)+4;O+=4;for(var L=0,re=Ee?new Uint8Array(19):rs(19),_e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ie=1,oe=Ee?new Uint8Array(8):rs(8),se=Ee?new Uint8Array(8):rs(8),Oe=re.length,Ve=0;Ve>8-Ge;for(var Fe=(1<<7-Ge)-1;Fe>=0;--Fe)zr[dt|Fe<>>=3){case 16:for(L=3+Mt(S,O),O+=2,dt=$t[$t.length-1];L-- >0;)$t.push(dt);break;case 17:for(L=3+En(S,O),O+=3;L-- >0;)$t.push(0);break;case 18:for(L=11+Oi(S,O),O+=7;L-- >0;)$t.push(0);break;default:$t.push(dt),ie>>0,_e=0,ie=0;!(1&P);)if(P=En(S,I),I+=3,P>>>1)for(P>>1==1?(_e=9,ie=5):(I=g7e(S,I),_e=Kh,ie=EZ);;){!O&&re>>1==1?au[se]:ar[se];if(I+=15&Oe,(Oe>>>=4)>>>8&255){if(256==Oe)break;var Ve=(Oe-=257)<8?0:Oe-4>>2;Ve>5&&(Ve=0);var dt=L+K[Oe];Ve>0&&(dt+=Vn(S,I,Ve),I+=Ve),se=Vn(S,I,ie),I+=15&(Oe=P>>>1==1?wv[se]:_a[se]);var Ge=(Oe>>>=4)<4?0:Oe-2>>1,Fe=H[Oe];for(Ge>0&&(Fe+=Vn(S,I,Ge),I+=Ge),!O&&re>>3]|S[1+(I>>>3)]<<8;if(I+=32,oe>0)for(!O&&re0;)N[L++]=S[I>>>3],I+=8}return O?[N,I+7>>>3]:[N.slice(0,L),I+7>>>3]}(S.slice(S.l||0),O);return S.l+=P[1],P[0]}function DZ(S,O){if(!S)throw new Error(O);typeof console<"u"&&console.error(O)}function IZ(S,O){var I=S;Lr(I,0);var L={FileIndex:[],FullPaths:[]};E(L,{root:O.root});for(var re=I.length-4;(80!=I[re]||75!=I[re+1]||5!=I[re+2]||6!=I[re+3])&&re>=0;)--re;I.l=re+4,I.l+=4;var _e=I.read_shift(2);I.l+=6;var ie=I.read_shift(4);for(I.l=ie,re=0;re<_e;++re){I.l+=20;var oe=I.read_shift(4),se=I.read_shift(4),Oe=I.read_shift(2),Ve=I.read_shift(2),dt=I.read_shift(2);I.l+=8;var Ge=I.read_shift(4),Fe=a(I.slice(I.l+Oe,I.l+Oe+Ve));I.l+=Oe+Ve+dt;var $t=I.l;I.l=Ge+4,Fe&&Fe[1]&&((Fe[1]||{}).usz&&(se=Fe[1].usz),(Fe[1]||{}).csz&&(oe=Fe[1].csz)),b7e(I,oe,se,L,Fe),I.l=$t}return L}function b7e(S,O,I,P,N){S.l+=2;var L=S.read_shift(2),re=S.read_shift(2),_e=function s(S){var O=65535&S.read_shift(2),I=65535&S.read_shift(2),P=new Date,N=31&I,L=15&(I>>>=5);I>>>=4,P.setMilliseconds(0),P.setFullYear(I+1980),P.setMonth(L-1),P.setDate(N);var re=31&O,_e=63&(O>>>=5);return P.setHours(O>>>=6),P.setMinutes(_e),P.setSeconds(re<<1),P}(S);if(8257&L)throw new Error("Unsupported ZIP encryption");S.read_shift(4);for(var oe=S.read_shift(4),se=S.read_shift(4),Oe=S.read_shift(2),Ve=S.read_shift(2),dt="",Ge=0;Ge"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Lb(t,n,e){if(typeof Dl<"u"&&Dl.writeFileSync)return e?Dl.writeFileSync(t,n,e):Dl.writeFileSync(t,n);if(typeof Deno<"u"){if(e&&"string"==typeof n)switch(e){case"utf8":n=new TextEncoder(e).encode(n);break;case"binary":n=Pb(n);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,n)}var i="utf8"==e?Ic(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,t);if(typeof Blob<"u"){var r=new Blob([wFe(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if(typeof saveAs<"u")return saveAs(r,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=t,s.href=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(t);return a.open("w"),a.encoding="binary",Array.isArray(n)&&(n=Sc(n)),a.write(n),a.close(),n}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function Pi(t){for(var n=Object.keys(t),e=[],i=0;i0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):n<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==zQ.getFullYear()&&!isNaN(e.getFullYear())){var i=e.getFullYear();return t.indexOf(""+i)>-1||e.setFullYear(e.getFullYear()+100),e}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Ih(t,n){if(on&&Buffer.isBuffer(t)){if(n&&Rb){if(255==t[0]&&254==t[1])return Ic(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ic(function mQ(t){for(var n=[],e=0;e>1;++e)n[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return n.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(n){if(255==t[0]&&254==t[1])return Ic(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ic(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(o){return e[o]||o})}catch{}for(var i=[],r=0;r!=t.length;++r)i.push(String.fromCharCode(t[r]));return i.join("")}function ei(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=ei(t[e]));return n}function Rn(t,n){for(var e="";e.length3&&-1==AFe.indexOf(n))return o}else if(n.replace(/[ap]m?/,"").match(/[a-z]/))return o;return s<0||s>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function en(t,n,e){if(t.FullPaths){var i;if("string"==typeof e)return i=on?Ec(e):function QPe(t){for(var n=[],e=0,i=t.length+250,r=Qd(t.length+255),o=0;o>6&31,r[e++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&t.charCodeAt(++o);r[e++]=240|s>>8&7,r[e++]=128|s>>2&63,r[e++]=128|a>>6&15|(3&s)<<4,r[e++]=128|63&a}else r[e++]=224|s>>12&15,r[e++]=128|s>>6&63,r[e++]=128|63&s;e>i&&(n.push(r.slice(0,e)),e=0,r=Qd(65535),i=65530)}return n.push(r.slice(0,e)),mr(n)}(e),wt.utils.cfb_add(t,n,i);wt.utils.cfb_add(t,n,e)}else t.file(n,e)}function ZP(){return wt.utils.cfb_new()}var rr='\r\n',JP=tC({""":'"',"'":"'",">":">","<":"<","&":"&"}),eF=/[&<>'"]/g,LFe=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function tn(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(LFe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function KQ(t){return tn(t).replace(/ /g,"_x0020_")}var XQ=/[\u0000-\u001f]/g;function oC(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(/\n/g,"
").replace(XQ,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function tF(t){for(var n="",e=0,i=0,r=0,o=0,s=0,a=0;e191&&i<224?(s=(31&i)<<6,s|=63&r,n+=String.fromCharCode(s)):(o=t.charCodeAt(e++),i<240?n+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o):(a=((7&i)<<18|(63&r)<<12|(63&o)<<6|63&(s=t.charCodeAt(e++)))-65536,n+=String.fromCharCode(55296+(a>>>10&1023)),n+=String.fromCharCode(56320+(1023&a)))));return n}function ZQ(t){var e,i,a,n=Qd(2*t.length),r=1,o=0,s=0;for(i=0;i>>10&1023),e=56320+(1023&e)),0!==s&&(n[o++]=255&s,n[o++]=s>>>8,s=0),n[o++]=e%256,n[o++]=e>>>8;return n.slice(0,o).toString("ucs2")}function JQ(t){return Ec(t,"binary").toString("utf8")}var sC="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ni=on&&(JQ(sC)==tF(sC)&&JQ||ZQ(sC)==tF(sC)&&ZQ)||tF,Ic=on?function(t){return Ec(t,"utf8").toString("binary")}:function(t){for(var n=[],e=0,i=0,r=0;e>6))),n.push(String.fromCharCode(128+(63&i)));break;case i>=55296&&i<57344:i-=55296,r=t.charCodeAt(e++)-56320+(i<<10),n.push(String.fromCharCode(240+(r>>18&7))),n.push(String.fromCharCode(144+(r>>12&63))),n.push(String.fromCharCode(128+(r>>6&63))),n.push(String.fromCharCode(128+(63&r)));break;default:n.push(String.fromCharCode(224+(i>>12))),n.push(String.fromCharCode(128+(i>>6&63))),n.push(String.fromCharCode(128+(63&i)))}return n.join("")},nK=/(^\s|\s$|\n)/;function fo(t,n){return"<"+t+(n.match(nK)?' xml:space="preserve"':"")+">"+n+""}function Ub(t){return Pi(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function Ne(t,n,e){return"<"+t+(null!=e?Ub(e):"")+(null!=n?(n.match(nK)?' xml:space="preserve"':"")+">"+n+""}function nF(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}var Nr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ah=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ws={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},iK=function(t){for(var n=[],i=0;i0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(n){return Buffer.isBuffer(n)?n:Ec(n)})):iK(t)}:iK,oK=function(t,n,e){for(var i=[],r=n;r0?jp(t,n+4,n+4+e-1):""},iF=lK,dK=function(t,n){var e=Zr(t,n);return e>0?jp(t,n+4,n+4+e-1):""},rF=dK,uK=function(t,n){var e=2*Zr(t,n);return e>0?jp(t,n+4,n+4+e-1):""},oF=uK,hK=function(n,e){var i=Zr(n,e);return i>0?cC(n,e+4,e+4+i):""},sF=hK,fK=function(t,n){var e=Zr(t,n);return e>0?jp(t,n+4,n+4+e):""},aF=fK,mK=function(t,n){return function $Fe(t,n){for(var e=1-2*(t[n+7]>>>7),i=((127&t[n+7])<<4)+(t[n+6]>>>4&15),r=15&t[n+6],o=5;o>=0;--o)r=256*r+t[n+o];return 2047==i?0==r?e*(1/0):NaN:(0==i?i=-1022:(i-=1023,r+=Math.pow(2,52)),e*Math.pow(2,i-52)*r)}(t,n)},lC=mK,cF=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};on&&(iF=function(n,e){if(!Buffer.isBuffer(n))return lK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},rF=function(n,e){if(!Buffer.isBuffer(n))return dK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},oF=function(n,e){if(!Buffer.isBuffer(n)||!Rb)return uK(n,e);var i=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i-1)},sF=function(n,e){if(!Buffer.isBuffer(n)||!Rb)return hK(n,e);var i=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i)},aF=function(n,e){if(!Buffer.isBuffer(n))return fK(n,e);var i=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+i)},lC=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):mK(n,e)},cF=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array}),typeof Zt<"u"&&function pK(){cC=function(t,n,e){return Zt.utils.decode(1200,t.slice(n,e)).replace(Fo,"")},jp=function(t,n,e){return Zt.utils.decode(65001,t.slice(n,e))},iF=function(t,n){var e=Zr(t,n);return e>0?Zt.utils.decode(Sh,t.slice(n+4,n+4+e-1)):""},rF=function(t,n){var e=Zr(t,n);return e>0?Zt.utils.decode(Or,t.slice(n+4,n+4+e-1)):""},oF=function(t,n){var e=2*Zr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},sF=function(t,n){var e=Zr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e)):""},aF=function(t,n){var e=Zr(t,n);return e>0?Zt.utils.decode(65001,t.slice(n+4,n+4+e)):""}}();var $p=function(t,n){return t[n]},Il=function(t,n){return 256*t[n+1]+t[n]},WFe=function(t,n){var e=256*t[n+1]+t[n];return e<32768?e:-1*(65535-e+1)},Zr=function(t,n){return t[n+3]*(1<<24)+(t[n+2]<<16)+(t[n+1]<<8)+t[n]},Mh=function(t,n){return t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]},qFe=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function zb(t,n){var i,r,s,a,c,l,e="",o=[];switch(n){case"dbcs":if(l=this.l,on&&Buffer.isBuffer(this)&&Rb)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?Mh:qFe)(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return r=8==t?lC(this,this.l):lC([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;t=8;case 16:e=aK(this,this.l,t)}}return this.l+=t,e}var QFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255,t[e+2]=n>>>16&255,t[e+3]=n>>>24&255},KFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>8&255,t[e+2]=n>>16&255,t[e+3]=n>>24&255},XFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255};function YFe(t,n,e){var i=0,r=0;if("dbcs"===e){for(r=0;r!=n.length;++r)XFe(this,n.charCodeAt(r),this.l+2*r);i=2*n.length}else if("sbcs"===e||"cpstr"==e)if(typeof Zt<"u"&&874==Sh){for(r=0;r!=n.length;++r){var o=Zt.utils.encode(Sh,n.charAt(r));this[this.l+r]=o[0]}i=n.length}else if(typeof Zt<"u"&&"cpstr"==e){if((o=Zt.utils.encode(Or,n)).length==n.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:i=3,this[this.l]=255&n,this[this.l+1]=255&(n>>>=8),this[this.l+2]=255&(n>>>=8);break;case 4:i=4,QFe(this,n,this.l);break;case 8:if(i=8,"f"===e){!function GFe(t,n,e){var i=(n<0||1/n==-1/0?1:0)<<7,r=0,o=0,s=i?-n:n;isFinite(s)?0==s?r=o=0:(r=Math.floor(Math.log(s)/Math.LN2),o=s*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|i}(this,n,this.l);break}case 16:break;case-4:i=4,KFe(this,n,this.l)}}return this.l+=i,this}function gK(t,n){var e=aK(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Lr(t,n){t.l=n,t.read_shift=zb,t.chk=gK,t.write_shift=YFe}function No(t,n){t.l+=n}function ue(t){var n=Qd(t);return Lr(n,0),n}function ws(){var t=[],n=on?256:2048,e=function(l){var d=ue(l);return Lr(d,0),d},i=e(n),r=function(){i&&(i.l&&(i.length>i.l&&((i=i.slice(0,i.l)).l=i.length),i.length>0&&t.push(i)),i=null)},o=function(l){return i&&l=128?1:0)+1,i>=128&&++o,i>=16384&&++o,i>=2097152&&++o;var s=t.next(o);r<=127?s.write_shift(1,r):(s.write_shift(1,128+(127&r)),s.write_shift(1,r>>7));for(var a=0;4!=a;++a){if(!(i>=128)){s.write_shift(1,i);break}s.write_shift(1,128+(127&i)),i>>=7}i>0&&cF(e)&&t.push(e)}}function Hb(t,n,e){var i=ei(t);if(n.s?(i.cRel&&(i.c+=n.s.c),i.rRel&&(i.r+=n.s.r)):(i.cRel&&(i.c+=n.c),i.rRel&&(i.r+=n.r)),!e||e.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function _K(t,n,e){var i=ei(t);return i.s=Hb(i.s,n.s,e),i.e=Hb(i.e,n.s,e),i}function jb(t,n){if(t.cRel&&t.c<0)for(t=ei(t);t.c<0;)t.c+=n>8?16384:256;if(t.rRel&&t.r<0)for(t=ei(t);t.r<0;)t.r+=n>8?1048576:n>5?65536:16384;var e=dn(t);return!t.cRel&&null!=t.cRel&&(e=function eOe(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function ZFe(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function lF(t,n){return 0!=t.s.r||t.s.rRel||t.e.r!=(n.biff>=12?1048575:n.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(n.biff>=12?16383:255)||t.e.cRel?jb(t.s,n.biff)+":"+jb(t.e,n.biff):(t.s.rRel?"":"$")+kn(t.s.r)+":"+(t.e.rRel?"":"$")+kn(t.e.r):(t.s.cRel?"":"$")+sn(t.s.c)+":"+(t.e.cRel?"":"$")+sn(t.e.c)}function dF(t){return parseInt(function JFe(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function kn(t){return""+(t+1)}function uF(t){for(var n=function tOe(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,i=0;i!==n.length;++i)e=26*e+n.charCodeAt(i)-64;return e-1}function sn(t){if(t<0)throw new Error("invalid column "+t);var n="";for(++t;t;t=Math.floor((t-1)/26))n=String.fromCharCode((t-1)%26+65)+n;return n}function Wn(t){for(var n=0,e=0,i=0;i=48&&r<=57?n=10*n+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:n-1}}function dn(t){for(var n=t.c+1,e="";n;n=(n-1)/26|0)e=String.fromCharCode((n-1)%26+65)+e;return e+(t.r+1)}function Vr(t){var n=t.indexOf(":");return-1==n?{s:Wn(t),e:Wn(t)}:{s:Wn(t.slice(0,n)),e:Wn(t.slice(n+1))}}function Qt(t,n){return typeof n>"u"||"number"==typeof n?Qt(t.s,t.e):("string"!=typeof t&&(t=dn(t)),"string"!=typeof n&&(n=dn(n)),t==n?t:t+":"+n)}function $b(t){var n=Vr(t);return"$"+sn(n.s.c)+"$"+kn(n.s.r)+":$"+sn(n.e.c)+"$"+kn(n.e.r)}function Gb(t,n){if(!(t||n&&n.biff<=5&&n.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Cn(t){var n={s:{c:0,r:0},e:{c:0,r:0}},e=0,i=0,r=0,o=t.length;for(e=0;i26);++i)e=26*e+r;for(n.s.c=--e,e=0;i9);++i)e=10*e+r;if(n.s.r=--e,i===o||10!=r)return n.e.c=n.s.c,n.e.r=n.s.r,n;for(++i,e=0;i!=o&&!((r=t.charCodeAt(i)-64)<1||r>26);++i)e=26*e+r;for(n.e.c=--e,e=0;i!=o&&!((r=t.charCodeAt(i)-48)<0||r>9);++i)e=10*e+r;return n.e.r=--e,n}function Ac(t,n,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?Ml[t.v]||t.v:function bK(t,n){var e="d"==t.t&&n instanceof Date;if(null!=t.z)try{return t.w=ys(t.z,e?pr(n):n)}catch{}try{return t.w=ys((t.XF||{}).numFmtId||(e?14:0),e?pr(n):n)}catch{return""+n}}(t,null==n?t.v:n))}function Zd(t,n){var e=n&&n.sheet?n.sheet:"Sheet1",i={};return i[e]=t,{SheetNames:[e],Sheets:i}}function vK(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=ir&&null==r&&(r=ir);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var s=0,a=0;if(o&&null!=i.origin){if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?Wn(i.origin):i.origin;s=c.r,a=c.c}o["!ref"]||(o["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=Cn(o["!ref"]);l.s.c=d.s.c,l.s.r=d.s.r,l.e.c=Math.max(l.e.c,d.e.c),l.e.r=Math.max(l.e.r,d.e.r),-1==s&&(l.e.r=s=d.e.r+1)}for(var u=[],h=0;h!=n.length;++h)if(n[h]){if(!Array.isArray(n[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=s+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=n[h].length;++g)if(!(typeof n[h][g]>"u")){var p={v:n[h][g]},v=a+g;if(l.s.r>f&&(l.s.r=f),l.s.c>v&&(l.s.c=v),l.e.r0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}function rOe(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function hF(t,n){var e=t.l,i=t.read_shift(1),r=Lo(t),o=[],s={t:r,h:r};if(1&i){for(var a=t.read_shift(4),c=0;c!=a;++c)o.push(rOe(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+n,s}var aOe=hF;function ha(t){var n=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:n,iStyleRef:e}}function Rh(t,n){return null==n&&(n=ue(8)),n.write_shift(-4,t.c),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}function Ph(t){var n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:n}}function Fh(t,n){return null==n&&(n=ue(4)),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}var lOe=Lo,yK=Br;function fF(t){var n=t.read_shift(4);return 0===n||4294967295===n?"":t.read_shift(n,"dbcs")}function Wb(t,n){var e=!1;return null==n&&(e=!0,n=ue(127)),n.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}var dOe=Lo,mF=fF,pF=Wb;function gF(t){var n=t.slice(t.l,t.l+4),e=1&n[0],i=2&n[0];t.l+=4;var r=0===i?lC([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):Mh(n,0)>>2;return e?r/100:r}function xK(t,n){null==n&&(n=ue(4));var e=0,i=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?i=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(i=1,e=1),!i)throw new Error("unsupported RkNumber "+t);n.write_shift(-4,((e?r:t)<<2)+(e+2))}function wK(t){var n={s:{},e:{}};return n.s.r=t.read_shift(4),n.e.r=t.read_shift(4),n.s.c=t.read_shift(4),n.e.c=t.read_shift(4),n}var Oh=wK,Wp=function uOe(t,n){return n||(n=ue(16)),n.write_shift(4,t.s.r),n.write_shift(4,t.e.r),n.write_shift(4,t.s.c),n.write_shift(4,t.e.c),n};function Vo(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Nh(t,n){return(n||ue(8)).write_shift(8,t,"f")}function dC(t,n){if(n||(n=ue(8)),!t||t.auto)return n.write_shift(4,0),n.write_shift(4,0),n;null!=t.index?(n.write_shift(1,2),n.write_shift(1,t.index)):null!=t.theme?(n.write_shift(1,6),n.write_shift(1,t.theme)):(n.write_shift(1,5),n.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),n.write_shift(2,e),t.rgb&&null==t.theme){var i=t.rgb||"FFFFFF";"number"==typeof i&&(i=("000000"+i.toString(16)).slice(-6)),n.write_shift(1,parseInt(i.slice(0,2),16)),n.write_shift(1,parseInt(i.slice(2,4),16)),n.write_shift(1,parseInt(i.slice(4,6),16)),n.write_shift(1,255)}else n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n}var bF={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},vF={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function kOe(t){return t.map(function(n){return[n>>16&255,n>>8&255,255&n]})}var Lh=ei(kOe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Ml={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},yF={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},xF=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],wF={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},mC={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function SK(t,n,e){var o,i=function CFe(t){for(var n=[],e=Pi(t),i=0;i!==e.length;++i)null==n[t[e[i]]]&&(n[t[e[i]]]=[]),n[t[e[i]]].push(e[i]);return n}(wF),r=[];e||(r[r.length]=rr,r[r.length]=Ne("Types",null,{xmlns:Nr.CT,"xmlns:xsd":Nr.xsd,"xmlns:xsi":Nr.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ne("Default",null,{Extension:l[0],ContentType:l[1]})})));var s=function(l){t[l]&&t[l].length>0&&(r[r.length]=Ne("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:mC[l][n.bookType]||mC[l].xlsx}))},a=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ne("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:mC[l][n.bookType]||mC[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ne("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:i[l][0]})})};return s("workbooks"),a("sheets"),a("charts"),c("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),a("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var nn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function qb(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function qp(t){var n=[rr,Ne("Relationships",null,{xmlns:Nr.RELS})];return Pi(t["!id"]).forEach(function(e){n[n.length]=Ne("Relationship",null,t["!id"][e])}),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function ii(t,n,e,i,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),n<0)for(n=t["!idx"];t["!id"]["rId"+n];++n);if(t["!idx"]=n+1,r.Id="rId"+n,r.Type=i,r.Target=e,o?r.TargetMode=o:[nn.HLINK,nn.XPATH,nn.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+n);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,n}function DK(t,n,e){return[' \n',' \n'," \n"].join("")}function IOe(t,n){return[' \n',' \n'," \n"].join("")}function IK(t,n){return'SheetJS '+Ab.version+""}var fa=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function CF(t,n,e,i,r){null!=r[t]||null==n||""===n||(r[t]=n,n=tn(n),i[i.length]=e?Ne(t,n,e):fo(t,n))}function MK(t,n){var e=n||{},i=[rr,Ne("cp:coreProperties",null,{"xmlns:cp":Nr.CORE_PROPS,"xmlns:dc":Nr.dc,"xmlns:dcterms":Nr.dcterms,"xmlns:dcmitype":Nr.dcmitype,"xmlns:xsi":Nr.xsi})],r={};if(!t&&!e.Props)return i.join("");t&&(null!=t.CreatedDate&&CF("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:nF(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r),null!=t.ModifiedDate&&CF("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:nF(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r));for(var o=0;o!=fa.length;++o){var s=fa[o],a=e.Props&&null!=e.Props[s[1]]?e.Props[s[1]]:t?t[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&CF(s[0],a,null,i,r)}return i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Vh=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],RK=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function FK(t){var n=[],e=Ne;return t||(t={}),t.Application="SheetJS",n[n.length]=rr,n[n.length]=Ne("Properties",null,{xmlns:Nr.EXT_PROPS,"xmlns:vt":Nr.vt}),Vh.forEach(function(i){if(void 0!==t[i[1]]){var r;switch(i[2]){case"string":r=tn(String(t[i[1]]));break;case"bool":r=t[i[1]]?"true":"false"}void 0!==r&&(n[n.length]=e(i[0],r))}}),n[n.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(i){return""+tn(i)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function OK(t){var n=[rr,Ne("Properties",null,{xmlns:Nr.CUST_PROPS,"xmlns:vt":Nr.vt})];if(!t)return n.join("");var e=1;return Pi(t).forEach(function(r){++e,n[n.length]=Ne("property",function jFe(t,n){switch(typeof t){case"string":var e=Ne("vt:lpwstr",tn(t));return n&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Ne((0|t)==t?"vt:i4":"vt:r8",tn(String(t)));case"boolean":return Ne("vt:bool",t?"true":"false")}if(t instanceof Date)return Ne("vt:filetime",nF(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:tn(r)})}),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var TF={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function zK(t,n){var e=ue(4),i=ue(4);switch(e.write_shift(4,80==t?31:t),t){case 3:i.write_shift(-4,n);break;case 5:(i=ue(8)).write_shift(8,n,"f");break;case 11:i.write_shift(4,n?1:0);break;case 64:i=function VOe(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,i=e%Math.pow(2,32),r=(e-i)/Math.pow(2,32);r*=1e7;var o=(i*=1e7)/Math.pow(2,32)|0;o>0&&(i%=Math.pow(2,32),r+=o);var s=ue(8);return s.write_shift(4,i),s.write_shift(4,r),s}(n);break;case 31:case 80:for((i=ue(4+2*(n.length+1)+(n.length%2?0:2))).write_shift(4,n.length+1),i.write_shift(0,n,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}return mr([e,i])}var jK=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function GOe(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function $K(t,n,e){var i=ue(8),r=[],o=[],s=8,a=0,c=ue(8),l=ue(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),s+=8+c.length,!n){(l=ue(8)).write_shift(4,0),r.unshift(l);var d=[ue(4)];for(d[0].write_shift(4,t.length),a=0;a-1||RK.indexOf(t[a][0])>-1)&&null!=t[a][1]){var h=t[a][1],f=0;if(n){var m=e[f=+n[t[a][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=zK(m.t,h)}else{var p=GOe(h);-1==p&&(p=31,h=String(h)),c=zK(p,h)}o.push(c),(l=ue(8)).write_shift(4,n?f:2+a),r.push(l),s+=8+c.length}var v=8*(o.length+1);for(a=0;a=12?2:1),r="sbcs-cont",o=Or;e&&e.biff>=8&&(Or=1200),e&&8!=e.biff?12==e.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont"),e.biff>=2&&e.biff<=5&&(r="cpstr");var a=i?t.read_shift(i,r):"";return Or=o,a}function XOe(t){var n=t.t||"",i=ue(3);i.write_shift(2,n.length),i.write_shift(1,1);var r=ue(2*n.length);return r.write_shift(2*n.length,n,"utf16le"),mr([i,r])}function KK(t,n,e){return e||(e=ue(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function XK(t,n){n||(n=ue(6+2*t.length)),n.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(i.charAt(0)){case"#":o=28;break;case".":o&=-3}n.write_shift(4,2),n.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(e=0;e-1?i.slice(0,r):i;for(n.write_shift(4,2*(a.length+1)),e=0;e-1?i.slice(r+1):"",n)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e8?4:2;return[t.read_shift(i),t.read_shift(i,"i"),t.read_shift(i,"i")]}function _C(t){var n=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:n},e:{c:t.read_shift(2),r:e}}}function eX(t,n){return n||(n=ue(8)),n.write_shift(2,t.s.r),n.write_shift(2,t.e.r),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c),n}function IF(t,n,e){var i=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":i=1280,r=8;break;case"biff4":i=4,r=6;break;case"biff3":i=3,r=6;break;case"biff2":i=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=ue(r);return o.write_shift(2,i),o.write_shift(2,n),r>4&&o.write_shift(2,29282),r>6&&o.write_shift(2,1997),r>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function _Ne(t,n){var e=!n||n.biff>=8?2:1,i=ue(8+e*t.name.length);i.write_shift(4,t.pos),i.write_shift(1,t.hs||0),i.write_shift(1,t.dt),i.write_shift(1,t.name.length),n.biff>=8&&i.write_shift(1,1),i.write_shift(e*t.name.length,t.name,n.biff<8?"sbcs":"utf16le");var r=i.slice(0,i.l);return r.l=i.l,r}function NNe(t,n,e,i){var r=e&&5==e.biff;i||(i=ue(r?3+n.length:5+2*n.length)),i.write_shift(2,t),i.write_shift(r?1:2,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le");var o=i.length>i.l?i.slice(0,i.l):i;return null==o.l&&(o.l=o.length),o}function oX(t,n,e,i){var r=e&&5==e.biff;i||(i=ue(r?16:20)),i.write_shift(2,0),t.style?(i.write_shift(2,t.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,t.numFmtId||0),i.write_shift(2,n<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),i.write_shift(4,o),i.write_shift(4,0),r||i.write_shift(4,0),i.write_shift(2,0),i}function c4e(t){var n=ue(24),e=Wn(t[0]);n.write_shift(2,e.r),n.write_shift(2,e.r),n.write_shift(2,e.c),n.write_shift(2,e.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)n.write_shift(1,parseInt(i[r],16));return mr([n,nNe(t[1])])}function d4e(t){var n=t[1].Tooltip,e=ue(10+2*(n.length+1));e.write_shift(2,2048);var i=Wn(t[0]);e.write_shift(2,i.r),e.write_shift(2,i.r),e.write_shift(2,i.c),e.write_shift(2,i.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var v=d.read_shift(2),x=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(x=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var C=[],D={},z=Math.min(d.length,2==u?521:p-10-(f?264:0)),A=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++E]=[],V=0,V=0;V!=C.length;++V){var B=d.slice(d.l,d.l+C[V].len);d.l+=C[V].len,Lr(B,0);var X=typeof Zt<"u"?Zt.utils.decode(x,B):Sc(B);switch(C[V].type){case"C":X.trim().length&&(l[E][V]=X.replace(/\s+$/,""));break;case"D":l[E][V]=8===X.length?new Date(+X.slice(0,4),+X.slice(4,6)-1,+X.slice(6,8)):X;break;case"F":l[E][V]=parseFloat(X.trim());break;case"+":case"I":l[E][V]=m?2147483648^B.read_shift(-4,"i"):B.read_shift(4,"i");break;case"L":switch(X.trim().toUpperCase()){case"Y":case"T":l[E][V]=!0;break;case"N":case"F":l[E][V]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+X+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[E][V]="##MEMO##"+(m?parseInt(X.trim(),10):B.read_shift(4));break;case"N":(X=X.replace(/\u0000/g,"").trim())&&"."!=X&&(l[E][V]=+X||0);break;case"@":l[E][V]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":l[E][V]=new Date(864e5*(B.read_shift(4)-2440588)+B.read_shift(4));break;case"Y":l[E][V]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[E][V]=-B.read_shift(-8,"f");break;case"B":if(f&&8==C[V].len){l[E][V]=B.read_shift(8,"f");break}case"G":case"P":B.l+=C[V].len;break;case"0":if("_NullFlags"===C[V].name)break;default:throw new Error("DBF Unsupported data type "+C[V].type)}}else d.l+=v;if(2!=u&&d.l=0&&ca(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=ws(),h=PC(a,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=a["!cols"]||[],p=0,v=0,x=0,C=1;for(p=0;p250&&(X=250),"C"==(B=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>X&&(X=g[p].DBF.len),"B"==V&&"N"==B&&(V="N",E[p]=g[p].DBF.dec,X=g[p].DBF.len),A[p]="C"==V||"N"==B?X:o[V]||0,C+=A[p],z[p]=V}else z[p]="?"}var Q=u.next(32);for(Q.write_shift(4,318902576),Q.write_shift(4,m.length),Q.write_shift(2,296+32*x),Q.write_shift(2,C),p=0;p<4;++p)Q.write_shift(4,0);var Te=+n[Or]||3;for(Q.write_shift(4,Te<<8),t[Te]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Or+", using 1252"),Or=1252),p=0,v=0;pA[v]&&(ye=ye.slice(0,A[v])),x=0;x":190,"?":191,"{":223},n=new RegExp("\x1bN("+Pi(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?GP(f):f},i=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:GP(m)};function o(u,h){var X,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,v=0,x=[],C=[],D=null,z={},A=[],E=[],V=[],B=0,ne={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&ca(+h.codepage);p!==f.length;++p){B=0;var ve,Q=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,e),Te=Q.replace(/;;/g,"\0").split(";").map(function(fe){return fe.replace(/\u0000/g,";")});if(Q.length>0)switch(Te[0]){case"ID":case"E":case"B":case"W":break;case"O":for(v=1;v=1&&ae<=4&&(ne.Workbook.WBProps.date1904=!0)}break;case"P":"P"===Te[1].charAt(0)&&C.push(Q.slice(3).replace(/;;/g,";"));break;case"NN":var ee={Sheet:0};for(v=1;v-1&&x[at][Dt];if(!K||!K[1])throw new Error("SYLK shared formula cannot find base");F=DX(K[1],{r:m-at,c:g-Dt})}F&&(x[m][g]?x[m][g].f=F:x[m][g]={t:"n",f:F});break;case"F":var H=0;for(v=1;v0?(A[m].hpt=B,A[m].hpx=Kp(B)):0===B&&(A[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}H<1&&(D=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}}return A.length>0&&(z["!rows"]=A),E.length>0&&(z["!cols"]=E),E.forEach(function(fe){eu(fe)}),h&&h.sheetRows&&(x=x.slice(0,h.sheetRows)),[x,z,ne]}function a(u,h,f,m){var g="C;Y"+(f+1)+";X"+(m+1)+";K";switch(u.t){case"n":g+=u.v||0,u.f&&!u.F&&(g+=";E"+CC(u.f,{r:f,c:m}));break;case"b":g+=u.v?"TRUE":"FALSE";break;case"e":g+=u.w||u.v;break;case"d":g+='"'+(u.w||u.v)+'"';break;case"s":g+='"'+(null==u.v?"":String(u.v)).replace(/"/g,"").replace(/;/g,";;")+'"'}return g}return t["|"]=254,{to_workbook:function s(u,h){var f=function r(u,h){switch(h.type){case"base64":return o($s(u),h);case"binary":return o(u,h);case"buffer":return o(on&&Buffer.isBuffer(u)?u.toString("binary"):Sc(u),h);case"array":return o(Ih(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],v=ei(h);v.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var x=Gp(m,v);Pi(g).forEach(function(D){x[D]=g[D]});var C=Zd(x,h);return Pi(p).forEach(function(D){C[D]=p[D]}),C.bookType="sylk",C},from_sheet:function d(u,h,f){var v,m=["ID;PSheetJS;N;E"],g=[],p=Cn(u["!ref"]),x=null!=u["!data"],C="\r\n",D=(((f||{}).Workbook||{}).WBProps||{}).date1904;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&function c(u,h){h.forEach(function(f,m){var g="F;W"+(m+1)+" "+(m+1)+" ";f.hidden?g+="0":("number"==typeof f.width&&!f.wpx&&(f.wpx=Zb(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Jb(f.wpx)),"number"==typeof f.wch&&(g+=Math.round(f.wch)))," "!=g.charAt(g.length-1)&&u.push(g)})}(m,u["!cols"]),u["!rows"]&&function l(u,h){h.forEach(function(f,m){var g="F;";f.hidden?g+="M0;":f.hpt?g+="M"+20*f.hpt+";":f.hpx&&(g+="M"+20*ev(f.hpx)+";"),g.length>2&&u.push(g+"R"+(m+1))})}(m,u["!rows"]),m.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" ")),m.push("O;L;D;B"+(D?";V4":"")+";K47;G100 0.001");for(var z=p.s.r;z<=p.e.r;++z)if(!x||u["!data"][z]){for(var A=[],E=p.s.c;E<=p.e.c;++E)(v=x?u["!data"][z][E]:u[sn(E)+kn(z)])&&(null!=v.v||v.f&&!v.F)&&A.push(a(v,0,z,E));g.push(A.join(C))}return m.join(C)+C+g.join(C)+C+"E"+C}}}(),pX=function(){function n(a,c){for(var l=a.split("\n"),d=-1,u=-1,h=0,f=[];h!==l.length;++h)if("BOT"!==l[h].trim()){if(!(d<0)){for(var m=l[h].trim().split(","),g=m[0],p=m[1],v=l[++h]||"";1&(v.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=ir&&null==h.dense&&(h.dense=ir);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,v=0,x=0,C=0,D=0,z=f.charCodeAt(0),A=!1,E=0,V=d.charCodeAt(0),B=null!=h.dateNF?function bFe(t){var n="number"==typeof t?Et[t]:t;return n=n.replace(OQ,"(\\d+)"),new RegExp("^"+n+"$")}(h.dateNF):null;function X(){var ne=d.slice(C,D);"\r"==ne.slice(-1)&&(ne=ne.slice(0,-1));var Q={};if('"'==ne.charAt(0)&&'"'==ne.charAt(ne.length-1)&&(ne=ne.slice(1,-1).replace(/""/g,'"')),0===ne.length?Q.t="z":h.raw||0===ne.trim().length?(Q.t="s",Q.v=ne):61==ne.charCodeAt(0)?34==ne.charCodeAt(1)&&34==ne.charCodeAt(ne.length-1)?(Q.t="s",Q.v=ne.slice(2,-1).replace(/""/g,'"')):function nVe(t){return 1!=t.length}(ne)?(Q.t="n",Q.f=ne.slice(1)):(Q.t="s",Q.v=ne):"TRUE"==ne?(Q.t="b",Q.v=!0):"FALSE"==ne?(Q.t="b",Q.v=!1):isNaN(x=Gs(ne))?!isNaN((x=Hp(ne)).getDate())||B&&ne.match(B)?(Q.z=h.dateNF||Et[14],B&&ne.match(B)&&(ne=function vFe(t,n,e){var i=-1,r=-1,o=-1,s=-1,a=-1,c=-1;(n.match(OQ)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":i=f;break;case"d":o=f;break;case"h":s=f;break;case"s":c=f;break;case"m":s>=0?a=f:r=f}}),c>=0&&-1==a&&r>=0&&(a=r,r=-1);var l=(""+(i>=0?i:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var d=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==s&&-1==a&&-1==c?l:-1==i&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,ne.match(B)||[]),x=Fi(ne,1)),h.cellDates?(Q.t="d",Q.v=x):(Q.t="n",Q.v=pr(x)),!1!==h.cellText&&(Q.w=ys(Q.z,Q.v instanceof Date?pr(Q.v):Q.v)),h.cellNF||delete Q.z):(Q.t="s",Q.v=ne):(Q.t="n",!1!==h.cellText&&(Q.w=ne),Q.v=x),"z"==Q.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][v]=Q):m[dn({c:v,r:p})]=Q),V=d.charCodeAt(C=D+1),g.e.c0&&X(),m["!ref"]=Qt(g),m}(d,u):Gp(function n(d,u){var h=u||{},f=[];if(!d||0===d.length)return f;for(var m=d.split(/[\r\n]/),g=m.length-1;g>=0&&0===m[g].length;)--g;for(var p=10,v=0,x=0;x<=g;++x)-1==(v=m[x].indexOf(" "))?v=m[x].length:v++,p=Math.max(p,v);for(x=0;x<=g;++x){f[x]=[];var C=0;for(t(m[x].slice(0,p).trim(),f,x,C,h),C=1;C<=(m[x].length-p)/10+1;++C)t(m[x].slice(p+10*(C-1),p+10*C).trim(),f,x,C,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function a(d,u){var h="",f="string"==u.type?[0,0,0,0]:function ZF(t,n){var e="";switch((n||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=$s(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(d,u);switch(u.type){case"base64":h=$s(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Zt<"u"?Zt.utils.decode(u.codepage,d):on&&Buffer.isBuffer(d)?d.toString("binary"):Sc(d);break;case"array":h=Ih(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=ni(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=ni(h):"binary"==u.type&&typeof Zt<"u"&&u.codepage&&(h=Zt.utils.decode(u.codepage,Zt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?gX.to_sheet("string"==u.type?h:ni(h),u):s(h,u)}return{to_workbook:function c(d,u){return Zd(a(d,u),u)},to_sheet:a,from_sheet:function l(d){for(var f,u=[],h=Cn(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],v=h.s.c;v<=h.e.c;++v){var x=dn({r:g,c:v});if((f=m?(d["!data"][g]||[])[v]:d[x])&&null!=f.v){for(var C=(f.w||(Ac(f),f.w)||"").slice(0,10);C.length<10;)C+=" ";p.push(C+(0===v?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),Hh=function(){function t(F,te,K){if(F){Lr(F,F.l||0);for(var H=K.Enum||ge;F.l255||Qe.s.r>999999)break;Qe.e.cEn&&(Qe.s.c=En),rt=ft.read_shift(4),Qe.s.r>rt&&(Qe.s.r=rt),rt=ft.read_shift(4),Qe.e.rrt&&(Qe.s.r=rt),Qe.e.r0&&M>=0;){if(32&oi)switch(31&oi){case 2:Pn={t:"n",v:Pn.v+jo&65535};break;case 3:(Pn={t:"n",v:Pn.v+jo&65535}).v>32767&&(Pn.v-=65536);break;case 7:Pn={t:"s",v:fe[Mt=Mt+jo>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&oi)}else switch(31&oi){case 1:Pn={t:"z"};break;case 2:Pn={t:"n",v:ft.read_shift(2)};break;case 7:Pn={t:"s",v:fe[Mt=ft.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&oi)}!K.sheetStubs&&"z"==Pn.t||(null!=H["!data"]?(H["!data"][rt]||(H["!data"][rt]=[]),H["!data"][rt][En]=Pn):H[Ho+kn(rt)]=Pn),++rt,--M}}}F.l+=Vn}return hn}(F,te);if(0==F[2]&&(8==F[3]||9==F[3])&&F.length>=16&&5==F[14]&&108===F[15])throw new Error("Unsupported Works 3 for Mac file");if(2==F[2])K.Enum=ge,t(F,function(Ze,Ho,Pn){switch(Pn){case 0:K.vers=Ze,Ze>=4096&&(K.qpro=!0);break;case 255:K.vers=Ze,K.works=!0;break;case 6:rt=Ze;break;case 204:Ze&&(Ee=Ze);break;case 222:Ee=Ze;break;case 15:case 51:(!K.qpro&&!K.works||51==Pn)&&Ze[1].v.charCodeAt(0)<48&&(Ze[1].v=Ze[1].v.slice(1)),(K.works||K.works2)&&(Ze[1].v=Ze[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==Pn&&!(112&~Ze[2])&&(15&Ze[2])>1&&(15&Ze[2])<15&&(Ze[1].z=K.dateNF||Et[14],K.cellDates&&(Ze[1].t="d",Ze[1].v=rC(Ze[1].v))),K.qpro&&Ze[3]>$e&&(H["!ref"]=Qt(rt),Qe[fe]=H,M.push(fe),H={},K.dense&&(En=H["!data"]=[]),rt={s:{r:0,c:0},e:{r:0,c:0}},$e=Ze[3],fe=Ee||"Sheet"+($e+1),Ee="");var oi=K.dense?(En[Ze[0].r]||[])[Ze[0].c]:H[dn(Ze[0])];if(oi){oi.t=Ze[1].t,oi.v=Ze[1].v,null!=Ze[1].z&&(oi.z=Ze[1].z),null!=Ze[1].f&&(oi.f=Ze[1].f);break}K.dense?(En[Ze[0].r]||(En[Ze[0].r]=[]),En[Ze[0].r][Ze[0].c]=Ze[1]):H[dn(Ze[0])]=Ze[1];break;case 21509:K.works2=!0}},K);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);K.Enum=at,14==F[2]&&(K.qpro=!0,F.l=0),t(F,function(Ze,Ho,Pn){switch(Pn){case 204:fe=Ze;break;case 22:Ze[1].v.charCodeAt(0)<48&&(Ze[1].v=Ze[1].v.slice(1)),Ze[1].v=Ze[1].v.replace(/\x0F./g,function(oi){return String.fromCharCode(oi.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ze[3]>$e&&(H["!ref"]=Qt(rt),Qe[fe]=H,M.push(fe),H={},K.dense&&(En=H["!data"]=[]),rt={s:{r:0,c:0},e:{r:0,c:0}},fe="Sheet"+(($e=Ze[3])+1)),hn>0&&Ze[0].r>=hn)break;K.dense?(En[Ze[0].r]||(En[Ze[0].r]=[]),En[Ze[0].r][Ze[0].c]=Ze[1]):H[dn(Ze[0])]=Ze[1],rt.e.c=128?95:Ee)}return H.write_shift(1,0),H}function m(F,te,K){var H=ue(7);return H.write_shift(1,255),H.write_shift(2,te),H.write_shift(2,F),H.write_shift(2,K,"i"),H}function p(F,te,K){var H=ue(13);return H.write_shift(1,255),H.write_shift(2,te),H.write_shift(2,F),H.write_shift(8,K,"f"),H}function x(F,te,K){var H=32768&te;return te=(H?F:0)+((te&=-32769)>=8192?te-16384:te),(H?"":"$")+(K?sn(te):kn(te))}var C={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},D=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function A(F){var te=[{c:0,r:0},{t:"n",v:0},0];return te[0].r=F.read_shift(2),te[3]=F[F.l++],te[0].c=F[F.l++],te}function V(F,te,K,H){var fe=ue(6+H.length);fe.write_shift(2,F),fe.write_shift(1,K),fe.write_shift(1,te),fe.write_shift(1,39);for(var Ee=0;Ee=128?95:$e)}return fe.write_shift(1,0),fe}function X(F,te){var K=A(F),H=F.read_shift(4),fe=F.read_shift(4),Ee=F.read_shift(2);if(65535==Ee)return 0===H&&3221225472===fe?(K[1].t="e",K[1].v=15):0===H&&3489660928===fe?(K[1].t="e",K[1].v=42):K[1].v=0,K;var $e=32768&Ee;return Ee=(32767&Ee)-16446,K[1].v=(1-2*$e)*(fe*Math.pow(2,Ee+32)+H*Math.pow(2,Ee)),K}function ne(F,te,K,H){var fe=ue(14);if(fe.write_shift(2,F),fe.write_shift(1,K),fe.write_shift(1,te),0==H)return fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(2,65535),fe;var Ee=0,$e=0,M=0;return H<0&&(Ee=1,H=-H),$e=0|Math.log2(H),2147483648&(M=(H/=Math.pow(2,$e-31))>>>0)||(++$e,M=(H/=2)>>>0),H-=M,M|=2147483648,M>>>=0,H*=Math.pow(2,32),fe.write_shift(4,H>>>0),fe.write_shift(4,M),fe.write_shift(2,$e+=16383+(Ee?32768:0)),fe}function Ae(F,te){var K=A(F),H=F.read_shift(8,"f");return K[1].v=H,K}function ae(F,te){return 0==F[F.l+te-1]?F.read_shift(te,"cstr"):""}function Ye(F,te){var K=ue(5+F.length);K.write_shift(2,14e3),K.write_shift(2,te);for(var H=0;H127?95:fe}return K[K.l++]=0,K}var ge={0:{n:"BOF",f:sr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function a(F,te,K){var H={s:{c:0,r:0},e:{c:0,r:0}};return 8==te&&K.qpro?(H.s.c=F.read_shift(1),F.l++,H.s.r=F.read_shift(2),H.e.c=F.read_shift(1),F.l++,H.e.r=F.read_shift(2),H):(H.s.c=F.read_shift(2),H.s.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),H.e.c=F.read_shift(2),H.e.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),65535==H.s.c&&(H.s.c=H.e.c=H.s.r=H.e.r=0),H)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function f(F,te,K){var H=l(F,0,K);return H[1].v=F.read_shift(2,"i"),H}},14:{n:"NUMBER",f:function g(F,te,K){var H=l(F,0,K);return H[1].v=F.read_shift(8,"f"),H}},15:{n:"LABEL",f:function d(F,te,K){var H=F.l+te,fe=l(F,0,K);if(fe[1].t="s",20768==K.vers){F.l++;var Ee=F.read_shift(1);return fe[1].v=F.read_shift(Ee,"utf8"),fe}return K.qpro&&F.l++,fe[1].v=F.read_shift(H-F.l,"cstr"),fe}},16:{n:"FORMULA",f:function v(F,te,K){var H=F.l+te,fe=l(F,0,K);if(fe[1].v=F.read_shift(8,"f"),K.qpro)F.l=H;else{var Ee=F.read_shift(2);(function z(F,te){Lr(F,0);for(var K=[],H=0,fe="",Ee="",$e="",Qe="";F.lK.length)return void console.error("WK1 bad formula parse 0x"+M.toString(16)+":|"+K.join("|")+"|");var hn=K.slice(-H);K.length-=H,K.push(C[M][0]+"("+hn.join(",")+")")}}}1==K.length?te[1].f=""+K[0]:console.error("WK1 bad formula parse |"+K.join("|")+"|")})(F.slice(F.l,F.l+Ee),fe),F.l+=Ee}return fe}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:function h(F,te,K){var H=F.l+te,fe=l(F,0,K);if(fe[1].t="s",20768==K.vers){var Ee=F.read_shift(1);return fe[1].v=F.read_shift(Ee,"utf8"),fe}return fe[1].v=F.read_shift(H-F.l,"cstr"),fe}},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ae},222:{n:"SHEETNAMELP",f:function ee(F,te){var K=F[F.l++];K>te-1&&(K=te-1);for(var H="";H.length>1;if(1&K[1].v)switch(7&H){case 0:H=5e3*(H>>3);break;case 1:H=500*(H>>3);break;case 2:H=(H>>3)/20;break;case 3:H=(H>>3)/200;break;case 4:H=(H>>3)/2e3;break;case 5:H=(H>>3)/2e4;break;case 6:H=(H>>3)/16;break;case 7:H=(H>>3)/64}return K[1].v=H,K}},25:{n:"FORMULA19",f:function Q(F,te){var K=X(F);return F.l+=te-14,K}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function pe(F,te){for(var K={},H=F.l+te;F.l>6,K}},38:{n:"??"},39:{n:"NUMBER27",f:Ae},40:{n:"FORMULA28",f:function ve(F,te){var K=Ae(F);return F.l+=te-12,K}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ae},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function ye(F,te,K){if(K.qpro&&!(te<21)){var H=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[H,F.read_shift(te-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function i(F,te){var K=te||{};if(+K.codepage>=0&&ca(+K.codepage),"string"==K.type)throw new Error("Cannot write WK1 to JS string");var H=ws(),fe=Cn(F["!ref"]),Ee=null!=F["!data"],$e=[];je(H,0,function o(F){var te=ue(2);return te.write_shift(2,F),te}(1030)),je(H,6,function c(F){var te=ue(8);return te.write_shift(2,F.s.c),te.write_shift(2,F.s.r),te.write_shift(2,F.e.c),te.write_shift(2,F.e.r),te}(fe));for(var Qe=Math.min(fe.e.r,8191),M=fe.s.c;M<=fe.e.c;++M)$e[M]=sn(M);for(var Mt=fe.s.r;Mt<=Qe;++Mt){var En=kn(Mt);for(M=fe.s.c;M<=fe.e.c;++M){var rt=Ee?(F["!data"][Mt]||[])[M]:F[$e[M]+En];rt&&"z"!=rt.t&&("n"==rt.t?(0|rt.v)==rt.v&&rt.v>=-32768&&rt.v<=32767?je(H,13,m(Mt,M,rt.v)):je(H,14,p(Mt,M,rt.v)):je(H,15,u(Mt,M,Ac(rt).slice(0,239))))}}return je(H,1),H.end()},book_to_wk3:function r(F,te){var K=te||{};if(+K.codepage>=0&&ca(+K.codepage),"string"==K.type)throw new Error("Cannot write WK3 to JS string");var H=ws();je(H,0,function s(F){var te=ue(26);te.write_shift(2,4096),te.write_shift(2,4),te.write_shift(4,0);for(var K=0,H=0,fe=0,Ee=0;Ee8191&&(K=8191),te.write_shift(2,K),te.write_shift(1,fe),te.write_shift(1,H),te.write_shift(2,0),te.write_shift(2,0),te.write_shift(1,1),te.write_shift(1,2),te.write_shift(4,0),te.write_shift(4,0),te}(F));for(var fe=0,Ee=0;fe=0;--o)n=((16384&n?1:0)|n<<1&32767)^e[o];return 52811^n}function Yb(t){for(var n=0,e=1;3!=n;++n)e=256*e+(t[n]>255?255:t[n]<0?0:t[n]);return e.toString(16).toUpperCase().slice(1)}var Uo=6;function Zb(t){return Math.floor((t+Math.round(128/Uo)/256)*Uo)}function Jb(t){return Math.floor((t-5)/Uo*100+.5)/100}function xC(t){return Math.round((t*Uo+5)/Uo*256)/256}function eu(t){t.width?(t.wpx=Zb(t.width),t.wch=Jb(t.wpx),t.MDW=Uo):t.wpx?(t.wch=Jb(t.wpx),t.width=xC(t.wch),t.MDW=Uo):"number"==typeof t.wch&&(t.width=xC(t.wch),t.wpx=Zb(t.width),t.MDW=Uo),t.customWidth&&delete t.customWidth}var wX=96;function ev(t){return 96*t/wX}function Kp(t){return t*wX/96}function FLe(t,n,e){e||(e=ue(6+4*n.length)),e.write_shift(2,t),Br(n,e);var i=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),i}var OF,LLe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],VLe=No;function kX(t,n){n||(n=ue(84)),OF||(OF=tC(LLe));var e=OF[t.patternType];null==e&&(e=40),n.write_shift(4,e);var i=0;if(40!=e)for(dC({auto:1},n),dC({auto:1},n);i<12;++i)n.write_shift(4,0);else{for(;i<4;++i)n.write_shift(4,0);for(;i<12;++i)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function CX(t,n,e){return e||(e=ue(16)),e.write_shift(2,n||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function tv(t,n){return n||(n=ue(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var ULe=No;function e3e(t,n){var e=ws();return ke(e,278),function GLe(t,n){if(n){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)null!=n[r]&&++e}),0!=e&&(ke(t,615,Ua(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)null!=n[r]&&ke(t,44,FLe(r,n[r]))}),ke(t,616))}}(e,t.SSF),function WLe(t){ke(t,611,Ua(1)),ke(t,43,function NLe(t,n){n||(n=ue(153)),n.write_shift(2,20*t.sz),function mOe(t,n){n||(n=ue(2)),n.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),n.write_shift(1,0)}(t,n),n.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),n.write_shift(2,e),n.write_shift(1,t.underline||0),n.write_shift(1,t.family||0),n.write_shift(1,t.charset||0),n.write_shift(1,0),dC(t.color,n);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),n.write_shift(1,i),Br(t.name,n),n.length>n.l?n.slice(0,n.l):n}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ke(t,612)}(e),function qLe(t){ke(t,603,Ua(2)),ke(t,45,kX({patternType:"none"})),ke(t,45,kX({patternType:"gray125"})),ke(t,604)}(e),function QLe(t){ke(t,613,Ua(1)),ke(t,46,function zLe(t,n){return n||(n=ue(51)),n.write_shift(1,0),tv(0,n),tv(0,n),tv(0,n),tv(0,n),tv(0,n),n.length>n.l?n.slice(0,n.l):n}()),ke(t,614)}(e),function KLe(t){ke(t,626,Ua(1)),ke(t,47,CX({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ke(t,627)}(e),function XLe(t,n){ke(t,617,Ua(n.length)),n.forEach(function(e){ke(t,47,CX(e,0))}),ke(t,618)}(e,n.cellXfs),function YLe(t){ke(t,619,Ua(1)),ke(t,48,function HLe(t,n){return n||(n=ue(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),Wb(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}({xfId:0,builtinId:0,name:"Normal"})),ke(t,620)}(e),function ZLe(t){ke(t,505,Ua(0)),ke(t,506)}(e),function JLe(t){ke(t,508,function jLe(t,n,e){var i=ue(2052);return i.write_shift(4,t),Wb(n,i),Wb(e,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),ke(t,509)}(e),ke(e,279),e.end()}function NF(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[rr];return e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e.join("")}function EX(t,n){var e=[21600,21600],i=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Ne("xml",null,{"xmlns:v":Ws.v,"xmlns:o":Ws.o,"xmlns:x":Ws.x,"xmlns:mv":Ws.mv}).replace(/\/>/,">"),Ne("o:shapelayout",Ne("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,s=n||[];return s.length>0&&r.push(Ne("v:shapetype",[Ne("v:stroke",null,{joinstyle:"miter"}),Ne("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:i})),s.forEach(function(a){++o,r.push(function F3e(t,n){var e=Wn(t[0]),i={color2:"#BEFF82",type:"gradient"};"gradient"==i.type&&(i.angle="-180");var r="gradient"==i.type?Ne("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ne("v:fill",r,i);return["",o,Ne("v:shadow",null,{on:"t",obscured:"t"}),Ne("v:path",null,{"o:connecttype":"none"}),'
','',"","",fo("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),fo("x:AutoFill","False"),fo("x:Row",String(e.r)),fo("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(a,o))}),r.push(""),r.join("")}function N3e(t){var n=[rr,Ne("comments",null,{xmlns:Ah[0]})],e=[];return n.push(""),t.forEach(function(i){i[1].forEach(function(r){var o=tn(r.a);-1==e.indexOf(o)&&(e.push(o),n.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),n.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),n.push("SheetJ5")),n.push(""),n.push(""),t.forEach(function(i){var r=0,o=[],s=0;if(i[1][0]&&i[1][0].T&&i[1][0].ID&&(r=e.indexOf("tc="+i[1][0].ID)),i[1].forEach(function(l){l.a&&(r=e.indexOf(tn(l.a))),l.T&&++s,o.push(null==l.t?"":tn(l.t))}),0===s)i[1].forEach(function(l){n.push(''),n.push(fo("t",null==l.t?"":tn(l.t))),n.push("")});else{n.push('');for(var a="Comment:\n "+o[0]+"\n",c=1;c")}}),n.push(""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function V3e(t,n,e){var i=[rr,Ne("ThreadedComments",null,{xmlns:Nr.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(s,a){if(s.T){s.a&&-1==n.indexOf(s.a)&&n.push(s.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==a?o=c.id:c.parentId=o,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+n.indexOf(s.a)).slice(-12)+"}"),i.push(Ne("threadedComment",fo("text",s.t||""),c))}else delete s.ID})}),i.push(""),i.join("")}var j3e=Lo;function W3e(t){var n=ws(),e=[];return ke(n,628),ke(n,630),t.forEach(function(i){i[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),ke(n,632,function $3e(t){return Br(t.slice(0,54))}(r.a)))})}),ke(n,631),ke(n,633),t.forEach(function(i){i[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:Wn(i[0]),e:Wn(i[0])};ke(n,635,function H3e(t,n){return null==n&&(n=ue(36)),n.write_shift(4,t[1].iauthor),Wp(t[0],n),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n}([o,r])),r.t&&r.t.length>0&&ke(n,637,function cOe(t,n){var e=!1;return null==n&&(e=!0,n=ue(23+4*t.t.length)),n.write_shift(1,1),Br(t.t,n),n.write_shift(4,1),function oOe(t,n){n||(n=ue(4)),n.write_shift(2,t.ich||0),n.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},n),e?n.slice(0,n.l):n}(r)),ke(n,636),delete r.iauthor})}),ke(n,634),ke(n,629),n.end()}var X3e=["xlsb","xlsm","xlam","biff8","xla"],jh=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,n={r:0,c:0};function e(i,r,o,s){var a=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==s.length?a=!0:"["==s.charAt(0)&&(a=!0,s=s.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=s.length>0?0|parseInt(s,10):0;return a?d+=n.c:--d,c?l+=n.r:--l,r+(a?"":"$")+sn(d)+(c?"":"$")+kn(l)}return function(r,o){return n=o,r.replace(t,e)}}(),LF=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,CC=function(){return function(n,e){return n.replace(LF,function(i,r,o,s,a,c){var l=uF(s)-(o?0:e.c),d=dF(c)-(a?0:e.r);return r+"R"+("$"==a?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function DX(t,n){return t.replace(LF,function(e,i,r,o,s,a){return i+("$"==r?r+o:sn(uF(o)+n.c))+("$"==s?s+a:kn(dF(a)+n.r))})}function br(t){t.l+=1}function tu(t,n){var e=t.read_shift(1==n?1:2);return[16383&e,e>>14&1,e>>15&1]}function AX(t,n,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return MX(t);12==e.biff&&(i=4)}var r=t.read_shift(i),o=t.read_shift(i),s=tu(t,2),a=tu(t,2);return{s:{r,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:a[0],cRel:a[1],rRel:a[2]}}}function MX(t){var n=tu(t,2),e=tu(t,2),i=t.read_shift(1),r=t.read_shift(1);return{s:{r:n[0],c:i,cRel:n[1],rRel:n[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function RX(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return function rVe(t){var n=tu(t,2),e=t.read_shift(1);return{r:n[0],c:e,cRel:n[1],rRel:n[2]}}(t);var i=t.read_shift(e&&12==e.biff?4:2),r=tu(t,2);return{r:i,c:r[0],cRel:r[1],rRel:r[2]}}function oVe(t){var n=t.read_shift(2),e=t.read_shift(2);return{r:n,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function PX(t){var n=1&t[t.l+1];return t.l+=4,[n,1]}function FX(t){return[t.read_shift(1),t.read_shift(1)]}function FVe(t,n){var e=[t.read_shift(1)];if(12==n)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function or(t,n){return 1===t.read_shift(n)}(t,1)?"TRUE":"FALSE",12!=n&&(t.l+=7);break;case 37:case 16:e[1]=Ml[t[t.l]],t.l+=12==n?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Vo(t);break;case 2:e[1]=function Uh(t,n,e){if(e.biff>5)return function Xb(t,n,e){var i=t.read_shift(e&&2==e.biff?1:2);return 0===i?(t.l++,""):function Bh(t,n,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(n,"cpstr");if(e.biff>=12)return t.read_shift(n,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(n,0===r?"sbcs-cont":"dbcs-cont")}(t,i,e)}(t,0,e);var i=t.read_shift(1);return 0===i?(t.l++,""):t.read_shift(i,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:n>0&&n<8?2:n});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function OVe(t,n,e){for(var i=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=i;++o)r.push((12==e.biff?Oh:_C)(t,8));return r}function NVe(t,n,e){var i=0,r=0;12==e.biff?(i=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),i=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--i,0==--r&&(r=256));for(var o=0,s=[];o!=i&&(s[o]=[]);++o)for(var a=0;a!=r;++a)s[o][a]=FVe(t,e.biff);return s}function nv(t,n,e){return t.l+=2,[oVe(t)]}function VF(t){return t.l+=6,[]}function OX(t){return t.l+=2,[sr(t),1&t.read_shift(2)]}var nBe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],NX={1:{n:"PtgExp",f:function DVe(t,n,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:No},3:{n:"PtgAdd",f:br},4:{n:"PtgSub",f:br},5:{n:"PtgMul",f:br},6:{n:"PtgDiv",f:br},7:{n:"PtgPower",f:br},8:{n:"PtgConcat",f:br},9:{n:"PtgLt",f:br},10:{n:"PtgLe",f:br},11:{n:"PtgEq",f:br},12:{n:"PtgGe",f:br},13:{n:"PtgGt",f:br},14:{n:"PtgNe",f:br},15:{n:"PtgIsect",f:br},16:{n:"PtgUnion",f:br},17:{n:"PtgRange",f:br},18:{n:"PtgUplus",f:br},19:{n:"PtgUminus",f:br},20:{n:"PtgPercent",f:br},21:{n:"PtgParen",f:br},22:{n:"PtgMissArg",f:br},23:{n:"PtgStr",f:function PVe(t,n,e){return t.l++,Kb(t,0,e)}},26:{n:"PtgSheet",f:function oBe(t,n,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function sBe(t,n,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function IVe(t){return t.l++,Ml[t.read_shift(1)]}},29:{n:"PtgBool",f:function MVe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function AVe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function RVe(t){return t.l++,Vo(t)}},32:{n:"PtgArray",f:function fVe(t,n,e){var i=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[i]}},33:{n:"PtgFunc",f:function CVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[VBe[r],UX[r],i]}},34:{n:"PtgFuncVar",f:function TVe(t,n,e){var i=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==i?-1:0,t.read_shift(1)]:function EVe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?UX:LBe)[o[1]]]}},35:{n:"PtgName",f:function LVe(t,n,e){var i=t.read_shift(1)>>>5&3,o=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[i,0,o]}},36:{n:"PtgRef",f:function xVe(t,n,e){var i=(96&t[t.l])>>5;return t.l+=1,[i,RX(t,0,e)]}},37:{n:"PtgArea",f:function cVe(t,n,e){return[(96&t[t.l++])>>5,AX(t,0,e)]}},38:{n:"PtgMemArea",f:function UVe(t,n,e){var i=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[i,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:No},40:{n:"PtgMemNoMem",f:No},41:{n:"PtgMemFunc",f:function zVe(t,n,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function HVe(t,n,e){var i=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[i]}},43:{n:"PtgAreaErr",f:function dVe(t,n,e){var i=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[i]}},44:{n:"PtgRefN",f:function wVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=function sVe(t,n,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return function aVe(t){var n=t.read_shift(2),e=t.read_shift(1),i=(32768&n)>>15,r=(16384&n)>>14;return n&=16383,1==i&&n>=8192&&(n-=16384),1==r&&e>=128&&(e-=256),{r:n,c:e,cRel:r,rRel:i}}(t);var r=t.read_shift(i>=12?4:2),o=t.read_shift(2),s=(16384&o)>>14,a=(32768&o)>>15;if(o&=16383,1==a)for(;r>524287;)r-=1048576;if(1==s)for(;o>8191;)o-=16384;return{r,c:o,cRel:s,rRel:a}}(t,0,e);return[i,r]}},45:{n:"PtgAreaN",f:function hVe(t,n,e){var i=(96&t[t.l++])>>5,r=function iVe(t,n,e){if(e.biff<8)return MX(t);var i=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=tu(t,2),s=tu(t,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:s[0],cRel:s[1],rRel:s[2]}}}(t,0,e);return[i,r]}},46:{n:"PtgMemAreaN",f:function aBe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function cBe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function VVe(t,n,e){return 5==e.biff?function BVe(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var i=t.read_shift(2);return t.l+=12,[n,e,i]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function kVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[i,r,RX(t,0,e)]}},59:{n:"PtgArea3d",f:function lVe(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[i,r,AX(t,0,e)]}},60:{n:"PtgRefErr3d",f:function jVe(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[i,r]}},61:{n:"PtgAreaErr3d",f:function uVe(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[i,r]}},255:{}},dBe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},uBe={1:{n:"PtgElfLel",f:OX},2:{n:"PtgElfRw",f:nv},3:{n:"PtgElfCol",f:nv},6:{n:"PtgElfRwV",f:nv},7:{n:"PtgElfColV",f:nv},10:{n:"PtgElfRadical",f:nv},11:{n:"PtgElfRadicalS",f:VF},13:{n:"PtgElfColS",f:VF},15:{n:"PtgElfColSV",f:VF},16:{n:"PtgElfRadicalLel",f:OX},25:{n:"PtgList",f:function iBe(t){t.l+=2;var n=t.read_shift(2),e=t.read_shift(2),i=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:n,coltype:3&e,rt:nBe[e>>2&31],idx:i,c:r,C:o}}},29:{n:"PtgSxName",f:function rBe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},hBe={0:{n:"PtgAttrNoop",f:function lBe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function bVe(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[i]}},2:{n:"PtgAttrIf",f:function gVe(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function mVe(t,n,e){t.l+=2;for(var i=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=i;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function pVe(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function SVe(t,n,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:PX},33:{n:"PtgAttrBaxcel",f:PX},64:{n:"PtgAttrSpace",f:function vVe(t){return t.read_shift(2),FX(t)}},65:{n:"PtgAttrSpaceSemi",f:function yVe(t){return t.read_shift(2),FX(t)}},128:{n:"PtgAttrIfError",f:function _Ve(t){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},255:{}};function iv(t,n,e,i){if(i.biff<8)return No(t,n);for(var r=t.l+n,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=NVe(t,0,i),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=OVe(t,0,i),o.push(e[s][2]);break;case"PtgExp":i&&12==i.biff&&(e[s][1][1]=t.read_shift(4),o.push(e[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[s][0]}return 0!=(n=r-t.l)&&o.push(No(t,n)),o}function fBe(t){for(var n=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function pBe(t,n){var e=t.lastIndexOf("!"),i=n.lastIndexOf("!");return-1==e&&-1==i?t+":"+n:e>0&&i>0&&t.slice(0,e).toLowerCase()==n.slice(0,i).toLowerCase()?t+":"+n.slice(i+1):(console.error("Cannot hydrate range",t,n),t+":"+n)}function LX(t,n,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[n]))return t.SheetNames[n];if(!t.XTI)return"SH33TJSERR6";var i=t.XTI[n];if(e.biff<8)return n>1e4&&(n-=65536),n<0&&(n=-n),0==n?"":t.XTI[n-1];if(!i)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[i[0]][0]){case 357:return r=-1==i[1]?"#REF":t.SheetNames[i[1]],i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[i[0]][0];default:return"SH33TJSSRC"+t[i[0]][0]}switch(t[i[0]][0][0]){case 1025:return r=-1==i[1]?"#REF":t.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 14849:return t[i[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[i[0]][0][3]?(r=-1==i[1]?"#REF":t[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?r:r+":"+t[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function VX(t,n,e){var i=LX(t,n,e);return"#REF"==i?i:Gb(i,e)}function zo(t,n,e,i,r){var c,l,d,f,o=r&&r.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},a=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",v=0,x=t[0].length;v=0){switch(t[0][g][1][0]){case 0:p=Rn(" ",t[0][g][1][1]);break;case 1:p=Rn("\r",t[0][g][1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}l+=p,g=-1}a.push(l+mBe[C[0]]+c);break;case"PtgIsect":c=a.pop(),l=a.pop(),a.push(l+" "+c);break;case"PtgUnion":c=a.pop(),l=a.pop(),a.push(l+","+c);break;case"PtgRange":c=a.pop(),l=a.pop(),a.push(pBe(l,c));break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":d=Hb(C[1][1],s,r),a.push(jb(d,o));break;case"PtgRefN":d=e?Hb(C[1][1],e,r):C[1][1],a.push(jb(d,o));break;case"PtgRef3d":u=C[1][1],d=Hb(C[1][2],s,r),m=VX(i,u,r),a.push(m+"!"+jb(d,o));break;case"PtgFunc":case"PtgFuncVar":var z=C[1][0],A=C[1][1];z||(z=0);var E=0==(z&=127)?[]:a.slice(-z);a.length-=z,"User"===A&&(A=E.shift()),a.push(A+"("+E.join(",")+")");break;case"PtgBool":a.push(C[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":a.push(C[1]);break;case"PtgNum":a.push(String(C[1]));break;case"PtgStr":a.push('"'+C[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=_K(C[1][1],e?{s:e}:s,r),a.push(lF(f,r));break;case"PtgArea":f=_K(C[1][1],s,r),a.push(lF(f,r));break;case"PtgArea3d":f=C[1][2],m=VX(i,u=C[1][1],r),a.push(m+"!"+lF(f,r));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgName":var V=(i.names||[])[(h=C[1][2])-1]||(i[0]||[])[h],B=V?V.Name:"SH33TJSNAME"+String(h);B&&"_xlfn."==B.slice(0,6)&&!r.xlfn&&(B=B.slice(6)),a.push(B);break;case"PtgNameX":var ne,X=C[1][1];if(h=C[1][2],!(r.biff<=5)){var Q="";if(14849==((i[X]||[])[0]||[])[0]||(1025==((i[X]||[])[0]||[])[0]?i[X][h]&&i[X][h].itab>0&&(Q=i.SheetNames[i[X][h].itab-1]+"!"):Q=i.SheetNames[h-1]+"!"),i[X]&&i[X][h])Q+=i[X][h].Name;else if(i[0]&&i[0][h])Q+=i[0][h].Name;else{var Te=(LX(i,X,r)||"").split(";;");Te[h-1]?Q=Te[h-1]:Q+="SH33TJSERRX"}a.push(Q);break}X<0&&(X=-X),i[X]&&(ne=i[X][h]),ne||(ne={Name:"SH33TJSERRY"}),a.push(ne.Name);break;case"PtgParen":var Ae="(",ve=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:Ae=Rn(" ",t[0][g][1][1])+Ae;break;case 3:Ae=Rn("\r",t[0][g][1][1])+Ae;break;case 4:ve=Rn(" ",t[0][g][1][1])+ve;break;case 5:ve=Rn("\r",t[0][g][1][1])+ve;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}a.push(Ae+a.pop()+ve);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":a.push("#REF!");break;case"PtgExp":var ae={c:e.c,r:e.r};if(i.sharedf[dn(d={c:C[1][1],r:C[1][0]})]){var ee=i.sharedf[dn(d)];a.push(zo(ee,0,ae,i,r))}else{var ye=!1;for(c=0;c!=i.arrayf.length;++c)if(!(d.c<(l=i.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){a.push(zo(l[1],0,ae,i,r)),ye=!0;break}ye||a.push(C[1])}break;case"PtgArray":a.push("{"+fBe(C[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=v;break;case"PtgMissArg":a.push("");break;case"PtgList":a.push("Table"+C[1].idx+"[#"+C[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(C))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][v][0])){var Ye=!0;switch((C=t[0][g])[1][0]){case 4:Ye=!1;case 0:p=Rn(" ",C[1][1]);break;case 5:Ye=!1;case 1:p=Rn("\r",C[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+C[1][0])}a.push((Ye?p:"")+a.pop()+(Ye?"":p)),g=-1}}if(a.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==a[0]||"FALSE"!=a[0]&&a[0]}function TC(t,n,e){var i=t.read_shift(4),r=function rv(t,n,e){for(var r,o,i=t.l+n,s=[];i!=t.l;)n=i-t.l,r=NX[o=t[t.l]]||NX[dBe[o]],(24===o||25===o)&&(r=(24===o?uBe:hBe)[t[t.l+1]]),r&&r.f?s.push([r.n,r.f(t,n,e)]):No(t,n);return s}(t,i,e),o=t.read_shift(4);return[r,o>0?iv(t,o,r,e):null]}var kBe=TC,EC=TC,CBe=TC,TBe=TC;function BX(t){if((0|t)==t&&t=0){var n=ue(11);return n.write_shift(4,3),n.write_shift(1,30),n.write_shift(2,t),n.write_shift(4,0),n}var e=ue(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var NBe=function OBe(t,n){if("number"==typeof t)return BX(t);if("boolean"==typeof t)return function SBe(t){var n=ue(10);return n.write_shift(4,2),n.write_shift(1,29),n.write_shift(1,t?1:0),n.write_shift(4,0),n}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function EBe(t){var n=ue(10);return n.write_shift(4,2),n.write_shift(1,28),n.write_shift(1,t),n.write_shift(4,0),n}(+yF[t]);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function IBe(t){var n=Wn(t),e=ue(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,n.r),e.write_shift(2,n.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),e.write_shift(4,0),e}(t);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function RBe(t){var n=t.split(":"),e=n[0],i=ue(23);i.write_shift(4,15);var r=Wn(e=n[0]);return i.write_shift(1,36),i.write_shift(4,r.r),i.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),i.write_shift(4,0),r=Wn(e=n[1]),i.write_shift(1,36),i.write_shift(4,r.r),i.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),i.write_shift(4,0),i.write_shift(1,17),i.write_shift(4,0),i}(t);if(t.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function FBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=Vr(t),o=ue(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+n.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,r.s.r),o.write_shift(4,r.e.r),o.write_shift(2,r.s.c),o.write_shift(2,r.e.c),o.write_shift(4,0),o}(t,n);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function ABe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e),r=Wn(t=t.slice(e+1));"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var o=ue(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,r.r),o.write_shift(2,r.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),o.write_shift(4,0),o}(t,n);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function PBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");s=r[0];var o=ue(27);o.write_shift(4,19);var s=r[0],a=Wn(s);return o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,a.r),o.write_shift(2,a.c|("$"==s.charAt(0)?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),a=Wn(s=r[1]),o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,a.r),o.write_shift(2,a.c|("$"==s.charAt(0)?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,n);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function MBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=ue(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+n.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(i.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,n);if(/^".*"$/.test(t))return function DBe(t){var n=ue(7);n.write_shift(4,3+2*t.length),n.write_shift(1,23),n.write_shift(2,t.length);var e=ue(2*t.length);e.write_shift(2*t.length,t,"utf16le");var i=ue(4);return i.write_shift(4,0),mr([n,e,i])}(t);if(/^[+-]\d+$/.test(t))return BX(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},LBe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},UX={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},VBe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function BBe(t){return("of:="+t.replace(LF,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function HX(t){return t.replace(/!/,".")}var sv=typeof Map<"u";function zF(t,n,e){var i=0,r=t.length;if(e){if(sv?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var o=sv?e.get(n):e[n];i-1?(e.width=xC(i),e.customWidth=1):null!=n.width&&(e.width=n.width),n.hidden&&(e.hidden=!0),null!=n.level&&(e.outlineLevel=e.level=n.level),e}function $h(t,n){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==n&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function nu(t,n,e){var i=e.revssf[null!=n.z?n.z:"General"],r=60,o=t.length;if(null==i&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Yd(n.z,r),e.ssf[r]=n.z,e.revssf[n.z]=i=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===i)return r;return t[o]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function UBe(t,n,e){if(t&&t["!ref"]){var i=Cn(t["!ref"]);if(i.e.c"u")return"";var r="",o=t.t,s=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=Ml[t.v];break;case"d":i&&i.cellDates?r=Fi(t.v,-1).toISOString():((t=ei(t)).t="n",r=""+(t.v=pr(Fi(t.v)))),typeof t.z>"u"&&(t.z=Et[14]);break;default:r=t.v}var a="z"==t.t||null==t.v?"":fo("v",tn(r)),c={r:n},l=nu(i.cellXfs,t,i);switch(0!==l&&(c.s=l),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){a=fo("v",""+zF(i.Strings,t.v,i.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=s),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,n.length)==n?{t:"array",ref:t.F}:null;a=Ne("f",tn(t.f),d)+(null!=t.v?a:"")}return t.l&&(t.l.display=tn(r),e["!links"].push([n,t.l])),t.D&&(c.cm=1),Ne("c",a,c)}function _5e(t,n,e,i){var s,r=[rr,Ne("worksheet",null,{xmlns:Ah[0],"xmlns:r":Nr.r})],a="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Cn(l);if(d.e.c>16383||d.e.r>1048575){if(n.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),l=Qt(d)}i||(i={}),c["!comments"]=[];var u=[];(function e5e(t,n,e,i,r){var o=!1,s={},a=null;if("xlsx"!==i.bookType&&n.vbaraw){var c=n.SheetNames[e];try{n.Workbook&&(c=n.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,s.codeName=Ic(tn(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),a=(a||"")+Ne("outlinePr",null,l)}!o&&!a||(r[r.length]=Ne("sheetPr",a,s))})(c,e,t,n,r),r[r.length]=Ne("dimension",null,{ref:l}),r[r.length]=function f5e(t,n,e,i){var r={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),Ne("sheetViews",Ne("sheetView",null,r),{})}(0,0,0,e),n.sheetFormat&&(r[r.length]=Ne("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function c5e(t,n){for(var i,e=[""],r=0;r!=n.length;++r)(i=n[r])&&(e[e.length]=Ne("col",null,SC(r,i)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[s=r.length]="",c["!links"]=[],null!=c["!ref"]&&(a=function g5e(t,n,e,i){var c,p,r=[],o=[],s=Cn(t["!ref"]),a="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},v=-1;for(h=s.s.c;h<=s.e.c;++h)d[h]=sn(h);for(u=s.s.r;u<=s.e.r;++u){for(o=[],l=kn(u),h=s.s.c;h<=s.e.c;++h){c=d[h]+l;var x=m?(t["!data"][u]||[])[h]:t[c];void 0!==x&&null!=(a=m5e(x,c,t,n))&&o.push(a)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),v=-1,p.hpx?v=ev(p.hpx):p.hpt&&(v=p.hpt),v>-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Ne("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Ne("row","",g));return r.join("")}(c,n),a.length>0&&(r[r.length]=a)),r.length>s+1&&(r[r.length]="",r[s]=r[s].replace("/>",">")),c["!protect"]&&(r[r.length]=function i5e(t){var n={sheet:1};return t5e.forEach(function(e){null!=t[e]&&t[e]&&(n[e]="1")}),n5e.forEach(function(e){null!=t[e]&&!t[e]&&(n[e]="0")}),t.password&&(n.password=RF(t.password).toString(16).toUpperCase()),Ne("sheetProtection",null,n)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function d5e(t,n,e,i){var r="string"==typeof t.ref?t.ref:Qt(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,s=Vr(r);s.s.r==s.e.r&&(s.e.r=Vr(n["!ref"]).e.r,r=Qt(s));for(var a=0;a0&&(r[r.length]=function ZBe(t){if(0===t.length)return"";for(var n='',e=0;e!=t.length;++e)n+='';return n+""}(c["!merges"]));var f,h=-1,m=-1;return c["!links"].length>0&&(r[r.length]="",c["!links"].forEach(function(g){g[1].Target&&(f={ref:g[0]},"#"!=g[1].Target.charAt(0)&&(m=ii(i,-1,tn(g[1].Target).replace(/#.*$/,""),nn.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=tn(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=tn(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Ne("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function s5e(t){return $h(t),Ne("pageMargins",null,t)}(c["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&(r[r.length]=fo("ignoredErrors",Ne("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ii(i,-1,"../drawings/drawing"+(t+1)+".xml",nn.DRAW),r[r.length]=Ne("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ii(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",nn.VML),r[r.length]=Ne("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function y5e(t,n,e,i){var r=function v5e(t,n,e){var i=ue(145),r=(e["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var o=320;r.hpx?o=20*ev(r.hpx):r.hpt&&(o=20*r.hpt),i.write_shift(2,o),i.write_shift(1,0);var s=0;r.level&&(s|=r.level),r.hidden&&(s|=16),(r.hpx||r.hpt)&&(s|=32),i.write_shift(1,s),i.write_shift(1,0);var a=0,c=i.l;i.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(n.s.c>u+1<<10||n.e.ci.l?i.slice(0,i.l):i}(i,e,n);(r.length>17||(n["!rows"]||[])[i])&&ke(t,0,r)}var x5e=Oh,w5e=Wp;var r8e=Oh,o8e=Wp,WX=["left","right","top","bottom","header","footer"];function w8e(t,n,e,i,r,o,s){var a={r:e,c:i};if(n.c&&o["!comments"].push([dn(a),n.c]),void 0===n.v)return!1;var c="";switch(n.t){case"b":c=n.v?"1":"0";break;case"d":(n=ei(n)).z=n.z||Et[14],n.v=pr(Fi(n.v)),n.t="n";break;case"n":case"e":c=""+n.v;break;default:c=n.v}switch(a.s=nu(r.cellXfs,n,r),n.l&&o["!links"].push([dn(a),n.l]),n.t){case"s":case"str":return r.bookSST?(c=zF(r.Strings,null==n.v?"":String(n.v),r.revStrings),a.t="s",a.v=c,s?ke(t,18,function z5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),e.write_shift(4,n.v),e}(0,a)):ke(t,7,function B5e(t,n,e){return null==e&&(e=ue(12)),Rh(n,e),e.write_shift(4,n.v),e}(0,a))):(a.t="str",s?ke(t,17,function J5e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(8+4*i.length)),Fh(n,e),Br(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a)):ke(t,6,function Y5e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(12+4*t.v.length)),Rh(n,e),Br(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a))),!0;case"n":return n.v==(0|n.v)&&n.v>-1e3&&n.v<1e3?s?ke(t,13,function Q5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),xK(t.v,e),e}(n,a)):ke(t,2,function W5e(t,n,e){return null==e&&(e=ue(12)),Rh(n,e),xK(t.v,e),e}(n,a)):s?ke(t,16,function $5e(t,n,e){return null==e&&(e=ue(12)),Fh(n,e),Nh(t.v,e),e}(n,a)):ke(t,5,function j5e(t,n,e){return null==e&&(e=ue(16)),Rh(n,e),Nh(t.v,e),e}(n,a)),!0;case"b":return a.t="b",s?ke(t,15,function P5e(t,n,e){return null==e&&(e=ue(5)),Fh(n,e),e.write_shift(1,t.v?1:0),e}(n,a)):ke(t,4,function M5e(t,n,e){return null==e&&(e=ue(9)),Rh(n,e),e.write_shift(1,t.v?1:0),e}(n,a)),!0;case"e":return a.t="e",s?ke(t,14,function L5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(n,a)):ke(t,3,function O5e(t,n,e){return null==e&&(e=ue(9)),Rh(n,e),e.write_shift(1,t.v),e}(n,a)),!0}return s?ke(t,12,function I5e(t,n,e){return null==e&&(e=ue(4)),Fh(n,e)}(0,a)):ke(t,1,function S5e(t,n,e){return null==e&&(e=ue(8)),Rh(n,e)}(0,a)),!0}function R8e(t,n,e,i){var r=ws(),o=e.SheetNames[t],s=e.Sheets[o]||{},a=o;try{e&&e.Workbook&&(a=e.Workbook.Sheets[t].CodeName||a)}catch{}var c=Cn(s["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(n.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],ke(r,129),(e.vbaraw||s["!outline"])&&ke(r,147,function T5e(t,n,e){null==e&&(e=ue(84+4*t.length));var i=192;n&&(n.above&&(i&=-65),n.left&&(i&=-129)),e.write_shift(1,i);for(var r=1;r<3;++r)e.write_shift(1,0);return dC({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),yK(t,e),e.slice(0,e.l)}(a,s["!outline"])),ke(r,148,w5e(c)),function A8e(t,n,e){ke(t,133),ke(t,137,function g8e(t,n,e){null==e&&(e=ue(30));var i=924;return(((n||{}).Views||[])[0]||{}).RTL&&(i|=32),e.write_shift(2,i),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),ke(t,138),ke(t,134)}(r,0,e.Workbook),function T8e(t,n){!n||!n["!cols"]||(ke(t,390),n["!cols"].forEach(function(e,i){e&&ke(t,60,function h8e(t,n,e){null==e&&(e=ue(18));var i=SC(t,n);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(i.width||10)),e.write_shift(4,0);var r=0;return n.hidden&&(r|=1),"number"==typeof i.width&&(r|=2),n.level&&(r|=n.level<<8),e.write_shift(2,r),e}(i,e))}),ke(t,391))}(r,s),function k8e(t,n,e,i){var r=Cn(n["!ref"]||"A1"),s="",a=[];ke(t,145);var c=null!=n["!data"],l=r.e.r;n["!rows"]&&(l=Math.max(r.e.r,n["!rows"].length-1));for(var d=r.s.r;d<=l;++d){s=kn(d),y5e(t,n,r,d);var u=!1;if(d<=r.e.r)for(var h=r.s.c;h<=r.e.c;++h){d===r.s.r&&(a[h]=sn(h));var f=c?(n["!data"][d]||[])[h]:n[a[h]+s];u=!!f&&w8e(t,f,d,h,i,n,u)}}ke(t,146)}(r,s,0,n),function M8e(t,n){n["!protect"]&&ke(t,535,function b8e(t,n){return null==n&&(n=ue(66)),n.write_shift(2,t.password?RF(t.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){n.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),n}(n["!protect"]))}(r,s),function I8e(t,n,e,i){if(n["!autofilter"]){var r=n["!autofilter"],o="string"==typeof r.ref?r.ref:Qt(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,a=Vr(o);a.s.r==a.e.r&&(a.e.r=Vr(n["!ref"]).e.r,o=Qt(a));for(var c=0;c0){var r=ii(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",nn.VML);ke(t,551,pF("rId"+r)),n["!legacy"]=r}}(r,s,t,i),ke(r,130),r.end()}var jF=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],H8e=":][*?/\\".split("");function XX(t,n){try{if(""==t)throw new Error("Sheet name cannot be blank");if(t.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==t.charCodeAt(0)||39==t.charCodeAt(t.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==t.toLowerCase())throw new Error("Sheet name cannot be 'History'");H8e.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(n)return!1;throw e}return!0}function Q8e(t,n){return n||(n=ue(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),pF(t.strRelID,n),Br(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function c6e(t,n){var e=ws();return ke(e,131),ke(e,128,function n6e(t,n){n||(n=ue(127));for(var e=0;4!=e;++e)n.write_shift(4,0);return Br("SheetJS",n),Br(Ab.version,n),Br(Ab.version,n),Br("7262",n),n.length>n.l?n.slice(0,n.l):n}()),ke(e,153,function X8e(t,n){n||(n=ue(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),n.write_shift(4,e),n.write_shift(4,0),yK(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(t.Workbook&&t.Workbook.WBProps||null)),function r6e(t,n){if(n.Workbook&&n.Workbook.Sheets){for(var e=n.Workbook.Sheets,i=0,r=-1,o=-1;ir||(ke(t,135),ke(t,158,function i6e(t,n){return n||(n=ue(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,t),n.write_shift(4,t),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n}(r)),ke(t,136))}}(e,t),function t6e(t,n){ke(t,143);for(var e=0;e!=n.SheetNames.length;++e)ke(t,156,Q8e({Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e]&&n.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:n.SheetNames[e]}));ke(t,144)}(e,t),function a6e(t,n){ke(t,353),ke(t,357),ke(t,362,function s6e(t){var n=t.SheetNames.length,e=ue(12*n+28);e.write_shift(4,n+2),e.write_shift(4,0),e.write_shift(4,-2),e.write_shift(4,-2),e.write_shift(4,0),e.write_shift(4,-1),e.write_shift(4,-1);for(var i=0;i-1&&(i|=32,r=r.slice(6)),e.write_shift(4,i),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Br(r),NBe(t.Ref,n)];if(t.Comment)o.push(Wb(t.Comment));else{var s=ue(4);s.write_shift(4,4294967295),o.push(s)}return mr(o)}(e,n))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),ke(e,132),e.end()}function eY(t){return Ne("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+CC(t.Ref,{r:0,c:0})})}function O6e(t,n,e,i,r,o,s){if(!t||null==t.v&&null==t.f)return"";var a={};if(t.f&&(a["ss:Formula"]="="+tn(CC(t.f,s))),t.F&&t.F.slice(0,n.length)==n){var c=Wn(t.F.slice(n.length+1));a["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(t.l&&t.l.Target&&(a["ss:HRef"]=tn(t.l.Target),t.l.Tooltip&&(a["x:HRefScreenTip"]=tn(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=s.c||l[d].s.r!=s.r||(l[d].e.c>l[d].s.c&&(a["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(a["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!i.sheetStubs)return"";break;case"n":u="Number",h=String(t.v);break;case"b":u="Boolean",h=t.v?"1":"0";break;case"e":u="Error",h=Ml[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||Et[14]);break;case"s":u="String",h=function VFe(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(XQ,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=nu(i.cellXfs,t,i);a["ss:StyleID"]="s"+(21+f),a["ss:Index"]=s.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function F6e(t){return t.map(function(n){var e=function BFe(t){return t.replace(/(\r\n|[\r\n])/g," ")}(n.t||""),i=Ne("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ne("Comment",i,{"ss:Author":n.a})}).join("")}(t.c)),Ne("Cell",g,a)}function N6e(t,n){var e='"}function V6e(t,n,e){var i=[],o=e.Sheets[e.SheetNames[t]],s=o?function R6e(t,n,e,i){if(!t||!((i||{}).Workbook||{}).Names)return"";for(var r=i.Workbook.Names,o=[],s=0;s0&&i.push(""+s+""),s=o?function L6e(t,n,e,i){if(!t["!ref"])return"";var r=Cn(t["!ref"]),o=t["!merges"]||[],s=0,a=[];t["!cols"]&&t["!cols"].forEach(function(p,v){eu(p);var x=!!p.width,C=SC(v,p),D={"ss:Index":v+1};x&&(D["ss:Width"]=Zb(C.width)),p.hidden&&(D["ss:Hidden"]="1"),a.push(Ne("Column",null,D))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[N6e(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(s=0;s!=o.length;++s)if(!(o[s].s.c>u||o[s].s.r>l||o[s].e.c"),d.length>2&&a.push(d.join(""))}return a.join("")}(o,n):"",s.length>0&&i.push(""+s+"
"),i.push(function P6e(t,n,e,i){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Ne("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Ne("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Ne("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e])if(i.Workbook.Sheets[e].Hidden)r.push(Ne("Visible",1==i.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(fo("ProtectContents","True")),t["!protect"].objects&&r.push(fo("ProtectObjects","True")),t["!protect"].scenarios&&r.push(fo("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(fo("EnableSelection","UnlockedCells")):r.push(fo("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){t["!protect"][s[0]]&&r.push("<"+s[1]+"/>")})),0==r.length?"":Ne("WorksheetOptions",r.join(""),{xmlns:Ws.x})}(o,0,t,e)),o["!autofilter"]&&i.push(''),i.join("")}function B6e(t,n){n||(n={}),t.SSF||(t.SSF=ei(Et)),t.SSF&&(zp(),Nb(t.SSF),n.revssf=nC(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF,n.cellXfs=[],nu(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function D6e(t,n){var e=[];return t.Props&&e.push(function NOe(t,n){var e=[];return Pi(TF).map(function(i){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,n)),e.push(function I6e(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var i=0;i'];return n.cellXfs.forEach(function(i,r){var o=[];o.push(Ne("NumberFormat",null,{"ss:Format":tn(Et[i.numFmtId])}));var s={"ss:ID":"s"+(21+r)};e.push(Ne("Style",o.join(""),s))}),Ne("Styles",e.join(""))}(0,n),e[3]=function M6e(t){if(!((t||{}).Workbook||{}).Names)return"";for(var n=t.Workbook.Names,e=[],i=0;i0&&(i.family=a);var c=t.read_shift(1);switch(c>0&&(i.charset=c),t.l++,i.color=function hOe(t){var n={},i=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),s=t.read_shift(1),a=t.read_shift(1),c=t.read_shift(1);switch(t.l++,i){case 0:n.auto=1;break;case 1:n.index=r;var l=Lh[r];l&&(n.rgb=Yb(l));break;case 2:n.rgb=Yb([s,a,c]);break;case 3:n.theme=r}return 0!=o&&(n.tint=o>0?o/32767:o/32768),n}(t),t.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor"}return i.name=Lo(t),i}},44:{f:function PLe(t,n){return[t.read_shift(2),Lo(t)]}},45:{f:VLe},46:{f:ULe},47:{f:function BLe(t,n){var e=t.l+n,i=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:i,numFmtId:r}}},48:{},49:{f:function iOe(t){return t.read_shift(4,"i")}},50:{},51:{f:function y3e(t){for(var n=[],e=t.read_shift(4);e-- >0;)n.push([t.read_shift(4),t.read_shift(4)]);return n}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function fX(t,n,e){if(!e.cellStyles)return No(t,n);var i=e&&e.biff>=12?4:2,r=t.read_shift(i),o=t.read_shift(i),s=t.read_shift(i),a=t.read_shift(i),c=t.read_shift(2);2==i&&(t.l+=2);var l={s:r,e:o,w:s,ixfe:a,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function K5e(t){return[ha(t),hF(t),"is"]}},63:{f:function A3e(t){var n={};n.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),n.r=dn(e);var i=t.read_shift(1);return 2&i&&(n.l="1"),8&i&&(n.a="1"),n}},64:{f:function v8e(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:No,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function p8e(t){var n=t.read_shift(2);return t.l+=28,{RTL:32&n}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function C5e(t,n){var e={},i=t[t.l];return++t.l,e.above=!(64&i),e.left=!(128&i),t.l+=18,e.name=lOe(t,n-19),e}},148:{f:x5e,p:16},151:{f:function l8e(){}},152:{},153:{f:function K8e(t,n){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=n>8?Lo(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&i),e.backupFile=!!(64&i),e.checkCompatibility=!!(4096&i),e.date1904=!!(1&i),e.filterPrivacy=!!(8&i),e.hidePivotFieldList=!!(1024&i),e.promptedSolutions=!!(16&i),e.publishItems=!!(2048&i),e.refreshAllConnections=!!(262144&i),e.saveExternalLinkValues=!!(128&i),e.showBorderUnselectedTables=!!(4&i),e.showInkAnnotation=!!(32&i),e.showObjects=["all","placeholders","none"][i>>13&3],e.showPivotChartFilter=!!(32768&i),e.updateLinks=["userSet","never","always"][i>>8&3],e}},154:{},155:{},156:{f:function q8e(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=mF(t,n-8),e.name=Lo(t),e}},157:{},158:{},159:{T:1,f:function W4e(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Oh},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:r8e},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function b3e(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:Lo(t)}}},336:{T:-1},337:{f:function k3e(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:mF},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function dX(t,n,e){if(e.biff<8||!(e.biff>8)&&n==t[t.l]+(3==t[t.l+1]?1:0)+1)return function uX(t,n,e){3==t[t.l+1]&&t[t.l]++;var i=Kb(t,0,e);return 3==i.charCodeAt(0)?i.slice(1):i}(t,0,e);for(var i=[],r=t.l+n,o=t.read_shift(e.biff>8?4:2);0!=o--;)i.push(oNe(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return i}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function d8e(t,n,e){var i=t.l+n,r=wK(t),o=t.read_shift(1),s=[r];if(s[2]=o,e.cellFormula){var a=kBe(t,i-t.l,e);s[1]=a}else t.l=i;return s}},427:{f:function u8e(t,n,e){var i=t.l+n,o=[Oh(t,16)];if(e.cellFormula){var s=TBe(t,i-t.l,e);o[1]=s,t.l=i}else t.l=i;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function f8e(t){var n={};return WX.forEach(function(e){n[e]=Vo(t)}),n}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function k5e(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function a8e(t,n){var e=t.l+n,i=Oh(t,16),r=fF(t),o=Lo(t),s=Lo(t),a=Lo(t);t.l=e;var c={rfx:i,relId:r,loc:o,display:a};return s&&(c.Tooltip=s),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:mF},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:j3e},633:{T:1},634:{T:-1},635:{T:1,f:function z3e(t){var n={};n.iauthor=t.read_shift(4);var e=Oh(t,16);return n.rfx=e.s,n.ref=dn(e.s),t.l+=16,n}},636:{T:-1},637:{f:aOe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function N8e(t,n){return t.l+=10,{name:Lo(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function y8e(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function je(t,n,e,i){var r=n;if(!isNaN(r)){var o=i||(e||[]).length||0,s=t.next(4);s.write_shift(2,r),s.write_shift(2,o),o>0&&cF(e)&&t.push(e)}}function dv(t,n,e){return t||(t=ue(7)),t.write_shift(2,n),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function X6e(t,n,e,i){if(null!=n.v)switch(n.t){case"d":case"n":var r="d"==n.t?pr(Fi(n.v)):n.v;return void(r==(0|r)&&r>=0&&r<65536?je(t,2,function D4e(t,n,e){var i=ue(9);return dv(i,t,n),i.write_shift(2,e),i}(e,i,r)):je(t,3,function E4e(t,n,e){var i=ue(15);return dv(i,t,n),i.write_shift(8,e,"f"),i}(e,i,r)));case"b":case"e":return void je(t,5,function Q6e(t,n,e,i){var r=ue(9);return dv(r,t,n),QK(e,i||"b",r),r}(e,i,n.v,n.t));case"s":case"str":return void je(t,4,function K6e(t,n,e){var i=ue(8+2*e.length);return dv(i,t,n),i.write_shift(1,e.length),i.write_shift(e.length,e,"sbcs"),i.l255||f.e.r>=m){if(n.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,m-1)}je(i,2057,IF(0,16,n)),je(i,13,ma(1)),je(i,12,ma(100)),je(i,15,is(!0)),je(i,17,is(!1)),je(i,16,Nh(.001)),je(i,95,is(!0)),je(i,42,is(!1)),je(i,43,is(!1)),je(i,130,ma(1)),je(i,128,function GNe(t){var n=ue(8);return n.write_shift(4,0),n.write_shift(2,t[0]?t[0]+1:0),n.write_shift(2,t[1]?t[1]+1:0),n}([0,0])),je(i,131,is(!1)),je(i,132,is(!1)),l&&function rUe(t,n){if(n){var e=0;n.forEach(function(i,r){++e<=256&&i&&je(t,125,function g4e(t,n){var e=ue(12);e.write_shift(2,n),e.write_shift(2,n),e.write_shift(2,256*t.width),e.write_shift(2,0);var i=0;return t.hidden&&(i|=1),e.write_shift(1,i),e.write_shift(1,i=t.level||0),e.write_shift(2,0),e}(SC(r,i),r))})}}(i,o["!cols"]),je(i,512,function VNe(t,n){var e=8!=n.biff&&n.biff?2:4,i=ue(2*e+6);return i.write_shift(e,t.s.r),i.write_shift(e,t.e.r+1),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c+1),i.write_shift(2,0),i}(f,n)),l&&(o["!links"]=[]);for(var g=[],p=[],v=f.s.c;v<=f.e.c;++v)h[v]=sn(v);for(var x=f.s.r;x<=f.e.r;++x)for(c&&(p=o["!data"][x]||[]),u=kn(x),v=f.s.c;v<=f.e.c;++v){d=h[v]+u;var C=c?p[v]:o[d];C&&(oUe(i,C,x,v,n),l&&C.l&&o["!links"].push([d,C.l]),l&&C.c&&g.push([d,C.c]))}var D=a.CodeName||a.name||r;return l&&je(i,574,function SNe(t){var n=ue(18),e=1718;return t&&t.RTL&&(e|=64),n.write_shift(2,e),n.write_shift(4,0),n.write_shift(4,64),n.write_shift(4,0),n.write_shift(4,0),n}((s.Views||[])[0])),l&&(o["!merges"]||[]).length&&je(i,229,function n4e(t){var n=ue(2+8*t.length);n.write_shift(2,t.length);for(var e=0;e255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var o=n||{};switch(o.biff||2){case 8:case 5:return function cUe(t,n){var e=n||{},i=[];t&&!t.SSF&&(t.SSF=ei(Et)),t&&t.SSF&&(zp(),Nb(t.SSF),e.revssf=nC(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,YF(e),e.cellXfs=[],nu(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(i.WTF)throw new Error("Range "+(n["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383)}for(var l=[],d=o.s.c;d<=o.e.c;++d)c[d]=sn(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=n["!data"][u]||[]),a=kn(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:n[c[d]+a];h&&X6e(t,h,u,d)}}(i,t.Sheets[t.SheetNames[r]],0,e),je(i,10),i.end()}(t,n)}throw new Error("invalid type "+o.bookType+" for BIFF")}function iY(t,n,e,i){for(var r=t["!merges"]||[],o=[],s={},a=null!=t["!data"],c=n.s.c;c<=n.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(s.rowspan=l),d>1&&(s.colspan=d),i.editable?m=''+m+"":f&&(s["data-t"]=f&&f.t||"z",null!=f.v&&(s["data-v"]=f.v),null!=f.z&&(s["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),s.id=(i.id||"sjs")+"-"+h,o.push(Ne("td",m,s))}}return""+o.join("")+""}var rY='SheetJS Table Export',oY="";function aY(t,n){var e=n||{},r=null!=e.footer?e.footer:oY,o=[null!=e.header?e.header:rY],s=Vr(t["!ref"]);o.push(function sY(t,n,e){return[].join("")+""}(0,0,e));for(var a=s.s.r;a<=s.e.r;++a)o.push(iY(t,s,a,e));return o.push(""+r),o.join("")}var fUe=function(){var t=["",'',"",'',"",'',"",""].join(""),n=""+t+"";return function(){return rr+n}}();function mUe(t,n){var e="number",i="",r={"style:name":n},o="",s=0;e:if((t=t.replace(/"[$]"/g,"$")).indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+t),t=t.slice(0,t.indexOf(";"))),"@"!=t){if(t.indexOf(/\$/)>-1&&(e="currency"),'"'==t[s]){for(o="";'"'!=t[++s]||'"'==t[++s];)o+=t[s];"*"==t[1+--s]?(s++,i+=""+tn(o.replace(/""/g,'"'))+""):i+=""+tn(o.replace(/""/g,'"'))+"",t=t.slice(s+1),s=0}var a=t.match(/# (\?+)\/(\?+)/);if(a)i+=Ne("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":a[1].length,"number:max-denominator-value":Math.max(+a[1].replace(/./g,"9"),+a[2].replace(/./g,"9"))});else if(a=t.match(/# (\?+)\/(\d+)/))i+=Ne("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":a[1].length,"number:denominator-value":+a[2]});else if(a=t.match(/(\d+)(|\.\d+)%/))e="percentage",i+=Ne("number:number",null,{"number:decimal-places":a[2]&&a.length-1||0,"number:min-decimal-places":a[2]&&a.length-1||0,"number:min-integer-digits":a[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;s";break;case"yyy":case"yyyy":i+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":i+='';break;case"d":case"dd":i+='';break;case"ddd":case"dddd":i+=''}break;case'"':for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.slice(1).replace(/""/g,'"'))+"";break;case"/":i+=""+tn(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(s+1),s=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");s';break;case"m":case"mm":i+='';break;case"s":case"ss":if("."==t[s+1])do{o+=t[s+1],++s}while("0"==t[s+1]);i+='"}break;case'"':for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.slice(1).replace(/""/g,'"'))+"";break;case"/":i+=""+tn(o)+"";break;case"a":if("a/p"==t.slice(s,s+3).toLowerCase()){i+="",s+=2;break}if("am/pm"==t.slice(s,s+5).toLowerCase()){i+="",s+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(i+='$',t=t.slice(1),s=0),'"'==t[s=0]){for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];"*"==t[1+--s]?(s++,i+=""+tn(o.replace(/""/g,'"'))+""):i+=""+tn(o.replace(/""/g,'"'))+"",t=t.slice(s+1),s=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");i+="-1?' number:grouping="true"':"")+(d[2]&&' number:decimal-places="'+(d[2].length-1)+'"'||' number:decimal-places="0"')+(d[3]&&d[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(d[3]?' number:min-exponent-digits="'+d[3].match(/0+/)[0].length+'"':"")+">",s=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[s]){for(o="";'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.replace(/""/g,'"'))+""}}}}else e="text",i="";return i?Ne("number:"+e+"-style",i,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function pY(t,n,e){var i=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return i.length?" \n"+i.map(function(r){var o=HX(r.Ref);return" "+Ne("table:named-range",null,{"table:name":r.Name,"table:cell-range-address":o,"table:base-cell-address":o.replace(/[\.]?[^\.]*$/,".$A$1")})}).join("\n")+"\n \n":""}var gY=function(){var t=function(o){return tn(o).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},n=" \n",i=function(o,s,a,c,l){var d=[];d.push(' \n');var u=0,h=0,f=Vr(o["!ref"]||"A1"),m=o["!merges"]||[],g=0,p=null!=o["!data"];if(o["!cols"])for(h=0;h<=f.e.c;++h)d.push(" \n");var x=o["!rows"]||[];for(u=0;u\n");for(;u<=f.e.r;++u){for(d.push(" \n"),h=0;hh||m[g].s.r>u||m[g].e.c\n");else{var A=dn({r:u,c:h}),E=p?(o["!data"][u]||[])[h]:o[A];if(E&&E.f&&(D["table:formula"]=tn(BBe(E.f)),E.F&&E.F.slice(0,A.length)==A)){var V=Vr(E.F);D["table:number-matrix-columns-spanned"]=V.e.c-V.s.c+1,D["table:number-matrix-rows-spanned"]=V.e.r-V.s.r+1}if(E){switch(E.t){case"b":z=E.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=E.v?"true":"false";break;case"n":z=E.w||String(E.v||0),D["office:value-type"]="float",D["office:value"]=E.v||0;break;case"s":case"str":z=null==E.v?"":E.v,D["office:value-type"]="string";break;case"d":z=E.w||Fi(E.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Fi(E.v).toISOString(),D["table:style-name"]="ce1";break;default:d.push(n);continue}var B=t(z);if(E.l&&E.l.Target){var X=E.l.Target;"#"!=(X="#"==X.charAt(0)?"#"+HX(X.slice(1)):X).charAt(0)&&!X.match(/^\w+:/)&&(X="../"+X),B=Ne("text:a",B,{"xlink:href":X.replace(/&/g,"&")})}l[E.z]&&(D["table:style-name"]="ce"+l[E.z].slice(1)),d.push(" "+Ne("table:table-cell",Ne("text:p",B,{}),D)+"\n")}else d.push(n)}}d.push(" \n")}return(s.Workbook||{}).Names&&d.push(pY(s.Workbook.Names,0,a)),d.push(" \n"),d.join("")};return function(s,a){var c=[rr],l=Ub({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Ub({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==a.bookType?(c.push("\n"),c.push(IK().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,s){o.push(" \n");var a=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++a}});var c=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!rows"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++c}}),o.push(' \n'),o.push(' \n'),o.push(" \n"),o.push(' \n'),o.push(' \n'),o.push(" /\n"),o.push(' \n'),o.push(" /\n"),o.push(" \n"),o.push(" \n");var l={},d=69;return s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=Vr(u["!ref"]),m=0;m<=f.e.r;++m)for(var g=0;g<=f.e.c;++g){var p=h?(u["!data"][m]||[])[g]:u[dn({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var v=mUe(p.z,"N"+d);v&&(l[p.z]="N"+d,++d,o.push(v+"\n"))}}}),o.push(' \n'),Pi(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,s);c.push(" \n"),c.push(" \n"),((s.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=s.SheetNames.length;++h)c.push(i(s.Sheets[s.SheetNames[h]],s,h,0,u));return(s.Workbook||{}).Names&&c.push(pY(s.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==a.bookType?"":""),c.join("")}}();function _Y(t,n){if("fods"==n.bookType)return gY(t,n);var e=ZP(),i="",r=[],o=[];return en(e,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),en(e,i="content.xml",gY(t,n)),r.push([i,"text/xml"]),o.push([i,"ContentFile"]),en(e,i="styles.xml",fUe(t,n)),r.push([i,"text/xml"]),o.push([i,"StylesFile"]),en(e,i="meta.xml",rr+IK()),r.push([i,"text/xml"]),o.push([i,"MetadataFile"]),en(e,i="manifest.rdf",function AOe(t){var n=[rr];n.push('\n');for(var e=0;e!=t.length;++e)n.push(DK(t[e][0],t[e][1])),n.push(IOe("",t[e][0]));return n.push(DK("","Document","pkg")),n.push(""),n.join("")}(o)),r.push([i,"application/rdf+xml"]),en(e,i="META-INF/manifest.xml",function DOe(t){var n=[rr];n.push('\n'),n.push(' \n');for(var e=0;e\n');return n.push(""),n.join("")}(r)),e}var vr=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function Pl(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function eo(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):ni(Sc(t))}function Ha(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):ts(Ic(t))}function iu(t){for(var n=0,e=0;e=128&&(i|=(127&t[e])<<7,t[e++]<128||(i|=(127&t[e])<<14,t[e++]<128)||(i|=(127&t[e])<<21,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return n.l=e,i}function gt(t){var n=new Uint8Array(7);n[0]=127&t;var e=1;e:if(t>127){if(n[e-1]|=128,n[e]=t>>7&127,++e,t<=16383||(n[e-1]|=128,n[e]=t>>14&127,++e,t<=2097151)||(n[e-1]|=128,n[e]=t>>21&127,++e,t<=268435455)||(n[e-1]|=128,n[e]=t/256>>>21&127,++e,t<=34359738367)||(n[e-1]|=128,n[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;n[e-1]|=128,n[e]=t/16777216>>>21&127,++e}return n[vr](0,e)}function bY(t){for(var n={l:0},e=[];n.l=128){if(e|=(127&t[n])<<7,t[n++]<128||(e|=(127&t[n])<<14,t[n++]<128)||(e|=(127&t[n])<<21,t[n++]<128))break e;e|=(127&t[n])<<28}return e}function et(t){for(var n=[],e={l:0};e.l=128;);s=t[vr](e.l,a),e.l=a;break;case 1:s=t[vr](a,a+8),e.l=a+8;break;case 2:var c=uv(t,e);s=t[vr](e.l,e.l+c),e.l+=c;break;case 5:s=t[vr](a,a+4),e.l=a+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(i))}var l={data:s,type:o};null==n[r]&&(n[r]=[]),n[r].push(l)}return n}function kt(t){var n=[];return t.forEach(function(e,i){0!=i&&e.forEach(function(r){r.data&&(n.push(gt(8*i+r.type)),2==r.type&&n.push(gt(r.data.length)),n.push(r.data))})}),iu(n)}function Gh(t,n){return t?.map(function(e){return n(e.data)})||[]}function hv(t){for(var n,e=[],i={l:0};i.l>>0>0),e.push(s)}return e}function fv(t){var n=[];return t.forEach(function(e){var i=[[],[{data:gt(e.id),type:0}],[]];null!=e.merge&&(i[3]=[{data:gt(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(s){r.push(s.data),s.meta[3]=[{type:0,data:gt(s.data.length)}],i[2].push({data:kt(s.meta),type:2})});var o=kt(i);n.push(gt(o.length)),n.push(o),r.forEach(function(s){return n.push(s)})}),iu(n)}function _Ue(t,n){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},i=uv(n,e),r=[],o=e.l;o>2&7),l=(224&n[o++])<<3,l|=n[o++]):(d=1+(n[o++]>>2),2==s?(l=n[o]|n[o+1]<<8,o+=2):(l=(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0,o+=4)),0==l)throw new Error("Invalid offset 0");for(var u=r.length-1,h=l;u>=0&&h>=r[u].length;)h-=r[u].length,--u;if(u<0){if(0!=h)throw new Error("Invalid offset beyond length");h=r[u=0].length}if(d0&&(r.push(r[u][vr](r[u].length-h)),d-=h),++u;d>=r[u].length;)r.push(r[u]),d-=r[u].length,++u;d&&r.push(r[u][vr](0,d))}r.length>25&&(r=[iu(r)])}else{var a=n[o++]>>2;if(a<60)++a;else{var c=a-59;a=n[o],c>1&&(a|=n[o+1]<<8),c>2&&(a|=n[o+2]<<16),c>3&&(a|=n[o+3]<<24),a>>>=0,a++,o+=c}r.push(n[vr](o,o+a)),o+=a}}for(var f=0,m=0;m>8&255]))):i<=16777216?(s+=4,n.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(s+=5,n.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),n.push(t[vr](e,e+i)),s+=i,r[0]=0,r[1]=255&s,r[2]=s>>8&255,r[3]=s>>16&255,e+=i}return iu(n)}function IC(t,n){var e=new Uint8Array(32),i=Pl(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function gUe(t,n,e){var i=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,i-6176);t[n+15]|=i>>7,t[n+14]|=(127&i)<<1;for(var o=0;r>=1;++o,r/=256)t[n+o]=255&r;t[n+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,i.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var s=null==t.v?"":String(t.v),a=n.indexOf(s);-1==a&&(n[a=n.length]=s),e[1]=3,i.setUint32(r,a,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,o,!0),e[vr](0,r)}function AC(t,n){var e=new Uint8Array(32),i=Pl(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,i.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,i.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var s=null==t.v?"":String(t.v),a=n.indexOf(s);-1==a&&(n[a=n.length]=s),e[2]=3,i.setUint32(r,a,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,o,!0),e[vr](0,r)}function ri(t){return Tn(et(t)[1][0].data)}function Fl(t){return kt([[],[{type:0,data:gt(t)}]])}function ru(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?bY(t.messages[0].meta[5][0].data):[];-1==i.indexOf(n)&&(i.push(n),t.messages[0].meta[5]=[{type:2,data:vY(i)}])}function Ol(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?bY(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:vY(i.filter(function(r){return r!=n}))}]}function DUe(t,n,e){var i,r,o=[[],[{type:0,data:gt(0)}],[{type:0,data:gt(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:gt(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:gt(1)}]];if(null==(i=o[6])||!i[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var s=0;if(o[7][0].data.length<2*t.length){var a=new Uint8Array(2*t.length);a.set(o[7][0].data),o[7][0].data=a}if(o[4][0].data.length<2*t.length){var c=new Uint8Array(2*t.length);c.set(o[4][0].data),o[4][0].data=c}for(var l=Pl(o[7][0].data),d=0,u=[],h=Pl(o[4][0].data),f=0,m=[],g=e?4:1,p=0;p-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};YF(n=n||{});var o=ZP(),s="",a=0;if(n.cellXfs=[],nu(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),en(o,s="docProps/core.xml",MK(t.Props,n)),r.coreprops.push(s),ii(n.rels,2,s,nn.CORE_PROPS),s="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(en(o,s="docProps/custom.xml",OK(t.Custprops)),r.custprops.push(s),ii(n.rels,4,s,nn.CUST_PROPS));var d=["SheetJ5"];for(n.tcid=0,a=1;a<=t.SheetNames.length;++a){var u={"!id":{}},h=t.Sheets[t.SheetNames[a-1]];if(en(o,s="xl/worksheets/sheet"+a+"."+e,_5e(a-1,n,t,u)),r.sheets.push(s),ii(n.wbrels,-1,"worksheets/sheet"+a+"."+e,nn.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var v=!1;m.forEach(function(x){x[1].forEach(function(C){1==C.T&&(v=!0)})}),v&&(en(o,p="xl/threadedComments/threadedComment"+a+".xml",V3e(m,d,n)),r.threadedcomments.push(p),ii(u,-1,"../threadedComments/threadedComment"+a+".xml",nn.TCMNT)),en(o,p="xl/comments"+a+"."+e,N3e(m)),r.comments.push(p),ii(u,-1,"../comments"+a+"."+e,nn.CMNT),g=!0}h["!legacy"]&&g&&en(o,"xl/drawings/vmlDrawing"+a+".vml",EX(a,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&en(o,qb(s),qp(u))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function G4e(t,n){if(!n.bookSST)return"";var e=[rr];e[e.length]=Ne("sst",null,{xmlns:Ah[0],count:t.Count,uniqueCount:t.Unique});for(var i=0;i!=t.length;++i)if(null!=t[i]){var r=t[i],o="";r.r?o+=r.r:(o+=""),e[e.length]=o+=""}return e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(n.Strings,n)),r.strs.push(s),ii(n.wbrels,-1,"sharedStrings."+e,nn.SST)),en(o,s="xl/workbook."+e,function W8e(t){var n=[rr];n[n.length]=Ne("workbook",null,{xmlns:Ah[0],"xmlns:r":Nr.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(jF.forEach(function(a){null!=t.Workbook.WBProps[a[0]]&&t.Workbook.WBProps[a[0]]!=a[1]&&(i[a[0]]=t.Workbook.WBProps[a[0]])}),t.Workbook.WBProps.CodeName&&(i.codeName=t.Workbook.WBProps.CodeName,delete i.CodeName)),n[n.length]=Ne("workbookPr",null,i);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(n[n.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),n[n.length]='',n[n.length]=""}for(n[n.length]="",o=0;o!=t.SheetNames.length;++o){var s={name:tn(t.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}n[n.length]=Ne("sheet",null,s)}return n[n.length]="",e&&(n[n.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(a){var c={name:a.Name};a.Comment&&(c.comment=a.Comment),null!=a.Sheet&&(c.localSheetId=""+a.Sheet),a.Hidden&&(c.hidden="1"),a.Ref&&(n[n.length]=Ne("definedName",tn(a.Ref),c))}),n[n.length]=""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}(t)),r.workbooks.push(s),ii(n.rels,1,s,nn.WB),en(o,s="xl/theme/theme1.xml",NF(t.Themes,n)),r.themes.push(s),ii(n.wbrels,-1,"theme/theme1.xml",nn.THEME),en(o,s="xl/styles."+e,function RLe(t,n){var i,e=[rr,Ne("styleSheet",null,{xmlns:Ah[0],"xmlns:vt":Nr.vt})];return t.SSF&&null!=(i=function DLe(t){var n=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var i=e[0];i<=e[1];++i)null!=t[i]&&(n[n.length]=Ne("numFmt",null,{numFmtId:i,formatCode:tn(t[i])}))}),1===n.length?"":(n[n.length]="",n[0]=Ne("numFmts",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(t.SSF))&&(e[e.length]=i),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(i=function ALe(t){var n=[];return n[n.length]=Ne("cellXfs",null),t.forEach(function(e){n[n.length]=Ne("xf",null,e)}),n[n.length]="",2===n.length?"":(n[0]=Ne("cellXfs",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(n.cellXfs))&&(e[e.length]=i),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,n)),r.styles.push(s),ii(n.wbrels,-1,"styles."+e,nn.STY),t.vbaraw&&i&&(en(o,s="xl/vbaProject.bin",t.vbaraw),r.vba.push(s),ii(n.wbrels,-1,"vbaProject.bin",nn.VBA)),en(o,s="xl/metadata."+e,function D3e(){var t=[rr];return t.push('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.join("")}()),r.metadata.push(s),ii(n.wbrels,-1,"metadata."+e,nn.XLMETA),d.length>1&&(en(o,s="xl/persons/person.xml",function U3e(t){var n=[rr,Ne("personList",null,{xmlns:Nr.TCMNT,"xmlns:x":Ah[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,i){n.push(Ne("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:e,providerId:"None"}))}),n.push(""),n.join("")}(d)),r.people.push(s),ii(n.wbrels,-1,"persons/person.xml",nn.PEOPLE)),en(o,"[Content_Types].xml",SK(r,n)),en(o,"_rels/.rels",qp(n.rels)),en(o,"xl/_rels/workbook.xml.rels",qp(n.wbrels)),delete n.revssf,delete n.ssf,o}function DY(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return Lb(n.file,wt.write(t,{type:on?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return wt.write(t,n)}function $Ue(t,n){switch(n.bookType){case"ods":return _Y(t,n);case"numbers":return function AUe(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=wt.read(n.numbers,{type:"base64"}),i=function IUe(t){var n={},e=[];return t.FileIndex.map(function(i,r){return[i,t.FullPaths[r]]}).forEach(function(i){var r=i[0],o=i[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&hv(mv(r.content)).forEach(function(s){e.push(s.id),n[s.id]={deps:[],location:o,type:Tn(s.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(i){i.name.match(/\.iwa/)&&0==i.content[0]&&hv(mv(i.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(s){o.meta[s]&&o.meta[s].forEach(function(a){n[r.id].deps.push(Tn(a.data))})})})})}),n}(e),r=Pc(e,i,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=Gh(et(r.messages[0].data)[1],ri);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(s,a){a>=1&&(function MUe(t,n,e){var i=-1,r=-1,o={};Ur(t,n,1,function(l,d){var u=et(l.messages[0].data);i=ri(et(l.messages[0].data)[1][0].data),r=ou({deps:[1],location:n[i].location,type:2},n),o[i]=r,ru(l,r),u[1].push({type:2,data:Fl(r)});var h=Pc(t,n,i);h.id=r,n[1].location==n[r].location?d.push(h):Ur(t,n,r,function(f,m){return m.push(h)}),l.messages[0].data=kt(u)});var s=-1;Ur(t,n,r,function(l,d){for(var u=et(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=Gh(u[2],ri);f.forEach(function(p){return Ol(l,p)}),s=ou({deps:[r],location:n[f[0]].location,type:n[f[0]].type},n),ru(l,s),o[f[0]]=s,u[2]=[{type:2,data:Fl(s)}];var m=Pc(t,n,f[0]);if(m.id=s,n[f[0]].location==n[r].location)d.push(m);else{var g=n[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ur(t,n,2,function(p){var v=et(p.messages[0].data),x=v[3].findIndex(function(D){var z,A,E=et(D.data);return null!=(z=E[3])&&z[0]?eo(E[3][0].data)==g:!(null==(A=E[2])||!A[0]||eo(E[2][0].data)!=g)}),C=et(v[3][x].data);C[6]||(C[6]=[]),C[6].push({type:2,data:kt([[],[{type:0,data:gt(s)}]])}),v[3][x].data=kt(C),p.messages[0].data=kt(v)}),Ur(t,n,s,function(p,v){return v.push(m)})}l.messages[0].data=kt(u)});var a=-1;Ur(t,n,s,function(l,d){for(var u=et(l.messages[0].data),h=et(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=ri(h[2][0].data);h[2][0].data=Fl(o[m]),u[1][0].data=kt(h);var g=ri(u[2][0].data);Ol(l,g),ru(l,a=ou({deps:[s],location:n[g].location,type:n[g].type},n)),o[g]=a,u[2][0].data=Fl(a);var p=Pc(t,n,g);p.id=a,n[s].location==n[a].location?d.push(p):Ur(t,n,a,function(v,x){return x.push(p)}),l.messages[0].data=kt(u)});var c=n[a].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ur(t,n,a,function(l,d){var u,h,f=et(l.messages[0].data),g=eo(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=Ha(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(A){return delete f[A]}),f[45]){var v=ri(et(f[45][0].data)[1][0].data);Ol(l,v),delete f[45]}f[70]&&(null==(u=et(f[70][0].data)[2])||u.forEach(function(A){var E=et(A.data);[2,3].map(function(V){return E[V][0]}).forEach(function(V){var B=et(V.data);if(B[8]){var X=ri(B[8][0].data);Ol(l,X)}})}),delete f[70]),[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(A){if(f[A]){var E=ri(f[A][0].data);delete f[A],Ol(l,E)}});var C=et(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(A){var E;if(null!=(E=C[A])&&E[0]){var V=ri(C[A][0].data),B=ou({deps:[a],location:n[V].location,type:n[V].type},n);Ol(l,V),ru(l,B),o[V]=B;var X=Pc(t,n,V);if(X.id=B,n[V].location==n[a].location)d.push(X);else{n[B].location=n[V].location.replace(V.toString(),B.toString()),n[B].location==n[V].location&&(n[B].location=n[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),wt.utils.cfb_add(t,n[B].location,pv(fv([X])));var ne=n[B].location;ne=(ne=ne.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ur(t,n,2,function(Q){var Te=et(Q.messages[0].data);Te[3].push({type:2,data:kt([[],[{type:0,data:gt(B)}],[{type:2,data:Ha(ne.replace(/-.*$/,""))}],[{type:2,data:Ha(ne)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Te[1]=[{type:0,data:gt(Math.max(B+1,Tn(Te[1][0].data)))}];var Ae=Te[3].findIndex(function(ae){var ee,ye,pe=et(ae.data);return null!=(ee=pe[3])&&ee[0]?eo(pe[3][0].data)==c:!(null==(ye=pe[2])||!ye[0]||eo(pe[2][0].data)!=c)}),ve=et(Te[3][Ae].data);ve[6]||(ve[6]=[]),ve[6].push({type:2,data:kt([[],[{type:0,data:gt(B)}]])}),Te[3][Ae].data=kt(ve),Q.messages[0].data=kt(Te)})}C[A][0].data=Fl(B)}});var D=et(C[1][0].data);null==(h=D[2])||h.forEach(function(A){var E=ri(A.data),V=ou({deps:[a],location:n[E].location,type:n[E].type},n);Ol(l,E),ru(l,V),o[E]=V;var B=Pc(t,n,E);if(B.id=V,n[E].location==n[a].location)d.push(B);else{n[V].location=n[E].location.replace(E.toString(),V.toString()),n[V].location==n[E].location&&(n[V].location=n[V].location.replace(/\.iwa/,"-".concat(V,".iwa"))),wt.utils.cfb_add(t,n[V].location,pv(fv([B])));var X=n[V].location;X=(X=X.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ur(t,n,2,function(ne){var Q=et(ne.messages[0].data);Q[3].push({type:2,data:kt([[],[{type:0,data:gt(V)}],[{type:2,data:Ha(X.replace(/-.*$/,""))}],[{type:2,data:Ha(X)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Q[1]=[{type:0,data:gt(Math.max(V+1,Tn(Q[1][0].data)))}];var Te=Q[3].findIndex(function(ve){var ae,ee,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?eo(ye[3][0].data)==c:!(null==(ee=ye[2])||!ee[0]||eo(ye[2][0].data)!=c)}),Ae=et(Q[3][Te].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:kt([[],[{type:0,data:gt(V)}]])}),Q[3][Te].data=kt(Ae),ne.messages[0].data=kt(Q)})}A.data=Fl(V)}),C[1][0].data=kt(D);var z=et(C[3][0].data);z[1].forEach(function(A){var E=et(A.data),V=ri(E[2][0].data),B=o[V];if(!o[V]){B=ou({deps:[a],location:"",type:n[V].type},n),n[B].location="Root Entry/Index/Tables/Tile-".concat(B,".iwa"),o[V]=B;var X=Pc(t,n,V);X.id=B,Ol(l,V),ru(l,B),wt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(B,".iwa"),pv(fv([X]))),Ur(t,n,2,function(ne){var Q=et(ne.messages[0].data);Q[3].push({type:2,data:kt([[],[{type:0,data:gt(B)}],[{type:2,data:Ha("Tables/Tile")}],[{type:2,data:Ha("Tables/Tile-".concat(B))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Q[1]=[{type:0,data:gt(Math.max(B+1,Tn(Q[1][0].data)))}];var Te=Q[3].findIndex(function(ve){var ae,ee,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?eo(ye[3][0].data)==c:!(null==(ee=ye[2])||!ee[0]||eo(ye[2][0].data)!=c)}),Ae=et(Q[3][Te].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:kt([[],[{type:0,data:gt(B)}]])}),Q[3][Te].data=kt(Ae),ne.messages[0].data=kt(Q)})}E[2][0].data=Fl(B),A.data=kt(E)}),C[3][0].data=kt(z),f[4][0].data=kt(C),l.messages[0].data=kt(f)})}(e,i,a+1),r=Pc(e,i,1),o=Gh(et(r.messages[0].data)[1],ri)),function RUe(t,n,e,i,r,o){var s=[];Ur(t,n,o,function(l){var d=et(l.messages[0].data);d[1]=[{type:2,data:Ha(i)}],s=Gh(d[2],ri),l.messages[0].data=kt(d)});var c=ri(et(Pc(t,n,s[0]).messages[0].data)[2][0].data);Ur(t,n,c,function(l,d){return function PUe(t,n,e,i,r,o){var s=Vr(e["!ref"]);s.s.r=s.s.c=0;var a=!1;s.e.c>999&&(a=!0,s.e.c=999),s.e.r>999999&&(a=!0,s.e.r=999999),a&&console.error("Truncating to ".concat(Qt(s)));var c=PC(e,{range:s,header:1}),l=["~Sh33tJ5~"],d=n[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=et(i.messages[0].data);u[6][0].data=gt(s.e.r+1),u[7][0].data=gt(s.e.c+1),delete u[46];var h=et(u[4][0].data);Ur(t,n,ri(et(h[1][0].data)[2][0].data),function(Ae,ve){var ae,ee=et(Ae.messages[0].data);if(null!=(ae=ee?.[2])&&ae[0])for(var ye=0;ye0&&(en(o,s="docProps/custom.xml",OK(t.Custprops)),r.custprops.push(s),ii(n.rels,4,s,nn.CUST_PROPS)),a=1;a<=t.SheetNames.length;++a){var d={"!id":{}},u=t.Sheets[t.SheetNames[a-1]];if(en(o,s="xl/worksheets/sheet"+a+"."+e,R8e(a-1,n,t,d)),r.sheets.push(s),ii(n.wbrels,-1,"worksheets/sheet"+a+"."+e,nn.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(en(o,g="xl/comments"+a+"."+e,W3e(f)),r.comments.push(g),ii(d,-1,"../comments"+a+"."+e,nn.CMNT),m=!0),u["!legacy"]&&m&&en(o,"xl/drawings/vmlDrawing"+a+".vml",EX(a,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&en(o,qb(s),qp(d))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function X4e(t){var n=ws();ke(n,159,function Q4e(t,n){return n||(n=ue(8)),n.write_shift(4,t.Count),n.write_shift(4,t.Unique),n}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+s)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(i=t.charCodeAt(l++))>255&&(i=95),s=(3&e)<<4|i>>4,(r=t.charCodeAt(l++))>255&&(r=95),a=(15&i)<<2|r>>6,c=63&r,isNaN(i)?a=c=64:isNaN(r)&&(c=64),n+=la.charAt(o)+la.charAt(s)+la.charAt(a)+la.charAt(c);return n}(t);case"binary":case"string":return t;case"file":return Lb(n.file,t,"binary");case"buffer":return on?Ec(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}(FY(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Fc(nO(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Fc(pX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return RC(AF.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Fc(Qp.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Fc(function gLe(t,n){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,i=Cn(t["!ref"]),o=null!=t["!data"],s=[],a=i.s.r;a<=i.e.r;++a){e.push("\\trowd\\trautofit1");for(var c=i.s.c;c<=i.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(s=t["!data"][a]||[]),c=i.s.c;c<=i.e.c;++c){var l=dn({r:a,c});(r=o?s[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Ac(r),r.w)||"").replace(/[\r\n]/g,"\\par ")),e.push("\\cell")):e.push(" \\cell")}e.push("\\pard\\intbl\\row")}return e.join("")+"}"}(t.Sheets[t.SheetNames[r]]),e);case"eth":return Fc(gX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Fc(_Y(t,e),e);case"wk1":return RC(Hh.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return RC(Hh.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),RC(tY(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function qUe(t,n){var e=n||{};return DY(function W6e(t,n){var e=n||{},i=wt.utils.cfb_new({root:"R"}),r="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":r="/Workbook",e.biff=8;break;case"biff5":r="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return wt.utils.cfb_add(i,r,tY(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function G6e(t,n){var s,e=[],i=[],r=[],o=0,a=LQ(bF,"n"),c=LQ(vF,"n");if(t.Props)for(s=Pi(t.Props),o=0;o-1||RK.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);i.length&&wt.utils.cfb_add(n,"/\x05SummaryInformation",WK(i,cv.SI,c,vF)),(e.length||l.length)&&wt.utils.cfb_add(n,"/\x05DocumentSummaryInformation",WK(e,cv.DSI,a,bF,l.length?l:null,cv.UDI))}(t,i),8==e.biff&&t.vbaraw&&function K3e(t,n){n.FullPaths.forEach(function(e,i){if(0!=i){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&wt.utils.cfb_add(t,r,n.FileIndex[i].content)}})}(i,wt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),i}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function GUe(t,n){var e=ei(n||{});return function IY(t,n){var e={},i=on?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(n.compression&&(e.compression="DEFLATE"),n.password)e.type=i;else switch(n.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":e.type=i;break;default:throw new Error("Unrecognized type "+n.type)}var r=t.FullPaths?wt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!n.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==n.type||"base64"==n.type)return r;r=new Uint8Array(Pb(r))}return n.password&&typeof encrypt_agile<"u"?DY(encrypt_agile(r,n.password),n):"file"===n.type?Lb(n.file,r):"string"==n.type?ni(r):r}($Ue(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function MY(t,n,e,i,r,o,s){var a=kn(e),c=s.defval,l=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,u=null!=t["!data"],h=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch{h.__rowNum__=e}else h.__rowNum__=e;if(!u||t["!data"][e])for(var f=n.s.c;f<=n.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[i[f]+a];if(void 0!==m&&void 0!==m.t){var g=m.v;switch(m.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(null!=o[f]){if(null==g)if("e"==m.t&&null===g)h[o[f]]=null;else if(void 0!==c)h[o[f]]=c;else{if(!l||null!==g)continue;h[o[f]]=null}else h[o[f]]=l&&("n"!==m.t||"n"===m.t&&!1!==s.rawNumbers)?g:Ac(m,g,s);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function PC(t,n){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},i=0,r=1,o=[],s=0,a="",c={s:{r:0,c:0},e:{r:0,c:0}},l=n||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?i=1:"A"===l.header?i=2:Array.isArray(l.header)?i=3:null==l.header&&(i=0),typeof d){case"string":c=Cn(d);break;case"number":(c=Cn(t["!ref"])).s.r=d;break;default:c=d}i>0&&(r=0);var u=kn(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],v=c.s.r,x=0,C={};p&&!t["!data"][v]&&(t["!data"][v]=[]);var D=l.skipHidden&&t["!cols"]||[],z=l.skipHidden&&t["!rows"]||[];for(x=c.s.c;x<=c.e.c;++x)if(!(D[x]||{}).hidden)switch(h[x]=sn(x),e=p?t["!data"][v][x]:t[h[x]+u],i){case 1:o[x]=x-c.s.c;break;case 2:o[x]=h[x];break;case 3:o[x]=l.header[x-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),a=s=Ac(e,null,l),g=C[s]||0){do{a=s+"_"+g++}while(C[a]);C[s]=g,C[a]=1}else C[s]=1;o[x]=a}for(v=c.s.r+r;v<=c.e.r;++v)if(!(z[v]||{}).hidden){var A=MY(t,c,v,h,i,o,l);(!1===A.isempty||(1===i?!1!==l.blankrows:l.blankrows))&&(f[m++]=A.row)}return f.length=m,f}var RY=/"/g;function PY(t,n,e,i,r,o,s,a){for(var c=!0,l=[],d="",u=kn(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=n.s.c;m<=n.e.c;++m)if(i[m]){var g=h?f[m]:t[i[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(a.rawNumbers&&"n"==g.t?g.v:Ac(g,null,a));for(var p=0,v=0;p!==d.length;++p)if((v=d.charCodeAt(p))===r||v===o||34===v||a.forceQuotes){d='"'+d.replace(RY,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(RY,'""')+'"'));l.push(d)}return!1===a.blankrows&&c?null:l.join(s)}function nO(t,n){var e=[],i=n??{};if(null==t||null==t["!ref"])return"";for(var r=Cn(t["!ref"]),o=void 0!==i.FS?i.FS:",",s=o.charCodeAt(0),a=void 0!==i.RS?i.RS:"\n",c=a.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=i.skipHidden&&t["!cols"]||[],f=i.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=sn(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=PY(t,r,p,u,s,c,o,i))&&(i.strip&&(d=d.replace(l,"")),(d||!1!==i.blankrows)&&e.push((g++?a:"")+d));return e.join("")}function FY(t,n){n||(n={}),n.FS="\t",n.RS="\n";var e=nO(t,n);return typeof Zt>"u"||"string"==n.type?e:"\xff\xfe"+Zt.utils.encode(1200,e,"str")}function OY(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=ir&&null==r&&(r=ir);var o=+!i.skipHeader,s=t||{};!t&&r&&(s["!data"]=[]);var a=0,c=0;if(s&&null!=i.origin)if("number"==typeof i.origin)a=i.origin;else{var l="string"==typeof i.origin?Wn(i.origin):i.origin;a=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:a+n.length-1+o}};if(s["!ref"]){var u=Cn(s["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==a&&(d.e.r=(a=u.e.r+1)+n.length-1+o)}else-1==a&&(a=0,d.e.r=n.length-1+o);var h=i.header||[],f=0,m=[];n.forEach(function(p,v){r&&!s["!data"][a+v+o]&&(s["!data"][a+v+o]=[]),r&&(m=s["!data"][a+v+o]),Pi(p).forEach(function(x){-1==(f=h.indexOf(x))&&(h[f=h.length]=x);var C=p[x],D="z",z="",A=r?"":sn(c+f)+kn(a+v+o),E=r?m[c+f]:s[A];!C||"object"!=typeof C||C instanceof Date?("number"==typeof C?D="n":"boolean"==typeof C?D="b":"string"==typeof C?D="s":C instanceof Date?(D="d",i.cellDates||(D="n",C=pr(C)),z=null!=E&&E.z&&Xd(E.z)?E.z:i.dateNF||Et[14]):null===C&&i.nullError&&(D="e",C=0),E?(E.t=D,E.v=C,delete E.w,delete E.R,z&&(E.z=z)):r?m[c+f]=E={t:D,v:C}:s[A]=E={t:D,v:C},z&&(E.z=z)):r?m[c+f]=C:s[A]=C})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=kn(a);if(r&&!s["!data"][a]&&(s["!data"][a]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(i&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var s=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=s+r);++r);}if(XX(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=n,e}var LY_json_to_sheet=function ZUe(t,n){return OY(null,t,n)};let h9e=(()=>{class t{constructor(){}exportAsExcelFile(e,i){const s=gv({Sheets:{data:LY_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(s,i)}saveAsExcelFile(e,i){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});_c.saveAs(r,i+"_export_"+(new Date).getTime()+".xlsx")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const f9e=["*",[["mat-toolbar-row"]]],m9e=["*","mat-toolbar-row"];let p9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return t})(),g9e=(()=>{class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(xt))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&ln(o,p9e,5),2&i){let s;Re(s=Pe())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(Ys(r.color?"mat-"+r.color:""),lt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[St],ngContentSelectors:m9e,decls:2,vars:0,template:function(i,r){1&i&&(Mn(f9e),ct(0),ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),_9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();const VY=["*"],b9e=["content"],v9e=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],y9e=["mat-drawer","mat-drawer-content","*"];function x9e(t,n){if(1&t){const e=Se();_(0,"div",1),U("click",function(){return j(e),G(R()._onBackdropClicked())}),b()}2&t&<("mat-drawer-shown",R()._isShowingBackdrop())}function w9e(t,n){1&t&&(_(0,"mat-drawer-content"),ct(1,2),b())}const k9e={transformDrawer:Yn("transform",[bn("open, open-instant",We({transform:"none",visibility:"visible"})),bn("void",We({"box-shadow":"none",visibility:"hidden"})),Xt("void => open-instant",qt("0ms")),Xt("void <=> open, open-instant => void",qt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},C9e=new J("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function T9e(){return!1}}),BY=new J("MAT_DRAWER_CONTAINER");let rO=(()=>{class t extends Aw{constructor(e,i,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(an(()=>zY)),w(He),w(Z_),w(Be))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,r){2&i&&Ki("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[it([{provide:Aw,useExisting:t}]),tt,St],ngContentSelectors:VY,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(0))},encapsulation:2,changeDetection:0})}return t})(),UY=(()=>{class t{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=Mr(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Mr(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Mr(e))}constructor(e,i,r,o,s,a,c,l){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=c,this._container=l,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me,this._animationEnd=new Me,this._animationState="void",this.openedChange=new Ce(!0),this._openedStream=this.openedChange.pipe(un(d=>d),mt(()=>{})),this.openedStart=this._animationStarted.pipe(un(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),zx(void 0)),this._closedStream=this.openedChange.pipe(un(d=>!d),mt(()=>{})),this.closedStart=this._animationStarted.pipe(un(d=>d.fromState!==d.toState&&"void"===d.toState),zx(void 0)),this._destroyed=new Me,this.onPositionChanged=new Ce,this._modeChanged=new Me,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ra(this._elementRef.nativeElement,"keydown").pipe(un(d=>27===d.keyCode&&!this.disableClose&&!To(d)),Tt(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(il((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{const{fromState:u,toState:h}=d;(0===h.indexOf("open")&&"void"===u||"void"===h&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_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(i=>{!i&&"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,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(Nn(1)).subscribe(s=>o(s?"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 i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(JI),w(ta),w(Ln),w(Be),w(_w),w(xt,8),w(BY,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(1&i&&vt(b9e,5),2&i){let o;Re(o=Pe())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){1&i&&lx("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&i&&(rx("@transform",r._animationState),_t("align",null),lt("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:[St],ngContentSelectors:VY,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){1&i&&(Mn(),_(0,"div",1,0),ct(2),b())},dependencies:[Aw],encapsulation:2,data:{animation:[k9e.transformDrawer]},changeDetection:0})}return t})(),zY=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Mr(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:Mr(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,o,s,a=!1,c){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new Gl,this.backdropClick=new Ce,this._destroyed=new Me,this._doCheckSubject=new Me,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me,e&&e.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(Wr(this._allDrawers),Tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wr(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(nl(10),Tt(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,i=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,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(un(i=>i.fromState!==i.toState),Tt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Nn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Tt(Ci(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e: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(i){return new(i||t)(w(oo,8),w(He),w(Be),w(gn),w(cl),w(C9e),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,rO,5),ln(o,UY,5)),2&i){let s;Re(s=Pe())&&(r._content=s.first),Re(s=Pe())&&(r._allDrawers=s)}},viewQuery:function(i,r){if(1&i&&vt(rO,5),2&i){let o;Re(o=Pe())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[it([{provide:BY,useExisting:t}]),St],ngContentSelectors:y9e,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){1&i&&(Mn(v9e),q(0,x9e,1,2,"div",0),ct(1),ct(2,1),q(3,w9e,2,0,"mat-drawer-content")),2&i&&(_n(0,r.hasBackdrop?0:-1),y(3),_n(3,r._content?-1:3))},dependencies:[rO],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})}return t})(),E9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ll,ll,Ft]})}return t})();function S9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R().setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function D9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R(2).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.resource.version)}}function I9e(t,n){if(1&t&&(zt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),q(7,D9e,2,1,"button",16),b(),Ht()),2&t){const e=n.$implicit,i=jt(4);y(),T("matMenuTriggerFor",i),y(),Ke(e.editionName),y(5),T("ngForOf",e.editions)}}function A9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R().setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e)}}function M9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R(2).setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function R9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R(3).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.resource.version)}}function P9e(t,n){if(1&t&&(zt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),q(7,R9e,2,1,"button",16),b(),Ht()),2&t){const e=n.$implicit,i=jt(4);y(),T("matMenuTriggerFor",i),y(),Ke(e.editionName),y(5),T("ngForOf",e.editions)}}function F9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=j(e).$implicit;return G(R(2).setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e)}}function O9e(t,n){if(1&t){const e=Se();_(0,"mat-toolbar")(1,"button",21),U("click",function(){return j(e),R(),G(jt(2).toggle())}),_(2,"mat-icon"),k(3,"menu"),b()(),xe(4,"img",22),_(5,"span",23),k(6,"SNOMED CT Implementation Demos"),b(),_(7,"span",24),k(8,"Implementation Demos"),b(),xe(9,"span",25),_(10,"button",26),k(11,"Select Demonstrator"),b(),_(12,"mat-menu",14,6)(14,"button",15),U("click",function(){return j(e),G(R().navigate("/allergies"))}),k(15,"Allergies CRG"),b(),_(16,"button",15),U("click",function(){return j(e),G(R().navigate("/sandbox"))}),k(17,"Terminology Bindings Sandbox"),b(),_(18,"button",15),U("click",function(){return j(e),G(R().navigate("/questionnaires"))}),k(19,"SNOMED & FHIR Questionnaires"),b(),_(20,"button",15),U("click",function(){return j(e),G(R().navigate("/context"))}),k(21,"Context Representation"),b(),_(22,"button",15),U("click",function(){return j(e),G(R().navigate("/snoguess"))}),k(23,"Snoguess (A SNOMED game)"),b()(),_(24,"button",27),k(25),b(),_(26,"mat-menu",null,7),q(28,M9e,2,1,"button",16),b(),_(29,"button",27),k(30),b(),_(31,"mat-menu",14,8)(33,"span",17),k(34,"Editions"),b(),q(35,P9e,8,3,"ng-container",18),b(),_(36,"button",27),k(37),b(),_(38,"mat-menu",null,9),q(40,F9e,2,1,"button",16),b(),_(41,"a",28)(42,"mat-icon"),k(43,"info"),b()()()}if(2&t){const e=jt(13),i=jt(27),r=jt(32),o=jt(39),s=R();y(10),T("matMenuTriggerFor",e),y(14),T("matMenuTriggerFor",i),y(),Je("FHIR Server: ",s.selectedServer.name,""),y(3),T("ngForOf",s.fhirServers),y(),T("matMenuTriggerFor",r),y(),Ke(s.selectedEdition),y(5),T("ngForOf",s.editionsDetails),y(),T("matMenuTriggerFor",o),y(),Ke(s.selectedLanguage),y(3),T("ngForOf",s.languages)}}let N9e=(()=>{class t{constructor(e,i,r,o,s){this.codingSpecService=e,this.excelService=i,this.terminologyService=r,this.router=o,this.activatedRoute=s,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["da","de","en","es","et","fi","fr","nl","no","sv"],this.selectedEdition="Edition",this.selectedLanguage="en",this.fhirServers=[{name:"SNOMED Dev IS",url:"https://dev-is-browser.ihtsdotools.org/fhir"},{name:"SNOMED Public",url:"https://snowstorm.ihtsdotools.org/fhir"},{name:"SNOMED Dev 2",url:"https://snowstorm-temp.kaicode.io/fhir"}],this.selectedServer=this.fhirServers[1],this.embeddedMode=!1,this.router.events.subscribe(a=>{a instanceof dc&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const i of e)for(const r of i.bindings)this.bindingsForExport.push({section:i.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.activatedRoute.queryParams.subscribe(i=>{this.embeddedMode="true"===i.embedded,i.edition?this.updateCodeSystemOptions(i.edition):this.updateCodeSystemOptions()}),this.terminologyService.lang$.subscribe(i=>{this.selectedLanguage=i}),this.terminologyService.fhirUrlParam$.subscribe(i=>{this.editions?.length>0&&this.editions.forEach(r=>{r.resource.version===i&&(this.selectedEdition=r.resource.title?.replace("SNOMED CT release ",""))})})}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(e){this.terminologyService.getCodeSystems().subscribe(i=>{this.editionsDetails=[],this.editions=i.entry;let r=new Set;this.editions.forEach(s=>{r.add(s.resource.title)}),r.forEach(s=>{this.editionsDetails.push({editionName:s,editions:this.editions.filter(a=>a.resource.title.includes(s)).sort(this.compare)})});let o=this.editionsDetails.findIndex(s=>"International Edition"===s.editionName);e?this.editions.forEach(s=>{s.resource.version===e&&this.setEdition(s)}):this.setEdition(o>=0?this.editionsDetails[o].editions[0]:this.editions[0])})}compare(e,i){return e.resource.datei.resource.date?-1:0}setFhirServer(e){this.selectedServer=e,this.terminologyService.setSnowstormFhirBase(e.url),this.selectedEdition="Edition",this.editions=[],this.editionsDetails=[],this.updateCodeSystemOptions()}setEdition(e){this.selectedEdition=e.resource.title?.replace("SNOMED CT release ",""),this.terminologyService.setFhirUrlParam(e.resource.version)}setLanguage(e){this.selectedLanguage=e,this.terminologyService.setLang(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(zPe),w(h9e),w(so),w(ms),w(od))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-root"]],decls:37,vars:11,consts:[["drawer",""],["demosMenuN","matMenu"],["serverMenuN","matMenu"],["editionsMenuN","matMenu"],["menuN","matMenu"],["sub_menu","matMenu"],["demosMenu","matMenu"],["serverMenu","matMenu"],["editionsMenu","matMenu"],["menu","matMenu"],["autosize","",1,"example-container"],["mode","over",1,"example-sidenav"],[1,"flex","flex-col","justify-center"],["mat-button","",3,"matMenuTriggerFor"],[1,"wide-menu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"ml-4"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","","id","menu-button",3,"click"],["src","assets/img/small_logo.png","id","logo"],["id","title"],["id","short-title"],[1,"example-spacer"],["mat-flat-button","","color","accent",1,"bar-button",3,"matMenuTriggerFor"],["mat-flat-button","","color","primary",1,"bar-button",3,"matMenuTriggerFor"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary","id","info-button"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-drawer-container",10)(1,"mat-drawer",11,0)(3,"div",12)(4,"button",13),k(5,"Select Demonstrator"),b(),_(6,"mat-menu",14,1)(8,"button",15),U("click",function(){return j(o),G(r.navigate("/allergies"))}),k(9,"Allergies CRG"),b(),_(10,"button",15),U("click",function(){return j(o),G(r.navigate("/sandbox"))}),k(11,"Terminology Bindings Sandbox"),b(),_(12,"button",15),U("click",function(){return j(o),G(r.navigate("/questionnaires"))}),k(13,"SNOMED & FHIR Questionnaires"),b(),_(14,"button",15),U("click",function(){return j(o),G(r.navigate("/context"))}),k(15,"Context Representation"),b(),_(16,"button",15),U("click",function(){return j(o),G(r.navigate("/snoguess"))}),k(17,"Playground"),b()(),_(18,"button",13),k(19),b(),_(20,"mat-menu",null,2),q(22,S9e,2,1,"button",16),b(),_(23,"button",13),k(24),b(),_(25,"mat-menu",14,3)(27,"span",17),k(28,"Editions"),b(),q(29,I9e,8,3,"ng-container",18),b(),_(30,"button",13),k(31),b(),_(32,"mat-menu",null,4),q(34,A9e,2,1,"button",16),b()()(),q(35,O9e,44,10,"mat-toolbar",19),xe(36,"router-outlet"),b()}if(2&i){const o=jt(7),s=jt(21),a=jt(26),c=jt(33);y(4),T("matMenuTriggerFor",o),y(14),T("matMenuTriggerFor",s),y(),Je("FHIR Server: ",r.selectedServer.name,""),y(3),T("ngForOf",r.fhirServers),y(),T("matMenuTriggerFor",a),y(),Je("Edition: ",r.selectedEdition,""),y(5),T("ngForOf",r.editionsDetails),y(),T("matMenuTriggerFor",c),y(),Je("Language: ",r.selectedLanguage,""),y(3),T("ngForOf",r.languages),y(),T("ngIf",!r.embeddedMode)}},dependencies:[ro,$r,yI,g9e,X_e,Eo,ia,So,Pa,mc,Wu,UY,zY],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}.bar-button[_ngcontent-%COMP%]{margin-left:15px}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}#menu-button[_ngcontent-%COMP%], #short-title[_ngcontent-%COMP%]{display:none}#logo[_ngcontent-%COMP%]{height:4rem}@media (max-width: 768px){#title[_ngcontent-%COMP%]{display:none}#short-title[_ngcontent-%COMP%]{display:block;margin-left:15px;font-size:.9rem}#logo[_ngcontent-%COMP%]{height:3.5rem}#info-button[_ngcontent-%COMP%]{display:none}}@media (max-width: 1200px){.bar-button[_ngcontent-%COMP%]{display:none}#menu-button[_ngcontent-%COMP%]{display:block}}"]})}return t})();function HY(t){return new le(3e3,!1)}function su(t){switch(t.length){case 0:return new K_;case 1:return t[0];default:return new j9(t)}}function jY(t,n,e=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((h,f)=>{let m=f,g=h;if("offset"!==f)switch(m=t.normalizePropertyName(m,r),g){case"!":g=e.get(f);break;case ol:g=i.get(f);break;default:g=t.normalizeStyleValue(f,m,g,r)}u.set(m,g)}),d||o.push(u),a=u,s=l}),r.length)throw function oze(t){return new le(3502,!1)}();return o}function oO(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&sO(e,"start",t)));break;case"done":t.onDone(()=>i(e&&sO(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&sO(e,"destroy",t)))}}function sO(t,n,e){const o=aO(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function aO(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function qs(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function $Y(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const _ze=typeof document>"u"?null:document.documentElement;function cO(t){const n=t.parentNode||t.host||null;return n===_ze?null:n}let Wh=null,GY=!1;function WY(t,n){for(;n;){if(n===t)return!0;n=cO(n)}return!1}function qY(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let lO=(()=>{class t{validateStyleProperty(e){return function vze(t){Wh||(Wh=function yze(){return typeof document<"u"?document.body:null}()||{},GY=!!Wh.style&&"WebkitAppearance"in Wh.style);let n=!0;return Wh.style&&!function bze(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Wh.style,!n&&GY&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wh.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return WY(e,i)}getParentElement(e){return cO(e)}query(e,i,r){return qY(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new K_(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class dO{static#e=this.NOOP=new lO}class uO{}const wze=1e3,hO="ng-enter",LC="ng-leave",VC="ng-trigger",BC=".ng-trigger",KY="ng-animating",fO=".ng-animating";function Nl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:mO(parseFloat(n[1]),n[2])}function mO(t,n){return"s"===n?t*wze:t}function UC(t,n,e){return t.hasOwnProperty("duration")?t:function Cze(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(HY()),{duration:0,delay:0,easing:""};r=mO(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=mO(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=t;if(!e){let a=!1,c=n.length;r<0&&(n.push(function L9e(){return new le(3100,!1)}()),a=!0),o<0&&(n.push(function V9e(){return new le(3101,!1)}()),a=!0),a&&n.splice(c,0,HY())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Oc(t,n,e){n.forEach((i,r)=>{const o=gO(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function qh(t,n){n.forEach((e,i)=>{const r=gO(i);t.style[r]=""})}function _v(t){return Array.isArray(t)?1==t.length?t[0]:function Z_e(t,n=null){return{type:Ot.Sequence,steps:t,options:n}}(t):t}const pO=new RegExp("{{\\s*(.+?)\\s*}}","g");function YY(t){let n=[];if("string"==typeof t){let e;for(;e=pO.exec(t);)n.push(e[1]);pO.lastIndex=0}return n}function bv(t,n,e){const i=`${t}`,r=i.replace(pO,(o,s)=>{let a=n[s];return null==a&&(e.push(function U9e(t){return new le(3003,!1)}()),a=""),a.toString()});return r==i?t:r}const Sze=/-+([a-z0-9])/g;function gO(t){return t.replace(Sze,(...n)=>n[1].toUpperCase())}function Qs(t,n,e){switch(n.type){case Ot.Trigger:return t.visitTrigger(n,e);case Ot.State:return t.visitState(n,e);case Ot.Transition:return t.visitTransition(n,e);case Ot.Sequence:return t.visitSequence(n,e);case Ot.Group:return t.visitGroup(n,e);case Ot.Animate:return t.visitAnimate(n,e);case Ot.Keyframes:return t.visitKeyframes(n,e);case Ot.Style:return t.visitStyle(n,e);case Ot.Reference:return t.visitReference(n,e);case Ot.AnimateChild:return t.visitAnimateChild(n,e);case Ot.AnimateRef:return t.visitAnimateRef(n,e);case Ot.Query:return t.visitQuery(n,e);case Ot.Stagger:return t.visitStagger(n,e);default:throw function z9e(t){return new le(3004,!1)}()}}function _O(t,n){return window.getComputedStyle(t)[n]}const Aze=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 ZY extends uO{normalizePropertyName(n,e){return gO(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Aze.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function H9e(t,n){return new le(3005,!1)}())}return s+o}}const zC="*";const HC=new Set(["true","1"]),jC=new Set(["false","0"]);function JY(t,n){const e=HC.has(t)||jC.has(t),i=HC.has(n)||jC.has(n);return(r,o)=>{let s=t==zC||t==r,a=n==zC||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?HC.has(t):jC.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?HC.has(n):jC.has(n)),s&&a}}const Fze=new RegExp("s*:selfs*,?","g");function bO(t,n,e,i){return new Oze(t).build(n,e,i)}class Oze{constructor(n){this._driver=n}build(n,e,i){const r=new Vze(e);return this._resetContextStyleTimingState(r),Qs(this,_v(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function j9e(){return new le(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ot.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(a.type==Ot.Transition){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(function $9e(){return new le(3007,!1)}())}),{type:Ot.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{YY(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(function G9e(t,n){return new le(3008,!1)}(0,o.values()))}return{type:Ot.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Qs(this,_v(n.animation),e),r=function Mze(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Rze(t,n,e){if(":"==t[0]){const c=function Pze(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function eze(t){return new le(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(JY(r,s)),"<"==o[0]&&(r!=zC||s!=zC)&&n.push(JY(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Ot.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Qh(n.options)}}visitSequence(n,e){return{type:Ot.Sequence,steps:n.steps.map(i=>Qs(this,i,e)),options:Qh(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Qs(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Ot.Group,steps:o,options:Qh(n.options)}}visitAnimate(n,e){const i=function Uze(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return vO(UC(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=vO(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=UC(e,n);return vO(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:We({});if(o.type==Ot.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};i.easing&&(l.easing=i.easing),s=We(l)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(s,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:Ot.Animate,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===ol?i.push(a):e.errors.push(new le(3002,!1)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:Ot.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(function q9e(t,n,e,i,r){return new le(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function Eze(t,n,e){const i=n.params||{},r=YY(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function B9e(t){return new le(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Ot.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Q9e(){return new le(3011,!1)}()),i;let o=0;const s=[];let a=!1,c=!1,l=0;const d=n.steps.map(v=>{const x=this._makeStyleAst(v,e);let C=null!=x.offset?x.offset:function Bze(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(x.styles),D=0;return null!=C&&(o++,D=x.offset=C),c=c||D<0||D>1,a=a||D0&&o{const C=h>0?x==f?1:h*x:s[x],D=C*p;e.currentTime=m+g.delay+D,g.duration=D,this._validateStyleAst(v,e),v.offset=C,i.styles.push(v)}),i}visitReference(n,e){return{type:Ot.Reference,animation:Qs(this,_v(n.animation),e),options:Qh(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ot.AnimateChild,options:Qh(n.options)}}visitAnimateRef(n,e){return{type:Ot.AnimateRef,animation:this.visitReference(n.animation,e),options:Qh(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Nze(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Fze,"")),t=t.replace(/@\*/g,BC).replace(/@\w+/g,e=>BC+"-"+e.slice(1)).replace(/:animating/g,fO),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,qs(e.collectedStyles,e.currentQuerySelector,new Map);const a=Qs(this,_v(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Ot.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Qh(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function Z9e(){return new le(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:UC(n.timings,e.errors,!0);return{type:Ot.Stagger,animation:Qs(this,_v(n.animation),e),timings:i,options:null}}}class Vze{constructor(n){this.errors=n,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 Qh(t){return t?(t={...t}).params&&(t.params=function Lze(t){return t?{...t}:null}(t.params)):t={},t}function vO(t,n,e){return{duration:t,delay:n,easing:e}}function yO(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class $C{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const jze=new RegExp(":enter","g"),Gze=new RegExp(":leave","g");function xO(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return(new Wze).buildKeyframes(t,n,e,i,r,o,s,a,c,l)}class Wze{buildKeyframes(n,e,i,r,o,s,a,c,l,d=[]){l=l||new $C;const u=new wO(n,e,l,r,o,d,[]);u.options=c;const h=c.delay?Nl(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),Qs(this,i,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let g=f.length-1;g>=0;g--){const p=f[g];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[yO(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Nl(bv(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Nl(i.duration):null,a=null!=i.delay?Nl(i.delay):null;return 0!==s&&n.forEach(c=>{const l=e.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Qs(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==Ot.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=GC);const s=Nl(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Qs(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Nl(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Qs(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return UC(e.params?bv(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==Ot.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Nl(r.delay):0;o&&(e.previousNode.type===Ot.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=GC);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(n.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),Qs(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let c=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;Qs(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const GC={};class wO{constructor(n,e,i,r,o,s,a,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=GC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new WC(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Nl(i.duration)),null!=i.delay&&(r.delay=Nl(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=bv(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new wO(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=GC,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new qze(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(jze,"."+this._enterClassName)).replace(Gze,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&0==a.length&&s.push(function J9e(t){return new le(3014,!1)}()),a}}class WC{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new WC(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ol),this._currentKeyframe.set(e,ol);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Qze(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)e.set(o,ol)}else for(let[o,s]of r)e.set(o,s)}),e}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=bv(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ol),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((d,u)=>{"!"===d?n.add(u):d===ol&&e.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});const o=[...n.values()],s=[...e.values()];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return yO(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class qze extends WC{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,c=new Map(n[0]);c.set("offset",0),o.push(c);const l=new Map(n[0]);l.set("offset",nZ(a)),o.push(l);const d=n.length-1;for(let u=1;u<=d;u++){let h=new Map(n[u]);const f=h.get("offset");h.set("offset",nZ((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return yO(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function nZ(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function iZ(t,n,e,i,r,o,s,a,c,l,d,u,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const kO={};class rZ{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function Kze(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||kO,m=this.buildStyles(i,a&&a.params||kO,u),g=c&&c.params||kO,p=this.buildStyles(r,g,u),v=new Set,x=new Map,C=new Map,D="void"===r,z={params:oZ(g,h),delay:this.ast.options?.delay},A=d?[]:xO(n,e,this.ast.animation,o,s,m,p,z,l,u);let E=0;return A.forEach(V=>{E=Math.max(V.duration+V.delay,E)}),u.length?iZ(e,this._triggerName,i,r,D,m,p,[],[],x,C,E,u):(A.forEach(V=>{const B=V.element,X=qs(x,B,new Set);V.preStyleProps.forEach(Q=>X.add(Q));const ne=qs(C,B,new Set);V.postStyleProps.forEach(Q=>ne.add(Q)),B!==e&&v.add(B)}),iZ(e,this._triggerName,i,r,D,m,p,A,[...v.values()],x,C,E))}}function oZ(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class Xze{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=oZ(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=bv(s,r,e));const c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}}class Zze{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Xze(r.style,r.options&&r.options.params||{},i))}),sZ(this.states,"true","1"),sZ(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new rZ(n,r,this.states))}),this.fallbackTransition=function Jze(t,n,e){return new rZ(t,{type:Ot.Transition,animation:{type:Ot.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function sZ(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const eHe=new $C;class tHe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=bO(this._driver,e,i,[]);if(i.length)throw function sze(t){return new le(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=jY(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=xO(this._driver,e,o,hO,LC,new Map,new Map,i,eHe,r),s.forEach(d=>{const u=qs(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function aze(){return new le(3300,!1)}()),s=[]),r.length)throw function cze(t){return new le(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ol))})});const l=su(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function lze(t){return new le(3301,!1)}();return e}listen(n,e,i,r){const o=aO(e,"","","");return oO(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const aZ="ng-animate-queued",CO="ng-animate-disabled",sHe=[],cZ={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aHe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed";class TO{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function uHe(t){return t??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vv="void",EO=new TO(vv);class cHe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,ga(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function dze(t,n){return new le(3302,!1)}();if(null==i||0==i.length)throw function uze(t){return new le(3303,!1)}();if(!function hHe(t){return"start"==t||"done"==t}(i))throw function hze(t,n){return new le(3400,!1)}();const o=qs(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=qs(this._engine.statesByElement,n,new Map);return a.has(e)||(ga(n,VC),ga(n,VC+"-"+e),a.set(e,EO)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function fze(t){return new le(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new SO(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(ga(n,VC),ga(n,VC+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e);const l=new TO(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=EO),l.value!==vv&&c.value===l.value){if(!function pHe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{qh(n,p),Oc(n,v)})}return}const h=qs(this._engine.playersByElement,n,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,n,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:m}),m||(ga(n,aZ),s.onStart(()=>{Zp(n,aZ)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(n);if(p){let v=p.indexOf(s);v>=0&&p.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,BC,!0);i.forEach(r=>{if(r[ja])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const d=this.trigger(n,l,vv,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&su(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=i.get(s)||EO,d=new TO(vv),u=new SO(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[ja];(!o||o===cZ)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ga(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const c=aO(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,oO(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class lHe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,r){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new cHe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const c=r.get(a);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(qC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!qC(e))return;const o=e[ja];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ga(n,CO)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Zp(n,CO))}removeNode(n,e,i){if(qC(e)){this.scheduler?.notify();const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[ja]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return qC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,BC,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,fO,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return su(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[ja];if(e&&e.setForRemoval){if(n[ja]=cZ,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(CO)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?su(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function mze(t){return new le(3402,!1)}()}_flushAnimations(n,e){const i=new $C,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ae=>{d.add(ae);const ee=this.driver.query(ae,".ng-animate-queued",!0);for(let ye=0;ye{const ye=hO+g++;m.set(ee,ye),ae.forEach(pe=>ga(pe,ye))});const p=[],v=new Set,x=new Set;for(let ae=0;aev.add(pe)):x.add(ee))}const C=new Map,D=uZ(h,Array.from(v));D.forEach((ae,ee)=>{const ye=LC+g++;C.set(ee,ye),ae.forEach(pe=>ga(pe,ye))}),n.push(()=>{f.forEach((ae,ee)=>{const ye=m.get(ee);ae.forEach(pe=>Zp(pe,ye))}),D.forEach((ae,ee)=>{const ye=C.get(ee);ae.forEach(pe=>Zp(pe,ye))}),p.forEach(ae=>{this.processLeaveNode(ae)})});const z=[],A=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(e).forEach(ye=>{const pe=ye.player,Ye=ye.element;if(z.push(pe),this.collectedEnterElements.length){const H=Ye[ja];if(H&&H.setForMove){if(H.previousTriggersValues&&H.previousTriggersValues.has(ye.triggerName)){const fe=H.previousTriggersValues.get(ye.triggerName),Ee=this.statesByElement.get(ye.element);if(Ee&&Ee.has(ye.triggerName)){const $e=Ee.get(ye.triggerName);$e.value=fe,Ee.set(ye.triggerName,$e)}}return void pe.destroy()}}const ge=!u||!this.driver.containsElement(u,Ye),at=C.get(Ye),Dt=m.get(Ye),F=this._buildInstruction(ye,i,Dt,at,ge);if(F.errors&&F.errors.length)return void A.push(F);if(ge)return pe.onStart(()=>qh(Ye,F.fromStyles)),pe.onDestroy(()=>Oc(Ye,F.toStyles)),void r.push(pe);if(ye.isFallbackTransition)return pe.onStart(()=>qh(Ye,F.fromStyles)),pe.onDestroy(()=>Oc(Ye,F.toStyles)),void r.push(pe);const te=[];F.timelines.forEach(H=>{H.stretchStartingKeyframe=!0,this.disabledNodes.has(H.element)||te.push(H)}),F.timelines=te,i.append(Ye,F.timelines),s.push({instruction:F,player:pe,element:Ye}),F.queriedElements.forEach(H=>qs(a,H,[]).push(pe)),F.preStyleProps.forEach((H,fe)=>{if(H.size){let Ee=c.get(fe);Ee||c.set(fe,Ee=new Set),H.forEach(($e,Qe)=>Ee.add(Qe))}}),F.postStyleProps.forEach((H,fe)=>{let Ee=l.get(fe);Ee||l.set(fe,Ee=new Set),H.forEach(($e,Qe)=>Ee.add(Qe))})});if(A.length){const ae=[];A.forEach(ee=>{ae.push(function pze(t,n){return new le(3505,!1)}())}),z.forEach(ee=>ee.destroy()),this.reportError(ae)}const E=new Map,V=new Map;s.forEach(ae=>{const ee=ae.element;i.has(ee)&&(V.set(ee,ee),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,E))}),r.forEach(ae=>{const ee=ae.element;this._getPreviousPlayers(ee,!1,ae.namespaceId,ae.triggerName,null).forEach(pe=>{qs(E,ee,[]).push(pe),pe.destroy()})});const B=p.filter(ae=>fZ(ae,c,l)),X=new Map;dZ(X,this.driver,x,l,ol).forEach(ae=>{fZ(ae,c,l)&&B.push(ae)});const Q=new Map;f.forEach((ae,ee)=>{dZ(Q,this.driver,new Set(ae),c,"!")}),B.forEach(ae=>{const ee=X.get(ae),ye=Q.get(ae);X.set(ae,new Map([...ee?.entries()??[],...ye?.entries()??[]]))});const Te=[],Ae=[],ve={};s.forEach(ae=>{const{element:ee,player:ye,instruction:pe}=ae;if(i.has(ee)){if(d.has(ee))return ye.onDestroy(()=>Oc(ee,pe.toStyles)),ye.disabled=!0,ye.overrideTotalTime(pe.totalTime),void r.push(ye);let Ye=ve;if(V.size>1){let at=ee;const Dt=[];for(;at=at.parentNode;){const F=V.get(at);if(F){Ye=F;break}Dt.push(at)}Dt.forEach(F=>V.set(F,Ye))}const ge=this._buildAnimation(ye.namespaceId,pe,E,o,Q,X);if(ye.setRealPlayer(ge),Ye===ve)Te.push(ye);else{const at=this.playersByElement.get(Ye);at&&at.length&&(ye.parentPlayer=su(at)),r.push(ye)}}else qh(ee,pe.fromStyles),ye.onDestroy(()=>Oc(ee,pe.toStyles)),Ae.push(ye),d.has(ee)&&r.push(ye)}),Ae.forEach(ae=>{const ee=o.get(ae.element);if(ee&&ee.length){const ye=su(ee);ae.setRealPlayer(ye)}}),r.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let ae=0;ae!ge.destroyed);Ye.length?fHe(this,ee,Ye):this.processLeaveNode(ee)}return p.length=0,Te.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const ee=this.players.indexOf(ae);this.players.splice(ee,1)}),ae.play()}),Te}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==vv;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=qs(i,l,[]);this._getPreviousPlayers(l,d,s,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}qh(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const g=m.element;d.add(g);const p=g[ja];if(p&&p.removedBeforeQueried)return new K_(m.duration,m.delay);const v=g!==c,x=function mHe(t){const n=[];return hZ(t,n),n}((i.get(g)||sHe).map(E=>E.getRealPlayer())).filter(E=>!!E.element&&E.element===g),C=o.get(g),D=s.get(g),z=jY(this._normalizer,m.keyframes,C,D),A=this._buildPlayer(m,z,x);if(m.subTimeline&&r&&u.add(g),v){const E=new SO(n,a,g);E.setRealPlayer(A),l.push(E)}return A});l.forEach(m=>{qs(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function dHe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>ga(m,KY));const f=su(h);return f.onDestroy(()=>{d.forEach(m=>Zp(m,KY)),Oc(c,e.toStyles)}),u.forEach(m=>{qs(r,m,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new K_(n.duration,n.delay)}}class SO{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new K_,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>oO(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){qs(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function qC(t){return t&&1===t.nodeType}function lZ(t,n){const e=t.style.display;return t.style.display=n??"none",e}function dZ(t,n,e,i,r){const o=[];e.forEach(c=>o.push(lZ(c)));const s=[];i.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=n.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[ja]=aHe,s.push(l))}),t.set(l,d)});let a=0;return e.forEach(c=>lZ(c,o[a++])),s}function uZ(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=e.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&e.get(c).push(a)}),e}function ga(t,n){t.classList?.add(n)}function Zp(t,n){t.classList?.remove(n)}function fHe(t,n,e){su(e).onDone(()=>t.processLeaveNode(n))}function hZ(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class yv{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new lHe(n.body,e,i,r),this._timelineEngine=new tHe(n.body,e,i),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],d=bO(this._driver,o,c,[]);if(c.length)throw function rze(t,n){return new le(3404,!1)}();a=function Yze(t,n,e){return new Zze(t,n,e)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=$Y(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=$Y(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class xv{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=xv.initialStylesByElement.get(n);r||xv.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Oc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oc(this._element,this._initialStyles),this._endStyles&&(Oc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xv.initialStylesByElement.delete(this._element),this._startStyles&&(qh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qh(this._element,this._endStyles),this._endStyles=null),Oc(this._element,this._initialStyles),this._state=3)}}function DO(t){let n=null;return t.forEach((e,i)=>{(function _He(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class mZ{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:_O(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pZ{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return WY(n,e)}getParentElement(n){return cO(n)}query(n,e,i){return qY(n,e,i)}computeStyle(n,e,i){return _O(n,e)}animate(n,e,i,r,o,s=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=s.filter(f=>f instanceof mZ);(function Dze(t,n){return 0===t||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function Tze(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(f=>new Map(f));u=function Ize(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,_O(t,a)))}}return n}(n,u,l);const h=function gHe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=DO(n[0]),n.length>1&&(i=DO(n[n.length-1]))):n instanceof Map&&(e=DO(n)),e||i?new xv(t,e,i):null}(n,u);return new mZ(n,u,c,h)}}const gZ="@.disabled";class _Z{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==gZ?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class bHe extends _Z{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==gZ?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function vHe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function yHe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}class xHe{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{const s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(n,e){const r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const l=this._rendererCache;let d=l.get(r);return d||(d=new _Z("",r,this.engine,()=>l.delete(r)),l.set(r,d)),d}const o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,n,l.name,l)};return e.data.animation.forEach(a),new bHe(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let wHe=(()=>{class t extends yv{constructor(e,i,r){super(e,i,r,he(Uy,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(dO),Y(uO))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const bZ=[{provide:uO,useFactory:function kHe(){return new ZY}},{provide:yv,useClass:wHe},{provide:oS,useFactory:function CHe(t,n,e){return new xHe(t,n,e)},deps:[$D,yv,Be]}],IO=[{provide:dO,useFactory:()=>new pZ},{provide:pi,useValue:"BrowserAnimations"},...bZ],vZ=[{provide:dO,useClass:lO},{provide:pi,useValue:"NoopAnimations"},...bZ];let THe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?vZ:IO}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:IO,imports:[n6]})}return t})(),EHe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})(),n7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[KI,ac,Ft,Im,M9,EHe]})}return t})(),h7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Im]})}return t})();Gm("firebase","10.9.0","app"),yj({apiKey:"AIzaSyAFjiIuMBA1IpTrw__WdkQiK5PKht4_go8",authDomain:"snoguess-e4d1c.firebaseapp.com",projectId:"snoguess-e4d1c",storageBucket:"snoguess-e4d1c.appspot.com",messagingSenderId:"289449411190",appId:"1:289449411190:web:49ff68411f9e5148f11557"});let p7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t,bootstrap:[N9e]});static#n=this.\u0275inj=yt({imports:[wge,n6,owe,BPe,THe,v1e,_9e,H9,obe,vbe,Q0e,ZCe,l1,Gye,Tbe,Yye,Yve,nwe,Rbe,nve,xwe,Z2,Rwe,zwe,X1e,oke,P1e,bke,n7e,pCe,Z2,E9e,h7e]})}return t})();Ehe().bootstrapModule(p7e).catch(t=>console.error(t))},867:(Hr,Yh,mo)=>{const Lc=mo(293).a,me=mo(687).array;Hr.exports=class eg{constructor(si={}){Object.assign(this,{list:si.emptyList&&[]||Array.prototype.concat.apply(Lc,[me,si.list||[]]),exclude:si.exclude||[],splitRegex:si.splitRegex||/\b/,placeHolder:si.placeHolder||"*",regex:si.regex||/[^a-zA-Z0-9|\$|\@]|\^/g,replaceRegex:si.replaceRegex||/\w/g})}isProfane(si){return this.list.filter(ji=>{const cr=new RegExp(`\\b${ji.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(ji.toLowerCase())&&cr.test(si)}).length>0||!1}replaceWord(si){return si.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(si){return si.split(this.splitRegex).map(ji=>this.isProfane(ji)?this.replaceWord(ji):ji).join(this.splitRegex.exec(si)[0])}addWords(){let si=Array.from(arguments);this.list.push(...si),si.map(ji=>ji.toLowerCase()).forEach(ji=>{this.exclude.includes(ji)&&this.exclude.splice(this.exclude.indexOf(ji),1)})}removeWords(){this.exclude.push(...Array.from(arguments).map(si=>si.toLowerCase()))}}},402:Hr=>{Hr.exports=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","twat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"]},687:(Hr,Yh,mo)=>{Hr.exports={object:mo(424),array:mo(402),regex:mo(658)}},424:Hr=>{Hr.exports={"4r5e":1,"5h1t":1,"5hit":1,a55:1,anal:1,anus:1,ar5e:1,arrse:1,arse:1,ass:1,"ass-fucker":1,asses:1,assfucker:1,assfukka:1,asshole:1,assholes:1,asswhole:1,a_s_s:1,"b!tch":1,b00bs:1,b17ch:1,b1tch:1,ballbag:1,balls:1,ballsack:1,bastard:1,beastial:1,beastiality:1,bellend:1,bestial:1,bestiality:1,"bi+ch":1,biatch:1,bitch:1,bitcher:1,bitchers:1,bitches:1,bitchin:1,bitching:1,bloody:1,"blow job":1,blowjob:1,blowjobs:1,boiolas:1,bollock:1,bollok:1,boner:1,boob:1,boobs:1,booobs:1,boooobs:1,booooobs:1,booooooobs:1,breasts:1,buceta:1,bugger:1,bum:1,"bunny fucker":1,butt:1,butthole:1,buttmuch:1,buttplug:1,c0ck:1,c0cksucker:1,"carpet muncher":1,cawk:1,chink:1,cipa:1,cl1t:1,clit:1,clitoris:1,clits:1,cnut:1,cock:1,"cock-sucker":1,cockface:1,cockhead:1,cockmunch:1,cockmuncher:1,cocks:1,cocksuck:1,cocksucked:1,cocksucker:1,cocksucking:1,cocksucks:1,cocksuka:1,cocksukka:1,cok:1,cokmuncher:1,coksucka:1,coon:1,cox:1,crap:1,cum:1,cummer:1,cumming:1,cums:1,cumshot:1,cunilingus:1,cunillingus:1,cunnilingus:1,cunt:1,cuntlick:1,cuntlicker:1,cuntlicking:1,cunts:1,cyalis:1,cyberfuc:1,cyberfuck:1,cyberfucked:1,cyberfucker:1,cyberfuckers:1,cyberfucking:1,d1ck:1,damn:1,dick:1,dickhead:1,dildo:1,dildos:1,dink:1,dinks:1,dirsa:1,dlck:1,"dog-fucker":1,doggin:1,dogging:1,donkeyribber:1,doosh:1,duche:1,dyke:1,ejaculate:1,ejaculated:1,ejaculates:1,ejaculating:1,ejaculatings:1,ejaculation:1,ejakulate:1,"f u c k":1,"f u c k e r":1,f4nny:1,fag:1,fagging:1,faggitt:1,faggot:1,faggs:1,fagot:1,fagots:1,fags:1,fanny:1,fannyflaps:1,fannyfucker:1,fanyy:1,fatass:1,fcuk:1,fcuker:1,fcuking:1,feck:1,fecker:1,felching:1,fellate:1,fellatio:1,fingerfuck:1,fingerfucked:1,fingerfucker:1,fingerfuckers:1,fingerfucking:1,fingerfucks:1,fistfuck:1,fistfucked:1,fistfucker:1,fistfuckers:1,fistfucking:1,fistfuckings:1,fistfucks:1,flange:1,fook:1,fooker:1,fuck:1,fucka:1,fucked:1,fucker:1,fuckers:1,fuckhead:1,fuckheads:1,fuckin:1,fucking:1,fuckings:1,fuckingshitmotherfucker:1,fuckme:1,fucks:1,fuckwhit:1,fuckwit:1,"fudge packer":1,fudgepacker:1,fuk:1,fuker:1,fukker:1,fukkin:1,fuks:1,fukwhit:1,fukwit:1,fux:1,fux0r:1,f_u_c_k:1,gangbang:1,gangbanged:1,gangbangs:1,gaylord:1,gaysex:1,goatse:1,God:1,"god-dam":1,"god-damned":1,goddamn:1,goddamned:1,hardcoresex:1,hell:1,heshe:1,hoar:1,hoare:1,hoer:1,homo:1,hore:1,horniest:1,horny:1,hotsex:1,"jack-off":1,jackoff:1,jap:1,"jerk-off":1,jism:1,jiz:1,jizm:1,jizz:1,kawk:1,knob:1,knobead:1,knobed:1,knobend:1,knobhead:1,knobjocky:1,knobjokey:1,kock:1,kondum:1,kondums:1,kum:1,kummer:1,kumming:1,kums:1,kunilingus:1,"l3i+ch":1,l3itch:1,labia:1,lust:1,lusting:1,m0f0:1,m0fo:1,m45terbate:1,ma5terb8:1,ma5terbate:1,masochist:1,"master-bate":1,masterb8:1,"masterbat*":1,masterbat3:1,masterbate:1,masterbation:1,masterbations:1,masturbate:1,"mo-fo":1,mof0:1,mofo:1,mothafuck:1,mothafucka:1,mothafuckas:1,mothafuckaz:1,mothafucked:1,mothafucker:1,mothafuckers:1,mothafuckin:1,mothafucking:1,mothafuckings:1,mothafucks:1,"mother fucker":1,motherfuck:1,motherfucked:1,motherfucker:1,motherfuckers:1,motherfuckin:1,motherfucking:1,motherfuckings:1,motherfuckka:1,motherfucks:1,muff:1,mutha:1,muthafecker:1,muthafuckker:1,muther:1,mutherfucker:1,n1gga:1,n1gger:1,nazi:1,nigg3r:1,nigg4h:1,nigga:1,niggah:1,niggas:1,niggaz:1,nigger:1,niggers:1,nob:1,"nob jokey":1,nobhead:1,nobjocky:1,nobjokey:1,numbnuts:1,nutsack:1,orgasim:1,orgasims:1,orgasm:1,orgasms:1,p0rn:1,pawn:1,pecker:1,penis:1,penisfucker:1,phonesex:1,phuck:1,phuk:1,phuked:1,phuking:1,phukked:1,phukking:1,phuks:1,phuq:1,pigfucker:1,pimpis:1,piss:1,pissed:1,pisser:1,pissers:1,pisses:1,pissflaps:1,pissin:1,pissing:1,pissoff:1,poop:1,porn:1,porno:1,pornography:1,pornos:1,prick:1,pricks:1,pron:1,pube:1,pusse:1,pussi:1,pussies:1,pussy:1,pussys:1,rectum:1,retard:1,rimjaw:1,rimming:1,"s hit":1,"s.o.b.":1,sadist:1,schlong:1,screwing:1,scroat:1,scrote:1,scrotum:1,semen:1,sex:1,"sh!+":1,"sh!t":1,sh1t:1,shag:1,shagger:1,shaggin:1,shagging:1,shemale:1,"shi+":1,shit:1,shitdick:1,shite:1,shited:1,shitey:1,shitfuck:1,shitfull:1,shithead:1,shiting:1,shitings:1,shits:1,shitted:1,shitter:1,shitters:1,shitting:1,shittings:1,shitty:1,skank:1,slut:1,sluts:1,smegma:1,smut:1,snatch:1,"son-of-a-bitch":1,spac:1,spunk:1,s_h_i_t:1,t1tt1e5:1,t1tties:1,teets:1,teez:1,testical:1,testicle:1,tit:1,titfuck:1,tits:1,titt:1,tittie5:1,tittiefucker:1,titties:1,tittyfuck:1,tittywank:1,titwank:1,tosser:1,turd:1,tw4t:1,twat:1,twathead:1,twatty:1,twunt:1,twunter:1,v14gra:1,v1gra:1,vagina:1,viagra:1,vulva:1,w00se:1,wang:1,wank:1,wanker:1,wanky:1,whoar:1,whore:1,willies:1,willy:1,xrated:1,xxx:1}},658:Hr=>{Hr.exports=/\b(4r5e|5h1t|5hit|a55|anal|anus|ar5e|arrse|arse|ass|ass-fucker|asses|assfucker|assfukka|asshole|assholes|asswhole|a_s_s|b!tch|b00bs|b17ch|b1tch|ballbag|balls|ballsack|bastard|beastial|beastiality|bellend|bestial|bestiality|bi\+ch|biatch|bitch|bitcher|bitchers|bitches|bitchin|bitching|bloody|blow job|blowjob|blowjobs|boiolas|bollock|bollok|boner|boob|boobs|booobs|boooobs|booooobs|booooooobs|breasts|buceta|bugger|bum|bunny fucker|butt|butthole|buttmuch|buttplug|c0ck|c0cksucker|carpet muncher|cawk|chink|cipa|cl1t|clit|clitoris|clits|cnut|cock|cock-sucker|cockface|cockhead|cockmunch|cockmuncher|cocks|cocksuck|cocksucked|cocksucker|cocksucking|cocksucks|cocksuka|cocksukka|cok|cokmuncher|coksucka|coon|cox|crap|cum|cummer|cumming|cums|cumshot|cunilingus|cunillingus|cunnilingus|cunt|cuntlick|cuntlicker|cuntlicking|cunts|cyalis|cyberfuc|cyberfuck|cyberfucked|cyberfucker|cyberfuckers|cyberfucking|d1ck|damn|dick|dickhead|dildo|dildos|dink|dinks|dirsa|dlck|dog-fucker|doggin|dogging|donkeyribber|doosh|duche|dyke|ejaculate|ejaculated|ejaculates|ejaculating|ejaculatings|ejaculation|ejakulate|f u c k|f u c k e r|f4nny|fag|fagging|faggitt|faggot|faggs|fagot|fagots|fags|fanny|fannyflaps|fannyfucker|fanyy|fatass|fcuk|fcuker|fcuking|feck|fecker|felching|fellate|fellatio|fingerfuck|fingerfucked|fingerfucker|fingerfuckers|fingerfucking|fingerfucks|fistfuck|fistfucked|fistfucker|fistfuckers|fistfucking|fistfuckings|fistfucks|flange|fook|fooker|fuck|fucka|fucked|fucker|fuckers|fuckhead|fuckheads|fuckin|fucking|fuckings|fuckingshitmotherfucker|fuckme|fucks|fuckwhit|fuckwit|fudge packer|fudgepacker|fuk|fuker|fukker|fukkin|fuks|fukwhit|fukwit|fux|fux0r|f_u_c_k|gangbang|gangbanged|gangbangs|gaylord|gaysex|goatse|God|god-dam|god-damned|goddamn|goddamned|hardcoresex|hell|heshe|hoar|hoare|hoer|homo|hore|horniest|horny|hotsex|jack-off|jackoff|jap|jerk-off|jism|jiz|jizm|jizz|kawk|knob|knobead|knobed|knobend|knobhead|knobjocky|knobjokey|kock|kondum|kondums|kum|kummer|kumming|kums|kunilingus|l3i\+ch|l3itch|labia|lust|lusting|m0f0|m0fo|m45terbate|ma5terb8|ma5terbate|masochist|master-bate|masterb8|masterbat*|masterbat3|masterbate|masterbation|masterbations|masturbate|mo-fo|mof0|mofo|mothafuck|mothafucka|mothafuckas|mothafuckaz|mothafucked|mothafucker|mothafuckers|mothafuckin|mothafucking|mothafuckings|mothafucks|mother fucker|motherfuck|motherfucked|motherfucker|motherfuckers|motherfuckin|motherfucking|motherfuckings|motherfuckka|motherfucks|muff|mutha|muthafecker|muthafuckker|muther|mutherfucker|n1gga|n1gger|nazi|nigg3r|nigg4h|nigga|niggah|niggas|niggaz|nigger|niggers|nob|nob jokey|nobhead|nobjocky|nobjokey|numbnuts|nutsack|orgasim|orgasims|orgasm|orgasms|p0rn|pawn|pecker|penis|penisfucker|phonesex|phuck|phuk|phuked|phuking|phukked|phukking|phuks|phuq|pigfucker|pimpis|piss|pissed|pisser|pissers|pisses|pissflaps|pissin|pissing|pissoff|poop|porn|porno|pornography|pornos|prick|pricks|pron|pube|pusse|pussi|pussies|pussy|pussys|rectum|retard|rimjaw|rimming|s hit|s.o.b.|sadist|schlong|screwing|scroat|scrote|scrotum|semen|sex|sh!\+|sh!t|sh1t|shag|shagger|shaggin|shagging|shemale|shi\+|shit|shitdick|shite|shited|shitey|shitfuck|shitfull|shithead|shiting|shitings|shits|shitted|shitter|shitters|shitting|shittings|shitty|skank|slut|sluts|smegma|smut|snatch|son-of-a-bitch|spac|spunk|s_h_i_t|t1tt1e5|t1tties|teets|teez|testical|testicle|tit|titfuck|tits|titt|tittie5|tittiefucker|titties|tittyfuck|tittywank|titwank|tosser|turd|tw4t|twat|twathead|twatty|twunt|twunter|v14gra|v1gra|vagina|viagra|vulva|w00se|wang|wank|wanker|wanky|whoar|whore|willies|willy|xrated|xxx)\b/gi},578:function(Hr,Yh){var mo,me;void 0!==(me="function"==typeof(mo=function(){"use strict";function hi(Fn,qn,Ts){var Qn=new XMLHttpRequest;Qn.open("GET",Fn),Qn.responseType="blob",Qn.onload=function(){cu(Qn.response,qn,Ts)},Qn.onerror=function(){console.error("could not download file")},Qn.send()}function si(Fn){var qn=new XMLHttpRequest;qn.open("HEAD",Fn,!1);try{qn.send()}catch{}return 200<=qn.status&&299>=qn.status}function ji(Fn){try{Fn.dispatchEvent(new MouseEvent("click"))}catch{var qn=document.createEvent("MouseEvents");qn.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Fn.dispatchEvent(qn)}}var cr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Gt=cr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),cu=cr.saveAs||("object"!=typeof window||window!==cr?function(){}:"download"in HTMLAnchorElement.prototype&&!Gt?function(Fn,qn,Ts){var Qn=cr.URL||cr.webkitURL,$o=document.createElement("a");$o.download=qn=qn||Fn.name||"download",$o.rel="noopener","string"==typeof Fn?($o.href=Fn,$o.origin===location.origin?ji($o):si($o.href)?hi(Fn,qn,Ts):ji($o,$o.target="_blank")):($o.href=Qn.createObjectURL(Fn),setTimeout(function(){Qn.revokeObjectURL($o.href)},4e4),setTimeout(function(){ji($o)},0))}:"msSaveOrOpenBlob"in navigator?function(Fn,qn,Ts){if(qn=qn||Fn.name||"download","string"!=typeof Fn)navigator.msSaveOrOpenBlob(function eg(Fn,qn){return typeof qn>"u"?qn={autoBom:!1}:"object"!=typeof qn&&(console.warn("Deprecated: Expected third argument to be a object"),qn={autoBom:!qn}),qn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Fn.type)?new Blob(["\ufeff",Fn],{type:Fn.type}):Fn}(Fn,Ts),qn);else if(si(Fn))hi(Fn,qn,Ts);else{var Qn=document.createElement("a");Qn.href=Fn,Qn.target="_blank",setTimeout(function(){ji(Qn)})}}:function(Fn,qn,Ts,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof Fn)return hi(Fn,qn,Ts);var $o="application/octet-stream"===Fn.type,Tv=/constructor/i.test(cr.HTMLElement)||cr.safari,tg=/CriOS\/[\d]+/.test(navigator.userAgent);if((tg||$o&&Tv||Gt)&&typeof FileReader<"u"){var Zh=new FileReader;Zh.onloadend=function(){var Vl=Zh.result;Vl=tg?Vl:Vl.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=Vl:location=Vl,Qn=null},Zh.readAsDataURL(Fn)}else{var ng=cr.URL||cr.webkitURL,Jh=ng.createObjectURL(Fn);Qn?Qn.location=Jh:location.href=Jh,Qn=null,setTimeout(function(){ng.revokeObjectURL(Jh)},4e4)}});cr.saveAs=cu.saveAs=cu,Hr.exports=cu})?mo.apply(Yh,[]):mo)&&(Hr.exports=me)},293:Hr=>{"use strict";Hr.exports=JSON.parse('{"a":["ahole","anus","ash0le","ash0les","asholes","ass","Ass Monkey","Assface","assh0le","assh0lez","asshole","assholes","assholz","asswipe","azzhole","bassterds","bastard","bastards","bastardz","basterds","basterdz","Biatch","bitch","bitches","Blow Job","boffing","butthole","buttwipe","c0ck","c0cks","c0k","Carpet Muncher","cawk","cawks","Clit","cnts","cntz","cock","cockhead","cock-head","cocks","CockSucker","cock-sucker","crap","cum","cunt","cunts","cuntz","dick","dild0","dild0s","dildo","dildos","dilld0","dilld0s","dominatricks","dominatrics","dominatrix","dyke","enema","f u c k","f u c k e r","fag","fag1t","faget","fagg1t","faggit","faggot","fagg0t","fagit","fags","fagz","faig","faigs","fart","flipping the bird","fuck","fucker","fuckin","fucking","fucks","Fudge Packer","fuk","Fukah","Fuken","fuker","Fukin","Fukk","Fukkah","Fukken","Fukker","Fukkin","g00k","God-damned","h00r","h0ar","h0re","hells","hoar","hoor","hoore","jackoff","jap","japs","jerk-off","jisim","jiss","jizm","jizz","knob","knobs","knobz","kunt","kunts","kuntz","Lezzian","Lipshits","Lipshitz","masochist","masokist","massterbait","masstrbait","masstrbate","masterbaiter","masterbate","masterbates","Motha Fucker","Motha Fuker","Motha Fukkah","Motha Fukker","Mother Fucker","Mother Fukah","Mother Fuker","Mother Fukkah","Mother Fukker","mother-fucker","Mutha Fucker","Mutha Fukah","Mutha Fuker","Mutha Fukkah","Mutha Fukker","n1gr","nastt","nigger;","nigur;","niiger;","niigr;","orafis","orgasim;","orgasm","orgasum","oriface","orifice","orifiss","packi","packie","packy","paki","pakie","paky","pecker","peeenus","peeenusss","peenus","peinus","pen1s","penas","penis","penis-breath","penus","penuus","Phuc","Phuck","Phuk","Phuker","Phukker","polac","polack","polak","Poonani","pr1c","pr1ck","pr1k","pusse","pussee","pussy","puuke","puuker","qweir","recktum","rectum","retard","sadist","scank","schlong","screwing","semen","sex","sexy","Sh!t","sh1t","sh1ter","sh1ts","sh1tter","sh1tz","shit","shits","shitter","Shitty","Shity","shitz","Shyt","Shyte","Shytty","Shyty","skanck","skank","skankee","skankey","skanks","Skanky","slag","slut","sluts","Slutty","slutz","son-of-a-bitch","tit","turd","va1jina","vag1na","vagiina","vagina","vaj1na","vajina","vullva","vulva","w0p","wh00r","wh0re","whore","xrated","xxx","b!+ch","bitch","blowjob","clit","arschloch","fuck","shit","ass","asshole","b!tch","b17ch","b1tch","bastard","bi+ch","boiolas","buceta","c0ck","cawk","chink","cipa","clits","cock","cum","cunt","dildo","dirsa","ejakulate","fatass","fcuk","fuk","fux0r","hoer","hore","jism","kawk","l3itch","l3i+ch","masturbate","masterbat*","masterbat3","motherfucker","s.o.b.","mofo","nazi","nigga","nigger","nutsack","phuck","pimpis","pusse","pussy","scrotum","sh!t","shemale","shi+","sh!+","slut","smut","teets","tits","boobs","b00bs","teez","testical","testicle","titt","w00se","jackoff","wank","whoar","whore","*damn","*dyke","*fuck*","*shit*","@$$","amcik","andskota","arse*","assrammer","ayir","bi7ch","bitch*","bollock*","breasts","butt-pirate","cabron","cazzo","chraa","chuj","Cock*","cunt*","d4mn","daygo","dego","dick*","dike*","dupa","dziwka","ejackulate","Ekrem*","Ekto","enculer","faen","fag*","fanculo","fanny","feces","feg","Felcher","ficken","fitt*","Flikker","foreskin","Fotze","Fu(*","fuk*","futkretzn","gook","guiena","h0r","h4x0r","hell","helvete","hoer*","honkey","Huevon","hui","injun","jizz","kanker*","kike","klootzak","kraut","knulle","kuk","kuksuger","Kurac","kurwa","kusi*","kyrpa*","lesbo","mamhoon","masturbat*","merd*","mibun","monkleigh","mouliewop","muie","mulkku","muschi","nazis","nepesaurio","nigger*","orospu","paska*","perse","picka","pierdol*","pillu*","pimmel","piss*","pizda","poontsee","poop","porn","p0rn","pr0n","preteen","pula","pule","puta","puto","qahbeh","queef*","rautenberg","schaffer","scheiss*","schlampe","schmuck","screw","sh!t*","sharmuta","sharmute","shipal","shiz","skribz","skurwysyn","sphencter","spic","spierdalaj","splooge","suka","b00b*","testicle*","titt*","twat","vittu","wank*","wetback*","wichser","wop*","yed","zabourah"]}')}},Hr=>{Hr(Hr.s=857)}]); \ No newline at end of file +(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[792],{857:(Ur,Yh,mo)=>{"use strict";function Lc(t,n,e,i,r,o,s){try{var a=t[o](s),c=a.value}catch(l){return void e(l)}a.done?n(c):Promise.resolve(c).then(i,r)}function me(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(c){Lc(o,i,r,s,a,"next",c)}function a(c){Lc(o,i,r,s,a,"throw",c)}s(void 0)})}}let hi=null,si=!1,ji=1;const cr=Symbol("SIGNAL");function Gt(t){const n=hi;return hi=t,n}const Cs={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 Cv(t){if((!ig(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==ji)){if(!t.producerMustRecompute(t)&&!KC(t))return t.dirty=!1,void(t.lastCleanEpoch=ji);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ji}}function ng(t){t.dirty=!0,function tg(t){if(void 0===t.liveConsumerNode)return;const n=si;si=!0;try{for(const e of t.liveConsumerNode)e.dirty||ng(e)}finally{si=n}}(t),t.consumerMarkedDirty?.(t)}function Jh(t){return t&&(t.nextProducerIndex=0),Gt(t)}function Vl(t,n){if(Gt(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(ig(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function KC(t){ef(t);for(let n=0;n0}function ef(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let NO=null;const YC=()=>{},LZ={...Cs,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{null!==t.schedule&&t.schedule(t.ref)},hasRun:!1,cleanupFn:YC};function On(t){return"function"==typeof t}function ZC(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const JC=ZC(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ev(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Wt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(On(i))try{i()}catch(o){n=o instanceof JC?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{UO(o)}catch(s){n=n??[],s instanceof JC?n=[...n,...s.errors]:n.push(s)}}if(n)throw new JC(n)}}add(n){var e;if(n&&n!==this)if(this.closed)UO(n);else{if(n instanceof Wt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Ev(e,n)}remove(n){const{_finalizers:e}=this;e&&Ev(e,n),n instanceof Wt&&n._removeParent(this)}}Wt.EMPTY=(()=>{const t=new Wt;return t.closed=!0,t})();const VO=Wt.EMPTY;function BO(t){return t instanceof Wt||t&&"closed"in t&&On(t.remove)&&On(t.add)&&On(t.unsubscribe)}function UO(t){On(t)?t():t.unsubscribe()}const lu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sv={setTimeout(t,n,...e){const{delegate:i}=Sv;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Sv;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function zO(t){Sv.setTimeout(()=>{const{onUnhandledError:n}=lu;if(!n)throw t;n(t)})}function Dv(){}const VZ=eT("C",void 0,void 0);function eT(t,n,e){return{kind:t,value:n,error:e}}let du=null;function Iv(t){if(lu.useDeprecatedSynchronousErrorHandling){const n=!du;if(n&&(du={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=du;if(du=null,e)throw i}}else t()}class tT extends Wt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,BO(n)&&n.add(this)):this.destination=GZ}static create(n,e,i){return new tf(n,e,i)}next(n){this.isStopped?iT(function UZ(t){return eT("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?iT(function BZ(t){return eT("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?iT(VZ,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const HZ=Function.prototype.bind;function nT(t,n){return HZ.call(t,n)}class jZ{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Av(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Av(i)}else Av(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Av(e)}}}class tf extends tT{constructor(n,e,i){let r;if(super(),On(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&lu.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&nT(n.next,o),error:n.error&&nT(n.error,o),complete:n.complete&&nT(n.complete,o)}):r=n}this.destination=new jZ(r)}}function Av(t){lu.useDeprecatedSynchronousErrorHandling?function zZ(t){lu.useDeprecatedSynchronousErrorHandling&&du&&(du.errorThrown=!0,du.error=t)}(t):zO(t)}function iT(t,n){const{onStoppedNotification:e}=lu;e&&Sv.setTimeout(()=>e(t,n))}const GZ={closed:!0,next:Dv,error:function $Z(t){throw t},complete:Dv},rT="function"==typeof Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}function HO(t){return 0===t.length?Bl:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let jn=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function QZ(t){return t&&t instanceof tT||function qZ(t){return t&&On(t.next)&&On(t.error)&&On(t.complete)}(t)&&BO(t)}(e)?e:new tf(e,i,r);return Iv(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=jO(i))((r,o)=>{const s=new tf({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[rT](){return this}pipe(...e){return HO(e)(this)}toPromise(e){return new(e=jO(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function jO(t){var n;return null!==(n=t??lu.Promise)&&void 0!==n?n:Promise}const KZ=ZC(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Me=(()=>{class t extends jn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new $O(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new KZ}next(e){Iv(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Iv(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Iv(()=>{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:i,isStopped:r,observers:o}=this;return i||r?VO:(this.currentObservers=null,o.push(e),new Wt(()=>{this.currentObservers=null,Ev(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new jn;return e.source=this,e}}return t.create=(n,e)=>new $O(n,e),t})();class $O extends Me{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:VO}}class wi extends Me{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function GO(t){return On(t?.lift)}function Ni(t){return n=>{if(GO(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ki(t,n,e,i,r){return new XZ(t,n,e,i,r)}class XZ extends tT{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function mt(t,n){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>{i.next(t.call(n,o,r++))}))})}const WO="https://g.co/ng/security#xss";class le extends Error{constructor(n,e){super(function nf(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Vc(t){return{toString:t}.toString()}const sf="__parameters__";function cf(t,n,e){return Vc(()=>{const i=function oT(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,d){const u=c.hasOwnProperty(sf)?c[sf]:Object.defineProperty(c,sf,{value:[]})[sf];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const $n=globalThis;function Kn(t){for(let n in t)if(t[n]===Kn)return n;throw Error("Could not find renamed property on target object.")}function YZ(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function xr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(xr).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function sT(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const ZZ=Kn({__forward_ref__:Kn});function an(t){return t.__forward_ref__=an,t.toString=function(){return xr(this())},t}function At(t){return Rv(t)?t():t}function Rv(t){return"function"==typeof t&&t.hasOwnProperty(ZZ)&&t.__forward_ref__===an}function we(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function yt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Pv(t){return XO(t,Ov)||XO(t,YO)}function XO(t,n){return t.hasOwnProperty(n)?t[n]:null}function Fv(t){return t&&(t.hasOwnProperty(aT)||t.hasOwnProperty(rJ))?t[aT]:null}const Ov=Kn({\u0275prov:Kn}),aT=Kn({\u0275inj:Kn}),YO=Kn({ngInjectableDef:Kn}),rJ=Kn({ngInjectorDef:Kn});class J{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=we({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hT(t){return t&&!!t.\u0275providers}const rg=Kn({\u0275cmp:Kn}),fT=Kn({\u0275dir:Kn}),mT=Kn({\u0275pipe:Kn}),JO=Kn({\u0275mod:Kn}),Bc=Kn({\u0275fac:Kn}),og=Kn({__NG_ELEMENT_ID__:Kn}),eN=Kn({__NG_ENV_ID__:Kn});function Lt(t){return"string"==typeof t?t:null==t?"":String(t)}function pT(t,n){throw new le(-201,!1)}var mn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(mn||{});let gT;function tN(){return gT}function os(t){const n=gT;return gT=t,n}function nN(t,n,e){const i=Pv(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&mn.Optional?null:void 0!==n?n:void pT()}const sg={},_T="__NG_DI_FLAG__",Nv="ngTempTokenPath",dJ=/\n/gm,iN="__source";let lf;function zl(t){const n=lf;return lf=t,n}function fJ(t,n=mn.Default){if(void 0===lf)throw new le(-203,!1);return null===lf?nN(t,void 0,n):lf.get(t,n&mn.Optional?null:void 0,n)}function Y(t,n=mn.Default){return(tN()||fJ)(At(t),n)}function he(t,n=mn.Default){return Y(t,Lv(n))}function Lv(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function bT(t){const n=[];for(let e=0;eArray.isArray(e)?uf(e,n):n(e))}function oN(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Vv(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ss(t,n,e){let i=hf(t,n);return i>=0?t[1|i]=e:(i=~i,function sN(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function yT(t,n){const e=hf(t,n);if(e>=0)return t[1|e]}function hf(t,n){return function aN(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<n){s=o-1;break}}}for(;o-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&l!==u){if(va(i))return!1;s=!0}}}}else{if(!s&&!va(i)&&!va(c))return!1;if(s&&va(c))continue;s=!1,i=c|1&i}}return va(i)||s}function va(t){return!(1&t)}function TJ(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!va(s)&&(n+=mN(o,r),r=""),i=s,o=o||!va(i);e++}return""!==r&&(n+=mN(o,r)),n}function ze(t){return Vc(()=>{const n=gN(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ba.Emulated,styles:t.styles||An,_:null,schemas:t.schemas||null,tView:null,id:""};_N(e);const i=t.dependencies;return e.directiveDefs=Hv(i,!1),e.pipeDefs=Hv(i,!0),e.id=function NJ(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function PJ(t){return cn(t)||wr(t)}function FJ(t){return null!==t}function Ct(t){return Vc(()=>({type:t.type,bootstrap:t.bootstrap||An,declarations:t.declarations||An,imports:t.imports||An,exports:t.exports||An,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function pN(t,n){if(null==t)return $a;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let o,s,a=W.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==W.None?[i,a]:i,n[o]=s):e[o]=i}return e}function ce(t){return Vc(()=>{const n=gN(t);return _N(n),n})}function po(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function cn(t){return t[rg]||null}function wr(t){return t[fT]||null}function eo(t){return t[mT]||null}function go(t,n){const e=t[JO]||null;if(!e&&!0===n)throw new Error(`Type ${xr(t)} does not have '\u0275mod' property.`);return e}function gN(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||$a,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||An,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pN(t.inputs,n),outputs:pN(t.outputs),debugInfo:null}}function _N(t){t.features?.forEach(n=>n(t))}function Hv(t,n){if(!t)return null;const e=n?eo:PJ;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(FJ)}function LJ(...t){return{\u0275providers:CT(0,t),\u0275fromNgModule:!0}}function CT(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return uf(n,s=>{const a=s;jv(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&bN(r,o),e}function bN(t,n){for(let e=0;e{n(o,i)})}}function jv(t,n,e,i){if(!(t=At(t)))return!1;let r=null,o=Fv(t);const s=!o&&cn(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=Fv(c),!o)return!1;r=c}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)jv(l,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{uf(o.imports,d=>{jv(d,n,e,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&bN(l,n)}if(!a){const l=uu(r)||(()=>new r);n({provide:r,useFactory:l,deps:An},r),n({provide:xT,useValue:r,multi:!0},r),n({provide:hu,useValue:()=>Y(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=t;TT(c,d=>{n(d,l)})}}}return r!==t&&void 0!==t.providers}function TT(t,n){for(let e of t)hT(e)&&(e=e.\u0275providers),Array.isArray(e)?TT(e,n):n(e)}const VJ=Kn({provide:String,useValue:Kn});function ET(t){return null!==t&&"object"==typeof t&&VJ in t}function fu(t){return"function"==typeof t}const ST=new J(""),$v={},UJ={};let DT;function Gv(){return void 0===DT&&(DT=new Uv),DT}class as{}class ff extends as{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,AT(n,s=>this.processProvider(s)),this.records.set(cN,mf(void 0,this)),r.has("environment")&&this.records.set(as,mf(void 0,this));const o=this.records.get(ST);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(xT,An,mn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=Gt(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Gt(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=zl(this),i=os(void 0);try{return n()}finally{zl(e),os(i)}}get(n,e=sg,i=mn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(eN))return n[eN](this);i=Lv(i);const o=zl(this),s=os(void 0);try{if(!(i&mn.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function GJ(t){return"function"==typeof t||"object"==typeof t&&t instanceof J}(n)&&Pv(n);c=l&&this.injectableDefInScope(l)?mf(IT(n),$v):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&mn.Self?Gv():this.parent).get(n,e=i&mn.Optional&&e===sg?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Nv]=a[Nv]||[]).unshift(xr(n)),o)throw a;return function pJ(t,n,e,i){const r=t[Nv];throw n[iN]&&r.unshift(n[iN]),t.message=function gJ(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=xr(n);if(Array.isArray(n))r=n.map(xr).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):xr(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(dJ,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Nv]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{os(s),zl(o)}}resolveInjectorInitializers(){const n=Gt(null),e=zl(this),i=os(void 0);try{const o=this.get(hu,An,mn.Self);for(const s of o)s()}finally{zl(e),os(i),Gt(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(xr(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new le(205,!1)}processProvider(n){let e=fu(n=At(n))?n:At(n&&n.provide);const i=function HJ(t){return ET(t)?mf(void 0,t.useValue):mf(xN(t),$v)}(n);if(!fu(n)&&!0===n.multi){let r=this.records.get(e);r||(r=mf(void 0,$v,!0),r.factory=()=>bT(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=Gt(null);try{return e.value===$v&&(e.value=UJ,e.value=e.factory()),"object"==typeof e.value&&e.value&&function $J(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Gt(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=At(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function IT(t){const n=Pv(t),e=null!==n?n.factory:uu(t);if(null!==e)return e;if(t instanceof J)throw new le(204,!1);if(t instanceof Function)return function zJ(t){if(t.length>0)throw new le(204,!1);const e=function iJ(t){return t&&(t[Ov]||t[YO])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new le(204,!1)}function xN(t,n,e){let i;if(fu(t)){const r=At(t);return uu(r)||IT(r)}if(ET(t))i=()=>At(t.useValue);else if(function yN(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...bT(t.deps||[]));else if(function vN(t){return!(!t||!t.useExisting)}(t))i=()=>Y(At(t.useExisting));else{const r=At(t&&(t.useClass||t.provide));if(!function jJ(t){return!!t.deps}(t))return uu(r)||IT(r);i=()=>new r(...bT(t.deps))}return i}function mf(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function AT(t,n){for(const e of t)Array.isArray(e)?AT(e,n):e&&hT(e)?AT(e.\u0275providers,n):n(e)}function Ga(t,n){t instanceof ff&&t.assertNotDestroyed();const i=zl(t),r=os(void 0);try{return n()}finally{zl(i),os(r)}}function wN(){return void 0!==tN()||null!=function hJ(){return lf}()}function Wv(t){if(!wN())throw new le(-203,!1)}const Di=0,Le=1,bt=2,$i=3,ya=4,_o=5,Ds=6,gf=7,fi=8,to=9,xa=10,Rt=11,ug=12,CN=13,_f=14,Li=15,hg=16,bf=17,Uc=18,fg=19,TN=20,$l=21,Qv=22,mu=23,Vt=25,RT=1,Wa=7,vf=9,Gi=10;var PT=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(PT||{});function bo(t){return Array.isArray(t)&&"object"==typeof t[RT]}function vo(t){return Array.isArray(t)&&!0===t[RT]}function FT(t){return!!(4&t.flags)}function pu(t){return t.componentOffset>-1}function Xv(t){return!(1&~t.flags)}function wa(t){return!!t.template}function OT(t){return!!(512&t[bt])}class ree{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function IN(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Un(){return AN}function AN(t){return t.type.prototype.ngOnChanges&&(t.setInput=see),oee}function oee(){const t=RN(this),n=t?.current;if(n){const e=t.previous;if(e===$a)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function see(t,n,e,i,r){const o=this.declaredInputs[i],s=RN(t)||function aee(t,n){return t[MN]=n}(t,{previous:$a,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new ree(l&&l.currentValue,e,c===$a),IN(t,n,r,e)}Un.ngInherit=!0;const MN="__ngSimpleChanges__";function RN(t){return t[MN]||null}const qa=function(t,n,e){},PN="svg";let ON=!1;function ai(t){for(;Array.isArray(t);)t=t[Di];return t}function pg(t,n){return ai(n[t])}function Go(t,n){return ai(n[t.index])}function gg(t,n){return t.data[n]}function yf(t,n){return t[n]}function Is(t,n){const e=n[t];return bo(e)?e:e[Di]}function UT(t){return!(128&~t[bt])}function Qa(t,n){return null==n?null:t[n]}function NN(t){t[bf]=0}function fee(t){1024&t[bt]||(t[bt]|=1024,UT(t)&&_g(t))}function zT(t){return!!(9216&t[bt]||t[mu]?.dirty)}function HT(t){t[xa].changeDetectionScheduler?.notify(1),zT(t)?_g(t):64&t[bt]&&(function lee(){return ON}()?(t[bt]|=1024,_g(t)):t[xa].changeDetectionScheduler?.notify())}function _g(t){t[xa].changeDetectionScheduler?.notify();let n=gu(t);for(;null!==n&&!(8192&n[bt])&&(n[bt]|=8192,UT(n));)n=gu(n)}function Yv(t,n){if(!(256&~t[bt]))throw new le(911,!1);null===t[$l]&&(t[$l]=[]),t[$l].push(n)}function gu(t){const n=t[$i];return vo(n)?n[$i]:n}const Pt={lFrame:WN(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function BN(){return Pt.bindingsEnabled}function xf(){return null!==Pt.skipHydrationRootTNode}function be(){return Pt.lFrame.lView}function pn(){return Pt.lFrame.tView}function z(t){return Pt.lFrame.contextLView=t,t[fi]}function H(t){return Pt.lFrame.contextLView=null,t}function Xn(){let t=UN();for(;null!==t&&64===t.type;)t=t.parent;return t}function UN(){return Pt.lFrame.currentTNode}function Ka(t,n){const e=Pt.lFrame;e.currentTNode=t,e.isParent=n}function $T(){return Pt.lFrame.isParent}function GT(){Pt.lFrame.isParent=!1}function Wo(){const t=Pt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function zc(){return Pt.lFrame.bindingIndex}function ka(){return Pt.lFrame.bindingIndex++}function Hc(t){const n=Pt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function Cee(t,n){const e=Pt.lFrame;e.bindingIndex=e.bindingRootIndex=t,WT(n)}function WT(t){Pt.lFrame.currentDirectiveIndex=t}function qT(t){const n=Pt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function QT(){return Pt.lFrame.currentQueryIndex}function Zv(t){Pt.lFrame.currentQueryIndex=t}function Eee(t){const n=t[Le];return 2===n.type?n.declTNode:1===n.type?t[_o]:null}function $N(t,n,e){if(e&mn.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&mn.Host||(r=Eee(o),null===r||(o=o[_f],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Pt.lFrame=GN();return i.currentTNode=n,i.lView=t,!0}function KT(t){const n=GN(),e=t[Le];Pt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function GN(){const t=Pt.lFrame,n=null===t?null:t.child;return null===n?WN(t):n}function WN(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function qN(){const t=Pt.lFrame;return Pt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const QN=qN;function XT(){const t=qN();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function yo(){return Pt.lFrame.selectedIndex}function _u(t){Pt.lFrame.selectedIndex=t}function mi(){const t=Pt.lFrame;return gg(t.tView,t.selectedIndex)}function jc(){Pt.lFrame.currentNamespace=PN}function Jv(){!function Iee(){Pt.lFrame.currentNamespace=null}()}let XN=!0;function vg(){return XN}function Xa(t){XN=t}function ey(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[bf]+=65536),(a>14>16&&(3&t[bt])===n&&(t[bt]+=16384,ZN(a,o)):ZN(a,o)}const wf=-1;class yg{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function JT(t){return t!==wf}function xg(t){return 32767&t}function wg(t,n){let e=function Nee(t){return t>>16}(t),i=n;for(;e>0;)i=i[_f],e--;return i}let eE=!0;function iy(t){const n=eE;return eE=t,n}const JN=255,e4=5;let Lee=0;const Ya={};function ry(t,n){const e=t4(t,n);if(-1!==e)return e;const i=n[Le];i.firstCreatePass&&(t.injectorIndex=n.length,tE(i.data,t),tE(n,null),tE(i.blueprint,null));const r=oy(t,n),o=t.injectorIndex;if(JT(r)){const s=xg(r),a=wg(r,n),c=a[Le].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function tE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function t4(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function oy(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=l4(r),null===i)return wf;if(e++,r=r[_f],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wf}function nE(t,n,e){!function Vee(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(og)&&(i=e[og]),null==i&&(i=e[og]=Lee++);const r=i&JN;n.data[t+(r>>e4)]|=1<=0?n&JN:Hee:n}(e);if("function"==typeof o){if(!$N(n,t,i))return i&mn.Host?n4(r,0,i):r4(n,e,i,r);try{let s;if(s=o(i),null!=s||i&mn.Optional)return s;pT()}finally{QN()}}else if("number"==typeof o){let s=null,a=t4(t,n),c=wf,l=i&mn.Host?n[Li][_o]:null;for((-1===a||i&mn.SkipSelf)&&(c=-1===a?oy(t,n):n[a+8],c!==wf&&c4(i,!1)?(s=n[Le],a=xg(c),n=wg(c,n)):a=-1);-1!==a;){const d=n[Le];if(a4(o,a,d.data)){const u=Uee(a,n,e,s,i,l);if(u!==Ya)return u}c=n[a+8],c!==wf&&c4(i,n[Le].data[a+8]===l)&&a4(o,a,n)?(s=d,a=xg(c),n=wg(c,n)):a=-1}}return r}function Uee(t,n,e,i,r,o){const s=n[Le],a=s.data[t+8],d=sy(a,s,e,null==i?pu(a)&&eE:i!=s&&!!(3&a.type),r&mn.Host&&o===a);return null!==d?bu(n,s,d,a):Ya}function sy(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,c=t.directiveStart,d=o>>20,h=r?a+d:t.directiveEnd;for(let f=i?a:a+d;f=c&&m.type===e)return f}if(r){const f=s[c];if(f&&wa(f)&&f.type===e)return c}return null}function bu(t,n,e,i){let r=t[e];const o=n.data;if(function Ree(t){return t instanceof yg}(r)){const s=r;s.resolving&&function aJ(t,n){throw n&&n.join(" > "),new le(-200,t)}(function Bn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Lt(t)}(o[e]));const a=iy(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?os(s.injectImpl):null;$N(t,i,mn.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Aee(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=AN(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==l&&os(l),iy(a),s.resolving=!1,QN()}}return r}function a4(t,n,e){return!!(e[n+(t>>e4)]&1<{const n=t.prototype.constructor,e=n[Bc]||iE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Bc]||iE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function iE(t){return Rv(t)?()=>{const n=iE(At(t));return n&&n()}:uu(t)}function l4(t){const n=t[Le],e=n.type;return 2===e?n.declTNode:1===e?t[_o]:null}function As(t){return function Bee(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{class t{static#e=this.THROW_IF_NOT_FOUND=sg;static#t=this.NULL=new Uv;static create(e,i){if(Array.isArray(e))return m4({name:""},i,e,"");{const r=e.name??"";return m4({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=we({token:t,providedIn:"any",factory:()=>Y(cN)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function oE(t){return t.ngOriginalError}class Ms{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&oE(n);for(;e&&oE(e);)e=oE(e);return e||null}}const _4=new J("",{providedIn:"root",factory:()=>he(Ms).handleError.bind(void 0)});let Tf=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Zee;static#t=this.__NG_ENV_ID__=e=>e}return t})();class Yee extends Tf{constructor(n){super(),this._lView=n}onDestroy(n){return Yv(this._lView,n),()=>function jT(t,n){if(null===t[$l])return;const e=t[$l].indexOf(n);-1!==e&&t[$l].splice(e,1)}(this._lView,n)}}function Zee(){return new Yee(be())}function Jee(){return Ef(Xn(),be())}function Ef(t,n){return new He(Go(t,n))}let He=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=Jee}return t})();function v4(t){return t instanceof He?t.nativeElement:t}function sE(t){return n=>{setTimeout(t,void 0,n)}}const Ce=class ete extends Me{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,wN()&&(this.destroyRef=he(Tf,{optional:!0})??void 0)}emit(n){const e=Gt(null);try{super.next(n)}finally{Gt(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=sE(o),r&&(r=sE(r)),s&&(s=sE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Wt&&n.add(a),a}};function tte(){return this._results[Symbol.iterator]()}class Gl{static#e=Symbol.iterator;get changes(){return this._changes??=new Ce}constructor(n=!1){this._emitDistinctChangesOnly=n,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 e=Gl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=tte)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function ss(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function yJ(t,n,e){if(t.length!==n.length)return!1;for(let i=0;ikte}),kte="ng",B4=new J(""),$c=new J("",{providedIn:"platform",factory:()=>"unknown"}),pi=new J(""),uE=new J("",{providedIn:"root",factory:()=>Wl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let U4=()=>null;function vE(t,n,e=!1){return U4(t,n,e)}const G4=new J("",{providedIn:"root",factory:()=>!1});let _y,by;function If(t){return function kE(){if(void 0===_y&&(_y=null,$n.trustedTypes))try{_y=$n.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _y}()?.createHTML(t)||t}function q4(t){return function CE(){if(void 0===by&&(by=null,$n.trustedTypes))try{by=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return by}()?.createHTML(t)||t}class vu{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${WO})`}}class Lte extends vu{getTypeName(){return"HTML"}}class Vte extends vu{getTypeName(){return"Style"}}class Bte extends vu{getTypeName(){return"Script"}}class Ute extends vu{getTypeName(){return"URL"}}class zte extends vu{getTypeName(){return"ResourceURL"}}function Rs(t){return t instanceof vu?t.changingThisBreaksApplicationSecurity:t}function Za(t,n){const e=function Hte(t){return t instanceof vu&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${WO})`)}return e===n}class Qte{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(If(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Kte{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=If(n),e}}const Yte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vy(t){return(t=String(t)).match(Yte)?t:"unsafe:"+t}function Gc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ag(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Y4=Gc("area,br,col,hr,img,wbr"),Z4=Gc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),J4=Gc("rp,rt"),TE=Ag(Y4,Ag(Z4,Gc("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")),Ag(J4,Gc("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")),Ag(J4,Z4)),EE=Gc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),eL=Ag(EE,Gc("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"),Gc("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")),Zte=Gc("script,style,template");class Jte{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)r.push(e),e=nne(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=tne(e);if(o){e=o;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=tL(n).toLowerCase();if(!TE.hasOwnProperty(e))return this.sanitizedSomething=!0,!Zte.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=tL(n).toLowerCase();TE.hasOwnProperty(e)&&!Y4.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(iL(n))}}function tne(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw nL(n);return n}function nne(t){const n=t.firstChild;if(n&&function ene(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw nL(n);return n}function tL(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function nL(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const ine=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rne=/([^\#-~ |!])/g;function iL(t){return t.replace(/&/g,"&").replace(ine,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(rne,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let yy;function rL(t,n){let e=null;try{yy=yy||function X4(t){const n=new Kte(t);return function Xte(){try{return!!(new window.DOMParser).parseFromString(If(""),"text/html")}catch{return!1}}()?new Qte(n):n}(t);let i=n?String(n):"";e=yy.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=yy.getInertBodyElement(i)}while(i!==o);return If((new Jte).sanitizeChildren(SE(e)||e))}finally{if(e){const i=SE(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function SE(t){return"content"in t&&function one(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var no=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(no||{});function yu(t){const n=Mg();return n?q4(n.sanitize(no.HTML,t)||""):Za(t,"HTML")?q4(Rs(t)):rL(Wl(),Lt(t))}function xy(t){const n=Mg();return n?n.sanitize(no.URL,t)||"":Za(t,"URL")?Rs(t):vy(Lt(t))}function Mg(){const t=be();return t&&t[xa].sanitizer}const une=/^>|^->||--!>|)/g,fne="\u200b$1\u200b";function Ps(t){return t instanceof Function?t():t}var Ql=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ql||{});let ME;function RE(t,n){return ME(t,n)}function Mf(t,n,e,i,r){if(null!=i){let o,s=!1;vo(i)?o=i:bo(i)&&(s=!0,i=i[Di]);const a=ai(i);0===t&&null!==e?null==r?bL(n,e,a):xu(n,e,a,r||null,!0):1===t&&null!==e?xu(n,e,a,r||null,!0):2===t?function Fg(t,n,e){const i=Ey(t,n);i&&function Rne(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function One(t,n,e,i,r){const o=e[Wa];o!==ai(e)&&Mf(n,t,i,o,r);for(let a=Gi;an.replace(hne,fne))}(n))}function Cy(t,n,e){return t.createElement(n,e)}function pL(t,n){n[xa].changeDetectionScheduler?.notify(1),Dy(t,n,n[Rt],2,null,null)}function gL(t,n){const e=t[vf],i=e.indexOf(n);e.splice(i,1)}function Rg(t,n){if(t.length<=Gi)return;const e=Gi+n,i=t[e];if(i){const r=i[hg];null!==r&&r!==t&&gL(r,i),n>0&&(t[e-1][ya]=i[ya]);const o=Vv(t,Gi+n);!function Tne(t,n){pL(t,n),n[Di]=null,n[_o]=null}(i[Le],i);const s=o[Uc];null!==s&&s.detachView(o[Le]),i[$i]=null,i[ya]=null,i[bt]&=-129}return i}function Ty(t,n){if(!(256&n[bt])){const e=n[Rt];e.destroyNode&&Dy(t,n,e,3,null,null),function Sne(t){let n=t[ug];if(!n)return OE(t[Le],t);for(;n;){let e=null;if(bo(n))e=n[ug];else{const i=n[Gi];i&&(e=i)}if(!e){for(;n&&!n[ya]&&n!==t;)bo(n)&&OE(n[Le],n),n=n[$i];null===n&&(n=t),bo(n)&&OE(n[Le],n),e=n&&n[ya]}n=e}}(n)}}function OE(t,n){if(256&n[bt])return;const e=Gt(null);try{n[bt]&=-129,n[bt]|=256,n[mu]&&PO(n[mu]),function Mne(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[gf]=null);const r=n[$l];if(null!==r){n[$l]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===ba.None||o===ba.Emulated)return null}return Go(i,e)}}(t,n.parent,e)}function xu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function bL(t,n,e){t.appendChild(n,e)}function vL(t,n,e,i,r){null!==i?xu(t,n,e,i,r):bL(t,n,e)}function Ey(t,n){return t.parentNode(n)}function yL(t,n,e){return wL(t,n,e)}let LE,wL=function xL(t,n,e){return 40&t.type?Go(t,e):null};function Sy(t,n,e,i){const r=NE(t,i,n),o=n[Rt],a=yL(i.parent||n[_o],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;cVt&&IL(t,n,Vt,!1),qa(s?2:0,r),e(i,r)}finally{_u(o),qa(s?3:1,r)}}function zE(t,n,e){if(FT(n)){const i=Gt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function FL(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,c=W.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(null!==r){if(!r.hasOwnProperty(o))continue;l=r[o]}0===t?OL(i,e,l,a,c):OL(i,e,l,a)}return i}function OL(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],void 0!==r&&o.push(r)}function ls(t,n,e,i,r,o,s,a){const c=Go(n,e);let d,l=n.inputs;!a&&null!=l&&(d=l[i])?(KE(t,e,d,i,r),pu(n)&&function Qne(t,n){const e=Is(n,t);16&e[bt]||(e[bt]|=64)}(e,n.index)):3&n.type&&(i=function qne(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(c,i,r))}function GE(t,n,e,i){if(BN()){const r=null===i?null:{"":-1},o=function eie(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,Og(t,e,r.hostVars,Ut),r)}function Ja(t,n,e,i,r,o){const s=Go(t,n);!function qE(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Lt(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Rt],s,o,t.value,e,i,r)}function sie(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(e[r-1][ya]=n),i{_g(t.lView)},consumerOnSignalRead(){this.lView[mu]=this}},WL=100;function Py(t,n=!0,e=0){const i=t[xa],r=i.rendererFactory;r.begin?.();try{!function pie(t,n){ZE(t,n);let e=0;for(;zT(t);){if(e===WL)throw new le(103,!1);e++,ZE(t,1)}}(t,e)}catch(s){throw n&&Ry(t,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function gie(t,n,e,i){const r=n[bt];if(!(256&~r))return;n[xa].inlineEffectRunner?.flush(),KT(n);let s=null,a=null;(function _ie(t){return 2!==t.type})(t)&&(a=function uie(t){return t[mu]??function hie(t){const n=GL.pop()??Object.create(mie);return n.lView=t,n}(t)}(n),s=Jh(a));try{NN(n),function HN(t){return Pt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&ML(t,n,e,2,i);const c=!(3&~r);if(c){const u=t.preOrderCheckHooks;null!==u&&ty(n,u,null)}else{const u=t.preOrderHooks;null!==u&&ny(n,u,0,null),YT(n,0)}if(function bie(t){for(let n=I4(t);null!==n;n=A4(n)){if(!(n[bt]&PT.HasTransplantedViews))continue;const e=n[vf];for(let i=0;i-1&&(Rg(n,i),Vv(e,i))}this._attachedToViewContainer=!1}Ty(this._lView[Le],this._lView)}onDestroy(n){Yv(this._lView,n)}markForCheck(){Bg(this._cdRefInjectingView||this._lView)}detach(){this._lView[bt]&=-129}reattach(){HT(this._lView),this._lView[bt]|=128}detectChanges(){this._lView[bt]|=1024,Py(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,pL(this._lView[Le],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new le(902,!1);this._appRef=n,HT(this._lView)}}let Gn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=wie}return t})();const yie=Gn,xie=class extends yie{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=Ng(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Ug(r)}};function wie(){return Fy(Xn(),be())}function Fy(t,n){return 4&t.type?new xie(n,t,Ef(t,n)):null}let t3=()=>null;function Ff(t,n){return t3(t,n)}class By{}class Wie{}class n3{}class Qie{resolveComponentFactory(n){throw function qie(t){const n=Error(`No component factory found for ${xr(t)}.`);return n.ngComponent=t,n}(n)}}let wu=(()=>{class t{static#e=this.NULL=new Qie}return t})();class rS{}let qc=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Kie(){const t=be(),e=Is(Xn().index,t);return(bo(e)?e:t)[Rt]}()}return t})(),Xie=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>null})}return t})();const oS={},o3=new Set;function ec(t){o3.has(t)||(o3.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function s3(...t){}class Be{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new le(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Yie(){const t="function"==typeof $n.requestAnimationFrame;let n=$n[t?"requestAnimationFrame":"setTimeout"],e=$n[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function ere(t){const n=()=>{!function Jie(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($n,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,aS(t),t.isCheckStableRunning=!0,sS(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),aS(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function tre(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return a3(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),c3(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return a3(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),c3(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,aS(t),sS(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Be.isInAngularZone())throw new le(909,!1)}static assertNotInAngularZone(){if(Be.isInAngularZone())throw new le(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Zie,s3,s3);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Zie={};function sS(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function aS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function a3(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function c3(t){t._nesting--,sS(t)}class l3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}var ku=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ku||{});const d3={destroy(){}};function u3(t,n){!n&&Wv();const e=n?.injector??he(Ii);if(!function ql(t){return"browser"===(t??he(Ii)).get($c)}(e))return d3;ec("NgAfterNextRender");const i=e.get(Gg),r=i.handler??=new f3,o=n?.phase??ku.MixedReadWrite,s=()=>{r.unregister(c),a()},a=e.get(Tf).onDestroy(s),c=Ga(e,()=>new h3(o,()=>{s(),t()}));return r.register(c),{destroy:s}}class h3{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=he(Be),this.errorHandler=he(Ms,{optional:!0}),he(By,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class f3{constructor(){this.executingCallbacks=!1,this.buckets={[ku.EarlyRead]:new Set,[ku.Write]:new Set,[ku.MixedReadWrite]:new Set,[ku.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Gg=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>new t})}return t})();function zy(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0&&SL(t,e,o.join(" "))}}(f,M,g,i),void 0!==e&&function fre(t,n,e){const i=t.projection=[];for(let r=0;r{class t{static#e=this.__NG_ELEMENT_ID__=pre}return t})();function pre(){return y3(Xn(),be())}const gre=di,b3=class extends gre{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ef(this._hostTNode,this._hostLView)}get injector(){return new Cr(this._hostTNode,this._hostLView)}get parentInjector(){const n=oy(this._hostTNode,this._hostLView);if(JT(n)){const e=wg(n,this._hostLView),i=xg(n);return new Cr(e[Le].data[i+8],e)}return new Cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=v3(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Gi}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=Ff(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Pf(this._hostTNode,s)),a}createComponent(n,e,i,r,o){const s=n&&!function dg(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const m=e||{};a=m.index,i=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const c=s?n:new Qg(cn(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const g=(s?l:this.parentInjector).get(as,null);g&&(o=g)}const d=cn(c.componentType??{}),u=Ff(this._lContainer,d?.id??null),f=c.create(l,r,u?.firstChild??null,o);return this.insertImpl(f.hostView,a,Pf(this._hostTNode,u)),f}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const r=n._lView;if(function hee(t){return vo(t[$i])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=r[$i],l=new b3(c,c[_o],c[$i]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;return Lg(s,r,o,i),n.attachToViewContainerRef(),oN(uS(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=v3(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Rg(this._lContainer,e);i&&(Vv(uS(this._lContainer),e),Ty(i[Le],i))}detach(n){const e=this._adjustIndex(n,-1),i=Rg(this._lContainer,e);return i&&null!=Vv(uS(this._lContainer),e)?new Ug(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function v3(t){return t[8]}function uS(t){return t[8]||(t[8]=[])}function y3(t,n){let e;const i=n[t.index];return vo(i)?e=i:(e=VL(i,n,null,t),n[t.index]=e,My(n,e)),x3(e,n,t,i),new b3(e,t,n)}let x3=function k3(t,n,e,i){if(t[Wa])return;let r;r=8&e.type?ai(i):function _re(t,n){const e=t[Rt],i=e.createComment(""),r=Go(n,t);return xu(e,Ey(e,r),i,function Pne(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[Wa]=r},hS=()=>!1;class fS{constructor(n){this.queryList=n,this.matches=null}clone(){return new fS(this.queryList)}setDirty(){this.queryList.setDirty()}}class mS{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;on.trim())}(n):n}}class pS{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i0)i.push(s[a/2]);else{const l=o[a+1],d=n[-c];for(let u=Gi;u=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=cg(r.hostAttrs,e=cg(e,r.hostAttrs))}}(i)}function Lre(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function Gy(t){return t===$a?{}:t===An?[]:t}function Bre(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Ure(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function zre(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Kt(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}class Cu{}class q3{}class xS extends Cu{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new g3(this);const r=go(n);this._bootstrapComponents=Ps(r.bootstrap),this._r3Injector=p4(n,e,[{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver},...i],xr(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class wS extends q3{constructor(n){super(),this.moduleType=n}create(n){return new xS(this.moduleType,n,[])}}class Q3 extends Cu{constructor(n){super(),this.componentFactoryResolver=new g3(this),this.instance=null;const e=new ff([...n.providers,{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],n.parent||Gv(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wy(t,n,e=null){return new Q3({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Yl=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new wi(!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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qy(t){return!!function kS(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function tc(t,n,e){return t[n]=e}function Wi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Tu(t,n,e,i){const r=Wi(t,n,e);return Wi(t,n+1,i)||r}function q(t,n,e,i,r,o,s,a){const c=be(),l=pn(),d=t+Vt,u=l.firstCreatePass?function eoe(t,n,e,i,r,o,s,a,c){const l=n.consts,d=Rf(n,t,4,s||null,Qa(l,a));GE(n,e,d,Qa(l,c)),ey(n,d);const u=d.tView=$E(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,l,c,n,e,i,r,o,s):l.data[d];Ka(u,!1);const h=K3(l,c,u,t);vg()&&Sy(l,c,h,u),xo(h,c);const f=VL(h,c,h,u);return c[d]=f,My(c,f),function w3(t,n,e){return hS(t,n,e)}(f,u,c),Xv(u)&&HE(l,c,u),null!=s&&jE(c,u,a),q}let K3=function X3(t,n,e,i){return Xa(!0),n[Rt].createComment("")};function _t(t,n,e,i){const r=be();return Wi(r,ka(),n)&&(pn(),Ja(mi(),r,t,n,e,i)),_t}function jf(t,n,e,i){return Wi(t,ka(),e)?n+Lt(e)+i:Ut}function Gf(t,n,e,i,r,o,s,a){const l=function Ky(t,n,e,i,r){const o=Tu(t,n,e,i);return Wi(t,n+2,r)||o}(t,zc(),e,r,s);return Hc(3),l?n+Lt(e)+i+Lt(r)+o+Lt(s)+a:Ut}function tx(t,n){return t<<17|n<<2}function Jl(t){return t>>17&32767}function PS(t){return 2|t}function Su(t){return(131068&t)>>2}function FS(t,n){return-131069&t|n<<2}function OS(t){return 1|t}function SV(t,n,e,i){const r=t[e+1],o=null===n;let s=i?Jl(r):Su(r),a=!1;for(;0!==s&&(!1===a||o);){const l=t[s+1];Boe(t[s],n)&&(a=!0,t[s+1]=i?OS(l):PS(l)),s=i?Jl(l):Su(l)}a&&(t[e+1]=i?PS(r):OS(r))}function Boe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&hf(t,n)>=0}const Tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function DV(t){return t.substring(Tr.key,Tr.keyEnd)}function IV(t,n){const e=Tr.textEnd;return e===n?-1:(n=Tr.keyEnd=function joe(t,n,e){for(;n32;)n++;return n}(t,Tr.key=n,e),Yf(t,n,e))}function Yf(t,n,e){for(;n=0;e=IV(n,e))Ss(t,DV(n),!0)}function Ca(t,n,e,i){const r=be(),o=pn(),s=Hc(2);o.firstUpdatePass&&OV(o,t,s,i),n!==Ut&&Wi(r,s,n)&&LV(o,o.data[yo()],r,r[Rt],t,r[s+1]=function ese(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=xr(Rs(t)))),t}(n,e),i,s)}function Ta(t,n,e,i){const r=pn(),o=Hc(2);r.firstUpdatePass&&OV(r,null,o,i);const s=be();if(e!==Ut&&Wi(s,o,e)){const a=r.data[yo()];if(BV(a,i)&&!FV(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=sT(c,e||"")),NS(r,a,s,e,i)}else!function Joe(t,n,e,i,r,o,s,a){r===Ut&&(r=An);let c=0,l=0,d=0=t.expandoStartIndex}function OV(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[yo()],s=FV(t,e);BV(o,i)&&null===n&&!s&&(n=!1),n=function qoe(t,n,e,i){const r=qT(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=t_(e=LS(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=LS(r,t,n,e,i),null===o){let c=function Qoe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Su(i))return t[Jl(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=LS(null,t,n,c[1],i),c=t_(c,n.attrs,i),function Koe(t,n,e,i){t[Jl(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function Xoe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Jl(t[a+1]);t[i+1]=tx(h,a),0!==h&&(t[h+1]=FS(t[h+1],i)),t[a+1]=function Ooe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=tx(a,0),0!==a&&(t[a+1]=FS(t[a+1],i)),a=i;else t[i+1]=tx(c,0),0===a?a=i:t[c+1]=FS(t[c+1],i),c=i;l&&(t[i+1]=PS(t[i+1])),SV(t,d,i,!0),SV(t,d,i,!1),function Voe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&hf(o,n)>=0&&(e[i+1]=OS(e[i+1]))}(n,d,t,i,o),s=tx(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function LS(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===Ut&&(h=u?An:void 0);let f=u?yT(h,i):d===i?h:void 0;if(l&&!nx(f)&&(f=yT(c,i)),nx(f)&&(a=f,s))return a;const m=t[r+1];r=s?Jl(m):Su(m)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=yT(c,i))}return a}function nx(t){return void 0!==t}function BV(t,n){return!!(t.flags&(n?8:16))}class dse{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){const s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}}function VS(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function BS(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function zV(t,n,e,i,r){if(BS(t,n,i,e(i,r)))t.updateValue(i,r);else{const o=t.create(i,r);t.attach(i,o)}}function HV(t,n,e,i){const r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}class jV{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}}function _n(t,n,e){ec("NgControlFlow");const i=be(),r=ka(),o=jS(i,Vt+t);if(Wi(i,r,n)){const a=Gt(null);try{if(YE(o,0),-1!==n){const c=$S(i[Le],Vt+n),l=Ff(o,c.tView.ssrId);Lg(o,Ng(i,c,e,{dehydratedView:l}),0,Pf(c,l))}}finally{Gt(a)}}else{const a=jL(o,0);void 0!==a&&(a[fi]=e)}}class hse{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Gi}}function US(t,n){return n}class mse{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function zS(t,n,e,i,r,o,s,a,c,l,d,u,h){ec("NgControlFlow");const f=void 0!==c,m=be(),g=a?s.bind(m[Li][fi]):s,p=new mse(f,g);m[Vt+t]=p,q(t+1,n,e,i,r,o),f&&q(t+2,c,l,d,u,h)}class pse extends dse{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Gi}at(n){return this.getLView(n)[fi].$implicit}attach(n,e){const i=e[Ds];this.needsIndexUpdate||=n!==this.length,Lg(this.lContainer,e,n,Pf(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function gse(t,n){return Rg(t,n)}(this.lContainer,n)}create(n,e){const i=Ff(this.lContainer,this.templateTNode.tView.ssrId);return Ng(this.hostLView,this.templateTNode,new hse(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Ty(n[Le],n)}updateValue(n,e){this.getLView(n)[fi].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(a)})}(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=ka(),c=0===s.length;if(Wi(i,a,c)){const l=e+2,d=jS(i,l);if(c){const u=$S(r,l),h=Ff(d,u.tView.ssrId);Lg(d,Ng(i,u,void 0,{dehydratedView:h}),0,Pf(u,h))}else YE(d,0)}}}finally{Gt(n)}}function jS(t,n){return t[n]}function $S(t,n){return gg(t,n)}function _(t,n,e,i){const r=be(),o=pn(),s=Vt+t,a=r[Rt],c=o.firstCreatePass?function bse(t,n,e,i,r,o){const s=n.consts,c=Rf(n,t,2,i,Qa(s,r));return GE(n,e,c,Qa(s,o)),null!==c.attrs&&zy(c,c.attrs,!1),null!==c.mergedAttrs&&zy(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],l=$V(o,r,c,a,n,t);r[s]=l;const d=Xv(c);return Ka(c,!0),DL(a,l,c),!function Yg(t){return!(32&~t.flags)}(c)&&vg()&&Sy(o,r,l,c),0===function mee(){return Pt.lFrame.elementDepthCount}()&&xo(l,r),function pee(){Pt.lFrame.elementDepthCount++}(),d&&(HE(o,r,c),zE(o,c,r)),null!==i&&jE(r,c),_}function b(){let t=Xn();$T()?GT():(t=t.parent,Ka(t,!1));const n=t;(function _ee(t){return Pt.skipHydrationRootTNode===t})(n)&&function xee(){Pt.skipHydrationRootTNode=null}(),function gee(){Pt.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(ey(e,t),FT(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Fee(t){return!!(8&t.flags)}(n)&&NS(e,n,be(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Oee(t){return!!(16&t.flags)}(n)&&NS(e,n,be(),n.stylesWithoutHost,!1),b}function xe(t,n,e,i){return _(t,n,e,i),b(),xe}let $V=(t,n,e,i,r,o)=>(Xa(!0),Cy(i,r,function KN(){return Pt.lFrame.currentNamespace}()));function zt(t,n,e){const i=be(),r=pn(),o=t+Vt,s=r.firstCreatePass?function xse(t,n,e,i,r){const o=n.consts,s=Qa(o,i),a=Rf(n,t,8,"ng-container",s);return null!==s&&zy(a,s,!0),GE(n,e,a,Qa(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ka(s,!0);const a=GV(r,i,s,t);return i[o]=a,vg()&&Sy(r,i,a,s),xo(a,i),Xv(s)&&(HE(r,i,s),zE(r,s,i)),null!=e&&jE(i,s),zt}function Ht(){let t=Xn();const n=pn();return $T()?GT():(t=t.parent,Ka(t,!1)),n.firstCreatePass&&(ey(n,t),FT(t)&&n.queries.elementEnd(t)),Ht}function Er(t,n,e){return zt(t,n,e),Ht(),Er}let GV=(t,n,e,i)=>(Xa(!0),FE(n[Rt],""));function Se(){return be()}function rc(t,n,e){const i=be();return Wi(i,ka(),n)&&ls(pn(),mi(),i,t,n,i[Rt],e,!0),rc}function ix(t,n,e){const i=be();if(Wi(i,ka(),n)){const o=pn(),s=mi();ls(o,s,i,t,n,HL(qT(o.data),s,i),e,!0)}return ix}const Du=void 0;var Tse=["en",[["a","p"],["AM","PM"],Du],[["AM","PM"],Du,Du],[["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"]],Du,[["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"]],Du,[["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}",Du,"{1} 'at' {0}",Du],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cse(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Zf={};function qo(t){const n=function Ese(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=qV(n);if(e)return e;const i=n.split("-")[0];if(e=qV(i),e)return e;if("en"===i)return Tse;throw new le(701,!1)}function qV(t){return t in Zf||(Zf[t]=$n.ng&&$n.ng.common&&$n.ng.common.locales&&$n.ng.common.locales[t]),Zf[t]}var gi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(gi||{});const Jf="en-US";let QV=Jf;function U(t,n,e,i){const r=be(),o=pn(),s=Xn();return qS(o,r,r[Rt],s,t,n,i),U}function cx(t,n){const e=Xn(),i=be(),r=pn();return qS(r,i,HL(qT(r.data),e,i),e,t,n),cx}function qS(t,n,e,i,r,o,s){const a=Xv(i),l=t.firstCreatePass&&zL(t),d=n[fi],u=UL(n);let h=!0;if(3&i.type||s){const g=Go(i,n),p=s?s(g):g,v=u.length,x=s?D=>s(ai(D[i.index])):i.index;let C=null;if(!s&&a&&(C=function wae(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==C)(C.__ngLastListenerFn__||C).__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,h=!1;else{o=xB(i,n,d,o,!1);const D=e.listen(p,r,o);u.push(o,D),l&&l.push(r,x,v,v+1)}}else o=xB(i,n,d,o,!1);const f=i.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?Is(t.index,n):n);let c=yB(n,e,i,s),l=o.__ngNextListenerFn__;for(;l;)c=yB(n,e,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function A(t=1){return function See(t){return(Pt.lFrame.contextLView=function LN(t,n){for(;t>0;)n=n[_f],t--;return n}(t,Pt.lFrame.contextLView))[fi]}(t)}function kae(t,n){let e=null;const i=function EJ(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r(Xa(!0),function PE(t,n){return t.createText(n)}(n[Rt],i));function Ke(t){return Je("",t,""),Ke}function Je(t,n,e){const i=be(),r=jf(i,t,n,e);return r!==Ut&&Wc(i,yo(),r),Je}function Iu(t,n,e,i,r){const o=be(),s=function $f(t,n,e,i,r,o){const a=Tu(t,zc(),e,r);return Hc(2),a?n+Lt(e)+i+Lt(r)+o:Ut}(o,t,n,e,i,r);return s!==Ut&&Wc(o,yo(),s),Iu}function c_(t,n,e,i,r,o,s){const a=be(),c=Gf(a,t,n,e,i,r,o,s);return c!==Ut&&Wc(a,yo(),c),c_}function zr(t,n,e){R3(n)&&(n=n());const i=be();return Wi(i,ka(),n)&&ls(pn(),mi(),i,t,n,i[Rt],e,!1),zr}function io(t,n){const e=R3(t);return e&&t.set(n),e}function Hr(t,n){const e=be(),i=pn(),r=Xn();return qS(i,e,e[Rt],r,t,n),Hr}function QS(t,n,e,i,r){if(t=At(t),Array.isArray(t))for(let o=0;o>20;if(fu(t)||!t.multi){const f=new yg(l,r,w),m=XS(c,n,r?d:d+h,u);-1===m?(nE(ry(a,s),o,c),KS(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{const f=XS(c,n,d+h,u),m=XS(c,n,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){nE(ry(a,s),o,c);const v=function Hae(t,n,e,i,r){const o=new yg(t,e,w);return o.multi=[],o.index=n,o.componentProviders=0,WB(o,r,i&&!e),o}(r?zae:Uae,e.length,r,i,l);!r&&p&&(e[m].providerFactory=v),KS(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),s.push(v)}else KS(o,t,f>-1?f:m,WB(e[r?m:f],l,!r&&i));!r&&i&&p&&e[m].componentProviders++}}}function KS(t,n,e,i){const r=fu(n),o=function BJ(t){return!!t.useClass}(n);if(r||o){const c=(o?At(n.useClass):n).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(e);-1===d?l.push(e,[i,c]):l[d+1].push(i,c)}else l.push(e,c)}}}function WB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function XS(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Bae(t,n,e){const i=pn();if(i.firstCreatePass){const r=wa(t);QS(e,i.data,i.blueprint,r,!0),QS(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}let jae=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=CT(0,e.type),r=i.length>0?Wy([i],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=we({token:t,providedIn:"environment",factory:()=>new t(Y(as))})}return t})();function St(t){ec("NgStandalone"),t.getStandaloneInjector=n=>n.get(jae).getOrCreateStandaloneInjector(t)}function us(t,n,e){const i=Wo()+t,r=be();return r[i]===Ut?tc(r,i,e?n.call(e):n()):function Xg(t,n){return t[n]}(r,i)}function Ea(t,n,e,i){return QB(be(),Wo(),t,n,e,i)}function ZS(t,n,e,i,r){return KB(be(),Wo(),t,n,e,i,r)}function l_(t,n){const e=t[n];return e===Ut?void 0:e}function QB(t,n,e,i,r,o){const s=n+e;return Wi(t,s,r)?tc(t,s+1,o?i.call(o,r):i(r)):l_(t,s+1)}function KB(t,n,e,i,r,o,s){const a=n+e;return Tu(t,a,r,o)?tc(t,a+2,s?i.call(s,r,o):i(r,o)):l_(t,a+2)}function wo(t,n){const e=pn();let i;const r=t+Vt;e.firstCreatePass?(i=function Jae(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=uu(i.type)),a=os(w);try{const c=iy(!1),l=o();return iy(c),function Sae(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,be(),r,l),l}finally{os(a)}}function oc(t,n,e){const i=t+Vt,r=be(),o=yf(r,i);return d_(r,i)?QB(r,Wo(),n,o.transform,e,o):o.transform(e)}function Au(t,n,e,i){const r=t+Vt,o=be(),s=yf(o,r);return d_(o,r)?KB(o,Wo(),n,s.transform,e,i,s):s.transform(e,i)}function d_(t,n){return t[Le].data[n].pure}function tm(t,n){return Fy(t,n)}let m5=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const v5=new J(""),fx=new J("");let sD,rD=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,sD||(function Kce(t){sD=t}(r),r.addToWindow(i)),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:()=>{Be.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(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(oD),Y(fx))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),oD=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}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,i=!0){return sD?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function f_(t){return!!t&&"function"==typeof t.then}function y5(t){return!!t&&"function"==typeof t.subscribe}const aD=new J("");let cD=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=he(aD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(f_(o))e.push(o);else if(y5(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lD=new J("");function k5(t,n){return Array.isArray(n)?n.reduce(k5,t):{...t,...n}}let Qc=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=he(_4),this.afterRenderEffectManager=he(Gg),this.externalTestViews=new Set,this.beforeRender=new Me,this.afterTick=new Me,this.componentTypes=[],this.components=[],this.isStable=he(Yl).hasPendingTasks.pipe(mt(e=>!e)),this._injector=he(as)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof n3;if(!this._injector.get(cD).done)throw!r&&function jl(t){const n=cn(t)||wr(t)||eo(t);return null!==n&&n.standalone}(e),new le(405,!1);let s;s=r?e:this._injector.get(wu).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Xce(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Cu),l=s.create(Ii.NULL,[],i||s.selector,a),d=l.location.nativeElement,u=l.injector.get(v5,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),mx(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new le(101,!1);const i=Gt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,Gt(i)}}detectChangesInAttachedViews(e){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===WL)throw new le(103,!1);if(e){const o=0===i;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)Zce(s,o,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>dD(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>dD(o))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;mx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(lD,[]);[...this._bootstrapListeners,...i].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),()=>mx(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new le(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function Zce(t,n,e){!n&&!dD(t)||function Jce(t,n,e){let i;e?(i=0,t[bt]|=1024):i=64&t[bt]?0:1,Py(t,n,i)}(t,e,n)}function dD(t){return zT(t)}class ele{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let C5=(()=>{class t{compileModuleSync(e){return new wS(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Ps(go(e).declarations).reduce((s,a)=>{const c=cn(a);return c&&s.push(new Qg(c)),s},[]);return new ele(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ile=(()=>{class t{constructor(){this.zone=he(Be),this.applicationRef=he(Qc)}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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rle(){const t=he(Be),n=he(Ms);return e=>t.runOutsideAngular(()=>n.handleError(e))}let sle=(()=>{class t{constructor(){this.subscription=new Wt,this.initialized=!1,this.zone=he(Be),this.pendingTasks=he(Yl)}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(()=>{Be.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Be.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const sc=new J("",{providedIn:"root",factory:()=>he(sc,mn.Optional|mn.SkipSelf)||function ale(){return typeof $localize<"u"&&$localize.locale||Jf}()}),uD=new J("");let D5=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function nre(t="zone.js",n){return"noop"===t?new l3:"zone.js"===t?new Be(n):t}(i?.ngZone,function S5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function Qre(t,n,e){return new xS(t,n,e)}(e.moduleType,this.injector,function E5(t){return[{provide:Be,useFactory:t},{provide:hu,multi:!0,useFactory:()=>{const n=he(ile,{optional:!0});return()=>n.initialize()}},{provide:hu,multi:!0,useFactory:()=>{const n=he(sle);return()=>{n.initialize()}}},{provide:_4,useFactory:rle}]}(()=>r)),s=o.injector.get(Ms,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{mx(this._modules,o),a.unsubscribe()})}),function w5(t,n,e){try{const i=e();return f_(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(cD);return a.runInitializers(),a.donePromise.then(()=>(function KV(t){"string"==typeof t&&(QV=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(sc,Jf)||Jf),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=k5({},i);return function nle(t,n,e){const i=new wS(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new le(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new le(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(uD,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ii))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),ed=null;const I5=new J("");function A5(t,n,e=[]){const i=`Platform: ${n}`,r=new J(i);return(o=[])=>{let s=hD();if(!s||s.injector.get(I5,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function dle(t){if(ed&&!ed.get(I5,!1))throw new le(400,!1);(function x5(){!function RZ(t){NO=t}(()=>{throw new le(600,!1)})})(),ed=t;const n=t.get(D5);(function R5(t){t.get(B4,null)?.forEach(e=>e())})(t)}(function M5(t=[],n){return Ii.create({name:n,providers:[{provide:ST,useValue:"platform"},{provide:uD,useValue:new Set([()=>ed=null])},...t]})}(a,i))}return function ule(t){const n=hD();if(!n)throw new le(401,!1);return n}()}}function hD(){return ed?.get(D5)??null}let gn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=fle}return t})();function fle(t){return function mle(t,n,e){if(pu(t)&&!e){const i=Is(t.index,n);return new Ug(i,i)}return 47&t.type?new Ug(n[Li],n):null}(Xn(),be(),!(16&~t))}class L5{constructor(){}supports(n){return Qy(n)}create(n){return new vle(n)}}const ble=(t,n)=>n;class vle{constructor(n){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=n||ble}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new yle(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new V5),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new V5),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class yle{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xle{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class V5{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new xle,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function B5(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:z5});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||z5()),deps:[[t,new df,new Hl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new le(901,!1)}}return t})();const Ele=A5(null,"core",[]);let Sle=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Qc))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();function Ue(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function Xi(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function d8(t){const n=Gt(null);try{return t()}finally{Gt(n)}}const ide=new J("",{providedIn:"root",factory:()=>he(rde)});let rde=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>new ode})}return t})();class ode{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=he(Yl),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){const e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);const i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,e]of this.queues)null===n?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(const e of n)n.delete(e),this.queuedEffectCount--,e.run()}}class sde{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=function NZ(t,n,e){const i=Object.create(LZ);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=c=>{i.cleanupFn=c};return i.ref={notify:()=>ng(i),run:()=>{if(null===i.fn)return;if(function Fn(){return si}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!KC(i))return;i.hasRun=!0;const c=Jh(i);try{i.cleanupFn(),i.cleanupFn=YC,i.fn(r)}finally{Vl(i,c)}},cleanup:()=>i.cleanupFn(),destroy:()=>function s(c){(function o(c){return null===c.fn&&null===c.schedule})(c)||(PO(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=YC)}(i),[cr]:i},i.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Ms,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let h8=null;function nd(){return h8}class lde{}const xt=new J("");let vD=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(ude),providedIn:"platform"})}return t})();const dde=new J("");let ude=(()=>{class t extends vD{constructor(){super(),this._doc=he(xt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nd().getBaseHref(this._doc)}onPopState(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=nd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,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(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function yD(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function f8(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Kc(t){return t&&"?"!==t[0]?"?"+t:t}let Pu=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(p8),providedIn:"root"})}return t})();const m8=new J("");let p8=(()=>{class t extends Pu{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??he(xt).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 yD(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Kc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Kc(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Kc(o));this._platformLocation.replaceState(e,i,s)}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(i){return new(i||t)(Y(vD),Y(m8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hde=(()=>{class t extends Pu{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=yD(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Kc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Kc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}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(i){return new(i||t)(Y(vD),Y(m8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),Fu=(()=>{class t{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function pde(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(f8(g8(i))),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,i=""){return this.path()==this.normalize(e+Kc(i))}normalize(e){return t.stripTrailingSlash(function mde(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,g8(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kc(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kc(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static#e=this.normalizeQueryParams=Kc;static#t=this.joinWithSlash=yD;static#n=this.stripTrailingSlash=f8;static#i=this.\u0275fac=function(i){return new(i||t)(Y(Pu))};static#r=this.\u0275prov=we({token:t,factory:()=>function fde(){return new Fu(Y(Pu))}(),providedIn:"root"})}return t})();function g8(t){return t.replace(/\/index.html$/,"")}var Ko=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ko||{}),ui=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(ui||{}),Os=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Os||{});const lr={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};function Tx(t,n){return Js(qo(t)[gi.DateFormat],n)}function Ex(t,n){return Js(qo(t)[gi.TimeFormat],n)}function Sx(t,n){return Js(qo(t)[gi.DateTimeFormat],n)}function Zs(t,n){const e=qo(t),i=e[gi.NumberSymbols][n];if(typeof i>"u"){if(n===lr.CurrencyDecimal)return e[gi.NumberSymbols][lr.Decimal];if(n===lr.CurrencyGroup)return e[gi.NumberSymbols][lr.Group]}return i}function b8(t){if(!t[gi.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[gi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Js(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function wD(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const Ide=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Dx={},Ade=/((?:[^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 Xc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Xc||{}),zn=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(zn||{}),Hn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Hn||{});function Mde(t,n,e,i){let r=function Ude(t){if(x8(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return Ix(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Ide))return function zde(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,c,l),n}(i)}const n=new Date(t);if(!x8(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Yc(e,n)||n;let a,s=[];for(;n;){if(a=Ade.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const d=s.pop();if(!d)break;n=d}}let c=r.getTimezoneOffset();i&&(c=y8(i,c),r=function Bde(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Vde(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(y8(n,r)-r))}(r,i,!0));let l="";return s.forEach(d=>{const u=function Lde(t){if(CD[t])return CD[t];let n;switch(t){case"G":case"GG":case"GGG":n=_i(Hn.Eras,ui.Abbreviated);break;case"GGGG":n=_i(Hn.Eras,ui.Wide);break;case"GGGGG":n=_i(Hn.Eras,ui.Narrow);break;case"y":n=dr(zn.FullYear,1,0,!1,!0);break;case"yy":n=dr(zn.FullYear,2,0,!0,!0);break;case"yyy":n=dr(zn.FullYear,3,0,!1,!0);break;case"yyyy":n=dr(zn.FullYear,4,0,!1,!0);break;case"Y":n=Px(1);break;case"YY":n=Px(2,!0);break;case"YYY":n=Px(3);break;case"YYYY":n=Px(4);break;case"M":case"L":n=dr(zn.Month,1,1);break;case"MM":case"LL":n=dr(zn.Month,2,1);break;case"MMM":n=_i(Hn.Months,ui.Abbreviated);break;case"MMMM":n=_i(Hn.Months,ui.Wide);break;case"MMMMM":n=_i(Hn.Months,ui.Narrow);break;case"LLL":n=_i(Hn.Months,ui.Abbreviated,Ko.Standalone);break;case"LLLL":n=_i(Hn.Months,ui.Wide,Ko.Standalone);break;case"LLLLL":n=_i(Hn.Months,ui.Narrow,Ko.Standalone);break;case"w":n=kD(1);break;case"ww":n=kD(2);break;case"W":n=kD(1,!0);break;case"d":n=dr(zn.Date,1);break;case"dd":n=dr(zn.Date,2);break;case"c":case"cc":n=dr(zn.Day,1);break;case"ccc":n=_i(Hn.Days,ui.Abbreviated,Ko.Standalone);break;case"cccc":n=_i(Hn.Days,ui.Wide,Ko.Standalone);break;case"ccccc":n=_i(Hn.Days,ui.Narrow,Ko.Standalone);break;case"cccccc":n=_i(Hn.Days,ui.Short,Ko.Standalone);break;case"E":case"EE":case"EEE":n=_i(Hn.Days,ui.Abbreviated);break;case"EEEE":n=_i(Hn.Days,ui.Wide);break;case"EEEEE":n=_i(Hn.Days,ui.Narrow);break;case"EEEEEE":n=_i(Hn.Days,ui.Short);break;case"a":case"aa":case"aaa":n=_i(Hn.DayPeriods,ui.Abbreviated);break;case"aaaa":n=_i(Hn.DayPeriods,ui.Wide);break;case"aaaaa":n=_i(Hn.DayPeriods,ui.Narrow);break;case"b":case"bb":case"bbb":n=_i(Hn.DayPeriods,ui.Abbreviated,Ko.Standalone,!0);break;case"bbbb":n=_i(Hn.DayPeriods,ui.Wide,Ko.Standalone,!0);break;case"bbbbb":n=_i(Hn.DayPeriods,ui.Narrow,Ko.Standalone,!0);break;case"B":case"BB":case"BBB":n=_i(Hn.DayPeriods,ui.Abbreviated,Ko.Format,!0);break;case"BBBB":n=_i(Hn.DayPeriods,ui.Wide,Ko.Format,!0);break;case"BBBBB":n=_i(Hn.DayPeriods,ui.Narrow,Ko.Format,!0);break;case"h":n=dr(zn.Hours,1,-12);break;case"hh":n=dr(zn.Hours,2,-12);break;case"H":n=dr(zn.Hours,1);break;case"HH":n=dr(zn.Hours,2);break;case"m":n=dr(zn.Minutes,1);break;case"mm":n=dr(zn.Minutes,2);break;case"s":n=dr(zn.Seconds,1);break;case"ss":n=dr(zn.Seconds,2);break;case"S":n=dr(zn.FractionalSeconds,1);break;case"SS":n=dr(zn.FractionalSeconds,2);break;case"SSS":n=dr(zn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Mx(Xc.Short);break;case"ZZZZZ":n=Mx(Xc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Mx(Xc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Mx(Xc.Long);break;default:return null}return CD[t]=n,n}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ix(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Yc(t,n){const e=function _de(t){return qo(t)[gi.LocaleId]}(t);if(Dx[e]??={},Dx[e][n])return Dx[e][n];let i="";switch(n){case"shortDate":i=Tx(t,Os.Short);break;case"mediumDate":i=Tx(t,Os.Medium);break;case"longDate":i=Tx(t,Os.Long);break;case"fullDate":i=Tx(t,Os.Full);break;case"shortTime":i=Ex(t,Os.Short);break;case"mediumTime":i=Ex(t,Os.Medium);break;case"longTime":i=Ex(t,Os.Long);break;case"fullTime":i=Ex(t,Os.Full);break;case"short":const r=Yc(t,"shortTime"),o=Yc(t,"shortDate");i=Ax(Sx(t,Os.Short),[r,o]);break;case"medium":const s=Yc(t,"mediumTime"),a=Yc(t,"mediumDate");i=Ax(Sx(t,Os.Medium),[s,a]);break;case"long":const c=Yc(t,"longTime"),l=Yc(t,"longDate");i=Ax(Sx(t,Os.Long),[c,l]);break;case"full":const d=Yc(t,"fullTime"),u=Yc(t,"fullDate");i=Ax(Sx(t,Os.Full),[d,u])}return i&&(Dx[e][n]=i),i}function Ax(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Sa(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===zn.Hours)0===a&&-12===e&&(a=12);else if(t===zn.FractionalSeconds)return function Rde(t,n){return Sa(t,3).substring(0,n)}(a,n);const c=Zs(s,lr.MinusSign);return Sa(a,n,c,i,r)}}function _i(t,n,e=Ko.Format,i=!1){return function(r,o){return function Fde(t,n,e,i,r,o){switch(e){case Hn.Months:return function yde(t,n,e){const i=qo(t),o=Js([i[gi.MonthsFormat],i[gi.MonthsStandalone]],n);return Js(o,e)}(n,r,i)[t.getMonth()];case Hn.Days:return function vde(t,n,e){const i=qo(t),o=Js([i[gi.DaysFormat],i[gi.DaysStandalone]],n);return Js(o,e)}(n,r,i)[t.getDay()];case Hn.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const l=function Cde(t){const n=qo(t);return b8(n),(n[gi.ExtraData][2]||[]).map(i=>"string"==typeof i?wD(i):[wD(i[0]),wD(i[1])])}(n),d=function Tde(t,n,e){const i=qo(t);b8(i);const o=Js([i[gi.ExtraData][0],i[gi.ExtraData][1]],n)||[];return Js(o,e)||[]}(n,r,i),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=s>=f.hours&&a>=f.minutes,p=s0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Xc.Short:return(r>=0?"+":"")+Sa(s,2,o)+Sa(Math.abs(r%60),2,o);case Xc.ShortGMT:return"GMT"+(r>=0?"+":"")+Sa(s,1,o);case Xc.Long:return"GMT"+(r>=0?"+":"")+Sa(s,2,o)+":"+Sa(Math.abs(r%60),2,o);case Xc.Extended:return 0===i?"Z":(r>=0?"+":"")+Sa(s,2,o)+":"+Sa(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const Ode=0,Rx=4;function v8(t){const n=t.getDay(),e=0===n?-3:Rx-n;return Ix(t.getFullYear(),t.getMonth(),t.getDate()+e)}function kD(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=v8(e),s=function Nde(t){const n=Ix(t,Ode,1).getDay();return Ix(t,0,1+(n<=Rx?Rx:Rx+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Sa(r,t,Zs(i,lr.MinusSign))}}function Px(t,n=!1){return function(e,i){return Sa(v8(e).getFullYear(),t,Zs(i,lr.MinusSign),n)}}const CD={};function y8(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function x8(t){return t instanceof Date&&!isNaN(t.valueOf())}function T8(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const AD=/\s+/,E8=[];let Da=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=E8,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(AD):E8}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(AD):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(AD).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(qc))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngClass",""]],inputs:{klass:[W.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class eue{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ro=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,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 i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new eue(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),D8(a,r)}});for(let r=0,o=i.length;r{D8(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Gn),w(td))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function D8(t,n){t.context.$implicit=n.item}let jr=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new tue,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){I8("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){I8("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,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class tue{constructor(){this.$implicit=null,this.ngIf=null}}function I8(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${xr(n)}'.`)}let Ox=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,r),get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static#e=this.\u0275fac=function(i){return new(i||t)(w(di))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Un]})}return t})();function Ia(t,n){return new le(2100,!1)}class aue{createSubscription(n,e){return d8(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){d8(()=>n.unsubscribe())}}class cue{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const lue=new cue,due=new aue;let PD=(()=>{class t{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,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(f_(e))return lue;if(y5(e))return due;throw Ia()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn,16))};static#t=this.\u0275pipe=po({name:"async",type:t,pure:!1,standalone:!0})}return t})(),FD=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Ia();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const pue=new J(""),gue=new J("");let Ou=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return Mde(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Ia()}}static#e=this.\u0275fac=function(i){return new(i||t)(w(sc,16),w(pue,24),w(gue,24))};static#t=this.\u0275pipe=po({name:"date",type:t,pure:!0,standalone:!0})}return t})(),ac=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const R8="browser";function P8(t){return t===R8}function F8(t){return"server"===t}let Iue=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>P8(he($c))?new Aue(he(xt),window):new Rue})}return t})();class Aue{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function Mue(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class Rue{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class O8{}class she extends lde{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class VD extends she{static makeCurrent(){!function cde(t){h8??=t}(new VD)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function ahe(){return v_=v_||document.querySelector("base"),v_?v_.getAttribute("href"):null}();return null==e?null:function che(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){v_=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return T8(document.cookie,n)}}let v_=null,dhe=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const BD=new J("");let $8=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new le(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(Y(BD),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class G8{constructor(n){this._doc=n}}const UD="ng-app-id";let W8=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=F8(o),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${UD}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(UD),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(UD,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){const r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Tg),Y(uE,8),Y($c))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const zD={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/"},HD=/%COMP%/g,mhe=new J("",{providedIn:"root",factory:()=>!0});function Q8(t,n){return n.map(e=>e.replace(HD,t))}let jD=(()=>{class t{constructor(e,i,r,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=F8(a),this.defaultRenderer=new $D(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ba.ShadowDom&&(i={...i,encapsulation:ba.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof X8?r.applyToHost(e):r instanceof GD&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case ba.Emulated:o=new X8(c,l,i,this.appId,d,s,a,u);break;case ba.ShadowDom:return new bhe(c,l,e,i,s,a,this.nonce,u);default:o=new GD(c,l,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(Y($8),Y(W8),Y(Tg),Y(mhe),Y(xt),Y($c),Y(Be),Y(uE))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class $D{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(zD[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(K8(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(K8(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new le(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=zD[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=zD[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Ql.DashCase|Ql.Important)?n.style.setProperty(e,i,r&Ql.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ql.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=nd().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function K8(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class bhe extends $D{constructor(n,e,i,r,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Q8(r.id,r.styles);for(const d of l){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class GD extends $D{constructor(n,e,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?Q8(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class X8 extends GD{constructor(n,e,i,r,o,s,a,c){const l=r+"-"+i.id;super(n,e,i,o,s,a,c,l),this.contentAttr=function phe(t){return"_ngcontent-%COMP%".replace(HD,t)}(l),this.hostAttr=function ghe(t){return"_nghost-%COMP%".replace(HD,t)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let vhe=(()=>{class t extends G8{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const Y8=["alt","control","meta","shift"],yhe={"\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"},xhe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let whe=(()=>{class t extends G8{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nd().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Y8.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=yhe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Y8.forEach(s=>{s!==r&&(0,xhe[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const J8=[{provide:$c,useValue:R8},{provide:B4,useValue:function khe(){VD.makeCurrent()},multi:!0},{provide:xt,useFactory:function The(){return function wte(t){dE=t}(document),document},deps:[]}],Ehe=A5(Ele,"browser",J8),She=new J(""),e6=[{provide:fx,useClass:class lhe{addToWindow(n){$n.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new le(5103,!1);return o},$n.getAllAngularTestabilities=()=>n.getAllTestabilities(),$n.getAllAngularRootElements=()=>n.getAllRootElements(),$n.frameworkStabilizers||($n.frameworkStabilizers=[]),$n.frameworkStabilizers.push(i=>{const r=$n.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?nd().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:v5,useClass:rD,deps:[Be,oD,fx]},{provide:rD,useClass:rD,deps:[Be,oD,fx]}],t6=[{provide:ST,useValue:"root"},{provide:Ms,useFactory:function Che(){return new Ms},deps:[]},{provide:BD,useClass:vhe,multi:!0,deps:[xt,Be,$c]},{provide:BD,useClass:whe,multi:!0,deps:[xt]},jD,W8,$8,{provide:rS,useExisting:jD},{provide:O8,useClass:dhe,deps:[]},[]];let n6=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Tg,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(She,12))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[...t6,...e6],imports:[ac,Sle]})}return t})(),Dhe=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:function(i){let r=null;return r=i?new(i||t):Y(Rhe),r},providedIn:"root"})}return t})(),Rhe=(()=>{class t extends WD{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case no.NONE:return i;case no.HTML:return Za(i,"HTML")?Rs(i):rL(this._doc,String(i)).toString();case no.STYLE:return Za(i,"Style")?Rs(i):i;case no.SCRIPT:if(Za(i,"Script"))return Rs(i);throw new le(5200,!1);case no.URL:return Za(i,"URL")?Rs(i):vy(String(i));case no.RESOURCE_URL:if(Za(i,"ResourceURL"))return Rs(i);throw new le(5201,!1);default:throw new le(5202,!1)}}bypassSecurityTrustHtml(e){return function jte(t){return new Lte(t)}(e)}bypassSecurityTrustStyle(e){return function $te(t){return new Vte(t)}(e)}bypassSecurityTrustScript(e){return function Gte(t){return new Bte(t)}(e)}bypassSecurityTrustUrl(e){return function Wte(t){return new Ute(t)}(e)}bypassSecurityTrustResourceUrl(e){return function qte(t){return new zte(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qD(t){return!!t&&(t instanceof jn||On(t.lift)&&On(t.subscribe))}function id(t){return this instanceof id?(this.v=t,this):new id(t)}function l6(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function YD(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=t[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ZD=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function d6(t){return On(t?.then)}function u6(t){return On(t[rT])}function h6(t){return Symbol.asyncIterator&&On(t?.[Symbol.asyncIterator])}function f6(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const m6=function efe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function p6(t){return On(t?.[m6])}function g6(t){return function c6(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||a(h,f)})})}function a(h,f){try{!function c(h){h.value instanceof id?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(i[h](f))}catch(m){u(o[0][3],m)}}function l(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield id(e.read());if(r)return yield id(void 0);yield yield id(i)}}finally{e.releaseLock()}})}function _6(t){return On(t?.getReader)}function ko(t){if(t instanceof jn)return t;if(null!=t){if(u6(t))return function tfe(t){return new jn(n=>{const e=t[rT]();if(On(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(ZD(t))return function nfe(t){return new jn(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,zO)})}(t);if(h6(t))return b6(t);if(p6(t))return function rfe(t){return new jn(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(_6(t))return function ofe(t){return b6(g6(t))}(t)}throw f6(t)}function b6(t){return new jn(n=>{(function sfe(t,n){var e,i,r,o;return function s6(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(d.value).then(a,c)}l((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=l6(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Zc(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function v6(t,n=0){return Ni((e,i)=>{e.subscribe(ki(i,r=>Zc(i,t,()=>i.next(r),n),()=>Zc(i,t,()=>i.complete(),n),r=>Zc(i,t,()=>i.error(r),n)))})}function y6(t,n=0){return Ni((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function x6(t,n){if(!t)throw new Error("Iterable cannot be null");return new jn(e=>{Zc(e,n,()=>{const i=t[Symbol.asyncIterator]();Zc(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Yi(t,n){return n?function hfe(t,n){if(null!=t){if(u6(t))return function afe(t,n){return ko(t).pipe(y6(n),v6(n))}(t,n);if(ZD(t))return function lfe(t,n){return new jn(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(d6(t))return function cfe(t,n){return ko(t).pipe(y6(n),v6(n))}(t,n);if(h6(t))return x6(t,n);if(p6(t))return function dfe(t,n){return new jn(e=>{let i;return Zc(e,n,()=>{i=t[m6](),Zc(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>On(i?.return)&&i.return()})}(t,n);if(_6(t))return function ufe(t,n){return x6(g6(t),n)}(t,n)}throw f6(t)}(t,n):ko(t)}function w6(t){return t&&On(t.schedule)}function JD(t){return t[t.length-1]}function k6(t){return On(JD(t))?t.pop():void 0}function x_(t){return w6(JD(t))?t.pop():void 0}function st(...t){return Yi(t,x_(t))}const{isArray:mfe}=Array,{getPrototypeOf:pfe,prototype:gfe,keys:_fe}=Object;function C6(t){if(1===t.length){const n=t[0];if(mfe(n))return{args:n,keys:null};if(function bfe(t){return t&&"object"==typeof t&&pfe(t)===gfe}(n)){const e=_fe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:vfe}=Array;function eI(t){return mt(n=>function yfe(t,n){return vfe(n)?t(...n):t(n)}(t,n))}function T6(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Jc(...t){const n=x_(t),e=k6(t),{args:i,keys:r}=C6(t);if(0===i.length)return Yi([],n);const o=new jn(function xfe(t,n,e=Bl){return i=>{E6(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let c=0;c{const l=Yi(t[c],n);let d=!1;l.subscribe(ki(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>T6(r,s):Bl));return e?o.pipe(eI(e)):o}function E6(t,n,e){t?Zc(e,t,n):n()}const sm=ZC(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function $r(t,n,e=1/0){return On(n)?$r((i,r)=>mt((o,s)=>n(i,o,r,s))(ko(t(i,r))),e):("number"==typeof n&&(e=n),Ni((i,r)=>function wfe(t,n,e,i,r,o,s,a){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&n.complete()},f=g=>l{o&&n.next(g),l++;let p=!1;ko(e(g,d++)).subscribe(ki(n,v=>{r?.(v),o?f(v):n.next(v)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(v)):m(v)}h()}catch(v){n.error(v)}}))};return t.subscribe(ki(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function am(t=1/0){return $r(Bl,t)}function w_(...t){return function kfe(){return am(1)}()(Yi(t,x_(t)))}function cm(t){return new jn(n=>{ko(t()).subscribe(n)})}function lm(t,n){const e=On(t)?t:()=>t,i=r=>r.error(e());return new jn(n?r=>n.schedule(i,0,r):i)}const hs=new jn(t=>t.complete());function tI(){return Ni((t,n)=>{let e=null;t._refCount++;const i=ki(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class nI extends jn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,GO(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Wt;const e=this.getSubject();n.add(this.source.subscribe(ki(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Wt.EMPTY)}return n}refCount(){return tI()(this)}}function Zi(t,n){return Ni((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ki(i,c=>{r?.unsubscribe();let l=0;const d=o++;ko(t(c,d)).subscribe(r=ki(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Nn(t){return t<=0?()=>hs:Ni((n,e)=>{let i=0;n.subscribe(ki(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Gr(...t){const n=x_(t);return Ni((e,i)=>{(n?w_(t,e,n):w_(t,e)).subscribe(i)})}function un(t,n){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Bx(t){return Ni((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function S6(t=Tfe){return Ni((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function Tfe(){return new sm}function ea(t,n){const e=arguments.length>=2;return i=>i.pipe(t?un((r,o)=>t(r,o,i)):Bl,Nn(1),e?Bx(n):S6(()=>new sm))}function dm(t,n){return On(n)?$r(t,n,1):$r(t,1)}function Vi(t,n,e){const i=On(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ni((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ki(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;a=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):Bl}function Dr(t){return Ni((n,e)=>{let o,i=null,r=!1;i=n.subscribe(ki(e,void 0,void 0,s=>{o=ko(t(s,Dr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function iI(t){return t<=0?()=>hs:Ni((n,e)=>{let i=[];n.subscribe(ki(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Ux(t){return mt(()=>t)}function um(t){return Ni((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Tt(t){return Ni((n,e)=>{ko(t).subscribe(ki(e,()=>e.complete(),Dv)),!e.closed&&n.subscribe(e)})}const Jt="primary",k_=Symbol("RouteTitle");class Ife{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function hm(t){return new Ife(t)}function Afe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function I6(t){return t.length>0?t[t.length-1]:null}function rd(t){return qD(t)?t:f_(t)?Yi(Promise.resolve(t)):st(t)}const Rfe={exact:function R6(t,n,e){if(!Nu(t.segments,n.segments)||!zx(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!R6(t.children[i],n.children[i],e))return!1;return!0},subset:P6},A6={exact:function Pfe(t,n){return cc(t,n)},subset:function Ffe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>D6(t[e],n[e]))},ignored:()=>!0};function M6(t,n,e){return Rfe[e.paths](t.root,n.root,e.matrixParams)&&A6[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function P6(t,n,e){return F6(t,n,n.segments,e)}function F6(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Nu(r,e)||n.hasChildren()||!zx(r,e,i))}if(t.segments.length===e.length){if(!Nu(t.segments,e)||!zx(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!P6(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Nu(t.segments,r)&&zx(t.segments,r,i)&&t.children[Jt])&&F6(t.children[Jt],n,o,i)}}function zx(t,n,e){return n.every((i,r)=>A6[e](t[r].parameters,i.parameters))}class fm{constructor(n=new ci([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=hm(this.queryParams),this._queryParamMap}toString(){return Lfe.serialize(this)}}class ci{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hx(this)}}class C_{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hm(this.parameters),this._parameterMap}toString(){return L6(this)}}function Nu(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let mm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>new oI,providedIn:"root"})}return t})();class oI{parse(n){const e=new Qfe(n);return new fm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${T_(n.root,!0)}`,i=function Ufe(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${jx(e)}=${jx(r)}`).join("&"):`${jx(e)}=${jx(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Vfe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Lfe=new oI;function Hx(t){return t.segments.map(n=>L6(n)).join("/")}function T_(t,n){if(!t.hasChildren())return Hx(t);if(n){const e=t.children[Jt]?T_(t.children[Jt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Jt&&i.push(`${r}:${T_(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Nfe(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===Jt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==Jt&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===Jt?[T_(t.children[Jt],!1)]:[`${r}:${T_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Jt]?`${Hx(t)}/${e[0]}`:`${Hx(t)}/(${e.join("//")})`}}function O6(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jx(t){return O6(t).replace(/%3B/gi,";")}function sI(t){return O6(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $x(t){return decodeURIComponent(t)}function N6(t){return $x(t.replace(/\+/g,"%20"))}function L6(t){return`${sI(t.path)}${function Bfe(t){return Object.entries(t).map(([n,e])=>`;${sI(n)}=${sI(e)}`).join("")}(t.parameters)}`}const zfe=/^[^\/()?;#]+/;function aI(t){const n=t.match(zfe);return n?n[0]:""}const Hfe=/^[^\/()?;=#]+/,$fe=/^[^=?&#]+/,Wfe=/^[^&#]+/;class Qfe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ci([],{}):new ci([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Jt]=new ci(n,e)),i}parseSegment(){const n=aI(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new le(4009,!1);return this.capture(n),new C_($x(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function jfe(t){const n=t.match(Hfe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=aI(this.remaining);r&&(i=r,this.capture(i))}n[$x(e)]=$x(i)}parseQueryParam(n){const e=function Gfe(t){const n=t.match($fe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function qfe(t){const n=t.match(Wfe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=N6(e),o=N6(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=aI(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new le(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Jt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Jt]:new ci([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new le(4011,!1)}}function V6(t){return t.segments.length>0?new ci([],{[Jt]:t}):t}function B6(t){const n={};for(const[i,r]of Object.entries(t.children)){const o=B6(r);if(i===Jt&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function Kfe(t){if(1===t.numberOfChildren&&t.children[Jt]){const n=t.children[Jt];return new ci(t.segments.concat(n.segments),n.children)}return t}(new ci(t.segments,n))}function pm(t){return t instanceof fm}function U6(t){let n;const r=V6(function e(o){const s={};for(const c of o.children){const l=e(c);s[c.outlet]=l}const a=new ci(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function z6(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return cI(r,r,r,e,i);const o=function Yfe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new j6(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new j6(e,n,i)}(n);if(o.toRoot())return cI(r,r,new ci([],{}),e,i);const s=function Zfe(t,n,e){if(t.isAbsolute)return new Wx(n,!0,0);if(!e)return new Wx(n,!1,NaN);if(null===e.parent)return new Wx(e,!0,0);const i=Gx(t.commands[0])?0:1;return function Jfe(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new le(4005,!1);r=i.segments.length}return new Wx(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?S_(s.segmentGroup,s.index,o.commands):$6(s.segmentGroup,s.index,o.commands);return cI(r,s.segmentGroup,a,e,i)}function Gx(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function E_(t){return"object"==typeof t&&null!=t&&t.outlets}function cI(t,n,e,i,r){let s,o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),s=t===n?e:H6(t,n,e);const a=V6(B6(s));return new fm(a,o,r)}function H6(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:H6(o,n,e)}),new ci(t.segments,i)}class j6{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Gx(i[0]))throw new le(4003,!1);const r=i.find(E_);if(r&&r!==I6(i))throw new le(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wx{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function $6(t,n,e){if(t??=new ci([],{}),0===t.segments.length&&t.hasChildren())return S_(t,n,e);const i=function tme(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(E_(a))break;const c=`${a}`,l=i0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!W6(c,l,s))return o;i+=2}else{if(!W6(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Jt)&&t.children[Jt]&&1===t.numberOfChildren&&0===t.children[Jt].segments.length){const o=S_(t.children[Jt],n,e);return new ci(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=$6(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new ci(t.segments,r)}}function lI(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=lI(new ci([],{}),0,i))}),n}function G6(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function W6(t,n,e){return t==e.path&&cc(n,e.parameters)}const D_="imperative";var Sn=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Sn||{});class lc{constructor(n,e){this.id=n,this.url=e}}class qx extends lc{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Sn.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dc extends lc{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Sn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Ns=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ns||{}),Qx=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Qx||{});class gm extends lc{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Sn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class _m extends lc{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Sn.NavigationSkipped}}class Kx extends lc{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Sn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class q6 extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ime extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rme extends lc{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Sn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ome extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sme extends lc{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Sn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ame{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cme{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lme{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dme{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ume{constructor(n){this.snapshot=n,this.type=Sn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hme{constructor(n){this.snapshot=n,this.type=Sn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q6{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Sn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class dI{}class uI{constructor(n){this.url=n}}class fme{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new I_,this.attachRef=null}}let I_=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new fme,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class K6{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=hI(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=hI(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=fI(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return fI(n,this._root).map(e=>e.value)}}function hI(t,n){if(t===n.value)return n;for(const e of n.children){const i=hI(t,e);if(i)return i}return null}function fI(t,n){if(t===n.value)return[n];for(const e of n.children){const i=fI(t,e);if(i.length)return i.unshift(n),i}return[]}class Aa{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function bm(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class X6 extends K6{constructor(n,e){super(n),this.snapshot=e,gI(this,n)}toString(){return this.snapshot.toString()}}function Y6(t){const n=function mme(t){const o=new pI([],{},{},"",{},Jt,t,null,{});return new Z6("",new Aa(o,[]))}(t),e=new wi([new C_("",{})]),i=new wi({}),r=new wi({}),o=new wi({}),s=new wi(""),a=new od(e,i,o,s,r,Jt,t,n.root);return a.snapshot=n.root,new X6(new Aa(a,[]),n)}class od{constructor(n,e,i,r,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(mt(l=>l[k_]))??st(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(mt(n=>hm(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(mt(n=>hm(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mI(t,n,e="emptyOnly"){let i;const{routeConfig:r}=t;return i=null===n||"always"!==e&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...r?.data,...t._resolvedData}},r&&eU(r)&&(i.resolve[k_]=r.title),i}class pI{get title(){return this.data?.[k_]}constructor(n,e,i,r,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=hm(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hm(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Z6 extends K6{constructor(n,e){super(e),this.url=n,gI(this,e)}toString(){return J6(this._root)}}function gI(t,n){n.value._routerState=t,n.children.forEach(e=>gI(t,e))}function J6(t){const n=t.children.length>0?` { ${t.children.map(J6).join(", ")} } `:"";return`${t.value}${n}`}function _I(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,cc(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),cc(n.params,e.params)||t.paramsSubject.next(e.params),function Mfe(t,n){if(t.length!==n.length)return!1;for(let e=0;ecc(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||bI(t.parent,n.parent))}function eU(t){return"string"==typeof t.title||null===t.title}let vI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Jt,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=he(I_),this.location=he(di),this.changeDetector=he(gn),this.environmentInjector=he(as),this.inputBinder=he(Xx,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new le(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new le(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new le(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new le(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new pme(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Un]})}return t})();class pme{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i,this.__ngOutletInjector=!0}get(n,e){return n===od?this.route:n===I_?this.childContexts:this.parent.get(n,e)}}const Xx=new J("");let tU=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=Jc([i.queryParams,i.params,i.data]).pipe(Zi(([o,s,a],c)=>(a={...o,...s,...a},0===c?st(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function ade(t){const n=cn(t);if(!n)return null;const e=new Qg(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function A_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function _me(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return A_(t,i,r);return A_(t,i)})}(t,n,e);return new Aa(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>A_(t,a)),s}}const i=function bme(t){return new od(new wi(t.url),new wi(t.params),new wi(t.queryParams),new wi(t.fragment),new wi(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>A_(t,o));return new Aa(i,r)}}const nU="ngNavigationCancelingError";function iU(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=pm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=rU(!1,Ns.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function rU(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[nU]=!0,e.cancellationCode=n,e}function oU(t){return!!t&&t[nU]}let sU=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["ng-component"]],standalone:!0,features:[St],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[vI],encapsulation:2})}return t})();function yI(t){const n=t.children&&t.children.map(yI),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Jt&&(e.component=sU),e}function uc(t){return t.outlet||Jt}function M_(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Eme{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),_I(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=bm(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bm(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=bm(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const r=bm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new hme(o.value.snapshot))}),n.children.length&&this.forwardEvent(new dme(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(_I(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),_I(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=M_(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class aU{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Yx{constructor(n,e){this.component=n,this.route=e}}function Sme(t,n,e){const i=t._root;return R_(i,n?n._root:null,e,[i.value])}function vm(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function nJ(t){return null!==Pv(t)}(t)?n.get(t):t:i}function R_(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bm(n);return t.children.forEach(s=>{(function Ime(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function Ame(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Nu(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Nu(t.url,n.url)||!cc(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bI(t,n)||!cc(t.queryParams,n.queryParams);default:return!bI(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new aU(i)):(o.data=s.data,o._resolvedData=s._resolvedData),R_(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Yx(a.outlet.component,s))}else s&&P_(n,a,r),r.canActivateChecks.push(new aU(i)),R_(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>P_(a,e.getContext(s),r)),r}function P_(t,n,e){const i=bm(t),r=t.value;Object.entries(i).forEach(([o,s])=>{P_(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Yx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function F_(t){return"function"==typeof t}function cU(t){return t instanceof sm||"EmptyError"===t?.name}const Zx=Symbol("INITIAL_VALUE");function ym(){return Zi(t=>Jc(t.map(n=>n.pipe(Nn(1),Gr(Zx)))).pipe(mt(n=>{for(const e of n)if(!0!==e){if(e===Zx)return Zx;if(!1===e||e instanceof fm)return e}return!0}),un(n=>n!==Zx),Nn(1)))}function lU(t){return function WZ(...t){return HO(t)}(Vi(n=>{if(pm(n))throw iU(0,n)}),mt(n=>!0===n))}class xI{constructor(n){this.segmentGroup=n||null}}class wI extends Error{constructor(n){super(),this.urlTree=n}}function xm(t){return lm(new xI(t))}class Kme{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return st(i);if(r.numberOfChildren>1||!r.children[Jt])return lm(new le(4e3,!1));r=r.children[Jt]}}applyRedirectCommands(n,e,i){const r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new wI(r);return r}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new fm(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,i,r)}),new ci(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new le(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const kI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Xme(t,n,e,i,r){const o=CI(t,n,e);return o.matched?(i=function yme(t,n){return t.providers&&!t._injector&&(t._injector=Wy(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Wme(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?st(r.map(s=>{const a=vm(s,t);return rd(function Nme(t){return t&&F_(t.canMatch)}(a)?a.canMatch(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),lU()):st(!0)}(i,n,e).pipe(mt(s=>!0===s?o:{...kI}))):st(o)}function CI(t,n,e){if("**"===n.path)return function Yme(t){return{matched:!0,parameters:t.length>0?I6(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...kI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Afe)(e,t,n);if(!r)return{...kI};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function dU(t,n,e,i){return e.length>0&&function epe(t,n,e){return e.some(i=>Jx(t,n,i)&&uc(i)!==Jt)}(t,e,i)?{segmentGroup:new ci(n,Jme(i,new ci(e,t.children))),slicedSegments:[]}:0===e.length&&function tpe(t,n,e){return e.some(i=>Jx(t,n,i))}(t,e,i)?{segmentGroup:new ci(t.segments,Zme(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ci(t.segments,t.children),slicedSegments:e}}function Zme(t,n,e,i){const r={};for(const o of e)if(Jx(t,n,o)&&!i[uc(o)]){const s=new ci([],{});r[uc(o)]=s}return{...i,...r}}function Jme(t,n){const e={};e[Jt]=n;for(const i of t)if(""===i.path&&uc(i)!==Jt){const r=new ci([],{});e[uc(i)]=r}return e}function Jx(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class rpe{}class ape{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Kme(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new le(4002,`'${n.segmentGroup}'`)}recognize(){const n=dU(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(mt(e=>{const i=new pI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Jt,this.rootComponentType,null,{}),r=new Aa(i,e),o=new Z6("",r),s=function Xfe(t,n,e=null,i=null){return z6(U6(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Jt).pipe(Dr(i=>{if(i instanceof wI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof xI?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,r=mI(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o,i))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0).pipe(mt(o=>o instanceof Aa?[o]:[]))}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Yi(r).pipe(dm(o=>{const s=i.children[o],a=function Cme(t,n){const e=t.filter(i=>uc(i)===n);return e.push(...t.filter(i=>uc(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function Sfe(t,n){return Ni(function Efe(t,n,e,i,r){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(ki(s,d=>{const u=l++;c=a?t(c,d,u):(a=!0,d),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(t,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Bx(null),function Dfe(t,n){const e=arguments.length>=2;return i=>i.pipe(t?un((r,o)=>t(r,o,i)):Bl,iI(1),e?Bx(n):S6(()=>new sm))}(),$r(o=>{if(null===o)return xm(i);const s=uU(o);return function cpe(t){t.sort((n,e)=>n.value.outlet===Jt?-1:e.value.outlet===Jt?1:n.value.outlet.localeCompare(e.value.outlet))}(s),st(s)}))}processSegment(n,e,i,r,o,s){return Yi(e).pipe(dm(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Dr(c=>{if(c instanceof xI)return st(null);throw c}))),ea(a=>!!a),Dr(a=>{if(cU(a))return function ipe(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?st(new rpe):xm(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function npe(t,n,e,i){return!!(uc(t)===i||i!==Jt&&Jx(n,e,t))&&CI(n,t,e).matched}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s):xm(r):xm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=CI(e,r,o);if(!a)return xm(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const u=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,u).pipe($r(h=>this.processSegment(n,i,e,h.concat(d),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){const s=Xme(e,i,r,n);return"**"===i.path&&(e.children={}),s.pipe(Zi(a=>a.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Zi(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:d,remainingSegments:u,parameters:h}=a,f=new pI(d,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function dpe(t){return t.data||{}}(i),uc(i),i.component??i._loadedComponent??null,i,function upe(t){return t.resolve||{}}(i)),{segmentGroup:m,slicedSegments:g}=dU(e,d,u,c);if(0===g.length&&m.hasChildren())return this.processChildren(l,c,m).pipe(mt(v=>null===v?null:new Aa(f,v)));if(0===c.length&&0===g.length)return st(new Aa(f,[]));const p=uc(i)===o;return this.processSegment(l,c,m,g,p?Jt:o,!0).pipe(mt(v=>new Aa(f,v instanceof Aa?[v]:[])))})):xm(e)))}getChildConfig(n,e,i){return e.children?st({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?st({routes:e._loadedRoutes,injector:e._loadedInjector}):function Gme(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?st(!0):st(r.map(s=>{const a=vm(s,t);return rd(function Rme(t){return t&&F_(t.canLoad)}(a)?a.canLoad(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),lU())}(n,e,i).pipe($r(r=>r?this.configLoader.loadChildren(n,e).pipe(Vi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Qme(t){return lm(rU(!1,Ns.GuardRejected))}())):st({routes:[],injector:n})}}function lpe(t){const n=t.value.routeConfig;return n&&""===n.path}function uU(t){const n=[],e=new Set;for(const i of t){if(!lpe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=uU(i.children);n.push(new Aa(i.value,r))}return n.filter(i=>!e.has(i))}function hU(t){const n=t.children.map(e=>hU(e)).flat();return[t,...n]}function TI(t){return Zi(n=>{const e=t(n);return e?Yi(e).pipe(mt(()=>n)):st(n)})}let fU=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Jt);return i}getResolvedTitleForRoute(e){return e.data[k_]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(_pe),providedIn:"root"})}return t})(),_pe=(()=>{class t extends fU{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Dhe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wm=new J("",{providedIn:"root",factory:()=>({})}),km=new J("");let EI=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=he(C5)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return st(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=rd(e.loadComponent()).pipe(mt(mU),Vi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),um(()=>{this.componentLoaders.delete(e)})),r=new nI(i,()=>new Me).pipe(tI());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return st({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function bpe(t,n,e,i){return rd(t.loadChildren()).pipe(mt(mU),$r(r=>r instanceof q3||Array.isArray(r)?st(r):Yi(n.compileModuleAsync(r))),mt(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(km,[],{optional:!0,self:!0}).flat()),{routes:s.map(yI),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(um(()=>{this.childrenLoaders.delete(i)})),s=new nI(o,()=>new Me).pipe(tI());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mU(t){return function vpe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let SI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(ype),providedIn:"root"})}return t})(),ype=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const pU=new J(""),gU=new J("");function xpe(t,n,e){const i=t.get(gU),r=t.get(xt);return t.get(Be).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),function wpe(t){return new Promise(n=>{u3(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ga(t,()=>c({transition:a,from:n,to:e})),s})}let ew=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me,this.transitionAbortSubject=new Me,this.configLoader=he(EI),this.environmentInjector=he(as),this.urlSerializer=he(mm),this.rootContexts=he(I_),this.location=he(Fu),this.inputBindingEnabled=null!==he(Xx,{optional:!0}),this.titleStrategy=he(fU),this.options=he(wm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=he(SI),this.createViewTransition=he(pU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>st(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new cme(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new ame(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,r){return this.transitions=new wi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:D_,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(un(o=>0!==o.id),mt(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Zi(o=>{let s=!1,a=!1;return st(o).pipe(Zi(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Ns.SupersededByNewNavigation),hs;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new _m(c.id,this.urlSerializer.serialize(c.rawUrl),u,Qx.IgnoredSameUrlNavigation)),c.resolve(null),hs}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return st(c).pipe(Zi(u=>{const h=this.transitions?.getValue();return this.events.next(new qx(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?hs:Promise.resolve(u)}),function hpe(t,n,e,i,r,o){return $r(s=>function ope(t,n,e,i,r,o,s="emptyOnly"){return new ape(t,n,e,i,r,s,o).recognize()}(t,n,e,i,s.extractedUrl,r,o).pipe(mt(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Vi(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new q6(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:u,extractedUrl:h,source:f,restoredState:m,extras:g}=c,p=new qx(u,this.urlSerializer.serialize(h),f,m);this.events.next(p);const v=Y6(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:v,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,st(o)}{const u="";return this.events.next(new _m(c.id,this.urlSerializer.serialize(c.extractedUrl),u,Qx.IgnoredByUrlHandlingStrategy)),c.resolve(null),hs}}),Vi(c=>{const l=new ime(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),mt(c=>(this.currentTransition=o={...c,guards:Sme(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function Lme(t,n){return $r(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?st({...e,guardsResult:!0}):function Vme(t,n,e,i){return Yi(t).pipe($r(r=>function $me(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?st(o.map(a=>{const c=M_(n)??r,l=vm(a,c);return rd(function Ome(t){return t&&F_(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,i):Ga(c,()=>l(t,n,e,i))).pipe(ea())})).pipe(ym()):st(!0)}(r.component,r.route,e,n,i)),ea(r=>!0!==r,!0))}(s,i,r,t).pipe($r(a=>a&&function Mme(t){return"boolean"==typeof t}(a)?function Bme(t,n,e,i){return Yi(n).pipe(dm(r=>w_(function zme(t,n){return null!==t&&n&&n(new lme(t)),st(!0)}(r.route.parent,i),function Ume(t,n){return null!==t&&n&&n(new ume(t)),st(!0)}(r.route,i),function jme(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Dme(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>cm(()=>st(s.guards.map(c=>{const l=M_(s.node)??e,d=vm(c,l);return rd(function Fme(t){return t&&F_(t.canActivateChild)}(d)?d.canActivateChild(i,t):Ga(l,()=>d(i,t))).pipe(ea())})).pipe(ym())));return st(o).pipe(ym())}(t,r.path,e),function Hme(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return st(!0);const r=i.map(o=>cm(()=>{const s=M_(n)??e,a=vm(o,s);return rd(function Pme(t){return t&&F_(t.canActivate)}(a)?a.canActivate(n,t):Ga(s,()=>a(n,t))).pipe(ea())}));return st(r).pipe(ym())}(t,r.route,e))),ea(r=>!0!==r,!0))}(i,o,t,n):st(a)),mt(a=>({...e,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Vi(c=>{if(o.guardsResult=c.guardsResult,pm(c.guardsResult))throw iU(0,c.guardsResult);const l=new rme(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),un(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",Ns.GuardRejected),!1)),TI(c=>{if(c.guards.canActivateChecks.length)return st(c).pipe(Vi(l=>{const d=new ome(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Zi(l=>{let d=!1;return st(l).pipe(function fpe(t,n){return $r(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return st(e);const o=new Set(r.map(c=>c.route)),s=new Set;for(const c of o)if(!s.has(c))for(const l of hU(c))s.add(l);let a=0;return Yi(s).pipe(dm(c=>o.has(c)?function mpe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!eU(r)&&(o[k_]=r.title),function ppe(t,n,e,i){const r=rI(t);if(0===r.length)return st({});const o={};return Yi(r).pipe($r(s=>function gpe(t,n,e,i){const r=M_(n)??i,o=vm(t,r);return rd(o.resolve?o.resolve(n,e):Ga(r,()=>o(n,e)))}(t[s],n,e,i).pipe(ea(),Vi(a=>{o[s]=a}))),iI(1),Ux(o),Dr(s=>cU(s)?hs:lm(s)))}(o,t,n,i).pipe(mt(s=>(t._resolvedData=s,t.data=mI(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=mI(c,c.parent,t).resolve,st(void 0))),Vi(()=>a++),iI(1),$r(c=>a===s.size?st(e):hs))})}(this.paramsInheritanceStrategy,this.environmentInjector),Vi({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ns.NoDataFromResolver)}}))}),Vi(l=>{const d=new sme(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),TI(c=>{const l=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Vi(h=>{d.component=h}),mt(()=>{})));for(const h of d.children)u.push(...l(h));return u};return Jc(l(c.targetSnapshot.root)).pipe(Bx(null),Nn(1))}),TI(()=>this.afterPreactivation()),Zi(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?Yi(d).pipe(mt(()=>o)):st(o)}),mt(c=>{const l=function gme(t,n,e){const i=A_(t,n._root,e?e._root:void 0);return new X6(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),Vi(()=>{this.events.next(new dI)}),((t,n,e,i)=>mt(r=>(new Eme(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Nn(1),Vi({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Tt(this.transitionAbortSubject.pipe(Vi(c=>{throw c}))),um(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Ns.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Dr(c=>{if(a=!0,oU(c))this.events.next(new gm(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function vme(t){return oU(t)&&pm(t.url)}(c)?this.events.next(new uI(c.url)):o.resolve(!1);else{this.events.next(new Kx(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return hs}))}))}cancelNavigationTransition(e,i,r){const o=new gm(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kpe(t){return t!==D_}let Cpe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(Epe),providedIn:"root"})}return t})();class Tpe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let Epe=(()=>{class t extends Tpe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_U=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>he(Spe),providedIn:"root"})}return t})(),Spe=(()=>{class t extends _U{constructor(){super(...arguments),this.location=he(Fu),this.urlSerializer=he(mm),this.options=he(wm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=he(SI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fm,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Y6(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof qx)this.stateMemento=this.createStateMemento();else if(e instanceof _m)this.rawUrlTree=i.initialUrl;else if(e instanceof q6){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof dI?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof gm&&(e.code===Ns.GuardRejected||e.code===Ns.NoDataFromResolver)?this.restoreHistory(i):e instanceof Kx?this.restoreHistory(i,!0):e instanceof dc&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&0===o&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var O_=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(O_||{});function bU(t,n){t.events.pipe(un(e=>e instanceof dc||e instanceof gm||e instanceof Kx||e instanceof _m),mt(e=>e instanceof dc||e instanceof _m?O_.COMPLETE:e instanceof gm&&(e.code===Ns.Redirect||e.code===Ns.SupersededByNewNavigation)?O_.REDIRECTING:O_.FAILED),un(e=>e!==O_.REDIRECTING),Nn(1)).subscribe(()=>{n()})}function Dpe(t){throw t}const Ipe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ape={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fs=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=he(m5),this.stateManager=he(_U),this.options=he(wm,{optional:!0})||{},this.pendingTasks=he(Yl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=he(ew),this.urlSerializer=he(mm),this.location=he(Fu),this.urlHandlingStrategy=he(SI),this._events=new Me,this.errorHandler=this.options.errorHandler||Dpe,this.navigated=!1,this.routeReuseStrategy=he(Cpe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=he(km,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!he(Xx,{optional:!0}),this.eventsSubscription=new Wt,this.isNgZoneEnabled=he(Be)instanceof Be&&Be.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof gm&&i.code!==Ns.Redirect&&i.code!==Ns.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof dc)this.navigated=!0;else if(i instanceof uI){const s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kpe(r.source)};this.scheduleNavigation(s,D_,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function Rpe(t){return!(t instanceof dI||t instanceof uI)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),D_,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(yI),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s;let u,d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=U6(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),u=this.currentUrlTree.root}return z6(u,e,d,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=pm(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,D_,null,i)}navigate(e,i={skipLocationChange:!1}){return function Mpe(t){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,h)=>{a=u,c=h});const d=this.pendingTasks.add();return bU(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class vU{}let Ope=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(un(e=>e instanceof dc),dm(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Wy(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Yi(r).pipe(am())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):st(null);const o=r.pipe($r(s=>null===s?st(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Yi([o,this.loader.loadComponent(i)]).pipe(am()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(fs),Y(C5),Y(as),Y(vU),Y(EI))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const II=new J("");let yU=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof qx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dc?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof _m&&e.code===Qx.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Q6&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Q6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){Iy()};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function hc(t,n){return{\u0275kind:t,\u0275providers:n}}function wU(){const t=he(Ii);return n=>{const e=t.get(Qc);if(n!==e.components[0])return;const i=t.get(fs),r=t.get(kU);1===t.get(AI)&&i.initialNavigation(),t.get(CU,null,mn.Optional)?.setUpPreloading(),t.get(II,null,mn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const kU=new J("",{factory:()=>new Me}),AI=new J("",{providedIn:"root",factory:()=>1}),CU=new J("");function Bpe(t){return hc(0,[{provide:CU,useExisting:Ope},{provide:vU,useExisting:t}])}function zpe(t){return hc(9,[{provide:pU,useValue:xpe},{provide:gU,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const TU=new J("ROUTER_FORROOT_GUARD"),Hpe=[Fu,{provide:mm,useClass:oI},fs,I_,{provide:od,useFactory:function xU(t){return t.routerState.root},deps:[fs]},EI,[]];let EU=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Hpe,[],{provide:km,multi:!0,useValue:e},{provide:TU,useFactory:Wpe,deps:[[fs,new Hl,new df]]},{provide:wm,useValue:i||{}},i?.useHash?{provide:Pu,useClass:hde}:{provide:Pu,useClass:p8},{provide:II,useFactory:()=>{const t=he(Iue),n=he(Be),e=he(wm),i=he(ew),r=he(mm);return e.scrollOffset&&t.setOffset(e.scrollOffset),new yU(r,i,t,n,e)}},i?.preloadingStrategy?Bpe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?qpe(i):[],i?.bindToComponentInputs?hc(8,[tU,{provide:Xx,useExisting:tU}]).\u0275providers:[],i?.enableViewTransitions?zpe().\u0275providers:[],[{provide:SU,useFactory:wU},{provide:lD,multi:!0,useExisting:SU}]]}}static forChild(e){return{ngModule:t,providers:[{provide:km,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(TU,8))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();function Wpe(t){return"guarded"}function qpe(t){return["disabled"===t.initialNavigation?hc(3,[{provide:aD,multi:!0,useFactory:()=>{const n=he(fs);return()=>{n.setUpLocationChangeListener()}}},{provide:AI,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?hc(2,[{provide:AI,useValue:0},{provide:aD,multi:!0,deps:[Ii],useFactory:n=>{const e=n.get(dde,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(fs),o=n.get(kU);bU(r,()=>{i(!0)}),n.get(ew).afterPreactivation=()=>(i(!0),o.closed?st(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const SU=new J("");class tw{}function MI(t){return t&&"function"==typeof t.connect&&!(t instanceof nI)}var el=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(el||{});const N_=new J("_ViewRepeater");class DU{applyChanges(n,e,i,r,o){n.forEachOperation((s,a,c)=>{let l,d;if(null==s.previousIndex){const u=i(s,a,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=el.INSERTED}else null==c?(e.remove(a),d=el.REMOVED):(l=e.get(a),e.move(l,c),d=el.MOVED);o&&o({context:l?.context,operation:d,record:s})})}detach(){}}class RI{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Me,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}return n}}let PI=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Co(t,n){const e="object"==typeof n;return new Promise((i,r)=>{let s,o=!1;t.subscribe({next:a=>{s=a,o=!0},error:r,complete:()=>{o?i(s):e?i(n.defaultValue):r(new sm)}})})}const FI={now:()=>(FI.delegate||Date).now(),delegate:void 0};class nw extends Me{constructor(n=1/0,e=1/0,i=FI){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ms?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ms;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ms?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class Kpe{encodeKey(n){return AU(n)}encodeValue(n){return AU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Ype=/%(\d[a-f0-9])/gi,Zpe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function AU(t){return encodeURIComponent(t).replace(Ype,(n,e)=>Zpe[e]??n)}function ow(t){return`${t}`}class sd{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Kpe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Xpe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(ow):[ow(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new sd({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(ow(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(ow(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Jpe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function MU(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function RU(t){return typeof Blob<"u"&&t instanceof Blob}function PU(t){return typeof FormData<"u"&&t instanceof FormData}class L_{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function ege(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ms,this.context??=new Jpe,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,n.setHeaders[f]),l)),n.setParams&&(d=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),d)),new L_(e,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}}var ad=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ad||{});class OI{constructor(n,e=V_.Ok,i="OK"){this.headers=n.headers||new ms,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class sw extends OI{constructor(n={}){super(n),this.type=ad.ResponseHeader}clone(n={}){return new sw({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Lu extends OI{constructor(n={}){super(n),this.type=ad.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Lu({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Cm extends OI{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var V_=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(V_||{});function NI(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let cd=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof L_)o=e;else{let c,l;c=r.headers instanceof ms?r.headers:new ms(r.headers),r.params&&(l=r.params instanceof sd?r.params:new sd({fromObject:r.params})),o=new L_(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=st(o).pipe(dm(c=>this.handler.handle(c)));if(e instanceof L_||"events"===r.observe)return s;const a=s.pipe(un(c=>c instanceof Lu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(mt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(mt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(mt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(mt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new sd).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,NI(r,i))}post(e,i,r={}){return this.request("POST",e,NI(r,i))}put(e,i,r={}){return this.request("PUT",e,NI(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(iw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function OU(t,n){return n(t)}function sge(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const cge=new J(""),B_=new J(""),NU=new J(""),LU=new J("");function lge(){let t=null;return(n,e)=>{null===t&&(t=(he(cge,{optional:!0})??[]).reduceRight(sge,OU));const i=he(Yl),r=i.add();return t(n,e).pipe(um(()=>i.remove(r)))}}let VU=(()=>{class t extends iw{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=he(Yl);const r=he(LU,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(B_),...this.injector.get(NU,[])]));this.chain=r.reduceRight((o,s)=>function age(t,n,e){return(i,r)=>Ga(e,()=>n(i,o=>t(o,r)))}(o,s,this.injector),OU)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(um(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(rw),Y(as))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const mge=/^\)\]\}',?\n/;let UU=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new le(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Yi(i.\u0275loadImpl()):st(null)).pipe(Zi(()=>new jn(o=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((g,p)=>s.setRequestHeader(g,p.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=e.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const g=s.statusText||"OK",p=new ms(s.getAllResponseHeaders()),v=function pge(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return c=new sw({headers:p,status:s.status,statusText:g,url:v}),c},d=()=>{let{headers:g,status:p,statusText:v,url:x}=l(),C=null;p!==V_.NoContent&&(C=typeof s.response>"u"?s.responseText:s.response),0===p&&(p=C?V_.Ok:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const j=C;C=C.replace(mge,"");try{C=""!==C?JSON.parse(C):null}catch(M){C=j,D&&(D=!1,C={error:M,text:C})}}D?(o.next(new Lu({body:C,headers:g,status:p,statusText:v,url:x||void 0})),o.complete()):o.error(new Cm({error:C,headers:g,status:p,statusText:v,url:x||void 0}))},u=g=>{const{url:p}=l(),v=new Cm({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});o.error(v)};let h=!1;const f=g=>{h||(o.next(l()),h=!0);let p={type:ad.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),"text"===e.responseType&&s.responseText&&(p.partialText=s.responseText),o.next(p)},m=g=>{let p={type:ad.UploadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),o.next(p)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),e.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:ad.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),e.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(O8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const BI=new J(""),zU=new J("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),HU=new J("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jU{}let bge=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,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=T8(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y($c),Y(zU))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function vge(t,n){const e=t.url.toLowerCase();if(!he(BI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=he(jU).getToken(),r=he(HU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var ld=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(ld||{});function yge(...t){const n=[cd,UU,VU,{provide:iw,useExisting:VU},{provide:rw,useExisting:UU},{provide:B_,useValue:vge,multi:!0},{provide:BI,useValue:!0},{provide:jU,useClass:bge}];for(const e of t)n.push(...e.\u0275providers);return function lg(t){return{\u0275providers:t}}(n)}const $U=new J("");function xge(){return function Vu(t,n){return{\u0275kind:t,\u0275providers:n}}(ld.LegacyInterceptors,[{provide:$U,useFactory:lge},{provide:B_,useExisting:$U,multi:!0}])}let UI,wge=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[yge(xge())]})}return t})();try{UI=typeof Intl<"u"&&Intl.v8BreakIterator}catch{UI=!1}let Tm,Ln=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?P8(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&&!UI)&&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(i){return new(i||t)(Y($c))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ZU=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function JU(){if(Tm)return Tm;if("object"!=typeof document||!document)return Tm=new Set(ZU),Tm;let t=document.createElement("input");return Tm=new Set(ZU.filter(n=>(t.setAttribute("type",n),t.type===n))),Tm}let U_;function Ma(t){return function Dge(){if(null==U_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>U_=!0}))}finally{U_=U_||!1}return U_}()?t:!!t.capture}var fc=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(fc||{});let cw,Bu,zI;function e9(){if(null==Bu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Bu=!1,Bu;if("scrollBehavior"in document.documentElement.style)Bu=!0;else{const t=Element.prototype.scrollTo;Bu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Bu}function z_(){if("object"!=typeof document||!document)return fc.NORMAL;if(null==cw){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),cw=fc.NORMAL,0===t.scrollLeft&&(t.scrollLeft=1,cw=0===t.scrollLeft?fc.NEGATED:fc.INVERTED),t.remove()}return cw}function HI(t){if(function Ige(){if(null==zI){const t=typeof document<"u"?document.head:null;zI=!(!t||!t.createShadowRoot&&!t.attachShadow)}return zI}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function lw(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ls(t){return t.composedPath?t.composedPath()[0]:t.target}function jI(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function To(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Hge extends Wt{constructor(n,e){super()}schedule(n,e=0){return this}}const hw={setInterval(t,n,...e){const{delegate:i}=hw;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=hw;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class GI extends Hge{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return hw.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&hw.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ev(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class j_{constructor(n,e=j_.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}j_.now=FI.now;class WI extends j_{constructor(n,e=j_.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const $_=new WI(GI),jge=$_;function nl(t,n=$_){return Ni((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,i.next(l)}};function c(){const l=s+t,d=n.now();if(d{o=l,s=n.now(),r||(r=n.schedule(c,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function qI(t){return un((n,e)=>t<=e)}function il(t,n=Bl){return t=t??$ge,Ni((e,i)=>{let r,o=!0;e.subscribe(ki(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function $ge(t,n){return t===n}function Ir(t){return null!=t&&"false"!=`${t}`}function hd(t,n=0){return n9(t)?Number(t):n}function n9(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function G_(t){return Array.isArray(t)?t:[t]}function ur(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Bi(t){return t instanceof He?t.nativeElement:t}let i9=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wge=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Bi(e);return new jn(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Me,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(i9))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r9=(()=>{class t{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=hd(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ce,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(nl(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Wge),w(He),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",Ue],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Kt]})}return t})(),QI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[i9]})}return t})();const o9=new Set;let Uu,qge=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Kge}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Qge(t,n){if(!o9.has(t))try{Uu||(Uu=document.createElement("style"),n&&Uu.setAttribute("nonce",n),Uu.setAttribute("type","text/css"),document.head.appendChild(Uu)),Uu.sheet&&(Uu.sheet.insertRule(`@media ${t} {body{ }}`,0),o9.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(uE,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kge(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let s9=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Me}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return a9(G_(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jc(a9(G_(e)).map(s=>this._registerQuery(s).observable));return o=w_(o.pipe(Nn(1)),o.pipe(qI(1),nl(0))),o.pipe(mt(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new jn(s=>{const a=c=>this._zone.run(()=>s.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Gr(i),mt(({matches:s})=>({query:e,matches:s})),Tt(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(i){return new(i||t)(Y(qge),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function a9(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function fw(t,n,e){const i=mw(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(" ")))}function Sm(t,n,e){const i=mw(t,n);e=e.trim();const r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}function mw(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}const l9="cdk-describedby-message",pw="cdk-describedby-host";let KI=0,d9=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+KI++,this._document=e,this._id=he(Tg)+"-"+KI++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=XI(i,r);"string"!=typeof i?(u9(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=XI(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${pw}="${this._id}"]`);for(let i=0;i0!=r.indexOf(l9));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);fw(e,"aria-describedby",r.messageElement.id),e.setAttribute(pw,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,Sm(e,"aria-describedby",r.messageElement.id),e.removeAttribute(pw)}_isElementDescribedByMessage(e,i){const r=mw(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Ln))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function XI(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function u9(t,n){t.id||(t.id=`${l9}-${n}-${KI++}`)}class h9{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=Wt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,n instanceof Gl?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):jy(n)&&(this._effectRef=function u8(t,n){ec("NgSignals"),!n?.injector&&Wv();const e=n?.injector??he(Ii),i=!0!==n?.manualCleanup?e.get(Tf):null,r=new sde(e.get(ide),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(gn,null,{optional:!0});return o&&8&o._lView[bt]?(o._lView[Qv]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Vi(e=>this._pressedLetters.push(e)),nl(n),un(()=>this._pressedLetters.length>0),mt(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.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._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return jy(this._items)?this._items():this._items instanceof Gl?this._items.toArray():this._items}_itemsChanged(n){if(this._activeItem){const e=n.indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}}}class f9 extends h9{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class YI extends h9{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let gw=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Zge(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function Yge(t){try{return t.frameElement}catch{return null}}(function s_e(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===p9(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=p9(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function r_e(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function o_e(t){return!function e_e(t){return function n_e(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Jge(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function t_e(t){return function i_e(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||m9(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function m9(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function p9(t){if(!m9(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class g9{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Nn(1)).subscribe(n)}}let ZI=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new g9(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(gw),Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _w(t){return 0===t.buttons||0===t.detail}function bw(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const a_e=new J("cdk-input-modality-detector-options"),c_e={ignoreKeys:[18,17,224,91,16]},Dm=Ma({passive:!0,capture:!0});let l_e=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new wi(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ls(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(_w(s)?"keyboard":"mouse"),this._mostRecentTarget=Ls(s))},this._onTouchstart=s=>{bw(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ls(s))},this._options={...c_e,...o},this.modalityDetected=this._modality.pipe(qI(1)),this.modalityChanged=this.modalityDetected.pipe(il()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dm),r.addEventListener("mousedown",this._onMousedown,Dm),r.addEventListener("touchstart",this._onTouchstart,Dm)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dm),document.removeEventListener("mousedown",this._onMousedown,Dm),document.removeEventListener("touchstart",this._onTouchstart,Dm))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(Be),Y(xt),Y(a_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const d_e=new J("liveAnnouncerElement",{providedIn:"root",factory:function u_e(){return null}}),h_e=new J("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let f_e=0,b9=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),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",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,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 Me,this._rootNodeFocusAndBlurListener=a=>{for(let l=Ls(a);l;l=l.parentElement)"focus"===a.type?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||vw.IMMEDIATE}monitor(e,i=!1){const r=Bi(e);if(!this._platform.isBrowser||1!==r.nodeType)return st();const o=HI(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Me,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Bi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Bi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===vw.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===vw.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Ls(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,yw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,yw)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yw),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ta))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return t})();var zu=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(zu||{});const v9="cdk-high-contrast-black-on-white",y9="cdk-high-contrast-white-on-black",JI="cdk-high-contrast-active";let x9=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=he(s9).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return zu.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return zu.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return zu.BLACK_ON_WHITE}return zu.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(JI,v9,y9),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===zu.BLACK_ON_WHITE?e.add(JI,v9):i===zu.WHITE_ON_BLACK&&e.add(JI,y9)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w9=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(x9))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[QI]})}return t})();const g_e=new J("cdk-dir-doc",{providedIn:"root",factory:function __e(){return he(xt)}}),b_e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let oo=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function v_e(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?b_e.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(g_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W_=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const y_e=["text"],x_e=[[["mat-icon"]],"*"],w_e=["mat-icon","*"];function k_e(t,n){if(1&t&&xe(0,"mat-pseudo-checkbox",1),2&t){const e=A();T("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function C_e(t,n){1&t&&xe(0,"mat-pseudo-checkbox",3),2&t&&T("disabled",A().disabled)}function T_e(t,n){if(1&t&&(_(0,"span",4),k(1),b()),2&t){const e=A();y(),Je("(",e.group.label,")")}}const E_e=["mat-internal-form-field",""],S_e=["*"];let D_e=(()=>{class t{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#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return t})(),I_e=(()=>{class t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return t})();const M_e=new J("mat-sanity-checks",{providedIn:"root",factory:function A_e(){return!0}});let Ft=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!jI()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(Y(x9),Y(M_e,8),Y(xt))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[W_,W_]})}return t})();class e2{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){const n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}}let T9=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var na=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(na||{});class L_e{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=na.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const E9=Ma({passive:!0,capture:!0});class V_e{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ls(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){const o=this._events.get(e);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,E9)})}removeHandler(n,e,i){const r=this._events.get(n);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,E9)))}}const S9={enterDuration:225,exitDuration:150},D9=Ma({passive:!0,capture:!0}),I9=["mousedown","touchstart"],A9=["mouseup","mouseleave","touchend","touchcancel"];class Q_{static#e=this._eventManager=new V_e;constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Bi(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...S9,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function U_e(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),a=n-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=c-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,g=new L_e(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=na.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const v=()=>this._finishRippleTransition(g),x=()=>this._destroyRipple(g);d.addEventListener("transitionend",v),d.addEventListener("transitioncancel",x),p={onTransitionEnd:v,onTransitionCancel:x}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(n.state===na.FADING_OUT||n.state===na.HIDDEN)return;const e=n.element,i={...S9,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=na.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Bi(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,I9.forEach(i=>{Q_._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{A9.forEach(e=>{this._triggerElement.addEventListener(e,this,D9)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===na.FADING_IN?this._startFadeOutTransition(n):n.state===na.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=na.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=na.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=_w(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===na.VISIBLE||n.config.terminateOnPointerUp&&n.state===na.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(I9.forEach(e=>Q_._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&A9.forEach(e=>n.removeEventListener(e,this,D9)))}}const xw=new J("mat-ripple-global-options");let rl=(()=>{class t{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,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Q_(this,i,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,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(Ln),w(xw,8),w(pi,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-ripple-unbounded",r.unbounded)},inputs:{color:[W.None,"matRippleColor","color"],unbounded:[W.None,"matRippleUnbounded","unbounded"],centered:[W.None,"matRippleCentered","centered"],radius:[W.None,"matRippleRadius","radius"],animation:[W.None,"matRippleAnimation","animation"],disabled:[W.None,"matRippleDisabled","disabled"],trigger:[W.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return t})(),Im=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})(),z_e=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(i){return new(i||t)(w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){2&i&<("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:[St],decls:0,vars:0,template:function(i,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})}return t})(),M9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft]})}return t})();const t2=new J("MAT_OPTION_PARENT_COMPONENT"),n2=new J("MatOptgroup");let H_e=0;class R9{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let fd=(()=>{class t{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,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+H_e++,this.onSelectionChange=new Ce,this._stateChanges=new Me}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,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}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)&&!To(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 R9(this,e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(t2,8),w(n2,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(1&i&&vt(y_e,7),2&i){let o;Re(o=Pe())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){1&i&&U("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(rc("id",r.id),_t("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),lt("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:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Kt,St],ngContentSelectors:w_e,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(i,r){1&i&&(Mn(x_e),q(0,k_e,1,2,"mat-pseudo-checkbox",1),ct(1),_(2,"span",2,0),ct(4,1),b(),q(5,C_e,1,1,"mat-pseudo-checkbox",3)(6,T_e,2,1,"span",4),xe(7,"div",5)),2&i&&(_n(0,r.multiple?0:-1),y(5),_n(5,r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),y(),_n(6,r.group&&r.group._inert?6:-1),y(),T("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[z_e,rl],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})}return t})();function P9(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,t-i+n):e}let ww=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Im,Ft,M9]})}return t})();const O9={capture:!0},N9=["focus","click","mouseenter","touchstart"],r2="mat-ripple-loader-uninitialized",o2="mat-ripple-loader-class-name",L9="mat-ripple-loader-centered",kw="mat-ripple-loader-disabled";let j_e=(()=>{class t{constructor(){this._document=he(xt,{optional:!0}),this._animationMode=he(pi,{optional:!0}),this._globalRippleOptions=he(xw,{optional:!0}),this._platform=he(Ln),this._ngZone=he(Be),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${r2}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of N9)this._document?.addEventListener(e,this._onInteraction,O9)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of N9)this._document?.removeEventListener(i,this._onInteraction,O9)}configureRipple(e,i){e.setAttribute(r2,""),(i.className||!e.hasAttribute(o2))&&e.setAttribute(o2,i.className||""),i.centered&&e.setAttribute(L9,""),i.disabled&&e.setAttribute(kw,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const r=this._hosts.get(e);r?r.disabled=i:i?e.setAttribute(kw,""):e.removeAttribute(kw)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(o2)),e.append(r);const o=new rl(new He(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(L9),o.disabled=e.hasAttribute(kw),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(r2),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),s2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-form-field--align-end","before"===r.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[St],attrs:E_e,ngContentSelectors:S_e,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})();const V9=["mat-button",""],B9=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],U9=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],z9=".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}",G_e=["mat-icon-button",""],W_e=["*"],q_e=new J("MAT_BUTTON_CONFIG"),Q_e=[{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"]}];let a2=(()=>{class t{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,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=he(ta),this._rippleLoader=he(j_e),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=he(q_e,{optional:!0}),a=e.nativeElement,c=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(const{attribute:l,mdcClasses:d}of Q_e)a.hasAttribute(l)&&c.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_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(i){Iy()};static#t=this.\u0275dir=ce({type:t,inputs:{color:"color",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],ariaDisabled:[W.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Ue],disabledInteractive:[W.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Ue]},features:[Kt]})}return t})(),K_e=(()=>{class t extends a2{constructor(e,i,r,o){super(e,i,r,o),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.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(i){Iy()};static#t=this.\u0275dir=ce({type:t,inputs:{tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:Xi(e)]},features:[Kt,tt]})}return t})(),Eo=(()=>{class t extends a2{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:V9,ngContentSelectors:U9,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(i,r){1&i&&(Mn(B9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),b(),ct(4,2),xe(5,"span",2)(6,"span",3)),2&i&<("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})}return t})(),X_e=(()=>{class t extends K_e{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:V9,ngContentSelectors:U9,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(i,r){1&i&&(Mn(B9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),b(),ct(4,2),xe(5,"span",2)(6,"span",3)),2&i&<("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)}',z9],encapsulation:2,changeDetection:0})}return t})(),ia=(()=>{class t extends a2{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(Be),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(_t("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),lt("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:[tt,St],attrs:G_e,ngContentSelectors:W_e,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(i,r){1&i&&(Mn(),xe(0,"span",0),ct(1),xe(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}',z9],encapsulation:2,changeDetection:0})}return t})(),H9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Im,Ft]})}return t})();var Ot=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Ot||{});const ol="*";function Yn(t,n){return{type:Ot.Trigger,name:t,definitions:n,options:{}}}function qt(t,n=null){return{type:Ot.Animate,styles:n,timings:t}}function c2(t,n=null){return{type:Ot.Group,steps:t,options:n}}function We(t){return{type:Ot.Style,styles:t,offset:null}}function bn(t,n,e){return{type:Ot.State,name:t,styles:n,options:e}}function Am(t){return{type:Ot.Keyframes,steps:t}}function Xt(t,n,e=null){return{type:Ot.Transition,expr:t,animation:n,options:e}}function Cw(t=null){return{type:Ot.AnimateChild,options:t}}function Tw(t,n,e=null){return{type:Ot.Query,selector:t,animation:n,options:e}}class K_{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class j9{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class d2{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Mm extends d2{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class sl extends d2{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class i0e extends d2{constructor(n){super(),this.element=n instanceof He?n.nativeElement:n}}class Ew{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Mm?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof sl?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof i0e?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class r0e extends Ew{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ii.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let o0e=(()=>{class t extends sl{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(di))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[tt]})}return t})(),al=(()=>{class t extends Ew{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ce,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},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 i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(w(wu),w(di),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[W.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[tt]})}return t})(),Rm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const s0e=["addListener","removeListener"],a0e=["addEventListener","removeEventListener"],c0e=["on","off"];function Ra(t,n,e,i){if(On(e)&&(i=e,e=void 0),i)return Ra(t,n,e).pipe(eI(i));const[r,o]=function u0e(t){return On(t.addEventListener)&&On(t.removeEventListener)}(t)?a0e.map(s=>a=>t[s](n,a,e)):function l0e(t){return On(t.addListener)&&On(t.removeListener)}(t)?s0e.map($9(t,n)):function d0e(t){return On(t.on)&&On(t.off)}(t)?c0e.map($9(t,n)):[];if(!r&&ZD(t))return $r(s=>Ra(s,n,e))(ko(t));if(!r)throw new TypeError("Invalid event target");return new jn(s=>{const a=(...c)=>s.next(1o(a)})}function $9(t,n){return e=>i=>t[e](n,i)}const X_={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=X_;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new Wt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=X_;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=X_;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},G9=new class f0e extends WI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class h0e extends GI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=X_.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(X_.cancelAnimationFrame(e),n._scheduled=void 0)}});let u2,m0e=1;const Sw={};function W9(t){return t in Sw&&(delete Sw[t],!0)}const p0e={setImmediate(t){const n=m0e++;return Sw[n]=!0,u2||(u2=Promise.resolve()),u2.then(()=>W9(n)&&t()),n},clearImmediate(t){W9(t)}},{setImmediate:g0e,clearImmediate:_0e}=p0e,Dw={setImmediate(...t){const{delegate:n}=Dw;return(n?.setImmediate||g0e)(...t)},clearImmediate(t){const{delegate:n}=Dw;return(n?.clearImmediate||_0e)(t)},delegate:void 0},h2=new class v0e extends WI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class b0e extends GI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Dw.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Dw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function Y_(t=0,n,e=jge){let i=-1;return null!=n&&(w6(n)?e=n:i=n),new jn(r=>{let o=function x0e(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function q9(t,n=$_){return function y0e(t){return Ni((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const l=r;r=null,e.next(l)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};n.subscribe(ki(e,l=>{i=!0,r=l,o||ko(t(l)).subscribe(o=ki(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>Y_(t,n))}let Z_=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Me,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 i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new jn(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(q9(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):st()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(un(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Bi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ra(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(Ln),Y(xt,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Iw=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Me,this._elementScrolled=new jn(s=>this.ngZone.runOutsideAngular(()=>Ra(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(s)))}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 i=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=i.scrollHeight-i.clientHeight-e.bottom),r&&z_()!=fc.NORMAL?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),z_()==fc.INVERTED?e.left=e.right:z_()==fc.NEGATED&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;e9()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&z_()==fc.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&z_()==fc.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Z_),w(Be),w(oo,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),cl=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(q9(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(i){return new(i||t)(Y(Ln),Y(Be),Y(xt,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ll=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})(),f2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[W_,ll,W_,ll]})}return t})();function Q9(t,n=!1){return Ni((e,i)=>{let r=0;e.subscribe(ki(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}function Ci(...t){const n=x_(t),e=function ffe(t,n){return"number"==typeof JD(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?ko(i[0]):am(e)(Yi(i,n)):hs}const K9=e9();class C0e{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ur(-this._previousScrollPosition.left),n.style.top=ur(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),K9&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K9&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class T0e{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(un(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class X9{enable(){}disable(){}attach(){}}function m2(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function Y9(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class E0e{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();m2(e,[{width:i,height:r,bottom:r,right:i,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}}let S0e=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new X9,this.close=s=>new T0e(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new C0e(this._viewportRuler,this._document),this.reposition=s=>new E0e(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Z_),Y(cl),Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Pm{constructor(n){if(this.scrollStrategy=new X9,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class D0e{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let Z9=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I0e=(()=>{class t extends Z9{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.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(i){return new(i||t)(Y(xt),Y(Be,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),A0e=(()=>{class t extends Z9{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ls(o)},this._clickListener=o=>{const s=Ls(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const d=c[l];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.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(i){return new(i||t)(Y(xt),Y(Ln),Y(Be,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Aw=(()=>{class t{constructor(e,i){this._platform=i,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||jI()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me,this._outsidePointerEvents=new Me,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Nn(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 e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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,n&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=ur(this._config.width),n.height=ur(this._config.height),n.minWidth=ur(this._config.minWidth),n.minHeight=ur(this._config.minHeight),n.maxWidth=ur(this._config.maxWidth),n.maxHeight=ur(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const r=G_(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Tt(Ci(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const J9="cdk-overlay-connected-position-bounding-box",M0e=/([A-Za-z%]+)$/;class R0e{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,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 Me,this._resizeSubscription=Wt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(J9),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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 n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,r,a),l=this._getOverlayPoint(c,e,a),d=this._getOverlayFit(l,e,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(d,l,i)?o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(J9),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=tz(e);let{x:s,y:a}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let h=0-a,f=a+o.height-i.height,m=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),p=m*g;return{visibleArea:p,isCompletelyWithinViewport:o.width*o.height===p,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=ez(this._overlayRef.getConfig().minHeight),a=ez(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=tz(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?l||-s:n.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),m=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ur(i.height),r.top=ur(i.top),r.bottom=ur(i.bottom),r.width=ur(i.width),r.left=ur(i.left),r.right=ur(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ur(o)),s&&(r.maxWidth=ur(s))}this._lastBoundingBoxSize=i,Hu(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Hu(i,this._getExactOverlayY(e,n,d)),Hu(i,this._getExactOverlayX(e,n,d))}else i.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ur(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ur(s.maxWidth):o&&(i.maxWidth="")),Hu(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ur(o.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ur(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y9(n,i),isOriginOutsideView:m2(n,i),isOverlayClipped:Y9(e,i),isOverlayOutsideView:m2(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&G_(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof He)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Hu(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function ez(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(M0e);return e&&"px"!==e?null:parseFloat(n)}return t||null}function tz(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const nz="cdk-global-overlay-wrapper";class F0e{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(nz),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",g="";c?g="flex-start":"center"===d?(g="center",h?m=u:f=u):h?"left"===d||"end"===d?(g="flex-end",f=u):("right"===d||"start"===d)&&(g="flex-start",m=u):"left"===d||"start"===d?(g="flex-start",f=u):("right"===d||"end"===d)&&(g="flex-end",m=u),n.position=this._cssPosition,n.marginLeft=c?"0":f,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(nz),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let O0e=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new F0e}flexibleConnectedTo(e){return new R0e(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cl),Y(xt),Y(Ln),Y(Aw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),N0e=0,Ui=(()=>{class t{constructor(e,i,r,o,s,a,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Pm(e);return s.direction=s.direction||this._directionality.value,new Mw(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+N0e++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Qc)),new r0e(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(S0e),Y(Aw),Y(wu),Y(O0e),Y(I0e),Y(Ii),Y(Be),Y(xt),Y(oo),Y(Fu),Y(A0e),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const L0e=[{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"}],iz=new J("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}});let p2=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),rz=(()=>{class t{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,i,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=Wt.EMPTY,this._attachSubscription=Wt.EMPTY,this._detachSubscription=Wt.EMPTY,this._positionSubscription=Wt.EMPTY,this._disposeOnNavigation=!1,this._ngZone=he(Be),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 Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new sl(i,r),this._scrollStrategyFactory=o,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=L0e);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(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!To(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Pm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=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._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).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._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof p2?this.origin.elementRef:this.origin}_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(Q9(()=>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(i){return new(i||t)(w(Ui),w(Gn),w(di),w(iz),w(oo,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[W.None,"cdkConnectedOverlayOrigin","origin"],positions:[W.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[W.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[W.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[W.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[W.None,"cdkConnectedOverlayWidth","width"],height:[W.None,"cdkConnectedOverlayHeight","height"],minWidth:[W.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[W.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[W.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[W.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[W.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[W.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[W.None,"cdkConnectedOverlayOpen","open"],disableClose:[W.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[W.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[W.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ue],lockPosition:[W.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",Ue],flexibleDimensions:[W.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ue],growAfterOpen:[W.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ue],push:[W.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",Ue],disposeOnNavigation:[W.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ue]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Kt,Un]})}return t})();const B0e={provide:iz,deps:[Ui],useFactory:function V0e(t){return()=>t.scrollStrategies.reposition()}};let ju=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Ui,B0e],imports:[W_,Rm,f2,f2]})}return t})();function U0e(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"button",2),U("click",function(){return z(e),H(A().action())}),k(2),b()()}if(2&t){const e=A();y(2),Je(" ",e.data.action," ")}}const z0e=["label"];function H0e(t,n){}const j0e=Math.pow(2,31)-1;class Rw{constructor(n,e){this._overlayRef=e,this._afterDismissed=new Me,this._afterOpened=new Me,this._onAction=new Me,this._dismissedByAction=!1,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,j0e))}_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 g2=new J("MatSnackBarData");class Pw{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let oz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}return t})(),sz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}return t})(),az=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}return t})(),cz=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(i){return new(i||t)(w(Rw),w(g2))};static#t=this.\u0275cmp=ze({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[St],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){1&i&&(_(0,"div",0),k(1),b(),q(2,U0e,3,1,"div",1)),2&i&&(y(),Je(" ",r.data.message,"\n"),y(),_n(2,r.hasAction?2:-1))},dependencies:[Eo,oz,sz,az],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const $0e={snackBarState:Yn("state",[bn("void, hidden",We({transform:"scale(0.8)",opacity:0})),bn("visible",We({transform:"scale(1)",opacity:1})),Xt("* => visible",qt("150ms cubic-bezier(0, 0, 0.2, 1)")),Xt("* => void, * => hidden",qt("75ms cubic-bezier(0.4, 0.0, 1, 1)",We({opacity:0})))])};let G0e=0,lz=(()=>{class t extends Ew{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=he(xt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Me,this._onExit=new Me,this._onEnter=new Me,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+G0e++,this.attachDomPortal=a=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),c},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.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,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(s=>e.classList.add(s)):e.classList.add(i)),this._exposeToModals();const r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const i=e.getAttribute("aria-owns");if(i){const r=i.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]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Be),w(He),w(gn),w(Ln),w(Pw))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&(vt(al,7),vt(z0e,7)),2&i){let o;Re(o=Pe())&&(r._portalOutlet=o.first),Re(o=Pe())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){1&i&&cx("@state.done",function(s){return r.onAnimationEnd(s)}),2&i&&ix("@state",r._animationState)},standalone:!0,features:[tt,St],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(_(0,"div",1)(1,"div",2,0)(3,"div",3),q(4,H0e,0,0,"ng-template",4),b(),xe(5,"div"),b()()),2&i&&(y(5),_t("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[al],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:[$0e.snackBarState]}})}return t})();const q0e=new J("mat-snack-bar-default-options",{providedIn:"root",factory:function W0e(){return new Pw}});let $u=(()=>{class t{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,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=cz,this.snackBarContainerComponent=lz,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=Ii.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Pw,useValue:i}]}),s=new Mm(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Pw,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Rw(s,o);if(e instanceof Gn){const c=new sl(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),l=new Mm(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Pm;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return Ii.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Rw,useValue:i},{provide:g2,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(b9),Y(Ii),Y(s9),Y(t,12),Y(q0e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Q0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[$u],imports:[ju,Rm,H9,Ft,cz,Ft]})}return t})(),Ti=(()=>{class t{constructor(e,i){this.sbRef=e,this.data=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Rw),w(g2))};static#t=this.\u0275cmp=ze({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(i,r){1&i&&(_(0,"span",0),k(1),b()),2&i&&(y(),Ke(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),so=(()=>{class t{constructor(e,i){this.http=e,this._snackBar=i,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.snowstormFhirBaseSubject=new wi(this.snowstormFhirBase),this.fhirUrlParamSubject=new wi(this.fhirUrlParam),this.langSubject=new wi(this.lang),this.snowstormFhirBase$=this.snowstormFhirBaseSubject.asObservable(),this.fhirUrlParam$=this.fhirUrlParamSubject.asObservable(),this.lang$=this.langSubject.asObservable(),this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e,this.snowstormFhirBaseSubject.next(e)}setFhirUrlParam(e){this.fhirUrlParam=e,this.fhirUrlParamSubject.next(e)}setLang(e){this.lang=e,this.langSubject.next(e)}getSnowstormFhirBase(){return this.snowstormFhirBase}getFhirUrlParam(){return this.fhirUrlParam}getLang(){return this.lang}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(Dr(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(Dr(this.handleError("getCodeSystem",{})))}getValueSetExpansionUrl(e,i,r,o){return r||(r=0),o||(o=20),"string"!=typeof i&&(i=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${i}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,i,r,o){let s=this.getValueSetExpansionUrl(e,i,r,o);return this.http.get(s).pipe(Dr(this.handleError("expandValueSet",{})))}translate(e,i,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${i}&system=${r}`).pipe(Dr(this.handleError("translate",{})))}expandValueSetFromServer(e,i,r,o,s,a){s||(s=0),a||(a=20),e||(e=this.snowstormFhirBase),i||(i=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${i}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${a}&offset=${s}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(Dr(this.handleError("expandValueSet",{})))}handleError(e="operation",i){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Ti,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),st(i))}lookupConcept(e,i){i||(i=this.fhirUrlParam);const r=`${i}:${e}`,o=this.conceptCache.get(r);if(o)return st(o);let s=`${this.snowstormFhirBase}/CodeSystem/$lookup?system=http://snomed.info/sct&code=${e}&property=normalForm`;"http://snomed.info/sct"!=i&&(s+=`&version=${i}`);const a={headers:new ms({"Accept-Language":"en"})};return this.http.get(s,a).pipe(Vi(c=>{this.conceptCache.set(r,c)}),Dr(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let i=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(i).pipe(Dr(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let i=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new ms({"Content-Type":"application/fhir+json"})};return this.http.patch(i,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(Dr(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let i=`https://browser.ihtsdotools.org/snowstorm/snomed-ct/MAIN/SNOMEDCT-ES/2022-10-31/concepts?offset=0&limit=100&termActive=true&ecl=${encodeURIComponent(e)}`;return this.http.get(i).pipe(Dr(this.handleError("expandValueSet",{})))}getIcd10MapTargets(e){return this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?code=${e}&system=http://snomed.info/sct&source=http://snomed.info/sct?fhir_vs&target=http://hl7.org/fhir/sid/icd-10&url=http://snomed.info/sct/900000000000207008/version/20200131?fhir_cm=447562003`).pipe(Dr(this.handleError("translate",{})))}lookupOtherCodeSystems(e,i){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${i}`).pipe(Dr(this.handleError("lookup",{})))}getNormalForm(e){if(e.parameter)for(let i of e.parameter){let r=!1;if("property"==i.name){for(let o of i.part)"code"==o.name&&"normalForm"==o.valueString&&(r=!0);if(r)for(let o of i.part)if("valueString"==o.name)return o.valueString}}return""}parseNormmalForm(e){const i=[];return e.split("} {").forEach(o=>{const s=o.match(/\d+\|[^\|]+\|\s*=\s*\d+\|[^\|]+\|/g);if(!s)return;const a=s.map(c=>{const[l,d]=c.split("=").map(g=>g.trim()),[u,h]=l.split("|").map(g=>g.trim()),[f,m]=d.split("|").map(g=>g.trim());return{type:{code:u,display:h.replace(/\(.*\)/,"").trim()},target:{code:f,display:m}}});i.push(a)}),{groups:i}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y($u))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dz(...t){const n=k6(t),{args:e,keys:i}=C6(t),r=new jn(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let d=0;d{u||(u=!0,l--),a[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?T6(i,a):a),o.complete())}))}});return n?r.pipe(eI(n)):r}function uz(t={}){const{connector:n=(()=>new Me),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,c,l=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,d=u=!1},m=()=>{const g=s;f(),g?.unsubscribe()};return Ni((g,p)=>{l++,!u&&!d&&h();const v=c=c??n();p.add(()=>{l--,0===l&&!u&&!d&&(a=_2(m,r))}),v.subscribe(p),!s&&l>0&&(s=new tf({next:x=>v.next(x),error:x=>{u=!0,h(),a=_2(f,e,x),v.error(x)},complete:()=>{d=!0,h(),a=_2(f,i),v.complete()}}),ko(g).subscribe(s))})(o)}}function _2(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new tf({next:()=>{i.unsubscribe(),t()}});return ko(n(...e)).subscribe(i)}const K0e=["*"];let Fw;function J_(t){return function X0e(){if(void 0===Fw&&(Fw=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Fw=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Fw}()?.createHTML(t)||t}function hz(t){return Error(`Unable to find icon with the name "${t}"`)}function fz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function mz(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Gu{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let Ow=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,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,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Gu(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(no.HTML,r);if(!s)throw mz(r);const a=J_(s);return this._addSvgIconConfig(e,i,new Gu("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Gu(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(no.HTML,i);if(!o)throw mz(i);const s=J_(o);return this._addSvgIconSetConfig(e,new Gu("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(no.RESOURCE_URL,e);if(!i)throw fz(e);const r=this._cachedIconsByUrl.get(i);return r?st(Nw(r)):this._loadSvgIconFromConfig(new Gu(e,null)).pipe(Vi(o=>this._cachedIconsByUrl.set(i,o)),mt(o=>Nw(o)))}getNamedSvgIcon(e,i=""){const r=pz(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):lm(hz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?st(Nw(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(mt(i=>Nw(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?st(r):dz(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Dr(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(no.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),st(null)})))).pipe(mt(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw hz(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Vi(i=>e.svgText=i),mt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?st(null):this._fetchIcon(e).pipe(Vi(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(J_(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(J_("")),r=e.attributes;for(let o=0;oJ_(l)),um(()=>this._inProgressUrlFetches.delete(s)),uz());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(pz(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}}),gz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ibe=gz.map(t=>`[${t}]`).join(", "),rbe=/^url\(['"]?#(.*?)['"]?\)$/;let So=(()=>{class t{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 i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,s,a){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Wt.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.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 i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(ibe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],c=a.getAttribute(s),l=c?c.match(rbe):null;if(l){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Nn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ow),As("aria-hidden"),w(tbe),w(Ms),w(ebe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(_t("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),Ys(r.color?"mat-"+r.color:""),lt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[W.HasDecoratorInputTransform,"inline","inline",Ue],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Kt,St],ngContentSelectors:K0e,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})(),obe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();function _z(t,n){return n?e=>w_(n.pipe(Nn(1),function sbe(){return Ni((t,n)=>{t.subscribe(ki(n,Dv))})}()),e.pipe(_z(t))):$r((e,i)=>ko(t(e,i)).pipe(Nn(1),Ux(e)))}function b2(t,n=$_){const e=Y_(t,n);return _z(()=>e)}const abe=["mat-menu-item",""],cbe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lbe=["mat-icon, [matMenuItemIcon]","*"];function dbe(t,n){1&t&&(jc(),_(0,"svg",2),xe(1,"polygon",3),b())}const ube=["*"];function hbe(t,n){if(1&t){const e=Se();_(0,"div",0),U("keydown",function(r){return z(e),H(A()._handleKeydown(r))})("click",function(){return z(e),H(A().closed.emit("click"))})("@transformMenu.start",function(r){return z(e),H(A()._onAnimationStart(r))})("@transformMenu.done",function(r){return z(e),H(A()._onAnimationDone(r))}),_(1,"div",1),ct(2),b()()}if(2&t){const e=A();T("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),_t("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const v2=new J("MAT_MENU_PANEL");let mc=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new Me,this._focused=new Me,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),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),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",qt("120ms cubic-bezier(0, 0, 0.2, 1)",We({opacity:1,transform:"scale(1)"}))),Xt("* => void",qt("100ms 25ms linear",We({opacity:0})))]),fadeInItems:Yn("fadeInItems",[bn("showing",We({opacity:1})),Xt("void => *",[We({opacity:0}),qt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let mbe=0;const pbe=new J("mat-menu-default-options",{providedIn:"root",factory:function gbe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Pa=(()=>{class t{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 i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new Gl,this._classList={},this._panelAnimationState="void",this._animationDone=new Me,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+mbe++,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 YI(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Gr(this._directDescendantItems),Zi(e=>Ci(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Gr(this._directDescendantItems),Zi(i=>Ci(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:To(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===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Nn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,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(Gr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(pbe),w(gn))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,fbe,5),ln(o,mc,5),ln(o,mc,4)),2&i){let s;Re(s=Pe())&&(r.lazyContent=s.first),Re(s=Pe())&&(r._allItems=s),Re(s=Pe())&&(r.items=s)}},viewQuery:function(i,r){if(1&i&&vt(Gn,5),2&i){let o;Re(o=Pe())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){2&i&&_t("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[W.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",Ue],hasBackdrop:[W.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>null==e?null:Ue(e)],panelClass:[W.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[it([{provide:v2,useExisting:t}]),Kt,St],ngContentSelectors:ube,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id","ngClass"],[1,"mat-mdc-menu-content"]],template:function(i,r){1&i&&(Mn(),q(0,hbe,3,6,"ng-template"))},dependencies:[Da],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{right:auto;padding-right:var(--mat-menu-item-spacing);padding-left:0}.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:[Lw.transformMenu,Lw.fadeInItems]},changeDetection:0})}return t})();const bz=new J("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),bbe={provide:bz,deps:[Ui],useFactory:function _be(t){return()=>t.scrollStrategies.reposition()}},vz=Ma({passive:!0});let Wu=(()=>{class t{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._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,s,a,c,l,d){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Wt.EMPTY,this._hoverSubscription=Wt.EMPTY,this._menuCloseSubscription=Wt.EMPTY,this._changeDetectorRef=he(gn),this._handleTouchStart=u=>{bw(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Pa?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,vz)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vz),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 i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Pa&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Pa?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(un(r=>"void"===r.toState),Nn(1),Tt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.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 i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_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 i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Pm({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,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",s="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[s,a],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r="before"===e.xPosition?"start":"end",o=d="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===s?"bottom":"top",l="top"===a?"bottom":"top");i.withPositions([{originX:r,originY:c,overlayX:d,overlayY:s,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:s,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:a,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Ci(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:st(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(un(s=>s!==this._menuItemInstance),un(()=>this._menuOpen)):st(),i)}_handleMousedown(e){_w(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"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(un(e=>e===this._menuItemInstance&&!e.disabled),b2(0,h2)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pa&&this.menu._isAnimating?this.menu._animationDone.pipe(Nn(1),b2(0,h2),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new sl(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ui),w(He),w(di),w(bz),w(v2,8),w(mc,10),w(oo,8),w(ta),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){1&i&&U("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&_t("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[W.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[W.None,"matMenuTriggerFor","menu"],menuData:[W.None,"matMenuTriggerData","menuData"],restoreFocus:[W.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}return t})(),vbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[bbe],imports:[ac,Im,Ft,ju,ll,Ft]})}return t})();const ybe=["determinateSpinner"];function xbe(t,n){if(1&t&&(jc(),_(0,"svg",11),xe(1,"circle",12),b()),2&t){const e=A();_t("viewBox",e._viewBox()),y(),Ki("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),_t("r",e._circleRadius())}}const wbe=new J("mat-progress-spinner-default-options",{providedIn:"root",factory:function kbe(){return{diameter:yz}}}),yz=100;let md=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,i,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=yz,this._noopAnimations="NoopAnimations"===i&&!!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(i){return new(i||t)(w(He),w(pi,8),w(wbe))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(1&i&&vt(ybe,5),2&i){let o;Re(o=Pe())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){2&i&&(_t("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),Ys("mat-"+r.color),Ki("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),lt("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===r.mode))},inputs:{color:"color",mode:"mode",value:[W.HasDecoratorInputTransform,"value","value",Xi],diameter:[W.HasDecoratorInputTransform,"diameter","diameter",Xi],strokeWidth:[W.HasDecoratorInputTransform,"strokeWidth","strokeWidth",Xi]},exportAs:["matProgressSpinner"],standalone:!0,features:[Kt,St],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(i,r){if(1&i&&(q(0,xbe,2,8,"ng-template",null,0,tm),_(2,"div",2,1),jc(),_(4,"svg",3),xe(5,"circle",4),b()(),Jv(),_(6,"div",5)(7,"div",6)(8,"div",7),Er(9,8),b(),_(10,"div",9),Er(11,8),b(),_(12,"div",10),Er(13,8),b()()()),2&i){const o=jt(1);y(4),_t("viewBox",r._viewBox()),y(),Ki("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),_t("r",r._circleRadius()),y(4),T("ngTemplateOutlet",o),y(2),T("ngTemplateOutlet",o),y(2),T("ngTemplateOutlet",o)}},dependencies:[Ox],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})}return t})(),Tbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[ac,Ft]})}return t})();const Ebe=["*"],Mbe=new J("MAT_CARD_CONFIG");let y2=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(w(Mbe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){2&i&<("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[St],ngContentSelectors:Ebe,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(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})}return t})(),Rbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,Ft]})}return t})();const Pbe=[[["caption"]],[["colgroup"],["col"]],"*"],Fbe=["caption","colgroup, col","*"];function Obe(t,n){1&t&&ct(0,2)}function Nbe(t,n){1&t&&(_(0,"thead",0),Er(1,1),b(),_(2,"tbody",0),Er(3,2)(4,3),b(),_(5,"tfoot",0),Er(6,4),b())}function Lbe(t,n){1&t&&Er(0,1)(1,2)(2,3)(3,4)}const pc=new J("CDK_TABLE");let Fm=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkCellDef",""]],standalone:!0})}return t})(),Om=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return t})(),Vw=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return t})(),dl=(()=>{class t{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(i){return new(i||t)(w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Fm,5),ln(o,Om,5),ln(o,Vw,5)),2&i){let s;Re(s=Pe())&&(r.cell=s.first),Re(s=Pe())&&(r.headerCell=s.first),Re(s=Pe())&&(r.footerCell=s.first)}},inputs:{name:[W.None,"cdkColumnDef","name"],sticky:[W.HasDecoratorInputTransform,"sticky","sticky",Ue],stickyEnd:[W.HasDecoratorInputTransform,"stickyEnd","stickyEnd",Ue]},standalone:!0,features:[it([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Kt]})}return t})();class x2{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let w2=(()=>{class t extends x2{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(dl),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[tt]})}return t})(),k2=(()=>{class t extends x2{constructor(e,i){super(e,i);const r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static#e=this.\u0275fac=function(i){return new(i||t)(w(dl),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[tt]})}return t})();class wz{constructor(){this.tasks=[],this.endTasks=[]}}const C2=new J("_COALESCED_STYLE_SCHEDULER");let kz=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Me}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new wz,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new wz;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Yi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Nn(1))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),T2=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof e0?e.headerCell.template:this instanceof t0?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td))};static#t=this.\u0275dir=ce({type:t,features:[Un]})}return t})(),e0=(()=>{class t extends T2{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[W.None,"cdkHeaderRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",Ue]},standalone:!0,features:[Kt,tt,Un]})}return t})(),t0=(()=>{class t extends T2{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[W.None,"cdkFooterRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",Ue]},standalone:!0,features:[Kt,tt,Un]})}return t})(),Bw=(()=>{class t extends T2{constructor(e,i,r){super(e,i),this._table=r}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(td),w(pc,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[W.None,"cdkRowDefColumns","columns"],when:[W.None,"cdkRowDefWhen","when"]},standalone:!0,features:[tt]})}return t})(),ul=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(w(di))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return t})(),E2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),D2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),Uw=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return t})();const Cz=["top","bottom","left","right"];class zbe{constructor(n,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const r of n)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(n,e,i,r=!0){n.length&&this._isBrowser&&(e.some(o=>o)||i.some(o=>o))?this._coalescedStyleScheduler.schedule(()=>{const o=n[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i),d=e.lastIndexOf(!0),u=i.indexOf(!0),h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of n)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:a.slice(u).map((g,p)=>i[p+u]?g:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(n,e,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const r="bottom"===i?n.slice().reverse():n,o="bottom"===i?e.slice().reverse():e,s=[],a=[],c=[];for(let d=0,u=0;d{const i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(n,e){for(const r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);Cz.some(r=>-1===e.indexOf(r)&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of Cz)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}}const I2=new J("CDK_SPL");let A2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._rowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}return t})(),M2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._headerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}return t})(),R2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._footerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}return t})(),P2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=he(pc);r._noDataRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return t})(),zw=(()=>{class t{_getCellRole(){if(void 0===this._cellRoleInternal){const e=this._elementRef.nativeElement.getAttribute("role"),i="grid"===e||"treegrid"===e?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===i?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,r,o,s,a,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new Me,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ce,this.viewChange=new wi({start:0,end:Number.MAX_VALUE}),o||r.nativeElement.setAttribute("role","table"),this._document=a,this._isServer=!c.isBrowser,this._isNativeHtmlTable="TABLE"===r.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),MI(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{r.operation===el.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&Be.isInAngularZone()?this._ngZone.onStable.pipe(Nn(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const r=Tz(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}const i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const r=Tz(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}const i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const c=a.shift();return c.dataIndex=i,c}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Hw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Hw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Hw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Hw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],MI(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;MI(this.dataSource)?e=this.dataSource.connect(this):qD(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=st(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))ul.mostRecentCellOutlet&&ul.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new zbe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:st()).pipe(Tt(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(w(td),w(gn),w(He),As("role"),w(oo,8),w(xt),w(Ln),w(N_),w(C2),w(cl),w(I2,12),w(Be,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Uw,5),ln(o,dl,5),ln(o,Bw,5),ln(o,e0,5),ln(o,t0,5)),2&i){let s;Re(s=Pe())&&(r._noDataRow=s.first),Re(s=Pe())&&(r._contentColumnDefs=s),Re(s=Pe())&&(r._contentRowDefs=s),Re(s=Pe())&&(r._contentHeaderRowDefs=s),Re(s=Pe())&&(r._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){2&i&<("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[W.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",Ue],fixedLayout:[W.HasDecoratorInputTransform,"fixedLayout","fixedLayout",Ue]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[it([{provide:pc,useExisting:t},{provide:N_,useClass:DU},{provide:C2,useClass:kz},{provide:I2,useValue:null}]),Kt,St],ngContentSelectors:Fbe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Mn(Pbe),ct(0),ct(1,1),q(2,Obe,1,0)(3,Nbe,7,0)(4,Lbe,4,0)),2&i&&(y(2),_n(2,r._isServer?2:-1),y(),_n(3,r._isNativeHtmlTable?3:4))},dependencies:[M2,A2,P2,R2],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function Hw(t,n){return t.concat(Array.from(n))}function Tz(t,n){const e=n.toUpperCase();let i=t.viewContainer.element.nativeElement;for(;i;){const r=1===i.nodeType?i.nodeName:null;if(r===e)return i;if("TABLE"===r)break;i=i.parentNode}return null}let jbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[f2]})}return t})();const $be=[[["caption"]],[["colgroup"],["col"]],"*"],Gbe=["caption","colgroup, col","*"];function Wbe(t,n){1&t&&ct(0,2)}function qbe(t,n){1&t&&(_(0,"thead",0),Er(1,1),b(),_(2,"tbody",2),Er(3,3)(4,4),b(),_(5,"tfoot",0),Er(6,5),b())}function Qbe(t,n){1&t&&Er(0,1)(1,3)(2,4)(3,5)}let pd=(()=>{class t extends zw{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[it([{provide:zw,useExisting:t},{provide:pc,useExisting:t},{provide:C2,useClass:kz},{provide:N_,useClass:DU},{provide:I2,useValue:null}]),tt,St],ngContentSelectors:Gbe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Mn($be),ct(0),ct(1,1),q(2,Wbe,1,0)(3,qbe,7,0)(4,Qbe,4,0)),2&i&&(y(2),_n(2,r._isServer?2:-1),y(),_n(3,r._isNativeHtmlTable?3:4))},dependencies:[M2,A2,P2,R2],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),hl=(()=>{class t extends Fm{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matCellDef",""]],standalone:!0,features:[it([{provide:Fm,useExisting:t}]),tt]})}return t})(),fl=(()=>{class t extends Om{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[it([{provide:Om,useExisting:t}]),tt]})}return t})(),ml=(()=>{class t extends dl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[W.None,"matColumnDef","name"]},standalone:!0,features:[it([{provide:dl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),tt]})}return t})(),pl=(()=>{class t extends w2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[tt]})}return t})(),gl=(()=>{class t extends k2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[tt]})}return t})(),gd=(()=>{class t extends e0{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[W.None,"matHeaderRowDef","columns"],sticky:[W.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",Ue]},standalone:!0,features:[it([{provide:e0,useExisting:t}]),Kt,tt]})}return t})(),_d=(()=>{class t extends Bw{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[W.None,"matRowDefColumns","columns"],when:[W.None,"matRowDefWhen","when"]},standalone:!0,features:[it([{provide:Bw,useExisting:t}]),tt]})}return t})(),bd=(()=>{class t extends E2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[it([{provide:E2,useExisting:t}]),tt,St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),vd=(()=>{class t extends D2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[it([{provide:D2,useExisting:t}]),tt,St],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Er(0,0)},dependencies:[ul],encapsulation:2})}return t})(),nve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,jbe,Ft]})}return t})();class qu extends tw{get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new wi([]),this._filter=new wi(""),this._internalPageChanges=new Me,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(n9(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((s,a)=>{let c=this.sortingDataAccessor(s,r),l=this.sortingDataAccessor(a,r);const d=typeof c,u=typeof l;d!==u&&("number"===d&&(c+=""),"number"===u&&(l+=""));let h=0;return null!=c&&null!=l?c>l?h=1:c{const r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new wi(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?Ci(this._sort.sortChange,this._sort.initialized):st(null),e=this._paginator?Ci(this._paginator.page,this._internalPageChanges,this._paginator.initialized):st(null),r=Jc([this._data,this._filter]).pipe(mt(([a])=>this._filterData(a))),o=Jc([r,n]).pipe(mt(([a])=>this._orderData(a))),s=Jc([o,e]).pipe(mt(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}let Sz=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qc),w(He))};static#t=this.\u0275dir=ce({type:t})}return t})(),Qu=(()=>{class t extends Sz{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,features:[tt]})}return t})();const Ar=new J(""),ove={provide:Ar,useExisting:an(()=>ra),multi:!0},ave=new J("");let ra=(()=>{class t extends Sz{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function sve(){const t=nd()?nd().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(qc),w(He),w(ave,8))};static#t=this.\u0275dir=ce({type:t,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(i,r){1&i&&U("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[it([ove]),tt]})}return t})();function yd(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Iz(t){return null!=t&&"number"==typeof t.length}const hr=new J(""),xd=new J(""),cve=/^(?=.{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 Nm{static min(n){return function Az(t){return n=>{if(yd(n.value)||yd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(yd(n.value)||yd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return Rz(n)}static requiredTrue(n){return function Pz(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Fz(t){return yd(t.value)||cve.test(t.value)?null:{email:!0}}(n)}static minLength(n){return Oz(n)}static maxLength(n){return function Nz(t){return n=>Iz(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return Lz(n)}static nullValidator(n){return null}static compose(n){return jz(n)}static composeAsync(n){return $z(n)}}function Rz(t){return yd(t.value)?{required:!0}:null}function Oz(t){return n=>yd(n.value)||!Iz(n.value)?null:n.value.length{if(yd(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function jw(t){return null}function Vz(t){return null!=t}function Bz(t){return f_(t)?Yi(t):t}function Uz(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function zz(t,n){return n.map(e=>e(t))}function Hz(t){return t.map(n=>function lve(t){return!t.validate}(n)?n:e=>n.validate(e))}function jz(t){if(!t)return null;const n=t.filter(Vz);return 0==n.length?null:function(e){return Uz(zz(e,n))}}function F2(t){return null!=t?jz(Hz(t)):null}function $z(t){if(!t)return null;const n=t.filter(Vz);return 0==n.length?null:function(e){return dz(zz(e,n).map(Bz)).pipe(mt(Uz))}}function O2(t){return null!=t?$z(Hz(t)):null}function Gz(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Wz(t){return t._rawValidators}function qz(t){return t._rawAsyncValidators}function N2(t){return t?Array.isArray(t)?t:[t]:[]}function $w(t,n){return Array.isArray(t)?t.includes(n):t===n}function Qz(t,n){const e=N2(n);return N2(t).forEach(r=>{$w(e,r)||e.push(r)}),e}function Kz(t,n){return N2(n).filter(e=>!$w(t,e))}class Xz{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(n){this._rawValidators=n||[],this._composedValidatorFn=F2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=O2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Xo extends Xz{get formDirective(){return null}get path(){return null}}class gc extends Xz{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yz{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ps=(()=>{class t extends Yz{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(gc,2))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})(),n0=(()=>{class t extends Yz{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Xo,10))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})();const r0="VALID",Ww="INVALID",Lm="PENDING",o0="DISABLED";function B2(t){return(qw(t)?t.validators:t)||null}function U2(t,n){return(qw(n)?n.asyncValidators:t)||null}function qw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Jz(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new le(1e3,"");if(!i[e])throw new le(1001,"")}function eH(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new le(1002,"")})}class Qw{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===r0}get invalid(){return this.status===Ww}get pending(){return this.status==Lm}get disabled(){return this.status===o0}get enabled(){return this.status!==o0}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Qz(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Qz(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Kz(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Kz(n,this._rawAsyncValidators))}hasValidator(n){return $w(this._rawValidators,n)}hasAsyncValidator(n){return $w(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Lm,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=o0,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=r0,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===r0||this.status===Lm)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?o0:r0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Lm,this._hasOwnPendingAsyncValidator=!0;const e=Bz(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?o0:this.errors?Ww:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Lm)?Lm:this._anyControlsHaveStatus(Ww)?Ww:r0}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){qw(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function fve(t){return Array.isArray(t)?F2(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function mve(t){return Array.isArray(t)?O2(t):t||null}(this._rawAsyncValidators)}}class Vm extends Qw{constructor(n,e,i){super(B2(e),U2(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){eH(this,0,n),Object.keys(n).forEach(i=>{Jz(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class tH extends Vm{}const Ku=new J("CallSetDisabledState",{providedIn:"root",factory:()=>s0}),s0="always";function Kw(t,n){return[...n.path,t]}function a0(t,n,e=s0){z2(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function gve(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&nH(t,n)})}(t,n),function bve(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function _ve(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&nH(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function pve(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Xw(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Zw(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Yw(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function z2(t,n){const e=Wz(t);null!==n.validator?t.setValidators(Gz(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=qz(t);null!==n.asyncValidator?t.setAsyncValidators(Gz(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Yw(n._rawValidators,r),Yw(n._rawAsyncValidators,r)}function Zw(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=Wz(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=qz(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Yw(n._rawValidators,i),Yw(n._rawAsyncValidators,i),e}function nH(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function iH(t,n){z2(t,n)}function j2(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function rH(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $2(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===ra?e=o:function xve(t){return Object.getPrototypeOf(t.constructor)===Qu}(o)?i=o:r=o}),r||i||e||null}const kve={provide:Xo,useExisting:an(()=>Xu)},c0=Promise.resolve();let Xu=(()=>{class t extends Xo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new Vm({},F2(e),O2(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){c0.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),a0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){c0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){c0.then(()=>{const i=this._findContainer(e.path),r=new Vm({});iH(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){c0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){c0.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,rH(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(i){return new(i||t)(w(hr,10),w(xd,10),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[W.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([kve]),tt]})}return t})();function oH(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function sH(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gs=class extends Qw{constructor(n=null,e,i){super(B2(e),U2(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qw(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sH(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){oH(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){oH(this._onDisabledChange,n)}_forEachChild(n){}_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(n){sH(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Cve=gs,Sve={provide:gc,useExisting:an(()=>Vs)},lH=Promise.resolve();let Vs=(()=>{class t extends gc{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new gs,this._registered=!1,this.name="",this.update=new Ce,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=$2(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),j2(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(){a0(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){lH.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ue(i);lH.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Kw(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(w(Xo,9),w(hr,10),w(xd,10),w(Ar,10),w(gn,8),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"],options:[W.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[it([Sve]),tt,Un]})}return t})(),l0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const Dve={provide:Ar,useExisting:an(()=>Jw),multi:!0};let Jw=(()=>{class t extends Qu{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&U("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[it([Dve]),tt]})}return t})();const G2=new J(""),Rve={provide:gc,useExisting:an(()=>e1)};let e1=(()=>{class t extends gc{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$2(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Xw(i,this,!1),a0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}j2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Xw(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(i){return new(i||t)(w(hr,10),w(xd,10),w(Ar,10),w(G2,8),w(Ku,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","formControl",""]],inputs:{form:[W.None,"formControl","form"],isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[it([Rve]),tt,Un]})}return t})();const Pve={provide:Xo,useExisting:an(()=>wd)};let wd=(()=>{class t extends Xo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Zw(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 i=this.form.get(e.path);return a0(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Xw(e.control||null,e,!1),function wve(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,rH(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 i=e.control,r=this.form.get(e.path);i!==r&&(Xw(i||null,e),(t=>t instanceof gs)(r)&&(a0(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);iH(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function vve(t,n){return Zw(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){z2(this.form,this),this._oldForm&&Zw(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(w(hr,10),w(xd,10),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&U("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[W.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([Pve]),tt,Un]})}return t})();const Nve={provide:gc,useExisting:an(()=>d0)};let d0=(()=>{class t extends gc{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=$2(0,o)}ngOnChanges(e){this._added||this._setUpControl(),j2(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 Kw(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(i){return new(i||t)(w(Xo,13),w(hr,10),w(xd,10),w(Ar,10),w(G2,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","formControlName",""]],inputs:{name:[W.None,"formControlName","name"],isDisabled:[W.None,"disabled","isDisabled"],model:[W.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[it([Nve]),tt,Un]})}return t})();let Yu=(()=>{class t{constructor(){this._validator=jw}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):jw,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(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,features:[Un]})}return t})();const Gve={provide:hr,useExisting:an(()=>t1),multi:!0};let t1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ue,this.createValidator=e=>Rz}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){2&i&&_t("required",r._enabled?"":null)},inputs:{required:"required"},features:[it([Gve]),tt]})}return t})();const Qve={provide:hr,useExisting:an(()=>X2),multi:!0};let X2=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function pH(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>Oz(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&_t("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[it([Qve]),tt]})}return t})();const Xve={provide:hr,useExisting:an(()=>r1),multi:!0};let r1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Lz(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&_t("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[it([Xve]),tt]})}return t})(),xH=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();class wH extends Qw{constructor(n,e,i){super(B2(e),U2(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){eH(this,0,n),n.forEach((i,r)=>{Jz(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function kH(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let CH=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return kH(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Vm(r,o)}record(e,i=null){const r=this._reduceControls(e);return new tH(r,i)}control(e,i,r){let o={};return this.useNonNullable?(kH(i)?o=i:(o.validators=i,o.asyncValidators=r),new gs(e,{...o,nonNullable:!0})):new gs(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new wH(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof gs||e instanceof Qw?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Y2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ku,useValue:e.callSetDisabledState??s0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[xH]})}return t})(),Yve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:G2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ku,useValue:e.callSetDisabledState??s0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[xH]})}return t})();class Jve{constructor(n){this._box=n,this._destroyed=new Me,this._resizeSubject=new Me,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new jn(e=>{const i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(un(e=>e.some(i=>i.target===n)),function Zve(t,n,e){let i,r=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t):i=t??1/0,uz({connector:()=>new nw(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Tt(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let eye=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=he(Be)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,i){const r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Jve(r)),this._observers.get(r).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tye=["notch"],nye=["matFormFieldNotchedOutline",""],iye=["*"],rye=["textField"],oye=["iconPrefixContainer"],sye=["textPrefixContainer"],aye=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],cye=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function lye(t,n){1&t&&xe(0,"span",17)}function dye(t,n){if(1&t&&(_(0,"label",16),ct(1,1),q(2,lye,1,0,"span",17),b()),2&t){const e=A(2);T("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),_t("for",e._control.id),y(2),_n(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function uye(t,n){1&t&&q(0,dye,3,5,"label",16),2&t&&_n(0,A()._hasFloatingLabel()?0:-1)}function hye(t,n){1&t&&xe(0,"div",5)}function fye(t,n){}function mye(t,n){1&t&&q(0,fye,0,0,"ng-template",11),2&t&&(A(2),T("ngTemplateOutlet",jt(1)))}function pye(t,n){if(1&t&&(_(0,"div",7),q(1,mye,1,1,null,11),b()),2&t){const e=A();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),y(),_n(1,e._forceDisplayInfixLabel()?-1:1)}}function gye(t,n){1&t&&(_(0,"div",8,2),ct(2,2),b())}function _ye(t,n){1&t&&(_(0,"div",9,3),ct(2,3),b())}function bye(t,n){}function vye(t,n){1&t&&q(0,bye,0,0,"ng-template",11),2&t&&(A(),T("ngTemplateOutlet",jt(1)))}function yye(t,n){1&t&&(_(0,"div",12),ct(1,4),b())}function xye(t,n){1&t&&(_(0,"div",13),ct(1,5),b())}function wye(t,n){1&t&&xe(0,"div",14)}function kye(t,n){1&t&&(_(0,"div",18),ct(1,6),b()),2&t&&T("@transitionMessages",A()._subscriptAnimationState)}function Cye(t,n){if(1&t&&(_(0,"mat-hint",20),k(1),b()),2&t){const e=A(2);T("id",e._hintLabelId),y(),Ke(e.hintLabel)}}function Tye(t,n){if(1&t&&(_(0,"div",19),q(1,Cye,2,2,"mat-hint",20),ct(2,7),xe(3,"div",21),ct(4,8),b()),2&t){const e=A();T("@transitionMessages",e._subscriptAnimationState),y(),_n(1,e.hintLabel?1:-1)}}let Bs=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-label"]],standalone:!0})}return t})(),Eye=0;const TH=new J("MatError");let EH=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+Eye++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(As("aria-live"),w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){2&i&&rc("id",r.id)},inputs:{id:"id"},standalone:!0,features:[it([{provide:TH,useExisting:t}])]})}return t})(),Sye=0,Zu=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Sye++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("align",null),lt("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"},standalone:!0})}return t})();const Dye=new J("MatPrefix"),SH=new J("MatSuffix");let DH=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[W.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[it([{provide:SH,useExisting:t}])]})}return t})();const IH=new J("FloatingLabelParent");let AH=(()=>{class t{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=he(eye),this._ngZone=he(Be),this._parent=he(IH),this._resizeSubscription=new Wt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Iye(t){if(null!==t.offsetParent)return t.scrollWidth;const e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(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(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}return t})();const MH="mdc-line-ripple--active",o1="mdc-line-ripple--deactivating";let RH=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(o1);"opacity"===r.propertyName&&s&&o.remove(MH,o1)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(o1),e.add(MH)}deactivate(){this._elementRef.nativeElement.classList.add(o1)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be))};static#t=this.\u0275dir=ce({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return t})(),PH=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,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._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be))};static#t=this.\u0275cmp=ze({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&vt(tye,5),2&i){let o;Re(o=Pe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){2&i&<("mdc-notched-outline--notched",r.open)},inputs:{open:[W.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[St],attrs:nye,ngContentSelectors:iye,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(i,r){1&i&&(Mn(),xe(0,"div",1),_(1,"div",2,0),ct(3),b(),xe(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const Aye={transitionMessages:Yn("transitionMessages",[bn("enter",We({opacity:1,transform:"translateY(0%)"})),Xt("void => enter",[We({opacity:0,transform:"translateY(-5px)"}),qt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let s1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t})}return t})();const a1=new J("MatFormField"),Mye=new J("MAT_FORM_FIELD_DEFAULT_OPTIONS");let FH=0,Fa=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ir(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 i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(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,i,r,o,s,a,c,l){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=c,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-"+FH++,this._hintLabelId="mat-mdc-hint-"+FH++,this._subscriptAnimationState="",this._destroyed=new Me,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.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(Tt(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(),Ci(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(){}_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(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(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 i=this._control?this._control.ngControl:null;return i&&i[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(){}_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 i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.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 i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,s=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+s}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(Be),w(oo),w(Ln),w(Mye,8),w(pi,8),w(xt))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Bs,5),ln(o,Bs,7),ln(o,s1,5),ln(o,Dye,5),ln(o,SH,5),ln(o,TH,5),ln(o,Zu,5)),2&i){let s;Re(s=Pe())&&(r._labelChildNonStatic=s.first),Re(s=Pe())&&(r._labelChildStatic=s.first),Re(s=Pe())&&(r._formFieldControl=s.first),Re(s=Pe())&&(r._prefixChildren=s),Re(s=Pe())&&(r._suffixChildren=s),Re(s=Pe())&&(r._errorChildren=s),Re(s=Pe())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(1&i&&(vt(rye,5),vt(oye,5),vt(sye,5),vt(AH,5),vt(PH,5),vt(RH,5)),2&i){let o;Re(o=Pe())&&(r._textField=o.first),Re(o=Pe())&&(r._iconPrefixContainer=o.first),Re(o=Pe())&&(r._textPrefixContainer=o.first),Re(o=Pe())&&(r._floatingLabel=o.first),Re(o=Pe())&&(r._notchedOutline=o.first),Re(o=Pe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){2&i&<("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:[it([{provide:a1,useExisting:t},{provide:IH,useExisting:t}]),St],ngContentSelectors:cye,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(i,r){if(1&i){const o=Se();Mn(aye),q(0,uye,1,1,"ng-template",null,0,tm),_(2,"div",4,1),U("click",function(a){return z(o),H(r._control.onContainerClick(a))}),q(4,hye,1,0,"div",5),_(5,"div",6),q(6,pye,2,2,"div",7)(7,gye,3,0,"div",8)(8,_ye,3,0,"div",9),_(9,"div",10),q(10,vye,1,1,null,11),ct(11),b(),q(12,yye,2,0,"div",12)(13,xye,2,0,"div",13),b(),q(14,wye,1,0,"div",14),b(),_(15,"div",15),q(16,kye,2,1)(17,Tye,5,2),b()}if(2&i){let o;y(2),lt("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),y(2),_n(4,r._hasOutline()||r._control.disabled?-1:4),y(2),_n(6,r._hasOutline()?6:-1),y(),_n(7,r._hasIconPrefix?7:-1),y(),_n(8,r._hasTextPrefix?8:-1),y(2),_n(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),y(2),_n(12,r._hasTextSuffix?12:-1),y(),_n(13,r._hasIconSuffix?13:-1),y(),_n(14,r._hasOutline()?-1:14),y(),lt("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),y(),_n(16,"error"===(o=r._getDisplayedMessages())?16:"hint"===o?17:-1)}},dependencies:[AH,PH,Ox,RH,Zu],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:[Aye.transitionMessages]},changeDetection:0})}return t})(),c1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,QI,Ft]})}return t})();const Fye=["panel"],Oye=["*"];function Nye(t,n){if(1&t){const e=Se();_(0,"div",1,0),U("@panelAnimation.done",function(r){return z(e),H(A()._animationDone.next(r))}),ct(2),b()}if(2&t){const e=n.id,i=A();T("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),_t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Lye=Yn("panelAnimation",[bn("void, hidden",We({opacity:0,transform:"scaleY(0.8)"})),Xt(":enter, hidden => visible",[c2([qt("0.03s linear",We({opacity:1})),qt("0.12s cubic-bezier(0, 0, 0.2, 1)",We({transform:"scaleY(1)"}))])]),Xt(":leave, visible => hidden",[qt("0.075s linear",We({opacity:0}))])]);let Vye=0;class Bye{constructor(n,e){this.source=n,this.option=e}}const LH=new J("mat-autocomplete-default-options",{providedIn:"root",factory:function Uye(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let zye=(()=>{class t{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}set classList(e){this._classList=e&&e.length?function Gge(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,i,r,o){this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=Wt.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Ce,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+Vye++,this.inertGroups=o?.SAFARI||!1,this.autoActiveFirstOption=!!r.autoActiveFirstOption,this.autoSelectActiveOption=!!r.autoSelectActiveOption,this.requireSelection=!!r.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new f9(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new Bye(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}_skipPredicate(){return!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(He),w(LH),w(Ln))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,fd,5),ln(o,n2,5)),2&i){let s;Re(s=Pe())&&(r.options=s),Re(s=Pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(1&i&&(vt(Gn,7),vt(Fye,5)),2&i){let o;Re(o=Pe())&&(r.template=o.first),Re(o=Pe())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[W.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",Ue],autoSelectActiveOption:[W.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",Ue],requireSelection:[W.HasDecoratorInputTransform,"requireSelection","requireSelection",Ue],panelWidth:"panelWidth",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],classList:[W.None,"class","classList"],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ue]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[it([{provide:t2,useExisting:t}]),Kt,St],ngContentSelectors:Oye,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"]],template:function(i,r){1&i&&(Mn(),q(0,Nye,3,5,"ng-template"))},dependencies:[Da],styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Lye]},changeDetection:0})}return t})();const Hye={provide:Ar,useExisting:an(()=>BH),multi:!0},VH=new J("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),$ye={provide:VH,deps:[Ui],useFactory:function jye(t){return()=>t.scrollStrategies.reposition()}};let BH=(()=>{class t{constructor(e,i,r,o,s,a,c,l,d,u,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=c,this._formField=l,this._document=d,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Wt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Me,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=cm(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Gr(f),Zi(()=>Ci(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(Nn(1),Zi(()=>this.optionSelections))}),this._handlePanelKeydown=f=>{(27===f.keyCode&&!To(f)||38===f.keyCode&&To(f,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),f.stopPropagation(),f.preventDefault())},this._trackedModal=null,this._scrollStrategy=a}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&Sm(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ci(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(un(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(un(()=>this._overlayAttached)):st()).pipe(mt(e=>e instanceof R9?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ci(Ra(this._document,"click"),Ra(this._document,"auxclick"),Ra(this._document,"touchend")).pipe(un(e=>{const i=Ls(e),r=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=To(e);if(27===i&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,s=38===i||40===i;9===i||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if("number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),r){if(this.panelOpen&&!this.autocomplete.requireSelection){const o=this.autocomplete.options?.find(s=>s.selected);o&&r!==this._getDisplayValue(o.value)&&o.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===e.target){const o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Ci(this._zone.onStable.pipe(Nn(1)),this.autocomplete.options.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),b2(0))).pipe(Zi(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),Nn(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){const i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){const i=this._getDisplayValue(e);null==e&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(Nn(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){this._attachOverlay(e),this._floatLabel(),this._trackedModal&&fw(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(e){let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new sl(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Pm({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let s;s="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=this.autocomplete.id;this._trackedModal&&Sm(this._trackedModal,"aria-owns",i),fw(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Sm(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ui),w(di),w(Be),w(gn),w(VH),w(oo,8),w(a1,9),w(xt,8),w(cl),w(LH,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){1&i&&U("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(s){return r._handleInput(s)})("keydown",function(s){return r._handleKeydown(s)})("click",function(){return r._handleClick()}),2&i&&_t("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||null==r.autocomplete?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[W.None,"matAutocomplete","autocomplete"],position:[W.None,"matAutocompletePosition","position"],connectedTo:[W.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[W.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[W.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",Ue]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[it([Hye]),Kt,Un]})}return t})(),Gye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[$ye],imports:[ju,ww,Ft,ac,ll,ww,Ft]})}return t})();const UH=Ma({passive:!0});let Wye=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return hs;const i=Bi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Me,s="cdk-text-field-autofilled",a=c=>{"cdk-text-field-autofill-start"!==c.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===c.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,UH),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,UH)}}),o}stopMonitoring(e){const i=Bi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ln),Y(Be))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const Qye=new J("MAT_INPUT_VALUE_ACCESSOR"),Kye=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Xye=0,kd=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ir(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(Nm.required)??!1}set required(e){this._required=Ir(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&JU().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=Ir(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,c,l,d,u){this._elementRef=e,this._platform=i,this.ngControl=r,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+Xye++,this.focused=!1,this.stateChanges=new Me,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(m=>JU().has(m)),this._iOSKeyupListener=m=>{const g=m.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=c||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new e2(a,r,s,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.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 i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Kye.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,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.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(i){return new(i||t)(w(He),w(Ln),w(gc,10),w(Xu,8),w(wd,8),w(T9),w(Qye,10),w(Wye),w(Be),w(a1,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){1&i&&U("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&i&&(rc("id",r.id)("disabled",r.disabled)("required",r.required),_t("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),lt("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:[W.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[it([{provide:s1,useExisting:t}]),Un]})}return t})(),Yye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,c1,c1,qye,Ft]})}return t})();function Zye(t,n){if(1&t&&(_(0,"mat-label"),k(1),b()),2&t){const e=A();y(),Ke(e.binding.title)}}function Jye(t,n){if(1&t){const e=Se();_(0,"button",7),U("click",function(){return z(e),H(A().clearInput())}),_(1,"mat-icon"),k(2,"close"),b()()}}function exe(t,n){1&t&&(_(0,"mat-option",8),xe(1,"mat-spinner",9),b())}function txe(t,n){if(1&t&&(_(0,"mat-option",10)(1,"span",11),k(2),b(),k(3),b()),2&t){const e=n.$implicit;T("value",e),y(2),Ke(e.code),y(),Je("",e.display," ")}}let u0=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Ce,this.formControl=new Cve,this.loading=!1,this.selectedConcept={},this.stateChanges=new Me,this.focused=!1,this.ngControl=null,this.errorState=!1,this.controlType="app-autocomplete-binding",this.id="app-autocomplete-binding-"+t.nextId++,this.describedBy="",this.onChange=()=>{},this.onTouched=()=>{}}get empty(){return!this.formControl.value}setDescribedByIds(e){this.describedBy=e.join(" ")}onContainerClick(e){}writeValue(e){this.formControl.setValue(e&&"object"==typeof e&&e.display?e.display:e,{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnChanges(e){e.term&&(this.term=e.term.currentValue,this.formControl.setValue(this.term&&"object"==typeof this.term&&this.term.display?this.term.display:this.term))}ngOnInit(){this.autoFilter=this.formControl.valueChanges.pipe(nl(300),il(),Zi(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):st([])),Vi(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},this.selectionChange.emit(this.selectedConcept)}change(e){const i=e?.option?.value;i&&(this.optionSelected({code:i.code,display:i.display}),this.formControl.setValue(i.display))}static#t=this.\u0275fac=function(i){return new(i||t)(w(so))};static#n=this.\u0275cmp=ze({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[it([{provide:Ar,useExisting:an(()=>t),multi:!0},{provide:s1,useExisting:t}]),Un],decls:11,vars:10,consts:[["auto","matAutocomplete"],[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["disabled","","class","loading",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["disabled","",1,"loading"],["diameter","35"],[3,"value"],[1,"code"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-form-field"),q(1,Zye,2,1,"mat-label",1),xe(2,"input",2),_(3,"mat-hint"),k(4),b(),q(5,Jye,3,0,"button",3),_(6,"mat-autocomplete",4,0),U("optionSelected",function(a){return z(o),H(r.change(a))}),q(8,exe,2,0,"mat-option",5)(9,txe,4,3,"mat-option",6),wo(10,"async"),b()()}if(2&i){let o;const s=jt(7);y(),T("ngIf",r.binding.title),y(),em("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),T("formControl",r.formControl)("matAutocomplete",s),y(2),Ke(r.binding.note),y(),T("ngIf",r.formControl.value),y(3),T("ngIf",r.loading),y(),T("ngForOf",null==(o=oc(10,8,r.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[ro,jr,ia,So,Fa,Bs,Zu,DH,zye,fd,BH,md,kd,ra,ps,e1,PD],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();function nxe(t,n){1&t&&xe(0,"mat-spinner",20)}function ixe(t,n){1&t&&(_(0,"th",21),k(1," Date "),b())}function rxe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"date"),b()),2&t){const e=n.$implicit;y(),Je(" ",Au(2,1,e.date,"yyyy-MM-dd")," ")}}function oxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function sxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.code," ")}}function axe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function cxe(t,n){1&t&&(_(0,"span",24),k(1,"Allergy / Intolerance condition"),b())}function lxe(t,n){if(1&t&&(_(0,"td",22),q(1,cxe,2,0,"span",23),k(2),b()),2&t){const e=n.$implicit;y(),T("ngIf",e.allergy),y(),Je(" ",e.display," ")}}function dxe(t,n){1&t&&xe(0,"tr",25)}function uxe(t,n){1&t&&xe(0,"tr",26)}function hxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function fxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.code," ")}}function mxe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function pxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.display," ")}}function gxe(t,n){1&t&&xe(0,"tr",25)}function _xe(t,n){1&t&&xe(0,"tr",26)}const bxe=[],vxe=[];let zH=(()=>{class t{constructor(e){this.terminologyService=e,this.problemBinding={ecl:"< 404684003 |Clinical finding|",title:"Search..."},this.eclProblem="< 404684003 |Clinical finding|",this.term="",this.displayedColumns=["date","code","display"],this.dataToDisplay=[...bxe],this.dataSource=new yxe(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...vxe],this.dataSource2=new xxe(this.dataToDisplay2)}updateProblem(e){var i=this;return me(function*(){i.selectedProblemSct=e})()}addProblem(e){var i=this;return me(function*(){if(i.selectedProblemSct||e){let r=e||i.selectedProblemSct;if(i.loading=!0,i.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;i.dataToDisplay2.find(s=>s.code===o.code)||(i.dataToDisplay2=[...i.dataToDisplay2,o],i.dataSource2.setData(i.dataToDisplay2))}else(yield i.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,i.addAllergySubstanceToList(r));i.dataToDisplay.find(o=>o.code===r.code)||(i.dataToDisplay=[...i.dataToDisplay,r],i.dataSource.setData(i.dataToDisplay)),i.loading=!1,i.term=""}})()}addAllergySubstanceToList(e){var i=this;return me(function*(){(yield i.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{i.dataToDisplay2.find(s=>s.code===o.code)||(i.dataToDisplay2=[...i.dataToDisplay2,o],i.dataSource2.setData(i.dataToDisplay2))})})()}getAllergyData(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(mt(o=>o)))})()}getAllergySubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(mt(o=>o)))})()}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["substancePopoverMenu","matMenu"],["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"selectionChange","binding","term"],["mat-flat-button","","color","primary",3,"click"],["diameter","35",4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["matColumnDef","display"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35"],["mat-header-cell",""],["mat-cell",""],["class","tag pill",4,"ngIf"],[1,"tag","pill"],["mat-header-row",""],["mat-row",""]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"h4"),k(4,"Problem List "),_(5,"button",4)(6,"mat-icon"),k(7,"info"),b()(),_(8,"mat-menu",null,0)(10,"span",5),U("click",function(a){return z(o),H(a.stopPropagation())}),_(11,"h4"),k(12,"Problem list"),b(),_(13,"p"),k(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),b(),_(15,"p"),k(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),b(),_(17,"p"),k(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),b(),_(19,"p"),k(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),b(),_(21,"p"),k(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),b(),_(23,"p"),k(24,"For more information check the "),_(25,"a",6),k(26,"Implementation Guide"),b(),k(27," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),U("selectionChange",function(a){return z(o),H(r.updateProblem(a))}),b()(),_(31,"div",8)(32,"button",10),U("click",function(){return z(o),H(r.addProblem())}),k(33,"Add problem"),b()(),_(34,"div",8),q(35,nxe,1,0,"mat-spinner",11),b()(),_(36,"table",12),zt(37,13),q(38,ixe,2,0,"th",14)(39,rxe,3,4,"td",15),Ht(),zt(40,16),q(41,oxe,2,0,"th",14)(42,sxe,2,1,"td",15),Ht(),zt(43,17),q(44,axe,2,0,"th",14)(45,lxe,3,2,"td",15),Ht(),q(46,dxe,1,0,"tr",18)(47,uxe,1,0,"tr",19),b()(),_(48,"div",3)(49,"h4"),k(50,"Substances the patient is allergic to:"),b(),_(51,"table",12),zt(52,16),q(53,hxe,2,0,"th",14)(54,fxe,2,1,"td",15),Ht(),zt(55,17),q(56,mxe,2,0,"th",14)(57,pxe,2,1,"td",15),Ht(),q(58,gxe,1,0,"tr",18)(59,_xe,1,0,"tr",19),b()()()()}if(2&i){const o=jt(9);y(5),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(20),T("binding",r.problemBinding)("term",r.term),y(5),T("ngIf",r.loading),y(),T("dataSource",r.dataSource),y(10),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(4),T("dataSource",r.dataSource2),y(7),T("matHeaderRowDef",r.displayedColumns2),y(),T("matRowDefColumns",r.displayedColumns2)}},dependencies:[jr,Eo,ia,So,Pa,mc,Wu,md,y2,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,u0,Ou],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();class yxe extends tw{constructor(n){super(),this._dataStream=new nw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}class xxe extends tw{constructor(n){super(),this._dataStream=new nw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}const Z2=["*"];function wxe(t,n){1&t&&ct(0)}const kxe=["tabListContainer"],Cxe=["tabList"],Txe=["tabListInner"],Exe=["nextPaginator"],Sxe=["previousPaginator"],Dxe=t=>({animationDuration:t}),Ixe=(t,n)=>({value:t,params:n});function Axe(t,n){}const Mxe=["tabBodyWrapper"],Rxe=["tabHeader"];function Pxe(t,n){}function Fxe(t,n){1&t&&q(0,Pxe,0,0,"ng-template",12),2&t&&T("cdkPortalOutlet",A().$implicit.templateLabel)}function Oxe(t,n){1&t&&k(0),2&t&&Ke(A().$implicit.textLabel)}function Nxe(t,n){if(1&t){const e=Se();_(0,"div",7,2),U("click",function(){const r=z(e),o=r.$implicit,s=r.$index,a=A(),c=jt(1);return H(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const o=z(e).$index;return H(A()._tabFocusChanged(r,o))}),xe(2,"span",8)(3,"div",9),_(4,"span",10)(5,"span",11),q(6,Fxe,1,1,null,12)(7,Oxe,1,1),b()()()}if(2&t){const e=n.$implicit,i=n.$index,r=jt(1),o=A();lt("mdc-tab--active",o.selectedIndex===i),T("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),_t("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),y(3),T("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),y(3),_n(6,e.templateLabel?6:7)}}function Lxe(t,n){1&t&&ct(0)}function Vxe(t,n){if(1&t){const e=Se();_(0,"mat-tab-body",13),U("_onCentered",function(){return z(e),H(A()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return z(e),H(A()._setTabBodyWrapperHeight(r))}),b()}if(2&t){const e=n.$implicit,i=n.$index,r=A();lt("mat-mdc-tab-body-active",r.selectedIndex===i),T("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),_t("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}const Bxe=new J("MatTabContent");let Uxe=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[it([{provide:Bxe,useExisting:t}])]})}return t})();const zxe=new J("MatTabLabel"),HH=new J("MAT_TAB");let Hxe=(()=>{class t extends o0e{constructor(e,i,r){super(e,i),this._closestTab=r}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(di),w(HH,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[it([{provide:zxe,useExisting:t}]),tt]})}return t})();const jH=new J("MAT_TAB_GROUP");let l1=(()=>{class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new Me,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 sl(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(jH,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,Hxe,5),ln(o,Uxe,7,Gn)),2&i){let s;Re(s=Pe())&&(r.templateLabel=s.first),Re(s=Pe())&&(r._explicitContent=s.first)}},viewQuery:function(i,r){if(1&i&&vt(Gn,7),2&i){let o;Re(o=Pe())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],textLabel:[W.None,"label","textLabel"],ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[it([{provide:HH,useExisting:t}]),Kt,Un,St],ngContentSelectors:Z2,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),q(0,wxe,1,0,"ng-template"))},encapsulation:2})}return t})();const J2="mdc-tab-indicator--active",$H="mdc-tab-indicator--no-transition";class jxe{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}let $xe=(()=>{class t{constructor(){this._elementRef=he(He),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){const i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(J2);const r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add($H),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove($H),i.classList.add(J2),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(J2)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,inputs:{fitInkBarToContent:[W.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ue]},features:[Kt]})}return t})(),GH=(()=>{class t extends $xe{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(i){return new(i||t)(w(He))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){2&i&&(_t("aria-disabled",!!r.disabled),lt("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},standalone:!0,features:[Kt,tt]})}return t})();const WH=Ma({passive:!0});let Qxe=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Me,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Me,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,s.runOutsideAngular(()=>{Ra(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ra(this._previousPaginator.nativeElement,"touchstart",WH).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ra(this._nextPaginator.nativeElement,"touchstart",WH).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:st("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new YI(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Nn(1)).subscribe(r),Ci(e,i,this._items.changes,this._itemsResized()).pipe(Tt(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(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?hs:this._items.changes.pipe(Gr(this._items),Zi(e=>new jn(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),qI(1),un(e=>e.some(i=>i.contentRect.width>0&&i.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(!To(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,c;"ltr"==this._getLayoutDirection()?(a=o,c=a+s):(c=this._tabListInner.nativeElement.offsetWidth-o,a=c-s);const l=this.scrollDistance,d=this.scrollDistance+r;ad&&(this.scrollDistance+=Math.min(c-d,a-l))}_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,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Y_(650,100).pipe(Tt(Ci(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(cl),w(oo,8),w(Be),w(Ln),w(pi,8))};static#t=this.\u0275dir=ce({type:t,inputs:{disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Ue],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Xi]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Kt]})}return t})(),Kxe=(()=>{class t extends Qxe{constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new jxe(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(cl),w(oo,8),w(Be),w(Ln),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(1&i&&ln(o,GH,4),2&i){let s;Re(s=Pe())&&(r._items=s)}},viewQuery:function(i,r){if(1&i&&(vt(kxe,7),vt(Cxe,7),vt(Txe,7),vt(Exe,5),vt(Sxe,5)),2&i){let o;Re(o=Pe())&&(r._tabListContainer=o.first),Re(o=Pe())&&(r._tabList=o.first),Re(o=Pe())&&(r._tabListInner=o.first),Re(o=Pe())&&(r._nextPaginator=o.first),Re(o=Pe())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){2&i&<("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue]},standalone:!0,features:[Kt,tt,St],ngContentSelectors:Z2,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(i,r){if(1&i){const o=Se();Mn(),_(0,"button",5,0),U("click",function(){return z(o),H(r._handlePaginatorClick("before"))})("mousedown",function(a){return z(o),H(r._handlePaginatorPress("before",a))})("touchend",function(){return z(o),H(r._stopInterval())}),xe(2,"div",6),b(),_(3,"div",7,1),U("keydown",function(a){return z(o),H(r._handleKeydown(a))}),_(5,"div",8,2),U("cdkObserveContent",function(){return z(o),H(r._onContentChanges())}),_(7,"div",9,3),ct(9),b()()(),_(10,"button",10,4),U("mousedown",function(a){return z(o),H(r._handlePaginatorPress("after",a))})("click",function(){return z(o),H(r._handlePaginatorClick("after"))})("touchend",function(){return z(o),H(r._stopInterval())}),xe(12,"div",6),b()}2&i&&(lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),T("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),y(3),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),y(7),lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),T("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[rl,r9],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})}return t})();const Xxe=new J("MAT_TABS_CONFIG"),Yxe={translateTab:Yn("translateTab",[bn("center, void, left-origin-center, right-origin-center",We({transform:"none"})),bn("left",We({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bn("right",We({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Xt("* => left, * => right, left => center, right => center",qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Xt("void => left-origin-center",[We({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Xt("void => right-origin-center",[We({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Zxe=(()=>{class t extends al{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=Wt.EMPTY,this._leavingSub=Wt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Gr(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(i){return new(i||t)(w(wu),w(di),w(an(()=>qH)),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[tt]})}return t})(),qH=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Wt.EMPTY,this._translateTabComplete=new Me,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(il((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.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 i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&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._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(oo,8),w(gn))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(1&i&&vt(al,5),2&i){let o;Re(o=Pe())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[W.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[St],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(1&i){const o=Se();_(0,"div",1,0),U("@translateTab.start",function(a){return z(o),H(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return z(o),H(r._translateTabComplete.next(a))}),q(2,Axe,0,0,"ng-template",2),b()}2&i&&T("@translateTab",ZS(3,Ixe,r._position,Ea(1,Dxe,r.animationDuration)))},dependencies:[Zxe,Iw],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:[Yxe.translateTab]}})}return t})(),Jxe=0,h0=(()=>{class t{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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Gl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Wt.EMPTY,this._tabLabelSubscription=Wt.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 Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._isServer=!he(Ln).isBrowser,this._groupId=Jxe++,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 i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.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 i=this._tabs.toArray();let r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Gr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new twe;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ci(...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 i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(gn),w(Xxe,8),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(1&i&&ln(o,l1,5),2&i){let s;Re(s=Pe())&&(r._allTabs=s)}},viewQuery:function(i,r){if(1&i&&(vt(Mxe,5),vt(Rxe,5)),2&i){let o;Re(o=Pe())&&(r._tabBodyWrapper=o.first),Re(o=Pe())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){2&i&&(Ys("mat-"+(r.color||"primary")),Ki("--mat-tab-animation-duration",r.animationDuration),lt("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:[W.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ue],stretchTabs:[W.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",Ue],dynamicHeight:[W.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",Ue],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Xi],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[W.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",Xi],disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],preserveContent:[W.HasDecoratorInputTransform,"preserveContent","preserveContent",Ue],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[it([{provide:jH,useExisting:t}]),Kt,St],ngContentSelectors:Z2,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","ngClass","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","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","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"mat-tab-header",3,0),U("indexFocused",function(a){return z(o),H(r._focusChanged(a))})("selectFocusedIndex",function(a){return z(o),H(r.selectedIndex=a)}),zS(2,Nxe,8,16,"div",4,US),b(),q(4,Lxe,1,0),_(5,"div",5,1),zS(7,Vxe,1,12,"mat-tab-body",6,US),b()}2&i&&(T("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),y(2),HS(r._tabs),y(2),_n(4,r._isServer?4:-1),y(),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),y(2),HS(r._tabs))},dependencies:[Kxe,GH,p_e,Da,rl,al,qH],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})}return t})();class twe{}let nwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();var _c=mo(578);class iwe{constructor(n,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=n,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){const n=this._textarea;let e=!1;try{if(n){const i=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let eA=(()=>{class t{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new iwe(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const rwe=new J("HighlightJs-Config");let d1=(()=>{class t{constructor(e,i,r,o,s){this.el=e,this.ngModel=i,this.doc=r,this.ngZone=s,this.lang="html",this.mode="simple",Object.assign(this,o)}escapeHTML(e){return(e||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();const e=this.el.nativeElement,i=this.code||""+e.innerHTML.trim();if(this.codeEl=this.doc.createElement("default"===this.mode?"div":"pre"),null==this.codeEl)return;const r="simple"===this.mode;r?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=e.parentNode,this.parentEl.insertBefore(this.codeEl,e.nextSibling)):(this.parentEl=e,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i,hljs.configure({...this.options}),r?hljs.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(o=>{hljs.highlightElement(o)})})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(e=>{this.code=this.escapeHTML(e),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.destroyMutation(),this.modelValue$&&this.modelValue$.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}destroyMutation(){this.observer&&this.observer.disconnect()}}return t.\u0275fac=function(e){return new(e||t)(w(He),w(Vs,8),w(xt),w(rwe,8),w(Be))},t.\u0275dir=ce({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,i){2&e&&Ki("display","simple"===i.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),owe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ct({type:t}),t.\u0275inj=yt({imports:[Y2]}),t})();const swe=["trigger"],awe=["panel"],cwe=[[["mat-select-trigger"]],"*"],lwe=["mat-select-trigger","*"];function dwe(t,n){if(1&t&&(_(0,"span",4),k(1),b()),2&t){const e=A();y(),Ke(e.placeholder)}}function uwe(t,n){1&t&&ct(0)}function hwe(t,n){if(1&t&&(_(0,"span",11),k(1),b()),2&t){const e=A(2);y(),Ke(e.triggerValue)}}function fwe(t,n){if(1&t&&(_(0,"span",10),q(1,uwe,1,0)(2,hwe,2,1),b()),2&t){const e=A();y(),_n(1,e.customTrigger?1:2)}}function mwe(t,n){if(1&t){const e=Se();_(0,"div",12,1),U("@transformPanel.done",function(r){return z(e),H(A()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return z(e),H(A()._handleKeydown(r))}),ct(2,1),b()}if(2&t){const e=A();(function UV(t,n,e){Ta(Ss,ic,jf(be(),t,n,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),_t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const pwe={transformPanelWrap:Yn("transformPanelWrap",[Xt("* => void",Tw("@transformPanel",[Cw()],{optional:!0}))]),transformPanel:Yn("transformPanel",[bn("void",We({opacity:0,transform:"scale(1, 0.8)"})),Xt("void => showing",qt("120ms cubic-bezier(0, 0, 0.2, 1)",We({opacity:1,transform:"scale(1, 1)"}))),Xt("* => void",qt("100ms linear",We({opacity:0})))])};let QH=0;const KH=new J("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition()}}),_we=new J("MAT_SELECT_CONFIG"),bwe={provide:KH,deps:[Ui],useFactory:function gwe(t){return()=>t.scrollStrategies.reposition()}},vwe=new J("MatSelectTrigger");class ywe{constructor(n,e){this.source=n,this.value=e}}let f0=(()=>{class t{_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=P9(e,this.options,this.optionGroups),s=i._getHostElement();r.scrollTop=0===e&&1===o?0:F9(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ywe(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(Nm.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){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,i,r,o,s,a,c,l,d,u,h,f,m,g){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=g,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=(p,v)=>p===v,this._uid="mat-select-"+QH++,this._triggerAriaLabelledBy=null,this._destroy=new Me,this.stateChanges=new Me,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QH++,this._panelDoneAnimatingStream=new Me,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 Me,this.optionSelectionChanges=cm(()=>{const p=this.options;return p?p.changes.pipe(Gr(p),Zi(()=>Ci(...p.map(v=>v.onSelectionChange)))):this._initialized.pipe(Zi(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(un(p=>p),mt(()=>{})),this._closedStream=this.openedChange.pipe(un(p=>!p),mt(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,this._trackedModal=null,this._skipPredicate=p=>!this.panelOpen&&p.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._errorStateTracker=new e2(o,u,l,c,this.stateChanges),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new RI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(il(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Tt(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(Tt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Gr(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.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 i=`${this.id}-panel`;this._trackedModal&&Sm(this._trackedModal,"aria-owns",i),fw(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(Sm(this._trackedModal,"aria-owns",`${this.id}-panel`),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(i=>i.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 i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!To(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||To(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.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(Nn(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(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=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 i&&this._selectionModel.select(i),i}_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 p2?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 f9(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=Ci(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ci(...this.options.map(i=>i._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&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((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+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 i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_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(i){return new(i||t)(w(cl),w(gn),w(Be),w(T9),w(He),w(oo,8),w(Xu,8),w(wd,8),w(a1,8),w(gc,10),As("tabindex"),w(KH),w(b9),w(_we,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,vwe,5),ln(o,fd,5),ln(o,n2,5)),2&i){let s;Re(s=Pe())&&(r.customTrigger=s.first),Re(s=Pe())&&(r.options=s),Re(s=Pe())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(1&i&&(vt(swe,5),vt(awe,5),vt(rz,5)),2&i){let o;Re(o=Pe())&&(r.trigger=o.first),Re(o=Pe())&&(r.panel=o.first),Re(o=Pe())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){1&i&&U("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&i&&(_t("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()),lt("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:[W.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ue],placeholder:"placeholder",required:[W.HasDecoratorInputTransform,"required","required",Ue],multiple:[W.HasDecoratorInputTransform,"multiple","multiple",Ue],disableOptionCentering:[W.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",Ue],compareWith:"compareWith",value:"value",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[W.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",Xi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[it([{provide:s1,useExisting:t},{provide:t2,useExisting:t}]),Kt,Un,St],ngContentSelectors:lwe,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(i,r){if(1&i){const o=Se();Mn(cwe),_(0,"div",2,0),U("click",function(){return z(o),H(r.open())}),_(3,"div",3),q(4,dwe,2,1,"span",4)(5,fwe,3,1),b(),_(6,"div",5)(7,"div",6),jc(),_(8,"svg",7),xe(9,"path",8),b()()()(),q(10,mwe,3,9,"ng-template",9),U("backdropClick",function(){return z(o),H(r.close())})("attach",function(){return z(o),H(r._onAttached())})("detach",function(){return z(o),H(r.close())})}if(2&i){const o=jt(1);y(3),_t("id",r._valueId),y(),_n(4,r.empty?4:5),y(6),T("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[p2,rz,Da],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:[pwe.transformPanel]},changeDetection:0})}return t})(),xwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[bwe],imports:[ac,ju,ww,Ft,ll,c1,ww,Ft]})}return t})();const wwe=["tooltip"],YH=new J("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.reposition({scrollThrottle:20})}}),Cwe={provide:YH,deps:[Ui],useFactory:function kwe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Ewe=new J("mat-tooltip-default-options",{providedIn:"root",factory:function Twe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ZH="tooltip-panel",JH=Ma({passive:!0});let Ju=(()=>{class t{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=Ir(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ir(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=hd(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=hd(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,i,r,o,s,a,c,l,d,u,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=c,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Mwe,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Me,this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(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(([i,r])=>{e.removeEventListener(i,r,JH)}),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,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Mm(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._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 o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof He)return this._overlayRef;this._detach()}const i=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(i);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${ZH}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!To(o)&&(o.preventDefault(),o.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 i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.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,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nn(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const c=`${this._cssClassPrefix}-${ZH}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.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",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,JH)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ui),w(He),w(Z_),w(di),w(Be),w(Ln),w(d9),w(ta),w(YH),w(oo),w(Ewe,8),w(xt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[W.None,"matTooltipPosition","position"],positionAtOrigin:[W.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[W.None,"matTooltipDisabled","disabled"],showDelay:[W.None,"matTooltipShowDelay","showDelay"],hideDelay:[W.None,"matTooltipHideDelay","hideDelay"],touchGestures:[W.None,"matTooltipTouchGestures","touchGestures"],message:[W.None,"matTooltip","message"],tooltipClass:[W.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return t})(),Mwe=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Me,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 i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(He),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&vt(wwe,7),2&i){let o;Re(o=Pe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,r){1&i&&U("mouseleave",function(s){return r._handleMouseLeave(s)}),2&i&&Ki("zoom",r.isVisible()?1:null)},standalone:!0,features:[St],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(i,r){if(1&i){const o=Se();_(0,"div",1,0),U("animationend",function(a){return z(o),H(r._handleAnimationEnd(a))}),_(2,"div",2),k(3),b()()}2&i&&(lt("mdc-tooltip--multiline",r._isMultiline),T("ngClass",r.tooltipClass),y(3),Ke(r.message))},dependencies:[Da],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})}return t})(),Rwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Cwe],imports:[w9,ac,ju,Ft,Ft,ll]})}return t})();const Pwe=["switch"],Fwe=["*"];function Owe(t,n){1&t&&(_(0,"div",10),jc(),_(1,"svg",12),xe(2,"path",13),b(),_(3,"svg",14),xe(4,"path",15),b()())}const Nwe=new J("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Lwe={provide:Ar,useExisting:an(()=>tA),multi:!0};class e7{constructor(n,e){this.source=n,this.checked=e}}let Vwe=0,tA=(()=>{class t{_createChangeEvent(e){return new e7(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=s,this._onChange=c=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(o)||0,this.color=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++Vwe,this.hideIcon=s.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new e7(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ta),w(gn),As("tabindex"),w(Nwe),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(1&i&&vt(Pwe,5),2&i){let o;Re(o=Pe())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ys(r.color?"mat-"+r.color:""),lt("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],required:[W.HasDecoratorInputTransform,"required","required",Ue],color:"color",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],hideIcon:[W.HasDecoratorInputTransform,"hideIcon","hideIcon",Ue]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[it([Lwe,{provide:hr,useExisting:t,multi:!0}]),Kt,Un,St],ngContentSelectors:Fwe,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"div",1)(1,"button",2,0),U("click",function(){return z(o),H(r._handleClick())}),xe(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),xe(7,"div",7),b(),_(8,"div",8),xe(9,"div",9),b(),q(10,Owe,5,0,"div",10),b()()(),_(11,"label",11),U("click",function(a){return z(o),H(a.stopPropagation())}),ct(12),b()()}if(2&i){const o=jt(2);T("labelPosition",r.labelPosition),y(),lt("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),T("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled),_t("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked),y(8),T("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),y(),_n(10,r.hideIcon?-1:10),y(),T("for",r.buttonId),_t("id",r._labelId)}},dependencies:[rl,s2],styles:['.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);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}return t})(),zwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[tA,Ft,Ft]})}return t})();function Hwe(t,n){if(1&t){const e=Se();_(0,"button",14),U("click",function(){z(e);const r=A().index;return H(A().removeReaction(r))}),_(1,"mat-icon"),k(2,"close"),b()()}}function jwe(t,n){if(1&t){const e=Se();_(0,"mat-option",15),U("click",function(){const r=z(e).$implicit,o=A().$implicit;return H(A().reactionSeveritySelected(o,r))}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function $we(t,n){if(1&t){const e=Se();_(0,"div",4)(1,"div",5),q(2,Hwe,3,0,"button",6),b(),_(3,"div",7)(4,"div",8)(5,"app-autocomplete-binding",9),U("selectionChange",function(r){const o=z(e).$implicit;return H(A().reactionManifestationSelected(o,r))}),b()(),_(6,"button",10)(7,"mat-icon"),k(8,"info"),b()(),_(9,"mat-menu",null,0)(11,"span",11),U("click",function(r){return z(e),H(r.stopPropagation())}),_(12,"p"),k(13,"Terminology binding:"),b(),_(14,"pre"),k(15),b()()()(),_(16,"mat-form-field",12)(17,"mat-label"),k(18,"Reaction Severity"),b(),_(19,"mat-select"),q(20,jwe,2,2,"mat-option",13),b()(),_(21,"div",7)(22,"div",8)(23,"app-autocomplete-binding",9),U("selectionChange",function(r){const o=z(e).$implicit;return H(A().reactionRouteSelected(o,r))}),b()(),_(24,"button",10)(25,"mat-icon"),k(26,"info"),b()(),_(27,"mat-menu",null,1)(29,"span",11),U("click",function(r){return z(e),H(r.stopPropagation())}),_(30,"p"),k(31,"Terminology binding:"),b(),_(32,"pre"),k(33),b()()()()()}if(2&t){const e=n.index,i=jt(10),r=jt(28),o=A();y(2),T("ngIf",e>0),y(3),T("binding",o.reactionManifestationBinding),y(),T("matMenuTriggerFor",i),y(5),T("disableRipple",!0),y(4),Ke(o.reactionManifestationBinding.ecl),y(5),T("ngForOf",o.severityOptions),y(3),T("binding",o.routeBinding),y(),T("matMenuTriggerFor",r),y(5),T("disableRipple",!0),y(4),Ke(o.routeBinding.ecl)}}let Gwe=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Ce,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,i){e.manifestation=i,this.newManifestation.emit(i),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,i){e.severity=i,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,i){e.route=i,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[it([{provide:Ar,useExisting:an(()=>t),multi:!0}])],decls:5,vars:1,consts:[["reactionPopoverMenu","matMenu"],["routePopoverMenu","matMenu"],["class","reaction",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Add reaction",3,"click"],[1,"reaction"],[1,"button-container"],["mat-icon-button","","color","primary","class","remove","matTooltip","Remove reaction",3,"click",4,"ngIf"],[1,"row-centered"],[1,"small-form-field"],[3,"selectionChange","binding"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click","disableRipple"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"click","value"]],template:function(i,r){1&i&&(q(0,$we,34,10,"div",2),_(1,"div")(2,"button",3),U("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),k(4,"add"),b()()()),2&i&&T("ngForOf",r.reactions)},dependencies:[ro,jr,ia,So,Pa,mc,Wu,Fa,Bs,fd,f0,Ju,u0],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]})}return t})();const Wwe=()=>({});function qwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return z(e),H(A().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Qwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return z(e),H(A().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Kwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return z(e),H(A().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function Xwe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),U("selectionChange",function(r){return z(e),H(A().substanceSelected(r,!0))}),b()}if(2&t){const e=A();T("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function Ywe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),U("selectionChange",function(r){return z(e),H(A().substanceSelected(r))}),b()}if(2&t){const e=A();T("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function Zwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=A();y(),Ke(e.substanceBinding.ecl)}}function Jwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=A();y(),Ke(e.refinedSubstanceBinding.ecl)}}function e1e(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return z(e),H(A().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}function t1e(t,n){if(1&t){const e=Se();_(0,"mat-option",31),U("click",function(){return z(e),H(A().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Ke(e.display)}}let n1e=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this._snackBar=r,this.newProblem=new Ce,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new gs(this.selectedIntoleranceCategories),this.criticalityOptions=[{code:"low",display:"Low Risk"},{code:"high",display:"High Risk"},{code:"unable-to-assess",display:"Unable to Assess Risk"}],this.selectedCriticality=null,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.codeBinding={ecl:"<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",title:"Allergy/Intolerance by propensity"},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.substanceBinding={ecl:"<<105590001 | Substance (substance) | OR <<373873005 | Pharmaceutical / biologic product (product) |",title:"Allergy/Intolerance substance or product"},this.refinedSubstanceBinding={ecl:"<<105590001 | Substance (substance) |",title:"Allergy/Intolerance substance based on propensity"},this.selectedSubstanceTerm="",this.selectedSubstance=null,this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm="",this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.selectedRoute=null,this.selectedRouteTerm="",this.outputAllergyBase={resourceType:"AllergyIntolerance",id:"medication",text:{},clinicalStatus:{coding:[]},verificationStatus:{coding:[]},type:"",category:[],criticality:"high",code:{coding:[]},reaction:[{substance:[{coding:[]}],manifestation:[{coding:[]}],exposureRoute:{coding:[]},severity:""}],patient:{reference:"Patient/example"},recordedDate:"2010-03-01",participant:[{function:{coding:[{system:"http://terminology.hl7.org/CodeSystem/provenance-participant-type",code:"author",display:"Author"}]},actor:{reference:"Practitioner/example"}}]},this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.outputAllergyStr=""}ngOnInit(){this.updateAllergyStr()}onReactionsChange(e){this.updateAllergyStr()}clear(){this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.selectedIntoleranceType=null,this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new gs(this.selectedIntoleranceCategories),this.selectedCriticality=null,this.selectedSeverity={},this.selectedCode=null,this.selectedCodeTerm="",this.recordPropensity=!1,this.selectedSubstanceTerm="",this.selectedReactionManifestation=null,this.selectedReactionManifestationTerm=" ",this.selectedRoute=null,this.selectedRouteTerm=" ",this.selectedReactions=[{suibstance:{},manifestation:{},severity:{},route:{}}],this.outputAllergy=JSON.parse(JSON.stringify(this.outputAllergyBase)),this.updateAllergyStr(),setTimeout(()=>{this.selectedReactionManifestationTerm="",this.selectedRouteTerm=""},100)}updateAllergyStr(){this.outputAllergy.clinicalStatus.coding=[this.selectedClinicalStatus],this.outputAllergy.verificationStatus.coding=[this.selectedVerificationStatus],this.outputAllergy.type=this.selectedIntoleranceType?this.selectedIntoleranceType.fhirCode:"",this.outputAllergy.category=this.selectedIntoleranceCategories.length?this.selectedIntoleranceCategories.map(e=>e.display):[],this.outputAllergy.criticality=this.selectedCriticality?.code?[this.selectedCriticality.code]:{},this.outputAllergy.reaction=[],this.selectedReactions.forEach(e=>{e.manifestation.code&&(e.manifestation.system="http://snomed.info/sct"),e.route.code&&(e.route.system="http://snomed.info/sct"),this.outputAllergy.reaction.push({substance:[{coding:[this.selectedSubstance]}],manifestation:[{coding:e.manifestation?[e.manifestation]:[{}]}],exposureRoute:{coding:e.route?[e.route]:[{}]},severity:e.severity?e.severity.code:""})}),setTimeout(()=>{this.outputAllergyStr=JSON.stringify(this.outputAllergy,null,2)},100)}substanceSelected(e,i){var r=this;return me(function*(){i&&(r.selectedCodeTerm=""),r.selectedSubstance=e,r.selectedIntoleranceCategories=[],e=Object.assign({system:"http://snomed.info/sct"},e),r.recordPropensity||(r.outputAllergy.code.coding=[e]),r.outputAllergy.reaction[0].substance[0].coding=[e],(yield r.getSubstanceCategories(e))?.expansion?.contains?.forEach(s=>{"762766007"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==s.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==s.code&&r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[2])}),r.selectedIntoleranceCategoriesControl.setValue(r.selectedIntoleranceCategories),r.updateAllergyStr()})()}propensityRecordChanged(){this.outputAllergy.code.coding=[],this.selectedCode&&this.codeSelected(this.selectedCode)}codeSelected(e){var i=this;return me(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){i.selectedCodeTerm=e.display,i.selectedCode=e,i.recordPropensity&&(i.outputAllergy.code.coding=[e]);let r=yield i.getTypes(e);if(r.expansion?.contains){const s=r.expansion?.contains[0];i.selectedIntoleranceType=i.intoleranceTypeOptions.find(a=>a.code===s.code)}let o=yield i.getAllergySubstance(e);if(o.expansion.contains||(o=yield i.getIntoleranceSubstance(e)),o.expansion?.contains){const s=o.expansion?.contains[0];i.refinedSubstanceBinding.ecl=`<<${s.code} | ${s.display} |`,i.substanceSelected(s),i.selectedSubstanceTerm=s.display}else i.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(mt(o=>o)))})()}getAllergySubstance(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(mt(o=>o)))})()}getSubstanceCategories(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (762766007 |Edible substance| OR 115668003 |Biological substance (substance)| OR 410942007 |Drug or medicament (substance)| OR 57795002 |Chemical element|)`,"")).pipe(mt(o=>o)))})()}getTypes(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(mt(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(e,"AllergyIntolerance.json")}copyToClipboard(e){this.clipboard.copy(e)}addToProblemsList(){if(this.selectedCode)this.newProblem.emit(this.selectedCode);else if(this.selectedSubstance&&this.selectedIntoleranceType){let e="";"609433001"===this.selectedIntoleranceType.code?e="Allergy to ":"782197009"===this.selectedIntoleranceType.code&&(e="Intolerance to "),e+=this.selectedSubstance.display,this.newProblem.emit({code:`${this.selectedIntoleranceType.code}:246075003=${this.selectedSubstance.code}`,display:e,substance:this.selectedSubstance})}else this._snackBar.openFromComponent(Ti,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(eA),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["substancePopoverMenu","matMenu"],["codePopoverMenu","matMenu"],["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-flat-button","","color","accent","id","clear",3,"click"],[1,"row-centered"],[1,"smallest-form-field"],[3,"selectionChange","binding","term"],["mat-menu-item","",3,"click","disableRipple"],["matTooltip","Defines wether to use a propensity based model or a substance based model. Defines which one is recorded in the code element of the AllergyIntolerance resource.",3,"ngModelChange","click","ngModel"],[1,"form-field"],[3,"ngModelChange","ngModel"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModelChange","newManifestation","ngModel"],["mat-flat-button","","color","accent",3,"click"],["href","https://hl7.org/FHIR/allergyintolerance.html","target","_blank"],["id","output"],["id","save"],["mat-icon-button","","matTooltip","Download FHIR Resource",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy FHIR Resource",3,"click"],["fontIcon","content_copy"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],[3,"click","value"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-card",2)(1,"div",3)(2,"div",4)(3,"h4"),k(4,"Allergy Intolerance Form "),_(5,"button",5)(6,"mat-icon"),k(7,"info"),b()(),_(8,"mat-menu",null,0)(10,"span",6),U("click",function(a){return z(o),H(a.stopPropagation())}),_(11,"h4"),k(12,"Allergy list"),b(),_(13,"p"),k(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),b(),_(15,"p"),k(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),b(),_(17,"p"),k(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),b(),_(19,"p"),k(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),b(),_(21,"p"),k(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),b(),_(23,"p"),k(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),b(),_(25,"p"),k(26,"For more information check the "),_(27,"a",7),k(28,"Implementation Guide"),b(),k(29," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(30,"button",8),U("click",function(){return z(o),H(r.clear())}),k(31,"Clear"),b(),_(32,"div",9)(33,"div",10)(34,"app-autocomplete-binding",11),U("selectionChange",function(a){return z(o),H(r.codeSelected(a))}),b()(),_(35,"button",5)(36,"mat-icon"),k(37,"info"),b()(),_(38,"mat-menu",null,1)(40,"span",12),U("click",function(a){return z(o),H(a.stopPropagation())}),_(41,"p"),k(42,"Terminology binding:"),b(),_(43,"pre"),k(44),b()()(),_(45,"mat-slide-toggle",13),Hr("ngModelChange",function(a){return z(o),io(r.recordPropensity,a)||(r.recordPropensity=a),H(a)}),U("click",function(){return z(o),H(r.propensityRecordChanged())}),k(46," Propensity based model "),b()(),_(47,"mat-form-field",14)(48,"mat-label"),k(49,"Allergy Intolerance Type"),b(),_(50,"mat-select",15),Hr("ngModelChange",function(a){return z(o),io(r.selectedIntoleranceType,a)||(r.selectedIntoleranceType=a),H(a)}),q(51,qwe,2,2,"mat-option",16),b()(),_(52,"div",9)(53,"mat-form-field",4)(54,"mat-label"),k(55,"Clinical Status"),b(),_(56,"mat-select",15),Hr("ngModelChange",function(a){return z(o),io(r.selectedClinicalStatus,a)||(r.selectedClinicalStatus=a),H(a)}),q(57,Qwe,2,2,"mat-option",16),b()(),_(58,"mat-form-field",4)(59,"mat-label"),k(60,"Verification Status"),b(),_(61,"mat-select",15),Hr("ngModelChange",function(a){return z(o),io(r.selectedVerificationStatus,a)||(r.selectedVerificationStatus=a),H(a)}),q(62,Kwe,2,2,"mat-option",16),b()()(),_(63,"div",9)(64,"div",17),q(65,Xwe,1,2,"app-autocomplete-binding",18)(66,Ywe,1,2,"app-autocomplete-binding",18),b(),_(67,"button",5)(68,"mat-icon"),k(69,"info"),b()(),_(70,"mat-menu",null,0)(72,"span",12),U("click",function(a){return z(o),H(a.stopPropagation())}),_(73,"p"),k(74,"Terminology binding:"),b(),q(75,Zwe,2,1,"pre",19)(76,Jwe,2,1,"pre",19),b()()(),_(77,"div",9)(78,"mat-form-field",4)(79,"mat-label"),k(80,"Substance Category"),b(),_(81,"mat-select",20),q(82,e1e,2,2,"mat-option",16),b()(),_(83,"mat-form-field",4)(84,"mat-label"),k(85,"Allergy Criticality"),b(),_(86,"mat-select",15),Hr("ngModelChange",function(a){return z(o),io(r.selectedCriticality,a)||(r.selectedCriticality=a),H(a)}),q(87,t1e,2,2,"mat-option",16),b()()(),_(88,"app-allergies-allergy-list-reaction",21),Hr("ngModelChange",function(a){return z(o),io(r.selectedReactions,a)||(r.selectedReactions=a),H(a)}),U("ngModelChange",function(a){return z(o),H(r.onReactionsChange(a))})("newManifestation",function(a){return z(o),H(r.newProblem.emit(a))}),b(),_(89,"button",22),U("click",function(){return z(o),H(r.addToProblemsList())}),k(90,"Save"),b()(),_(91,"div",4)(92,"h4"),k(93,"AllergyIntolerance HL7 FHIR Resource ("),_(94,"a",23),k(95,"link"),b(),k(96,")"),b(),_(97,"div",24)(98,"div",25)(99,"button",26),U("click",function(){return z(o),H(r.saveFhirResource())}),xe(100,"mat-icon",27),b(),_(101,"button",28),U("click",function(){return z(o),H(r.copyToClipboard(r.outputAllergyStr))}),xe(102,"mat-icon",29),b()(),_(103,"textarea",30),k(104," "),b()()()()()}if(2&i){const o=jt(9),s=jt(39);y(5),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(24),T("binding",r.codeBinding)("term",r.selectedCodeTerm),y(),T("matMenuTriggerFor",s),y(5),T("disableRipple",!0),y(4),Ke(r.codeBinding.ecl),y(),zr("ngModel",r.recordPropensity),y(5),zr("ngModel",r.selectedIntoleranceType),y(),T("ngForOf",r.intoleranceTypeOptions),y(5),zr("ngModel",r.selectedClinicalStatus),y(),T("ngForOf",r.clinicalStatusOptions),y(4),zr("ngModel",r.selectedVerificationStatus),y(),T("ngForOf",r.verificationStatusOptions),y(3),T("ngIf",!r.recordPropensity),y(),T("ngIf",r.recordPropensity),y(),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0),y(3),T("ngIf",!r.recordPropensity),y(),T("ngIf",r.recordPropensity),y(5),T("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),y(),T("ngForOf",r.intoleranceCategoryOptions),y(4),zr("ngModel",r.selectedCriticality),y(),T("ngForOf",r.criticalityOptions),y(),zr("ngModel",r.selectedReactions),y(15),T("options",us(29,Wwe))("lang","json")("innerHTML",r.outputAllergyStr,yu)}},dependencies:[ro,jr,d1,Eo,ia,So,Pa,mc,Wu,Fa,Bs,fd,ps,e1,y2,f0,Vs,Ju,tA,u0,Gwe],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})(),t7=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var i=this;return me(function*(){i.allergiesProblemListComponent.addProblem(e),i._snackBar.openFromComponent(Ti,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}static#e=this.\u0275fac=function(i){return new(i||t)(w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-allergies"]],viewQuery:function(i,r){if(1&i&&vt(zH,5),2&i){let o;Re(o=Pe())&&(r.allergiesProblemListComponent=o.first)}},decls:31,vars:2,consts:[["substancePopoverMenu","matMenu"],["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",1,"long-tooltip",3,"click","disableRipple"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Allergy List Approach (AllergyIntolerance FHIR resource)"],[3,"newProblem"],["label","Problem List Approach (Condition FHIR resource)"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",1)(1,"h3"),k(2,"Allergy, Hypersensitivity and Intolerance "),_(3,"button",2)(4,"mat-icon"),k(5,"info"),b()(),_(6,"mat-menu",null,0)(8,"span",3),U("click",function(a){return z(o),H(a.stopPropagation())}),_(9,"h4"),k(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),b(),_(11,"p"),k(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),b(),_(13,"p")(14,"b"),k(15,"Allergy list:"),b(),k(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),b(),_(17,"p")(18,"b"),k(19,"Problem list:"),b(),k(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),b(),_(21,"p"),k(22,"For more information check the "),_(23,"a",4),k(24,"Implementation Guide"),b(),k(25," developed by the SNOMED International Allergy Clinical Reference Group."),b()()()(),_(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),U("newProblem",function(a){return z(o),H(r.addProblem(a))}),b()(),_(29,"mat-tab",8),xe(30,"app-allergies-problem-list"),b()()()}if(2&i){const o=jt(7);y(3),T("matMenuTriggerFor",o),y(5),T("disableRipple",!0)}},dependencies:[ia,So,Pa,mc,Wu,l1,h0,zH,n1e],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();function nA(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];r?t.setProperty(i,r,e?.has(i)?"important":""):t.removeProperty(i)}return t}function Bm(t,n){const e=n?"":"none";nA(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function n7(t,n,e){nA(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function u1(t,n){return n&&"none"!=n?t+" "+n:t}function i7(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function iA(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function rA(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function oA(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function m0(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function r7(t,n,e,i){const{top:r,right:o,bottom:s,left:a,width:c,height:l}=t,d=c*n,u=l*n;return i>r-u&&ia-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:rA(e)})})}handleScroll(n){const e=Ls(n),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,c=r.left-s;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&m0(l.clientRect,a,c)}),r.top=o,r.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function s7(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;rBm(e,n)))}constructor(n,e,i,r,o,s){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Me,this._pointerMoveSubscription=Wt.EMPTY,this._pointerUpSubscription=Wt.EMPTY,this._scrollSubscription=Wt.EMPTY,this._resizeSubscription=Wt.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Me,this.started=new Me,this.released=new Me,this.ended=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),m=this._dropContainer;if(!f)return void this._endDragSequence(a);(!m||!m.isDragging()&&!m.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{const d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=l.x-d.x+this._passiveTransform.x,u.y=l.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new o7(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>Bi(i)),this._handles.forEach(i=>Bm(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=Bi(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,h1),e.addEventListener("touchstart",this._pointerDown,d7),e.addEventListener("dragstart",this._nativeDragStart,h1)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?Bi(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),Bm(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Bm(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){p0(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),n7(i,!1,sA),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=p0(e),o=!r&&0!==e.button,s=this._rootElement,a=Ls(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?bw(e):_w(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||c||l)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=rA(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){n7(this._rootElement,!0,sA),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:n}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let r;if(i&&n){const o=n.matchSize?this._initialDomRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=h7(s,this._document),this._previewRef=s,n.matchSize?f7(r,o):r.style.transform=f1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=s7(this._rootElement),f7(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return nA(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},sA),Bm(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function r1e(t){const n=getComputedStyle(t),e=iA(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=iA(n,"transition-duration"),s=iA(n,"transition-delay");return i7(o[r])+i7(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Ls(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=h7(this._placeholderRef,this._document)):i=s7(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():n,s=p0(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-n.left+(s.pageX-o.left-a.left),y:o.top-n.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=p0(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(l-s);i=u7(i,a.left+o,a.right-(c-o)),r=u7(r,d,u)}return{x:i,y:r}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,Bm(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,h1),n.removeEventListener("touchstart",this._pointerDown,d7),n.removeEventListener("dragstart",this._nativeDragStart,h1)}_applyRootElementTransform(n,e){const i=f1(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=u1(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=f1(n,e);this._preview.style.transform=u1(r,i)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,c=i.bottom-r.bottom;r.width>i.width?(o>0&&(n+=o),s>0&&(n-=s)):n=0,r.height>i.height?(a>0&&(e+=a),c>0&&(e-=c)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:p0(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=Ls(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&m0(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=HI(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Bi(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function f1(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function u7(t,n,e){return Math.max(n,Math.min(e,t))}function p0(t){return"t"===t.type[0]}function h7(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function f7(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=f1(n.left,n.top)}function aA(t,n,e){const i=g0(n,t.length-1),r=g0(e,t.length-1);if(i===r)return;const o=t[i],s=r0)return null;const a="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===n),l=o[s],u=l.clientRect,h=c>s?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return aA(o,c,s),o.forEach((p,v)=>{if(g[v]===p)return;const x=p.drag===n,C=x?f:m,D=x?n.getPlaceholderElement():p.drag.getRootElement();p.offset+=C,a?(D.style.transform=u1(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),m0(p.clientRect,0,C)):(D.style.transform=u1(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),m0(p.clientRect,C,0))}),this._previousSwap.overlaps=oA(u,e,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:c,currentIndex:s}}enter(n,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(n,e,i):r,s=this._activeDraggables,a=s.indexOf(n),c=n.getPlaceholderElement();let l=s[o];if(l===n&&(l=s[o+1]),!l&&(null==o||-1===o||o-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),s.splice(o,0,n)}else Bi(this._element).appendChild(c),s.push(n);c.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables.forEach(n=>{const e=n.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===n)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n)}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:i})=>{m0(i,n,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const n="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:rA(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(n,e,i){const r="horizontal"===this.orientation;let o=r?e.left-n.left:e.top-n.top;return-1===i&&(o+=r?e.width-n.width:e.height-n.height),o}_getSiblingOffsetPx(n,e,i){const r="horizontal"===this.orientation,o=e[n].clientRect,s=e[n+-1*i];let a=o[r?"width":"height"]*i;if(s){const c=r?"left":"top",l=r?"right":"bottom";-1===i?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?n>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?n<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(n,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>a!==n&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this.receivingStarted=new Me,this.receivingStopped=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Wt.EMPTY,this._verticalScrollDirection=oa.NONE,this._horizontalScrollDirection=Yo.NONE,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function i1e(t=0,n=$_){return t<0&&(t=0),Y_(t,t,n)}(0,G9).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===oa.UP?s.scrollBy(0,-a):this._verticalScrollDirection===oa.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===Yo.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===Yo.RIGHT&&s.scrollBy(a,0)})},this.element=Bi(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new o7(i),this._sortStrategy=new c1e(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,s,a,c={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===n.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._sortStrategy.direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._sortStrategy.orientation=n,this}withScrollableParents(n){const e=Bi(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._domRect||!r7(this._domRect,.05,e,i))return;const o=this._sortStrategy.sort(n,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=oa.NONE,o=Yo.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||r7(s.clientRect,.05,n,e)&&([r,o]=function d1e(t,n,e,i,r){const o=g7(n,r),s=_7(n,i);let a=oa.NONE,c=Yo.NONE;if(o){const l=t.scrollTop;o===oa.UP?l>0&&(a=oa.UP):t.scrollHeight-l>t.clientHeight&&(a=oa.DOWN)}if(s){const l=t.scrollLeft;"rtl"===e?s===Yo.RIGHT?l<0&&(c=Yo.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=Yo.LEFT):s===Yo.LEFT?l>0&&(c=Yo.LEFT):t.scrollWidth-l>t.clientWidth&&(c=Yo.RIGHT)}return[a,c]}(a,s.clientRect,this._sortStrategy.direction,n,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};r=g7(c,e),o=_7(c,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=Bi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=Bi(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(n).clientRect}_reset(){this._isDragging=!1;const n=Bi(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(n,e){return null!=this._domRect&&oA(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._domRect||!oA(this._domRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Bi(this.element);return r===o||o.contains(r)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=HI(Bi(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function g7(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?oa.UP:n>=i-o&&n<=i+o?oa.DOWN:oa.NONE}function _7(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?Yo.LEFT:n>=i-o&&n<=i+o?Yo.RIGHT:Yo.NONE}const m1=Ma({passive:!1,capture:!0});let u1e=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,m1)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,m1)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:m1}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:m1}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new jn(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),Ci(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Be),Y(xt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const h1e={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cA=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=h1e){return new a1e(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new l1e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(Be),Y(cl),Y(u1e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _0=new J("CDK_DRAG_PARENT"),b7=new J("CdkDragHandle");let v7=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}constructor(e,i){this.element=e,this._parentDrag=i,this._stateChanges=new Me,this._disabled=!1,i?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(_0,12))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkDragHandleDisabled","disabled",Ue]},standalone:!0,features:[it([{provide:b7,useExisting:t}]),Kt]})}return t})();const y7=new J("CDK_DRAG_CONFIG"),x7=new J("CdkDropList");let lA=(()=>{class t{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}constructor(e,i,r,o,s,a,c,l,d,u,h){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new Me,this._handles=new wi([]),this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=new jn(f=>{const m=this._dragRef.moved.pipe(mt(g=>({source:this,pointerPosition:g.pointerPosition,event:g.event,delta:g.delta,distance:g.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._dragRef=l.createDrag(e,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Nn(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=t._dragInstances.indexOf(this);e>-1&&t._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){const i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){const i=this._handles.getValue(),r=i.indexOf(e);r>-1&&(i.splice(r,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Bi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:hd(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Nn(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(Vi(e=>{const i=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Zi(e=>Ci(...e.map(i=>i._stateChanges.pipe(Gr(i))))),Tt(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}static#t=this.\u0275fac=function(i){return new(i||t)(w(He),w(x7,12),w(xt),w(Be),w(di),w(y7,8),w(oo,8),w(cA),w(gn),w(b7,10),w(_0,12))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,r){2&i&<("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[W.None,"cdkDragData","data"],lockAxis:[W.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[W.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[W.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[W.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[W.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[W.HasDecoratorInputTransform,"cdkDragDisabled","disabled",Ue],constrainPosition:[W.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[W.None,"cdkDragPreviewClass","previewClass"],previewContainer:[W.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[it([{provide:_0,useExisting:t}]),Kt,Un]})}return t})();const dA=new J("CdkDropListGroup");let p1e=0,uA=(()=>{class t{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}constructor(e,i,r,o,s,a,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new Me,this.connectedTo=[],this.id="cdk-drop-list-"+p1e++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ce,this.entered=new Ce,this.exited=new Ce,this.sorted=new Ce,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(l,d)=>this.enterPredicate(l.data,d.data),this._dropListRef.sortPredicate=(l,d,u)=>this.sortPredicate(l,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Gr(this._dir.value),Tt(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=G_(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(s=>s.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=hd(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),Ci(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}static#t=this.\u0275fac=function(i){return new(i||t)(w(He),w(cA),w(gn),w(Z_),w(oo,8),w(dA,12),w(y7,8))};static#n=this.\u0275dir=ce({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,r){2&i&&(_t("id",r.id),lt("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[W.None,"cdkDropListConnectedTo","connectedTo"],data:[W.None,"cdkDropListData","data"],orientation:[W.None,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[W.None,"cdkDropListLockAxis","lockAxis"],disabled:[W.HasDecoratorInputTransform,"cdkDropListDisabled","disabled",Ue],sortingDisabled:[W.HasDecoratorInputTransform,"cdkDropListSortingDisabled","sortingDisabled",Ue],enterPredicate:[W.None,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[W.None,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[W.HasDecoratorInputTransform,"cdkDropListAutoScrollDisabled","autoScrollDisabled",Ue],autoScrollStep:[W.None,"cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[it([{provide:dA,useValue:void 0},{provide:x7,useExisting:t}]),Kt]})}return t})(),v1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[cA],imports:[ll]})}return t})();function y1e(t,n){}class p1{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}}let w7=(()=>{class t extends Ew{constructor(e,i,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=he(Ln),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=he(gn),this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){const i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_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(i=>{i||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 i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=lw(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=lw();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=lw()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ZI),w(xt,8),w(p1),w(gw),w(Be),w(Mw),w(ta))};static#t=this.\u0275cmp=ze({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&vt(al,7),2&i){let o;Re(o=Pe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&_t("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:[tt,St],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&q(0,y1e,0,0,"ng-template",0)},dependencies:[al],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class hA{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new Me,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!To(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const k7=new J("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.block()}}),x1e=new J("DialogData"),w1e=new J("DefaultDialogConfig");let C1e=0,C7=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me,this._afterOpenedAtThisLevel=new Me,this._ariaHiddenElements=new Map,this.afterAllClosed=cm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Gr(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new p1,...i}).id=i.id||"cdk-dialog-"+C1e++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new hA(s,i),c=this._attachContainer(s,a,i);return a.containerInstance=c,this._attachDialogContent(e,a,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){fA(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){fA(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),fA(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Pm({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&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:p1,useValue:r},{provide:hA,useValue:i},{provide:Mw,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=w7;const c=new Mm(a,r.viewContainerRef,Ii.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof Gn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new sl(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Mm(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:x1e,useValue:e.data},{provide:hA,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(oo,null,{optional:!0}))&&a.push({provide:oo,useValue:{value:e.direction,change:st()}}),Ii.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(Ii),Y(w1e,8),Y(t,12),Y(Aw),Y(k7))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fA(t,n){let e=t.length;for(;e--;)n(t[e])}let T1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[C7],imports:[ju,Rm,w9,Rm]})}return t})();function E1e(t,n){}class mA{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 pA="mdc-dialog--open",T7="mdc-dialog--opening",E7="mdc-dialog--closing";let S7=(()=>{class t extends w7{constructor(e,i,r,o,s,a,c,l,d){super(e,i,r,o,s,a,c,d),this._animationMode=l,this._animationStateChanged=new Ce,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?I7(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?I7(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(D7,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(T7,pA)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(pA),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(pA),this._animationsEnabled?(this._hostElement.style.setProperty(D7,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(E7)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(T7,E7)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,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 i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ZI),w(xt,8),w(mA),w(gw),w(Be),w(Mw),w(pi,8),w(ta))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){2&i&&(rc("id",r._config.id),_t("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),lt("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[tt,St],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(_(0,"div",0)(1,"div",1),q(2,E1e,0,0,"ng-template",2),b()())},dependencies:[al],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})}return t})();const D7="--mat-dialog-transition-duration";function I7(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?hd(t.substring(0,t.length-2)):t.endsWith("s")?1e3*hd(t.substring(0,t.length-1)):"0"===t?0:null}var g1=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(g1||{});class Cd{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Me,this._beforeClosed=new Me,this._state=g1.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(un(r=>"opened"===r.state),Nn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(un(r=>"closed"===r.state),Nn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ci(this.backdropClick(),this.keydownEvents().pipe(un(r=>27===r.keyCode&&!this.disableClose&&!To(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),A7(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(un(e=>"closing"===e.state),Nn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=g1.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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=g1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function A7(t,n,e){return t._closeInteractionType=n,t.close(e)}const _1=new J("MatMdcDialogData"),I1e=new J("mat-mdc-dialog-default-options"),M7=new J("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=he(Ui);return()=>t.scrollStrategies.block()}});let M1e=0,Um=(()=>{class t{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,i,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me,this._afterOpenedAtThisLevel=new Me,this.dialogConfigClass=mA,this.afterAllClosed=cm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Gr(void 0))),this._dialog=i.get(C7),this._dialogRefConstructor=Cd,this._dialogContainerType=S7,this._dialogDataToken=_1}open(e,i){let r;(i={...this._defaultOptions||new mA,...i}).id=i.id||"mat-mdc-dialog-"+M1e++,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:p1,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(Ii),Y(Fu,8),Y(I1e,8),Y(M7),Y(t,12),Y(Aw),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),R1e=0,zm=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=P7(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){A7(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd,8),w(He),w(Um))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){1&i&&U("click",function(s){return r._onButtonClick(s)}),2&i&&_t("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[W.None,"aria-label","ariaLabel"],type:"type",dialogResult:[W.None,"mat-dialog-close","dialogResult"],_matDialogClose:[W.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Un]})}return t})(),R7=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=P7(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(i){return new(i||t)(w(Cd,8),w(He),w(Um))};static#t=this.\u0275dir=ce({type:t,standalone:!0})}return t})(),gA=(()=>{class t extends R7{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+R1e++}_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=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){2&i&&rc("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[tt]})}return t})(),b0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}return t})(),v0=(()=>{class t extends R7{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){2&i&<("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:[tt]})}return t})();function P7(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}let P1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[Um],imports:[T1e,ju,Rm,Ft,Ft]})}return t})(),F1e=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.localEcl="",this.localEcl=i.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd),w(_1))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://snowstorm.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclOutput","eclstring"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(i,r){1&i&&(_(0,"h1",0),k(1,"ECL Builder"),b(),_(2,"div",1)(3,"snomed-ecl-builder",2),U("eclOutput",function(s){return r.eclChanged(s)}),b()(),_(4,"div",3)(5,"button",4),k(6,"Ok"),b()()),2&i&&(y(3),em("eclstring",r.localEcl),y(2),T("mat-dialog-close",r.data))},dependencies:[Eo,zm,gA,v0,b0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const O7=new J("CdkAccordion");let O1e=0,N1e=(()=>{class t{get expanded(){return this._expanded}set expanded(e){this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=Wt.EMPTY,this.closed=new Ce,this.opened=new Ce,this.destroyed=new Ce,this.expandedChange=new Ce,this.id="cdk-accordion-child-"+O1e++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==o&&(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(i){return new(i||t)(w(O7,12),w(gn),w(PI))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[W.HasDecoratorInputTransform,"expanded","expanded",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[it([{provide:O7,useValue:void 0}]),Kt]})}return t})(),L1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({})}return t})();const V1e=["body"],B1e=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],U1e=["mat-expansion-panel-header","*","mat-action-row"];function z1e(t,n){}const H1e=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],j1e=["mat-panel-title","mat-panel-description","*"];function $1e(t,n){1&t&&(_(0,"span",1),jc(),_(1,"svg",2),xe(2,"path",3),b()()),2&t&&T("@indicatorRotate",A()._getExpandedState())}const N7=new J("MAT_ACCORDION"),L7="225ms cubic-bezier(0.4,0.0,0.2,1)",V7={indicatorRotate:Yn("indicatorRotate",[bn("collapsed, void",We({transform:"rotate(0deg)"})),bn("expanded",We({transform:"rotate(180deg)"})),Xt("expanded <=> collapsed, void => collapsed",qt(L7))]),bodyExpansion:Yn("bodyExpansion",[bn("collapsed, void",We({height:"0px",visibility:"hidden"})),bn("expanded",We({height:"*",visibility:""})),Xt("expanded <=> collapsed, void => collapsed",qt(L7))])},B7=new J("MAT_EXPANSION_PANEL");let G1e=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(B7,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}return t})(),W1e=0;const U7=new J("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let z7=(()=>{class t extends N1e{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,i,r,o,s,a,c){super(e,i,r),this._viewContainerRef=o,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Ce,this.afterCollapse=new Ce,this._inputChanges=new Me,this._headerId="mat-expansion-panel-header-"+W1e++,this.accordion=e,this._document=s,this._animationsDisabled="NoopAnimations"===a,c&&(this.hideToggle=c.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(Gr(null),un(()=>this.expanded&&!this._portal),Nn(1)).subscribe(()=>{this._portal=new sl(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,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_animationStarted(e){!H7(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){H7(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(i){return new(i||t)(w(N7,12),w(gn),w(PI),w(di),w(xt),w(pi,8),w(U7,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&ln(o,G1e,5),2&i){let s;Re(s=Pe())&&(r._lazyContent=s.first)}},viewQuery:function(i,r){if(1&i&&vt(V1e,5),2&i){let o;Re(o=Pe())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){2&i&<("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[W.HasDecoratorInputTransform,"hideToggle","hideToggle",Ue],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[it([{provide:N7,useValue:void 0},{provide:B7,useExisting:t}]),Kt,tt,Un,St],ngContentSelectors:U1e,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){if(1&i){const o=Se();Mn(B1e),ct(0),_(1,"div",1,0),U("@bodyExpansion.start",function(a){return z(o),H(r._animationStarted(a))})("@bodyExpansion.done",function(a){return z(o),H(r._animationDone(a))}),_(3,"div",2),ct(4,1),q(5,z1e,0,0,"ng-template",3),b(),ct(6,2),b()}2&i&&(y(),T("@bodyExpansion",r._getExpandedState())("id",r.id),_t("aria-labelledby",r._headerId),y(4),T("cdkPortalOutlet",r._portal))},dependencies:[al],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:[V7.bodyExpansion]},changeDetection:0})}return t})();function H7(t){return"void"===t.fromState}let q1e=(()=>{class t{constructor(e,i,r,o,s,a,c){this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=Wt.EMPTY,this.tabIndex=0;const l=e.accordion?e.accordion._stateChanges.pipe(un(d=>!(!d.hideToggle&&!d.togglePosition))):hs;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ci(e.opened,e.closed,l,e._inputChanges.pipe(un(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(un(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.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:To(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}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(i){return new(i||t)(w(z7,1),w(He),w(ta),w(gn),w(U7,8),w(pi,8),As("tabindex"))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,r){1&i&&U("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&i&&(_t("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Ki("height",r._getHeaderHeight()),lt("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:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)]},standalone:!0,features:[Kt,St],ngContentSelectors:j1e,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(i,r){1&i&&(Mn(H1e),_(0,"span",0),ct(1),ct(2,1),ct(3,2),b(),q(4,$1e,3,1,"span",1)),2&i&&(lt("mat-content-hide-toggle",!r._showToggle()),y(4),_n(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:[V7.indicatorRotate]},changeDetection:0})}return t})(),Q1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"],standalone:!0})}return t})(),K1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}return t})(),X1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,L1e,Rm]})}return t})();function Y1e(t,n){if(1&t){const e=Se();_(0,"mat-option",2),U("click",function(){return z(e),H(A().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e.display," ")}}let Z1e=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"ngModelChange","multiple","ngModel"],[3,"value","click",4,"ngFor","ngForOf"],[3,"click","value"]],template:function(i,r){1&i&&(_(0,"mat-form-field")(1,"mat-label"),k(2),b(),_(3,"mat-select",0),Hr("ngModelChange",function(s){return io(r.selectedOptions,s)||(r.selectedOptions=s),s}),q(4,Y1e,2,2,"mat-option",1),b(),_(5,"mat-hint"),k(6),b()()),2&i&&(y(2),Ke(r.binding.title),y(),T("multiple","Select (Multiple)"==r.binding.type),zr("ngModel",r.selectedOptions),y(),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,Fa,Bs,Zu,fd,ps,f0,Vs],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const J1e=["input"],eke=["formField"],tke=["*"];let j7=0;class $7{constructor(n,e){this.source=n,this.value=e}}const nke={provide:Ar,useExisting:an(()=>_A),multi:!0},G7=new J("MatRadioGroup"),ike=new J("mat-radio-default-options",{providedIn:"root",factory:function rke(){return{color:"accent"}}});let _A=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+j7++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ce}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new $7(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn))};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(1&i&&ln(o,b1,5),2&i){let s;Re(s=Pe())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],required:[W.HasDecoratorInputTransform,"required","required",Ue]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[it([nke,{provide:G7,useExisting:t}]),Kt]})}return t})(),b1=(()=>{class t{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a,c,l){this._elementRef=i,this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=s,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++j7,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Ce,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=Xi(l,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new $7(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let i;if(i=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static#e=this.\u0275fac=function(i){return new(i||t)(w(G7,8),w(He),w(gn),w(ta),w(PI),w(pi,8),w(ike,8),As("tabindex"))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(1&i&&(vt(J1e,5),vt(eke,7,He)),2&i){let o;Re(o=Pe())&&(r._inputElement=o.first),Re(o=Pe())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,r){1&i&&U("focus",function(){return r._inputElement.nativeElement.focus()}),2&i&&(_t("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),lt("mat-primary","primary"===r.color)("mat-accent","accent"===r.color)("mat-warn","warn"===r.color)("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:Xi(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],value:"value",labelPosition:"labelPosition",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],required:[W.HasDecoratorInputTransform,"required","required",Ue],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[Kt,St],ngContentSelectors:tke,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(1&i){const o=Se();Mn(),_(0,"div",2,0)(2,"div",3)(3,"div",4),U("click",function(a){return z(o),H(r._onTouchTargetClick(a))}),b(),_(4,"input",5,1),U("change",function(a){return z(o),H(r._onInputInteraction(a))}),b(),_(6,"div",6),xe(7,"div",7)(8,"div",8),b(),_(9,"div",9),xe(10,"div",10),b()(),_(11,"label",11),ct(12),b()()}2&i&&(T("labelPosition",r.labelPosition),y(2),lt("mdc-radio--disabled",r.disabled),y(2),T("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),_t("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),y(5),T("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),y(2),T("for",r.inputId))},dependencies:[rl,s2],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__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-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),oke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ac,Im,b1,Ft]})}return t})();function ske(t,n){if(1&t){const e=Se();_(0,"mat-radio-button",3),U("click",function(){const r=z(e).$implicit;return H(A().optionSelected(r))}),k(1),b()}if(2&t){const e=n.$implicit;T("value",e.code),y(),Je(" ",e.display," ")}}let ake=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-radios-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:6,vars:3,consts:[["aria-label","Select an option",1,"radio-group"],["class","radio-button",3,"value","click",4,"ngFor","ngForOf"],["id","hint"],[1,"radio-button",3,"click","value"]],template:function(i,r){1&i&&(_(0,"div"),k(1),b(),_(2,"mat-radio-group",0),q(3,ske,2,2,"mat-radio-button",1),b(),_(4,"div",2),k(5),b()),2&i&&(y(),Ke(r.binding.title),y(2),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,_A,b1],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]})}return t})(),cke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-textbox-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","placeholder","Enter text...",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"textarea",1),Hr("ngModelChange",function(s){return io(r.text,s)||(r.text=s),s}),U("ngModelChange",function(s){return r.onTextChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),zr("ngModel",r.text),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,ps,Vs],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const lke=["input"],dke=["label"],uke=["*"],hke=new J("mat-checkbox-default-options",{providedIn:"root",factory:W7});function W7(){return{color:"accent",clickAction:"check-indeterminate"}}var Do=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Do||{});const fke={provide:Ar,useExisting:an(()=>bA),multi:!0};class mke{}let pke=0;const q7=W7();let bA=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new mke;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._animationMode=s,this._options=a,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 Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Do.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||q7,this.color=this._options.color||q7.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++pke}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 i=e!=this._indeterminate;this._indeterminate=e,i&&(this._transitionCheckState(this._indeterminate?Do.Indeterminate:this.checked?Do.Checked:Do.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 i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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?Do.Checked:Do.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case Do.Init:if(i===Do.Checked)return this._animationClasses.uncheckedToChecked;if(i==Do.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Do.Unchecked:return i===Do.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Do.Checked:return i===Do.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Do.Indeterminate:return i===Do.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.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(i){return new(i||t)(w(He),w(gn),w(Be),As("tabindex"),w(pi,8),w(hke,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(1&i&&(vt(lke,5),vt(dke,5),vt(rl,5)),2&i){let o;Re(o=Pe())&&(r._inputElement=o.first),Re(o=Pe())&&(r._labelElement=o.first),Re(o=Pe())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(i,r){2&i&&(rc("id",r.id),_t("tabindex",null)("aria-label",null)("aria-labelledby",null),Ys(r.color?"mat-"+r.color:"mat-accent"),lt("_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:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[W.None,"aria-describedby","ariaDescribedby"],id:"id",required:[W.HasDecoratorInputTransform,"required","required",Ue],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Ue],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:Xi(e)],color:"color",checked:[W.HasDecoratorInputTransform,"checked","checked",Ue],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],indeterminate:[W.HasDecoratorInputTransform,"indeterminate","indeterminate",Ue]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[it([fke,{provide:hr,useExisting:t,multi:!0}]),Kt,Un,St],ngContentSelectors:uke,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(i,r){if(1&i){const o=Se();Mn(),_(0,"div",3),U("click",function(a){return z(o),H(r._preventBubblingFromLabel(a))}),_(1,"div",4,0)(3,"div",5),U("click",function(){return z(o),H(r._onTouchTargetClick())}),b(),_(4,"input",6,1),U("blur",function(){return z(o),H(r._onBlur())})("click",function(){return z(o),H(r._onInputClick())})("change",function(a){return z(o),H(r._onInteractionEvent(a))}),b(),xe(6,"div",7),_(7,"div",8),jc(),_(8,"svg",9),xe(9,"path",10),b(),Jv(),xe(10,"div",11),b(),xe(11,"div",12),b(),_(12,"label",13,2),ct(14),b()()}if(2&i){const o=jt(2);T("labelPosition",r.labelPosition),y(4),lt("mdc-checkbox--selected",r.checked),T("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),_t("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),y(7),T("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),y(),T("for",r.inputId)}},dependencies:[rl,s2],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})}return t})(),bke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[bA,Ft,Ft]})}return t})();function vke(t,n){if(1&t){const e=Se();_(0,"mat-checkbox",3),U("click",function(){return z(e),H(A().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;em("formControlName",e.display),y(),Je(" ",e.display," ")}}let yke=(()=>{class t{constructor(e,i){this.terminologyService=e,this._formBuilder=i,this.selectionChange=new Ce,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(CH))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-checkbox-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:4,vars:3,consts:[[1,"check-group",3,"formGroup"],["class","check","labelPosition","before",3,"formControlName","click",4,"ngFor","ngForOf"],[1,"hint"],["labelPosition","before",1,"check",3,"click","formControlName"]],template:function(i,r){1&i&&(_(0,"form",0),q(1,vke,2,2,"mat-checkbox",1),_(2,"span",2),k(3),b()()),2&i&&(T("formGroup",r.checkboxes),y(),T("ngForOf",r.options),y(2),Ke(r.binding.note))},dependencies:[ro,l0,ps,n0,wd,d0,bA],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]})}return t})(),xke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"input",1),Hr("ngModelChange",function(s){return io(r.value,s)||(r.value=s),s}),U("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),zr("ngModel",r.value),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,Jw,ps,r1,Vs],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})(),wke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModelChange","ngModel"]],template:function(i,r){1&i&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),b(),_(3,"input",1),Hr("ngModelChange",function(s){return io(r.value,s)||(r.value=s),s}),U("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(y(2),Ke(r.binding.title),y(),zr("ngModel",r.value),y(2),Ke(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ra,Jw,ps,r1,Vs],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const kke=["newPanel"],Cke=()=>({standalone:!0}),vA=()=>({});function Tke(t,n){1&t&&(_(0,"mat-panel-description"),k(1," Click to add new binding "),b())}function Eke(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return z(e),H(null==(r=A().newBindingForm.get("title"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Ske(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function Dke(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures + Situations"),b())}function Ike(t,n){if(1&t&&(_(0,"mat-option",47),k(1),b()),2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e," ")}}function Ake(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return z(e),H(null==(r=A(2).newBindingForm.get("ecl"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Mke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14)(1,"mat-label"),k(2,"Answer options: ECL Expression"),b(),xe(3,"input",48),_(4,"a",49),U("click",function(){let r;z(e);const o=A();return H(o.openEclBuilder(null==(r=o.newBindingForm.get("ecl"))?null:r.value,"ecl"))}),k(5,"ECL Builder"),b(),q(6,Ake,3,0,"button",16),_(7,"mat-error"),k(8),b()()}if(2&t){let e;const i=A();y(6),T("ngIf",null==(e=i.newBindingForm.get("ecl"))?null:e.value),y(2),Ke(i.getErrorMessage("ecl"))}}function Rke(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function Pke(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),b())}function Fke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14),xe(1,"app-autocomplete-binding",50),_(2,"a",19),U("click",function(){return z(e),H(A().toggleCheckboxBinding())}),q(3,Rke,2,0,"span",10)(4,Pke,2,0,"span",10),b(),_(5,"mat-error"),k(6),b()()}if(2&t){const e=A();y(),T("binding",e.checkboxBinding),y(2),T("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),y(),T("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),y(2),Ke(e.getErrorMessage("ecl"))}}function Oke(t,n){if(1&t){const e=Se();_(0,"button",46),U("click",function(){let r;return z(e),H(null==(r=A(2).newBindingForm.get("note"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Nke(t,n){if(1&t&&(_(0,"mat-form-field",51)(1,"mat-label"),k(2,"Note"),b(),xe(3,"input",52),q(4,Oke,3,0,"button",16),_(5,"mat-error"),k(6),b()()),2&t){let e;const i=A();y(4),T("ngIf",null==(e=i.newBindingForm.get("note"))?null:e.value),y(2),Ke(i.getErrorMessage("note"))}}function Lke(t,n){if(1&t){const e=Se();_(0,"button",27),U("click",function(){return z(e),H(A().addBinding())}),k(1,"Add binding"),b()}}function Vke(t,n){if(1&t){const e=Se();_(0,"button",27),U("click",function(){z(e);const r=A();return r.addBinding(),H(r.clearOutput())}),k(1,"Update binding"),b()}}function Bke(t,n){if(1&t){const e=Se();_(0,"button",35),U("click",function(){z(e);const r=A();return H(r.showRightContainer=!r.showRightContainer)}),k(1),b()}if(2&t){const e=A();y(),Je(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Uke(t,n){1&t&&(_(0,"button",53),k(1," Download form "),b()),2&t&&(A(),T("matMenuTriggerFor",jt(69)))}function zke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"p",55),k(2),b(),_(3,"button",56),U("click",function(){return z(e),H(A().titleEditMode=!0)}),_(4,"mat-icon"),k(5,"edit"),b()()()}if(2&t){const e=A();y(2),Ke(e.formTitle)}}function Hke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"form",57)(2,"mat-form-field")(3,"mat-label"),k(4,"Title"),b(),_(5,"input",58),Hr("ngModelChange",function(r){z(e);const o=A();return io(o.formTitle,r)||(o.formTitle=r),H(r)}),U("ngModelChange",function(){return z(e),H(A().refreshFhirQuestionnaire())}),b(),_(6,"button",46),U("click",function(){return z(e),H(A().formTitle="")}),_(7,"mat-icon"),k(8,"close"),b()()()(),_(9,"button",56),U("click",function(){return z(e),H(A().titleEditMode=!1)}),_(10,"mat-icon"),k(11,"save"),b()()()}if(2&t){const e=A();y(5),zr("ngModel",e.formTitle),T("ngModelOptions",us(2,Cke))}}function jke(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",67),U("selectionChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function $ke(t,n){if(1&t){const e=Se();_(0,"app-dropdown-binding",67),U("selectionChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Gke(t,n){if(1&t){const e=Se();_(0,"app-radios-binding",67),U("selectionChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Wke(t,n){if(1&t&&(_(0,"span",68),k(1),b()),2&t){const e=A().$implicit;y(),Ke(e.title)}}function qke(t,n){if(1&t){const e=Se();_(0,"app-textbox-binding",69),U("textChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Qke(t,n){if(1&t){const e=Se();_(0,"app-integer-binding",69),U("textChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Kke(t,n){if(1&t){const e=Se();_(0,"app-decimal-binding",69),U("textChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Xke(t,n){if(1&t){const e=Se();_(0,"app-checkbox-binding",67),U("selectionChange",function(r){z(e);const o=A().$implicit;return H(A().optionSelected(o.title,o.code,r))}),b()}2&t&&T("binding",A().$implicit)}function Yke(t,n){if(1&t&&(_(0,"button",70)(1,"mat-icon"),k(2,"info"),b()()),2&t){const e=A().$implicit;T("matMenuTriggerFor",jt(14))("disabled",!e.code&&!e.ecl)}}function Zke(t,n){if(1&t){const e=Se();_(0,"span",6),U("click",function(r){return z(e),H(r.stopPropagation())}),_(1,"h4"),k(2,"Question terminology binding"),b(),_(3,"pre"),k(4),b()()}if(2&t){const e=A().$implicit;T("disableRipple",!0),y(4),Iu("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function Jke(t,n){if(1&t){const e=Se();_(0,"span",6),U("click",function(r){return z(e),H(r.stopPropagation())}),_(1,"h4"),k(2,"Answer terminology binding"),b(),_(3,"pre"),k(4),b()()}if(2&t){const e=A().$implicit;T("disableRipple",!0),y(4),Ke(e.ecl)}}function eCe(t,n){if(1&t){const e=Se();_(0,"div",59)(1,"div",60)(2,"mat-icon",61),k(3,"drag_indicator"),b(),q(4,jke,1,1,"app-autocomplete-binding",62)(5,$ke,1,1,"app-dropdown-binding",62)(6,Gke,1,1,"app-radios-binding",62)(7,Wke,2,1,"span",63)(8,qke,1,1,"app-textbox-binding",64)(9,Qke,1,1,"app-integer-binding",64)(10,Kke,1,1,"app-decimal-binding",64)(11,Xke,1,1,"app-checkbox-binding",62)(12,Yke,3,2,"button",65),_(13,"mat-menu",null,0),q(15,Zke,5,3,"span",66)(16,Jke,5,2,"span",66),b(),_(17,"button",56),U("click",function(){const r=z(e).index;return H(A().bindings.splice(r,1))}),_(18,"mat-icon"),k(19,"delete"),b()(),_(20,"button",56),U("click",function(){const r=z(e).index;return H(A().edit(r))}),_(21,"mat-icon"),k(22,"edit"),b()()()()}if(2&t){const e=n.$implicit;y(4),T("ngIf","Autocomplete"==e.type),y(),T("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),y(),T("ngIf","Options"==e.type),y(),T("ngIf","Section header"==e.type),y(),T("ngIf","Text box"==e.type),y(),T("ngIf","Integer"==e.type),y(),T("ngIf","Decimal"==e.type),y(),T("ngIf","Checkbox"==e.type),y(),T("ngIf","Section header"!=e.type),y(3),T("ngIf",e.code),y(),T("ngIf",e.ecl)}}function tCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){z(e);const r=A(2);return H(r.saveOutput(r.outputStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){z(e);const r=A(2);return H(r.copyOutputToClipboard(r.outputStr))}),xe(4,"mat-icon",78),b()()}}function nCe(t,n){if(1&t&&(_(0,"div",71),q(1,tCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=A();y(),T("ngIf",e.showRightContainer),y(),T("options",us(4,vA))("lang","json")("innerHTML",e.responseStr,yu)}}function iCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){z(e);const r=A(2);return H(r.saveBundleOutput(r.responseBundleStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){z(e);const r=A(2);return H(r.copyOutputToClipboard(r.responseBundleStr))}),xe(4,"mat-icon",78),b()()}}function rCe(t,n){if(1&t&&(_(0,"div",71),q(1,iCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=A();y(),T("ngIf",e.showRightContainer),y(),T("options",us(4,vA))("lang","json")("innerHTML",e.responseBundleStr,yu)}}function oCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),U("click",function(){z(e);const r=A(2);return H(r.saveOutput(r.fhirQuestionnaireStr))}),xe(2,"mat-icon",76),b(),_(3,"button",77),U("click",function(){z(e);const r=A(2);return H(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),xe(4,"mat-icon",78),b()()}}function sCe(t,n){if(1&t&&(_(0,"div",71),q(1,oCe,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=A();y(),T("ngIf",e.showRightContainer),y(),T("options",us(4,vA))("lang","json")("innerHTML",e.fhirQuestionnaireStr,yu)}}let aCe=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.response={},this.responseStr="{}",this.responseBundle={},this.responseBundleStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingObservables={title:"Question code (Observables)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingAll={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)| OR << 243796009 |Situation with explicit context (situation)|",value:""},this.codeBinding=this.codeBindingAll,this.checkboxBinding=JSON.parse(JSON.stringify(this.codeBindingAll)),this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new Vm({title:new gs("",[Nm.required,Nm.maxLength(50)]),code:new gs("",[]),type:new gs("",[Nm.required]),ecl:new gs("",[]),value:new gs("",[]),note:new gs("",[Nm.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,s)=>o.localeCompare(s)),this.showRightContainer=!1}ngOnInit(){this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return me(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:i,code:r,type:o,ecl:s,value:a,note:c}=e.newBindingForm.controls;let l={title:i.value,code:r.value,type:o.value,ecl:s.value,value:a.value,note:c.value},d=!1;s.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(s.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,s.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(s.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,s.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,s.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]},this.bindings.forEach((e,i)=>{const r=this.createItemForBinding(e,i);r&&this.fhirQuestionnaire.item.push(r)}),this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}createItemForBinding(e,i){const r=this.initializeBaseItem(e,i);return["Select (Single)","Select (Multiple)","Options","Autocomplete"].includes(e.type)&&(r.extension=this.getExtensionForSelectableTypes(),r.answerValueSet=this.getAnswerValueSet(e)),"Autocomplete"===e.type&&r.extension.push(this.getAutocompleteExtension()),"Select (Multiple)"===e.type&&(r.repeats=!0),r}initializeBaseItem(e,i){const r={linkId:i+1,text:e.title,type:this.getQuestionnaireItemType(e.type)};return e.code&&(r.code=[{system:"http://snomed.info/sct",code:e.code.code,display:e.code.display}]),r}getQuestionnaireItemType(e){switch(e){case"Section header":return"display";case"Select (Single)":case"Select (Multiple)":case"Options":case"Autocomplete":return"choice";case"Text box":return"text";case"Integer":return"integer";case"Decimal":return"decimal";default:return console.warn(`Unhandled binding type: ${e}`),null}}getExtensionForSelectableTypes(){return[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}]}getAutocompleteExtension(){return{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}}getAnswerValueSet(e){return`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(e.ecl)}`}getEclPreview(e){var i=this;return me(function*(){return Co((yield i.terminologyService.expandValueSet(e,"")).pipe(mt(o=>o)))})()}edit(e){this.indexInEdit=e;const i=this.bindings[e];this.newBindingForm.setValue({title:i.title,code:i.code?i.code:"",type:i.type,ecl:i.ecl,value:i.value,note:i.note}),this.newPanel.open()}onDrop(e){aA(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const i=this.newBindingForm.get(e);return i?i.errors:null}getErrorMessage(e){const i=this.getErrors(e);if(i){if(i.required)return"This field is required";if(i.maxlength)return`This field must be less than ${i.maxlength.requiredLength} characters`;if(i.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(i.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}refreshResponse(){this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,i]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2),this.refreshResponseBundle()}refreshResponseBundle(){this.responseBundle={resourceType:"Bundle",type:"collection",entry:[]};for(let[e,i]of Object.entries(this.response)){let r=i;const o=r.code?{coding:[{system:"http://snomed.info/sct",code:r.code.code,display:r.code.display}]}:void 0,s=r.value?.code?{coding:[{system:"http://snomed.info/sct",code:r.value.code,display:r.value.display}]}:void 0;let a={resourceType:"Observation",status:"final",category:[{coding:[{system:"http://terminology.hl7.org/CodeSystem/observation-category",code:"survey",display:"Survey"}]}],subject:{reference:"Patient/123"}};a.code=o||{coding:[{system:"http://snomed.info/sct",code:"363788007",display:"Clinical history/examination observable (observable entity)"}]},s&&(a.valueCodeableConcept=s),r.value&&"string"==typeof r.value&&(a.valueString=r.value),(a.valueCodeableConcept||a.valueString)&&this.responseBundle.entry.push(a)}this.responseBundleStr=JSON.stringify(this.responseBundle,null,2)}optionSelected(e,i,r){this.output[e]={code:i,value:r},i||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.formTitle}-data.json`)}saveBundleOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.formTitle}-fhir-bundle.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const i=new FileReader;i.onloadend=r=>{if(i.result){const o=JSON.parse(i.result?.toString());Array.isArray(o)?(this.bindings=o,this.formTitle="My new form"):(this.bindings=[],this.bindings=o.bindings,this.formTitle=o.title),this.clearOutput(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},i.readAsText(e.target.files[0])}}openEclBuilder(e,i){this.dialog.open(F1e,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const s=this.newBindingForm.get(i);s&&s.setValue(o.ecl)}})}toggleCodeBinding(){this.codeBinding=this.codeBinding===this.codeBindingAll?this.codeBindingObservables:this.codeBindingAll}toggleCheckboxBinding(){this.checkboxBinding=this.checkboxBinding.ecl===this.codeBindingAll.ecl?JSON.parse(JSON.stringify(this.codeBindingObservables)):JSON.parse(JSON.stringify(this.codeBindingAll)),this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(eA),w(Um))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(i,r){if(1&i&&vt(kke,5),2&i){let o;Re(o=Pe())&&(r.newPanel=o.first)}},decls:94,vars:27,consts:[["substancePopoverMenu","matMenu"],["newPanel",""],["fileInput",""],["demosMenu","matMenu"],["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click","disableRipple"],[1,"flex","flex-row","mb-8"],[1,"w-2/3"],[1,"editPanel","w-full","pt-4","pb-4",3,"opened","closed"],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"form-row"],[1,"form-column"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["href","javascript:void(0)",1,"bottom-right-link",3,"click"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],["class","input-field full-width",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],[1,"w-1/3"],[1,"flex","flex-row","gap-4","justify-end","flex-wrap"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","Data collected (FHIR Bundle)"],["label","FHIR Questionnaire"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"value"],["matInput","","type","text","formControlName","ecl","placeholder","Enter ECL..."],["href","javascript:void(0)",1,"top-right-link",3,"click"],["formControlName","ecl",1,"grow",3,"binding"],[1,"input-field","full-width"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"compact-row-container"],[1,"title"],["mat-icon-button","","color","primary",1,"tool",3,"click"],[1,"row","form-title"],["matInput","","type","text","placeholder","Enter title...",3,"ngModelChange","ngModel","ngModelOptions"],["cdkDrag","",1,"output-panel"],[1,"row","control"],["cdkDragHandle","",1,"tool","drag-handle"],["class","grow",3,"binding","selectionChange",4,"ngIf"],["class","title grow",4,"ngIf"],["class","grow",3,"binding","textChange",4,"ngIf"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled",4,"ngIf"],["mat-menu-item","",3,"disableRipple","click",4,"ngIf"],[1,"grow",3,"selectionChange","binding"],[1,"title","grow"],[1,"grow",3,"textChange","binding"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor","disabled"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",4)(1,"h3"),k(2,"Terminology Bindings Sandbox "),_(3,"button",5)(4,"mat-icon"),k(5,"info"),b()(),_(6,"mat-menu",null,0)(8,"span",6),U("click",function(a){return z(o),H(a.stopPropagation())}),_(9,"h4"),k(10,"Terminology Bindings Sandbox"),b(),_(11,"p"),k(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),b()()()(),_(13,"div",7)(14,"div",8)(15,"mat-expansion-panel",9,1),U("opened",function(){return z(o),H(r.panelOpenState=!0)})("closed",function(){return z(o),H(r.panelOpenState=!1)}),_(17,"mat-expansion-panel-header")(18,"mat-panel-title")(19,"h4"),k(20,"New binding:"),b()(),q(21,Tke,2,0,"mat-panel-description",10),b(),_(22,"div")(23,"form",11)(24,"div",12)(25,"div",13)(26,"h5"),k(27,"Question"),b(),_(28,"mat-form-field",14)(29,"mat-label"),k(30,"Question text"),b(),xe(31,"input",15),q(32,Eke,3,0,"button",16),_(33,"mat-error"),k(34),b()(),_(35,"mat-form-field",17),xe(36,"app-autocomplete-binding",18),_(37,"a",19),U("click",function(){return z(o),H(r.toggleCodeBinding())}),q(38,Ske,2,0,"span",10)(39,Dke,2,0,"span",10),b(),_(40,"mat-error"),k(41),b()()(),_(42,"div",13)(43,"h5"),k(44,"Answer"),b(),_(45,"mat-form-field",14)(46,"mat-label"),k(47,"Answer Type"),b(),_(48,"mat-select",20),q(49,Ike,2,2,"mat-option",21),b(),_(50,"mat-error"),k(51),b()(),q(52,Mke,9,2,"mat-form-field",22)(53,Fke,7,4,"mat-form-field",22),b()(),q(54,Nke,7,2,"mat-form-field",23),b(),xe(55,"br"),_(56,"div",24),xe(57,"span",25),q(58,Lke,2,0,"button",26)(59,Vke,2,0,"button",26),_(60,"button",27),U("click",function(){return z(o),H(r.cancelEdit())}),k(61,"Cancel"),b()()()()(),_(62,"div",28)(63,"div",29),q(64,Bke,2,1,"button",30),_(65,"input",31,2),U("change",function(a){return z(o),H(r.uploadFile(a))}),b(),q(67,Uke,2,1,"button",32),_(68,"mat-menu",33,3)(70,"button",34),U("click",function(){return z(o),H(r.saveForm())}),k(71,"Download"),b(),_(72,"button",34),U("click",function(){return z(o),H(r.saveOutput(r.fhirQuestionnaireStr))}),k(73,"Download as FHIR Questionnaire"),b()(),_(74,"button",35),U("click",function(){return z(o),H(jt(66).click())}),k(75,"Upload form"),b(),_(76,"button",35),U("click",function(){return z(o),H(r.loadExample1())}),k(77,"Example"),b(),_(78,"button",35),U("click",function(){return z(o),H(r.clear())}),k(79,"Clear"),b()()()(),q(80,zke,6,1,"div",36)(81,Hke,12,3,"div",36),_(82,"div",37)(83,"div",38)(84,"div",39),U("cdkDropListDropped",function(a){return z(o),H(r.onDrop(a))}),q(85,eCe,23,11,"div",40),b()(),_(86,"div",38)(87,"mat-tab-group",41)(88,"mat-tab",42),q(89,nCe,4,5,"div",43),b(),_(90,"mat-tab",44),q(91,rCe,4,5,"div",43),b(),_(92,"mat-tab",45),q(93,sCe,4,5,"div",43),b()()()()()}if(2&i){let o;const s=jt(7);y(3),T("matMenuTriggerFor",s),y(5),T("disableRipple",!0),y(13),T("ngIf",!r.panelOpenState),y(2),T("formGroup",r.newBindingForm),y(9),T("ngIf",null==(o=r.newBindingForm.get("title"))?null:o.value),y(2),Ke(r.getErrorMessage("title")),y(2),T("binding",r.codeBinding),y(2),T("ngIf",r.codeBinding===r.codeBindingAll),y(),T("ngIf",r.codeBinding!=r.codeBindingAll),y(2),Ke(r.getErrorMessage("code")),y(8),T("ngForOf",r.controlTypes),y(2),Ke(r.getErrorMessage("type")),y(),T("ngIf","Section header"!=r.newBindingForm.controls.type.value&&"Text box"!=r.newBindingForm.controls.type.value&&"Checkbox"!=r.newBindingForm.controls.type.value&&"Integer"!=r.newBindingForm.controls.type.value&&"Decimal"!=r.newBindingForm.controls.type.value),y(),T("ngIf","Checkbox"==r.newBindingForm.controls.type.value),y(),T("ngIf","Section header"!=r.newBindingForm.controls.type.value),y(4),T("ngIf",-1==r.indexInEdit),y(),T("ngIf",r.indexInEdit>-1),y(5),T("ngIf",r.bindings.length),y(3),T("ngIf",r.bindings.length),y(13),T("ngIf",!r.titleEditMode),y(),T("ngIf",r.titleEditMode),y(2),T("@growShrink",r.stateName),y(2),T("ngForOf",r.bindings),y(),T("@openClose",r.stateName),y(3),T("ngIf",r.bindings.length>0),y(2),T("ngIf",r.bindings.length>0),y(2),T("ngIf",r.bindings.length>0)}},dependencies:[ro,jr,d1,uA,lA,v7,Eo,ia,So,Pa,mc,Wu,Fa,Bs,EH,DH,fd,kd,l0,ra,ps,n0,wd,d0,l1,h0,f0,Vs,Xu,Ju,z7,q1e,K1e,Q1e,u0,Z1e,ake,cke,yke,xke,wke],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{border:1px solid #cccccc00;border-radius:5px;background-color:#a0c8e5}.control[_ngcontent-%COMP%]{margin-bottom:30px}.output-panel[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%] .tool[_ngcontent-%COMP%]{opacity:0;transition:opacity .5s}.row[_ngcontent-%COMP%]:hover .tool[_ngcontent-%COMP%]{opacity:1}.drag-handle[_ngcontent-%COMP%]{cursor:move;color:#616161}.title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-bottom:10px;margin-left:2rem}.action-button[_ngcontent-%COMP%]{position:absolute;right:0;margin-right:20px}.action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:5px}.row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.compact-row-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:1rem}.row-container-item[_ngcontent-%COMP%]{width:100%;padding:10px}.output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.top-right-link[_ngcontent-%COMP%]{position:absolute;top:5px;right:0;font-size:smaller}.form-title[_ngcontent-%COMP%]{margin-left:1rem}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}.bottom-right-link[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;font-size:smaller}.form-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px;width:100%}.form-column[_ngcontent-%COMP%]{flex:1 1 0px;padding-right:10px;padding-left:10px;display:flex;flex-direction:column;width:100%}.input-field.full-width[_ngcontent-%COMP%]{width:calc(100% - 20px);margin-bottom:20px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}"],data:{animation:[Yn("openClose",[bn("open",We({opacity:1,width:"50%"})),bn("closed",We({opacity:0,width:"0"})),Xt("open <=> closed",[qt("0.5s")])]),Yn("growShrink",[bn("open",We({width:"50%"})),bn("closed",We({width:"100%"})),Xt("open <=> closed",[qt("0.5s")])])]}})}return t})(),cCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(i,r){1&i&&(_(0,"p"),k(1,"prescription-main works!, no?"),b())}})}return t})();const lCe=["mat-sort-header",""],dCe=["*"];function uCe(t,n){if(1&t){const e=Se();_(0,"div",2),U("@arrowPosition.start",function(){return z(e),H(A()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return z(e),H(A()._disableViewStateAnimation=!1)}),xe(1,"div",3),_(2,"div",4),xe(3,"div",5)(4,"div",6)(5,"div",7),b()()}if(2&t){const e=A();T("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),y(2),T("@indicator",e._getArrowDirectionState()),y(),T("@leftPointer",e._getArrowDirectionState()),y(),T("@rightPointer",e._getArrowDirectionState())}}const Q7=new J("MAT_SORT_DEFAULT_OPTIONS");let Td=(()=>{class t{get direction(){return this._direction}set direction(e){this._direction=e}constructor(e){this._defaultOptions=e,this._initializedStream=new nw(1),this.sortables=new Map,this._stateChanges=new Me,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new Ce,this.initialized=this._initializedStream}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function hCe(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Q7,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[W.None,"matSortActive","active"],start:[W.None,"matSortStart","start"],direction:[W.None,"matSortDirection","direction"],disableClear:[W.HasDecoratorInputTransform,"matSortDisableClear","disableClear",Ue],disabled:[W.HasDecoratorInputTransform,"matSortDisabled","disabled",Ue]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[Kt,Un]})}return t})();const Ed=I_e.ENTERING+" "+D_e.STANDARD_CURVE,Hm={indicator:Yn("indicator",[bn("active-asc, asc",We({transform:"translateY(0px)"})),bn("active-desc, desc",We({transform:"translateY(10px)"})),Xt("active-asc <=> active-desc",qt(Ed))]),leftPointer:Yn("leftPointer",[bn("active-asc, asc",We({transform:"rotate(-45deg)"})),bn("active-desc, desc",We({transform:"rotate(45deg)"})),Xt("active-asc <=> active-desc",qt(Ed))]),rightPointer:Yn("rightPointer",[bn("active-asc, asc",We({transform:"rotate(45deg)"})),bn("active-desc, desc",We({transform:"rotate(-45deg)"})),Xt("active-asc <=> active-desc",qt(Ed))]),arrowOpacity:Yn("arrowOpacity",[bn("desc-to-active, asc-to-active, active",We({opacity:1})),bn("desc-to-hint, asc-to-hint, hint",We({opacity:.54})),bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",We({opacity:0})),Xt("* => asc, * => desc, * => active, * => hint, * => void",qt("0ms")),Xt("* <=> *",qt(Ed))]),arrowPosition:Yn("arrowPosition",[Xt("* => desc-to-hint, * => desc-to-active",qt(Ed,Am([We({transform:"translateY(-25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-desc, * => active-to-desc",qt(Ed,Am([We({transform:"translateY(0)"}),We({transform:"translateY(25%)"})]))),Xt("* => asc-to-hint, * => asc-to-active",qt(Ed,Am([We({transform:"translateY(25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-asc, * => active-to-asc",qt(Ed,Am([We({transform:"translateY(0)"}),We({transform:"translateY(-25%)"})]))),bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",We({transform:"translateY(0)"})),bn("hint-to-desc, active-to-desc, desc",We({transform:"translateY(-25%)"})),bn("hint-to-asc, active-to-asc, asc",We({transform:"translateY(25%)"}))]),allowChildren:Yn("allowChildren",[Xt("* <=> *",[Tw("@*",Cw(),{optional:!0})])])};let v1=(()=>{class t{constructor(){this.changes=new Me}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const mCe={provide:v1,deps:[[new Hl,new df,v1]],useFactory:function fCe(t){return t||new v1}};let yA=(()=>{class t{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}constructor(e,i,r,o,s,a,c,l){this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",l?.arrowPosition&&(this.arrowPosition=l?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Ci(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(v1),w(gn),w(Td,8),w("MAT_SORT_HEADER_COLUMN_DEF",8),w(ta),w(He),w(d9,8),w(Q7,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){1&i&&U("click",function(){return r._handleClick()})("keydown",function(s){return r._handleKeydown(s)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),2&i&&(_t("aria-sort",r._getAriaSortAttribute()),lt("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[W.None,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Ue],sortActionDescription:"sortActionDescription",disableClear:[W.HasDecoratorInputTransform,"disableClear","disableClear",Ue]},exportAs:["matSortHeader"],standalone:!0,features:[Kt,St],attrs:lCe,ngContentSelectors:dCe,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){1&i&&(Mn(),_(0,"div",0)(1,"div",1),ct(2),b(),q(3,uCe,6,6,"div",2),b()),2&i&&(lt("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before","before"===r.arrowPosition),_t("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),y(3),_n(3,r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Hm.indicator,Hm.leftPointer,Hm.rightPointer,Hm.arrowOpacity,Hm.arrowPosition,Hm.allowChildren]},changeDetection:0})}return t})(),pCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:[mCe],imports:[Ft]})}return t})(),gCe=(()=>{class t{saveItem(e,i){localStorage.setItem(e,i)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}isLocalStorageSupported(){try{const e="__test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jm=(()=>{class t{constructor(e,i){this.http=e,this.storageService=i,this.baseUrlSubject=new wi("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new wi(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const i=this.storageService.getItem("userTag");i&&this.userTagSubject.next(i)}}setBaseUrl(e){this.baseUrlSubject.next(e),this.storageService.saveItem("baseUrl",e)}getBaseUrl(){return this.baseUrlSubject.getValue()}setUserTag(e){this.userTagSubject.next(e),this.storageService.saveItem("userTag",e)}getUserTag(){return this.userTagSubject.getValue()}postQuestionnaire(e){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire`,e)}getQuestionnairesByTag(e){return this.http.get(`${this.baseUrlSubject.value}/Questionnaire?_tag=${e}`)}tagQuestionnaire(e,i){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:i}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,i){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${i}`,e).pipe(Dr(o=>404===o.status?this.postQuestionnaire(e):lm(o))):this.postQuestionnaire(e)}getQuestionnaireHistory(e){return this.http.get(`${this.getBaseUrl()}/Questionnaire/${e}/_history`)}getSpecificQuestionnaireVersion(e,i){return this.http.get(`${this.getBaseUrl()}/Questionnaire/${e}/_history/${i}`)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y(gCe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _Ce(t,n){if(1&t&&(_(0,"mat-option",15),k(1),b()),2&t){const e=n.$implicit;T("value",e),y(),Je(" ",e.title," ")}}function bCe(t,n){1&t&&xe(0,"mat-spinner",16)}function vCe(t,n){if(1&t){const e=Se();_(0,"div",17)(1,"span",18),k(2,"\u2261"),b(),k(3),_(4,"button",19),U("click",function(){const r=z(e).index;return H(A().deleteQuestionnaire(r))}),_(5,"mat-icon"),k(6,"delete"),b()()()}if(2&t){const e=n.$implicit;y(3),Je(" ",e.title," ")}}let K7=(()=>{class t{constructor(e,i,r,o){this.fb=e,this.fhirService=i,this.data=r,this.dialogRef=o,this.allQuestionnaires=[],this.availableQuestionnaires=[],this.addedQuestionnaires=[],this.userTag="",this.loading=!1}ngOnInit(){this.questionnaireForm=this.fb.group({selectedQuestionnaire:[{value:"",disabled:!0}],assignedName:[{value:"",disabled:!0}]}),this.data&&(this.addedQuestionnaires=this.data.questionnaires,this.questionnaireForm.get("assignedName")?.setValue(this.data.title)),this.questionnaireForm.get("selectedQuestionnaire"),this.userTag=this.fhirService.getUserTag(),this.loadAvailableQuestionnaires()}updateAvailableQuestionnaires(){this.availableQuestionnaires=this.addedQuestionnaires?this.allQuestionnaires.filter(e=>!this.addedQuestionnaires.some(i=>i.id===e.id)):this.allQuestionnaires,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode))}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(i=>i.resource),this.allQuestionnaires.sort((i,r)=>i.title.localeCompare(r.title)),this.updateAvailableQuestionnaires(),this.loading=!1,this.questionnaireForm?.get("selectedQuestionnaire")?.enable(),this.questionnaireForm?.get("assignedName")?.enable()})}addQuestionnaire(){const e=this.questionnaireForm.value;e.selectedQuestionnaire&&(this.addedQuestionnaires.push({...e.selectedQuestionnaire,assignedName:e.assignedName}),this.questionnaireForm.get("selectedQuestionnaire")?.reset(),this.updateAvailableQuestionnaires())}drop(e){aA(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}static#e=this.\u0275fac=function(i){return new(i||t)(w(CH),w(jm),w(_1),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-create-root-module"]],decls:26,vars:6,consts:[[1,"form-layout",3,"formGroup"],[1,"form-row"],[1,"full-width"],["matInput","","formControlName","assignedName"],[1,"half-width"],["formControlName","selectedQuestionnaire"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",1,"add-button",3,"click","disabled"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"questionnaire-list"],[1,"list",3,"cdkDropListDropped"],["cdkDrag","","class","cdk-drag",4,"ngFor","ngForOf"],[1,"button-container"],["mat-flat-button","","color","primary","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"click","disabled"],[3,"value"],["diameter","35",1,"loading-spinner"],["cdkDrag","",1,"cdk-drag"],[1,"drag-handle"],["mat-icon-button","","aria-label","Delete questionnaire",3,"click"]],template:function(i,r){1&i&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Create a modular Questionnaire"),b(),_(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),k(7,"Assign Name"),b(),xe(8,"input",3),b()(),_(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),k(12,"Select Child Questionnaire"),b(),_(13,"mat-select",5),q(14,_Ce,2,2,"mat-option",6),b()(),_(15,"button",7),U("click",function(){return r.addQuestionnaire()}),k(16,"Add questionnaire"),b(),q(17,bCe,1,0,"mat-spinner",8),b()(),_(18,"div",9)(19,"cdk-drop-list",10),U("cdkDropListDropped",function(s){return r.drop(s)}),q(20,vCe,7,1,"div",11),b()()(),_(21,"mat-dialog-actions",12)(22,"button",13),k(23,"Cancel"),b(),_(24,"button",14),U("click",function(){return r.closeModal()}),k(25,"Save"),b()()),2&i&&(y(3),T("formGroup",r.questionnaireForm),y(11),T("ngForOf",r.availableQuestionnaires),y(),T("disabled",r.loading),y(2),T("ngIf",r.loading),y(3),T("ngForOf",r.addedQuestionnaires),y(4),T("disabled",r.isSaveDisabled()||r.loading))},dependencies:[ro,jr,uA,lA,Eo,ia,So,Fa,Bs,fd,md,kd,l0,ra,ps,n0,wd,d0,f0,zm,v0,b0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]})}return t})(),X7=(()=>{class t{constructor(e,i){this.http=e,this.fhirService=i}generateRootQuestionnaire(e,i){var r=this;return me(function*(){try{let s=yield Co(r.http.get("assets/questionnaires/root-questionnaire-template.json"));s.title=e;let a=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),i.forEach(d=>{a++,d.url=c+"/Questionnaire/"+d.id,s.item.push({linkId:a.toString(),text:d.title,type:"group",required:!1,item:[{extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire",valueCanonical:d.url}],linkId:a.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),s}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}getRootQuestionnaireData(e){var i=this;return me(function*(){if(!e||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=e.item.filter(a=>"group"===a.type&&a.item&&Array.isArray(a.item)).flatMap(a=>a.item).map(function(){var a=me(function*(c){const l=c.extension?.find(d=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===d.url);return l?i.getQuestionnaireFromUrl(l.valueCanonical):null});return function(c){return a.apply(this,arguments)}}());return{title:r,questionnaires:(yield Promise.all(o)).filter(a=>null!==a)}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(i=>"assemble-root"===i.valueCode)}assembleQuestionnaire(e){var i=this;return me(function*(){if(e=JSON.parse(JSON.stringify(e)),!i.checkForAssembleRoot(e))return null;for(let r of e.item)if("group"==r.type){r.extension=[];for(let o of r.item)if(o.extension&&Array.isArray(o.extension))for(let s of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===s.url){let a=yield i.getQuestionnaireFromUrl(s.valueCanonical);a&&(r.item=a.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:s.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}disassembleQuestionnaire(e){var i=this;return me(function*(){if(!e||!e.item||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=[];for(const s of e.item)if("group"===s.type&&s.extension&&Array.isArray(s.extension)){const a=s.extension.find(c=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"===c.url);if(a){const c=a.valueCanonical,l=yield i.getQuestionnaireFromUrl(c);l&&o.push(l)}}return{title:r,questionnaires:o}})()}getQuestionnaireFromUrl(e){var i=this;return me(function*(){try{return yield Co(i.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cd),Y(jm))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const yCe=t=>["status-pill",t],xCe=()=>["status-pill","active"],wCe=()=>["status-pill","draft"];function kCe(t,n){1&t&&(_(0,"th",17),k(1," Title "),b())}function CCe(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.title," ")}}function TCe(t,n){1&t&&(_(0,"th",17),k(1," Status "),b())}function ECe(t,n){if(1&t&&(_(0,"td",18)(1,"span",19),k(2),wo(3,"uppercase"),b()()),2&t){const e=n.$implicit;y(),T("ngClass",Ea(4,yCe,e.status)),y(),Ke(oc(3,2,e.status))}}function SCe(t,n){1&t&&(_(0,"th",17),k(1," Version "),b())}function DCe(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.meta.versionId," ")}}function ICe(t,n){1&t&&(_(0,"th",17),k(1," Type "),b())}function ACe(t,n){1&t&&(_(0,"span",19),k(1,"QUESTIONNAIRE"),b()),2&t&&T("ngClass",us(1,xCe))}function MCe(t,n){1&t&&(_(0,"span",19),k(1,"MODULAR ROOT"),b()),2&t&&T("ngClass",us(1,wCe))}function RCe(t,n){if(1&t&&(_(0,"td",18),q(1,ACe,2,2,"span",20)(2,MCe,2,2,"span",20),b()),2&t){const e=n.$implicit,i=A();y(),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e))}}function PCe(t,n){1&t&&(_(0,"th",21),k(1," Actions "),b())}function FCe(t,n){if(1&t){const e=Se();_(0,"button",32),U("click",function(){z(e);const r=A().$implicit;return H(A().validate(r))}),_(1,"mat-icon"),k(2,"done"),b()()}if(2&t){const e=A().$implicit;T("disabled",A().isRootQuestionnaire(e))}}function OCe(t,n){if(1&t){const e=Se();_(0,"button",33),U("click",function(){z(e);const r=A().$implicit;return H(A().assemble(r))}),_(1,"mat-icon"),k(2,"build"),b()()}}function NCe(t,n){if(1&t){const e=Se();_(0,"button",34),U("click",function(){z(e);const r=A().$implicit;return H(A().preview(r))}),_(1,"mat-icon"),k(2,"visibility"),b()()}}function LCe(t,n){if(1&t){const e=Se();_(0,"button",35),U("click",function(){z(e);const r=A().$implicit;return H(A().openInNewTab(r))}),_(1,"mat-icon"),k(2,"open_in_new"),b()()}}function VCe(t,n){if(1&t){const e=Se();_(0,"button",36),U("click",function(){z(e);const r=A().$implicit;return H(A().editQuestionnaire(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function BCe(t,n){if(1&t){const e=Se();_(0,"button",37),U("click",function(){z(e);const r=A().$implicit;return H(A().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function UCe(t,n){if(1&t){const e=Se();_(0,"td",18),q(1,FCe,3,1,"button",22)(2,OCe,3,0,"button",23)(3,NCe,3,0,"button",24)(4,LCe,3,0,"button",25),_(5,"button",26),U("click",function(){const r=z(e).$implicit;return H(A().saveQuestionnaire(r))}),_(6,"mat-icon"),k(7,"cloud_download"),b()(),q(8,VCe,3,0,"button",27)(9,BCe,3,0,"button",28),_(10,"button",29),U("click",function(){const r=z(e).$implicit;return H(A().viewHistory(r))}),_(11,"mat-icon"),k(12,"history"),b()(),_(13,"span",30)(14,"button",31),U("click",function(){const r=z(e).$implicit;return H(A().deleteQuestionnaire(r))}),_(15,"mat-icon"),k(16,"delete"),b()()()()}if(2&t){const e=n.$implicit,i=A();y(),T("ngIf",i.config.validate),y(),T("ngIf",i.isRootQuestionnaire(e)),y(),T("ngIf",i.config.preview&&!i.isRootQuestionnaire(e)),y(),T("ngIf",i.config.preview),y(4),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e)),y(),T("disabled",1==e.meta.versionId),y(3),em("matTooltip",i.getDeleteTooltip(e)),y(),T("disabled",i.getReferencingQuestionnaires(e).length>0)}}function zCe(t,n){1&t&&xe(0,"tr",38)}function HCe(t,n){1&t&&xe(0,"tr",39)}function jCe(t,n){1&t&&(_(0,"p",40)(1,"i"),k(2," No questionnaires found. Upload your questionnaires to start. "),b()())}function $Ce(t,n){1&t&&xe(0,"mat-spinner",41)}function GCe(t,n){if(1&t){const e=Se();_(0,"button",42),U("click",function(){return z(e),H(A().downloadAllQuestionnaires())}),k(1," Download bundle "),b()}}let Y7=(()=>{class t{constructor(e,i,r,o){this.fhirService=e,this.questionnaireService=i,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Ce,this.validateQuestionnaire=new Ce,this.previewQuestionnaire=new Ce,this.viewQuestionaireHistory=new Ce,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new qu,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new Me,this.userTagChanged=new Me,this.fbUrl="https://formbuilder.nlm.nih.gov",this.blankQuestionnaire={resourceType:"Questionnaire",title:"New Form",status:"draft",item:[{type:"string",linkId:"4009522077787",text:"Item 0"}]}}ngOnInit(){Jc([this.fhirService.baseUrl$.pipe(nl(1e3),il()),this.fhirService.userTag$.pipe(nl(1e3),il())]).subscribe(([e,i])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==i)&&(this.selectedFhirServer=e,this.selectedUserTag=i,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,i)=>{switch(i){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[i]}},this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires()}loadQuestionnaires(){this.loading=!0,this.notFound=!1,this.questionnaires=[],this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{e.entry?(this.questionnaires=e.entry.map(i=>i.resource),this.dataSource.data=this.questionnaires,this.dataSource.sort=this.sort,this.loading=!1):(this.questionnaires=[],this.dataSource.data=this.questionnaires,this.loading=!1,this.notFound=!0)})}updateQuestionnairesList(e){const i=this.questionnaires.findIndex(r=>r.id===e.id);-1!==i?(this.questionnaires[i]=e,this.dataSource.data=this.questionnaires):(this.questionnaires.push(e),this.dataSource.data=this.questionnaires)}addQuestionnaire(e){this.updateQuestionnairesList(e)}deleteQuestionnaire(e){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(i=>i.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}viewHistory(e){this.viewQuestionaireHistory.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode)}assemble(e){this._snackBar.openFromComponent(Ti,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(i=>{i.title=e.title+" (assembled)",this.previewQuestionnaire.emit(i),this._snackBar.openFromComponent(Ti,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(i=>{console.error("Error assembling questionnaire:",i)})}createQuestionnaire(){let e=this.blankQuestionnaire;e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.editQuestionnaire(e)}editQuestionnaire(e){const i=window.open(this.fbUrl+"/window-open?referrer="+encodeURIComponent(window.location.href));window.addEventListener("message",function o(s){if(s.origin===r.fbUrl){const c=s.data.questionnaire;switch(s.data.type){case"initialized":i?.postMessage({type:"initialQuestionnaire",questionnaire:e},r.fbUrl);break;case"updateQuestionnaire":break;case"closed":r.fhirService.updateOrCreateQuestionnaire(c,r.selectedUserTag).pipe(ea()).subscribe(l=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(l)},l=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}}},!0);let r=this}openModularQuestionnaireModal(e){var i=this;return me(function*(){let r=yield i.questionnaireService.getRootQuestionnaireData(e);i.dialog.open(K7,{data:r,width:"75%"}).afterClosed().subscribe(s=>{s&&i.handleDialogResult(s,e)})})()}handleDialogResult(e,i){var r=this;return me(function*(){r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Updating questionnaire...",panelClass:["green-snackbar"]});try{let o=yield r.questionnaireService.generateRootQuestionnaire(e.title,e.questionnaires);o&&(i.title=e.title,i.item=o.item,r.addQuestionnaire(i),r.fhirService.updateOrCreateQuestionnaire(i,r.selectedUserTag).pipe(ea()).subscribe(s=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(s)},s=>{r._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}getReferencingQuestionnaires(e){let r=`${this.fhirService.getBaseUrl()}/Questionnaire/${e.id}`;return this.dataSource.data.filter(s=>s.item&&Array.isArray(s.item)&&s.item.some(a=>a.item&&Array.isArray(a.item)&&a.item.some(c=>c.extension&&Array.isArray(c.extension)&&c.extension.some(l=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===l.url&&l.valueCanonical===r))))}getDeleteTooltip(e){const i=this.getReferencingQuestionnaires(e);return 0===i.length?"Delete Questionnaire":`Cannot delete: Referenced by ${i.map(o=>`"${o.title}"`).join(", ")}`}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm),w(X7),w(Um),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(i,r){if(1&i&&vt(Td,5),2&i){let o;Re(o=Pe())&&(r.sort=o.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire",viewQuestionaireHistory:"viewQuestionaireHistory"},features:[Un],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","View Questionnaire History",1,"action-button",3,"click","disabled"],[3,"matTooltip"],["mat-icon-button","","color","accent",3,"click","disabled"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"click","disabled"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"table",1),zt(2,2),q(3,kCe,2,0,"th",3)(4,CCe,2,1,"td",4),Ht(),zt(5,5),q(6,TCe,2,0,"th",3)(7,ECe,4,6,"td",4),Ht(),zt(8,6),q(9,SCe,2,0,"th",3)(10,DCe,2,1,"td",4),Ht(),zt(11,7),q(12,ICe,2,0,"th",3)(13,RCe,3,2,"td",4),Ht(),zt(14,8),q(15,PCe,2,0,"th",9)(16,UCe,17,9,"td",4),Ht(),q(17,zCe,1,0,"tr",10)(18,HCe,1,0,"tr",11),b(),q(19,jCe,3,0,"p",12)(20,$Ce,1,0,"mat-spinner",13),b(),_(21,"div",14)(22,"div",15),q(23,GCe,2,0,"button",16),b()()),2&i&&(y(),T("dataSource",r.dataSource),y(16),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",r.notFound&&!r.questionnaires.length),y(),T("ngIf",r.loading),y(3),T("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[Da,jr,Eo,ia,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,FD],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:2rem}"]})}return t})(),WCe=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"questionnaireSelected","config"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(i,r){1&i&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Available Questionnaires"),b(),_(3,"app-list-questionnaires",0),U("questionnaireSelected",function(s){return r.selectAndDownload(s)}),b()(),_(4,"mat-dialog-actions",1)(5,"button",2),k(6,"Close"),b()()),2&i&&(y(3),T("config",r.listConfig))},dependencies:[Eo,zm,v0,b0,Y7]})}return t})();const qCe=["settingsForm"];function QCe(t,n){1&t&&(_(0,"mat-error"),k(1,"Base URL is required"),b())}function KCe(t,n){1&t&&(_(0,"mat-error"),k(1,"User Tag is required and must be at least 3 characters"),b())}let xA=(()=>{class t{constructor(e,i){this.fhirService=e,this.dialogRef=i,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const i=this.settingsForm.control.get(e);i?.markAsTouched({onlySelf:!0}),i?.markAsDirty({onlySelf:!0})})}ngOnInit(){this.baseUrl=this.fhirService.getBaseUrl(),this.userTag=this.fhirService.getUserTag()}updateSettings(){this.settingsForm.valid&&(this.fhirService.setBaseUrl(this.baseUrl),this.fhirService.setUserTag(this.userTag),this.dialogRef.close("save"))}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(i,r){if(1&i&&vt(qCe,5),2&i){let o;Re(o=Pe())&&(r.settingsForm=o.first)}},decls:29,vars:5,consts:[["settingsForm","ngForm"],["baseUrlField","ngModel"],["userTagField","ngModel"],[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["matInput","","name","baseUrl","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModelChange","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(i,r){if(1&i){const o=Se();_(0,"div",3)(1,"h2"),k(2,"FHIR Server Connection"),b(),_(3,"p"),k(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),_(5,"b"),k(6,"User Tag"),b(),k(7,", this value will be used to identify your questionnaires."),b(),_(8,"p",4),k(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),b(),_(10,"form",5,0),U("ngSubmit",function(){return z(o),H(r.updateSettings())}),_(12,"mat-form-field")(13,"mat-label"),k(14,"Base URL of the FHIR Server"),b(),_(15,"input",6,1),Hr("ngModelChange",function(a){return z(o),io(r.baseUrl,a)||(r.baseUrl=a),H(a)}),b(),q(17,QCe,2,0,"mat-error",7),b(),_(18,"mat-form-field")(19,"mat-label"),k(20,"User Tag"),b(),_(21,"input",8,2),Hr("ngModelChange",function(a){return z(o),io(r.userTag,a)||(r.userTag=a),H(a)}),b(),q(23,KCe,2,0,"mat-error",7),b(),_(24,"div",9)(25,"button",10),k(26,"Open FHIR Repository"),b(),_(27,"button",11),k(28,"Close"),b()()()()}if(2&i){const o=jt(11),s=jt(16),a=jt(22);y(15),zr("ngModel",r.baseUrl),y(2),T("ngIf",s.invalid&&s.touched),y(4),zr("ngModel",r.userTag),y(2),T("ngIf",a.invalid&&a.touched),y(2),T("disabled",!o.valid)}},dependencies:[jr,Eo,Fa,Bs,EH,kd,l0,ra,ps,n0,t1,X2,Vs,Xu,zm],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]})}return t})(),Z7=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(_1),w(Cd))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(i,r){1&i&&(_(0,"h1",0),k(1),b(),_(2,"div",1)(3,"p"),k(4),b()(),_(5,"div",2)(6,"button",3),k(7,"Yes"),b(),_(8,"button",3),k(9,"No"),b()()),2&i&&(y(),Ke(r.data.title),y(3),Ke(r.data.message),y(2),T("mat-dialog-close",!0),y(2),T("mat-dialog-close",!1))},dependencies:[Eo,zm,gA,v0,b0],encapsulation:2})}return t})();const XCe=new J("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let J7=(()=>{class t{constructor(e,i,r,o,s){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new Ce,this._mode="determinate",this._transitionendHandler=a=>{0===this.animationEnd.observers.length||!a.target||!a.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===o,s&&(s.color&&(this.color=this._defaultColor=s.color),this.mode=s.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(e){this._color=e}get value(){return this._value}set value(e){this._value=ej(e||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=ej(e||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Be),w(gn),w(pi,8),w(XCe,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(i,r){2&i&&(_t("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),Ys("mat-"+r.color),lt("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:[W.HasDecoratorInputTransform,"value","value",Xi],bufferValue:[W.HasDecoratorInputTransform,"bufferValue","bufferValue",Xi],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[Kt,St],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,r){1&i&&(_(0,"div",0),xe(1,"div",1)(2,"div",2),b(),_(3,"div",3),xe(4,"span",4),b(),_(5,"div",5),xe(6,"span",4),b()),2&i&&(y(),Ki("flex-basis",r._getBufferBarFlexBasis()),y(2),Ki("transform",r._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}.mdc-linear-progress__buffer-dots{background-color:var(--mdc-linear-progress-track-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E\")}}.mdc-linear-progress__buffer-bar{background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:start;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return t})();function ej(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let ZCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft]})}return t})();const JCe=["questionnairesList"];function eTe(t,n){if(1&t&&(_(0,"div",20),xe(1,"mat-progress-bar",21),_(2,"div",22),k(3),b()()),2&t){const e=A();y(),T("value",e.validatingProgress),y(2),Je("",e.validatingProgress,"%")}}function tTe(t,n){1&t&&(_(0,"span"),k(1,"Run validation"),b())}function nTe(t,n){1&t&&xe(0,"mat-spinner",23)}function iTe(t,n){if(1&t&&(_(0,"span",29),k(1),b()),2&t){const e=A(2);y(),Je("Error: ",e.loadResults.error,"")}}function rTe(t,n){if(1&t&&(_(0,"span",30),k(1),b()),2&t){const e=A(2);y(),Je("Inactive: ",e.loadResults.inactive,"")}}function oTe(t,n){if(1&t&&(_(0,"span",31),k(1),b()),2&t){const e=A(2);y(),Je("Active: ",e.loadResults.active,"")}}function sTe(t,n){if(1&t&&(_(0,"p",24)(1,"b"),k(2,"Questionnaire:"),b(),k(3),_(4,"i"),k(5),b(),k(6,") - "),_(7,"span",25),k(8),b(),k(9),wo(10,"date"),q(11,iTe,2,1,"span",26)(12,rTe,2,1,"span",27)(13,oTe,2,1,"span",28),b()),2&t){const e=A();y(3),Je(" ",e.questionnaire.title," ("),y(2),Ke(e.questionnaire.url),y(3),Je("",e.dataSource.data.length," bindings"),y(),Iu(" - - Version: ",e.questionnaire.meta.versionId," (",Au(10,8,e.questionnaire.meta.lastUpdated,"fullDate"),") "),y(2),T("ngIf",e.loadResults.total>0),y(),T("ngIf",e.loadResults.total>0),y(),T("ngIf",e.loadResults.total>0)}}function aTe(t,n){1&t&&(_(0,"th",32),k(1," # "),b())}function cTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.order," ")}}function lTe(t,n){1&t&&(_(0,"th",32),k(1," FHIRPath "),b())}function dTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.path," ")}}function uTe(t,n){1&t&&(_(0,"th",32),k(1," Path "),b())}function hTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.readablePath," ")}}function fTe(t,n){1&t&&(_(0,"th",32),k(1,"Code "),b())}function mTe(t,n){if(1&t&&(_(0,"td",33)(1,"a",34),k(2),b()()),2&t){const e=n.$implicit;y(),lx("href","http://snomed.info/id/",e.code,"",xy),y(),Ke(e.code)}}function pTe(t,n){1&t&&(_(0,"th",32),k(1," Display "),b())}function gTe(t,n){if(1&t&&(_(0,"p",38),k(1),b()),2&t){const e=A().$implicit;y(),Je("Concept FSN: ",e.serverDisplay,"")}}function _Te(t,n){1&t&&(_(0,"p",39),k(1,"Concept is inactive"),b())}function bTe(t,n){if(1&t){const e=Se();_(0,"p",40),k(1),_(2,"button",41),U("click",function(){const r=z(e).$implicit,o=A().$implicit;return H(A().replaceInactiveConcept(o,r.replacement))}),_(3,"mat-icon"),k(4,"arrow_forward"),b()()()}if(2&t){const e=n.$implicit,i=A(2);y(),c_(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),y(),T("disabled",i.validating)}}function vTe(t,n){if(1&t&&(_(0,"td",33),k(1),q(2,gTe,2,1,"p",35)(3,_Te,2,0,"p",36)(4,bTe,5,4,"p",37),b()),2&t){const e=n.$implicit;y(),Je(" ",e.display," "),y(),T("ngIf",e.serverDisplay),y(),T("ngIf","Inactive"==e.status),y(),T("ngForOf",e.replacements)}}function yTe(t,n){1&t&&(_(0,"th",32),k(1," System "),b())}function xTe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.system," ")}}function wTe(t,n){1&t&&(_(0,"th",32),k(1," Status "),b())}function kTe(t,n){1&t&&(_(0,"span"),xe(1,"mat-progress-bar",42),b())}function CTe(t,n){if(1&t&&(_(0,"span")(1,"span",43),k(2),b()()),2&t){const e=A().$implicit;y(),T("ngClass",e.status),y(),Ke(e.status)}}function TTe(t,n){if(1&t&&(_(0,"td",33),q(1,kTe,2,0,"span",3)(2,CTe,3,2,"span",3),b()),2&t){const e=n.$implicit;y(),T("ngIf","Validating"==e.status),y(),T("ngIf","Validating"!=e.status)}}function ETe(t,n){1&t&&xe(0,"tr",44)}function STe(t,n){1&t&&xe(0,"tr",45)}function DTe(t,n){1&t&&xe(0,"mat-spinner",46)}let ITe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Ce,this.validatingQuestionnaire=new Ce,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new qu,this.validatingProgress=0,this.orderCounter=0,this.loadResults={total:0,active:0,inactive:0,error:0}}ngOnChanges(e){e.questionnaire&&(this.questionnaire?this.loadQuestionnaire(this.questionnaire):this.clearQuestionnaire())}clearQuestionnaire(){this.questionnaire=null,this.dataSource.data=[],this.orderCounter=0,this.validatingProgress=0,this.loadResults={total:0,active:0,inactive:0,error:0}}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e;let i=this.extractObjects(e);this.dataSource.data=i,this.dataSource.sort=this.sort},700)}validate(){var e=this;this.loadResults={total:0,active:0,inactive:0,error:0},this.dataSource.data.forEach(o=>{o.status="Not checked"}),this.validating=!0,this.validatingQuestionnaire.emit(!0);let i=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=me(function*(s){e.loadResults.total++,s.status="Validating",r++,e.validatingProgress=Math.round(r/i*100);try{const a=yield e.terminologyService.lookupConcept(s.code,s.system).pipe(ea()).toPromise();let c=[],l="";for(const d of a.parameter){if("designation"===d.name){let u="",h="";for(const f of d.part)"value"===f.name&&(u=f.valueString),"use"===f.name&&(h=f.valueCoding?.code);c.push(u),"900000000000003001"===h&&(l=u)}"inactive"===d.name&&(d.valueBoolean?(s.status="Inactive",e.loadResults.inactive++):(s.status="Active",e.loadResults.active++))}if((!s.display||!c.includes(s.display))&&(s.serverDisplay=l),"Inactive"==s.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",s.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",s.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",s.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",s.code),m=d.concat(u,h,f);s.replacements=m}}catch{s.status="Error",e.loadResults.error++}});return function(s){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,i){var r=this;return me(function*(){let o=[];const s=r.terminologyService.translate(e,i);let a=yield Co(s.pipe(mt(c=>c)));if(a.parameter)for(const c of a.parameter)if("match"===c.name){let l={replacement:{},equivalence:""};for(const d of c.part)"concept"===d.name&&d.valueCoding&&(l.replacement={code:d.valueCoding.code,display:d.valueCoding.display,system:d.valueCoding.system}),"equivalence"===d.name&&d.valueCode&&(l.equivalence=d.valueCode);o.push(l)}return o})()}removeSemanticTag(e){return e.replace(/\s*\([^)]+\)\s*$/,"").trim().toLowerCase()}asyncForEach(e,i){return me(function*(){for(let r=0;r ${e.text}`:e.text),e.system&&e.system.startsWith("http://snomed.info/sct")&&e.code&&e.display){this.orderCounter++;const s={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:i,readablePath:r,status:"Not checked"};o.some(a=>a.system===s.system&&a.code===s.code&&a.display===s.display)||o.push(s)}if(Array.isArray(e))for(let s in e)o=o.concat(this.extractObjects(e[s],`${i}[${s}]`,r));else for(let s in e)e.hasOwnProperty(s)&&(o=o.concat(this.extractObjects(e[s],i?`${i}.${s}`:s,r)));if(e.answerValueSet){const a=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(a){const c=decodeURIComponent(a),l=/(\d{5,})(?:\s*\|\s*([^|]*)\s*\|)?/g;let d;for(;null!==(d=l.exec(c));)this.orderCounter++,o.push({order:this.orderCounter,code:d[1],display:d[2]?d[2].trim():void 0,system:"http://snomed.info/sct",path:i+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,i){this.searchAndReplace(this.questionnaire,e,i,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,i,r,o){if("object"!=typeof e||null===e)return o;if(e.system==i.system&&e.code==i.code&&e.display==i.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const s=new URL(e.answerValueSet),a=s.searchParams.get("fhir_vs");if(a){const c=decodeURIComponent(a),l=new RegExp(`(\\s|^)${i.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${i.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);s.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=s.toString()}s.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=s.toString()}}}if(Array.isArray(e))for(let s in e)o=this.searchAndReplace(e[s],i,r,o);else for(let s in e)e.hasOwnProperty(s)&&(o=this.searchAndReplace(e[s],i,r,o));return o}static#e=this.\u0275fac=function(i){return new(i||t)(w(so))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(i,r){if(1&i&&(vt(Td,5),vt(h0,5),vt(JCe,5)),2&i){let o;Re(o=Pe())&&(r.sort=o.first),Re(o=Pe())&&(r.tabGroup=o.first),Re(o=Pe())&&(r.questionnairesList=o.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Un],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"click","disabled"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container","mt-4"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"click","disabled"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,eTe,4,2,"div",1),_(2,"button",2),U("click",function(){return r.validate()}),q(3,tTe,2,0,"span",3)(4,nTe,1,0,"mat-spinner",4),b()(),q(5,sTe,14,11,"p",5),_(6,"div",6)(7,"table",7),zt(8,8),q(9,aTe,2,0,"th",9)(10,cTe,2,1,"td",10),Ht(),zt(11,11),q(12,lTe,2,0,"th",9)(13,dTe,2,1,"td",10),Ht(),zt(14,12),q(15,uTe,2,0,"th",9)(16,hTe,2,1,"td",10),Ht(),zt(17,13),q(18,fTe,2,0,"th",9)(19,mTe,3,3,"td",10),Ht(),zt(20,14),q(21,pTe,2,0,"th",9)(22,vTe,5,4,"td",10),Ht(),zt(23,15),q(24,yTe,2,0,"th",9)(25,xTe,2,1,"td",10),Ht(),zt(26,16),q(27,wTe,2,0,"th",9)(28,TTe,3,2,"td",10),Ht(),q(29,ETe,1,0,"tr",17)(30,STe,1,0,"tr",18),b(),q(31,DTe,1,0,"mat-spinner",19),b()),2&i&&(y(),T("ngIf",r.validating),y(),T("disabled",r.validating||!r.questionnaire),y(),T("ngIf",!r.validating),y(),T("ngIf",r.validating),y(),T("ngIf",r.questionnaire),y(2),T("dataSource",r.dataSource),y(22),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",r.loading))},dependencies:[Da,ro,jr,Eo,ia,So,J7,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,Ou],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]})}return t})();const ATe=t=>["status-pill",t],MTe=()=>["status-pill","active"],RTe=()=>["status-pill","draft"];function PTe(t,n){1&t&&(_(0,"th",15),k(1," Title "),b())}function FTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.title," ")}}function OTe(t,n){1&t&&(_(0,"th",15),k(1," Status "),b())}function NTe(t,n){if(1&t&&(_(0,"td",16)(1,"span",17),k(2),wo(3,"uppercase"),b()()),2&t){const e=n.$implicit;y(),T("ngClass",Ea(4,ATe,e.status)),y(),Ke(oc(3,2,e.status))}}function LTe(t,n){1&t&&(_(0,"th",15),k(1," Version "),b())}function VTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.meta.versionId," ")}}function BTe(t,n){1&t&&(_(0,"th",15),k(1," Date "),b())}function UTe(t,n){if(1&t&&(_(0,"td",16)(1,"i"),k(2),wo(3,"date"),b()()),2&t){const e=n.$implicit;y(2),Ke(Au(3,1,e.meta.lastUpdated,"MMMM d, y, h:mm:ss a"))}}function zTe(t,n){1&t&&(_(0,"th",15),k(1," Type "),b())}function HTe(t,n){1&t&&(_(0,"span",17),k(1,"QUESTIONNAIRE"),b()),2&t&&T("ngClass",us(1,MTe))}function jTe(t,n){1&t&&(_(0,"span",17),k(1,"MODULAR ROOT"),b()),2&t&&T("ngClass",us(1,RTe))}function $Te(t,n){if(1&t&&(_(0,"td",16),q(1,HTe,2,2,"span",18)(2,jTe,2,2,"span",18),b()),2&t){const e=n.$implicit,i=A();y(),T("ngIf",!i.isRootQuestionnaire(e)),y(),T("ngIf",i.isRootQuestionnaire(e))}}function GTe(t,n){1&t&&(_(0,"th",19),k(1," Actions "),b())}function WTe(t,n){if(1&t){const e=Se();_(0,"button",24),U("click",function(){z(e);const r=A().$implicit;return H(A().restore(r))}),_(1,"mat-icon"),k(2,"restore_page"),b()()}}function qTe(t,n){if(1&t){const e=Se();_(0,"td",16)(1,"button",20),U("click",function(){const r=z(e).$implicit;return H(A().preview(r))}),_(2,"mat-icon"),k(3,"visibility"),b()(),_(4,"button",21),U("click",function(){const r=z(e).$implicit;return H(A().openInNewTab(r))}),_(5,"mat-icon"),k(6,"open_in_new"),b()(),_(7,"button",22),U("click",function(){const r=z(e).$implicit;return H(A().saveQuestionnaire(r))}),_(8,"mat-icon"),k(9,"cloud_download"),b()(),q(10,WTe,3,0,"button",23),b()}if(2&t){const e=n.$implicit,i=A();y(10),T("ngIf",(null==e||null==e.meta?null:e.meta.versionId)!=(null==i.versions[0]||null==i.versions[0].meta?null:i.versions[0].meta.versionId))}}function QTe(t,n){1&t&&xe(0,"tr",25)}function KTe(t,n){1&t&&xe(0,"tr",26)}function XTe(t,n){1&t&&(_(0,"p",27)(1,"i"),k(2," No questionnaire selected. "),b()())}function YTe(t,n){1&t&&xe(0,"mat-spinner",28)}let ZTe=(()=>{class t{constructor(e){this.fhirService=e,this.previewQuestionnaire=new Ce,this.restoreQuestionnaireVersion=new Ce,this.versions=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.displayedColumns=["title","status","version","lastUpdated","type","actions"],this.dataSource=new qu}ngOnChanges(e){e.questionnaire&&e.questionnaire.currentValue&&this.loadVersions()}ngOnInit(){Jc([this.fhirService.baseUrl$.pipe(nl(1e3),il()),this.fhirService.userTag$.pipe(nl(1e3),il())]).subscribe(([e,i])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==i)&&(this.selectedFhirServer=e,this.selectedUserTag=i,this.selectedUserTag&&this.selectedFhirServer&&this.loadVersions())})}loadVersions(e){this.versions=[],this.dataSource.data=this.versions,e&&(this.questionnaire=e),this.questionnaire&&(this.loading=!0,this.fhirService.getQuestionnaireHistory(this.questionnaire.id).subscribe(i=>{this.versions=i.entry.map(r=>r.resource),this.dataSource.data=this.versions,this.loading=!1},i=>{this.loading=!1}))}preview(e){this.previewQuestionnaire.emit(e),this.loadVersions()}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id+"/_history/"+e.meta.versionId,"_blank")}saveQuestionnaire(e){var i=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});_c(i,`${e.title}-v${e.meta.versionId}.json`)}restore(e){this.restoreQuestionnaireVersion.emit(e)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(i=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===i.url&&"assemble-root"===i.valueCode)}static#e=this.\u0275fac=function(i){return new(i||t)(w(jm))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-questionnaire-history"]],inputs:{questionnaire:"questionnaire"},outputs:{previewQuestionnaire:"previewQuestionnaire",restoreQuestionnaireVersion:"restoreQuestionnaireVersion"},features:[Un],decls:24,vars:5,consts:[[1,"table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","lastUpdated"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Restore Version",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Restore Version",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"table",1),zt(2,2),q(3,PTe,2,0,"th",3)(4,FTe,2,1,"td",4),Ht(),zt(5,5),q(6,OTe,2,0,"th",3)(7,NTe,4,6,"td",4),Ht(),zt(8,6),q(9,LTe,2,0,"th",3)(10,VTe,2,1,"td",4),Ht(),zt(11,7),q(12,BTe,2,0,"th",3)(13,UTe,4,4,"td",4),Ht(),zt(14,8),q(15,zTe,2,0,"th",3)(16,$Te,3,2,"td",4),Ht(),zt(17,9),q(18,GTe,2,0,"th",10)(19,qTe,11,1,"td",4),Ht(),q(20,QTe,1,0,"tr",11)(21,KTe,1,0,"tr",12),b(),q(22,XTe,3,0,"p",13)(23,YTe,1,0,"mat-spinner",14),b()),2&i&&(y(),T("dataSource",r.dataSource),y(19),T("matHeaderRowDef",r.displayedColumns),y(),T("matRowDefColumns",r.displayedColumns),y(),T("ngIf",!r.questionnaire),y(),T("ngIf",r.loading))},dependencies:[Da,jr,ia,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Td,yA,FD,Ou],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}.table-container[_ngcontent-%COMP%]{margin:2rem;padding-bottom:2rem}"]})}return t})();const JTe=["questionnairesList"],eEe=["fileInput"],tEe=["questionnaireHistory"];function nEe(t,n){1&t&&(_(0,"span"),k(1," / Validator"),b())}function iEe(t,n){1&t&&(_(0,"span"),k(1," / Questionnaires repository"),b())}function rEe(t,n){if(1&t){const e=Se();_(0,"span",19)(1,"a",20),U("click",function(){return z(e),H(A(2).mode="Manager")}),_(2,"mat-icon"),k(3,"play_arrow"),b(),_(4,"span"),k(5,"Reconnect to last FHIR Server"),b()()()}}function oEe(t,n){if(1&t&&(_(0,"span",19)(1,"span",21),k(2),_(3,"i"),k(4),b(),k(5,'" )'),b()()),2&t){const e=A(2);y(2),Je(" ( ",e.selectedFhirServer,' as "'),y(2),Ke(e.selectedUserTag)}}function sEe(t,n){if(1&t){const e=Se();_(0,"div",10)(1,"div",11)(2,"div",12)(3,"h3",13),k(4,"Work with the Questionnaire Manager"),b(),_(5,"p",13),k(6,"Connect to a FHIR server to store and version your questionnaire resources. Use the integrated questionnaire manager, editor and validator."),b(),_(7,"div",14)(8,"button",15),U("click",function(){z(e);const r=A();return r.step1Response="repository",H(r.advanceFromStep1())}),k(9,"Connect to a FHIR Server and Open Repository Manager"),b(),q(10,rEe,6,0,"span",16)(11,oEe,6,2,"span",16),b()(),_(12,"div",17)(13,"h3",13),k(14,"Work with a single questionnaire"),b(),_(15,"p",13),k(16,"Create, preview or validate a questionnaire you upload from your computer."),b(),_(17,"div",18)(18,"button",15),U("click",function(){z(e);const r=A();return r.step1Response="edit",H(r.advanceFromStep1())}),k(19,"Open NLM Form Builder"),b(),_(20,"button",15),U("click",function(){z(e);const r=A();return r.step1Response="example",H(r.advanceFromStep1())}),k(21,"Load an example questionnaire"),b(),_(22,"button",15),U("click",function(){z(e);const r=A();return r.step1Response="validate",H(r.advanceFromStep1())}),k(23,"Upload and validate a questionnaire"),b()()()()()}if(2&t){const e=A();y(10),T("ngIf",e.selectedFhirServer&&e.selectedUserTag),y(),T("ngIf",e.selectedFhirServer&&e.selectedUserTag)}}function aEe(t,n){if(1&t&&(_(0,"span"),k(1," Connected to "),_(2,"a",35),k(3),b(),k(4,' as "'),_(5,"i"),k(6),b(),k(7,'" '),b()),2&t){const e=A(2);y(3),Ke(e.selectedFhirServer),y(3),Ke(e.selectedUserTag)}}function cEe(t,n){if(1&t){const e=Se();_(0,"button",24),U("click",function(){return z(e),H(A(2).createQuestionnaire())}),k(1," Create Questionnaire "),b()}2&t&&T("disabled",A(2).validating)}function lEe(t,n){if(1&t){const e=Se();_(0,"button",24),U("click",function(){return z(e),H(A(2).openModularQuestionnaireModal())}),k(1," Create Modular Questionnaire "),b()}2&t&&T("disabled",A(2).validating)}function dEe(t,n){if(1&t){const e=Se();_(0,"mat-tab",36)(1,"div",29)(2,"app-list-questionnaires",37,3),U("validateQuestionnaire",function(r){return z(e),H(A(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return z(e),H(A(2).switchToPreviewTab(r))})("viewQuestionaireHistory",function(r){return z(e),H(A(2).switchToHistoryTab(r))}),b()()()}if(2&t){const e=A(2);y(2),T("config",e.listConfig)}}function uEe(t,n){if(1&t&&(_(0,"h4"),k(1),wo(2,"date"),b()),2&t){const e=A(2);y(),c_("",e.questionnaire.title," - Version: ",e.questionnaire.meta.versionId," (",Au(2,3,e.questionnaire.meta.lastUpdated,"fullDate"),")")}}function hEe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",22),q(2,aEe,8,2,"span",8),_(3,"input",23,0),U("change",function(r){return z(e),H(A().onFileSelected(r))}),b(),_(5,"button",24),U("click",function(){return z(e),H(jt(4).click())}),k(6," Upload "),b(),_(7,"button",24),U("click",function(){return z(e),H(A().saveQuestionnaireToDisk())}),k(8,"Download"),b(),q(9,cEe,2,1,"button",25)(10,lEe,2,1,"button",25),b(),_(11,"mat-tab-group",26),U("selectedIndexChange",function(r){return z(e),H(A().onTabChange(r))}),q(12,dEe,4,1,"mat-tab",27),_(13,"mat-tab",28)(14,"div",29),q(15,uEe,3,6,"h4",8),xe(16,"div",30),b()(),_(17,"mat-tab",31)(18,"app-validate-questionnaire",32,1),U("questionnaireUpdated",function(r){return z(e),H(A().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return z(e),H(A().validating=r)}),b()(),_(20,"mat-tab",33)(21,"app-questionnaire-history",34,2),U("previewQuestionnaire",function(r){return z(e),H(A().switchToPreviewTab(r))})("restoreQuestionnaireVersion",function(r){return z(e),H(A().saveQuestionnaire(r))}),b()()()()}if(2&t){const e=A();y(2),T("ngIf","Manager"==e.mode),y(3),T("disabled",e.validating),y(2),T("disabled",e.validating||!e.questionnaire),y(2),T("ngIf","Manager"==e.mode),y(),T("ngIf","Manager"==e.mode),y(2),T("ngIf","Manager"===e.mode),y(3),T("ngIf",e.questionnaire),y(),lt("hidden",!e.questionnaire),y(2),T("questionnaire",e.questionnaire),y(3),T("questionnaire",e.questionnaire)}}let fEe=(()=>{class t{constructor(e,i,r,o,s,a){this.http=e,this.terminologyService=i,this.fhirService=r,this.questionnaireService=o,this.dialog=s,this._snackBar=a,this.loading=!1,this.validating=!1,this.orderCounter=0,this.savingQuestionnaire=!1,this.selectedFhirServer="",this.selectedUserTag="",this.showFhirSetupModal=!1,this.listConfig={validate:!0,preview:!0},this.mode="step1"}ngOnInit(){this.fhirService.baseUrl$.subscribe(e=>{this.selectedFhirServer=e}),this.fhirService.userTag$.subscribe(e=>{this.selectedUserTag=e}),this.loadScript()}loadScript(){const e=document.createElement("script");e.src="https://clinicaltables.nlm.nih.gov/lforms-versions/35.0.4/webcomponent/lhc-forms.js",e.onload=()=>{const i=document.createElement("script");i.src="https://clinicaltables.nlm.nih.gov/lforms-versions/35.0.4/fhir/R4/lformsFHIR.min.js",i.onload=()=>{},document.head.appendChild(i)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(xA,{width:"60%",disableClose:!0}).afterClosed().subscribe(i=>{"save"===i&&(this.mode="Manager",setTimeout(()=>{this.tabGroup.selectedIndex=0},500))}):this.mode="Validator"}previewForm(){"Preview"==this.getCurrentTabName()&&(this.questionnaire?LForms.Util.addFormToPage(this.questionnaire,"myFormContainer"):LForms.Util.addFormToPage({},"myFormContainer"))}getFormData(){if(this.questionnaire){const e=LForms.Util.getFormData("myFormContainer",!0,!0,!0);console.log(e)}}displayHistory(e){e&&this.questionnaireHistory.loadVersions(e)}loadExampleQuestionnaire(){Co(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}createQuestionnaire(){this.questionnairesList.createQuestionnaire()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});_c(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const s=JSON.parse(o.target?.result);"Questionnaire"===s.resourceType?(this.loadQuestionnaire(s),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Ti,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(s){console.error(s),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(i)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(Z7,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(s=>s.title===e.title&&s.id===e.id&&s.meta?.versionId>=e.meta?.versionId)?this.dialog.open(Z7,{width:"400px",data:{title:"Confirm Action",message:"A newer version or identical of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(a=>{a?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Saving Questionnaire...",panelClass:["green-snackbar"]}),e.meta||(e.meta={}),e.meta.tag=[{system:"http://snomed.org/tags",code:this.selectedUserTag,display:this.selectedUserTag},{system:"http://snomed.org/tags",code:"questionnaireManagerTool",display:"questionnaireManagerTool"}],this.fhirService.updateOrCreateQuestionnaire(e,this.selectedUserTag).pipe(ea()).subscribe(i=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(i)},300)},300),this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},i=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(ea()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(WCe,{width:"70%"}).afterClosed().subscribe(i=>{this.loadQuestionnaire(i)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(xA,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}switchToHistoryTab(e){this.displayHistory(e),this.tabGroup.selectedIndex=3}advanceFromStep1(){"edit"==this.step1Response?window.open("https://lhcformbuilder.nlm.nih.gov/","_blank"):"validate"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.uploadInput.nativeElement.click()},200)):"repository"==this.step1Response?this.dialog.open(xA,{width:"60%"}).afterClosed().subscribe(i=>{i&&(this.mode="Manager")}):"example"==this.step1Response?(this.mode="Validator",setTimeout(()=>{this.loadExampleQuestionnaire()},300)):"reconnect"==this.step1Response&&(this.mode="Manager"),this.step1Response=""}getCurrentTabName(){const e=this.tabGroup.selectedIndex;return null!=e?this.tabGroup._tabs.toArray()[e].textLabel:""}onTabChange(e){"Preview"===this.tabGroup._tabs.toArray()[e].textLabel&&setTimeout(()=>{this.previewForm()},300)}openModularQuestionnaireModal(){this.dialog.open(K7,{width:"75%"}).afterClosed().subscribe(i=>{i&&this.questionnaireService.generateRootQuestionnaire(i.title,i.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}static#e=this.\u0275fac=function(i){return new(i||t)(w(cd),w(so),w(jm),w(X7),w(Um),w($u))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(i,r){if(1&i&&(vt(Td,5),vt(h0,5),vt(JTe,5),vt(eEe,5),vt(tEe,5)),2&i){let o;Re(o=Pe())&&(r.sort=o.first),Re(o=Pe())&&(r.tabGroup=o.first),Re(o=Pe())&&(r.questionnairesList=o.first),Re(o=Pe())&&(r.uploadInput=o.first),Re(o=Pe())&&(r.questionnaireHistory=o.first)}},decls:11,vars:4,consts:[["fileInput",""],["validateQuestionnaire",""],["questionnaireHistory",""],["questionnairesList",""],[1,"header-container"],[1,"header"],[1,"breadcrumb"],["href","javascript:void(0)",3,"click"],[4,"ngIf"],["id","step1",4,"ngIf"],["id","step1"],[1,"flex","justify-between","pr-4"],[1,"w-1/2","border-2","border-blue-200","bg-transparent","rounded-lg","p-4","m-2","min-h-[500px]"],[1,"text-center"],[1,"flex","justify-center","flex-col","gap-1","mt-10"],["mat-flat-button","","color","accent",1,"mx-auto","w-auto","flex-none",3,"click"],["class","mx-auto w-auto flex-none",4,"ngIf"],[1,"w-1/2","border-2","border-blue-200","bg-transparent","rounded-lg","p-4","m-2","min-h-[500px]","justify-center"],[1,"flex","justify-center","flex-col","gap-5","mt-10"],[1,"mx-auto","w-auto","flex-none"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["mat-flat-button","","color","accent",3,"click","disabled"],["mat-flat-button","","color","accent",3,"disabled","click",4,"ngIf"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange"],["label","My Questionnaires",4,"ngIf"],["label","Preview"],[1,"tab-container"],["id","myFormContainer"],["label","Validate SNOMED Bindings"],[3,"questionnaireUpdated","validatingQuestionnaire","questionnaire"],["label","History"],[3,"previewQuestionnaire","restoreQuestionnaireVersion","questionnaire"],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"validateQuestionnaire","previewQuestionnaire","viewQuestionaireHistory","config"]],template:function(i,r){1&i&&(_(0,"div",4)(1,"h2",5),k(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),b(),_(3,"div",6)(4,"span")(5,"a",7),U("click",function(){return r.mode="step1"}),k(6,"Home"),b(),q(7,nEe,2,0,"span",8)(8,iEe,2,0,"span",8),b()()(),q(9,sEe,24,2,"div",9)(10,hEe,23,11,"div",8)),2&i&&(y(7),T("ngIf","Validator"==r.mode),y(),T("ngIf","Manager"==r.mode),y(),T("ngIf","step1"==r.mode),y(),T("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[jr,Eo,So,l1,h0,Y7,ITe,ZTe,Ou],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]})}return t})();const mEe=t=>({"bg-pink":t});function pEe(t,n){if(1&t&&(_(0,"p",18),k(1),b()),2&t){const e=A();y(),Ke(e.studentSubsetDefinition)}}function gEe(t,n){1&t&&xe(0,"mat-spinner",19)}function _Ee(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=A(2);y(),Ke(e.definitionVsMembersValidationResult)}}function bEe(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=A(2);y(),Ke(e.keyConceptValidationResult)}}function vEe(t,n){if(1&t&&(_(0,"div",20)(1,"h3",21),k(2,"Validation Results"),b(),q(3,_Ee,2,1,"p",22)(4,bEe,2,1,"p",22),_(5,"p",23),k(6),b(),_(7,"p",23),k(8),b()()),2&t){const e=A();y(3),T("ngIf",e.selectedAssignment.referenceDefinition),y(),T("ngIf",e.selectedAssignment.referenceDefinition),y(2),Ke(e.membersNotInRefrenceListResult),y(2),Ke(e.refrenceListVsStudentListResult)}}function yEe(t,n){1&t&&(_(0,"th",33),k(1,"ID"),b())}function xEe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e.referencedComponentId)}}function wEe(t,n){1&t&&(_(0,"th",33),k(1,"Name"),b())}function kEe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e.name)}}function CEe(t,n){1&t&&(_(0,"th",33),k(1,"Result"),b())}function TEe(t,n){1&t&&(_(0,"span"),k(1,"OK"),b())}function EEe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=A(2).$implicit;y(),Je(" ",e.customMessage.note," ")}}function SEe(t,n){1&t&&(_(0,"span"),k(1," Error "),b())}function DEe(t,n){if(1&t&&(_(0,"span"),q(1,TEe,2,0,"span",16)(2,EEe,2,1,"span",16)(3,SEe,2,0,"span",16),b()),2&t){const e=A().$implicit;y(),T("ngIf",null==e||null==e.inReferenceList?null:e.inReferenceList.value),y(),T("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value)&&(null==e||null==e.customMessage?null:e.customMessage.value)),y(),T("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value||null!=e&&null!=e.customMessage&&e.customMessage.value))}}function IEe(t,n){if(1&t&&(_(0,"td",34),q(1,DEe,4,3,"span",16),b()),2&t){const e=A(2);y(),T("ngIf",e.membersValidationResult)}}function AEe(t,n){1&t&&xe(0,"tr",35)}function MEe(t,n){if(1&t&&xe(0,"tr",36),2&t){const e=n.$implicit,i=A(2);T("ngClass",Ea(1,mEe,!(null!=e.inReferenceList&&e.inReferenceList.value)&&i.membersValidationResult))}}function REe(t,n){if(1&t&&(_(0,"div",24)(1,"table",25),zt(2,26),q(3,yEe,2,0,"th",27)(4,xEe,2,1,"td",28),Ht(),zt(5,29),q(6,wEe,2,0,"th",27)(7,kEe,2,1,"td",28),Ht(),zt(8,30),q(9,CEe,2,0,"th",27)(10,IEe,2,1,"td",28),Ht(),q(11,AEe,1,0,"tr",31)(12,MEe,1,3,"tr",32),b()()),2&t){const e=A();y(),T("dataSource",e.studentSubsetMembersDataSource),y(10),T("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),y(),T("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}function PEe(t,n){if(1&t){const e=Se();_(0,"button",40),U("click",function(){const r=z(e).$implicit;return H(A(2).setAssignment(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function FEe(t,n){if(1&t&&(_(0,"div")(1,"h3"),k(2,"Assignment"),b(),_(3,"button",37),k(4),b(),_(5,"mat-menu",38,2),q(7,PEe,2,1,"button",39),b()()),2&t){const e=jt(6),i=A();y(3),T("matMenuTriggerFor",e),y(),Je("Selected assignment: ",null==i.selectedAssignment?null:i.selectedAssignment.name,""),y(3),T("ngForOf",i.assignments)}}function OEe(t,n){if(1&t&&(_(0,"h3"),k(1),b()),2&t){const e=A();y(),Je(" Assignment: ",null==e.selectedAssignment?null:e.selectedAssignment.name," ")}}function NEe(t,n){1&t&&(_(0,"ol")(1,"li"),k(2,"1- Upload definition file"),b(),_(3,"li"),k(4,"2- Upload members file"),b(),_(5,"li"),k(6,"3- Click validate"),b()())}function LEe(t,n){1&t&&(_(0,"ol")(1,"li"),k(2,"1- Upload members file"),b(),_(3,"li"),k(4,"2- Click validate"),b()())}function VEe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div")(2,"h3"),k(3,"Reference Data"),b(),_(4,"mat-form-field",41)(5,"mat-label"),k(6,"Textarea"),b(),_(7,"textarea",42),Hr("ngModelChange",function(r){z(e);const o=A();return io(o.assignmentsString,r)||(o.assignmentsString=r),H(r)}),b()(),_(8,"button",11),U("click",function(){return z(e),H(A().updateAssignments())}),k(9,"Update Assignments"),b()()()}if(2&t){const e=A();y(7),zr("ngModel",e.assignmentsString)}}let BEe=(()=>{class t{constructor(e,i,r,o){this.http=e,this.terminologyService=i,this._snackBar=r,this.activatedRoute=o,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result"],this.studentSubsetMembersDataSource=new qu,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.keyConceptValidationResult="",this.definitionVsMembersValidationResult="",this.membersNotInRefrenceListResult="",this.membersValidationResult=!1,this.refrenceListVsStudentListResult="",this.embeddedMode=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.assignments=[{name:"Assignment X",referenceData:[{referencedComponentId:"403197009",name:"Sun-induced wrinkles"},{referencedComponentId:"279002006",name:"Lichenification of skin"},{referencedComponentId:"274672009",name:"Changes in skin texture"},{referencedComponentId:"271767006",name:"Peeling of skin"},{referencedComponentId:"271761007",name:"Scaly skin"},{referencedComponentId:"247434009",name:"Wrinkled skin"}],referenceDefinition:"< 185823004 |Finding of skin texture (finding)|",keyConceptsInECL:[{code:"185823004",display:"Finding of skin texture (finding)"}],customMessages:[{conceptId:"85345005",note:"wrong hierarchy",principle:"wrong hierarchy"},{conceptId:"403197009",note:"wrong hierarchy",principle:"wrong hierarchy"}]}],this.assignmentsString=JSON.stringify(this.assignments),this.selectedAssignment=this.assignments[0],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new qu(this.selectedAssignment.referenceData)}ngOnInit(){var e=this;return me(function*(){const i=yield Co(e.http.get("assets/definitions/assignments.json"));e.assignments=i,e.assignmentsString=JSON.stringify(e.assignments),e.setAssignment(e.assignments[0]),e.activatedRoute.queryParams.subscribe(r=>{r.assignment&&e.setAssignment(e.assignments.find(o=>o.name===r.assignment)),e.embeddedMode="true"===r.embedded})})()}setAssignment(e){e&&(this.selectedAssignment=e,this.referenceDataDataSource=new qu(this.selectedAssignment.referenceData))}checkStudentECLvsStudentList(){var e=this;return me(function*(){if(!e.studentSubsetDefinition){let r=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),s=0;e.studentSubsetmembers.forEach(a=>{r.expansion.contains.find(l=>l.code===a.referencedComponentId)?a.inStudentECL={value:!0,message:""}:(a.inStudentECL={value:!1,message:""},s++)})}return 0})()}checkStudentECLvsKeyConcept(){if(this.studentSubsetDefinition){console.log("Student ECL not defined");let e=this.studentSubsetDefinition,r=!0;return this.selectedAssignment.keyConceptsInECL.forEach(o=>{e.includes(o.code)||(r=!1)}),r}return!0}checkStudentListVsReferenceList(){let i=this.selectedAssignment.referenceData;this.studentSubsetmembers.forEach(o=>{o.inReferenceList=i.find(a=>a.referencedComponentId===o.referencedComponentId)?{value:!0,message:""}:{value:!1,message:""}})}checkReferenceListVsStudentList(){let e=this.studentSubsetmembers,r=0;return this.selectedAssignment.referenceData.forEach(o=>{e.find(a=>a.referencedComponentId===o.referencedComponentId)?o.inStudentList={value:!0,message:""}:(o.inStudentList={value:!1,message:""},r++)}),r}checkStudentListVsCustomMessages(){let i=this.selectedAssignment.customMessages;this.studentSubsetmembers.forEach(r=>{const o=i.find(s=>s.conceptId===r.referencedComponentId);r.customMessage=o?{value:!0,principle:o.principle,note:o.note}:{value:!1,principle:"",note:""}})}updateAssignments(){this.assignments=JSON.parse(this.assignmentsString),this.setAssignment(this.assignments[0])}validateAssignment(){var e=this;return me(function*(){e.loading=!0,e.keyConceptValidationResult="",e.definitionVsMembersValidationResult="",e.membersValidationResult=!1,e.loading=!0,e.studentSubsetDefinition&&(e.definitionVsMembersValidationResult=(yield e.checkStudentECLvsStudentList())>0?e.error+" The uploaded definition and members files are not in alignment":e.ok+" The uploaded definition and members files are in alignment",e.keyConceptValidationResult=e.checkStudentECLvsKeyConcept()?e.ok+" The definition of your subset includes the key subhierarchy":e.error+" The definition of your subset does not include the key subhierarchy"),e.checkStudentListVsReferenceList();let i=e.studentSubsetmembers.filter(o=>!o.inReferenceList.value).length;e.membersNotInRefrenceListResult=i>0?e.error+" There are "+i+" members in your subset that are not recommended to be included":e.ok+" All members match the recommended list of concepts for the subset",e.checkStudentListVsCustomMessages();let r=e.checkReferenceListVsStudentList();e.refrenceListVsStudentListResult=r>0?e.error+" "+r+" "+(r>1?"concepts are":"concept is")+" missing in the uploaded member list that would be recommended to be included in this subset":e.ok+" All recommended concepts are included in this subset",e.loading=!1,e.membersValidationResult=!0})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new qu,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const a=r.result.split("\n"),c=a[0].split("\t");if(c.length<2)throw new Error("Invalid file format");const l=c.indexOf("referencedComponentId"),d=c.indexOf("name");if(l<0||d<0)throw new Error("Invalid file format");const u=[];for(let h=1;hh.name.localeCompare(f.name)),this.studentSubsetmembers=u,this.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(s){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(i)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const i=e.target.files?.[0];if(i){const r=new FileReader;r.onload=o=>{try{const c=r.result.replace(/\r/g,"").split("\n"),l=c[0].split("\t");if(l.length<2)throw new Error("Invalid file format");const d=l.indexOf("referencedComponentId"),u=l.indexOf("definition");if(d<0||u<0)throw new Error("Invalid file format");this.studentSubsetDefinition=c[1].split("\t")[u],this.loading=!1}catch(s){this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ti,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(i)}else this.loading=!1}static#e=this.\u0275fac=function(i){return new(i||t)(w(cd),w(so),w($u),w(od))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-subset-validator"]],viewQuery:function(i,r){if(1&i&&vt(Td,5),2&i){let o;Re(o=Pe())&&(r.sort=o.first)}},decls:31,vars:12,consts:[["fileInput",""],["fileInputDefinition",""],["demosMenu","matMenu"],[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],[1,"mb-4"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click","disabled"],["mat-flat-button","","color","primary",3,"click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],[4,"ngIf"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[1,"text-white","mb-1"],["class","validation-result",4,"ngIf"],[1,"validation-result"],[1,"table-container"],["mat-table","",3,"dataSource"],["matColumnDef","referencedComponentId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","result"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"ngClass"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["appearance","fill"],["matInput","",3,"ngModelChange","ngModel"]],template:function(i,r){if(1&i){const o=Se();_(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3"),k(4,"Subset Members Validator"),b(),_(5,"p",6),k(6),b(),q(7,pEe,2,1,"p",7),_(8,"input",8,0),U("change",function(a){return z(o),H(r.onSubsetmembersFileSelected(a))}),b(),_(10,"input",8,1),U("change",function(a){return z(o),H(r.onDefinitionFileSelected(a))}),b(),_(12,"div",9)(13,"button",10),U("click",function(){return z(o),H(jt(11).click())}),k(14," Upload Definition File "),b(),_(15,"button",11),U("click",function(){return z(o),H(jt(9).click())}),k(16,"Upload Members File"),b(),_(17,"button",10),U("click",function(){return z(o),H(r.validateAssignment())}),k(18,"Validate"),b(),q(19,gEe,1,0,"mat-spinner",12),b(),q(20,vEe,9,4,"div",13),b(),q(21,REe,13,3,"div",14),b(),_(22,"div",15),q(23,FEe,8,3,"div",16)(24,OEe,2,1,"h3",16),_(25,"h3"),k(26,"Instructions"),b(),_(27,"div",17),q(28,NEe,7,0,"ol",16)(29,LEe,5,0,"ol",16),b(),q(30,VEe,10,1,"div",16),b()()}2&i&&(y(6),Je("Validating against ",r.terminologyService.getFhirUrlParam(),""),y(),T("ngIf",r.studentSubsetDefinition),y(6),T("disabled",!r.selectedAssignment.referenceDefinition),y(4),T("disabled",!r.studentSubsetMembersDataSource.data.length),y(2),T("ngIf",r.loading),y(),T("ngIf",!r.loading&&r.membersNotInRefrenceListResult),y(),T("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),y(2),T("ngIf",!r.embeddedMode),y(),T("ngIf",r.embeddedMode),y(4),T("ngIf",r.selectedAssignment.referenceDefinition),y(),T("ngIf",!r.selectedAssignment.referenceDefinition),y(),T("ngIf",!r.embeddedMode))},dependencies:[Da,ro,jr,Eo,Pa,mc,Wu,Fa,Bs,md,kd,ra,ps,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Vs],styles:["[_nghost-%COMP%]{display:block;height:calc(100% - 65px)}.layout-container[_ngcontent-%COMP%]{display:flex;height:100%}.left-column[_ngcontent-%COMP%]{flex:0 0 68%;display:flex;flex-direction:column;height:100%}.right-column[_ngcontent-%COMP%]{flex:0 0 28%}.buttons-panel[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem;margin-top:2rem}.upload-controls[_ngcontent-%COMP%], .table-container[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.table-container[_ngcontent-%COMP%]{overflow-y:auto}.upload-controls[_ngcontent-%COMP%]{margin-left:20px}table[_ngcontent-%COMP%]{width:100%}.validation-result[_ngcontent-%COMP%]{font-weight:400;font-size:larger}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:.5rem 3rem 1rem;width:80%;color:#f5f5f5;margin-top:20px}.terminal-style[_ngcontent-%COMP%]{font-family:monospace;font-size:.9rem;background-color:#000;color:#fff;padding:10px;border-radius:10px;margin-top:20px;width:80%}h4[_ngcontent-%COMP%]{margin-top:10px}.instructions[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;font-weight:lighter;font-size:larger}h3[_ngcontent-%COMP%]{margin-top:10px}.bg-pink[_ngcontent-%COMP%]{background-color:pink}tr.mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#aba9a9!important}"]})}return t})();const tj=function(t){const n=[];let e=0;for(let i=0;i>6|192,n[e++]=63&r|128):55296==(64512&r)&&i+1>18|240,n[e++]=r>>12&63|128,n[e++]=r>>6&63|128,n[e++]=63&r|128):(n[e++]=r>>12|224,n[e++]=r>>6&63|128,n[e++]=63&r|128)}return n},nj={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(t,n){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const e=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r>6,f=63&l;c||(f=64,s||(h=64)),i.push(e[o>>2],e[(3&o)<<4|a>>4],e[h],e[f])}return i.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(tj(t),n)},decodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(t):function(t){const n=[];let e=0,i=0;for(;e191&&r<224){const o=t[e++];n[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){const c=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536;n[i++]=String.fromCharCode(55296+(c>>10)),n[i++]=String.fromCharCode(56320+(1023&c))}else{const o=t[e++],s=t[e++];n[i++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&s)}}return n.join("")}(this.decodeStringToByteArray(t,n))},decodeStringToByteArray(t,n){this.init_();const e=n?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r>4),64!==l&&(i.push(a<<4&240|l>>2),64!==u&&i.push(l<<6&192|u))}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class $Ee extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const y1=function(t){return function(t){const n=tj(t);return nj.encodeByteArray(n,!0)}(t).replace(/\./g,"")},x1=()=>{try{return function qEe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||(()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const n=t&&function(t){try{return nj.decodeString(t,!0)}catch(n){console.error("base64Decode failed: ",n)}return null}(t[1]);return n&&JSON.parse(n)})()}catch(t){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`)}},rj=()=>{var t;return null===(t=x1())||void 0===t?void 0:t.config};class oj{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}wrapCallback(n){return(e,i)=>{e?this.reject(e):this.resolve(i),"function"==typeof n&&(this.promise.catch(()=>{}),1===n.length?n(e):n(e,i))}}}function Sd(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function aj(){try{return"object"==typeof indexedDB}catch{return!1}}class $m extends Error{constructor(n,e,i){super(e),this.code=n,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,$m.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,cj.prototype.create)}}class cj{constructor(n,e,i){this.service=n,this.serviceName=e,this.errors=i}create(n,...e){const i=e[0]||{},r=`${this.service}/${n}`,o=this.errors[n],s=o?function iSe(t,n){return t.replace(rSe,(e,i)=>{const r=n[i];return null!=r?String(r):`<${i}?>`})}(o,i):"Error";return new $m(r,`${this.serviceName}: ${s} (${r}).`,i)}}const rSe=/\{\$([^}]+)}/g;function y0(t,n){if(t===n)return!0;const e=Object.keys(t),i=Object.keys(n);for(const r of e){if(!i.includes(r))return!1;const o=t[r],s=n[r];if(dj(o)&&dj(s)){if(!y0(o,s))return!1}else if(o!==s)return!1}for(const r of i)if(!e.includes(r))return!1;return!0}function dj(t){return null!==t&&"object"==typeof t}function Oa(t){return t&&t._delegate?t._delegate:t}class x0{constructor(n,e,i){this.name=n,this.instanceFactory=e,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(n){return this.instantiationMode=n,this}setMultipleInstances(n){return this.multipleInstances=n,this}setServiceProps(n){return this.serviceProps=n,this}setInstanceCreatedCallback(n){return this.onInstanceCreated=n,this}}const eh="[DEFAULT]";class hSe{constructor(n,e){this.name=n,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(n){const e=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(e)){const i=new oj;if(this.instancesDeferred.set(e,i),this.isInitialized(e)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:e});r&&i.resolve(r)}catch{}}return this.instancesDeferred.get(e).promise}getImmediate(n){var e;const i=this.normalizeInstanceIdentifier(n?.identifier),r=null!==(e=n?.optional)&&void 0!==e&&e;if(!this.isInitialized(i)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:i})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(n){if(n.name!==this.name)throw Error(`Mismatching Component ${n.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=n,this.shouldAutoInitialize()){if(function mSe(t){return"EAGER"===t.instantiationMode}(n))try{this.getOrInitializeService({instanceIdentifier:eh})}catch{}for(const[e,i]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const o=this.getOrInitializeService({instanceIdentifier:r});i.resolve(o)}catch{}}}}clearInstance(n=eh){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}delete(){var n=this;return me(function*(){const e=Array.from(n.instances.values());yield Promise.all([...e.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...e.filter(i=>"_delete"in i).map(i=>i._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(n=eh){return this.instances.has(n)}getOptions(n=eh){return this.instancesOptions.get(n)||{}}initialize(n={}){const{options:e={}}=n,i=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:i,options:e});for(const[o,s]of this.instancesDeferred.entries())i===this.normalizeInstanceIdentifier(o)&&s.resolve(r);return r}onInit(n,e){var i;const r=this.normalizeInstanceIdentifier(e),o=null!==(i=this.onInitCallbacks.get(r))&&void 0!==i?i:new Set;o.add(n),this.onInitCallbacks.set(r,o);const s=this.instances.get(r);return s&&n(s,r),()=>{o.delete(n)}}invokeOnInitCallbacks(n,e){const i=this.onInitCallbacks.get(e);if(i)for(const r of i)try{r(n,e)}catch{}}getOrInitializeService({instanceIdentifier:n,options:e={}}){let i=this.instances.get(n);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===eh?void 0:t),options:e}),this.instances.set(n,i),this.instancesOptions.set(n,e),this.invokeOnInitCallbacks(i,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,i)}catch{}var t;return i||null}normalizeInstanceIdentifier(n=eh){return this.component?this.component.multipleInstances?n:eh:n}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class pSe{constructor(n){this.name=n,this.providers=new Map}addComponent(n){const e=this.getProvider(n.name);if(e.isComponentSet())throw new Error(`Component ${n.name} has already been registered with ${this.name}`);e.setComponent(n)}addOrOverwriteComponent(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)}getProvider(n){if(this.providers.has(n))return this.providers.get(n);const e=new hSe(n,this);return this.providers.set(n,e),e}getProviders(){return Array.from(this.providers.values())}}const EA=[];var Dn=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}(Dn||{});const uj={debug:Dn.DEBUG,verbose:Dn.VERBOSE,info:Dn.INFO,warn:Dn.WARN,error:Dn.ERROR,silent:Dn.SILENT},gSe=Dn.INFO,_Se={[Dn.DEBUG]:"log",[Dn.VERBOSE]:"log",[Dn.INFO]:"info",[Dn.WARN]:"warn",[Dn.ERROR]:"error"},bSe=(t,n,...e)=>{if(nn.some(e=>t instanceof e);let fj,mj;const pj=new WeakMap,SA=new WeakMap,gj=new WeakMap,DA=new WeakMap,IA=new WeakMap;let AA={get(t,n,e){if(t instanceof IDBTransaction){if("done"===n)return SA.get(t);if("objectStoreNames"===n)return t.objectStoreNames||gj.get(t);if("store"===n)return e.objectStoreNames[1]?void 0:e.objectStore(e.objectStoreNames[0])}return Dd(t[n])},set:(t,n,e)=>(t[n]=e,!0),has:(t,n)=>t instanceof IDBTransaction&&("done"===n||"store"===n)||n in t};function ESe(t){return"function"==typeof t?function TSe(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function xSe(){return mj||(mj=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(t)?function(...n){return t.apply(MA(this),n),Dd(pj.get(this))}:function(...n){return Dd(t.apply(MA(this),n))}:function(n,...e){const i=t.call(MA(this),n,...e);return gj.set(i,n.sort?n.sort():[n]),Dd(i)}}(t):(t instanceof IDBTransaction&&function kSe(t){if(SA.has(t))return;const n=new Promise((e,i)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{e(),r()},s=()=>{i(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});SA.set(t,n)}(t),vSe(t,function ySe(){return fj||(fj=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(t,AA):t)}function Dd(t){if(t instanceof IDBRequest)return function wSe(t){const n=new Promise((e,i)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{e(Dd(t.result)),r()},s=()=>{i(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",s)});return n.then(e=>{e instanceof IDBCursor&&pj.set(e,t)}).catch(()=>{}),IA.set(n,t),n}(t);if(DA.has(t))return DA.get(t);const n=ESe(t);return n!==t&&(DA.set(t,n),IA.set(n,t)),n}const MA=t=>IA.get(t),DSe=["get","getKey","getAll","getAllKeys","count"],ISe=["put","add","delete","clear"],RA=new Map;function _j(t,n){if(!(t instanceof IDBDatabase)||n in t||"string"!=typeof n)return;if(RA.get(n))return RA.get(n);const e=n.replace(/FromIndex$/,""),i=n!==e,r=ISe.includes(e);if(!(e in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!DSe.includes(e))return;const o=function(){var s=me(function*(a,...c){const l=this.transaction(a,r?"readwrite":"readonly");let d=l.store;return i&&(d=d.index(c.shift())),(yield Promise.all([d[e](...c),r&&l.done]))[0]});return function(c){return s.apply(this,arguments)}}();return RA.set(n,o),o}!function CSe(t){AA=t(AA)}(t=>({...t,get:(n,e,i)=>_j(n,e)||t.get(n,e,i),has:(n,e)=>!!_j(n,e)||t.has(n,e)}));class ASe{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function MSe(t){const n=t.getComponent();return"VERSION"===n?.type}(e)){const i=e.getImmediate();return`${i.library}/${i.version}`}return null}).filter(e=>e).join(" ")}}const PA="@firebase/app",th=new hj("@firebase/app"),k1="[DEFAULT]",iDe={[PA]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},nh=new Map,C1=new Map;function rDe(t,n){try{t.container.addComponent(n)}catch(e){th.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,e)}}function T1(t){const n=t.name;if(C1.has(n))return th.debug(`There were multiple attempts to register component ${n}.`),!1;C1.set(n,t);for(const e of nh.values())rDe(e,t);return!0}const _l=new cj("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class sDe{constructor(n,e,i){this._isDeleted=!1,this._options=Object.assign({},n),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new x0("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(n){this.checkDestroyed(),this._automaticDataCollectionEnabled=n}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(n){this._isDeleted=n}checkDestroyed(){if(this.isDeleted)throw _l.create("app-deleted",{appName:this._name})}}function yj(t,n={}){let e=t;"object"!=typeof n&&(n={name:n});const i=Object.assign({name:k1,automaticDataCollectionEnabled:!1},n),r=i.name;if("string"!=typeof r||!r)throw _l.create("bad-app-name",{appName:String(r)});if(e||(e=rj()),!e)throw _l.create("no-options");const o=nh.get(r);if(o){if(y0(e,o.options)&&y0(i,o.config))return o;throw _l.create("duplicate-app",{appName:r})}const s=new pSe(r);for(const c of C1.values())s.addComponent(c);const a=new sDe(e,i,s);return nh.set(r,a),a}function Gm(t,n,e){var i;let r=null!==(i=iDe[t])&&void 0!==i?i:t;e&&(r+=`-${e}`);const o=r.match(/\s|\//),s=n.match(/\s|\//);if(o||s){const a=[`Unable to register library "${r}" with version "${n}":`];return o&&a.push(`library name "${r}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${n}" contains illegal characters (whitespace or "/")`),void th.warn(a.join(" "))}T1(new x0(`${r}-version`,()=>({library:r,version:n}),"VERSION"))}const lDe="firebase-heartbeat-database",dDe=1,w0="firebase-heartbeat-store";let OA=null;function xj(){return OA||(OA=function SSe(t,n,{blocked:e,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(t,n),a=Dd(s);return i&&s.addEventListener("upgradeneeded",c=>{i(Dd(s.result),c.oldVersion,c.newVersion,Dd(s.transaction),c)}),e&&s.addEventListener("blocked",c=>e(c.oldVersion,c.newVersion,c)),a.then(c=>{o&&c.addEventListener("close",()=>o()),r&&c.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}(lDe,dDe,{upgrade:(t,n)=>{if(0===n)try{t.createObjectStore(w0)}catch(e){console.warn(e)}}}).catch(t=>{throw _l.create("idb-open",{originalErrorMessage:t.message})})),OA}function NA(){return(NA=me(function*(t){try{const e=(yield xj()).transaction(w0),i=yield e.objectStore(w0).get(kj(t));return yield e.done,i}catch(n){if(n instanceof $m)th.warn(n.message);else{const e=_l.create("idb-get",{originalErrorMessage:n?.message});th.warn(e.message)}}})).apply(this,arguments)}function wj(t,n){return LA.apply(this,arguments)}function LA(){return(LA=me(function*(t,n){try{const i=(yield xj()).transaction(w0,"readwrite");yield i.objectStore(w0).put(n,kj(t)),yield i.done}catch(e){if(e instanceof $m)th.warn(e.message);else{const i=_l.create("idb-set",{originalErrorMessage:e?.message});th.warn(i.message)}}})).apply(this,arguments)}function kj(t){return`${t.name}!${t.options.appId}`}class mDe{constructor(n){this.container=n,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new gDe(e),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}triggerHeartbeat(){var n=this;return me(function*(){var e,i;const o=n.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=Cj();if((null!=(null===(e=n._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(n._heartbeatsCache=yield n._heartbeatsCachePromise,null!=(null===(i=n._heartbeatsCache)||void 0===i?void 0:i.heartbeats)))&&n._heartbeatsCache.lastSentHeartbeatDate!==s&&!n._heartbeatsCache.heartbeats.some(a=>a.date===s))return n._heartbeatsCache.heartbeats.push({date:s,agent:o}),n._heartbeatsCache.heartbeats=n._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=2592e6}),n._storage.overwrite(n._heartbeatsCache)})()}getHeartbeatsHeader(){var n=this;return me(function*(){var e;if(null===n._heartbeatsCache&&(yield n._heartbeatsCachePromise),null==(null===(e=n._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===n._heartbeatsCache.heartbeats.length)return"";const i=Cj(),{heartbeatsToSend:r,unsentEntries:o}=function pDe(t,n=1024){const e=[];let i=t.slice();for(const r of t){const o=e.find(s=>s.agent===r.agent);if(o){if(o.dates.push(r.date),Tj(e)>n){o.dates.pop();break}}else if(e.push({agent:r.agent,dates:[r.date]}),Tj(e)>n){e.pop();break}i=i.slice(1)}return{heartbeatsToSend:e,unsentEntries:i}}(n._heartbeatsCache.heartbeats),s=y1(JSON.stringify({version:2,heartbeats:r}));return n._heartbeatsCache.lastSentHeartbeatDate=i,o.length>0?(n._heartbeatsCache.heartbeats=o,yield n._storage.overwrite(n._heartbeatsCache)):(n._heartbeatsCache.heartbeats=[],n._storage.overwrite(n._heartbeatsCache)),s})()}}function Cj(){return(new Date).toISOString().substring(0,10)}class gDe{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return me(function*(){return!!aj()&&function tSe(){return new Promise((t,n)=>{try{let e=!0;const i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),e||self.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=()=>{e=!1},r.onerror=()=>{var o;n((null===(o=r.error)||void 0===o?void 0:o.message)||"")}}catch(e){n(e)}})}().then(()=>!0).catch(()=>!1)})()}read(){var n=this;return me(function*(){if(yield n._canUseIndexedDBPromise){const i=yield function uDe(t){return NA.apply(this,arguments)}(n.app);return i?.heartbeats?i:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(n){var e=this;return me(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return wj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:n.heartbeats})}})()}add(n){var e=this;return me(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return wj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...n.heartbeats]})}})()}}function Tj(t){return y1(JSON.stringify({version:2,heartbeats:t})).length}!function _De(t){T1(new x0("platform-logger",n=>new ASe(n),"PRIVATE")),T1(new x0("heartbeat",n=>new mDe(n),"PRIVATE")),Gm(PA,"0.9.29",t),Gm(PA,"0.9.29","esm2017"),Gm("fire-js","")}("");var nt,bDe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Na={},VA=VA||{},Bt=bDe||self;function E1(t){var n=typeof t;return"array"==(n="object"!=n?n:t?Array.isArray(t)?"array":n:"null")||"object"==n&&"number"==typeof t.length}function k0(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}var BA="closure_uid_"+(1e9*Math.random()>>>0),yDe=0;function xDe(t,n,e){return t.call.apply(t.bind,arguments)}function wDe(t,n,e){if(!t)throw Error();if(2{};Bt.addEventListener("test",e,n),Bt.removeEventListener("test",e,n)}catch{}return t}();function C0(t){return/^[\s\xa0]*$/.test(t)}function D1(){var t=Bt.navigator;return t&&(t=t.userAgent)?t:""}function bc(t){return-1!=D1().indexOf(t)}function zA(t){return zA[" "](t),t}zA[" "]=function(){};var jA,t,EDe=bc("Opera"),Wm=bc("Trident")||bc("MSIE"),Dj=bc("Edge"),HA=Dj||Wm,Ij=bc("Gecko")&&!(-1!=D1().toLowerCase().indexOf("webkit")&&!bc("Edge"))&&!(bc("Trident")||bc("MSIE"))&&!bc("Edge"),SDe=-1!=D1().toLowerCase().indexOf("webkit")&&!bc("Edge");function Aj(){var t=Bt.document;return t?t.documentMode:void 0}e:{var $A="",GA=(t=D1(),Ij?/rv:([^\);]+)(\)|;)/.exec(t):Dj?/Edge\/([\d\.]+)/.exec(t):Wm?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):SDe?/WebKit\/(\S+)/.exec(t):EDe?/(?:Version)[ \/]?(\S+)/.exec(t):void 0);if(GA&&($A=GA?GA[1]:""),Wm){var WA=Aj();if(null!=WA&&WA>parseFloat($A)){jA=String(WA);break e}}jA=$A}var DDe=Bt.document&&Wm&&(Aj()||parseInt(jA,10))||void 0;function T0(t,n){if(Ao.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var e=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=n,n=t.relatedTarget){if(Ij){e:{try{zA(n.nodeName);var r=!0;break e}catch{}r=!1}r||(n=null)}}else"mouseover"==e?n=t.fromElement:"mouseout"==e&&(n=t.toElement);this.relatedTarget=n,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:IDe[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&T0.$.h.call(this)}}Wr(T0,Ao);var IDe={2:"touch",3:"pen",4:"mouse"};T0.prototype.h=function(){T0.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var E0="closure_listenable_"+(1e6*Math.random()|0),ADe=0;function MDe(t,n,e,i,r){this.listener=t,this.proxy=null,this.src=n,this.type=e,this.capture=!!i,this.la=r,this.key=++ADe,this.fa=this.ia=!1}function I1(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function QA(t,n,e){for(const i in t)n.call(e,t[i],i,t)}function Rj(t){const n={};for(const e in t)n[e]=t[e];return n}const Pj="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Fj(t,n){let e,i;for(let r=1;r>>0);function nM(t){return"function"==typeof t?t:(t[tM]||(t[tM]=function(n){return t.handleEvent(n)}),t[tM])}function qr(){Id.call(this),this.i=new A1(this),this.S=this,this.J=null}function ao(t,n){var e,i=t.J;if(i)for(e=[];i;i=i.J)e.push(i);if(t=t.S,i=n.type||n,"string"==typeof n)n=new Ao(n,t);else if(n instanceof Ao)n.target=n.target||t;else{var r=n;Fj(n=new Ao(i,t),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var s=n.g=e[o];r=M1(s,i,!0,n)&&r}if(r=M1(s=n.g=t,i,!0,n)&&r,r=M1(s,i,!1,n)&&r,e)for(o=0;onew VDe,t=>t.reset());class VDe{constructor(){this.next=this.g=this.h=null}set(n,e){this.h=n,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}function BDe(t){var n=1;t=t.split(":");const e=[];for(;0{throw t},0)}let S0,D0=!1,rM=new class LDe{constructor(){this.h=this.g=null}add(n,e){const i=Uj.get();i.set(n,e),this.h?this.h.next=i:this.g=i,this.h=i}},zj=()=>{const t=Bt.Promise.resolve(void 0);S0=()=>{t.then(zDe)}};var zDe=()=>{for(var t;t=NDe();){try{t.h.call(t.g)}catch(e){UDe(e)}var n=Uj;n.j(t),100>n.h&&(n.h++,t.next=n.g,n.g=t)}D0=!1};function R1(t,n){qr.call(this),this.h=t||1,this.g=n||Bt,this.j=Io(this.qb,this),this.l=Date.now()}function oM(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function sM(t,n,e){if("function"==typeof t)e&&(t=Io(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Io(t.handleEvent,t)}return 2147483647{t.g=null,t.i&&(t.i=!1,Hj(t))},t.j);const n=t.h;t.h=null,t.m.apply(null,n)}Wr(R1,qr),(nt=R1.prototype).ga=!1,nt.T=null,nt.qb=function(){if(this.ga){var t=Date.now()-this.l;0i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var o=r[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;sn.length?uM:(n=n.slice(i,i+e),t.o=i+e,n))}function F0(t){t.Y=Date.now()+t.P,r$(t,t.P)}function r$(t,n){if(null!=t.C)throw Error("WatchDog timer not null");t.C=M0(Io(t.lb,t),n)}function L1(t){t.C&&(Bt.clearTimeout(t.C),t.C=null)}function O0(t){0==t.l.H||t.J||M$(t.l,t)}function rh(t){L1(t);var n=t.M;n&&"function"==typeof n.sa&&n.sa(),t.M=null,oM(t.V),Gj(t.U),t.g&&(n=t.g,t.g=null,n.abort(),n.sa())}function fM(t,n){try{var e=t.l;if(0!=e.H&&(e.g==t||mM(e.i,t)))if(!t.K&&mM(e.i,t)&&3==e.H){try{var i=e.Ja.g.parse(n)}catch{i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){e:if(!e.u){if(e.g){if(!(e.g.G+3e3r[2]&&e.G&&0==e.A&&!e.v&&(e.v=M0(Io(e.ib,e),6e3));if(1>=m$(e.i)&&e.oa){try{e.oa()}catch{}e.oa=void 0}}else sh(e,11)}else if((t.K||e.g==t)&&W1(e),!C0(n))for(r=e.Ja.g.parse(n),n=0;nd)&&(3!=d||HA||this.g&&(this.h.h||this.g.ja()||k$(this.g)))){this.J||4!=d||7==n||A0(),L1(this);var e=this.g.da();this.ca=e;t:if(n$(this)){var i=k$(this.g);t="";var r=i.length,o=4==vc(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){rh(this),O0(this);var s="";break t}this.h.i=new Bt.TextDecoder}for(n=0;nn)throw Error("Bad port number "+n);t.m=n}else t.m=null}function a$(t,n,e){n instanceof V0?(t.i=n,function iIe(t,n){n&&!t.j&&(Ad(t),t.i=null,t.g.forEach(function(e,i){var r=i.toLowerCase();i!=r&&(l$(this,i),u$(this,r,e))},t)),t.j=n}(t.i,t.h)):(e||(n=L0(n,tIe)),t.i=new V0(n,t.h))}function Ei(t,n,e){t.i.set(n,e)}function U1(t){return Ei(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function N0(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function L0(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,ZDe),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ZDe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}oh.prototype.toString=function(){var t=[],n=this.j;n&&t.push(L0(n,c$,!0),":");var e=this.g;return(e||"file"==n)&&(t.push("//"),(n=this.s)&&t.push(L0(n,c$,!0),"@"),t.push(encodeURIComponent(String(e)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(e=this.m)&&t.push(":",String(e))),(e=this.l)&&(this.g&&"/"!=e.charAt(0)&&t.push("/"),t.push(L0(e,"/"==e.charAt(0)?eIe:JDe,!0))),(e=this.i.toString())&&t.push("?",e),(e=this.o)&&t.push("#",L0(e,nIe)),t.join("")};var c$=/[#\/\?@]/g,JDe=/[#\?:]/g,eIe=/[#\?]/g,tIe=/[#\?@]/g,nIe=/#/g;function V0(t,n){this.h=this.g=null,this.i=t||null,this.j=!!n}function Ad(t){t.g||(t.g=new Map,t.h=0,t.i&&function YDe(t,n){if(t){t=t.split("&");for(var e=0;e=t.j}function m$(t){return t.h?1:t.g?t.g.size:0}function mM(t,n){return t.h?t.h==n:!!t.g&&t.g.has(n)}function pM(t,n){t.g?t.g.add(n):t.h=n}function p$(t,n){t.h&&t.h==n?t.h=null:t.g&&t.g.has(n)&&t.g.delete(n)}function g$(t){if(null!=t.h)return t.i.concat(t.h.F);if(null!=t.g&&0!==t.g.size){let n=t.i;for(const e of t.g.values())n=n.concat(e.F);return n}return UA(t.i)}h$.prototype.cancel=function(){if(this.i=g$(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const t of this.g.values())t.cancel();this.g.clear()}};var sIe=class{stringify(t){return Bt.JSON.stringify(t,void 0)}parse(t){return Bt.JSON.parse(t,void 0)}};function aIe(){this.g=new sIe}function cIe(t,n,e){const i=e||"";try{o$(t,function(r,o){let s=r;k0(r)&&(s=iM(r)),n.push(i+o+"="+encodeURIComponent(s))})}catch(r){throw n.push(i+"type="+encodeURIComponent("_badmap")),r}}function z1(t,n,e,i,r){try{n.onload=null,n.onerror=null,n.onabort=null,n.ontimeout=null,r(i)}catch{}}function B0(t){this.l=t.ec||null,this.j=t.ob||!1}function H1(t,n){qr.call(this),this.F=t,this.u=n,this.m=void 0,this.readyState=gM,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Wr(B0,aM),B0.prototype.g=function(){return new H1(this.l,this.j)},B0.prototype.i=function(t){return function(){return t}}({}),Wr(H1,qr);var gM=0;function _$(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function U0(t){t.readyState=4,t.l=null,t.j=null,t.A=null,z0(t)}function z0(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(nt=H1.prototype).open=function(t,n){if(this.readyState!=gM)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=n,this.readyState=1,z0(this)},nt.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const n={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(n.body=t),(this.F||Bt).fetch(new Request(this.B,n)).then(this.$a.bind(this),this.ka.bind(this))},nt.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,U0(this)),this.readyState=gM},nt.$a=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,z0(this)),this.g&&(this.readyState=3,z0(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Bt.ReadableStream<"u"&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;_$(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))},nt.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var n=t.value?t.value:new Uint8Array(0);(n=this.A.decode(n,{stream:!t.done}))&&(this.response=this.responseText+=n)}t.done?U0(this):z0(this),3==this.readyState&&_$(this)}},nt.Za=function(t){this.g&&(this.response=this.responseText=t,U0(this))},nt.Ya=function(t){this.g&&(this.response=t,U0(this))},nt.ka=function(){this.g&&U0(this)},nt.setRequestHeader=function(t,n){this.v.append(t,n)},nt.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},nt.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],n=this.h.entries();for(var e=n.next();!e.done;)t.push((e=e.value)[0]+": "+e[1]),e=n.next();return t.join("\r\n")},Object.defineProperty(H1.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var dIe=Bt.JSON.parse;function zi(t){qr.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=b$,this.L=this.M=!1}Wr(zi,qr);var b$="",uIe=/^https?$/i,hIe=["POST","PUT"];function v$(t,n){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=n,t.m=5,y$(t),j1(t)}function y$(t){t.F||(t.F=!0,ao(t,"complete"),ao(t,"error"))}function x$(t){if(t.h&&typeof VA<"u"&&(!t.C[1]||4!=vc(t)||2!=t.da()))if(t.v&&4==vc(t))sM(t.La,0,t);else if(ao(t,"readystatechange"),4==vc(t)){t.h=!1;try{const s=t.da();e:switch(s){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break e;default:n=!1}var e;if(!(e=n)){var i;if(i=0===s){var r=String(t.I).match(s$)[1]||null;!r&&Bt.self&&Bt.self.location&&(r=Bt.self.location.protocol.slice(0,-1)),i=!uIe.test(r?r.toLowerCase():"")}e=i}if(e)ao(t,"complete"),ao(t,"success");else{t.m=6;try{var o=2{}:null;t.g=null,t.C=null,n||ao(t,"ready");try{e.onreadystatechange=i}catch{}}}function w$(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Bt.clearTimeout(t.A),t.A=null)}function vc(t){return t.g?t.g.readyState:0}function k$(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case b$:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function C$(t){let n="";return QA(t,function(e,i){n+=i,n+=":",n+=e,n+="\r\n"}),n}function _M(t,n,e){e:{for(i in e){var i=!1;break e}i=!0}i||(e=C$(e),"string"==typeof t?null!=e&&encodeURIComponent(String(e)):Ei(t,n,e))}function H0(t,n,e){return e&&e.internalChannelParams&&e.internalChannelParams[t]||n}function T$(t){this.Ga=0,this.j=[],this.l=new P1,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=H0("failFast",!1,t),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=H0("baseRetryDelayMs",5e3,t),this.hb=H0("retryDelaySeedMs",1e4,t),this.eb=H0("forwardChannelMaxRetries",2,t),this.xa=H0("forwardChannelRequestTimeoutMs",2e4,t),this.va=t&&t.xmlHttpFactory||void 0,this.Ha=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.i=new h$(t&&t.concurrentRequestLimit),this.Ja=new aIe,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=t&&t.bc||!1,t&&t.Ea&&this.l.Ea(),t&&t.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&t&&t.detectBufferingProxy||!1,this.qa=void 0,t&&t.longPollingTimeout&&0l)o=Math.max(0,r[c].g-100),a=!1;else try{cIe(d,s,"req"+l+"_")}catch{i&&i(d)}}if(a){i=s.join("&");break e}}}return t=t.j.splice(0,e),n.F=t,i}function I$(t){if(!t.g&&!t.u){t.ba=1;var n=t.Ma;S0||zj(),D0||(S0(),D0=!0),rM.add(n,t),t.A=0}}function vM(t){return!(t.g||t.u||3<=t.A||(t.ba++,t.u=M0(Io(t.Ma,t),R$(t,t.A)),t.A++,0))}function yM(t){null!=t.B&&(Bt.clearTimeout(t.B),t.B=null)}function A$(t){t.g=new P0(t,t.l,"rpc",t.ba),null===t.o&&(t.g.I=t.s),t.g.O=0;var n=bl(t.wa);Ei(n,"RID","rpc"),Ei(n,"SID",t.K),Ei(n,"AID",t.V),Ei(n,"CI",t.G?"0":"1"),!t.G&&t.qa&&Ei(n,"TO",t.qa),Ei(n,"TYPE","xmlhttp"),j0(t,n),t.o&&t.s&&_M(n,t.o,t.s),t.L&&t.g.setTimeout(t.L);var e=t.g;t=t.pa,e.L=1,e.A=U1(bl(n)),e.u=null,e.S=!0,t$(e,t)}function W1(t){null!=t.v&&(Bt.clearTimeout(t.v),t.v=null)}function M$(t,n){var e=null;if(t.g==n){W1(t),yM(t),t.g=null;var i=2}else{if(!mM(t.i,n))return;e=n.F,p$(t.i,n),i=1}if(0!=t.H)if(n.i)if(1==i){e=n.u?n.u.length:0,n=Date.now()-n.G;var r=t.C;ao(i=F1(),new Kj(i,e)),G1(t)}else I$(t);else if(3==(r=n.s)||0==r&&0=t.i.j-(t.m?1:0)||(t.m?(t.j=n.F.concat(t.j),0):1==t.H||2==t.H||t.C>=(t.cb?0:t.eb)||(t.m=M0(Io(t.Na,t,n),R$(t,t.C)),t.C++,0)))}(t,n)||2==i&&vM(t)))switch(e&&0r;++r)i[r]=n.charCodeAt(e++)|n.charCodeAt(e++)<<8|n.charCodeAt(e++)<<16|n.charCodeAt(e++)<<24;else for(r=0;16>r;++r)i[r]=n[e++]|n[e++]<<8|n[e++]<<16|n[e++]<<24;var o=t.g[3],s=(n=t.g[0])+(o^(e=t.g[1])&((r=t.g[2])^o))+i[0]+3614090360&4294967295;s=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=(e=(r=(o=(n=e+(s<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[1]+3905402710&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[2]+606105819&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[3]+3250441966&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[4]+4118548399&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[5]+1200080426&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[6]+2821735955&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[7]+4249261313&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[8]+1770035416&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[9]+2336552879&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[10]+4294925233&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[11]+2304563134&4294967295)<<22&4294967295|s>>>10))+((s=n+(o^e&(r^o))+i[12]+1804603682&4294967295)<<7&4294967295|s>>>25))+((s=o+(r^n&(e^r))+i[13]+4254626195&4294967295)<<12&4294967295|s>>>20))+((s=r+(e^o&(n^e))+i[14]+2792965006&4294967295)<<17&4294967295|s>>>15))+((s=e+(n^r&(o^n))+i[15]+1236535329&4294967295)<<22&4294967295|s>>>10))+((s=n+(r^o&(e^r))+i[1]+4129170786&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[6]+3225465664&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[11]+643717713&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[0]+3921069994&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[5]+3593408605&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[10]+38016083&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[15]+3634488961&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[4]+3889429448&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[9]+568446438&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[14]+3275163606&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[3]+4107603335&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[8]+1163531501&4294967295)<<20&4294967295|s>>>12))+((s=n+(r^o&(e^r))+i[13]+2850285829&4294967295)<<5&4294967295|s>>>27))+((s=o+(e^r&(n^e))+i[2]+4243563512&4294967295)<<9&4294967295|s>>>23))+((s=r+(n^e&(o^n))+i[7]+1735328473&4294967295)<<14&4294967295|s>>>18))+((s=e+(o^n&(r^o))+i[12]+2368359562&4294967295)<<20&4294967295|s>>>12))+((s=n+(e^r^o)+i[5]+4294588738&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[8]+2272392833&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[11]+1839030562&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[14]+4259657740&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[1]+2763975236&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[4]+1272893353&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[7]+4139469664&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[10]+3200236656&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[13]+681279174&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[0]+3936430074&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[3]+3572445317&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[6]+76029189&4294967295)<<23&4294967295|s>>>9))+((s=n+(e^r^o)+i[9]+3654602809&4294967295)<<4&4294967295|s>>>28))+((s=o+(n^e^r)+i[12]+3873151461&4294967295)<<11&4294967295|s>>>21))+((s=r+(o^n^e)+i[15]+530742520&4294967295)<<16&4294967295|s>>>16))+((s=e+(r^o^n)+i[2]+3299628645&4294967295)<<23&4294967295|s>>>9))+((s=n+(r^(e|~o))+i[0]+4096336452&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[7]+1126891415&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[14]+2878612391&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[5]+4237533241&4294967295)<<21&4294967295|s>>>11))+((s=n+(r^(e|~o))+i[12]+1700485571&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[3]+2399980690&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[10]+4293915773&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[1]+2240044497&4294967295)<<21&4294967295|s>>>11))+((s=n+(r^(e|~o))+i[8]+1873313359&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[15]+4264355552&4294967295)<<10&4294967295|s>>>22))+((s=r+(n^(o|~e))+i[6]+2734768916&4294967295)<<15&4294967295|s>>>17))+((s=e+(o^(r|~n))+i[13]+1309151649&4294967295)<<21&4294967295|s>>>11))+((o=(n=e+((s=n+(r^(e|~o))+i[4]+4149444226&4294967295)<<6&4294967295|s>>>26))+((s=o+(e^(n|~r))+i[11]+3174756917&4294967295)<<10&4294967295|s>>>22))^((r=o+((s=r+(n^(o|~e))+i[2]+718787259&4294967295)<<15&4294967295|s>>>17))|~n))+i[9]+3951481745&4294967295,t.g[0]=t.g[0]+n&4294967295,t.g[1]=t.g[1]+(r+(s<<21&4294967295|s>>>11))&4294967295,t.g[2]=t.g[2]+r&4294967295,t.g[3]=t.g[3]+o&4294967295}function Zn(t,n){this.h=n;for(var e=[],i=!0,r=t.length-1;0<=r;r--){var o=0|t[r];i&&o==n||(e[r]=o,i=!1)}this.g=e}(nt=zi.prototype).Oa=function(t){this.M=t},nt.ha=function(t,n,e,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);n=n?n.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():dM.g(),this.C=function Yj(t){return t.h||(t.h=t.i())}(this.u?this.u:dM),this.g.onreadystatechange=Io(this.La,this);try{this.G=!0,this.g.open(n,String(t),!0),this.G=!1}catch(o){return void v$(this,o)}if(t=e||"",e=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var r in i)e.set(r,i[r]);else{if("function"!=typeof i.keys||"function"!=typeof i.get)throw Error("Unknown input type for opt_headers: "+String(i));for(const o of i.keys())e.set(o,i.get(o))}i=Array.from(e.keys()).find(o=>"content-type"==o.toLowerCase()),r=Bt.FormData&&t instanceof Bt.FormData,!(0<=Ej(hIe,n))||i||r||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[o,s]of e)this.g.setRequestHeader(o,s);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{w$(this),0=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=M0(Io(this.jb,this),t)}},nt.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Zo(10),$1(this),A$(this))},nt.ib=function(){null!=this.v&&(this.v=null,$1(this),vM(this),Zo(19))},nt.pb=function(t){t?(this.l.info("Successfully pinged google.com"),Zo(2)):(this.l.info("Failed to ping google.com"),Zo(1))},nt.isActive=function(){return!!this.h&&this.h.isActive(this)},(nt=N$.prototype).Ba=function(){},nt.Aa=function(){},nt.za=function(){},nt.ya=function(){},nt.isActive=function(){return!0},nt.Va=function(){},q1.prototype.g=function(t,n){return new Us(t,n)},Wr(Us,qr),Us.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var t=this.g,n=this.l,e=this.h||void 0;Zo(0),t.Y=n,t.na=e||{},t.G=t.aa,t.I=F$(t,null,t.Y),G1(t)},Us.prototype.close=function(){bM(this.g)},Us.prototype.u=function(t){var n=this.g;if("string"==typeof t){var e={};e.__data__=t,t=e}else this.v&&((e={}).__data__=iM(t),t=e);n.j.push(new rIe(n.fb++,t)),3==n.H&&G1(n)},Us.prototype.N=function(){this.g.h=null,delete this.j,bM(this.g),delete this.g,Us.$.N.call(this)},Wr(L$,cM),Wr(V$,lM),Wr(Km,N$),Km.prototype.Ba=function(){ao(this.g,"a")},Km.prototype.Aa=function(t){ao(this.g,new L$(t))},Km.prototype.za=function(t){ao(this.g,new V$)},Km.prototype.ya=function(){ao(this.g,"b")},Wr(La,function gIe(){this.blockSize=-1}),La.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},La.prototype.j=function(t,n){void 0===n&&(n=t.length);for(var e=n-this.blockSize,i=this.m,r=this.h,o=0;othis.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var n=1;nn;++n)for(var i=0;32>i;i+=8)t[e++]=this.g[n]>>>i&255;return t};var _Ie={};function wM(t){return-128<=t&&128>t?function TDe(t,n){var e=_Ie;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=n(t)}(t,function(n){return new Zn([0|n],0>n?-1:0)}):new Zn([0|t],0>t?-1:0)}function yc(t){if(isNaN(t)||!isFinite(t))return Xm;if(0>t)return co(yc(-t));for(var n=[],e=1,i=0;t>=e;i++)n[i]=t/e|0,e*=kM;return new Zn(n,0)}var kM=4294967296,Xm=wM(0),CM=wM(1),U$=wM(16777216);function vl(t){if(0!=t.h)return!1;for(var n=0;n>>16,t[n]&=65535,n++}function $0(t,n){this.g=t,this.h=n}function X1(t,n){if(vl(n))throw Error("division by zero");if(vl(t))return new $0(Xm,Xm);if(sa(t))return n=X1(co(t),n),new $0(co(n.g),co(n.h));if(sa(n))return n=X1(t,co(n)),new $0(co(n.g),n.h);if(30=i.X(t);)e=z$(e),i=z$(i);var r=Ym(e,1),o=Ym(i,1);for(i=Ym(i,2),e=Ym(e,2);!vl(i);){var s=o.add(i);0>=s.X(t)&&(r=r.add(e),o=s),i=Ym(i,1),e=Ym(e,1)}return n=Q1(t,r.R(n)),new $0(r,n)}for(r=Xm;0<=t.X(n);){for(e=Math.max(1,Math.floor(t.ea()/n.ea())),i=48>=(i=Math.ceil(Math.log(e)/Math.LN2))?1:Math.pow(2,i-48),s=(o=yc(e)).R(n);sa(s)||0>>31;return new Zn(e,t.h)}function Ym(t,n){var e=n>>5;n%=32;for(var i=t.g.length-e,r=[],o=0;o>>n|t.D(o+e+1)<<32-n:t.D(o+e);return new Zn(r,t.h)}(nt=Zn.prototype).ea=function(){if(sa(this))return-co(this).ea();for(var t=0,n=1,e=0;e(t=t||10)||36>>0).toString(t);if(vl(e=r))return o+i;for(;6>o.length;)o="0"+o;i=o+i}},nt.D=function(t){return 0>t?0:t>>16)+(this.D(r)>>>16)+(t.D(r)>>>16);i=s>>>16,e[r]=(s&=65535)<<16|(o&=65535)}return new Zn(e,-2147483648&e[e.length-1]?-1:0)},nt.R=function(t){if(vl(this)||vl(t))return Xm;if(sa(this))return sa(t)?co(this).R(co(t)):co(co(this).R(t));if(sa(t))return co(this.R(co(t)));if(0>this.X(U$)&&0>t.X(U$))return yc(this.ea()*t.ea());for(var n=this.g.length+t.g.length,e=[],i=0;i<2*n;i++)e[i]=0;for(i=0;i>>16,s=65535&this.D(i),a=t.D(r)>>>16,c=65535&t.D(r);e[2*i+2*r]+=s*c,K1(e,2*i+2*r),e[2*i+2*r+1]+=o*c,K1(e,2*i+2*r+1),e[2*i+2*r+1]+=s*a,K1(e,2*i+2*r+1),e[2*i+2*r+2]+=o*a,K1(e,2*i+2*r+2)}for(i=0;i(n=n||10)||36o?(o=yc(Math.pow(n,o)),i=i.R(o).add(yc(s))):i=(i=i.R(e)).add(yc(s))}return i};var bIe=Na.createWebChannelTransport=function(){return new q1},vIe=Na.getStatEventTarget=function(){return F1()},TM=Na.ErrorCode=O1,yIe=Na.EventType=Xj,xIe=Na.Event=ih,H$=Na.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},Y1=(Na.FetchXmlHttpFactory=B0,Na.WebChannel=Zj),wIe=Na.XhrIo=zi,kIe=Na.Md5=La,Zm=Na.Integer=Zn;const j$="@firebase/firestore";class Qr{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Qr.UNAUTHENTICATED=new Qr(null),Qr.GOOGLE_CREDENTIALS=new Qr("google-credentials-uid"),Qr.FIRST_PARTY=new Qr("first-party-uid"),Qr.MOCK_USER=new Qr("mock-user");let Jm="10.9.0";const Md=new hj("@firebase/firestore");function ep(){return Md.logLevel}function De(t,...n){if(Md.logLevel<=Dn.DEBUG){const e=n.map(EM);Md.debug(`Firestore (${Jm}): ${t}`,...e)}}function Ji(t,...n){if(Md.logLevel<=Dn.ERROR){const e=n.map(EM);Md.error(`Firestore (${Jm}): ${t}`,...e)}}function zs(t,...n){if(Md.logLevel<=Dn.WARN){const e=n.map(EM);Md.warn(`Firestore (${Jm}): ${t}`,...e)}}function EM(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return t}}function ot(t="Unexpected state"){const n=`FIRESTORE (${Jm}) INTERNAL ASSERTION FAILED: `+t;throw Ji(n),new Error(n)}function ht(t,n){t||ot()}function qe(t,n){return t}const de={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ie extends $m{constructor(n,e){super(n,e),this.code=n,this.message=e,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Mr{constructor(){this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}}class $${constructor(n,e){this.user=e,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class CIe{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,e){n.enqueueRetryable(()=>e(Qr.UNAUTHENTICATED))}shutdown(){}}class TIe{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,e){this.changeListener=e,n.enqueueRetryable(()=>e(this.token.user))}shutdown(){this.changeListener=null}}class EIe{constructor(n){this.t=n,this.currentUser=Qr.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,e){var i=this;let r=this.i;const o=l=>this.i!==r?(r=this.i,e(l)):Promise.resolve();let s=new Mr;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new Mr,n.enqueueRetryable(()=>o(this.currentUser))};const a=()=>{const l=s;n.enqueueRetryable(me(function*(){yield l.promise,yield o(i.currentUser)}))},c=l=>{De("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.auth.addAuthTokenListener(this.o),a()};this.t.onInit(l=>c(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?c(l):(De("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new Mr)}},0),a()}getToken(){const n=this.i,e=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(e).then(i=>this.i!==n?(De("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):i?(ht("string"==typeof i.accessToken),new $$(i.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return ht(null===n||"string"==typeof n),new Qr(n)}}class SIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i,this.type="FirstParty",this.user=Qr.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class DIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i}getToken(){return Promise.resolve(new SIe(this.l,this.h,this.P))}start(n,e){n.enqueueRetryable(()=>e(Qr.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class G${constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class IIe{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,e){const i=o=>{null!=o.error&&De("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const s=o.token!==this.R;return this.R=o.token,De("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?e(o.token):Promise.resolve()};this.o=o=>{n.enqueueRetryable(()=>i(o))};const r=o=>{De("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.appCheck.addTokenListener(this.o)};this.A.onInit(o=>r(o)),setTimeout(()=>{if(!this.appCheck){const o=this.A.getImmediate({optional:!0});o?r(o):De("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(e=>e?(ht("string"==typeof e.token),this.R=e.token,new G$(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function AIe(t){const n=typeof self<"u"&&(self.crypto||self.msCrypto),e=new Uint8Array(t);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(e);else for(let i=0;in?1:0}function tp(t,n,e){return t.length===n.length&&t.every((i,r)=>e(i,n[r]))}class Ai{constructor(n,e){if(this.seconds=n,this.nanoseconds=e,e<0)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Ie(de.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(n<-62135596800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ie(de.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Ai.fromMillis(Date.now())}static fromDate(n){return Ai.fromMillis(n.getTime())}static fromMillis(n){const e=Math.floor(n/1e3),i=Math.floor(1e6*(n-1e3*e));return new Ai(e,i)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Nt(this.nanoseconds,n.nanoseconds):Nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class pt{constructor(n){this.timestamp=n}static fromTimestamp(n){return new pt(n)}static min(){return new pt(new Ai(0,0))}static max(){return new pt(new Ai(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class G0{constructor(n,e,i){void 0===e?e=0:e>n.length&&ot(),void 0===i?i=n.length-e:i>n.length-e&&ot(),this.segments=n,this.offset=e,this.len=i}get length(){return this.len}isEqual(n){return 0===G0.comparator(this,n)}child(n){const e=this.segments.slice(this.offset,this.limit());return n instanceof G0?n.forEach(i=>{e.push(i)}):e.push(n),this.construct(e)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.lengths)return 1}return n.lengthe.length?1:0}}class vn extends G0{construct(n,e,i){return new vn(n,e,i)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const e=[];for(const i of n){if(i.indexOf("//")>=0)throw new Ie(de.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);e.push(...i.split("/").filter(r=>r.length>0))}return new vn(e)}static emptyPath(){return new vn([])}}const MIe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Mi extends G0{construct(n,e,i){return new Mi(n,e,i)}static isValidIdentifier(n){return MIe.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Mi.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Mi(["__name__"])}static fromServerFormat(n){const e=[];let i="",r=0;const o=()=>{if(0===i.length)throw new Ie(de.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);e.push(i),i=""};let s=!1;for(;r=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===vn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,e){return vn.comparator(n.path,e.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Xe(new vn(n.slice()))}}function K$(t){return new Hs(t.readTime,t.key,-1)}class Hs{constructor(n,e,i){this.readTime=n,this.documentKey=e,this.largestBatchId=i}static min(){return new Hs(pt.min(),Xe.empty(),-1)}static max(){return new Hs(pt.max(),Xe.empty(),-1)}}function DM(t,n){let e=t.readTime.compareTo(n.readTime);return 0!==e?e:(e=Xe.comparator(t.documentKey,n.documentKey),0!==e?e:Nt(t.largestBatchId,n.largestBatchId))}const X$="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Y${constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Rd(t){return IM.apply(this,arguments)}function IM(){return IM=me(function*(t){if(t.code!==de.FAILED_PRECONDITION||t.message!==X$)throw t;De("LocalStore","Unexpectedly lost primary lease")}),IM.apply(this,arguments)}class Z{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(n){return this.next(void 0,n)}next(n,e){return this.callbackAttached&&ot(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(e,this.error):this.wrapSuccess(n,this.result):new Z((i,r)=>{this.nextCallback=o=>{this.wrapSuccess(n,o).next(i,r)},this.catchCallback=o=>{this.wrapFailure(e,o).next(i,r)}})}toPromise(){return new Promise((n,e)=>{this.next(n,e)})}wrapUserFunction(n){try{const e=n();return e instanceof Z?e:Z.resolve(e)}catch(e){return Z.reject(e)}}wrapSuccess(n,e){return n?this.wrapUserFunction(()=>n(e)):Z.resolve(e)}wrapFailure(n,e){return n?this.wrapUserFunction(()=>n(e)):Z.reject(e)}static resolve(n){return new Z((e,i)=>{e(n)})}static reject(n){return new Z((e,i)=>{i(n)})}static waitFor(n){return new Z((e,i)=>{let r=0,o=0,s=!1;n.forEach(a=>{++r,a.next(()=>{++o,s&&o===r&&e()},c=>i(c))}),s=!0,o===r&&e()})}static or(n){let e=Z.resolve(!1);for(const i of n)e=e.next(r=>r?Z.resolve(r):i());return e}static forEach(n,e){const i=[];return n.forEach((r,o)=>{i.push(e.call(this,r,o))}),this.waitFor(i)}static mapArray(n,e){return new Z((i,r)=>{const o=n.length,s=new Array(o);let a=0;for(let c=0;c{s[l]=d,++a,a===o&&i(s)},d=>r(d))}})}static doWhile(n,e){return new Z((i,r)=>{const o=()=>{!0===n()?e().next(()=>{o()},r):i()};o()})}}class Z1{constructor(n,e){this.action=n,this.transaction=e,this.aborted=!1,this.V=new Mr,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{e.error?this.V.reject(new W0(n,e.error)):this.V.resolve()},this.transaction.onerror=i=>{const r=AM(i.target.error);this.V.reject(new W0(n,r))}}static open(n,e,i,r){try{return new Z1(e,n.transaction(r,i))}catch(o){throw new W0(e,o)}}get m(){return this.V.promise}abort(n){n&&this.V.reject(n),this.aborted||(De("SimpleDb","Aborting transaction:",n?n.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}g(){const n=this.transaction;this.aborted||"function"!=typeof n.commit||n.commit()}store(n){const e=this.transaction.objectStore(n);return new OIe(e)}}class aa{constructor(n,e,i){this.name=n,this.version=e,this.p=i,12.2===aa.S(Sd())&&Ji("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(n){return De("SimpleDb","Removing database:",n),lh(window.indexedDB.deleteDatabase(n)).toPromise()}static D(){if(!aj())return!1;if(aa.C())return!0;const n=Sd(),e=aa.S(n),i=00||n.indexOf("Trident/")>0||n.indexOf("Edge/")>0||i||o)}static C(){var n;return typeof process<"u"&&"YES"===(null===(n=process.__PRIVATE_env)||void 0===n?void 0:n.F)}static M(n,e){return n.store(e)}static S(n){const e=n.match(/i(?:phone|pad|pod) os ([\d_]+)/i),i=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(i)}static v(n){const e=n.match(/Android ([\d.]+)/i),i=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(i)}O(n){var e=this;return me(function*(){return e.db||(De("SimpleDb","Opening database:",e.name),e.db=yield new Promise((i,r)=>{const o=indexedDB.open(e.name,e.version);o.onsuccess=s=>{i(s.target.result)},o.onblocked=()=>{r(new W0(n,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},o.onerror=s=>{const a=s.target.error;r("VersionError"===a.name?new Ie(de.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):"InvalidStateError"===a.name?new Ie(de.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+a):new W0(n,a))},o.onupgradeneeded=s=>{De("SimpleDb",'Database "'+e.name+'" requires upgrade from version:',s.oldVersion),e.p.N(s.target.result,o.transaction,s.oldVersion,e.version).next(()=>{De("SimpleDb","Database upgrade to version "+e.version+" complete")})}})),e.L&&(e.db.onversionchange=i=>e.L(i)),e.db})()}B(n){this.L=n,this.db&&(this.db.onversionchange=e=>n(e))}runTransaction(n,e,i,r){var o=this;return me(function*(){const s="readonly"===e;let a=0;for(;;){++a;try{o.db=yield o.O(n);const c=Z1.open(o.db,n,s?"readonly":"readwrite",i),l=r(c).next(d=>(c.g(),d)).catch(d=>(c.abort(d),Z.reject(d))).toPromise();return l.catch(()=>{}),yield c.m,l}catch(c){const l=c,d="FirebaseError"!==l.name&&a<3;if(De("SimpleDb","Transaction failed with error:",l.message,"Retrying:",d),o.close(),!d)return Promise.reject(l)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}class FIe{constructor(n){this.k=n,this.q=!1,this.K=null}get isDone(){return this.q}get $(){return this.K}set cursor(n){this.k=n}done(){this.q=!0}U(n){this.K=n}delete(){return lh(this.k.delete())}}class W0 extends Ie{constructor(n,e){super(de.UNAVAILABLE,`IndexedDB transaction '${n}' failed: ${e}`),this.name="IndexedDbTransactionError"}}function Pd(t){return"IndexedDbTransactionError"===t.name}class OIe{constructor(n){this.store=n}put(n,e){let i;return void 0!==e?(De("SimpleDb","PUT",this.store.name,n,e),i=this.store.put(e,n)):(De("SimpleDb","PUT",this.store.name,"",n),i=this.store.put(n)),lh(i)}add(n){return De("SimpleDb","ADD",this.store.name,n,n),lh(this.store.add(n))}get(n){return lh(this.store.get(n)).next(e=>(void 0===e&&(e=null),De("SimpleDb","GET",this.store.name,n,e),e))}delete(n){return De("SimpleDb","DELETE",this.store.name,n),lh(this.store.delete(n))}count(){return De("SimpleDb","COUNT",this.store.name),lh(this.store.count())}W(n,e){const i=this.options(n,e),r=i.index?this.store.index(i.index):this.store;if("function"==typeof r.getAll){const o=r.getAll(i.range);return new Z((s,a)=>{o.onerror=c=>{a(c.target.error)},o.onsuccess=c=>{s(c.target.result)}})}{const o=this.cursor(i),s=[];return this.G(o,(a,c)=>{s.push(c)}).next(()=>s)}}j(n,e){const i=this.store.getAll(n,null===e?void 0:e);return new Z((r,o)=>{i.onerror=s=>{o(s.target.error)},i.onsuccess=s=>{r(s.target.result)}})}H(n,e){De("SimpleDb","DELETE ALL",this.store.name);const i=this.options(n,e);i.J=!1;const r=this.cursor(i);return this.G(r,(o,s,a)=>a.delete())}Y(n,e){let i;e?i=n:(i={},e=n);const r=this.cursor(i);return this.G(r,e)}Z(n){const e=this.cursor({});return new Z((i,r)=>{e.onerror=o=>{const s=AM(o.target.error);r(s)},e.onsuccess=o=>{const s=o.target.result;s?n(s.primaryKey,s.value).next(a=>{a?s.continue():i()}):i()}})}G(n,e){const i=[];return new Z((r,o)=>{n.onerror=s=>{o(s.target.error)},n.onsuccess=s=>{const a=s.target.result;if(!a)return void r();const c=new FIe(a),l=e(a.primaryKey,a.value,c);if(l instanceof Z){const d=l.catch(u=>(c.done(),Z.reject(u)));i.push(d)}c.isDone?r():null===c.$?a.continue():a.continue(c.$)}}).next(()=>Z.waitFor(i))}options(n,e){let i;return void 0!==n&&("string"==typeof n?i=n:e=n),{index:i,range:e}}cursor(n){let e="next";if(n.reverse&&(e="prev"),n.index){const i=this.store.index(n.index);return n.J?i.openKeyCursor(n.range,e):i.openCursor(n.range,e)}return this.store.openCursor(n.range,e)}}function lh(t){return new Z((n,e)=>{t.onsuccess=i=>{n(i.target.result)},t.onerror=i=>{const r=AM(i.target.error);e(r)}})}let Z$=!1;function AM(t){const n=aa.S(Sd());if(n>=12.2&&n<13){const e="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(e)>=0){const i=new Ie("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${e}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return Z$||(Z$=!0,setTimeout(()=>{throw i},0)),i}}return t}let js=(()=>{class t{constructor(e,i){this.previousValue=e,i&&(i.sequenceNumberHandler=r=>this.se(r),this.oe=r=>i.writeSequenceNumber(r))}se(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.oe&&this.oe(e),e}}return t._e=-1,t})();function q0(t){return null==t}function Q0(t){return 0===t&&1/t==-1/0}function sG(t){let n=0;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n++;return n}function Fd(t,n){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n(e,t[e])}function aG(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}class vi{constructor(n,e){this.comparator=n,this.root=e||lo.EMPTY}insert(n,e){return new vi(this.comparator,this.root.insert(n,e,this.comparator).copy(null,null,lo.BLACK,null,null))}remove(n){return new vi(this.comparator,this.root.remove(n,this.comparator).copy(null,null,lo.BLACK,null,null))}get(n){let e=this.root;for(;!e.isEmpty();){const i=this.comparator(n,e.key);if(0===i)return e.value;i<0?e=e.left:i>0&&(e=e.right)}return null}indexOf(n){let e=0,i=this.root;for(;!i.isEmpty();){const r=this.comparator(n,i.key);if(0===r)return e+i.left.size;r<0?i=i.left:(e+=i.left.size+1,i=i.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((e,i)=>(n(e,i),!1))}toString(){const n=[];return this.inorderTraversal((e,i)=>(n.push(`${e}:${i}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new ek(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new ek(this.root,n,this.comparator,!1)}getReverseIterator(){return new ek(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new ek(this.root,n,this.comparator,!0)}}class ek{constructor(n,e,i,r){this.isReverse=r,this.nodeStack=[];let o=1;for(;!n.isEmpty();)if(o=e?i(n.key,e):1,e&&r&&(o*=-1),o<0)n=this.isReverse?n.left:n.right;else{if(0===o){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const e={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return e}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class lo{constructor(n,e,i,r,o){this.key=n,this.value=e,this.color=i??lo.RED,this.left=r??lo.EMPTY,this.right=o??lo.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,e,i,r,o){return new lo(n??this.key,e??this.value,i??this.color,r??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,e,i){let r=this;const o=i(n,r.key);return r=o<0?r.copy(null,null,null,r.left.insert(n,e,i),null):0===o?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(n,e,i)),r.fixUp()}removeMin(){if(this.left.isEmpty())return lo.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,e){let i,r=this;if(e(n,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(n,e),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===e(n,r.key)){if(r.right.isEmpty())return lo.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(n,e))}return r.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,lo.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,lo.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,e)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw ot();const n=this.left.check();if(n!==this.right.check())throw ot();return n+(this.isRed()?0:1)}}lo.EMPTY=null,lo.RED=!0,lo.BLACK=!1,lo.EMPTY=new class{constructor(){this.size=0}get key(){throw ot()}get value(){throw ot()}get color(){throw ot()}get left(){throw ot()}get right(){throw ot()}copy(n,e,i,r,o){return this}insert(n,e,i){return new lo(n,e)}remove(n,e){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class li{constructor(n){this.comparator=n,this.data=new vi(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((e,i)=>(n(e),!1))}forEachInRange(n,e){const i=this.data.getIteratorFrom(n[0]);for(;i.hasNext();){const r=i.getNext();if(this.comparator(r.key,n[1])>=0)return;e(r.key)}}forEachWhile(n,e){let i;for(i=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();i.hasNext();)if(!n(i.getNext().key))return}firstAfterOrEqual(n){const e=this.data.getIteratorFrom(n);return e.hasNext()?e.getNext().key:null}getIterator(){return new cG(this.data.getIterator())}getIteratorFrom(n){return new cG(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let e=this;return e.size{e=e.add(i)}),e}isEqual(n){if(!(n instanceof li)||this.size!==n.size)return!1;const e=this.data.getIterator(),i=n.data.getIterator();for(;e.hasNext();){const r=e.getNext().key,o=i.getNext().key;if(0!==this.comparator(r,o))return!1}return!0}toArray(){const n=[];return this.forEach(e=>{n.push(e)}),n}toString(){const n=[];return this.forEach(e=>n.push(e)),"SortedSet("+n.toString()+")"}copy(n){const e=new li(this.comparator);return e.data=n,e}}class cG{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class _s{constructor(n){this.fields=n,n.sort(Mi.comparator)}static empty(){return new _s([])}unionWith(n){let e=new li(Mi.comparator);for(const i of this.fields)e=e.add(i);for(const i of n)e=e.add(i);return new _s(e.toArray())}covers(n){for(const e of this.fields)if(e.isPrefixOf(n))return!0;return!1}isEqual(n){return tp(this.fields,n.fields,(e,i)=>e.isEqual(i))}}class lG extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Rr{constructor(n){this.binaryString=n}static fromBase64String(n){const e=function(r){try{return atob(r)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new lG("Invalid base64 string: "+o):o}}(n);return new Rr(e)}static fromUint8Array(n){const e=function(r){let o="";for(let s=0;snwc(e,n))}function Vd(t,n){if(t===n)return 0;const e=Ld(t),i=Ld(n);if(e!==i)return Nt(e,i);switch(e){case 0:case 9007199254740991:return 0;case 1:return Nt(t.booleanValue,n.booleanValue);case 2:return function(o,s){const a=Hi(o.integerValue||o.doubleValue),c=Hi(s.integerValue||s.doubleValue);return ac?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1}(t,n);case 3:return dG(t.timestampValue,n.timestampValue);case 4:return dG(K0(t),K0(n));case 5:return Nt(t.stringValue,n.stringValue);case 6:return function(o,s){const a=yl(o),c=yl(s);return a.compareTo(c)}(t.bytesValue,n.bytesValue);case 7:return function(o,s){const a=o.split("/"),c=s.split("/");for(let l=0;ln.mapValue.fields[e]=Z0(i)),n}if(t.arrayValue){const n={arrayValue:{values:[]}};for(let e=0;e<(t.arrayValue.values||[]).length;++e)n.arrayValue.values[e]=Z0(t.arrayValue.values[e]);return n}return Object.assign({},t)}function fG(t){return"__max__"===(((t.mapValue||{}).fields||{}).__type__||{}).stringValue}class uo{constructor(n){this.value=n}static empty(){return new uo({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let e=this.value;for(let i=0;i{if(!e.isImmediateParentOf(a)){const c=this.getFieldsMap(e);this.applyChanges(c,i,r),i={},r=[],e=a.popLast()}s?i[a.lastSegment()]=Z0(s):r.push(a.lastSegment())});const o=this.getFieldsMap(e);this.applyChanges(o,i,r)}delete(n){const e=this.field(n.popLast());ok(e)&&e.mapValue.fields&&delete e.mapValue.fields[n.lastSegment()]}isEqual(n){return wc(this.value,n.value)}getFieldsMap(n){let e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(let i=0;in[r]=o);for(const r of i)delete n[r]}clone(){return new uo(Z0(this.value))}}function gG(t){const n=[];return Fd(t.fields,(e,i)=>{const r=new Mi([e]);if(ok(i)){const o=gG(i.mapValue).fields;if(0===o.length)n.push(r);else for(const s of o)n.push(r.child(s))}else n.push(r)}),new _s(n)}class Si{constructor(n,e,i,r,o,s,a){this.key=n,this.documentType=e,this.version=i,this.readTime=r,this.createTime=o,this.data=s,this.documentState=a}static newInvalidDocument(n){return new Si(n,0,pt.min(),pt.min(),pt.min(),uo.empty(),0)}static newFoundDocument(n,e,i,r){return new Si(n,1,e,pt.min(),i,r,0)}static newNoDocument(n,e){return new Si(n,2,e,pt.min(),pt.min(),uo.empty(),0)}static newUnknownDocument(n,e){return new Si(n,3,e,pt.min(),pt.min(),uo.empty(),2)}convertToFoundDocument(n,e){return!this.createTime.isEqual(pt.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=e,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=uo.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=uo.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=pt.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Si&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Si(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class Bd{constructor(n,e){this.position=n,this.inclusive=e}}function _G(t,n,e){let i=0;for(let r=0;r":return n>0;case">=":return n>=0;default:return ot()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Jn extends vG{constructor(n,e){super(),this.filters=n,this.op=e,this.ue=null}static create(n,e){return new Jn(n,e)}matches(n){return sp(this)?void 0===this.filters.find(e=>!e.matches(n)):void 0!==this.filters.find(e=>e.matches(n))}getFlattenedFilters(){return null!==this.ue||(this.ue=this.filters.reduce((n,e)=>n.concat(e.getFlattenedFilters()),[])),this.ue}getFilters(){return Object.assign([],this.filters)}}function sp(t){return"and"===t.op}function OM(t){return function yG(t){for(const n of t.filters)if(n instanceof Jn)return!1;return!0}(t)&&sp(t)}function NM(t){if(t instanceof yn)return t.field.canonicalString()+t.op.toString()+op(t.value);if(OM(t))return t.filters.map(n=>NM(n)).join(",");{const n=t.filters.map(e=>NM(e)).join(",");return`${t.op}(${n})`}}function xG(t,n){return t instanceof yn?(i=t,(r=n)instanceof yn&&i.op===r.op&&i.field.isEqual(r.field)&&wc(i.value,r.value)):t instanceof Jn?function(i,r){return r instanceof Jn&&i.op===r.op&&i.filters.length===r.filters.length&&i.filters.reduce((o,s,a)=>o&&xG(s,r.filters[a]),!0)}(t,n):void ot();var i,r}function kG(t){return t instanceof yn?`${(e=t).field.canonicalString()} ${e.op} ${op(e.value)}`:t instanceof Jn?function(e){return e.op.toString()+" {"+e.getFilters().map(kG).join(" ,")+"}"}(t):"Filter";var e}class a2e extends yn{constructor(n,e,i){super(n,e,i),this.key=Xe.fromName(i.referenceValue)}matches(n){const e=Xe.comparator(n.key,this.key);return this.matchesComparison(e)}}class c2e extends yn{constructor(n,e){super(n,"in",e),this.keys=CG(0,e)}matches(n){return this.keys.some(e=>e.isEqual(n.key))}}class l2e extends yn{constructor(n,e){super(n,"not-in",e),this.keys=CG(0,e)}matches(n){return!this.keys.some(e=>e.isEqual(n.key))}}function CG(t,n){var e;return((null===(e=n.arrayValue)||void 0===e?void 0:e.values)||[]).map(i=>Xe.fromName(i.referenceValue))}class d2e extends yn{constructor(n,e){super(n,"array-contains",e)}matches(n){const e=n.data.field(this.field);return Y0(e)&&X0(e.arrayValue,this.value)}}class TG extends yn{constructor(n,e){super(n,"in",e)}matches(n){const e=n.data.field(this.field);return null!==e&&X0(this.value.arrayValue,e)}}class u2e extends yn{constructor(n,e){super(n,"not-in",e)}matches(n){if(X0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const e=n.data.field(this.field);return null!==e&&!X0(this.value.arrayValue,e)}}class h2e extends yn{constructor(n,e){super(n,"array-contains-any",e)}matches(n){const e=n.data.field(this.field);return!(!Y0(e)||!e.arrayValue.values)&&e.arrayValue.values.some(i=>X0(this.value.arrayValue,i))}}class f2e{constructor(n,e=null,i=[],r=[],o=null,s=null,a=null){this.path=n,this.collectionGroup=e,this.orderBy=i,this.filters=r,this.limit=o,this.startAt=s,this.endAt=a,this.ce=null}}function LM(t,n=null,e=[],i=[],r=null,o=null,s=null){return new f2e(t,n,e,i,r,o,s)}function hh(t){const n=qe(t);if(null===n.ce){let e=n.path.canonicalString();null!==n.collectionGroup&&(e+="|cg:"+n.collectionGroup),e+="|f:",e+=n.filters.map(i=>NM(i)).join(","),e+="|ob:",e+=n.orderBy.map(i=>{return(o=i).field.canonicalString()+o.dir;var o}).join(","),q0(n.limit)||(e+="|l:",e+=n.limit),n.startAt&&(e+="|lb:",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(i=>op(i)).join(",")),n.endAt&&(e+="|ub:",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(i=>op(i)).join(",")),n.ce=e}return n.ce}function eb(t,n){if(t.limit!==n.limit||t.orderBy.length!==n.orderBy.length)return!1;for(let e=0;e0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new li(Mi.comparator);return s.filters.forEach(c=>{c.getFlattenedFilters().forEach(l=>{l.isInequality()&&(a=a.add(l.field))})}),a})(n).forEach(o=>{e.has(o.canonicalString())||o.isKeyField()||n.le.push(new J0(o,i))}),e.has(Mi.keyField().canonicalString())||n.le.push(new J0(Mi.keyField(),i))}return n.le}function Jo(t){const n=qe(t);return n.he||(n.he=function AG(t,n){if("F"===t.limitType)return LM(t.path,t.collectionGroup,n,t.filters,t.limit,t.startAt,t.endAt);{n=n.map(r=>new J0(r.field,"desc"===r.dir?"asc":"desc"));const e=t.endAt?new Bd(t.endAt.position,t.endAt.inclusive):null,i=t.startAt?new Bd(t.startAt.position,t.startAt.inclusive):null;return LM(t.path,t.collectionGroup,n,t.filters,t.limit,e,i)}}(n,cp(t))),n.he}function BM(t,n){const e=t.filters.concat([n]);return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),e,t.limit,t.limitType,t.startAt,t.endAt)}function ck(t,n,e){return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),n,e,t.startAt,t.endAt)}function tb(t,n){return eb(Jo(t),Jo(n))&&t.limitType===n.limitType}function MG(t){return`${hh(Jo(t))}|lt:${t.limitType}`}function lp(t){return`Query(target=${function(e){let i=e.path.canonicalString();return null!==e.collectionGroup&&(i+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(i+=`, filters: [${e.filters.map(r=>kG(r)).join(", ")}]`),q0(e.limit)||(i+=", limit: "+e.limit),e.orderBy.length>0&&(i+=`, orderBy: [${e.orderBy.map(r=>{return`${(s=r).field.canonicalString()} (${s.dir})`;var s}).join(", ")}]`),e.startAt&&(i+=", startAt: ",i+=e.startAt.inclusive?"b:":"a:",i+=e.startAt.position.map(r=>op(r)).join(",")),e.endAt&&(i+=", endAt: ",i+=e.endAt.inclusive?"a:":"b:",i+=e.endAt.position.map(r=>op(r)).join(",")),`Target(${i})`}(Jo(t))}; limitType=${t.limitType})`}function nb(t,n){return n.isFoundDocument()&&function(i,r){const o=r.key.path;return null!==i.collectionGroup?r.key.hasCollectionId(i.collectionGroup)&&i.path.isPrefixOf(o):Xe.isDocumentKey(i.path)?i.path.isEqual(o):i.path.isImmediateParentOf(o)}(t,n)&&function(i,r){for(const o of cp(i))if(!o.field.isKeyField()&&null===r.data.field(o.field))return!1;return!0}(t,n)&&function(i,r){for(const o of i.filters)if(!o.matches(r))return!1;return!0}(t,n)&&(r=n,!((i=t).startAt&&!function(s,a,c){const l=_G(s,a,c);return s.inclusive?l<=0:l<0}(i.startAt,cp(i),r)||i.endAt&&!function(s,a,c){const l=_G(s,a,c);return s.inclusive?l>=0:l>0}(i.endAt,cp(i),r)));var i,r}function PG(t){return(n,e)=>{let i=!1;for(const r of cp(t)){const o=m2e(r,n,e);if(0!==o)return o;i=i||r.field.isKeyField()}return 0}}function m2e(t,n,e){const i=t.field.isKeyField()?Xe.comparator(n.key,e.key):function(o,s,a){const c=s.data.field(o),l=a.data.field(o);return null!==c&&null!==l?Vd(c,l):ot()}(t.field,n,e);switch(t.dir){case"asc":return i;case"desc":return-1*i;default:return ot()}}class wl{constructor(n,e){this.mapKeyFn=n,this.equalsFn=e,this.inner={},this.innerSize=0}get(n){const e=this.mapKeyFn(n),i=this.inner[e];if(void 0!==i)for(const[r,o]of i)if(this.equalsFn(r,n))return o}has(n){return void 0!==this.get(n)}set(n,e){const i=this.mapKeyFn(n),r=this.inner[i];if(void 0===r)return this.inner[i]=[[n,e]],void this.innerSize++;for(let o=0;o{for(const[r,o]of i)n(r,o)})}isEmpty(){return aG(this.inner)}size(){return this.innerSize}}const p2e=new vi(Xe.comparator);function bs(){return p2e}const FG=new vi(Xe.comparator);function ib(...t){let n=FG;for(const e of t)n=n.insert(e.key,e);return n}function OG(t){let n=FG;return t.forEach((e,i)=>n=n.insert(e,i.overlayedDocument)),n}function kc(){return rb()}function NG(){return rb()}function rb(){return new wl(t=>t.toString(),(t,n)=>t.isEqual(n))}const g2e=new vi(Xe.comparator),_2e=new li(Xe.comparator);function Yt(...t){let n=_2e;for(const e of t)n=n.add(e);return n}const b2e=new li(Nt);function LG(t,n){if(t.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Q0(n)?"-0":n}}function VG(t){return{integerValue:""+t}}function BG(t,n){return function J$(t){return"number"==typeof t&&Number.isInteger(t)&&!Q0(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}(n)?VG(n):LG(t,n)}class lk{constructor(){this._=void 0}}function v2e(t,n,e){return t instanceof dp?function(r,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return o&&tk(o)&&(o=nk(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(e,n):t instanceof fh?zG(t,n):t instanceof mh?HG(t,n):function(r,o){const s=UG(r,o),a=jG(s)+jG(r.Ie);return PM(s)&&PM(r.Ie)?VG(a):LG(r.serializer,a)}(t,n)}function y2e(t,n,e){return t instanceof fh?zG(t,n):t instanceof mh?HG(t,n):e}function UG(t,n){return t instanceof up?PM(i=n)||(o=i)&&"doubleValue"in o?n:{integerValue:0}:null;var i,o}class dp extends lk{}class fh extends lk{constructor(n){super(),this.elements=n}}function zG(t,n){const e=$G(n);for(const i of t.elements)e.some(r=>wc(r,i))||e.push(i);return{arrayValue:{values:e}}}class mh extends lk{constructor(n){super(),this.elements=n}}function HG(t,n){let e=$G(n);for(const i of t.elements)e=e.filter(r=>!wc(r,i));return{arrayValue:{values:e}}}class up extends lk{constructor(n,e){super(),this.serializer=n,this.Ie=e}}function jG(t){return Hi(t.integerValue||t.doubleValue)}function $G(t){return Y0(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class w2e{constructor(n,e){this.version=n,this.transformResults=e}}class Ri{constructor(n,e){this.updateTime=n,this.exists=e}static none(){return new Ri}static exists(n){return new Ri(void 0,n)}static updateTime(n){return new Ri(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function dk(t,n){return void 0!==t.updateTime?n.isFoundDocument()&&n.version.isEqual(t.updateTime):void 0===t.exists||t.exists===n.isFoundDocument()}class uk{}function GG(t,n){if(!t.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return t.isNoDocument()?new fp(t.key,Ri.none()):new hp(t.key,t.data,Ri.none());{const e=t.data,i=uo.empty();let r=new li(Mi.comparator);for(let o of n.fields)if(!r.has(o)){let s=e.field(o);null===s&&o.length>1&&(o=o.popLast(),s=e.field(o)),null===s?i.delete(o):i.set(o,s),r=r.add(o)}return new kl(t.key,i,new _s(r.toArray()),Ri.none())}}function k2e(t,n,e){t instanceof hp?function(r,o,s){const a=r.value.clone(),c=QG(r.fieldTransforms,o,s.transformResults);a.setAll(c),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,n,e):t instanceof kl?function(r,o,s){if(!dk(r.precondition,o))return void o.convertToUnknownDocument(s.version);const a=QG(r.fieldTransforms,o,s.transformResults),c=o.data;c.setAll(qG(r)),c.setAll(a),o.convertToFoundDocument(s.version,c).setHasCommittedMutations()}(t,n,e):n.convertToNoDocument(e.version).setHasCommittedMutations()}function sb(t,n,e,i){return t instanceof hp?function(o,s,a,c){if(!dk(o.precondition,s))return a;const l=o.value.clone(),d=KG(o.fieldTransforms,c,s);return l.setAll(d),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null}(t,n,e,i):t instanceof kl?function(o,s,a,c){if(!dk(o.precondition,s))return a;const l=KG(o.fieldTransforms,c,s),d=s.data;return d.setAll(qG(o)),d.setAll(l),s.convertToFoundDocument(s.version,d).setHasLocalMutations(),null===a?null:a.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(u=>u.field))}(t,n,e,i):(a=e,dk(t.precondition,s=n)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a);var s,a}function C2e(t,n){let e=null;for(const i of t.fieldTransforms){const r=n.data.field(i.field),o=UG(i.transform,r||null);null!=o&&(null===e&&(e=uo.empty()),e.set(i.field,o))}return e||null}function WG(t,n){return t.type===n.type&&!!t.key.isEqual(n.key)&&!!t.precondition.isEqual(n.precondition)&&(r=n.fieldTransforms,!!(void 0===(i=t.fieldTransforms)&&void 0===r||i&&r&&tp(i,r,(o,s)=>function x2e(t,n){return t.field.isEqual(n.field)&&(r=n.transform,(i=t.transform)instanceof fh&&r instanceof fh||i instanceof mh&&r instanceof mh?tp(i.elements,r.elements,wc):i instanceof up&&r instanceof up?wc(i.Ie,r.Ie):i instanceof dp&&r instanceof dp);var i,r}(o,s))))&&(0===t.type?t.value.isEqual(n.value):1!==t.type||t.data.isEqual(n.data)&&t.fieldMask.isEqual(n.fieldMask));var i,r}class hp extends uk{constructor(n,e,i,r=[]){super(),this.key=n,this.value=e,this.precondition=i,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class kl extends uk{constructor(n,e,i,r,o=[]){super(),this.key=n,this.data=e,this.fieldMask=i,this.precondition=r,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function qG(t){const n=new Map;return t.fieldMask.fields.forEach(e=>{if(!e.isEmpty()){const i=t.data.field(e);n.set(e,i)}}),n}function QG(t,n,e){const i=new Map;ht(t.length===e.length);for(let r=0;r{const o=n.get(r.key),s=o.overlayedDocument;let a=this.applyToLocalView(s,o.mutatedFields);a=e.has(r.key)?null:a;const c=GG(s,a);null!==c&&i.set(r.key,c),s.isValidDocument()||s.convertToNoDocument(pt.min())}),i}keys(){return this.mutations.reduce((n,e)=>n.add(e.key),Yt())}isEqual(n){return this.batchId===n.batchId&&tp(this.mutations,n.mutations,(e,i)=>WG(e,i))&&tp(this.baseMutations,n.baseMutations,(e,i)=>WG(e,i))}}class jM{constructor(n,e,i,r){this.batch=n,this.commitVersion=e,this.mutationResults=i,this.docVersions=r}static from(n,e,i){ht(n.mutations.length===i.length);let r=function(){return g2e}();const o=n.mutations;for(let s=0;s=8)throw new ab(`Invalid padding: ${e}`);if(i<0)throw new ab(`Invalid hash count: ${i}`);if(n.length>0&&0===this.hashCount)throw new ab(`Invalid hash count: ${i}`);if(0===n.length&&0!==e)throw new ab(`Invalid padding when bitmap length is 0: ${e}`);this.Te=8*n.length-e,this.Ee=Zm.fromNumber(this.Te)}de(n,e,i){let r=n.add(e.multiply(Zm.fromNumber(i)));return 1===r.compare(S2e)&&(r=new Zm([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Ee).toNumber()}Ae(n){return!!(this.bitmap[Math.floor(n/8)]&1<s.insert(a)),s}insert(n){if(0===this.Te)return;const e=JG(n),[i,r]=eW(e);for(let o=0;o0&&(this.Se=!0,this.ye=n)}ve(){let n=Yt(),e=Yt(),i=Yt();return this.pe.forEach((r,o)=>{switch(o){case 0:n=n.add(r);break;case 2:e=e.add(r);break;case 1:i=i.add(r);break;default:ot()}}),new lb(this.ye,this.we,n,e,i)}Fe(){this.Se=!1,this.pe=oW()}Me(n,e){this.Se=!0,this.pe=this.pe.insert(n,e)}xe(n){this.Se=!0,this.pe=this.pe.remove(n)}Oe(){this.ge+=1}Ne(){this.ge-=1,ht(this.ge>=0)}Le(){this.Se=!0,this.we=!0}}class D2e{constructor(n){this.Be=n,this.ke=new Map,this.qe=bs(),this.Qe=rW(),this.Ke=new vi(Nt)}$e(n){for(const e of n.Ve)n.me&&n.me.isFoundDocument()?this.Ue(e,n.me):this.We(e,n.key,n.me);for(const e of n.removedTargetIds)this.We(e,n.key,n.me)}Ge(n){this.forEachTarget(n,e=>{const i=this.ze(e);switch(n.state){case 0:this.je(e)&&i.Ce(n.resumeToken);break;case 1:i.Ne(),i.be||i.Fe(),i.Ce(n.resumeToken);break;case 2:i.Ne(),i.be||this.removeTarget(e);break;case 3:this.je(e)&&(i.Le(),i.Ce(n.resumeToken));break;case 4:this.je(e)&&(this.He(e),i.Ce(n.resumeToken));break;default:ot()}})}forEachTarget(n,e){n.targetIds.length>0?n.targetIds.forEach(e):this.ke.forEach((i,r)=>{this.je(r)&&e(r)})}Je(n){const e=n.targetId,i=n.fe.count,r=this.Ye(e);if(r){const o=r.target;if(sk(o))if(0===i){const s=new Xe(o.path);this.We(e,s,Si.newNoDocument(s,pt.min()))}else ht(1===i);else{const s=this.Ze(e);if(s!==i){const a=this.Xe(n),c=a?this.et(a,n,s):1;0!==c&&(this.He(e),this.Ke=this.Ke.insert(e,2===c?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Xe(n){const e=n.fe.unchangedNames;if(!e||!e.bits)return null;const{bits:{bitmap:i="",padding:r=0},hashCount:o=0}=e;let s,a;try{s=yl(i).toUint8Array()}catch(c){if(c instanceof lG)return zs("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}try{a=new GM(s,r,o)}catch(c){return zs(c instanceof ab?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return 0===a.Te?null:a}et(n,e,i){return e.fe.count===i-this.rt(n,e.targetId)?0:2}rt(n,e){const i=this.Be.getRemoteKeysForTarget(e);let r=0;return i.forEach(o=>{const s=this.Be.nt(),a=`projects/${s.projectId}/databases/${s.database}/documents/${o.path.canonicalString()}`;n.mightContain(a)||(this.We(e,o,null),r++)}),r}it(n){const e=new Map;this.ke.forEach((o,s)=>{const a=this.Ye(s);if(a){if(o.current&&sk(a.target)){const c=new Xe(a.target.path);null!==this.qe.get(c)||this.st(s,c)||this.We(s,c,Si.newNoDocument(c,n))}o.De&&(e.set(s,o.ve()),o.Fe())}});let i=Yt();this.Qe.forEach((o,s)=>{let a=!0;s.forEachWhile(c=>{const l=this.Ye(c);return!l||"TargetPurposeLimboResolution"===l.purpose||(a=!1,!1)}),a&&(i=i.add(o))}),this.qe.forEach((o,s)=>s.setReadTime(n));const r=new cb(n,e,this.Ke,this.qe,i);return this.qe=bs(),this.Qe=rW(),this.Ke=new vi(Nt),r}Ue(n,e){if(!this.je(n))return;const i=this.st(n,e.key)?2:0;this.ze(n).Me(e.key,i),this.qe=this.qe.insert(e.key,e),this.Qe=this.Qe.insert(e.key,this.ot(e.key).add(n))}We(n,e,i){if(!this.je(n))return;const r=this.ze(n);this.st(n,e)?r.Me(e,1):r.xe(e),this.Qe=this.Qe.insert(e,this.ot(e).delete(n)),i&&(this.qe=this.qe.insert(e,i))}removeTarget(n){this.ke.delete(n)}Ze(n){const e=this.ze(n).ve();return this.Be.getRemoteKeysForTarget(n).size+e.addedDocuments.size-e.removedDocuments.size}Oe(n){this.ze(n).Oe()}ze(n){let e=this.ke.get(n);return e||(e=new iW,this.ke.set(n,e)),e}ot(n){let e=this.Qe.get(n);return e||(e=new li(Nt),this.Qe=this.Qe.insert(n,e)),e}je(n){const e=null!==this.Ye(n);return e||De("WatchChangeAggregator","Detected inactive target",n),e}Ye(n){const e=this.ke.get(n);return e&&e.be?null:this.Be._t(n)}He(n){this.ke.set(n,new iW),this.Be.getRemoteKeysForTarget(n).forEach(e=>{this.We(n,e,null)})}st(n,e){return this.Be.getRemoteKeysForTarget(n).has(e)}}function rW(){return new vi(Xe.comparator)}function oW(){return new vi(Xe.comparator)}const I2e={asc:"ASCENDING",desc:"DESCENDING"},A2e={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},M2e={and:"AND",or:"OR"};class R2e{constructor(n,e){this.databaseId=n,this.useProto3Json=e}}function WM(t,n){return t.useProto3Json||q0(n)?n:{value:n}}function mp(t,n){return t.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function sW(t,n){return t.useProto3Json?n.toBase64():n.toUint8Array()}function P2e(t,n){return mp(t,n.toTimestamp())}function er(t){return ht(!!t),pt.fromTimestamp(function(e){const i=Od(e);return new Ai(i.seconds,i.nanos)}(t))}function qM(t,n){return QM(t,n).canonicalString()}function QM(t,n){const e=(r=t,new vn(["projects",r.projectId,"databases",r.database])).child("documents");var r;return void 0===n?e:e.child(n)}function aW(t){const n=vn.fromString(t);return ht(_W(n)),n}function db(t,n){return qM(t.databaseId,n.path)}function Cc(t,n){const e=aW(n);if(e.get(1)!==t.databaseId.projectId)throw new Ie(de.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+e.get(1)+" vs "+t.databaseId.projectId);if(e.get(3)!==t.databaseId.database)throw new Ie(de.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+e.get(3)+" vs "+t.databaseId.database);return new Xe(dW(e))}function cW(t,n){return qM(t.databaseId,n)}function KM(t){return new vn(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function dW(t){return ht(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function uW(t,n,e){return{name:db(t,n),fields:e.value.mapValue.fields}}function fW(t,n){return{documents:[cW(t,n.path)]}}function YM(t,n){const e={structuredQuery:{}},i=n.path;let r;null!==n.collectionGroup?(r=i,e.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(r=i.popLast(),e.structuredQuery.from=[{collectionId:i.lastSegment()}]),e.parent=cW(t,r);const o=function(l){if(0!==l.length)return gW(Jn.create(l,"and"))}(n.filters);o&&(e.structuredQuery.where=o);const s=function(l){if(0!==l.length)return l.map(d=>{return{field:Ud((h=d).field),direction:V2e(h.dir)};var h})}(n.orderBy);s&&(e.structuredQuery.orderBy=s);const a=WM(t,n.limit);return null!==a&&(e.structuredQuery.limit=a),n.startAt&&(e.structuredQuery.startAt={before:(l=n.startAt).inclusive,values:l.position}),n.endAt&&(e.structuredQuery.endAt=function(l){return{before:!l.inclusive,values:l.position}}(n.endAt)),{ut:e,parent:r};var l}function mW(t){let n=function lW(t){const n=aW(t);return 4===n.length?vn.emptyPath():dW(n)}(t.parent);const e=t.structuredQuery,i=e.from?e.from.length:0;let r=null;if(i>0){ht(1===i);const d=e.from[0];d.allDescendants?r=d.collectionId:n=n.child(d.collectionId)}let o=[];e.where&&(o=function(u){const h=pW(u);return h instanceof Jn&&OM(h)?h.getFilters():[h]}(e.where));let s=[];e.orderBy&&(s=e.orderBy.map(h=>{return new J0(pp((m=h).field),function(p){switch(p){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(m.direction));var m}));let a=null;e.limit&&(a=function(u){let h;return h="object"==typeof u?u.value:u,q0(h)?null:h}(e.limit));let c=null;var u;e.startAt&&(c=new Bd((u=e.startAt).values||[],!!u.before));let l=null;return e.endAt&&(l=function(u){return new Bd(u.values||[],!u.before)}(e.endAt)),function DG(t,n,e,i,r,o,s,a){return new xl(t,n,e,i,r,o,s,a)}(n,r,s,o,a,"F",c,l)}function pW(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const i=pp(e.unaryFilter.field);return yn.create(i,"==",{doubleValue:NaN});case"IS_NULL":const r=pp(e.unaryFilter.field);return yn.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=pp(e.unaryFilter.field);return yn.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=pp(e.unaryFilter.field);return yn.create(s,"!=",{nullValue:"NULL_VALUE"});default:return ot()}}(t):void 0!==t.fieldFilter?yn.create(pp((e=t).fieldFilter.field),function(r){switch(r){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return ot()}}(e.fieldFilter.op),e.fieldFilter.value):void 0!==t.compositeFilter?function(e){return Jn.create(e.compositeFilter.filters.map(i=>pW(i)),function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return ot()}}(e.compositeFilter.op))}(t):ot();var e}function V2e(t){return I2e[t]}function B2e(t){return A2e[t]}function U2e(t){return M2e[t]}function Ud(t){return{fieldPath:t.canonicalString()}}function pp(t){return Mi.fromServerFormat(t.fieldPath)}function gW(t){return t instanceof yn?function(e){if("=="===e.op){if(hG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NAN"}};if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(hG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NAN"}};if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ud(e.field),op:B2e(e.op),value:e.value}}}(t):t instanceof Jn?function(e){const i=e.getFilters().map(r=>gW(r));return 1===i.length?i[0]:{compositeFilter:{op:U2e(e.op),filters:i}}}(t):ot()}function z2e(t){const n=[];return t.fields.forEach(e=>n.push(e.canonicalString())),{fieldPaths:n}}function _W(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}class Cl{constructor(n,e,i,r,o=pt.min(),s=pt.min(),a=Rr.EMPTY_BYTE_STRING,c=null){this.target=n,this.targetId=e,this.purpose=i,this.sequenceNumber=r,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(n){return new Cl(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,e){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,e,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Cl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class bW{constructor(n){this.ct=n}}function ZM(t){const n=mW({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?ck(n,n.limit,"L"):n}class bh{constructor(){}Pt(n,e){this.It(n,e),e.Tt()}It(n,e){if("nullValue"in n)this.Et(e,5);else if("booleanValue"in n)this.Et(e,10),e.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(e,15),e.dt(Hi(n.integerValue));else if("doubleValue"in n){const i=Hi(n.doubleValue);isNaN(i)?this.Et(e,13):(this.Et(e,15),Q0(i)?e.dt(0):e.dt(i))}else if("timestampValue"in n){const i=n.timestampValue;this.Et(e,20),"string"==typeof i?e.At(i):(e.At(`${i.seconds||""}`),e.dt(i.nanos||0))}else if("stringValue"in n)this.Rt(n.stringValue,e),this.Vt(e);else if("bytesValue"in n)this.Et(e,30),e.ft(yl(n.bytesValue)),this.Vt(e);else if("referenceValue"in n)this.gt(n.referenceValue,e);else if("geoPointValue"in n){const i=n.geoPointValue;this.Et(e,45),e.dt(i.latitude||0),e.dt(i.longitude||0)}else"mapValue"in n?fG(n)?this.Et(e,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,e),this.Vt(e)):"arrayValue"in n?(this.wt(n.arrayValue,e),this.Vt(e)):ot()}Rt(n,e){this.Et(e,25),this.St(n,e)}St(n,e){e.At(n)}yt(n,e){const i=n.fields||{};this.Et(e,55);for(const r of Object.keys(i))this.Rt(r,e),this.It(i[r],e)}wt(n,e){const i=n.values||[];this.Et(e,50);for(const r of i)this.It(r,e)}gt(n,e){this.Et(e,37),Xe.fromName(n).path.forEach(i=>{this.Et(e,60),this.St(i,e)})}Et(n,e){n.dt(e)}Vt(n){n.dt(2)}}bh.bt=new bh;class K2e{constructor(){this._n=new rR}addToCollectionParentIndex(n,e){return this._n.add(e),Z.resolve()}getCollectionParents(n,e){return Z.resolve(this._n.getEntries(e))}addFieldIndex(n,e){return Z.resolve()}deleteFieldIndex(n,e){return Z.resolve()}deleteAllFieldIndexes(n){return Z.resolve()}createTargetIndexes(n,e){return Z.resolve()}getDocumentsMatchingTarget(n,e){return Z.resolve(null)}getIndexType(n,e){return Z.resolve(0)}getFieldIndexes(n,e){return Z.resolve([])}getNextCollectionGroupToUpdate(n){return Z.resolve(null)}getMinOffset(n,e){return Z.resolve(Hs.min())}getMinOffsetFromCollectionGroup(n,e){return Z.resolve(Hs.min())}updateCollectionGroup(n,e,i){return Z.resolve()}updateIndexEntries(n,e){return Z.resolve()}}class rR{constructor(){this.index={}}add(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e]||new li(vn.comparator),o=!r.has(i);return this.index[e]=r.add(i),o}has(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e];return r&&r.has(i)}getEntries(n){return(this.index[n]||new li(vn.comparator)).toArray()}}new Uint8Array(0);class Ro{constructor(n,e,i){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=i}static withCacheSize(n){return new Ro(n,Ro.DEFAULT_COLLECTION_PERCENTILE,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Ro.DEFAULT_COLLECTION_PERCENTILE=10,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ro.DEFAULT=new Ro(41943040,Ro.DEFAULT_COLLECTION_PERCENTILE,Ro.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ro.DISABLED=new Ro(-1,0,0);class yh{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new yh(0)}static Ln(){return new yh(-1)}}class zW{constructor(){this.changes=new wl(n=>n.toString(),(n,e)=>n.isEqual(e)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,e){this.assertNotApplied(),this.changes.set(n,Si.newInvalidDocument(n).setReadTime(e))}getEntry(n,e){this.assertNotApplied();const i=this.changes.get(e);return void 0!==i?Z.resolve(i):this.getFromCache(n,e)}getEntries(n,e){return this.getAllFromCache(n,e)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class iAe{constructor(n,e){this.overlayedDocument=n,this.mutatedFields=e}}class WW{constructor(n,e,i,r){this.remoteDocumentCache=n,this.mutationQueue=e,this.documentOverlayCache=i,this.indexManager=r}getDocument(n,e){let i=null;return this.documentOverlayCache.getOverlay(n,e).next(r=>(i=r,this.remoteDocumentCache.getEntry(n,e))).next(r=>(null!==i&&sb(i.mutation,r,_s.empty(),Ai.now()),r))}getDocuments(n,e){return this.remoteDocumentCache.getEntries(n,e).next(i=>this.getLocalViewOfDocuments(n,i,Yt()).next(()=>i))}getLocalViewOfDocuments(n,e,i=Yt()){const r=kc();return this.populateOverlays(n,r,e).next(()=>this.computeViews(n,e,r,i).next(o=>{let s=ib();return o.forEach((a,c)=>{s=s.insert(a,c.overlayedDocument)}),s}))}getOverlayedDocuments(n,e){const i=kc();return this.populateOverlays(n,i,e).next(()=>this.computeViews(n,e,i,Yt()))}populateOverlays(n,e,i){const r=[];return i.forEach(o=>{e.has(o)||r.push(o)}),this.documentOverlayCache.getOverlays(n,r).next(o=>{o.forEach((s,a)=>{e.set(s,a)})})}computeViews(n,e,i,r){let o=bs();const s=rb(),a=rb();return e.forEach((c,l)=>{const d=i.get(l.key);r.has(l.key)&&(void 0===d||d.mutation instanceof kl)?o=o.insert(l.key,l):void 0!==d?(s.set(l.key,d.mutation.getFieldMask()),sb(d.mutation,l,d.mutation.getFieldMask(),Ai.now())):s.set(l.key,_s.empty())}),this.recalculateAndSaveOverlays(n,o).next(c=>(c.forEach((l,d)=>s.set(l,d)),e.forEach((l,d)=>{var u;return a.set(l,new iAe(d,null!==(u=s.get(l))&&void 0!==u?u:null))}),a))}recalculateAndSaveOverlays(n,e){const i=rb();let r=new vi((s,a)=>s-a),o=Yt();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,e).next(s=>{for(const a of s)a.keys().forEach(c=>{const l=e.get(c);if(null===l)return;let d=i.get(c)||_s.empty();d=a.applyToLocalView(l,d),i.set(c,d);const u=(r.get(a.batchId)||Yt()).add(c);r=r.insert(a.batchId,u)})}).next(()=>{const s=[],a=r.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),l=c.key,d=c.value,u=NG();d.forEach(h=>{if(!o.has(h)){const f=GG(e.get(h),i.get(h));null!==f&&u.set(h,f),o=o.add(h)}}),s.push(this.documentOverlayCache.saveOverlays(n,l,u))}return Z.waitFor(s)}).next(()=>i)}recalculateAndSaveOverlaysForDocumentKeys(n,e){return this.remoteDocumentCache.getEntries(n,e).next(i=>this.recalculateAndSaveOverlays(n,i))}getDocumentsMatchingQuery(n,e,i,r){return Xe.isDocumentKey((s=e).path)&&null===s.collectionGroup&&0===s.filters.length?this.getDocumentsMatchingDocumentQuery(n,e.path):VM(e)?this.getDocumentsMatchingCollectionGroupQuery(n,e,i,r):this.getDocumentsMatchingCollectionQuery(n,e,i,r);var s}getNextDocuments(n,e,i,r){return this.remoteDocumentCache.getAllFromCollectionGroup(n,e,i,r).next(o=>{const s=r-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,e,i.largestBatchId,r-o.size):Z.resolve(kc());let a=-1,c=o;return s.next(l=>Z.forEach(l,(d,u)=>(a{c=c.insert(d,h)}))).next(()=>this.populateOverlays(n,l,o)).next(()=>this.computeViews(n,c,l,Yt())).next(d=>({batchId:a,changes:OG(d)})))})}getDocumentsMatchingDocumentQuery(n,e){return this.getDocument(n,new Xe(e)).next(i=>{let r=ib();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(n,e,i,r){const o=e.collectionGroup;let s=ib();return this.indexManager.getCollectionParents(n,o).next(a=>Z.forEach(a,c=>{const l=(u=e,h=c.child(o),new xl(h,null,u.explicitOrderBy.slice(),u.filters.slice(),u.limit,u.limitType,u.startAt,u.endAt));var u,h;return this.getDocumentsMatchingCollectionQuery(n,l,i,r).next(d=>{d.forEach((u,h)=>{s=s.insert(u,h)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(n,e,i,r){let o;return this.documentOverlayCache.getOverlaysForCollection(n,e.path,i.largestBatchId).next(s=>(o=s,this.remoteDocumentCache.getDocumentsMatchingQuery(n,e,i,o,r))).next(s=>{o.forEach((c,l)=>{const d=l.getKey();null===s.get(d)&&(s=s.insert(d,Si.newInvalidDocument(d)))});let a=ib();return s.forEach((c,l)=>{const d=o.get(c);void 0!==d&&sb(d.mutation,l,_s.empty(),Ai.now()),nb(e,l)&&(a=a.insert(c,l))}),a})}}class rAe{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,e){return Z.resolve(this.cr.get(e))}saveBundleMetadata(n,e){return this.cr.set(e.id,{id:(r=e).id,version:r.version,createTime:er(r.createTime)}),Z.resolve();var r}getNamedQuery(n,e){return Z.resolve(this.lr.get(e))}saveNamedQuery(n,e){return this.lr.set(e.name,{name:(r=e).name,query:ZM(r.bundledQuery),readTime:er(r.readTime)}),Z.resolve();var r}}class oAe{constructor(){this.overlays=new vi(Xe.comparator),this.hr=new Map}getOverlay(n,e){return Z.resolve(this.overlays.get(e))}getOverlays(n,e){const i=kc();return Z.forEach(e,r=>this.getOverlay(n,r).next(o=>{null!==o&&i.set(r,o)})).next(()=>i)}saveOverlays(n,e,i){return i.forEach((r,o)=>{this.ht(n,e,o)}),Z.resolve()}removeOverlaysForBatchId(n,e,i){const r=this.hr.get(i);return void 0!==r&&(r.forEach(o=>this.overlays=this.overlays.remove(o)),this.hr.delete(i)),Z.resolve()}getOverlaysForCollection(n,e,i){const r=kc(),o=e.length+1,s=new Xe(e.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const c=a.getNext().value,l=c.getKey();if(!e.isPrefixOf(l.path))break;l.path.length===o&&c.largestBatchId>i&&r.set(c.getKey(),c)}return Z.resolve(r)}getOverlaysForCollectionGroup(n,e,i,r){let o=new vi((l,d)=>l-d);const s=this.overlays.getIterator();for(;s.hasNext();){const l=s.getNext().value;if(l.getKey().getCollectionGroup()===e&&l.largestBatchId>i){let d=o.get(l.largestBatchId);null===d&&(d=kc(),o=o.insert(l.largestBatchId,d)),d.set(l.getKey(),l)}}const a=kc(),c=o.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach((l,d)=>a.set(l,d)),!(a.size()>=r)););return Z.resolve(a)}ht(n,e,i){const r=this.overlays.get(i.key);if(null!==r){const s=this.hr.get(r.largestBatchId).delete(i.key);this.hr.set(r.largestBatchId,s)}this.overlays=this.overlays.insert(i.key,new $M(e,i));let o=this.hr.get(e);void 0===o&&(o=Yt(),this.hr.set(e,o)),this.hr.set(e,o.add(i.key))}}class oR{constructor(){this.Pr=new li(Xr.Ir),this.Tr=new li(Xr.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,e){const i=new Xr(n,e);this.Pr=this.Pr.add(i),this.Tr=this.Tr.add(i)}dr(n,e){n.forEach(i=>this.addReference(i,e))}removeReference(n,e){this.Ar(new Xr(n,e))}Rr(n,e){n.forEach(i=>this.removeReference(i,e))}Vr(n){const e=new Xe(new vn([])),i=new Xr(e,n),r=new Xr(e,n+1),o=[];return this.Tr.forEachInRange([i,r],s=>{this.Ar(s),o.push(s.key)}),o}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const e=new Xe(new vn([])),i=new Xr(e,n),r=new Xr(e,n+1);let o=Yt();return this.Tr.forEachInRange([i,r],s=>{o=o.add(s.key)}),o}containsKey(n){const e=new Xr(n,0),i=this.Pr.firstAfterOrEqual(e);return null!==i&&n.isEqual(i.key)}}class Xr{constructor(n,e){this.key=n,this.pr=e}static Ir(n,e){return Xe.comparator(n.key,e.key)||Nt(n.pr,e.pr)}static Er(n,e){return Nt(n.pr,e.pr)||Xe.comparator(n.key,e.key)}}class sAe{constructor(n,e){this.indexManager=n,this.referenceDelegate=e,this.mutationQueue=[],this.yr=1,this.wr=new li(Xr.Ir)}checkEmpty(n){return Z.resolve(0===this.mutationQueue.length)}addMutationBatch(n,e,i,r){const o=this.yr;this.yr++;const s=new HM(o,e,i,r);this.mutationQueue.push(s);for(const a of r)this.wr=this.wr.add(new Xr(a.key,o)),this.indexManager.addToCollectionParentIndex(n,a.key.path.popLast());return Z.resolve(s)}lookupMutationBatch(n,e){return Z.resolve(this.Sr(e))}getNextMutationBatchAfterBatchId(n,e){const r=this.br(e+1),o=r<0?0:r;return Z.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return Z.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return Z.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,e){const i=new Xr(e,0),r=new Xr(e,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([i,r],s=>{const a=this.Sr(s.pr);o.push(a)}),Z.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(n,e){let i=new li(Nt);return e.forEach(r=>{const o=new Xr(r,0),s=new Xr(r,Number.POSITIVE_INFINITY);this.wr.forEachInRange([o,s],a=>{i=i.add(a.pr)})}),Z.resolve(this.Dr(i))}getAllMutationBatchesAffectingQuery(n,e){const i=e.path,r=i.length+1;let o=i;Xe.isDocumentKey(o)||(o=o.child(""));const s=new Xr(new Xe(o),0);let a=new li(Nt);return this.wr.forEachWhile(c=>{const l=c.key.path;return!!i.isPrefixOf(l)&&(l.length===r&&(a=a.add(c.pr)),!0)},s),Z.resolve(this.Dr(a))}Dr(n){const e=[];return n.forEach(i=>{const r=this.Sr(i);null!==r&&e.push(r)}),e}removeMutationBatch(n,e){ht(0===this.Cr(e.batchId,"removed")),this.mutationQueue.shift();let i=this.wr;return Z.forEach(e.mutations,r=>{const o=new Xr(r.key,e.batchId);return i=i.delete(o),this.referenceDelegate.markPotentiallyOrphaned(n,r.key)}).next(()=>{this.wr=i})}Mn(n){}containsKey(n,e){const i=new Xr(e,0),r=this.wr.firstAfterOrEqual(i);return Z.resolve(e.isEqual(r&&r.key))}performConsistencyCheck(n){return Z.resolve()}Cr(n,e){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const e=this.br(n);return e<0||e>=this.mutationQueue.length?null:this.mutationQueue[e]}}class aAe{constructor(n){this.vr=n,this.docs=new vi(Xe.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,e){const i=e.key,r=this.docs.get(i),o=r?r.size:0,s=this.vr(e);return this.docs=this.docs.insert(i,{document:e.mutableCopy(),size:s}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(n,i.path.popLast())}removeEntry(n){const e=this.docs.get(n);e&&(this.docs=this.docs.remove(n),this.size-=e.size)}getEntry(n,e){const i=this.docs.get(e);return Z.resolve(i?i.document.mutableCopy():Si.newInvalidDocument(e))}getEntries(n,e){let i=bs();return e.forEach(r=>{const o=this.docs.get(r);i=i.insert(r,o?o.document.mutableCopy():Si.newInvalidDocument(r))}),Z.resolve(i)}getDocumentsMatchingQuery(n,e,i,r){let o=bs();const s=e.path,a=new Xe(s.child("")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:l,value:{document:d}}=c.getNext();if(!s.isPrefixOf(l.path))break;l.path.length>s.length+1||DM(K$(d),i)<=0||(r.has(d.key)||nb(e,d))&&(o=o.insert(d.key,d.mutableCopy()))}return Z.resolve(o)}getAllFromCollectionGroup(n,e,i,r){ot()}Fr(n,e){return Z.forEach(this.docs,i=>e(i))}newChangeBuffer(n){return new cAe(this)}getSize(n){return Z.resolve(this.size)}}class cAe extends zW{constructor(n){super(),this.ar=n}applyChanges(n){const e=[];return this.changes.forEach((i,r)=>{r.isValidDocument()?e.push(this.ar.addEntry(n,r)):this.ar.removeEntry(i)}),Z.waitFor(e)}getFromCache(n,e){return this.ar.getEntry(n,e)}getAllFromCache(n,e){return this.ar.getEntries(n,e)}}class lAe{constructor(n){this.persistence=n,this.Mr=new wl(e=>hh(e),eb),this.lastRemoteSnapshotVersion=pt.min(),this.highestTargetId=0,this.Or=0,this.Nr=new oR,this.targetCount=0,this.Lr=yh.Nn()}forEachTarget(n,e){return this.Mr.forEach((i,r)=>e(r)),Z.resolve()}getLastRemoteSnapshotVersion(n){return Z.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return Z.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),Z.resolve(this.highestTargetId)}setTargetsMetadata(n,e,i){return i&&(this.lastRemoteSnapshotVersion=i),e>this.Or&&(this.Or=e),Z.resolve()}qn(n){this.Mr.set(n.target,n);const e=n.targetId;e>this.highestTargetId&&(this.Lr=new yh(e),this.highestTargetId=e),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,e){return this.qn(e),this.targetCount+=1,Z.resolve()}updateTargetData(n,e){return this.qn(e),Z.resolve()}removeTargetData(n,e){return this.Mr.delete(e.target),this.Nr.Vr(e.targetId),this.targetCount-=1,Z.resolve()}removeTargets(n,e,i){let r=0;const o=[];return this.Mr.forEach((s,a)=>{a.sequenceNumber<=e&&null===i.get(a.targetId)&&(this.Mr.delete(s),o.push(this.removeMatchingKeysForTargetId(n,a.targetId)),r++)}),Z.waitFor(o).next(()=>r)}getTargetCount(n){return Z.resolve(this.targetCount)}getTargetData(n,e){const i=this.Mr.get(e)||null;return Z.resolve(i)}addMatchingKeys(n,e,i){return this.Nr.dr(e,i),Z.resolve()}removeMatchingKeys(n,e,i){this.Nr.Rr(e,i);const r=this.persistence.referenceDelegate,o=[];return r&&e.forEach(s=>{o.push(r.markPotentiallyOrphaned(n,s))}),Z.waitFor(o)}removeMatchingKeysForTargetId(n,e){return this.Nr.Vr(e),Z.resolve()}getMatchingKeysForTargetId(n,e){const i=this.Nr.gr(e);return Z.resolve(i)}containsKey(n,e){return Z.resolve(this.Nr.containsKey(e))}}class sR{constructor(n,e){this.Br={},this.overlays={},this.kr=new js(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new lAe(this),this.indexManager=new K2e,this.remoteDocumentCache=new aAe(i=>this.referenceDelegate.Kr(i)),this.serializer=new bW(e),this.$r=new rAe(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let e=this.overlays[n.toKey()];return e||(e=new oAe,this.overlays[n.toKey()]=e),e}getMutationQueue(n,e){let i=this.Br[n.toKey()];return i||(i=new sAe(e,this.referenceDelegate),this.Br[n.toKey()]=i),i}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,e,i){De("MemoryPersistence","Starting transaction:",n);const r=new dAe(this.kr.next());return this.referenceDelegate.Ur(),i(r).next(o=>this.referenceDelegate.Wr(r).next(()=>o)).toPromise().then(o=>(r.raiseOnCommittedEvent(),o))}Gr(n,e){return Z.or(Object.values(this.Br).map(i=>()=>i.containsKey(n,e)))}}class dAe extends Y${constructor(n){super(),this.currentSequenceNumber=n}}class xk{constructor(n){this.persistence=n,this.zr=new oR,this.jr=null}static Hr(n){return new xk(n)}get Jr(){if(this.jr)return this.jr;throw ot()}addReference(n,e,i){return this.zr.addReference(i,e),this.Jr.delete(i.toString()),Z.resolve()}removeReference(n,e,i){return this.zr.removeReference(i,e),this.Jr.add(i.toString()),Z.resolve()}markPotentiallyOrphaned(n,e){return this.Jr.add(e.toString()),Z.resolve()}removeTarget(n,e){this.zr.Vr(e.targetId).forEach(r=>this.Jr.add(r.toString()));const i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(n,e.targetId).next(r=>{r.forEach(o=>this.Jr.add(o.toString()))}).next(()=>i.removeTargetData(n,e))}Ur(){this.jr=new Set}Wr(n){const e=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Z.forEach(this.Jr,i=>{const r=Xe.fromPath(i);return this.Yr(n,r).next(o=>{o||e.removeEntry(r,pt.min())})}).next(()=>(this.jr=null,e.apply(n)))}updateLimboDocument(n,e){return this.Yr(n,e).next(i=>{i?this.Jr.delete(e.toString()):this.Jr.add(e.toString())})}Kr(n){return 0}Yr(n,e){return Z.or([()=>Z.resolve(this.zr.containsKey(e)),()=>this.persistence.getTargetCache().containsKey(n,e),()=>this.persistence.Gr(n,e)])}}class dR{constructor(n,e,i,r){this.targetId=n,this.fromCache=e,this.qi=i,this.Qi=r}static Ki(n,e){let i=Yt(),r=Yt();for(const o of e.docChanges)switch(o.type){case 0:i=i.add(o.doc.key);break;case 1:r=r.add(o.doc.key)}return new dR(n,e.fromCache,i,r)}}class hAe{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class QW{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=function sj(){return!function eSe(){var t;const n=null===(t=x1())||void 0===t?void 0:t.forceEnvironment;if("node"===n)return!0;if("browser"===n)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}()?8:aa.v(Sd())>0?6:4}initialize(n,e){this.zi=n,this.indexManager=e,this.$i=!0}getDocumentsMatchingQuery(n,e,i,r){const o={result:null};return this.ji(n,e).next(s=>{o.result=s}).next(()=>{if(!o.result)return this.Hi(n,e,r,i).next(s=>{o.result=s})}).next(()=>{if(o.result)return;const s=new hAe;return this.Ji(n,e,s).next(a=>{if(o.result=a,this.Ui)return this.Yi(n,e,s,a.size)})}).next(()=>o.result)}Yi(n,e,i,r){return i.documentReadCountthis.Gi*r?(ep()<=Dn.DEBUG&&De("QueryEngine","The SDK decides to create cache indexes for query:",lp(e),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Jo(e))):Z.resolve())}ji(n,e){if(IG(e))return Z.resolve(null);let i=Jo(e);return this.indexManager.getIndexType(n,i).next(r=>0===r?null:(null!==e.limit&&1===r&&(e=ck(e,null,"F"),i=Jo(e)),this.indexManager.getDocumentsMatchingTarget(n,i).next(o=>{const s=Yt(...o);return this.zi.getDocuments(n,s).next(a=>this.indexManager.getMinOffset(n,i).next(c=>{const l=this.Zi(e,a);return this.Xi(e,l,s,c.readTime)?this.ji(n,ck(e,null,"F")):this.es(n,l,e,c)}))})))}Hi(n,e,i,r){return IG(e)||r.isEqual(pt.min())?Z.resolve(null):this.zi.getDocuments(n,i).next(o=>{const s=this.Zi(e,o);return this.Xi(e,s,i,r)?Z.resolve(null):(ep()<=Dn.DEBUG&&De("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),lp(e)),this.es(n,s,e,function Q$(t,n){const e=t.toTimestamp().seconds,i=t.toTimestamp().nanoseconds+1,r=pt.fromTimestamp(1e9===i?new Ai(e+1,0):new Ai(e,i));return new Hs(r,Xe.empty(),n)}(r,-1)).next(a=>a))})}Zi(n,e){let i=new li(PG(n));return e.forEach((r,o)=>{nb(n,o)&&(i=i.add(o))}),i}Xi(n,e,i,r){if(null===n.limit)return!1;if(i.size!==e.size)return!0;const o="F"===n.limitType?e.last():e.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(r)>0)}Ji(n,e,i){return ep()<=Dn.DEBUG&&De("QueryEngine","Using full collection scan to execute query:",lp(e)),this.zi.getDocumentsMatchingQuery(n,e,Hs.min(),i)}es(n,e,i,r){return this.zi.getDocumentsMatchingQuery(n,i,r).next(o=>(e.forEach(s=>{o=o.insert(s.key,s)}),o))}}class fAe{constructor(n,e,i,r){this.persistence=n,this.ts=e,this.serializer=r,this.ns=new vi(Nt),this.rs=new wl(o=>hh(o),eb),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(i)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new WW(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",e=>n.collect(e,this.ns))}}function XW(t,n){return uR.apply(this,arguments)}function uR(){return uR=me(function*(t,n){const e=qe(t);return yield e.persistence.runTransaction("Handle user change","readonly",i=>{let r;return e.mutationQueue.getAllMutationBatches(i).next(o=>(r=o,e._s(n),e.mutationQueue.getAllMutationBatches(i))).next(o=>{const s=[],a=[];let c=Yt();for(const l of r){s.push(l.batchId);for(const d of l.mutations)c=c.add(d.key)}for(const l of o){a.push(l.batchId);for(const d of l.mutations)c=c.add(d.key)}return e.localDocuments.getDocuments(i,c).next(l=>({us:l,removedBatchIds:s,addedBatchIds:a}))})})}),uR.apply(this,arguments)}function YW(t){const n=qe(t);return n.persistence.runTransaction("Get last remote snapshot version","readonly",e=>n.Qr.getLastRemoteSnapshotVersion(e))}function gAe(t,n){const e=qe(t);return e.persistence.runTransaction("Get next mutation batch","readonly",i=>(void 0===n&&(n=-1),e.mutationQueue.getNextMutationBatchAfterBatchId(i,n)))}function xp(t,n,e){return hR.apply(this,arguments)}function hR(){return hR=me(function*(t,n,e){const i=qe(t),r=i.ns.get(n),o=e?"readwrite":"readwrite-primary";try{e||(yield i.persistence.runTransaction("Release target",o,s=>i.persistence.referenceDelegate.removeTarget(s,r)))}catch(s){if(!Pd(s))throw s;De("LocalStore",`Failed to update sequence numbers for target ${n}: ${s}`)}i.ns=i.ns.remove(n),i.rs.delete(r.target)}),hR.apply(this,arguments)}function Ck(t,n,e){const i=qe(t);let r=pt.min(),o=Yt();return i.persistence.runTransaction("Execute query","readwrite",s=>function(c,l,d){const u=qe(c),h=u.rs.get(d);return void 0!==h?Z.resolve(u.ns.get(h)):u.Qr.getTargetData(l,d)}(i,s,Jo(n)).next(a=>{if(a)return r=a.lastLimboFreeSnapshotVersion,i.Qr.getMatchingKeysForTargetId(s,a.targetId).next(c=>{o=c})}).next(()=>i.ts.getDocumentsMatchingQuery(s,n,e?r:pt.min(),e?o:Yt())).next(a=>(function tq(t,n,e){let i=t.ss.get(n)||pt.min();e.forEach((r,o)=>{o.readTime.compareTo(i)>0&&(i=o.readTime)}),t.ss.set(n,i)}(i,function RG(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}(n),a),{documents:a,hs:o})))}class _R{constructor(){this.activeTargetIds=function UM(){return b2e}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rq{constructor(){this.no=new _R,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,e,i){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,e,i){this.ro[n]=e}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new _R,Promise.resolve()}handleUserChange(n,e,i){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class vAe{io(n){}shutdown(){}}class oq{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){De("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){De("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Sk=null;function vR(){return null===Sk?Sk=268435456+Math.round(2147483648*Math.random()):Sk++,"0x"+Sk.toString(16)}const yAe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class xAe{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}onMessage(n){this.Ao=n}close(){this.ho()}send(n){this.lo(n)}Ro(){this.Io()}Vo(n){this.Eo(n)}mo(n){this.Ao(n)}}const Po="WebChannelConnection";class wAe extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const i=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),o=encodeURIComponent(this.databaseId.database);this.fo=i+"://"+e.host,this.po=`projects/${r}/databases/${o}`,this.yo="(default)"===this.databaseId.database?`project_id=${r}`:`project_id=${r}&database_id=${o}`}get wo(){return!1}So(e,i,r,o,s){const a=vR(),c=this.bo(e,i.toUriEncodedString());De("RestConnection",`Sending RPC '${e}' ${a}:`,c,r);const l={"google-cloud-resource-prefix":this.po,"x-goog-request-params":this.yo};return this.Do(l,o,s),this.Co(e,c,l,r).then(d=>(De("RestConnection",`Received RPC '${e}' ${a}: `,d),d),d=>{throw zs("RestConnection",`RPC '${e}' ${a} failed with error: `,d,"url: ",c,"request:",r),d})}vo(e,i,r,o,s,a){return this.So(e,i,r,o,s)}Do(e,i,r){e["X-Goog-Api-Client"]="gl-js/ fire/"+Jm,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),i&&i.headers.forEach((o,s)=>e[s]=o),r&&r.headers.forEach((o,s)=>e[s]=o)}bo(e,i){return`${this.fo}/v1/${i}:${yAe[e]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Co(n,e,i,r){const o=vR();return new Promise((s,a)=>{const c=new wIe;c.setWithCredentials(!0),c.listenOnce(yIe.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case TM.NO_ERROR:const d=c.getResponseJson();De(Po,`XHR for RPC '${n}' ${o} received:`,JSON.stringify(d)),s(d);break;case TM.TIMEOUT:De(Po,`RPC '${n}' ${o} timed out`),a(new Ie(de.DEADLINE_EXCEEDED,"Request time out"));break;case TM.HTTP_ERROR:const u=c.getStatus();if(De(Po,`RPC '${n}' ${o} failed with status:`,u,"response text:",c.getResponseText()),u>0){let h=c.getResponseJson();Array.isArray(h)&&(h=h[0]);const f=h?.error;if(f&&f.status&&f.message){const m=function(p){const v=p.toLowerCase().replace(/_/g,"-");return Object.values(de).indexOf(v)>=0?v:de.UNKNOWN}(f.status);a(new Ie(m,f.message))}else a(new Ie(de.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new Ie(de.UNAVAILABLE,"Connection failed."));break;default:ot()}}finally{De(Po,`RPC '${n}' ${o} completed.`)}});const l=JSON.stringify(r);De(Po,`RPC '${n}' ${o} sending request:`,r),c.send(e,"POST",l,i,15)})}Fo(n,e,i){const r=vR(),o=[this.fo,"/","google.firestore.v1.Firestore","/",n,"/channel"],s=bIe(),a=vIe(),c={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(c.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(c.useFetchStreams=!0),this.Do(c.initMessageHeaders,e,i),c.encodeInitMessageHeaders=!0;const d=o.join("");De(Po,`Creating RPC '${n}' stream ${r}: ${d}`,c);const u=s.createWebChannel(d,c);let h=!1,f=!1;const m=new xAe({lo:p=>{f?De(Po,`Not sending because RPC '${n}' stream ${r} is closed:`,p):(h||(De(Po,`Opening RPC '${n}' stream ${r} transport.`),u.open(),h=!0),De(Po,`RPC '${n}' stream ${r} sending:`,p),u.send(p))},ho:()=>u.close()}),g=(p,v,x)=>{p.listen(v,C=>{try{x(C)}catch(D){setTimeout(()=>{throw D},0)}})};return g(u,Y1.EventType.OPEN,()=>{f||De(Po,`RPC '${n}' stream ${r} transport opened.`)}),g(u,Y1.EventType.CLOSE,()=>{f||(f=!0,De(Po,`RPC '${n}' stream ${r} transport closed`),m.Vo())}),g(u,Y1.EventType.ERROR,p=>{f||(f=!0,zs(Po,`RPC '${n}' stream ${r} transport errored:`,p),m.Vo(new Ie(de.UNAVAILABLE,"The operation could not be completed")))}),g(u,Y1.EventType.MESSAGE,p=>{var v;if(!f){const x=p.data[0];ht(!!x);const D=x.error||(null===(v=x[0])||void 0===v?void 0:v.error);if(D){De(Po,`RPC '${n}' stream ${r} received error:`,D);const j=D.status;let M=function(B){const X=fr[B];if(void 0!==X)return YG(X)}(j),E=D.message;void 0===M&&(M=de.INTERNAL,E="Unknown error status: "+j+" with message "+D.message),f=!0,m.Vo(new Ie(M,E)),u.close()}else De(Po,`RPC '${n}' stream ${r} received:`,x),m.mo(x)}}),g(a,xIe.STAT_EVENT,p=>{p.stat===H$.PROXY?De(Po,`RPC '${n}' stream ${r} detected buffering proxy`):p.stat===H$.NOPROXY&&De(Po,`RPC '${n}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{m.Ro()},0),m}}function Dk(){return typeof document<"u"?document:null}function vb(t){return new R2e(t,!0)}class yR{constructor(n,e,i=1e3,r=1.5,o=6e4){this.oi=n,this.timerId=e,this.Mo=i,this.xo=r,this.Oo=o,this.No=0,this.Lo=null,this.Bo=Date.now(),this.reset()}reset(){this.No=0}ko(){this.No=this.Oo}qo(n){this.cancel();const e=Math.floor(this.No+this.Qo()),i=Math.max(0,Date.now()-this.Bo),r=Math.max(0,e-i);r>0&&De("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.No} ms, delay with jitter: ${e} ms, last attempt: ${i} ms ago)`),this.Lo=this.oi.enqueueAfterDelay(this.timerId,r,()=>(this.Bo=Date.now(),n())),this.No*=this.xo,this.Nothis.Oo&&(this.No=this.Oo)}Ko(){null!==this.Lo&&(this.Lo.skipDelay(),this.Lo=null)}cancel(){null!==this.Lo&&(this.Lo.cancel(),this.Lo=null)}Qo(){return(Math.random()-.5)*this.No}}class aq{constructor(n,e,i,r,o,s,a,c){this.oi=n,this.$o=i,this.Uo=r,this.connection=o,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.Wo=0,this.Go=null,this.zo=null,this.stream=null,this.jo=new yR(n,e)}Ho(){return 1===this.state||5===this.state||this.Jo()}Jo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Yo()}stop(){var n=this;return me(function*(){n.Ho()&&(yield n.close(0))})()}Zo(){this.state=0,this.jo.reset()}Xo(){this.Jo()&&null===this.Go&&(this.Go=this.oi.enqueueAfterDelay(this.$o,6e4,()=>this.e_()))}t_(n){this.n_(),this.stream.send(n)}e_(){var n=this;return me(function*(){if(n.Jo())return n.close(0)})()}n_(){this.Go&&(this.Go.cancel(),this.Go=null)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}close(n,e){var i=this;return me(function*(){i.n_(),i.r_(),i.jo.cancel(),i.Wo++,4!==n?i.jo.reset():e&&e.code===de.RESOURCE_EXHAUSTED?(Ji(e.toString()),Ji("Using maximum backoff delay to prevent overloading the backend."),i.jo.ko()):e&&e.code===de.UNAUTHENTICATED&&3!==i.state&&(i.authCredentialsProvider.invalidateToken(),i.appCheckCredentialsProvider.invalidateToken()),null!==i.stream&&(i.i_(),i.stream.close(),i.stream=null),i.state=n,yield i.listener.To(e)})()}i_(){}auth(){this.state=1;const n=this.s_(this.Wo),e=this.Wo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([i,r])=>{this.Wo===e&&this.o_(i,r)},i=>{n(()=>{const r=new Ie(de.UNKNOWN,"Fetching auth token failed: "+i.message);return this.__(r)})})}o_(n,e){const i=this.s_(this.Wo);this.stream=this.a_(n,e),this.stream.Po(()=>{i(()=>(this.state=2,this.zo=this.oi.enqueueAfterDelay(this.Uo,1e4,()=>(this.Jo()&&(this.state=3),Promise.resolve())),this.listener.Po()))}),this.stream.To(r=>{i(()=>this.__(r))}),this.stream.onMessage(r=>{i(()=>this.onMessage(r))})}Yo(){var n=this;this.state=5,this.jo.qo(me(function*(){n.state=0,n.start()}))}__(n){return De("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}s_(n){return e=>{this.oi.enqueueAndForget(()=>this.Wo===n?e():(De("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class kAe extends aq{constructor(n,e,i,r,o,s){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",e,i,r,s),this.serializer=o}a_(n,e){return this.connection.Fo("Listen",n,e)}onMessage(n){this.jo.reset();const e=function O2e(t,n){let e;if("targetChange"in n){const i="NO_CHANGE"===(l=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===l?1:"REMOVE"===l?2:"CURRENT"===l?3:"RESET"===l?4:ot(),r=n.targetChange.targetIds||[],o=function(l,d){return l.useProto3Json?(ht(void 0===d||"string"==typeof d),Rr.fromBase64String(d||"")):(ht(void 0===d||d instanceof Uint8Array),Rr.fromUint8Array(d||new Uint8Array))}(t,n.targetChange.resumeToken),s=n.targetChange.cause,a=s&&function(l){const d=void 0===l.code?de.UNKNOWN:YG(l.code);return new Ie(d,l.message||"")}(s);e=new nW(i,r,o,a||null)}else if("documentChange"in n){const i=n.documentChange,r=Cc(t,i.document.name),o=er(i.document.updateTime),s=i.document.createTime?er(i.document.createTime):pt.min(),a=new uo({mapValue:{fields:i.document.fields}}),c=Si.newFoundDocument(r,o,s,a);e=new fk(i.targetIds||[],i.removedTargetIds||[],c.key,c)}else if("documentDelete"in n){const i=n.documentDelete,r=Cc(t,i.document),o=i.readTime?er(i.readTime):pt.min(),s=Si.newNoDocument(r,o);e=new fk([],i.removedTargetIds||[],s.key,s)}else if("documentRemove"in n){const i=n.documentRemove,r=Cc(t,i.document);e=new fk([],i.removedTargetIds||[],r,null)}else{if(!("filter"in n))return ot();{const i=n.filter,{count:r=0,unchangedNames:o}=i,s=new E2e(r,o);e=new tW(i.targetId,s)}}var l;return e}(this.serializer,n),i=function(o){if(!("targetChange"in o))return pt.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?pt.min():s.readTime?er(s.readTime):pt.min()}(n);return this.listener.u_(e,i)}c_(n){const e={};e.database=KM(this.serializer),e.addTarget=function(o,s){let a;const c=s.target;if(a=sk(c)?{documents:fW(o,c)}:{query:YM(o,c).ut},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=sW(o,s.resumeToken);const l=WM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}else if(s.snapshotVersion.compareTo(pt.min())>0){a.readTime=mp(o,s.snapshotVersion.toTimestamp());const l=WM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}return a}(this.serializer,n);const i=function L2e(t,n){const e=function(r){switch(r){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ot()}}(n.purpose);return null==e?null:{"goog-listen-tags":e}}(0,n);i&&(e.labels=i),this.t_(e)}l_(n){const e={};e.database=KM(this.serializer),e.removeTarget=n,this.t_(e)}}class CAe extends aq{constructor(n,e,i,r,o,s){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",e,i,r,s),this.serializer=o,this.h_=!1}get P_(){return this.h_}start(){this.h_=!1,this.lastStreamToken=void 0,super.start()}i_(){this.h_&&this.I_([])}a_(n,e){return this.connection.Fo("Write",n,e)}onMessage(n){if(ht(!!n.streamToken),this.lastStreamToken=n.streamToken,this.h_){this.jo.reset();const e=function N2e(t,n){return t&&t.length>0?(ht(void 0!==n),t.map(e=>function(r,o){let s=er(r.updateTime?r.updateTime:o);return s.isEqual(pt.min())&&(s=er(o)),new w2e(s,r.transformResults||[])}(e,n))):[]}(n.writeResults,n.commitTime),i=er(n.commitTime);return this.listener.T_(i,e)}return ht(!n.writeResults||0===n.writeResults.length),this.h_=!0,this.listener.E_()}d_(){const n={};n.database=KM(this.serializer),this.t_(n)}I_(n){const e={streamToken:this.lastStreamToken,writes:n.map(i=>function ub(t,n){let e;if(n instanceof hp)e={update:uW(t,n.key,n.value)};else if(n instanceof fp)e={delete:db(t,n.key)};else if(n instanceof kl)e={update:uW(t,n.key,n.data),updateMask:z2e(n.fieldMask)};else{if(!(n instanceof zM))return ot();e={verify:db(t,n.key)}}return n.fieldTransforms.length>0&&(e.updateTransforms=n.fieldTransforms.map(i=>function(o,s){const a=s.transform;if(a instanceof dp)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof fh)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof mh)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof up)return{fieldPath:s.field.canonicalString(),increment:a.Ie};throw ot()}(0,i))),n.precondition.isNone||(e.currentDocument=void 0!==(o=n.precondition).updateTime?{updateTime:P2e(t,o.updateTime)}:void 0!==o.exists?{exists:o.exists}:ot()),e;var o}(this.serializer,i))};this.t_(e)}}class TAe extends class{}{constructor(n,e,i,r){super(),this.authCredentials=n,this.appCheckCredentials=e,this.connection=i,this.serializer=r,this.A_=!1}R_(){if(this.A_)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.")}So(n,e,i,r){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.So(n,QM(e,i),r,o,s)).catch(o=>{throw"FirebaseError"===o.name?(o.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Ie(de.UNKNOWN,o.toString())})}vo(n,e,i,r,o){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,a])=>this.connection.vo(n,QM(e,i),r,s,a,o)).catch(s=>{throw"FirebaseError"===s.name?(s.code===de.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Ie(de.UNKNOWN,s.toString())})}terminate(){this.A_=!0,this.connection.terminate()}}class SAe{constructor(n,e){this.asyncQueue=n,this.onlineStateHandler=e,this.state="Unknown",this.m_=0,this.f_=null,this.g_=!0}p_(){0===this.m_&&(this.y_("Unknown"),this.f_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.f_=null,this.w_("Backend didn't respond within 10 seconds."),this.y_("Offline"),Promise.resolve())))}S_(n){"Online"===this.state?this.y_("Unknown"):(this.m_++,this.m_>=1&&(this.b_(),this.w_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.y_("Offline")))}set(n){this.b_(),this.m_=0,"Online"===n&&(this.g_=!1),this.y_(n)}y_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}w_(n){const e=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.g_?(Ji(e),this.g_=!1):De("OnlineStateTracker",e)}b_(){null!==this.f_&&(this.f_.cancel(),this.f_=null)}}class DAe{constructor(n,e,i,r,o){var s=this;this.localStore=n,this.datastore=e,this.asyncQueue=i,this.remoteSyncer={},this.D_=[],this.C_=new Map,this.v_=new Set,this.F_=[],this.M_=o,this.M_.io(a=>{i.enqueueAndForget(me(function*(){var c;$d(s)&&(De("RemoteStore","Restarting streams for network reachability change."),yield(c=me(function*(d){const u=qe(d);u.v_.add(4),yield wp(u),u.x_.set("Unknown"),u.v_.delete(4),yield yb(u)}),function l(d){return c.apply(this,arguments)})(s))}))}),this.x_=new SAe(i,r)}}function yb(t){return wR.apply(this,arguments)}function wR(){return wR=me(function*(t){if($d(t))for(const n of t.F_)yield n(!0)}),wR.apply(this,arguments)}function wp(t){return kR.apply(this,arguments)}function kR(){return kR=me(function*(t){for(const n of t.F_)yield n(!1)}),kR.apply(this,arguments)}function Ik(t,n){const e=qe(t);e.C_.has(n.targetId)||(e.C_.set(n.targetId,n),ER(e)?TR(e):Tp(e).Jo()&&CR(e,n))}function kp(t,n){const e=qe(t),i=Tp(e);e.C_.delete(n),i.Jo()&&cq(e,n),0===e.C_.size&&(i.Jo()?i.Xo():$d(e)&&e.x_.set("Unknown"))}function CR(t,n){if(t.O_.Oe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(pt.min())>0){const e=t.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(e)}Tp(t).c_(n)}function cq(t,n){t.O_.Oe(n),Tp(t).l_(n)}function TR(t){t.O_=new D2e({getRemoteKeysForTarget:n=>t.remoteSyncer.getRemoteKeysForTarget(n),_t:n=>t.C_.get(n)||null,nt:()=>t.datastore.serializer.databaseId}),Tp(t).start(),t.x_.p_()}function ER(t){return $d(t)&&!Tp(t).Ho()&&t.C_.size>0}function $d(t){return 0===qe(t).v_.size}function lq(t){t.O_=void 0}function IAe(t){return SR.apply(this,arguments)}function SR(){return SR=me(function*(t){t.C_.forEach((n,e)=>{CR(t,n)})}),SR.apply(this,arguments)}function AAe(t,n){return DR.apply(this,arguments)}function DR(){return DR=me(function*(t,n){lq(t),ER(t)?(t.x_.S_(n),TR(t)):t.x_.set("Unknown")}),DR.apply(this,arguments)}function MAe(t,n,e){return IR.apply(this,arguments)}function IR(){return IR=me(function*(t,n,e){if(t.x_.set("Online"),n instanceof nW&&2===n.state&&n.cause)try{yield(i=me(function*(o,s){const a=s.cause;for(const c of s.targetIds)o.C_.has(c)&&(yield o.remoteSyncer.rejectListen(c,a),o.C_.delete(c),o.O_.removeTarget(c))}),function r(o,s){return i.apply(this,arguments)})(t,n)}catch(i){De("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),i),yield Ak(t,i)}else if(n instanceof fk?t.O_.$e(n):n instanceof tW?t.O_.Je(n):t.O_.Ge(n),!e.isEqual(pt.min()))try{const i=yield YW(t.localStore);e.compareTo(i)>=0&&(yield function(o,s){const a=o.O_.it(s);return a.targetChanges.forEach((c,l)=>{if(c.resumeToken.approximateByteSize()>0){const d=o.C_.get(l);d&&o.C_.set(l,d.withResumeToken(c.resumeToken,s))}}),a.targetMismatches.forEach((c,l)=>{const d=o.C_.get(c);if(!d)return;o.C_.set(c,d.withResumeToken(Rr.EMPTY_BYTE_STRING,d.snapshotVersion)),cq(o,c);const u=new Cl(d.target,c,l,d.sequenceNumber);CR(o,u)}),o.remoteSyncer.applyRemoteEvent(a)}(t,e))}catch(i){De("RemoteStore","Failed to raise snapshot:",i),yield Ak(t,i)}var i}),IR.apply(this,arguments)}function Ak(t,n,e){return AR.apply(this,arguments)}function AR(){return AR=me(function*(t,n,e){if(!Pd(n))throw n;t.v_.add(1),yield wp(t),t.x_.set("Offline"),e||(e=()=>YW(t.localStore)),t.asyncQueue.enqueueRetryable(me(function*(){De("RemoteStore","Retrying IndexedDB access"),yield e(),t.v_.delete(1),yield yb(t)}))}),AR.apply(this,arguments)}function dq(t,n){return n().catch(e=>Ak(t,e,n))}function Cp(t){return MR.apply(this,arguments)}function MR(){return MR=me(function*(t){const n=qe(t),e=Gd(n);let i=n.D_.length>0?n.D_[n.D_.length-1].batchId:-1;for(;RAe(n);)try{const r=yield gAe(n.localStore,i);if(null===r){0===n.D_.length&&e.Xo();break}i=r.batchId,PAe(n,r)}catch(r){yield Ak(n,r)}uq(n)&&hq(n)}),MR.apply(this,arguments)}function RAe(t){return $d(t)&&t.D_.length<10}function PAe(t,n){t.D_.push(n);const e=Gd(t);e.Jo()&&e.P_&&e.I_(n.mutations)}function uq(t){return $d(t)&&!Gd(t).Ho()&&t.D_.length>0}function hq(t){Gd(t).start()}function FAe(t){return RR.apply(this,arguments)}function RR(){return RR=me(function*(t){Gd(t).d_()}),RR.apply(this,arguments)}function OAe(t){return PR.apply(this,arguments)}function PR(){return PR=me(function*(t){const n=Gd(t);for(const e of t.D_)n.I_(e.mutations)}),PR.apply(this,arguments)}function NAe(t,n,e){return FR.apply(this,arguments)}function FR(){return FR=me(function*(t,n,e){const i=t.D_.shift(),r=jM.from(i,n,e);yield dq(t,()=>t.remoteSyncer.applySuccessfulWrite(r)),yield Cp(t)}),FR.apply(this,arguments)}function LAe(t,n){return OR.apply(this,arguments)}function OR(){return OR=me(function*(t,n){var e;n&&Gd(t).P_&&(yield(e=me(function*(r,o){if(function XG(t){switch(t){default:return ot();case de.CANCELLED:case de.UNKNOWN:case de.DEADLINE_EXCEEDED:case de.RESOURCE_EXHAUSTED:case de.INTERNAL:case de.UNAVAILABLE:case de.UNAUTHENTICATED:return!1;case de.INVALID_ARGUMENT:case de.NOT_FOUND:case de.ALREADY_EXISTS:case de.PERMISSION_DENIED:case de.FAILED_PRECONDITION:case de.ABORTED:case de.OUT_OF_RANGE:case de.UNIMPLEMENTED:case de.DATA_LOSS:return!0}}(a=o.code)&&a!==de.ABORTED){const s=r.D_.shift();Gd(r).Zo(),yield dq(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,o)),yield Cp(r)}var a}),function i(r,o){return e.apply(this,arguments)})(t,n)),uq(t)&&hq(t)}),OR.apply(this,arguments)}function fq(t,n){return NR.apply(this,arguments)}function NR(){return NR=me(function*(t,n){const e=qe(t);e.asyncQueue.verifyOperationInProgress(),De("RemoteStore","RemoteStore received new credentials");const i=$d(e);e.v_.add(3),yield wp(e),i&&e.x_.set("Unknown"),yield e.remoteSyncer.handleCredentialChange(n),e.v_.delete(3),yield yb(e)}),NR.apply(this,arguments)}function VR(){return VR=me(function*(t,n){const e=qe(t);n?(e.v_.delete(2),yield yb(e)):n||(e.v_.add(2),yield wp(e),e.x_.set("Unknown"))}),VR.apply(this,arguments)}function Tp(t){return t.N_||(t.N_=function(e,i,r){const o=qe(e);return o.R_(),new kAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:IAe.bind(null,t),To:AAe.bind(null,t),u_:MAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.N_.Zo(),ER(t)?TR(t):t.x_.set("Unknown")):(yield t.N_.stop(),lq(t))});return function(e){return n.apply(this,arguments)}}())),t.N_}function Gd(t){return t.L_||(t.L_=function(e,i,r){const o=qe(e);return o.R_(),new CAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:FAe.bind(null,t),To:LAe.bind(null,t),E_:OAe.bind(null,t),T_:NAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.L_.Zo(),yield Cp(t)):(yield t.L_.stop(),t.D_.length>0&&(De("RemoteStore",`Stopping write stream with ${t.D_.length} pending writes`),t.D_=[]))});return function(e){return n.apply(this,arguments)}}())),t.L_}class BR{constructor(n,e,i,r,o){this.asyncQueue=n,this.timerId=e,this.targetTimeMs=i,this.op=r,this.removalCallback=o,this.deferred=new Mr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,e,i,r,o){const s=Date.now()+i,a=new BR(n,e,s,r,o);return a.start(i),a}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ie(de.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Ep(t,n){if(Ji("AsyncQueue",`${n}: ${t}`),Pd(t))return new Ie(de.UNAVAILABLE,`${n}: ${t}`);throw t}class Sp{constructor(n){this.comparator=n?(e,i)=>n(e,i)||Xe.comparator(e.key,i.key):(e,i)=>Xe.comparator(e.key,i.key),this.keyedMap=ib(),this.sortedSet=new vi(this.comparator)}static emptySet(n){return new Sp(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const e=this.keyedMap.get(n);return e?this.sortedSet.indexOf(e):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((e,i)=>(n(e),!1))}add(n){const e=this.delete(n.key);return e.copy(e.keyedMap.insert(n.key,n),e.sortedSet.insert(n,null))}delete(n){const e=this.get(n);return e?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(e)):this}isEqual(n){if(!(n instanceof Sp)||this.size!==n.size)return!1;const e=this.sortedSet.getIterator(),i=n.sortedSet.getIterator();for(;e.hasNext();){const r=e.getNext().key,o=i.getNext().key;if(!r.isEqual(o))return!1}return!0}toString(){const n=[];return this.forEach(e=>{n.push(e.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,e){const i=new Sp;return i.comparator=this.comparator,i.keyedMap=n,i.sortedSet=e,i}}class mq{constructor(){this.B_=new vi(Xe.comparator)}track(n){const e=n.doc.key,i=this.B_.get(e);i?0!==n.type&&3===i.type?this.B_=this.B_.insert(e,n):3===n.type&&1!==i.type?this.B_=this.B_.insert(e,{type:i.type,doc:n.doc}):2===n.type&&2===i.type?this.B_=this.B_.insert(e,{type:2,doc:n.doc}):2===n.type&&0===i.type?this.B_=this.B_.insert(e,{type:0,doc:n.doc}):1===n.type&&0===i.type?this.B_=this.B_.remove(e):1===n.type&&2===i.type?this.B_=this.B_.insert(e,{type:1,doc:i.doc}):0===n.type&&1===i.type?this.B_=this.B_.insert(e,{type:2,doc:n.doc}):ot():this.B_=this.B_.insert(e,n)}k_(){const n=[];return this.B_.inorderTraversal((e,i)=>{n.push(i)}),n}}class Dp{constructor(n,e,i,r,o,s,a,c,l){this.query=n,this.docs=e,this.oldDocs=i,this.docChanges=r,this.mutatedKeys=o,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=l}static fromInitialDocuments(n,e,i,r,o){const s=[];return e.forEach(a=>{s.push({type:0,doc:a})}),new Dp(n,e,Sp.emptySet(e),s,i,r,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&tb(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const e=this.docChanges,i=n.docChanges;if(e.length!==i.length)return!1;for(let r=0;rn.U_())}}class BAe{constructor(){this.queries=new wl(n=>MG(n),tb),this.onlineState="Unknown",this.W_=new Set}}function zR(){return zR=me(function*(t,n){const e=qe(t);let i=3;const r=n.query;let o=e.queries.get(r);o?!o.K_()&&n.U_()&&(i=2):(o=new VAe,i=n.U_()?0:1);try{switch(i){case 0:o.q_=yield e.onListen(r,!0);break;case 1:o.q_=yield e.onListen(r,!1);break;case 2:yield e.onFirstRemoteStoreListen(r)}}catch(s){const a=Ep(s,`Initialization of query '${lp(n.query)}' failed`);return void n.onError(a)}e.queries.set(r,o),o.Q_.push(n),n.G_(e.onlineState),o.q_&&n.z_(o.q_)&&$R(e)}),zR.apply(this,arguments)}function jR(){return jR=me(function*(t,n){const e=qe(t),i=n.query;let r=3;const o=e.queries.get(i);if(o){const s=o.Q_.indexOf(n);s>=0&&(o.Q_.splice(s,1),0===o.Q_.length?r=n.U_()?0:1:!o.K_()&&n.U_()&&(r=2))}switch(r){case 0:return e.queries.delete(i),e.onUnlisten(i,!0);case 1:return e.queries.delete(i),e.onUnlisten(i,!1);case 2:return e.onLastRemoteStoreUnlisten(i);default:return}}),jR.apply(this,arguments)}function UAe(t,n){const e=qe(t);let i=!1;for(const r of n){const s=e.queries.get(r.query);if(s){for(const a of s.Q_)a.z_(r)&&(i=!0);s.q_=r}}i&&$R(e)}function zAe(t,n,e){const i=qe(t),r=i.queries.get(n);if(r)for(const o of r.Q_)o.onError(e);i.queries.delete(n)}function $R(t){t.W_.forEach(n=>{n.next()})}var GR,pq;(pq=GR||(GR={})).j_="default",pq.Cache="cache";class WR{constructor(n,e,i){this.query=n,this.H_=e,this.J_=!1,this.Y_=null,this.onlineState="Unknown",this.options=i||{}}z_(n){if(!this.options.includeMetadataChanges){const i=[];for(const r of n.docChanges)3!==r.type&&i.push(r);n=new Dp(n.query,n.docs,n.oldDocs,i,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let e=!1;return this.J_?this.Z_(n)&&(this.H_.next(n),e=!0):this.X_(n,this.onlineState)&&(this.ea(n),e=!0),this.Y_=n,e}onError(n){this.H_.error(n)}G_(n){this.onlineState=n;let e=!1;return this.Y_&&!this.J_&&this.X_(this.Y_,n)&&(this.ea(this.Y_),e=!0),e}X_(n,e){return!n.fromCache||!this.U_()||(!this.options.ta||!("Offline"!==e))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===e)}Z_(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.Y_&&this.Y_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}ea(n){n=Dp.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.J_=!0,this.H_.next(n)}U_(){return this.options.source!==GR.Cache}}class bq{constructor(n){this.key=n}}class vq{constructor(n){this.key=n}}class yq{constructor(n,e){this.query=n,this.ua=e,this.ca=null,this.hasCachedResults=!1,this.current=!1,this.la=Yt(),this.mutatedKeys=Yt(),this.ha=PG(n),this.Pa=new Sp(this.ha)}get Ia(){return this.ua}Ta(n,e){const i=e?e.Ea:new mq,r=e?e.Pa:this.Pa;let o=e?e.mutatedKeys:this.mutatedKeys,s=r,a=!1;const c="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(n.inorderTraversal((d,u)=>{const h=r.get(d),f=nb(this.query,u)?u:null,m=!!h&&this.mutatedKeys.has(h.key),g=!!f&&(f.hasLocalMutations||this.mutatedKeys.has(f.key)&&f.hasCommittedMutations);let p=!1;h&&f?h.data.isEqual(f.data)?m!==g&&(i.track({type:3,doc:f}),p=!0):this.da(h,f)||(i.track({type:2,doc:f}),p=!0,(c&&this.ha(f,c)>0||l&&this.ha(f,l)<0)&&(a=!0)):!h&&f?(i.track({type:0,doc:f}),p=!0):h&&!f&&(i.track({type:1,doc:h}),p=!0,(c||l)&&(a=!0)),p&&(f?(s=s.add(f),o=g?o.add(d):o.delete(d)):(s=s.delete(d),o=o.delete(d)))}),null!==this.query.limit)for(;s.size>this.query.limit;){const d="F"===this.query.limitType?s.last():s.first();s=s.delete(d.key),o=o.delete(d.key),i.track({type:1,doc:d})}return{Pa:s,Ea:i,Xi:a,mutatedKeys:o}}da(n,e){return n.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations}applyChanges(n,e,i,r){const o=this.Pa;this.Pa=n.Pa,this.mutatedKeys=n.mutatedKeys;const s=n.Ea.k_();s.sort((d,u)=>function(f,m){const g=p=>{switch(p){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ot()}};return g(f)-g(m)}(d.type,u.type)||this.ha(d.doc,u.doc)),this.Aa(i),r=null!=r&&r;const a=e&&!r?this.Ra():[],c=0===this.la.size&&this.current&&!r?1:0,l=c!==this.ca;return this.ca=c,0!==s.length||l?{snapshot:new Dp(this.query,n.Pa,o,s,n.mutatedKeys,0===c,l,!1,!!i&&i.resumeToken.approximateByteSize()>0),Va:a}:{Va:a}}G_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Pa:this.Pa,Ea:new mq,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{Va:[]}}ma(n){return!this.ua.has(n)&&!!this.Pa.has(n)&&!this.Pa.get(n).hasLocalMutations}Aa(n){n&&(n.addedDocuments.forEach(e=>this.ua=this.ua.add(e)),n.modifiedDocuments.forEach(e=>{}),n.removedDocuments.forEach(e=>this.ua=this.ua.delete(e)),this.current=n.current)}Ra(){if(!this.current)return[];const n=this.la;this.la=Yt(),this.Pa.forEach(i=>{this.ma(i.key)&&(this.la=this.la.add(i.key))});const e=[];return n.forEach(i=>{this.la.has(i)||e.push(new vq(i))}),this.la.forEach(i=>{n.has(i)||e.push(new bq(i))}),e}fa(n){this.ua=n.hs,this.la=Yt();const e=this.Ta(n.documents);return this.applyChanges(e,!0)}ga(){return Dp.fromInitialDocuments(this.query,this.Pa,this.mutatedKeys,0===this.ca,this.hasCachedResults)}}class $Ae{constructor(n,e,i){this.query=n,this.targetId=e,this.view=i}}class GAe{constructor(n){this.key=n,this.pa=!1}}class WAe{constructor(n,e,i,r,o,s){this.localStore=n,this.remoteStore=e,this.eventManager=i,this.sharedClientState=r,this.currentUser=o,this.maxConcurrentLimboResolutions=s,this.ya={},this.wa=new wl(a=>MG(a),tb),this.Sa=new Map,this.ba=new Set,this.Da=new vi(Xe.comparator),this.Ca=new Map,this.va=new oR,this.Fa={},this.Ma=new Map,this.xa=yh.Ln(),this.onlineState="Unknown",this.Oa=void 0}get isPrimaryClient(){return!0===this.Oa}}function qAe(t,n){return qR.apply(this,arguments)}function qR(){return qR=me(function*(t,n,e=!0){const i=Mk(t);let r;const o=i.wa.get(n);return o?(i.sharedClientState.addLocalQueryTarget(o.targetId),r=o.view.ga()):r=yield xq(i,n,e,!0),r}),qR.apply(this,arguments)}function QAe(t,n){return QR.apply(this,arguments)}function QR(){return QR=me(function*(t,n){const e=Mk(t);yield xq(e,n,!0,!1)}),QR.apply(this,arguments)}function xq(t,n,e,i){return KR.apply(this,arguments)}function KR(){return KR=me(function*(t,n,e,i){const r=yield function yp(t,n){const e=qe(t);return e.persistence.runTransaction("Allocate target","readwrite",i=>{let r;return e.Qr.getTargetData(i,n).next(o=>o?(r=o,Z.resolve(r)):e.Qr.allocateTargetId(i).next(s=>(r=new Cl(n,s,"TargetPurposeListen",i.currentSequenceNumber),e.Qr.addTargetData(i,r).next(()=>r))))}).then(i=>{const r=e.ns.get(i.targetId);return(null===r||i.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(e.ns=e.ns.insert(i.targetId,i),e.rs.set(n,i.targetId)),i})}(t.localStore,Jo(n)),o=r.targetId,s=e?t.sharedClientState.addLocalQueryTarget(o):"not-current";let a;return i&&(a=yield function XR(t,n,e,i,r){return YR.apply(this,arguments)}(t,n,o,"current"===s,r.resumeToken)),t.isPrimaryClient&&e&&Ik(t.remoteStore,r),a}),KR.apply(this,arguments)}function YR(){return YR=me(function*(t,n,e,i,r){t.Na=(u,h,f)=>{return(m=me(function*(p,v,x,C){let D=v.view.Ta(x);D.Xi&&(D=yield Ck(p.localStore,v.query,!1).then(({documents:V})=>v.view.Ta(V,D)));const j=C&&C.targetChanges.get(v.targetId),M=C&&null!=C.targetMismatches.get(v.targetId),E=v.view.applyChanges(D,p.isPrimaryClient,j,M);return cP(p,v.targetId,E.Va),E.snapshot}),function g(p,v,x,C){return m.apply(this,arguments)})(t,u,h,f);var m};const o=yield Ck(t.localStore,n,!0),s=new yq(n,o.hs),a=s.Ta(o.documents),c=lb.createSynthesizedTargetChangeForCurrentChange(e,i&&"Offline"!==t.onlineState,r),l=s.applyChanges(a,t.isPrimaryClient,c);cP(t,e,l.Va);const d=new $Ae(n,e,s);return t.wa.set(n,d),t.Sa.has(e)?t.Sa.get(e).push(n):t.Sa.set(e,[n]),l.snapshot}),YR.apply(this,arguments)}function KAe(t,n,e){return ZR.apply(this,arguments)}function ZR(){return ZR=me(function*(t,n,e){const i=qe(t),r=i.wa.get(n),o=i.Sa.get(r.targetId);if(o.length>1)return i.Sa.set(r.targetId,o.filter(s=>!tb(s,n))),void i.wa.delete(n);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(r.targetId),i.sharedClientState.isActiveQueryTarget(r.targetId)||(yield xp(i.localStore,r.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(r.targetId),e&&kp(i.remoteStore,r.targetId),Ip(i,r.targetId)}).catch(Rd))):(Ip(i,r.targetId),yield xp(i.localStore,r.targetId,!0))}),ZR.apply(this,arguments)}function XAe(t,n){return JR.apply(this,arguments)}function JR(){return JR=me(function*(t,n){const e=qe(t),i=e.wa.get(n),r=e.Sa.get(i.targetId);e.isPrimaryClient&&1===r.length&&(e.sharedClientState.removeLocalQueryTarget(i.targetId),kp(e.remoteStore,i.targetId))}),JR.apply(this,arguments)}function eP(){return eP=me(function*(t,n,e){const i=function vP(t){const n=qe(t);return n.remoteStore.remoteSyncer.applySuccessfulWrite=JAe.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=eMe.bind(null,n),n}(t);try{const r=yield function(s,a){const c=qe(s),l=Ai.now(),d=a.reduce((f,m)=>f.add(m.key),Yt());let u,h;return c.persistence.runTransaction("Locally write mutations","readwrite",f=>{let m=bs(),g=Yt();return c.os.getEntries(f,d).next(p=>{m=p,m.forEach((v,x)=>{x.isValidDocument()||(g=g.add(v))})}).next(()=>c.localDocuments.getOverlayedDocuments(f,m)).next(p=>{u=p;const v=[];for(const x of a){const C=C2e(x,u.get(x.key).overlayedDocument);null!=C&&v.push(new kl(x.key,C,gG(C.value.mapValue),Ri.exists(!0)))}return c.mutationQueue.addMutationBatch(f,l,v,a)}).next(p=>{h=p;const v=p.applyToLocalDocumentSet(u,g);return c.documentOverlayCache.saveOverlays(f,p.batchId,v)})}).then(()=>({batchId:h.batchId,changes:OG(u)}))}(i.localStore,n);i.sharedClientState.addPendingMutation(r.batchId),function(s,a,c){let l=s.Fa[s.currentUser.toKey()];l||(l=new vi(Nt)),l=l.insert(a,c),s.Fa[s.currentUser.toKey()]=l}(i,r.batchId,e),yield Tl(i,r.changes),yield Cp(i.remoteStore)}catch(r){const o=Ep(r,"Failed to persist write");e.reject(o)}}),eP.apply(this,arguments)}function wq(t,n){return tP.apply(this,arguments)}function tP(){return tP=me(function*(t,n){const e=qe(t);try{const i=yield function pAe(t,n){const e=qe(t),i=n.snapshotVersion;let r=e.ns;return e.persistence.runTransaction("Apply remote event","readwrite-primary",o=>{const s=e.os.newChangeBuffer({trackRemovals:!0});r=e.ns;const a=[];n.targetChanges.forEach((d,u)=>{const h=r.get(u);if(!h)return;a.push(e.Qr.removeMatchingKeys(o,d.removedDocuments,u).next(()=>e.Qr.addMatchingKeys(o,d.addedDocuments,u)));let f=h.withSequenceNumber(o.currentSequenceNumber);var g,p,v;null!==n.targetMismatches.get(u)?f=f.withResumeToken(Rr.EMPTY_BYTE_STRING,pt.min()).withLastLimboFreeSnapshotVersion(pt.min()):d.resumeToken.approximateByteSize()>0&&(f=f.withResumeToken(d.resumeToken,i)),r=r.insert(u,f),p=f,v=d,(0===(g=h).resumeToken.approximateByteSize()||p.snapshotVersion.toMicroseconds()-g.snapshotVersion.toMicroseconds()>=3e8||v.addedDocuments.size+v.modifiedDocuments.size+v.removedDocuments.size>0)&&a.push(e.Qr.updateTargetData(o,f))});let c=bs(),l=Yt();if(n.documentUpdates.forEach(d=>{n.resolvedLimboDocuments.has(d)&&a.push(e.persistence.referenceDelegate.updateLimboDocument(o,d))}),a.push(function ZW(t,n,e){let i=Yt(),r=Yt();return e.forEach(o=>i=i.add(o)),n.getEntries(t,i).next(o=>{let s=bs();return e.forEach((a,c)=>{const l=o.get(a);c.isFoundDocument()!==l.isFoundDocument()&&(r=r.add(a)),c.isNoDocument()&&c.version.isEqual(pt.min())?(n.removeEntry(a,c.readTime),s=s.insert(a,c)):!l.isValidDocument()||c.version.compareTo(l.version)>0||0===c.version.compareTo(l.version)&&l.hasPendingWrites?(n.addEntry(c),s=s.insert(a,c)):De("LocalStore","Ignoring outdated watch update for ",a,". Current version:",l.version," Watch version:",c.version)}),{cs:s,ls:r}})}(o,s,n.documentUpdates).next(d=>{c=d.cs,l=d.ls})),!i.isEqual(pt.min())){const d=e.Qr.getLastRemoteSnapshotVersion(o).next(u=>e.Qr.setTargetsMetadata(o,o.currentSequenceNumber,i));a.push(d)}return Z.waitFor(a).next(()=>s.apply(o)).next(()=>e.localDocuments.getLocalViewOfDocuments(o,c,l)).next(()=>c)}).then(o=>(e.ns=r,o))}(e.localStore,n);n.targetChanges.forEach((r,o)=>{const s=e.Ca.get(o);s&&(ht(r.addedDocuments.size+r.modifiedDocuments.size+r.removedDocuments.size<=1),r.addedDocuments.size>0?s.pa=!0:r.modifiedDocuments.size>0?ht(s.pa):r.removedDocuments.size>0&&(ht(s.pa),s.pa=!1))}),yield Tl(e,i,n)}catch(i){yield Rd(i)}}),tP.apply(this,arguments)}function kq(t,n,e){const i=qe(t);if(i.isPrimaryClient&&0===e||!i.isPrimaryClient&&1===e){const r=[];i.wa.forEach((o,s)=>{const a=s.view.G_(n);a.snapshot&&r.push(a.snapshot)}),function(s,a){const c=qe(s);c.onlineState=a;let l=!1;c.queries.forEach((d,u)=>{for(const h of u.Q_)h.G_(a)&&(l=!0)}),l&&$R(c)}(i.eventManager,n),r.length&&i.ya.u_(r),i.onlineState=n,i.isPrimaryClient&&i.sharedClientState.setOnlineState(n)}}function ZAe(t,n,e){return nP.apply(this,arguments)}function nP(){return nP=me(function*(t,n,e){const i=qe(t);i.sharedClientState.updateQueryState(n,"rejected",e);const r=i.Ca.get(n),o=r&&r.key;if(o){let s=new vi(Xe.comparator);s=s.insert(o,Si.newNoDocument(o,pt.min()));const a=Yt().add(o),c=new cb(pt.min(),new Map,new vi(Nt),s,a);yield wq(i,c),i.Da=i.Da.remove(o),i.Ca.delete(n),lP(i)}else yield xp(i.localStore,n,!1).then(()=>Ip(i,n,e)).catch(Rd)}),nP.apply(this,arguments)}function JAe(t,n){return iP.apply(this,arguments)}function iP(){return iP=me(function*(t,n){const e=qe(t),i=n.batch.batchId;try{const r=yield function mAe(t,n){const e=qe(t);return e.persistence.runTransaction("Acknowledge batch","readwrite-primary",i=>{const r=n.batch.keys(),o=e.os.newChangeBuffer({trackRemovals:!0});return function(a,c,l,d){const u=l.batch,h=u.keys();let f=Z.resolve();return h.forEach(m=>{f=f.next(()=>d.getEntry(c,m)).next(g=>{const p=l.docVersions.get(m);ht(null!==p),g.version.compareTo(p)<0&&(u.applyToRemoteDocument(g,l),g.isValidDocument()&&(g.setReadTime(l.commitVersion),d.addEntry(g)))})}),f.next(()=>a.mutationQueue.removeMutationBatch(c,u))}(e,i,n,o).next(()=>o.apply(i)).next(()=>e.mutationQueue.performConsistencyCheck(i)).next(()=>e.documentOverlayCache.removeOverlaysForBatchId(i,r,n.batch.batchId)).next(()=>e.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(i,function(a){let c=Yt();for(let l=0;l0&&(c=c.add(a.batch.mutations[l].key));return c}(n))).next(()=>e.localDocuments.getDocuments(i,r))})}(e.localStore,n);aP(e,i,null),sP(e,i),e.sharedClientState.updateMutationState(i,"acknowledged"),yield Tl(e,r)}catch(r){yield Rd(r)}}),iP.apply(this,arguments)}function eMe(t,n,e){return rP.apply(this,arguments)}function rP(){return rP=me(function*(t,n,e){const i=qe(t);try{const r=yield function(s,a){const c=qe(s);return c.persistence.runTransaction("Reject batch","readwrite-primary",l=>{let d;return c.mutationQueue.lookupMutationBatch(l,a).next(u=>(ht(null!==u),d=u.keys(),c.mutationQueue.removeMutationBatch(l,u))).next(()=>c.mutationQueue.performConsistencyCheck(l)).next(()=>c.documentOverlayCache.removeOverlaysForBatchId(l,d,a)).next(()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(l,d)).next(()=>c.localDocuments.getDocuments(l,d))})}(i.localStore,n);aP(i,n,e),sP(i,n),i.sharedClientState.updateMutationState(n,"rejected",e),yield Tl(i,r)}catch(r){yield Rd(r)}}),rP.apply(this,arguments)}function sP(t,n){(t.Ma.get(n)||[]).forEach(e=>{e.resolve()}),t.Ma.delete(n)}function aP(t,n,e){const i=qe(t);let r=i.Fa[i.currentUser.toKey()];if(r){const o=r.get(n);o&&(e?o.reject(e):o.resolve(),r=r.remove(n)),i.Fa[i.currentUser.toKey()]=r}}function Ip(t,n,e=null){t.sharedClientState.removeLocalQueryTarget(n);for(const i of t.Sa.get(n))t.wa.delete(i),e&&t.ya.La(i,e);t.Sa.delete(n),t.isPrimaryClient&&t.va.Vr(n).forEach(i=>{t.va.containsKey(i)||Cq(t,i)})}function Cq(t,n){t.ba.delete(n.path.canonicalString());const e=t.Da.get(n);null!==e&&(kp(t.remoteStore,e),t.Da=t.Da.remove(n),t.Ca.delete(e),lP(t))}function cP(t,n,e){for(const i of e)i instanceof bq?(t.va.addReference(i.key,n),nMe(t,i)):i instanceof vq?(De("SyncEngine","Document no longer in limbo: "+i.key),t.va.removeReference(i.key,n),t.va.containsKey(i.key)||Cq(t,i.key)):ot()}function nMe(t,n){const e=n.key,i=e.path.canonicalString();t.Da.get(e)||t.ba.has(i)||(De("SyncEngine","New document in limbo: "+e),t.ba.add(i),lP(t))}function lP(t){for(;t.ba.size>0&&t.Da.size{s.push(i.Na(c,n,e).then(l=>{if((l||e)&&i.isPrimaryClient&&i.sharedClientState.updateQueryState(c.targetId,l?.fromCache?"not-current":"current"),l){r.push(l);const d=dR.Ki(c.targetId,l);o.push(d)}}))}),yield Promise.all(s),i.ya.u_(r),yield(a=me(function*(l,d){const u=qe(l);try{yield u.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>Z.forEach(d,f=>Z.forEach(f.qi,m=>u.persistence.referenceDelegate.addReference(h,f.targetId,m)).next(()=>Z.forEach(f.Qi,m=>u.persistence.referenceDelegate.removeReference(h,f.targetId,m)))))}catch(h){if(!Pd(h))throw h;De("LocalStore","Failed to update sequence numbers: "+h)}for(const h of d){const f=h.targetId;if(!h.fromCache){const m=u.ns.get(f),p=m.withLastLimboFreeSnapshotVersion(m.snapshotVersion);u.ns=u.ns.insert(f,p)}}}),function c(l,d){return a.apply(this,arguments)})(i.localStore,o))}),dP.apply(this,arguments)}function iMe(t,n){return uP.apply(this,arguments)}function uP(){return uP=me(function*(t,n){const e=qe(t);if(!e.currentUser.isEqual(n)){De("SyncEngine","User change. New user:",n.toKey());const i=yield XW(e.localStore,n);e.currentUser=n,(o=e).Ma.forEach(a=>{a.forEach(c=>{c.reject(new Ie(de.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),o.Ma.clear(),e.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),yield Tl(e,i.us)}var o}),uP.apply(this,arguments)}function rMe(t,n){const e=qe(t),i=e.Ca.get(n);if(i&&i.pa)return Yt().add(i.key);{let r=Yt();const o=e.Sa.get(n);if(!o)return r;for(const s of o){const a=e.wa.get(s);r=r.unionWith(a.view.Ia)}return r}}function Mk(t){const n=qe(t);return n.remoteStore.remoteSyncer.applyRemoteEvent=wq.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=rMe.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=ZAe.bind(null,n),n.ya.u_=UAe.bind(null,n.eventManager),n.ya.La=zAe.bind(null,n.eventManager),n}class Ap{constructor(){this.synchronizeTabs=!1}initialize(n){var e=this;return me(function*(){e.serializer=vb(n.databaseInfo.databaseId),e.sharedClientState=e.createSharedClientState(n),e.persistence=e.createPersistence(n),yield e.persistence.start(),e.localStore=e.createLocalStore(n),e.gcScheduler=e.createGarbageCollectionScheduler(n,e.localStore),e.indexBackfillerScheduler=e.createIndexBackfillerScheduler(n,e.localStore)})()}createGarbageCollectionScheduler(n,e){return null}createIndexBackfillerScheduler(n,e){return null}createLocalStore(n){return function KW(t,n,e,i){return new fAe(t,n,e,i)}(this.persistence,new QW,n.initialUser,this.serializer)}createPersistence(n){return new sR(xk.Hr,this.serializer)}createSharedClientState(n){return new rq}terminate(){var n=this;return me(function*(){var e,i;null===(e=n.gcScheduler)||void 0===e||e.stop(),null===(i=n.indexBackfillerScheduler)||void 0===i||i.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Mp{initialize(n,e){var i=this;return me(function*(){i.localStore||(i.localStore=n.localStore,i.sharedClientState=n.sharedClientState,i.datastore=i.createDatastore(e),i.remoteStore=i.createRemoteStore(e),i.eventManager=i.createEventManager(e),i.syncEngine=i.createSyncEngine(e,!n.synchronizeTabs),i.sharedClientState.onlineStateHandler=r=>kq(i.syncEngine,r,1),i.remoteStore.remoteSyncer.handleCredentialChange=iMe.bind(null,i.syncEngine),yield function LR(t,n){return VR.apply(this,arguments)}(i.remoteStore,i.syncEngine.isPrimaryClient))})()}createEventManager(n){return new BAe}createDatastore(n){const e=vb(n.databaseInfo.databaseId),i=new wAe(n.databaseInfo);return new TAe(n.authCredentials,n.appCheckCredentials,i,e)}createRemoteStore(n){return i=this.localStore,r=this.datastore,o=n.asyncQueue,s=e=>kq(this.syncEngine,e,0),a=oq.D()?new oq:new vAe,new DAe(i,r,o,s,a);var i,r,o,s,a}createSyncEngine(n,e){return function(r,o,s,a,c,l,d){const u=new WAe(r,o,s,a,c,l);return d&&(u.Oa=!0),u}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,e)}terminate(){var n=this;return me(function*(){var e,i;yield(i=me(function*(o){const s=qe(o);De("RemoteStore","RemoteStore shutting down."),s.v_.add(5),yield wp(s),s.M_.shutdown(),s.x_.set("Unknown")}),function r(o){return i.apply(this,arguments)})(n.remoteStore),null===(e=n.datastore)||void 0===e||e.terminate()})()}}class Rk{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.qa(this.observer.next,n)}error(n){this.observer.error?this.qa(this.observer.error,n):Ji("Uncaught Error in snapshot listener:",n.toString())}Qa(){this.muted=!0}qa(n,e){this.muted||setTimeout(()=>{this.muted||n(e)},0)}}class _Me{constructor(n,e,i,r){var o=this;this.authCredentials=n,this.appCheckCredentials=e,this.asyncQueue=i,this.databaseInfo=r,this.user=Qr.UNAUTHENTICATED,this.clientId=W$.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(i,function(){var s=me(function*(a){De("FirestoreClient","Received user=",a.uid),yield o.authCredentialListener(a),o.user=a});return function(a){return s.apply(this,arguments)}}()),this.appCheckCredentials.start(i,s=>(De("FirestoreClient","Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Ie(de.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const e=new Mr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(me(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),e.resolve()}catch(i){const r=Ep(i,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}function Pk(t,n){return xP.apply(this,arguments)}function xP(){return xP=me(function*(t,n){t.asyncQueue.verifyOperationInProgress(),De("FirestoreClient","Initializing OfflineComponentProvider");const e=t.configuration;yield n.initialize(e);let i=e.initialUser;t.setCredentialChangeListener(function(){var r=me(function*(o){i.isEqual(o)||(yield XW(n.localStore,o),i=o)});return function(o){return r.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=n}),xP.apply(this,arguments)}function wP(t,n){return kP.apply(this,arguments)}function kP(){return kP=me(function*(t,n){t.asyncQueue.verifyOperationInProgress();const e=yield function CP(t){return TP.apply(this,arguments)}(t);De("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(e,t.configuration),t.setCredentialChangeListener(i=>fq(n.remoteStore,i)),t.setAppCheckTokenChangeListener((i,r)=>fq(n.remoteStore,r)),t._onlineComponents=n}),kP.apply(this,arguments)}function TP(){return TP=me(function*(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){De("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Pk(t,t._uninitializedComponentsProvider._offline)}catch(n){const e=n;if(!function Iq(t){return"FirebaseError"===t.name?t.code===de.FAILED_PRECONDITION||t.code===de.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(e))throw e;zs("Error using user provided cache. Falling back to memory cache: "+e),yield Pk(t,new Ap)}}else De("FirestoreClient","Using default OfflineComponentProvider"),yield Pk(t,new Ap);return t._offlineComponents}),TP.apply(this,arguments)}function Fk(t){return EP.apply(this,arguments)}function EP(){return EP=me(function*(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(De("FirestoreClient","Using user provided OnlineComponentProvider"),yield wP(t,t._uninitializedComponentsProvider._online)):(De("FirestoreClient","Using default OnlineComponentProvider"),yield wP(t,new Mp))),t._onlineComponents}),EP.apply(this,arguments)}function DP(){return DP=me(function*(t){const n=yield Fk(t),e=n.eventManager;return e.onListen=qAe.bind(null,n.syncEngine),e.onUnlisten=KAe.bind(null,n.syncEngine),e.onFirstRemoteStoreListen=QAe.bind(null,n.syncEngine),e.onLastRemoteStoreUnlisten=XAe.bind(null,n.syncEngine),e}),DP.apply(this,arguments)}function Fq(t,n,e={}){const i=new Mr;return t.asyncQueue.enqueueAndForget(me(function*(){return function(o,s,a,c,l){const d=new Rk({next:h=>{s.enqueueAndForget(()=>function HR(t,n){return jR.apply(this,arguments)}(o,u)),h.fromCache&&"server"===c.source?l.reject(new Ie(de.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):l.resolve(h)},error:h=>l.reject(h)}),u=new WR(a,d,{includeMetadataChanges:!0,ta:!0});return function UR(t,n){return zR.apply(this,arguments)}(o,u)}(yield function Pp(t){return DP.apply(this,arguments)}(t),t.asyncQueue,n,e,i)})),i.promise}function Oq(t){const n={};return void 0!==t.timeoutSeconds&&(n.timeoutSeconds=t.timeoutSeconds),n}const Nq=new Map;function IP(t,n,e){if(!e)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${n}.`)}function Lq(t){if(!Xe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function Vq(t){if(Xe.isDocumentKey(t))throw new Ie(de.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Ok(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";{const n=(i=t).constructor?i.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var i;return"function"==typeof t?"a function":ot()}function xn(t,n){if("_delegate"in t&&(t=t._delegate),!(t instanceof n)){if(n.name===t.constructor.name)throw new Ie(de.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const e=Ok(t);throw new Ie(de.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${e}`)}}return t}class Uq{constructor(n){var e,i;if(void 0===n.host){if(void 0!==n.ssl)throw new Ie(de.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(e=n.ssl)||void 0===e||e;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Ie(de.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function DMe(t,n,e,i){if(!0===n&&!0===i)throw new Ie(de.INVALID_ARGUMENT,`${t} and ${e} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=Oq(null!==(i=n.experimentalLongPollingOptions)&&void 0!==i?i:{}),function(o){if(void 0!==o.timeoutSeconds){if(isNaN(o.timeoutSeconds))throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (must not be NaN)`);if(o.timeoutSeconds<5)throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (minimum allowed value is 5)`);if(o.timeoutSeconds>30)throw new Ie(de.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class xb{constructor(n,e,i,r){this._authCredentials=n,this._appCheckCredentials=e,this._databaseId=i,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Uq({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ie(de.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Ie(de.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Uq(n),void 0!==n.credentials&&(this._authCredentials=function(i){if(!i)return new CIe;switch(i.type){case"firstParty":return new DIe(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new Ie(de.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const i=Nq.get(e);i&&(De("ComponentProvider","Removing Datastore"),Nq.delete(e),i.terminate())}(this),Promise.resolve()}}class ho{constructor(n,e,i){this.converter=e,this._query=i,this.type="query",this.firestore=n}withConverter(n){return new ho(this.firestore,n,this._query)}}class tr{constructor(n,e,i){this.converter=e,this._key=i,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Tc(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new tr(this.firestore,n,this._key)}}class Tc extends ho{constructor(n,e,i){super(n,e,ap(i)),this._path=i,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new tr(this.firestore,null,new Xe(n))}withConverter(n){return new Tc(this.firestore,n,this._path)}}function zq(t,n,...e){if(t=Oa(t),IP("collection","path",n),t instanceof xb){const i=vn.fromString(n,...e);return Vq(i),new Tc(t,null,i)}{if(!(t instanceof tr||t instanceof Tc))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(vn.fromString(n,...e));return Vq(i),new Tc(t.firestore,null,i)}}class MMe{constructor(){this.nu=Promise.resolve(),this.ru=[],this.iu=!1,this.su=[],this.ou=null,this._u=!1,this.au=!1,this.uu=[],this.jo=new yR(this,"async_queue_retry"),this.cu=()=>{const e=Dk();e&&De("AsyncQueue","Visibility state changed to "+e.visibilityState),this.jo.Ko()};const n=Dk();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.cu)}get isShuttingDown(){return this.iu}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.lu(),this.hu(n)}enterRestrictedMode(n){if(!this.iu){this.iu=!0,this.au=n||!1;const e=Dk();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.cu)}}enqueue(n){if(this.lu(),this.iu)return new Promise(()=>{});const e=new Mr;return this.hu(()=>this.iu&&this.au?Promise.resolve():(n().then(e.resolve,e.reject),e.promise)).then(()=>e.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.ru.push(n),this.Pu()))}Pu(){var n=this;return me(function*(){if(0!==n.ru.length){try{yield n.ru[0](),n.ru.shift(),n.jo.reset()}catch(e){if(!Pd(e))throw e;De("AsyncQueue","Operation failed with retryable error: "+e)}n.ru.length>0&&n.jo.qo(()=>n.Pu())}})()}hu(n){const e=this.nu.then(()=>(this._u=!0,n().catch(i=>{throw this.ou=i,this._u=!1,Ji("INTERNAL UNHANDLED ERROR: ",function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+"\n"+s.stack),a}(i)),i}).then(i=>(this._u=!1,i))));return this.nu=e,e}enqueueAfterDelay(n,e,i){this.lu(),this.uu.indexOf(n)>-1&&(e=0);const r=BR.createAndSchedule(this,n,e,i,o=>this.Iu(o));return this.su.push(r),r}lu(){this.ou&&ot()}verifyOperationInProgress(){}Tu(){var n=this;return me(function*(){let e;do{e=n.nu,yield e}while(e!==n.nu)})()}Eu(n){for(const e of this.su)if(e.timerId===n)return!0;return!1}du(n){return this.Tu().then(()=>{this.su.sort((e,i)=>e.targetTimeMs-i.targetTimeMs);for(const e of this.su)if(e.skipDelay(),"all"!==n&&e.timerId===n)break;return this.Tu()})}Au(n){this.uu.push(n)}Iu(n){const e=this.su.indexOf(n);this.su.splice(e,1)}}class yi extends xb{constructor(n,e,i,r){super(n,e,i,r),this.type="firestore",this._queue=new MMe,this._persistenceKey=r?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||jq(this),this._firestoreClient.terminate()}}function PMe(t,n){const e="object"==typeof t?t:function cDe(t=k1){const n=nh.get(t);if(!n&&t===k1&&rj())return yj();if(!n)throw _l.create("no-app",{appName:t});return n}(),i="string"==typeof t?t:n||"(default)",r=function vj(t,n){const e=t.container.getProvider("heartbeat").getImmediate({optional:!0});return e&&e.triggerHeartbeat(),t.container.getProvider(n)}(e,"firestore").getImmediate({identifier:i});if(!r._initialized){const o=(t=>{const n=(t=>{var n,e;return null===(e=null===(n=x1())||void 0===n?void 0:n.emulatorHosts)||void 0===e?void 0:e[t]})(t);if(!n)return;const e=n.lastIndexOf(":");if(e<=0||e+1===n.length)throw new Error(`Invalid host ${n} with no separate hostname and port!`);const i=parseInt(n.substring(e+1),10);return"["===n[0]?[n.substring(1,e-1),i]:[n.substring(0,e),i]})("firestore");o&&function IMe(t,n,e,i={}){var r;const o=(t=xn(t,xb))._getSettings(),s=`${n}:${e}`;if("firestore.googleapis.com"!==o.host&&o.host!==s&&zs("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},o),{host:s,ssl:!1})),i.mockUserToken){let a,c;if("string"==typeof i.mockUserToken)a=i.mockUserToken,c=Qr.MOCK_USER;else{a=function JEe(t,n){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const i=n||"demo-project",r=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${i}`,aud:i,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},t);return[y1(JSON.stringify({alg:"none",type:"JWT"})),y1(JSON.stringify(s)),""].join(".")}(i.mockUserToken,null===(r=t._app)||void 0===r?void 0:r.options.projectId);const l=i.mockUserToken.sub||i.mockUserToken.user_id;if(!l)throw new Ie(de.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");c=new Qr(l)}t._authCredentials=new TIe(new $$(a,c))}}(r,...o)}return r}function nr(t){return t._firestoreClient||jq(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function jq(t){var n,e,i;const r=t._freezeSettings(),o=(c=(null===(n=t._app)||void 0===n?void 0:n.options.appId)||"",new i2e(t._databaseId,c,t._persistenceKey,(d=r).host,d.ssl,d.experimentalForceLongPolling,d.experimentalAutoDetectLongPolling,Oq(d.experimentalLongPollingOptions),d.useFetchStreams));var c,d;t._firestoreClient=new _Me(t._authCredentials,t._appCheckCredentials,t._queue,o),null!==(e=r.localCache)&&void 0!==e&&e._offlineComponentProvider&&null!==(i=r.localCache)&&void 0!==i&&i._onlineComponentProvider&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:r.localCache.kind,_offline:r.localCache._offlineComponentProvider,_online:r.localCache._onlineComponentProvider})}class wh{constructor(n){this._byteString=n}static fromBase64String(n){try{return new wh(Rr.fromBase64String(n))}catch(e){throw new Ie(de.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(n){return new wh(Rr.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class kh{constructor(...n){for(let e=0;e90)throw new Ie(de.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(e)||e<-180||e>180)throw new Ie(de.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=n,this._long=e}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Nt(this._lat,n._lat)||Nt(this._long,n._long)}}const OMe=/^__.*__$/;class NMe{constructor(n,e,i){this.data=n,this.fieldMask=e,this.fieldTransforms=i}toMutation(n,e){return null!==this.fieldMask?new kl(n,this.data,this.fieldMask,e,this.fieldTransforms):new hp(n,this.data,e,this.fieldTransforms)}}function qq(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ot()}}class Nk{constructor(n,e,i,r,o,s){this.settings=n,this.databaseId=e,this.serializer=i,this.ignoreUndefinedProperties=r,void 0===o&&this.Ru(),this.fieldTransforms=o||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Vu(){return this.settings.Vu}mu(n){return new Nk(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}fu(n){var e;const i=null===(e=this.path)||void 0===e?void 0:e.child(n),r=this.mu({path:i,gu:!1});return r.pu(n),r}yu(n){var e;const i=null===(e=this.path)||void 0===e?void 0:e.child(n),r=this.mu({path:i,gu:!1});return r.Ru(),r}wu(n){return this.mu({path:void 0,gu:!0})}Su(n){return Bk(n,this.settings.methodName,this.settings.bu||!1,this.path,this.settings.Du)}contains(n){return void 0!==this.fieldMask.find(e=>n.isPrefixOf(e))||void 0!==this.fieldTransforms.find(e=>n.isPrefixOf(e.field))}Ru(){if(this.path)for(let n=0;nc.covers(u.field))}else c=null,l=s.fieldTransforms;return new NMe(new uo(a),c,l)}function Th(t,n){if(Yq(t=Oa(t)))return VP("Unsupported field value:",n,t),Xq(t,n);if(t instanceof Fp)return function(i,r){if(!qq(r.Vu))throw r.Su(`${i._methodName}() can only be used with update() and set()`);if(!r.path)throw r.Su(`${i._methodName}() is not currently supported inside arrays`);const o=i._toFieldTransform(r);o&&r.fieldTransforms.push(o)}(t,n),null;if(void 0===t&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),t instanceof Array){if(n.settings.gu&&4!==n.Vu)throw n.Su("Nested arrays are not supported");return function(i,r){const o=[];let s=0;for(const a of i){let c=Th(a,r.wu(s));null==c&&(c={nullValue:"NULL_VALUE"}),o.push(c),s++}return{arrayValue:{values:o}}}(t,n)}return function(i,r){if(null===(i=Oa(i)))return{nullValue:"NULL_VALUE"};if("number"==typeof i)return BG(r.serializer,i);if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){const o=Ai.fromDate(i);return{timestampValue:mp(r.serializer,o)}}if(i instanceof Ai){const o=new Ai(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:mp(r.serializer,o)}}if(i instanceof MP)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof wh)return{bytesValue:sW(r.serializer,i._byteString)};if(i instanceof tr){const o=r.databaseId,s=i.firestore._databaseId;if(!s.isEqual(o))throw r.Su(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:qM(i.firestore._databaseId||r.databaseId,i._key.path)}}throw r.Su(`Unsupported field value: ${Ok(i)}`)}(t,n)}function Xq(t,n){const e={};return aG(t)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Fd(t,(i,r)=>{const o=Th(r,n.fu(i));null!=o&&(e[i]=o)}),{mapValue:{fields:e}}}function Yq(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Ai||t instanceof MP||t instanceof wh||t instanceof tr||t instanceof Fp)}function VP(t,n,e){if(!Yq(e)||"object"!=typeof(r=e)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){const i=Ok(e);throw n.Su("an object"===i?t+" a custom object":t+" "+i)}var r}function Cb(t,n,e){if((n=Oa(n))instanceof kh)return n._internalPath;if("string"==typeof n)return Vk(t,n);throw Bk("Field path arguments must be of type string or ",t,!1,void 0,e)}const VMe=new RegExp("[~\\*/\\[\\]]");function Vk(t,n,e){if(n.search(VMe)>=0)throw Bk(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,e);try{return new kh(...n.split("."))._internalPath}catch{throw Bk(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,e)}}function Bk(t,n,e,i,r){const o=i&&!i.isEmpty(),s=void 0!==r;let a=`Function ${n}() called with invalid data`;e&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(o||s)&&(c+=" (found",o&&(c+=` in field ${i}`),s&&(c+=` in document ${r}`),c+=")"),new Ie(de.INVALID_ARGUMENT,a+t+c)}function Zq(t,n){return t.some(e=>e.isEqual(n))}class Tb{constructor(n,e,i,r,o){this._firestore=n,this._userDataWriter=e,this._key=i,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new tr(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new BMe(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const e=this._document.data.field(Uk("DocumentSnapshot.get",n));if(null!==e)return this._userDataWriter.convertValue(e)}}}class BMe extends Tb{data(){return super.data()}}function Uk(t,n){return"string"==typeof n?Vk(t,n):n instanceof kh?n._internalPath:n._delegate._internalPath}class BP{}class Eb extends BP{}class Sb extends Eb{constructor(n,e,i){super(),this._field=n,this._op=e,this._value=i,this.type="where"}static _create(n,e,i){return new Sb(n,e,i)}_apply(n){const e=this._parse(n);return iQ(n._query,e),new ho(n.firestore,n.converter,BM(n._query,e))}_parse(n){const e=Ch(n.firestore);return function(o,s,a,c,l,d,u){let h;if(l.isKeyField()){if("array-contains"===d||"array-contains-any"===d)throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. You can't perform '${d}' queries on documentId().`);if("in"===d||"not-in"===d){nQ(u,d);const f=[];for(const m of u)f.push(tQ(c,o,m));h={arrayValue:{values:f}}}else h=tQ(c,o,u)}else"in"!==d&&"not-in"!==d&&"array-contains-any"!==d||nQ(u,d),h=function Kq(t,n,e,i=!1){return Th(e,t.Cu(i?4:3,n))}(a,"where",u,"in"===d||"not-in"===d);return yn.create(l,d,h)}(n._query,0,e,n.firestore._databaseId,this._field,this._op,this._value)}}class Op extends BP{constructor(n,e){super(),this.type=n,this._queryConstraints=e}static _create(n,e){return new Op(n,e)}_parse(n){const e=this._queryConstraints.map(i=>i._parse(n)).filter(i=>i.getFilters().length>0);return 1===e.length?e[0]:Jn.create(e,this._getOperator())}_apply(n){const e=this._parse(n);return 0===e.getFilters().length?n:(function(r,o){let s=r;const a=o.getFlattenedFilters();for(const c of a)iQ(s,c),s=BM(s,c)}(n._query,e),new ho(n.firestore,n.converter,BM(n._query,e)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class UP extends Eb{constructor(n,e){super(),this._field=n,this._direction=e,this.type="orderBy"}static _create(n,e){return new UP(n,e)}_apply(n){const e=function(r,o,s){if(null!==r.startAt)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==r.endAt)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new J0(o,s)}(n._query,this._field,this._direction);return new ho(n.firestore,n.converter,function(r,o){const s=r.explicitOrderBy.concat([o]);return new xl(r.path,r.collectionGroup,s,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)}(n._query,e))}}class zk extends Eb{constructor(n,e,i){super(),this.type=n,this._limit=e,this._limitType=i}static _create(n,e,i){return new zk(n,e,i)}_apply(n){return new ho(n.firestore,n.converter,ck(n._query,this._limit,this._limitType))}}function tQ(t,n,e){if("string"==typeof(e=Oa(e))){if(""===e)throw new Ie(de.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!VM(n)&&-1!==e.indexOf("/"))throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);const i=n.path.child(vn.fromString(e));if(!Xe.isDocumentKey(i))throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${i}' is not because it has an odd number of segments (${i.length}).`);return uh(t,new Xe(i))}if(e instanceof tr)return uh(t,e._key);throw new Ie(de.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Ok(e)}.`)}function nQ(t,n){if(!Array.isArray(t)||0===t.length)throw new Ie(de.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${n.toString()}' filters.`)}function iQ(t,n){const e=function(r,o){for(const s of r)for(const a of s.getFlattenedFilters())if(o.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(r){switch(r){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(n.op));if(null!==e)throw new Ie(de.INVALID_ARGUMENT,e===n.op?`Invalid query. You cannot use more than one '${n.op.toString()}' filter.`:`Invalid query. You cannot use '${n.op.toString()}' filters with '${e.toString()}' filters.`)}class oQ{convertValue(n,e="none"){switch(Ld(n)){case 0:return null;case 1:return n.booleanValue;case 2:return Hi(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,e);case 5:return n.stringValue;case 6:return this.convertBytes(yl(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,e);case 10:return this.convertObject(n.mapValue,e);default:throw ot()}}convertObject(n,e){return this.convertObjectMap(n.fields,e)}convertObjectMap(n,e="none"){const i={};return Fd(n,(r,o)=>{i[r]=this.convertValue(o,e)}),i}convertGeoPoint(n){return new MP(Hi(n.latitude),Hi(n.longitude))}convertArray(n,e){return(n.values||[]).map(i=>this.convertValue(i,e))}convertServerTimestamp(n,e){switch(e){case"previous":const i=nk(n);return null==i?null:this.convertValue(i,e);case"estimate":return this.convertTimestamp(K0(n));default:return null}}convertTimestamp(n){const e=Od(n);return new Ai(e.seconds,e.nanos)}convertDocumentKey(n,e){const i=vn.fromString(n);ht(_W(i));const r=new dh(i.get(1),i.get(3)),o=new Xe(i.popFirst(5));return r.isEqual(e)||Ji(`Document ${o} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${e.projectId}/${e.database}) instead.`),o}}class Eh{constructor(n,e){this.hasPendingWrites=n,this.fromCache=e}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class Np extends Tb{constructor(n,e,i,r,o,s){super(n,e,i,r,s),this._firestore=n,this._firestoreImpl=n,this.metadata=o}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const e=new Gk(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,e={}){if(this._document){const i=this._document.data.field(Uk("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i,e.serverTimestamps)}}}class Gk extends Np{data(n={}){return super.data(n)}}class Lp{constructor(n,e,i,r){this._firestore=n,this._userDataWriter=e,this._snapshot=r,this.metadata=new Eh(r.hasPendingWrites,r.fromCache),this.query=i}get docs(){const n=[];return this.forEach(e=>n.push(e)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,e){this._snapshot.docs.forEach(i=>{n.call(e,new Gk(this._firestore,this._userDataWriter,i.key,i,new Eh(this._snapshot.mutatedKeys.has(i.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const e=!!n.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new Ie(de.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(r,o){if(r._snapshot.oldDocs.isEmpty()){let s=0;return r._snapshot.docChanges.map(a=>({type:"added",doc:new Gk(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Eh(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter),oldIndex:-1,newIndex:s++}))}{let s=r._snapshot.oldDocs;return r._snapshot.docChanges.filter(a=>o||3!==a.type).map(a=>{const c=new Gk(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Eh(r._snapshot.mutatedKeys.has(a.doc.key),r._snapshot.fromCache),r.query.converter);let l=-1,d=-1;return 0!==a.type&&(l=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),1!==a.type&&(s=s.add(a.doc),d=s.indexOf(a.doc.key)),{type:GMe(a.type),doc:c,oldIndex:l,newIndex:d}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function GMe(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ot()}}class Wd extends oQ{constructor(n){super(),this.firestore=n}convertBytes(n){return new wh(n)}convertReference(n){const e=this.convertDocumentKey(n,this.firestore._databaseId);return new tr(this.firestore,null,e)}}function qMe(t,n){const e=xn(t.firestore,yi),i=function AMe(t,n,...e){if(t=Oa(t),1===arguments.length&&(n=W$.newId()),IP("doc","path",n),t instanceof xb){const i=vn.fromString(n,...e);return Lq(i),new tr(t,null,new Xe(i))}{if(!(t instanceof tr||t instanceof Tc))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(vn.fromString(n,...e));return Lq(i),new tr(t.firestore,t instanceof Tc?t.converter:null,new Xe(i))}}(t),r=function $k(t,n,e){let i;return i=t?e&&(e.merge||e.mergeFields)?t.toFirestore(n,e):t.toFirestore(n):n,i}(t.converter,n);return function Db(t,n){return function(i,r){const o=new Mr;return i.asyncQueue.enqueueAndForget(me(function*(){return function YAe(t,n,e){return eP.apply(this,arguments)}(yield function SP(t){return Fk(t).then(n=>n.syncEngine)}(i),r,o)})),o.promise}(nr(t),n)}(e,[Lk(Ch(t.firestore),"addDoc",i._key,r,null!==t.converter,{}).toMutation(i._key,Ri.exists(!1))]).then(()=>i)}!function(n,e=!0){Jm="10.9.0",T1(new x0("firestore",(i,{instanceIdentifier:r,options:o})=>{const s=i.getProvider("app").getImmediate(),a=new yi(new EIe(i.getProvider("auth-internal")),new IIe(i.getProvider("app-check-internal")),function(l,d){if(!Object.prototype.hasOwnProperty.apply(l.options,["projectId"]))throw new Ie(de.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new dh(l.options.projectId,d)}(s,r),s);return o=Object.assign({useFetchStreams:e},o),a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),Gm(j$,"4.5.0",n),Gm(j$,"4.5.0","esm2017")}();let sRe=(()=>{class t{constructor(e){this.terminologyService=e,this.goals=[{name:"Bronze",score:100},{name:"Silver",score:200},{name:"Gold",score:300},{name:"Platinum",score:400},{name:"Diamond",score:500}],this.difficultyLevels=[{name:"Easy",rules:{maxHitPoints:5,hitpointsAwardedForGuessingfullTerm:1,freeHints:2,pointsPerGuessedLetter:1,goals:this.goals,difficultyBonus:0}},{name:"Medium",rules:{maxHitPoints:4,hitpointsAwardedForGuessingfullTerm:1,freeHints:1,pointsPerGuessedLetter:2,goals:this.goals,difficultyBonus:50}},{name:"Hard",rules:{maxHitPoints:3,hitpointsAwardedForGuessingfullTerm:1,freeHints:0,pointsPerGuessedLetter:3,goals:this.goals,difficultyBonus:100}}],this.rules=this.difficultyLevels[0].rules,this.fsn="",this.scg="",this.focusConcepts=[],this.attributePairs=[],this.usedHints=new Set,this.randomLimit=4e3,this.guessResult=new Ce,this.termResult=new Ce,this.game=new wi(this.initialize())}loadMenu(){this.game.next({...this.game.value,state:"menu"})}getDifficultyLevels(){return this.difficultyLevels}newRound(e){var i=this;return me(function*(){i.game.next({...i.game.value,state:"choosingTerm",score:e?0:i.game.value.score,hitPoints:e?i.rules.maxHitPoints:i.game.value.hitPoints,round:e?1:i.game.value.round+1});const r=Math.floor(Math.random()*i.randomLimit)+1,o=yield Co(i.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));i.randomLimit=o.expansion.total-1;const s=yield Co(i.terminologyService.lookupConcept(o.expansion.contains[0].code));let a=i.extractFSN(s);i.fsn=a||"";let c=i.extractScg(s);i.scg=c||"";let l=i.extractFocusConcepts(c||"");i.focusConcepts=l||[];let d=i.extractAttributePairs(c||"");i.attributePairs=d||[],a?i.initializeRound(a,e):i.initializeRound("No term found"),i.game.next({...i.game.value,state:"playing"}),i.usedHints.clear()})()}extractFSN(e){let i=this.extractTerm(e,"900000000000003001",this.terminologyService.getLang());return i||(i=this.extractTerm(e,"900000000000013009",this.terminologyService.getLang())),i||(i=this.extractTerm(e,"900000000000003001","en")),i}extractTerm(e,i,r){let o="";return e.parameter.forEach(s=>{if("designation"===s.name){let a=s.part.some(l=>"use"===l.name&&l.valueCoding.code===i),c=s.part.some(l=>"language"===l.name&&l.valueCode===r);a&&c&&(o=s.part.find(l=>"value"===l.name)?.valueString)}}),o}extractScg(e){let i;return e.parameter.forEach(r=>{"property"===r.name&&r.part.some(o=>"code"===o.name&&"normalForm"===o.valueString)&&(i=r.part.find(o=>"valueString"===o.name)?.valueString)}),i}extractFocusConcepts(e){const[i]=e.split(":").map(a=>a.trim()),o=i.match(/\d+\|.*?\|/g);return o?o.map(a=>this.transformSnomedConcept(a.trim())||{code:"",display:""}).filter(a=>""!==a.code):[]}extractAttributePairs(e){const i=e.split(":").slice(1).join(":").trim(),r=/(\d+\|.*?\|)\s*=\s*(\d+\|.*?\|)/g;let o;const s=[];for(;null!==(o=r.exec(i));){const a=this.transformSnomedConcept(o[1].trim()),c=this.transformSnomedConcept(o[2].trim());a&&c&&s.push({type:a,target:c})}return s}transformSnomedConcept(e){const r=e.match(/^(\d+)\|(.+?)\|$/);return r?{code:r[1],display:r[2]}:null}initialize(){return{term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"menu",score:0,round:0,rules:this.rules,difficultyLevel:"",startTimestamp:0,endTimestamp:0,difficultyBonus:0,livesBonus:0,timeBonus:0}}startGame(e){this.rules=this.difficultyLevels.find(i=>i.name.toLowerCase()===e.toLocaleLowerCase())?.rules,this.game.next({term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"playing",score:0,round:0,rules:this.rules,difficultyLevel:e,startTimestamp:Date.now(),endTimestamp:0,difficultyBonus:0,livesBonus:0,timeBonus:0}),this.newRound(!0)}initializeRound(e,i){const r=e.match(/\(([^)]+)\)$/),o=r?r[0]:"",s=o?e.lastIndexOf(o):e.length,a=e.split("").map((c,l)=>l>=s?c:/[a-zA-Z0-9\xe1-\xfa\xf1]/.test(c)?"_":c);this.game.next({...this.game.value,term:e,displayTerm:a,hitPoints:i?this.rules.maxHitPoints:this.game.value.hitPoints,hints:[],state:"playing",score:i?0:this.game.value.score});for(let c=0;c{cthis.goals[this.goals.length-1].score){i.state="won",i.endTimestamp=Date.now(),i.difficultyBonus=this.rules.difficultyBonus,i.livesBonus=10*i.hitPoints;const c=Math.round((i.endTimestamp-i.startTimestamp)/1e3);i.timeBonus=Math.max(0,180-c),i.score+=i.difficultyBonus+i.livesBonus+i.timeBonus}else i.hitPoints=i.hitPoints+this.rules.hitpointsAwardedForGuessingfullTerm,i.hitPoints>this.rules.maxHitPoints&&(i.hitPoints=this.rules.maxHitPoints),setTimeout(()=>{this.newRound()},1500)}else this.guessResult.emit({letter:e,result:!1}),i.hitPoints-=1,i.hitPoints<=0&&(i.hitPoints=0,i.state="gameOver",i.endTimestamp=Date.now());this.game.next(i)}guessTerm(e){return e.toLowerCase()===this.game.value.term.toLowerCase()?(this.termResult.emit(e),this.game.next({...this.game.value,displayTerm:this.game.value.term.split("")}),!0):(this.game.next({...this.game.value,hitPoints:this.game.value.hitPoints-1}),this.game.value.hitPoints<=0&&this.game.next({...this.game.value,hitPoints:0,state:"gameOver"}),!1)}revealHint(e){let i={...this.game.value},r="";if(0===this.focusConcepts.length&&0===this.attributePairs.length)return i.hints.push("No more hints available."),void this.game.next(i);let o=this.focusConcepts.length>0,s=this.attributePairs.length>0;if(o&&s&&(o=Math.random()<.5),o){let a=Math.floor(Math.random()*this.focusConcepts.length);r=`One of the parents of this concept is: ${this.focusConcepts[a].display}`,this.focusConcepts.splice(a,1)}else if(s){let a=Math.floor(Math.random()*this.attributePairs.length),c=this.attributePairs[a];r=`This concept has a ${c.type.display} of ${c.target.display}`,this.attributePairs.splice(a,1)}this.usedHints.add(r),i.hints.push(r),e||(i.hitPoints-=1),i.hintsAvailable=this.focusConcepts.length>0||this.attributePairs.length>0,this.game.next(i),i.hitPoints<=0&&(i.hitPoints=0,i.state="gameOver",this.game.next(i))}getGameState(){return this.game.asObservable()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(so))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aRe=(()=>{class t{constructor(){this.loadingProgress=new wi(0)}preloadImages(e){const i=e.map((r,o)=>this.preloadImage(r,e.length,o));return Promise.all(i).then(()=>{this.loadingProgress.next(100)})}preloadImage(e,i,r){return new Promise((o,s)=>{const a=new Image;a.src=e,a.onload=()=>{this.loadingProgress.next((r+1)/i*100),o()},a.onerror=s})}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lQ=(()=>{class t{constructor(){this.db=PMe(),this.scoreLimit=20}addScore(e){var i=this;return me(function*(){try{yield qMe(zq(i.db,"scoreboard"),e)}catch(r){console.error("Error adding document: ",r)}})()}getScores(){var e=this;return me(function*(){const r=function UMe(t,n,...e){let i=[];n instanceof BP&&i.push(n),i=i.concat(e),function(o){const s=o.filter(c=>c instanceof Op).length,a=o.filter(c=>c instanceof Sb).length;if(s>1||s>0&&a>0)throw new Ie(de.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(i);for(const r of i)t=r._apply(t);return t}(zq(e.db,"scoreboard"),function zMe(t,n="asc"){const e=n,i=Uk("orderBy",t);return UP._create(i,e)}("score","desc"),function HMe(t){return function Bq(t,n){if(n<=0)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${n}.`)}("limit",t),zk._create("limit",t,"F")}(e.scoreLimit));return(yield function WMe(t){t=xn(t,ho);const n=xn(t.firestore,yi),e=nr(n),i=new Wd(n);return function Jq(t){if("L"===t.limitType&&0===t.explicitOrderBy.length)throw new Ie(de.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(t._query),Fq(e,t._query).then(r=>new Lp(n,i,t,r))}(r)).docs.map(s=>({id:s.id,...s.data()}))})()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cRe(t,n){if(1&t){const e=Se();_(0,"button",4),U("click",function(){const r=z(e).$implicit;return H(A(2).guessLetter(r))}),k(1),b()}if(2&t){const e=n.$implicit,i=A(2);lt("guessed-correct","correct"===i.guessedLetters[e])("guessed-wrong","wrong"===i.guessedLetters[e]),T("disabled",i.isLetterGuessed(e)),y(),Je(" ",e," ")}}function lRe(t,n){if(1&t&&(_(0,"div",2),q(1,cRe,2,6,"button",3),b()),2&t){const e=n.$implicit;y(),T("ngForOf",e)}}let dRe=(()=>{class t{constructor(){this.keyboardLayout=[["1","2","3","4","5","6","7","8","9","0"],["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]],this.guessedLetters={},this.letterGuessed=new Ce}addGuessedLetter(e,i){this.guessedLetters[e]=i?"correct":"wrong"}guessLetter(e){this.letterGuessed.emit(e)}isLetterGuessed(e){return e in this.guessedLetters}markLetterAsGuessed(e,i){this.guessedLetters[e]=i}reset(){this.guessedLetters={}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-keyboard"]],outputs:{letterGuessed:"letterGuessed"},decls:2,vars:1,consts:[[1,"keyboard-container"],["class","keyboard-row",4,"ngFor","ngForOf"],[1,"keyboard-row"],["mat-button","",3,"guessed-correct","guessed-wrong","disabled","click",4,"ngFor","ngForOf"],["mat-button","",3,"click","disabled"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,lRe,2,1,"div",1),b()),2&i&&(y(),T("ngForOf",r.keyboardLayout))},dependencies:[ro,Eo],styles:[".keyboard-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.keyboard-row[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:5px;flex-wrap:wrap}button[_ngcontent-%COMP%]{margin:2px;padding:8px 6px;border-radius:8px;border:1px solid #000;transition:background-color .3s ease;min-width:40px;flex:1}button.guessed-correct[_ngcontent-%COMP%]{background-color:green;color:#fff}button.guessed-wrong[_ngcontent-%COMP%]{background-color:red;color:#fff}@media (max-width: 768px){.keyboard-row[_ngcontent-%COMP%]{margin:1px 0}.keyboard-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:1px;padding:8px;min-width:0;width:9%;flex:1 1 auto;font-size:14px}}"]})}return t})(),uRe=(()=>{class t{constructor(){this.tooltipDismissedKey="iosSafariTooltipDismissed"}isIosSafari(){return/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&/Safari/i.test(window.navigator.userAgent)&&!/CriOS/i.test(window.navigator.userAgent)&&!/FxiOS/i.test(window.navigator.userAgent)}tooltipDismissed(){return"true"===localStorage.getItem(this.tooltipDismissedKey)}dismissTooltip(){localStorage.setItem(this.tooltipDismissedKey,"true")}isRunningStandalone(){return"standalone"in window.navigator&&window.navigator.standalone}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hRe(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"div",2),k(2," Install this webapp on your iPhone: tap "),_(3,"mat-icon"),k(4,"ios_share"),b(),k(5," and then 'Add to Home Screen' "),b(),_(6,"button",3),U("click",function(){return z(e),H(A().dismiss())}),_(7,"mat-icon"),k(8,"close"),b()()()}}let fRe=(()=>{class t{constructor(e){this.platformDetectionService=e,this.isIosSafari=!1,this.tooltipDismissed=!1}ngOnInit(){this.isIosSafari=this.platformDetectionService.isIosSafari(),this.tooltipDismissed=this.platformDetectionService.tooltipDismissed()||this.platformDetectionService.isRunningStandalone()}dismiss(){this.tooltipDismissed=!0,this.platformDetectionService.dismissTooltip()}static#e=this.\u0275fac=function(i){return new(i||t)(w(uRe))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-add-to-home"]],decls:1,vars:1,consts:[["class","custom-tooltip",4,"ngIf"],[1,"custom-tooltip"],[1,"tooltip-text"],[1,"tooltip-dismiss-button",3,"click"]],template:function(i,r){1&i&&q(0,hRe,9,0,"div",0),2&i&&T("ngIf",r.isIosSafari&&!r.tooltipDismissed)},dependencies:[jr,So],styles:['.custom-tooltip[_ngcontent-%COMP%]{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#fff;border-radius:8px;padding:16px;box-shadow:0 4px 8px #0003;display:flex;flex-direction:row;align-items:center;max-width:320px;box-sizing:border-box;z-index:1000}.custom-tooltip[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-20px;left:50%;transform:translate(-50%);width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:20px solid white}.tooltip-icon[_ngcontent-%COMP%]{background:#007bff;color:#fff;border-radius:50%;padding:10px;margin-right:16px}.tooltip-text[_ngcontent-%COMP%]{color:#333;font-size:16px}.tooltip-dismiss-button[_ngcontent-%COMP%]{margin-left:auto;background:transparent;border:none;cursor:pointer}.tooltip-dismiss-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#666;vertical-align:bottom}']})}return t})(),dQ=(()=>{class t{transform(e,...i){if(!e)return e;const r=Math.floor(e/1e3%60),o=Math.floor(e/6e4%60),s=Math.floor(e/36e5%24),a=0===s&&o<10?o.toString():o<10?"0"+o:o;let d="";return s>0&&(d+=`${s<10?"0"+s:s}h `),(o>0||s>0)&&(d+=`${a}m `),d+=`${0===s&&0===o&&r<10?r.toString():r<10?"0"+r:r}s`,d}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"elapsedTime",type:t,pure:!0})}return t})();const mRe=["keyboard"],uQ=()=>[],pRe=(t,n)=>[t,n],jP=t=>[t],hQ=t=>[t,"shadow-local"],gRe=t=>[t,"trophy-large","shadow-local"];function _Re(t,n){if(1&t&&(_(0,"div",8)(1,"div",9)(2,"div",10),k(3," Loading... "),b(),xe(4,"mat-progress-bar",11),b()()),2&t){const e=A(2);y(4),T("value",e.loadingAssetsProgress)}}function bRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite"),b()())}function vRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite_border"),b()())}function yRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=n.$implicit;y(),Ke(e)}}function xRe(t,n){if(1&t&&(_(0,"span",33),q(1,yRe,2,1,"span",18),b()),2&t){const e=n.$implicit;y(),T("ngForOf",e.split(""))}}function wRe(t,n){if(1&t&&(_(0,"div",31),q(1,xRe,2,1,"span",32),b()),2&t){const e=A(2).ngIf;y(),T("ngForOf",e.displayTerm.join("").split(" "))}}function kRe(t,n){1&t&&(_(0,"div",34)(1,"div",35),k(2," Choosing a random SNOMED CT concept using the FHIR API "),b(),xe(3,"mat-progress-bar",36),b())}function CRe(t,n){if(1&t){const e=Se();_(0,"div",37),U("click",function(){return z(e),H(A(3).revealHint())}),k(1," Reveal Hint "),b()}}function TRe(t,n){if(1&t){const e=Se();_(0,"div",37),U("click",function(){return z(e),H(A(3).loadMenu())}),k(1," Abandon game "),b()}}function ERe(t,n){1&t&&xe(0,"li",41),2&t&&T("innerHTML",n.$implicit,yu)}function SRe(t,n){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),k(3,"Hints:"),b(),_(4,"ul"),q(5,ERe,1,1,"li",40),b()()()),2&t){const e=A(2).ngIf;y(5),T("ngForOf",e.hints)}}function DRe(t,n){if(1&t&&(_(0,"mat-icon",47),k(1,"grade"),b()),2&t){const e=A().$implicit;Ki("left",A(3).calculateGoalPosition(e.score-5),"%"),T("ngClass",Ea(3,jP,e.name.toLowerCase()))}}function IRe(t,n){if(1&t&&(_(0,"mat-icon",48),k(1,"grade"),b()),2&t){const e=A().$implicit;Ki("left",A(3).calculateGoalPosition(e.score-1),"%"),T("ngClass",Ea(3,jP,e.name.toLowerCase()))}}function ARe(t,n){if(1&t&&(_(0,"div",49),k(1),b()),2&t){const e=A().$implicit;Ki("left",A(3).calculateGoalPosition(e.score),"%"),T("ngClass",Ea(4,jP,e.name.toLowerCase())),y(),Je("",e.name," trophy!")}}function MRe(t,n){if(1&t&&(zt(0),xe(1,"div",42),q(2,DRe,2,5,"mat-icon",43),_(3,"mat-icon",44),k(4,"emoji_events"),b(),q(5,IRe,2,5,"mat-icon",45)(6,ARe,2,6,"div",46),Ht()),2&t){const e=n.$implicit,i=A(2).ngIf,r=A();y(),Ys(e.name.toLowerCase()),Ki("left",r.calculateGoalPosition(e.score),"%"),y(),T("ngIf",i.score>=e.score),y(),Ki("left",r.calculateGoalPosition(e.score-3),"%"),T("ngClass",ZS(10,pRe,e.name.toLowerCase(),i.score>=e.score?"trophy-large":"")),y(2),T("ngIf",i.score>=e.score),y(),T("ngIf",i.score>=e.score)}}function RRe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",12)(2,"div",13),xe(3,"img",14),_(4,"div",15),k(5),b()()(),_(6,"div",16)(7,"span",17),k(8),b(),q(9,bRe,3,0,"span",18)(10,vRe,3,0,"span",18),_(11,"span",17),k(12),wo(13,"elapsedTime"),b()(),q(14,wRe,2,1,"div",19)(15,kRe,4,0,"div",20),_(16,"p",21),k(17,"Click the keys to guess the letters of the term!"),b(),_(18,"div")(19,"app-keyboard",22,0),U("letterGuessed",function(r){return z(e),H(A(2).guessLetter(r))}),b()(),_(21,"div",23),q(22,CRe,2,0,"div",24)(23,TRe,2,0,"div",25),b(),q(24,SRe,6,1,"div",26),_(25,"div",27),k(26," * Hints are generated from the definition of the SNOMED CT concept, retrieved from the FHIR API as an SCG grammar expression "),b(),_(27,"div",28)(28,"h3"),k(29,"Score Progression"),b(),_(30,"div",29),xe(31,"mat-progress-bar",30),q(32,MRe,7,13,"ng-container",18),b()()()}if(2&t){const e=A().ngIf,i=A();y(3),T("@popIn",void 0),y(2),Iu(" ",e.difficultyLevel," - ",i.getLanguageName(i.selectedLanguage)," "),y(3),Iu(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),y(),T("ngForOf",us(18,uQ).constructor(e.hitPoints)),y(),T("ngForOf",us(19,uQ).constructor(e.rules.maxHitPoints-e.hitPoints)),y(2),Je(" \xa0\xa0\xa0\xa0 Time: ",oc(13,16,1e3*i.elapsedTime),""),y(2),T("ngIf","playing"==e.state),y(),T("ngIf","choosingTerm"===e.state),y(3),T("@shake",i.shakeState),y(4),T("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),y(),T("ngIf","playing"==e.state),y(),T("ngIf",e.hints.length>0&&"playing"==e.state),y(7),T("value",i.calculateProgress(e.score)),y(),T("ngForOf",i.goals)}}function PRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",52),_(3,"p",53)(4,"b"),k(5,"Welcome to SnoGuess!"),b()(),_(6,"p",53),k(7," A fun way to learn about SNOMED CT concepts and their definitions. "),b(),_(8,"div",54),U("click",function(){return z(e),H(A(2).chooseDifficultyLevel())}),k(9," New game "),b(),_(10,"div",54),U("click",function(){return z(e),H(A(2).showInstructionsPanel())}),k(11," Instructions "),b(),_(12,"div",55),U("click",function(){return z(e),H(A(2).openScoreboard())}),k(13," High Scores "),b(),_(14,"p",56),k(15," Playing with terms in the IPS Reference Set in "),_(16,"b"),k(17),b(),k(18,", change language: "),b(),_(19,"div",57)(20,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("da"))}),k(21,"DA"),b(),_(22,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("de"))}),k(23,"DE"),b(),_(24,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("en"))}),k(25,"EN"),b(),_(26,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("es"))}),k(27,"ES"),b(),_(28,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("et"))}),k(29,"ET"),b(),_(30,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("fi"))}),k(31,"FI"),b(),_(32,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("fr"))}),k(33,"FR"),b(),_(34,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("nl"))}),k(35,"NL"),b(),_(36,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("no"))}),k(37,"NO"),b(),_(38,"button",58),U("click",function(){return z(e),H(A(2).setLanguage("sv"))}),k(39,"SV"),b()()()}if(2&t){const e=A(2);y(2),T("@popIn",void 0),y(6),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(5),Ke(e.getLanguageName(e.selectedLanguage))}}function FRe(t,n){if(1&t){const e=Se();_(0,"div",62)(1,"div",63),U("click",function(){const r=z(e).$implicit;return H(A(3).startGame(r.name))}),k(2),b(),_(3,"p",64),k(4),_(5,"mat-icon",65),k(6,"favorite"),b(),k(7),_(8,"mat-icon",66),k(9,"contact_support"),b(),k(10),b()()}if(2&t){const e=n.$implicit;y(),T("@scrollUp",void 0),y(),Je(" ",e.name," "),y(),T("@fadeInDelayed",void 0),y(),Je(" Life: ",e.rules.maxHitPoints," "),y(3),Je(", Free hints: ",e.rules.freeHints," "),y(3),Je(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function ORe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",59),_(3,"p",53)(4,"b"),k(5,"Choose the game difficulty"),b()(),q(6,FRe,11,6,"div",60),_(7,"div",61),U("click",function(){return z(e),H(A(2).backToMenu())}),k(8," Back "),b()()}if(2&t){const e=A(2);y(2),T("@popIn",void 0),y(4),T("ngForOf",e.difficultyLevels),y(),T("@scrollUp",void 0)}}function NRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",67),_(3,"ul",68)(4,"li",69)(5,"mat-icon"),k(6,"check"),b(),k(7,"Click the keys on the screen to guess the letters of the term "),_(8,"mat-icon",70),k(9,"keyboard"),b()(),_(10,"li",69)(11,"mat-icon"),k(12,"check"),b(),k(13,"You have three to five lives, depending on your difficulty level "),_(14,"span",71)(15,"mat-icon"),k(16,"favorite"),b(),_(17,"mat-icon"),k(18,"favorite"),b(),_(19,"mat-icon"),k(20,"favorite"),b()()(),_(21,"li",69)(22,"mat-icon"),k(23,"check"),b(),k(24,"You will loose one life with each wrong guess "),_(25,"mat-icon",71),k(26,"favorite_border"),b()(),_(27,"li",69)(28,"mat-icon"),k(29,"check"),b(),k(30,"You earn points for each correct guess "),_(31,"mat-icon",70),k(32,"plus_one"),b()(),_(33,"li",69)(34,"mat-icon"),k(35,"check"),b(),k(36,"In Easy mode you get 2 hints for free, and in Medium mode you get one \u{1f4a1} "),b(),_(37,"li",69)(38,"mat-icon"),k(39,"check"),b(),k(40,"You can reveal more hints, but each hint it will cost one life "),_(41,"mat-icon",71),k(42,"favorite_border"),b()(),_(43,"li",69)(44,"mat-icon"),k(45,"check"),b(),k(46,"If you guess the whole term you can recover one life"),_(47,"mat-icon",71),k(48,"favorite"),b()(),_(49,"li",69)(50,"mat-icon"),k(51,"check"),b(),k(52,"Keep guessing terms to increase your score and earn trophies "),_(53,"mat-icon",72),k(54,"emoji_events"),b()()(),_(55,"div",73),U("click",function(){return z(e),H(A(2).hideInstructionsPanel())}),k(56," Back "),b()()}2&t&&(y(2),T("@popIn",void 0),y(53),T("@scrollUp",void 0))}function LRe(t,n){1&t&&(_(0,"div",74),xe(1,"img",75),b()),2&t&&(y(),T("@popIn",void 0))}function VRe(t,n){if(1&t&&(_(0,"div"),k(1),b()),2&t){const e=A(2).ngIf,i=A();y(),Je(" Trophy: ",i.getMaxTrophyObtained(e.score)," ")}}function BRe(t,n){if(1&t&&(_(0,"div")(1,"mat-icon",83),k(2,"grade"),b(),k(3," \xa0\xa0 "),_(4,"mat-icon",83),k(5,"emoji_events"),b(),k(6," \xa0 "),_(7,"mat-icon",83),k(8,"grade"),b()()),2&t){const e=A(2).ngIf,i=A();y(),T("ngClass",Ea(3,hQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),y(3),T("ngClass",Ea(5,gRe,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),y(3),T("ngClass",Ea(7,hQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function URe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",76),_(3,"div",77)(4,"div"),k(5," The term was: "),b(),_(6,"div",78),k(7),b(),_(8,"div",79),k(9),b(),_(10,"div",80),k(11),wo(12,"elapsedTime"),b(),q(13,VRe,2,1,"div",5),b(),q(14,BRe,9,9,"div",5),_(15,"div",81),U("click",function(){z(e);const r=A(2);return r.loadMenu(),H(r.chooseDifficultyLevel())}),k(16," New game "),b(),_(17,"div",81),U("click",function(){return z(e),H(A(2).openScoreboard())}),k(18," High Scores "),b(),_(19,"div",82),U("click",function(){return z(e),H(A(2).loadMenu())}),k(20," Main menu "),b()()}if(2&t){const e=A().ngIf,i=A();y(2),T("@popIn",void 0),y(5),Je(" ",e.term,""),y(2),Iu("",e.round," ",1==e.round?"round":"rounds",""),y(2),c_(" Final Score: ",e.score," points - Difficulty: ",e.difficultyLevel," - Time: ",oc(12,12,e.endTimestamp-e.startTimestamp)," "),y(2),T("ngIf",i.getMaxTrophyObtained(e.score)),y(),T("ngIf",i.getMaxTrophyObtained(e.score)),y(),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0)}}function zRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=A(2).ngIf;y(),Je("\u2192 Bonus: ",e.livesBonus,"")}}function HRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=A(2).ngIf;y(),Je("\u2192 Bonus: ",e.difficultyBonus,"")}}function jRe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=A(2).ngIf;y(),Je("\u2192 Bonus: ",e.timeBonus,"")}}function $Re(t,n){if(1&t){const e=Se();_(0,"div",90)(1,"p",91),k(2,"This is a High Score! Save a message to the public leaderboard!"),b(),_(3,"div",92)(4,"input",93),Hr("ngModelChange",function(r){z(e);const o=A(3);return io(o.messageForLeaderboard,r)||(o.messageForLeaderboard=r),H(r)}),b(),_(5,"div",94),U("click",function(){z(e);const r=A(2).ngIf;return H(A().saveScore(r))}),k(6," Save "),b()(),_(7,"p",95),k(8,"No personal information is recorded"),b()()}if(2&t){const e=A(3);y(4),zr("ngModel",e.messageForLeaderboard)}}function GRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",84),_(3,"div",85)(4,"mat-icon",86),k(5,"grade"),b(),_(6,"mat-icon",86),k(7,"emoji_events"),b(),_(8,"mat-icon",86),k(9,"grade"),b()(),_(10,"div",87),k(11),q(12,zRe,2,1,"span",5),b(),_(13,"div",87),k(14),q(15,HRe,2,1,"span",5),b(),_(16,"div",87),k(17),wo(18,"elapsedTime"),q(19,jRe,2,1,"span",5),b(),_(20,"div",88),k(21),b(),q(22,$Re,9,1,"div",89),_(23,"div",81),U("click",function(){z(e);const r=A(2);return r.loadMenu(),H(r.chooseDifficultyLevel())}),k(24," New game "),b(),_(25,"div",81),U("click",function(){return z(e),H(A(2).openScoreboard())}),k(26," High Scores "),b(),_(27,"div",82),U("click",function(){return z(e),H(A(2).loadMenu())}),k(28," Main menu "),b()()}if(2&t){const e=A().ngIf,i=A();y(2),T("@popIn",void 0),y(9),Je("Lives left: ",e.hitPoints," "),y(),T("ngIf",e.livesBonus>0),y(2),Je("Difficulty: ",e.difficultyLevel," "),y(),T("ngIf",e.difficultyBonus>0),y(2),Je("Time: ",oc(18,12,e.endTimestamp-e.startTimestamp)," "),y(2),T("ngIf",e.timeBonus>0),y(2),Je("Final score: ",e.score,""),y(),T("ngIf",i.highScore),y(),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0),y(2),T("@scrollUp",void 0)}}function WRe(t,n){if(1&t&&(_(0,"div",3),q(1,_Re,5,1,"div",4)(2,RRe,33,20,"div",5)(3,PRe,40,5,"div",6)(4,ORe,9,3,"div",6)(5,NRe,57,2,"div",6)(6,LRe,2,1,"div",7)(7,URe,21,14,"div",6)(8,GRe,29,14,"div",6),b()),2&t){const e=n.ngIf,i=A();y(),T("ngIf",i.loadingAssets),y(),T("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!i.loadingAssets),y(),T("ngIf","menu"===e.state&&!i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),y(),T("ngIf","menu"===e.state&&i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),y(),T("ngIf",i.showInstructions),y(),T("ngIf",i.termGuessed),y(),T("ngIf","gameOver"===e.state),y(),T("ngIf","won"==e.state)}}let qRe=(()=>{class t{constructor(e,i,r,o,s){this.snoguessMainService=e,this.preloadService=i,this.terminologyService=r,this.firebaseService=o,this.router=s,this.shakeState="normal",this.termGuessed="",this.goals=[],this.loadingAssetsProgress=0,this.loadingAssets=!0,this.showInstructions=!1,this.chooseDifficulty=!1,this.currentYear=new Date,this.difficultyLevels=[],this.elapsedTime=0,this.gameInProgress=!1,this.messageForLeaderboard="",this.highScore=!1}ngOnInit(){this.game=this.snoguessMainService.getGameState(),this.difficultyLevels=this.snoguessMainService.getDifficultyLevels(),this.game.subscribe(i=>{"playing"===i.state&&(this.goals=i.rules.goals),("gameOver"===i.state||"won"===i.state)&&(this.stopTimer(),"won"===i.state&&this.firebaseService.getScores().then(r=>{i.score>r[r.length-1].score&&(this.highScore=!0)}))}),this.snoguessMainService.guessResult.subscribe(i=>{!1===i.result?(this.keyboard?.addGuessedLetter(i.letter,!1),this.shakeState="shake",setTimeout(()=>this.shakeState="normal",200)):this.keyboard?.addGuessedLetter(i.letter,!0)}),this.snoguessMainService.termResult.subscribe(i=>{i&&(this.keyboard?.reset(),this.termGuessed=i,setTimeout(()=>{this.termGuessed=""},2e3))}),this.preloadService.preloadImages(["assets/img/SI_CT_w_tagline.png","assets/img/snoguess-logo.png","assets/img/congratulations.png","assets/img/correct.png","assets/img/game-over.png","assets/img/instructions.png","assets/img/difficulty.png","assets/img/scoreboard.png"]).then(()=>{setTimeout(()=>{this.loadingAssets=!1,this.loadMenu()},500)}),this.preloadService.loadingProgress.subscribe(i=>{this.loadingAssetsProgress=i}),this.terminologyService.fhirUrlParam$.subscribe(i=>{i&&this.terminologyService.getCodeSystem(i).subscribe(r=>{this.selectedEdition=r?.entry[0]?.resource?.title})}),this.terminologyService.lang$.subscribe(i=>{this.selectedLanguage=i})}loadMenu(){this.snoguessMainService.loadMenu()}backToMenu(){this.chooseDifficulty=!1}showInstructionsPanel(){this.showInstructions=!0}hideInstructionsPanel(){this.showInstructions=!1}chooseDifficultyLevel(){this.chooseDifficulty=!0}startGame(e){this.chooseDifficulty=!1,this.keyboard&&this.keyboard.reset(),this.stopTimer(),this.snoguessMainService.startGame(e),this.startTimer(),this.highScore=!1}guessLetter(e){var i=this;return me(function*(){"playing"===(yield function UEe(t,n){const e="object"==typeof n;return new Promise((i,r)=>{const o=new tf({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new sm)}});t.subscribe(o)})}(i.game))?.state&&i.snoguessMainService.guessLetter(e)})()}revealHint(){this.snoguessMainService.revealHint()}calculateProgress(e){return Math.min(e/this.goals[this.goals.length-1].score*100,100)}calculateGoalPosition(e){return e/this.goals[this.goals.length-1].score*100}findCurrentGoal(e){if(!e||e{e>=r.score&&(i=r.name)}),i}startTimer(){this.elapsedTime=0,this.gameInProgress=!0;const e=Y_(0,1e3).pipe(mt(i=>this.elapsedTime=i),Q9(()=>this.gameInProgress));this.gameTimerSubscription=e.subscribe()}stopTimer(){this.gameInProgress=!1,this.gameTimerSubscription&&this.gameTimerSubscription.unsubscribe()}openScoreboard(){this.router.navigate(["/snoguess/scoreboard"])}saveScore(e){let i={score:e.score,numberOfRounds:e.round,difficulty:e.difficultyLevel,elapsed:e.endTimestamp-e.startTimestamp,date:Ai.now(),message:this.messageForLeaderboard};this.firebaseService.addScore(i).then(()=>{this.messageForLeaderboard="",this.openScoreboard()}).catch(r=>{this.messageForLeaderboard="",console.error("Error saving score: ",r),this.loadMenu()})}getLanguageName(e){return{en:"English",es:"Spanish",fr:"French",de:"German",da:"Danish",nl:"Dutch",et:"Estonian",fi:"Finnish",no:"Norwegian",sv:"Swedish"}[e]||e}setLanguage(e){this.terminologyService.setLang(e),this.terminologyService.setFhirUrlParam({en:{lang:"en",fhirUrl:"http://snomed.info/sct/900000000000207008/version/20240401"},es:{lang:"es",fhirUrl:"http://snomed.info/sct/449081005/version/20240331"},fr:{lang:"fr",fhirUrl:"http://snomed.info/sct/11000241103/version/20230331"},de:{lang:"de",fhirUrl:"http://snomed.info/sct/11000274103/version/20231115"},da:{lang:"da",fhirUrl:"http://snomed.info/sct/554471000005108/version/20240331"},nl:{lang:"nl",fhirUrl:"http://snomed.info/sct/11000146104/version/20240331"},et:{lang:"et",fhirUrl:"http://snomed.info/sct/11000181102/version/20231130"},fi:{lang:"fi",fhirUrl:"http://snomed.info/sct/11000229106/version/20231215"},no:{lang:"no",fhirUrl:"http://snomed.info/sct/51000202101/version/20231015"},sv:{lang:"sv",fhirUrl:"http://snomed.info/sct/45991000052106/version/20231130"}}[e].fhirUrl)}static#e=this.\u0275fac=function(i){return new(i||t)(w(sRe),w(aRe),w(so),w(lQ),w(fs))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(i,r){if(1&i&&vt(mRe,5),2&i){let o;Re(o=Pe())&&(r.keyboard=o.first)}},decls:6,vars:7,consts:[["keyboard",""],["class","snoguess-game",4,"ngIf"],[1,"text-center","mt-8","mb-4"],[1,"snoguess-game"],["class","assets-loading-container",4,"ngIf"],[4,"ngIf"],["class","flex flex-col items-center gap-4",4,"ngIf"],["class","overlay overlay-transparent",4,"ngIf"],[1,"assets-loading-container"],[1,"mt-48","mb-48"],[1,"progress-bar-message","text-center"],["mode","determinate",1,"game-progress-bar",3,"value"],[1,"flex","justify-center","mt-8","mb-8"],[1,"relative","w-1/4"],["src","assets/img/snoguess-logo.png","alt","Game Logo"],[1,"diff-label","absolute","-bottom-3","right-5","italic","text-gray-500"],[1,"hit-points"],[1,"score"],[4,"ngFor","ngForOf"],["class","term-display flex flex-row flex-wrap justify-center gap-8",4,"ngIf"],["class","loading-container",4,"ngIf"],[1,"guess-message"],[3,"letterGuessed"],[1,"game-buttons","mt-4"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","hints-container",4,"ngIf"],[1,"note"],[1,"score-progression-panel"],[1,"progress-bar-container"],["mode","determinate",3,"value"],[1,"term-display","flex","flex-row","flex-wrap","justify-center","gap-8"],["class","whitespace-nowrap",4,"ngFor","ngForOf"],[1,"whitespace-nowrap"],[1,"loading-container"],[1,"progress-bar-message"],["mode","indeterminate"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pt-1","pb-1","pl-6","pr-6","w-fit","text-center","cursor-pointer","font-bold","text-white",3,"click"],[1,"hints-container"],[1,"hints-callout","text-center"],["class","hint-item",3,"innerHTML",4,"ngFor","ngForOf"],[1,"hint-item",3,"innerHTML"],[1,"goal-indicator"],["class","star-icon left-star",3,"ngClass","left",4,"ngIf"],[1,"trophy-icon",3,"ngClass"],["class","star-icon right-star",3,"ngClass","left",4,"ngIf"],["class","goal-name",3,"left","ngClass",4,"ngIf"],[1,"star-icon","left-star",3,"ngClass"],[1,"star-icon","right-star",3,"ngClass"],[1,"goal-name",3,"ngClass"],[1,"flex","flex-col","items-center","gap-4"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/snoguess-logo.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,"text-center","font-light","text-lg"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","text-3xl",3,"click"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-12","text-3xl",3,"click"],[1,"text-center","font-light","italic","text-lg"],[1,"text-center","font-light","italic","text-sm"],["mat-button","",3,"click"],["src","assets/img/difficulty.png","alt","Game Logo",1,"w-1/4","mt-8"],["class","level-container w-full flex flex-col justify-center items-center",4,"ngFor","ngForOf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","mb-8","text-3xl",3,"click"],[1,"level-container","w-full","flex","flex-col","justify-center","items-center"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","text-3xl",3,"click"],[1,"level-details","text-center","mt-3","flex","flex-row","align-middle"],[1,"text-red-500","text-sm"],[1,"text-yellow-500","text-sm"],["src","assets/img/instructions.png","alt","Game Logo",1,"w-1/4","mt-8","mb-12"],[1,"text-left","instructions-text"],[1,"flex","flex-row","align-middle","gap-2"],[1,"text-blue-900"],[1,"text-red-500"],[1,"text-yellow-500"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"overlay","overlay-transparent"],["src","assets/img/correct.png","alt","Correct",1,"w-1/5","mt-8"],["src","assets/img/game-over.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-xl","text-pretty","text-center"],[1,"font-bold"],[1,"mt-12"],[1,"mt-4"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","text-2xl",3,"click"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],[3,"ngClass"],["src","assets/img/congratulations.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,""],[1,"large-icon","diamond","shadow-local"],[1,"text-lg"],[1,"reveal","won"],["class","flex flex-col items-center gap-4 w-full",4,"ngIf"],[1,"flex","flex-col","items-center","gap-4","w-full"],[1,"font-bold","text-lg","text-blue-900"],[1,"flex","flex-row","align-middle","justify-center","w-full"],["type","text","placeholder","Your message here",1,"w-1/3",3,"ngModelChange","ngModel"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pl-4","pr-4","pt-1","pb-1","w-fit","text-center","cursor-pointer","font-bold","text-white","ml-4",3,"click"],[1,"text-sm","text-gray-400"]],template:function(i,r){1&i&&(q(0,WRe,9,8,"div",1),wo(1,"async"),_(2,"div",2),k(3),wo(4,"date"),b(),xe(5,"app-add-to-home")),2&i&&(T("ngIf",oc(1,2,r.game)),y(3),Je(" Copyright \xa9 ",Au(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[Da,ro,jr,Eo,So,J7,ra,ps,Vs,dRe,fRe,PD,Ou,dQ],styles:[".snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a;min-height:85vh!important}.term-display[_ngcontent-%COMP%]{font-size:24px;letter-spacing:4px;word-break:break-all;margin-bottom:20px;text-align:center;font-family:monospace}.term-display[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0}.hit-points[_ngcontent-%COMP%]{font-weight:700;color:#d9534f;text-align:center;margin-bottom:2rem}mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}button[_ngcontent-%COMP%]{margin-right:8px}.guess-field[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1000}.overlay-dark[_ngcontent-%COMP%]{background-color:#00000080}.overlay-transparent[_ngcontent-%COMP%]{background-color:#0000}.message[_ngcontent-%COMP%]{font-size:4rem;text-align:center;margin-bottom:20px;font-weight:bolder}.reveal[_ngcontent-%COMP%]{font-size:2rem;text-align:center;margin-bottom:20px;font-weight:bolder}.won[_ngcontent-%COMP%]{color:#4caf50;text-shadow:black 2px 2px 2px}.lost[_ngcontent-%COMP%]{color:#f44336;text-shadow:rgb(0,0,0) 2px 2px 2px}.overlay[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1.5rem;padding:10px 20px}.loading-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:1rem}.progress-bar-message[_ngcontent-%COMP%]{color:#000;font-size:larger;margin-bottom:10px;font-style:italic;font-weight:lighter}.score[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700}.score-progression-panel[_ngcontent-%COMP%]{margin-top:2rem}.progress-bar-container[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:5rem;position:relative;background-color:#e0e0e0;border-radius:5px}.goal-indicator[_ngcontent-%COMP%]{position:absolute;bottom:0;width:2px;height:10px;background-color:#000}.goal-indicator.bronze[_ngcontent-%COMP%]{background-color:#cd7f32}.goal-indicator.silver[_ngcontent-%COMP%]{background-color:silver}.goal-indicator.gold[_ngcontent-%COMP%]{background-color:gold}.goal-indicator.platinum[_ngcontent-%COMP%]{background-color:#e5e4e2}.goal-indicator.diamond[_ngcontent-%COMP%]{background-color:#3b49c4}.trophy-icon[_ngcontent-%COMP%]{position:absolute;bottom:-35px;font-size:24px;width:24px;transition:transform .3s ease}.trophy-large[_ngcontent-%COMP%]{transform:scale(2.5) translate(-2px,3px)}.bronze[_ngcontent-%COMP%]{color:#cd7f32}.silver[_ngcontent-%COMP%]{color:silver}.gold[_ngcontent-%COMP%]{color:gold}.platinum[_ngcontent-%COMP%]{color:#e5e4e2}.diamond[_ngcontent-%COMP%]{color:#3b49c4}.shadow-local[_ngcontent-%COMP%]{text-shadow:black 2px 2px 2px}.star-icon[_ngcontent-%COMP%]{position:absolute;bottom:-40px;font-size:30px;width:30px;transition:transform .3s ease}.left-star[_ngcontent-%COMP%]{transform:translate(-50px)}.right-star[_ngcontent-%COMP%]{transform:translate(30px)}.goal-name[_ngcontent-%COMP%]{position:absolute;bottom:-75px;width:100px;margin-left:-50px;text-align:center;font-size:12px;font-weight:700;color:#000}.large-icon[_ngcontent-%COMP%]{font-size:5rem;width:5rem;height:5rem}.note[_ngcontent-%COMP%]{font-size:.8rem;font-weight:lighter;margin-top:1rem;text-align:center}.hints-container[_ngcontent-%COMP%]{margin-top:1rem}.hints-callout[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.5rem}.hint-item[_ngcontent-%COMP%]{color:#555;font-size:1em;list-style-type:none;position:relative;padding:5px 0 5px 30px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{margin-bottom:10px;color:#666;font-size:1.2rem}.guess-message[_ngcontent-%COMP%]{text-align:center;margin-top:1rem;font-size:1.2rem}.assests-loading-container[_ngcontent-%COMP%]{text-align:center;font-size:20px;color:#fff}.game-progress-bar[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden;background-color:#e0e0e0;box-shadow:0 4px 8px #0003}.game-progress-bar[_ngcontent-%COMP%] .mat-progress-bar-fill[_ngcontent-%COMP%]:after{background-color:#4caf50;border-radius:22px}.game-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.level-details[_ngcontent-%COMP%]{visibility:hidden}.level-container[_ngcontent-%COMP%]:hover .level-details[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[Yn("shake",[Xt("normal => shake",qt(200,Am([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Xt(":enter",[We({transform:"scale(0.8)",opacity:0}),qt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1.3)",opacity:1})),qt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1)",opacity:1}))])]),Yn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const QRe=()=>({});function KRe(t,n){if(1&t){const e=Se();_(0,"li")(1,"a",11),U("click",function(){const r=z(e).$implicit;return H(A().findingWithExplicitContextSelected(r))}),k(2),b()()}if(2&t){const e=n.$implicit;y(2),Ke(e.display)}}function XRe(t,n){1&t&&(_(0,"th",20),k(1," Type "),b())}function YRe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.type.display," ")}}function ZRe(t,n){1&t&&(_(0,"th",20),k(1," Target "),b())}function JRe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.target.code," ")}}function ePe(t,n){1&t&&(_(0,"th",20),k(1," Target "),b())}function tPe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.target.display," ")}}function nPe(t,n){1&t&&xe(0,"tr",22)}function iPe(t,n){1&t&&xe(0,"tr",23)}function rPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),b(),_(3,"table",12),zt(4,13),q(5,XRe,2,0,"th",14)(6,YRe,2,1,"td",15),Ht(),zt(7,16),q(8,ZRe,2,0,"th",14)(9,JRe,2,1,"td",15),Ht(),zt(10,17),q(11,ePe,2,0,"th",14)(12,tPe,2,1,"td",15),Ht(),q(13,nPe,1,0,"tr",18)(14,iPe,1,0,"tr",19),b()()),2&t){const e=A();y(2),Je("Relevant attributes (",e.selectedSituation.display,")"),y(),T("dataSource",e.dataSource),y(10),T("matHeaderRowDef",e.displayedColumns),y(),T("matRowDefColumns",e.displayedColumns)}}function oPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2,"Resource Type"),b(),_(3,"a",24)(4,"span"),k(5),b(),_(6,"mat-icon"),k(7,"open_in_new"),b()()()),2&t){const e=A();y(3),T("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",xy),y(2),Je("FHIR R4 ",e.resourceType,"")}}function sPe(t,n){if(1&t){const e=Se();_(0,"div",25)(1,"button",26),U("click",function(){z(e);const r=A();return H(r.saveOutput(r.fhirRepresentationString))}),xe(2,"mat-icon",27),b(),_(3,"button",28),U("click",function(){z(e);const r=A();return H(r.copyOutputToClipboard(r.fhirRepresentationString))}),xe(4,"mat-icon",29),b()()}}let aPe=(()=>{class t{constructor(e,i){this.terminologyService=e,this.clipboard=i,this.fhirRepresentationString="{}",this.situationsBinding={title:"Finding with explicit context",type:"Autocomplete",ecl:"<< 413350009 |Finding with explicit context (situation)|",value:"",note:"Select a finding with explicit context"},this.SituationConstants={KnownPresent:{code:"410515003",display:"Known present",selfAndDescendants:[]},KnownAbsent:{code:"410516002",display:"Known absent",selfAndDescendants:[]},SubjectOfRecord:{code:"410604004",display:"Subject of record",selfAndDescendants:[]},PersonInTheFamily:{code:"303071001",display:"Person in the family",selfAndDescendants:[]},InThePast:{code:"410513005",display:"In the past",selfAndDescendants:[]},CurrentOrSpecifiedTime:{code:"410512000",display:"Current or specified time",selfAndDescendants:[]},KnownPossible:{code:"410590009",display:"Known possible",selfAndDescendants:[]}},this.examples=[{code:"160377001",display:"Family history of asthma"},{code:"12147341000119108",display:"History of burn"},{code:"428942009",display:"History of fall"},{code:"300890009",display:"Swelling absent"},{code:"162057007",display:"Nausea present"},{code:"401204006",display:"Suspected autism"}],this.displayedColumns=["type","targetCode","targetDisplay"],this.dataSource=[]}ngOnInit(){this.loadOrUpdateConstants()}loadOrUpdateConstants(){var e=this;return me(function*(){let i=localStorage.getItem("SituationConstants");i?(e.SituationConstants=JSON.parse(i),console.log("Loaded constants from cache.")):(yield e.updateConstantDescendants(),localStorage.setItem("SituationConstants",JSON.stringify(e.SituationConstants)),console.log("Updated constants and cached them."))})()}updateConstantDescendants(){var e=this;return me(function*(){for(const i in e.SituationConstants)if(Object.prototype.hasOwnProperty.call(e.SituationConstants,i)){const r=e.SituationConstants[i];let o=yield Co(e.terminologyService.expandValueSet("<< "+r.code,"",0,1e3));r.selfAndDescendants=o.expansion.contains.map(s=>s.code)}})()}convertSituationToFhir(e){var i=this;return me(function*(){i.selectedSituation=e,i.fhirRepresentation=null,i.fhirRepresentationString="Loading...",i.dataSource=[],i.resourceType=void 0;let a,c,l,d,r=yield Co(i.terminologyService.lookupConcept(e.code)),o=i.terminologyService.getNormalForm(r);if(i.terminologyService.parseNormmalForm(o).groups.forEach(u=>{const h=u.find(p=>"408732007"===p.type.code);h&&(i.dataSource=[...i.dataSource,h],c=h.target);const f=u.find(p=>"408729009"===p.type.code);f&&(i.dataSource=[...i.dataSource,f],a=f.target);const m=u.find(p=>"408731000"===p.type.code);m&&(i.dataSource=[...i.dataSource,m],l=m.target);const g=u.find(p=>"246090004"===p.type.code);g&&(i.dataSource=[...i.dataSource,g],d=g.target)}),d){const u=i.SituationConstants.KnownPresent.selfAndDescendants.includes(a?.code),h=i.SituationConstants.SubjectOfRecord.selfAndDescendants.includes(c?.code),f=i.SituationConstants.InThePast.selfAndDescendants.includes(l?.code),m=i.SituationConstants.KnownAbsent.selfAndDescendants.includes(a?.code),g=i.SituationConstants.KnownPossible.selfAndDescendants.includes(a?.code),p=i.SituationConstants.CurrentOrSpecifiedTime.selfAndDescendants.includes(l?.code),v=i.SituationConstants.PersonInTheFamily.selfAndDescendants.includes(c?.code);u&&h&&f?i.updateFhirRepresentation(i.createFhirCondition(d,"inactive")):u&&h&&p?i.updateFhirRepresentation(i.createFhirCondition(d,"active")):g&&h&&p?i.updateFhirRepresentation(i.createFhirCondition(d,"unconfirmed")):u&&v?i.updateFhirRepresentation(i.createFamilyMemberHistoryForFinding(d,c)):m&&h&&p?i.updateFhirRepresentation(i.createFhirObservationForAbsentFinding(d)):i.fhirRepresentationString="No FHIR representation for this situation"}else i.fhirRepresentationString="No FHIR representation for this situation"})()}updateFhirRepresentation(e){this.fhirRepresentation=e,this.fhirRepresentationString=JSON.stringify(e,null,2)}findingWithExplicitContextSelected(e){e&&e.code&&this.convertSituationToFhir(e)}createFhirCondition(e,i){return this.resourceType="Condition",{resourceType:"Condition",subject:{reference:"Patient/1234"},clinicalStatus:{coding:[{system:"http://terminology.hl7.org/CodeSystem/condition-clinical",code:i}]},code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}}createFhirObservationForAbsentFinding(e){return this.resourceType="Observation",{resourceType:"Observation",subject:{reference:"Patient/1234"},status:"registered",code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]},valueCodeableConcept:{coding:[{system:"http://snomed.info/sct",code:"410516002",display:"Known absent"}]}}}createFamilyMemberHistoryForFinding(e,i){return this.resourceType="FamilyMemberHistory",{resourceType:"FamilyMemberHistory",status:"completed",patient:{reference:"Patient/1234"},relationship:{coding:[{system:"http://snomed.info/sct",code:i.code,display:i.display}]},condition:[{code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}]}}saveOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,_c.saveAs)(i,`${this.selectedSituation.display}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(so),w(eA))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-situation-map"]],decls:17,vars:9,consts:[[1,"p-8"],[1,"flex","flex-wrap","gap-4"],[1,"w-1/3"],[1,"w-auto",3,"selectionChange","binding"],[1,"mt-8"],[4,"ngFor","ngForOf"],["class","mt-8",4,"ngIf"],[1,"flex-grow"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["href","javascript:void(0);",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","targetCode"],["matColumnDef","targetDisplay"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["target","_blank",1,"flex","flex-row","align-middle","gap-2",3,"href"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"h2"),k(2,"Consistent Context Representation for Situations with Explicit Context"),b(),_(3,"div",1)(4,"div",2)(5,"app-autocomplete-binding",3),U("selectionChange",function(s){return r.findingWithExplicitContextSelected(s)}),b(),_(6,"h3",4),k(7,"Examples"),b(),_(8,"ul"),q(9,KRe,3,1,"li",5),b(),q(10,rPe,15,4,"div",6)(11,oPe,8,2,"div",6),b(),_(12,"div",7)(13,"div",8),q(14,sPe,5,0,"div",9),_(15,"textarea",10),k(16," "),b()()()()()),2&i&&(y(5),T("binding",r.situationsBinding),y(4),T("ngForOf",r.examples),y(),T("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),y(),T("ngIf",r.resourceType),y(3),T("ngIf",r.fhirRepresentationString.length>15),y(),T("options",us(8,QRe))("lang","json")("innerHTML",r.fhirRepresentationString,yu))},dependencies:[ro,jr,d1,ia,So,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,u0],styles:[".output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem;min-height:45rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}"]})}return t})(),cPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"app-situation-map")},dependencies:[aPe]})}return t})();var lPe=mo(867),dPe=mo.n(lPe);let uPe=(()=>{class t{constructor(){this.filter=new(dPe())}transform(e){return e&&this.filter.clean(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=po({name:"safeText",type:t,pure:!0})}return t})();function hPe(t,n){1&t&&xe(0,"mat-spinner",8)}function fPe(t,n){1&t&&(_(0,"th",21),k(1," Position "),b())}function mPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.index;y(),Je(" ",e+1," ")}}function pPe(t,n){1&t&&(_(0,"th",21),k(1," Message "),b())}function gPe(t,n){if(1&t&&(_(0,"span"),k(1),wo(2,"safeText"),b()),2&t){const e=A().$implicit;y(),Ke(oc(2,1,e.message))}}function _Pe(t,n){1&t&&(_(0,"span",24)(1,"i"),k(2,"No information available (qualifier value)"),b()())}function bPe(t,n){if(1&t&&(_(0,"td",22),q(1,gPe,3,3,"span",6)(2,_Pe,3,0,"span",23),b()),2&t){const e=n.$implicit;y(),T("ngIf",e.message),y(),T("ngIf",!e.message)}}function vPe(t,n){1&t&&(_(0,"th",21),k(1," Score "),b())}function yPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.score," ")}}function xPe(t,n){1&t&&(_(0,"th",21),k(1," Rounds "),b())}function wPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.numberOfRounds," ")}}function kPe(t,n){1&t&&(_(0,"th",21),k(1," Difficulty "),b())}function CPe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;y(),Je(" ",e.difficulty," ")}}function TPe(t,n){1&t&&(_(0,"th",21),k(1," Time Played "),b())}function EPe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"elapsedTime"),b()),2&t){const e=n.$implicit;y(),Je(" ",oc(2,1,e.elapsed)," ")}}function SPe(t,n){1&t&&(_(0,"th",21),k(1," Date "),b())}function DPe(t,n){if(1&t&&(_(0,"td",22),k(1),wo(2,"date"),b()),2&t){const e=n.$implicit;y(),Je(" ",Au(2,1,e.date,"short")," ")}}function IPe(t,n){1&t&&xe(0,"tr",25)}function APe(t,n){1&t&&xe(0,"tr",26)}function MPe(t,n){if(1&t&&(_(0,"div")(1,"table",9),zt(2,10),q(3,fPe,2,0,"th",11)(4,mPe,2,1,"td",12),Ht(),zt(5,13),q(6,pPe,2,0,"th",11)(7,bPe,3,2,"td",12),Ht(),zt(8,14),q(9,vPe,2,0,"th",11)(10,yPe,2,1,"td",12),Ht(),zt(11,15),q(12,xPe,2,0,"th",11)(13,wPe,2,1,"td",12),Ht(),zt(14,16),q(15,kPe,2,0,"th",11)(16,CPe,2,1,"td",12),Ht(),zt(17,17),q(18,TPe,2,0,"th",11)(19,EPe,3,3,"td",12),Ht(),zt(20,18),q(21,SPe,2,0,"th",11)(22,DPe,3,4,"td",12),Ht(),q(23,IPe,1,0,"tr",19)(24,APe,1,0,"tr",20),b()()),2&t){const e=A();y(),T("dataSource",e.dataSource),y(22),T("matHeaderRowDef",e.displayedColumns),y(),T("matRowDefColumns",e.displayedColumns)}}let RPe=(()=>{class t{constructor(e,i){this.firebaseService=e,this.router=i,this.displayedColumns=["position","message","difficulty","score","numberOfRounds","secondsPlayed","date"],this.dataSource=[],this.loadingScores=!1}ngOnInit(){this.loadScores()}loadScores(){this.loadingScores=!0,this.firebaseService.getScores().then(e=>{this.dataSource=e.map(i=>({...i,date:i.date?i.date.toDate():new Date})),this.loadingScores=!1})}backToGame(){this.router.navigate(["/snoguess"])}static#e=this.\u0275fac=function(i){return new(i||t)(w(lQ),w(fs))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-scoreboard"]],decls:12,vars:4,consts:[[1,"flex","flex-col","items-center","gap-4","pt-6","snoguess-game"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/scoreboard.png","alt","High Scores",1,"w-1/4","mt-8"],[1,"mb-8","flex","flex-row","align-middle","gap-1"],[1,"diamond"],["diameter","50",4,"ngIf"],[4,"ngIf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],["diameter","50"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","message"],["matColumnDef","score"],["matColumnDef","numberOfRounds"],["matColumnDef","difficulty"],["matColumnDef","secondsPlayed"],["matColumnDef","date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","text-gray-400",4,"ngIf"],[1,"text-gray-400"],["mat-header-row",""],["mat-row",""]],template:function(i,r){1&i&&(_(0,"div",0),xe(1,"img",1)(2,"img",2),_(3,"div",3)(4,"span"),k(5,"Messages posted by playes who reached the Diamond trophy"),b(),_(6,"mat-icon",4),k(7,"emoji_events"),b()(),q(8,hPe,1,0,"mat-spinner",5)(9,MPe,25,3,"div",6),_(10,"div",7),U("click",function(){return r.backToGame()}),k(11," Back to game "),b()()),2&i&&(y(2),T("@popIn",void 0),y(6),T("ngIf",r.loadingScores),y(),T("ngIf",!r.loadingScores),y(),T("@scrollUp",void 0))},dependencies:[jr,So,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ou,dQ,uPe],styles:[".diamond[_ngcontent-%COMP%]{color:#3b49c4}.snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[Yn("shake",[Xt("normal => shake",qt(200,Am([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Xt(":enter",[We({transform:"scale(0.8)",opacity:0}),qt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1.3)",opacity:1})),qt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",We({transform:"scale(1)",opacity:1}))])]),Yn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const PPe=()=>[1,2,3,4,5];function FPe(t,n){1&t&&xe(0,"mat-radio-button",6),2&t&&T("value",n.$implicit)}let OPe=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-maturity-question"]],inputs:{metric:"metric"},decls:10,vars:6,consts:[[1,"question-container"],[1,"question-label"],["aria-labelledby","question-label",1,"radio-group",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"labels"],[1,"end-label"],[3,"value"]],template:function(i,r){1&i&&(_(0,"div",0)(1,"label",1),k(2),b(),_(3,"mat-radio-group",2),Hr("ngModelChange",function(s){return io(r.metric.response,s)||(r.metric.response=s),s}),q(4,FPe,1,1,"mat-radio-button",3),b(),_(5,"div",4)(6,"span"),k(7),b(),_(8,"span",5),k(9),b()()()),2&i&&(y(2),Ke(r.metric.question),y(),zr("ngModel",r.metric.response),y(),T("ngForOf",us(5,PPe)),y(3),Ke(r.metric.label1),y(2),Ke(r.metric.label5))},dependencies:[ro,ps,Vs,_A,b1],styles:[".question-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.question-label[_ngcontent-%COMP%]{margin-bottom:8px}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:8px}.labels[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.end-label[_ngcontent-%COMP%]{margin-left:auto}"]})}return t})();function NPe(t,n){if(1&t&&(_(0,"div",6),xe(1,"app-maturity-question",7),b()),2&t){const e=n.$implicit;y(),T("metric",e)}}function LPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),b(),q(3,NPe,2,1,"div",5),b()),2&t){const e=n.$implicit;y(2),Ke(e.component),y(),T("ngForOf",e.metrics)}}function VPe(t,n){if(1&t&&(_(0,"div",2)(1,"h2"),k(2),b(),q(3,LPe,4,2,"div",3),b()),2&t){const e=n.$implicit;y(2),Ke(e.goal),y(),T("ngForOf",e.components)}}const BPe=[{path:"",component:t7},{path:"allergies",component:t7},{path:"sandbox",component:aCe},{path:"prescription",component:cCe},{path:"questionnaires",component:fEe},{path:"implementation-course/subset-validator",component:BEe},{path:"snoguess",component:qRe},{path:"snoguess/scoreboard",component:RPe},{path:"context",component:cPe},{path:"maturity",component:(()=>{class t{constructor(){this.maturityQuestions=[{goal:"Adoption",components:[{component:"Roadmap",metrics:[{metric:"Explicit plan",question:"Have you documented a plan for your implementation activities for the next 5 years?",label1:"No, a plan is not documented",label5:"Yes, a detailed plan is documented",response:0},{metric:"Resources",question:"Have you established a team with the required skills and competencies to implement the plan?",label1:"No, a team is not established",label5:"Yes, a team is fully established and sufficient for the implementation",response:0},{metric:"Training",question:"Have you designed a training a trainign strategy for team members, users, vendors, decision makers, etc.?",label1:"No, a training strategy is not designed",label5:"Yes, a detailed training strategy is designed",response:0},{metric:"Sustainability",question:"Have you identified the resources needed to sustain the implementation of the plan?",label1:"No, resources are not identified",label5:"Yes, resources are identified and secured",response:0},{metric:"National Terminology Server",question:"Do you have a defined clinical terminology servers strategy?",label1:"No, a strategy is not defined, a technology has not been selected",label5:"Yes, a strategy is defined, the server is operational and in use",response:0}]},{component:"Usage",metrics:[{metric:"Facilities",question:"What percentage of all the clinics or hospitals in your country are using SNOMED CT in production?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Systems",question:"What percentage of all the EHR or other clinical systems in your country are using SNOMED CT in production?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Population",question:"What percentage of the population in your country is covered by EHR systems using SNOMED CT?",label1:"0 to 20%",label5:"81 to 100%",response:0},{metric:"Content scope",question:"From the following list of basic SNOMED hierarchies, how many are used in the EHR systems in your country?
1. Clinical finding
2. Procedure
3. Body structure
4. Substance
5. Pharmaceutical products",label1:"1 hierarchy",label5:"All 5 hierarchies",response:0},{metric:"Clinical care levels",question:"From the following list of clinical care levels, how many are covered by the EHR systems in your country?
1. Primary care
2. Secondary care
3. Tertiary care
4. Long-term care
5. Home care",label1:"1 care level",label5:"All 5 care levels",response:0}]}]},{goal:"Customization",components:[{component:"Local extensions",metrics:[{metric:"Maps",question:"Do you have the maps that are required to meet your strategy goals?",label1:"No, maps are not available",label5:"Yes, all necessary maps are available and in use",response:0},{metric:"Subsets",question:"Do you have the subsets that are required to meet your strategy goals?",label1:"No, subsets are not available",label5:"Yes, all necessary subsets are available and in use",response:0},{metric:"Clinical concepts",question:"Do you have the clinical concepts that are required to meet your strategy goals?",label1:"No, clinical concepts are not available",label5:"Yes, There are no outstanding content requirements. They may have been met by the International Edition or already developed in the national Edition",response:0},{metric:"Language",question:"Are the local terms that are required to support your goals available in your edition? This may include additional synonyms or patient friendly terms.",label1:"No, local terms are not available",label5:"Yes, all necessary local terms are available and in use",response:0},{metric:"Translation",question:"Do you have the translations that are required to meet your strategy goals?",label1:"No, translations are not available",label5:"Yes, all necessary translations are available and in use",response:0}]}]}]}ngOnInit(){}onNext(){console.log(this.maturityQuestions)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-maturity-main"]],decls:2,vars:1,consts:[[1,"main"],["class","goal-section",4,"ngFor","ngForOf"],[1,"goal-section"],["class","component-section",4,"ngFor","ngForOf"],[1,"component-section"],["class","metric-section",4,"ngFor","ngForOf"],[1,"metric-section"],[3,"metric"]],template:function(i,r){1&i&&(_(0,"div",0),q(1,VPe,4,2,"div",1),b()),2&i&&(y(),T("ngForOf",r.maturityQuestions))},dependencies:[ro,OPe],styles:[".main[_ngcontent-%COMP%]{height:50%;max-height:50%}.goal-section[_ngcontent-%COMP%]{padding:10px}.component-section[_ngcontent-%COMP%]{margin-left:20px;margin-bottom:24px}.metric-section[_ngcontent-%COMP%]{margin-left:40px;margin-bottom:16px}"]})}return t})()},{path:"**",redirectTo:""}];let UPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[EU.forRoot(BPe,{useHash:!0}),EU]})}return t})();const zPe=[{title:"GROUP 1",description:"The first group of bindings in the coding demonstration",bindings:[{title:"Medicinal product + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, contain at least provided ingredientes (open world assuption), no information on form."},{title:"Gender",type:"dropdown",ecl:"< 365873007 |Gender finding (finding)|",value:"",note:"Patient gender."},{title:"Medicinal product form + groupers",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n [0..0] 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details."}]},{title:"GROUP 2",description:"The second group of bindings in the coding demonstration",bindings:[{title:"Medicinal product only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n [0..0] 411116001 |Has manufactured dose form| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, containing only the provided ingredientes (close world assuption), with no information on form."},{title:"Medicinal product form only",type:"autocomplete",ecl:"<< 763158003 |Medicinal product| :\n 1142139005 |Count of base of active ingredient| = *,\n 411116001 |Has manufactured dose form| = *,\n [0..0] 732943007 |Has basis of strength substance (attribute)| = *,\n [0..0] 774158006 |Has product name| = *",value:"",note:"Medicinal products, with form details, containing only the provided ingredientes (close world assuption)."}]}];let HPe=(()=>{class t{constructor(){}getCodingSpec(){return zPe}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zt,Ib={version:"0.19.3"},Pr=1200,Sh=1252,jPe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],$P={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},qk=function(t){-1!=jPe.indexOf(t)&&(Sh=$P[0]=t)},ca=function(t){Pr=t,qk(t)};var Ab=function(n){return String.fromCharCode(n)},GP=function(n){return String.fromCharCode(n)},ir=null,la="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Xk(t){for(var n="",e=0,i=0,r=0,o=0,s=0,a=0,c=0,l=0;l>2,s=(3&e)<<4|(i=t.charCodeAt(l++))>>4,a=(15&i)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(i)?a=c=64:isNaN(r)&&(c=64),n+=la.charAt(o)+la.charAt(s)+la.charAt(a)+la.charAt(c);return n}function $s(t){var n="",o=0,s=0,a=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(a=la.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((15&s)<<4|a>>2)),64!==(c=la.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((3&a)<<6|c));return n}var on=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ec=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(n,e){return e?new Buffer(n,e):new Buffer(n)}:Buffer.from.bind(Buffer)}return function(){}}(),Mb=function(){if(typeof Buffer>"u")return!1;var t=Ec([65,0]);return!!t&&1==t.toString("utf16le").length}();function Qd(t){return on?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function gQ(t){return on?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var es=function(n){return on?Ec(n,"binary"):n.split("").map(function(e){return 255&e.charCodeAt(0)})};function Rb(t){if(typeof ArrayBuffer>"u")return es(t);for(var n=new ArrayBuffer(t.length),e=new Uint8Array(n),i=0;i!=t.length;++i)e[i]=255&t.charCodeAt(i);return n}function Sc(t){if(Array.isArray(t))return t.map(function(i){return String.fromCharCode(i)}).join("");for(var n=[],e=0;e=0;)n+=t.charAt(e--);return n}function Va(t,n){var e=""+t;return e.length>=n?e:Rn("0",n-e.length)+e}function qP(t,n){var e=""+t;return e.length>=n?e:Rn(" ",n-e.length)+e}function Yk(t,n){var e=""+t;return e.length>=n?e:e+Rn(" ",n-e.length)}var _Q=Math.pow(2,32);function Up(t,n){return t>_Q||t<-_Q?function XPe(t,n){var e=""+Math.round(t);return e.length>=n?e:Rn("0",n-e.length)+e}(t,n):function YPe(t,n){var e=""+t;return e.length>=n?e:Rn("0",n-e.length)+e}(Math.round(t),n)}function Zk(t,n){return t.length>=7+(n=n||0)&&103==(32|t.charCodeAt(n))&&101==(32|t.charCodeAt(n+1))&&110==(32|t.charCodeAt(n+2))&&101==(32|t.charCodeAt(n+3))&&114==(32|t.charCodeAt(n+4))&&97==(32|t.charCodeAt(n+5))&&108==(32|t.charCodeAt(n+6))}var bQ=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],QP=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Et={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},vQ={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},JPe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Jk(t,n,e){for(var i=t<0?-1:1,r=t*i,o=0,s=1,a=0,c=1,l=0,d=0,u=Math.floor(r);ln&&(l>n?(d=c,a=o):(d=l,a=s)),!e)return[0,i*a,d];var h=Math.floor(i*a/d);return[h,i*a-h*d,d]}function Kd(t,n,e){if(t>2958465||t<0)return null;var i=0|t,r=Math.floor(86400*(t-i)),o=0,s=[],a={D:i,T:r,u:86400*(t-i)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),n&&n.date1904&&(i+=1462),a.u>.9999&&(a.u=0,86400==++r&&(a.T=r=0,++i,++a.D)),60===i)s=e?[1317,10,29]:[1900,2,29],o=3;else if(0===i)s=e?[1317,8,29]:[1900,1,0],o=6;else{i>60&&--i;var c=new Date(1900,0,1);c.setDate(c.getDate()+i-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),i<60&&(o=(o+6)%7),e&&(o=function oFe(t,n){n[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,s))}return a.y=s[0],a.m=s[1],a.d=s[2],a.S=r%60,r=Math.floor(r/60),a.M=r%60,r=Math.floor(r/60),a.H=r,a.q=o,a}var yQ=new Date(1899,11,31,0,0,0),eFe=yQ.getTime(),tFe=new Date(1900,2,1,0,0,0);function xQ(t,n){var e=t.getTime();return n?e-=1262304e5:t>=tFe&&(e+=864e5),(e-(eFe+6e4*(t.getTimezoneOffset()-yQ.getTimezoneOffset())))/864e5}function KP(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Dh(t,n){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function Fb(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function iFe(t){var n=t<0?12:11,e=KP(t.toFixed(12));return e.length<=n||(e=t.toPrecision(10)).length<=n?e:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function rFe(t){var n=KP(t.toFixed(11));return n.length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n}(t),KP(function nFe(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return vs(14,xQ(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function sFe(t,n,e,i){var c,r="",o=0,s=0,a=e.y,l=0;switch(t){case 98:a=e.y+543;case 121:switch(n.length){case 1:case 2:c=a%100,l=2;break;default:c=a%1e4,l=4}break;case 109:switch(n.length){case 1:case 2:c=e.m,l=n.length;break;case 3:return QP[e.m-1][1];case 5:return QP[e.m-1][0];default:return QP[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:c=e.d,l=n.length;break;case 3:return bQ[e.q][0];default:return bQ[e.q][1]}break;case 104:switch(n.length){case 1:case 2:c=1+(e.H+11)%12,l=n.length;break;default:throw"bad hour format: "+n}break;case 72:switch(n.length){case 1:case 2:c=e.H,l=n.length;break;default:throw"bad hour format: "+n}break;case 77:switch(n.length){case 1:case 2:c=e.M,l=n.length;break;default:throw"bad minute format: "+n}break;case 115:if("s"!=n&&"ss"!=n&&".0"!=n&&".00"!=n&&".000"!=n)throw"bad second format: "+n;return 0!==e.u||"s"!=n&&"ss"!=n?(s=i>=2?3===i?1e3:100:1===i?10:1,(o=Math.round(s*(e.S+e.u)))>=60*s&&(o=0),"s"===n?0===o?"0":""+o/s:(r=Va(o,2+i),"ss"===n?r.substr(0,2):"."+r.substr(2,n.length-1))):Va(e.S,n.length);case 90:switch(n){case"[h]":case"[hh]":c=24*e.D+e.H;break;case"[m]":case"[mm]":c=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":c=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+n}l=3===n.length?1:2;break;case 101:c=a,l=1}return l>0?Va(c,l):""}function El(t){if(t.length<=3)return t;for(var e=t.length%3,i=t.substr(0,e);e!=t.length;e+=3)i+=(i.length>0?",":"")+t.substr(e,3);return i}var wQ=/%/g;function kQ(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+kQ(t,-n);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(n/Math.pow(10,o)).toPrecision(i+1+(r+o)%r)).indexOf("e")){var s=Math.floor(Math.log(n)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,r)+"."+e.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var CQ=/# (\?+)( ?)\/( ?)(\d+)/,TQ=/^#*0*\.([0#]+)/,EQ=/\).*[0#]/,SQ=/\(###\) ###\\?-####/;function ts(t){for(var e,n="",i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function DQ(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function IQ(t,n){var e=t-Math.floor(t),i=Math.pow(10,n);return n<(""+Math.round(e*i)).length?0:Math.round(e*i)}function da(t,n,e){if(40===t.charCodeAt(0)&&!n.match(EQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?da("n",i,e):"("+da("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function cFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return Sl(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}(t,n,e);if(-1!==n.indexOf("%"))return function aFe(t,n,e){var i=n.replace(wQ,""),r=n.length-i.length;return Sl(t,i,e*Math.pow(10,2*r))+Rn("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return kQ(n,e);if(36===n.charCodeAt(0))return"$"+da(t,n.substr(" "==n.charAt(1)?2:1),e);var r,o,s,a,c=Math.abs(e),l=e<0?"-":"";if(n.match(/^00+$/))return l+Up(c,n.length);if(n.match(/^[#?]+$/))return"0"===(r=Up(e,0))&&(r=""),r.length>n.length?r:ts(n.substr(0,n.length-r.length))+r;if(o=n.match(CQ))return function lFe(t,n,e){var i=parseInt(t[4],10),r=Math.round(n*i),o=Math.floor(r/i),s=r-o*i,a=i;return e+(0===o?"":""+o)+" "+(0===s?Rn(" ",t[1].length+1+t[4].length):qP(s,t[1].length)+t[2]+"/"+t[3]+Va(a,t[4].length))}(o,c,l);if(n.match(/^#+0+$/))return l+Up(c,n.length-n.indexOf("0"));if(o=n.match(TQ))return r=DQ(e,o[1].length).replace(/^([^\.]+)$/,"$1."+ts(o[1])).replace(/\.$/,"."+ts(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+Rn("0",ts(o[1]).length-g.length)}),-1!==n.indexOf("0.")?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return l+DQ(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return l+El(Up(c,0));if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+da(t,n,-e):El(""+(Math.floor(e)+function uFe(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(e,o[1].length)))+"."+Va(IQ(e,o[1].length),o[1].length);if(o=n.match(/^#,#*,#0/))return da(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Bp(da(t,n.replace(/[\\-]/g,""),e)),s=0,Bp(Bp(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return s-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Va(0,3-m.length):"")+m})+"."+Va(s,o[1].length);switch(n){case"###,##0.00":return da(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=El(Up(c,0));return"0"!==f?l+f:"";case"###,###.00":return da(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return da(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function AQ(t,n){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+AQ(t,-n);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(n)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(n/Math.pow(10,o)).toPrecision(i+1+(r+o)%r)).match(/[Ee]/)){var s=Math.floor(Math.log(n)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=n.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Dc(t,n,e){if(40===t.charCodeAt(0)&&!n.match(EQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Dc("n",i,e):"("+Dc("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function fFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return Sl(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}(t,n,e);if(-1!==n.indexOf("%"))return function mFe(t,n,e){var i=n.replace(wQ,""),r=n.length-i.length;return Sl(t,i,e*Math.pow(10,2*r))+Rn("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return AQ(n,e);if(36===n.charCodeAt(0))return"$"+Dc(t,n.substr(" "==n.charAt(1)?2:1),e);var r,o,s,a,c=Math.abs(e),l=e<0?"-":"";if(n.match(/^00+$/))return l+Va(c,n.length);if(n.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>n.length?r:ts(n.substr(0,n.length-r.length))+r;if(o=n.match(CQ))return function dFe(t,n,e){return e+(0===n?"":""+n)+Rn(" ",t[1].length+2+t[4].length)}(o,c,l);if(n.match(/^#+0+$/))return l+Va(c,n.length-n.indexOf("0"));if(o=n.match(TQ))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+ts(o[1])).replace(/\.$/,"."+ts(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+Rn("0",ts(o[1]).length-g.length)}),-1!==n.indexOf("0.")?r:r.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),o=n.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=n.match(/^#{1,3},##0(\.?)$/))return l+El(""+c);if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Dc(t,n,-e):El(""+e)+"."+Rn("0",o[1].length);if(o=n.match(/^#,#*,#0/))return Dc(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Bp(Dc(t,n.replace(/[\\-]/g,""),e)),s=0,Bp(Bp(n.replace(/\\/g,"")).replace(/[0#]/g,function(m){return s-1||"\\"==e&&"-"==t.charAt(n+1)&&"0#".indexOf(t.charAt(n+2))>-1););break;case"?":for(;t.charAt(++n)===e;);break;case"*":++n,(" "==t.charAt(n)||"*"==t.charAt(n))&&++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n-1;);break;default:++n}return!1}var RQ=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function PQ(t,n){if(null==n)return!1;var e=parseFloat(n[2]);switch(n[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function vs(t,n,e){null==e&&(e={});var i="";switch(typeof t){case"string":i="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(i=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:Et)[t])&&(i=e.table&&e.table[vQ[t]]||Et[vQ[t]]),null==i&&(i=JPe[t]||"General")}if(Zk(i,0))return Dh(n,e);n instanceof Date&&(n=xQ(n,e.date1904));var r=function _Fe(t,n){var e=function pFe(t){for(var n=[],e=!1,i=0,r=0;i-1&&--i,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof n)return[4,4===e.length||r>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=r>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=r>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=r>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=n>0?e[0]:n<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[i,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var s=e[0].match(RQ),a=e[1].match(RQ);return PQ(n,s)?[i,e[0]]:PQ(n,a)?[i,e[1]]:[i,e[null!=s&&null!=a?2:1]]}return[i,o]}(i,n);if(Zk(r[1]))return Dh(n,e);if(!0===n)n="TRUE";else if(!1===n)n="FALSE";else if(""===n||null==n)return"";return function gFe(t,n,e,i){for(var l,d,u,r=[],o="",s=0,a="",c="t",h="H";s=12?t.charAt(s+2):a),g.t="T",h="h",s+=3):"AM/PM"===t.substr(s,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",s+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(s,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",s+=5,h="h"):(g.t="t",++s),null==l&&"T"===g.t)return"";r[r.length]=g,c=a;break;case"[":for(o=a;"]"!==t.charAt(s++)&&s-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Xd(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=a;++s-1;)o+=a;r[r.length]={t:"n",v:o};break;case"?":for(o=a;t.charAt(++s)===a;)o+=a;r[r.length]={t:a,v:o},c=a;break;case"*":++s,(" "==t.charAt(s)||"*"==t.charAt(s))&&++s;break;case"(":case")":r[r.length]={t:1===i?"t":a,v:a},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=a;s-1;)o+=t.charAt(s);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:a,v:a},++s;break;case"$":r[r.length]={t:"t",v:"$"},++s;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(a))throw new Error("unrecognized character "+a+" in "+t);r[r.length]={t:"t",v:a},++s}var x,p=0,v=0;for(s=r.length-1,c="t";s>=0;--s)switch(r[s].t){case"h":case"H":r[s].t=h,c="h",p<1&&(p=1);break;case"s":(x=r[s].v.match(/\.0+$/))&&(v=Math.max(v,x[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[s].t;break;case"m":"s"===c&&(r[s].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[s].v.match(/[Hh]/)&&(p=1),p<2&&r[s].v.match(/[Mm]/)&&(p=2),p<3&&r[s].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var D,C="";for(s=0;s0){40==C.charCodeAt(0)?(M=n<0&&45===C.charCodeAt(0)?-n:n,E=Sl("n",C,M)):(E=Sl("n",C,M=n<0&&i>1?-n:n),M<0&&r[0]&&"t"==r[0].t&&(E=E.substr(1),r[0].v="-"+r[0].v)),D=E.length-1;var V=r.length;for(s=0;s-1){V=s;break}var B=r.length;if(V===r.length&&-1===E.indexOf("E")){for(s=r.length-1;s>=0;--s)null==r[s]||-1==="n?".indexOf(r[s].t)||(D>=r[s].v.length-1?r[s].v=E.substr(1+(D-=r[s].v.length),r[s].v.length):D<0?r[s].v="":(r[s].v=E.substr(0,D+1),D=-1),r[s].t="t",B=s);D>=0&&B=0;--s)if(null!=r[s]&&-1!=="n?".indexOf(r[s].t)){for(d=r[s].v.indexOf(".")>-1&&s===V?r[s].v.indexOf(".")-1:r[s].v.length-1,j=r[s].v.substr(d+1);d>=0;--d)D>=0&&("0"===r[s].v.charAt(d)||"#"===r[s].v.charAt(d))&&(j=E.charAt(D--)+j);r[s].v=j,r[s].t="t",B=s}for(D>=0&&B-1&&s===V?r[s].v.indexOf(".")+1:0,j=r[s].v.substr(0,d);d-1&&(r[s].v=Sl(r[s].t,r[s].v,M=i>1&&n<0&&s>0&&"-"===r[s-1].v?-n:n),r[s].t="t");var X="";for(s=0;s!==r.length;++s)null!=r[s]&&(X+=r[s].v);return X}(r[1],n,e,r[0])}function XP(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=Et[e]){if(Et[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return Et[n]=t,n}function Ob(t){for(var n=0;392!=n;++n)void 0!==t[n]&&XP(t[n],n)}function zp(){Et=function ZPe(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var OQ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,xFe={"d.m":"d\\.m"};function Yd(t,n){return XP(xFe[t]||t,n)}var Dl,NQ=function(){var t={version:"1.2.0"},e=function n(){for(var E=0,V=new Array(256),B=0;256!=B;++B)V[B]=E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=B)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1;return typeof Int32Array<"u"?new Int32Array(V):V}(),r=function i(E){var V=0,B=0,X=0,ne=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(X=0;256!=X;++X)ne[X]=E[X];for(X=0;256!=X;++X)for(B=E[X],V=256+X;V<4096;V+=256)B=ne[V]=B>>>8^E[255&B];var Q=[];for(X=1;16!=X;++X)Q[X-1]=typeof Int32Array<"u"&&"function"==typeof ne.subarray?ne.subarray(256*X,256*X+256):ne.slice(256*X,256*X+256);return Q}(e),o=r[0],s=r[1],a=r[2],c=r[3],l=r[4],d=r[5],u=r[6],h=r[7],f=r[8],m=r[9],g=r[10],p=r[11],v=r[12],x=r[13],C=r[14];return t.table=e,t.bstr=function D(E,V){for(var B=~V,X=0,ne=E.length;X>>8^e[255&(B^E.charCodeAt(X++))];return~B},t.buf=function j(E,V){for(var B=~V,X=E.length-15,ne=0;ne>8&255]^v[E[ne++]^B>>16&255]^p[E[ne++]^B>>>24]^g[E[ne++]]^m[E[ne++]]^f[E[ne++]]^h[E[ne++]]^u[E[ne++]]^d[E[ne++]]^l[E[ne++]]^c[E[ne++]]^a[E[ne++]]^s[E[ne++]]^o[E[ne++]]^e[E[ne++]];for(X+=15;ne>>8^e[255&(B^E[ne++])];return~B},t.str=function M(E,V){for(var B=~V,X=0,ne=E.length,Q=0,Te=0;X>>8^e[255&(B^Q)]:Q<2048?B=(B=B>>>8^e[255&(B^(192|Q>>6&31))])>>>8^e[255&(B^(128|63&Q))]:Q>=55296&&Q<57344?(Q=64+(1023&Q),Te=1023&E.charCodeAt(X++),B=(B=(B=(B=B>>>8^e[255&(B^(240|Q>>8&7))])>>>8^e[255&(B^(128|Q>>2&63))])>>>8^e[255&(B^(128|Te>>6&15|(3&Q)<<4))])>>>8^e[255&(B^(128|63&Te))]):B=(B=(B=B>>>8^e[255&(B^(224|Q>>12&15))])>>>8^e[255&(B^(128|Q>>6&63))])>>>8^e[255&(B^(128|63&Q))];return~B},t}(),wt=function(){var c,n={};function i(S){if("/"==S.charAt(S.length-1))return-1===S.slice(0,-1).indexOf("/")?S:i(S.slice(0,-1));var O=S.lastIndexOf("/");return-1===O?S:S.slice(0,O+1)}function r(S){if("/"==S.charAt(S.length-1))return r(S.slice(0,-1));var O=S.lastIndexOf("/");return-1===O?S:S.slice(O+1)}function o(S,O){"string"==typeof O&&(O=new Date(O));var I=O.getHours();I=(I=I<<6|O.getMinutes())<<5|O.getSeconds()>>>1,S.write_shift(2,I);var P=O.getFullYear()-1980;P=(P=P<<4|O.getMonth()+1)<<5|O.getDate(),S.write_shift(2,P)}function a(S){Or(S,0);for(var O={},I=0;S.l<=S.length-4;){var P=S.read_shift(2),N=S.read_shift(2),L=S.l+N,re={};switch(P){case 21589:1&(I=S.read_shift(1))&&(re.mtime=S.read_shift(4)),N>5&&(2&I&&(re.atime=S.read_shift(4)),4&I&&(re.ctime=S.read_shift(4))),re.mtime&&(re.mt=new Date(1e3*re.mtime));break;case 1:var _e=S.read_shift(4),ie=S.read_shift(4);re.usz=ie*Math.pow(2,32)+_e,_e=S.read_shift(4),ie=S.read_shift(4),re.csz=ie*Math.pow(2,32)+_e}S.l=L,O[P]=re}return O}function l(){return c||(c=Dl)}function d(S,O){if(80==S[0]&&75==S[1])return IZ(S,O);if(109==(32|S[0])&&105==(32|S[1]))return function E7e(S,O){if("mime-version:"!=pe(S.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var I=O&&O.root||"",P=(on&&Buffer.isBuffer(S)?S.toString("binary"):pe(S)).split("\r\n"),N=0,L="";for(N=0;N0&&(I=(I=I.slice(0,I.length-1)).slice(0,I.lastIndexOf("/")+1),L.slice(0,I.length)!=I););var re=(P[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var _e="--"+(re[1]||""),se={FileIndex:[],FullPaths:[]};E(se);var Oe,Ve=0;for(N=0;N=N&&(Ve-=N),!re[Ve]){ie=[];var Ge=[];for(Oe=Ve;Oe>=0;){Ge[Oe]=!0,re[Oe]=!0,_e[_e.length]=Oe,ie.push(S[Oe]);var Fe=I[Math.floor(4*Oe/P)];if(P<4+(dt=4*Oe&oe))throw new Error("FAT boundary crossed: "+Oe+" 4 "+P);if(!S[Fe]||Ge[Oe=Mh(S[Fe],dt)])break}L[Ve]={nodes:_e,data:rK([ie])}}return L}($t,re,oe,P);re0&&_e!==Te&&(xi[_e].name="!MiniFAT"),xi[oe[0]].name="!FAT",xi.fat_addrs=oe,xi.ssz=P;var yr=[],Ks=[],wv=[];(function C(S,O,I,P,N,L,re,_e){for(var dt,ie=0,oe=P.length?2:0,se=O[S].data,Oe=0,Ve=0;Oe0&&ie!==Te&&(O[ie].name="!StreamData")):Fe.size>=4096?(Fe.storage="fat",void 0===O[Fe.start]&&(O[Fe.start]=v(I,Fe.start,O.fat_addrs,O.ssz)),O[Fe.start].name=Fe.name,Fe.content=O[Fe.start].data.slice(0,Fe.size)):(Fe.storage="minifat",Fe.size<0?Fe.size=0:ie!==Te&&Fe.start!==Te&&O[ie]&&(Fe.content=g(Fe,O[ie].data,(O[_e]||{}).data))),Fe.content&&Or(Fe.content,0),L[dt]=Fe,re.push(Fe)}})(re,xi,$t,yr,N,{},Ks,_e),function m(S,O,I){for(var P=0,N=0,L=0,re=0,_e=0,ie=I.length,oe=[],se=[];P0&&re>=0;)L.push(O.slice(re*Q,re*Q+Q)),N-=Q,re=Mh(I,4*re);return 0===L.length?ue(0):mr(L).slice(0,S.size)}function p(S,O,I,P,N){var L=Te;if(S===Te){if(0!==O)throw new Error("DIFAT chain shorter than expected")}else if(-1!==S){var re=I[S],_e=(P>>>2)-1;if(!re)return;for(var ie=0;ie<_e&&(L=Mh(re,4*ie))!==Te;++ie)N.push(L);O>=1&&p(Mh(re,P-4),O-1,I,P,N)}}function v(S,O,I,P,N){var L=[],re=[];N||(N=[]);var _e=P-1,ie=0,oe=0;for(ie=O;ie>=0;){N[ie]=!0,L[L.length]=ie,re.push(S[ie]);var se=I[Math.floor(4*ie/P)];if(P<4+(oe=4*ie&_e))throw new Error("FAT boundary crossed: "+ie+" 4 "+P);if(!S[se])break;ie=Mh(S[se],oe)}return{nodes:L,data:rK([re])}}function D(S,O){return new Date(1e3*(Yr(S,O+4)/1e7*Math.pow(2,32)+Yr(S,O)/1e7-11644473600))}function E(S,O){var I=O||{},P=I.root||"Root Entry";if(S.FullPaths||(S.FullPaths=[]),S.FileIndex||(S.FileIndex=[]),S.FullPaths.length!==S.FileIndex.length)throw new Error("inconsistent CFB structure");0===S.FullPaths.length&&(S.FullPaths[0]=P+"/",S.FileIndex[0]={name:P,type:5}),I.CLSID&&(S.FileIndex[0].clsid=I.CLSID),function V(S){var O="\x01Sh33tJ5";if(!wt.find(S,"/"+O)){var I=ue(4);I[0]=55,I[1]=I[3]=50,I[2]=54,S.FileIndex.push({name:O,type:2,content:I,size:4,L:69,R:69,C:69}),S.FullPaths.push(S.FullPaths[0]+O),B(S)}}(S)}function B(S,O){E(S);for(var I=!1,P=!1,N=S.FullPaths.length-1;N>=0;--N){var L=S.FileIndex[N];switch(L.type){case 0:P?I=!0:(S.FileIndex.pop(),S.FullPaths.pop());break;case 1:case 2:case 5:P=!0,isNaN(L.R*L.L*L.C)&&(I=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(I=!0);break;default:I=!0}}if(I||O){var re=new Date(1987,1,19),_e=0,ie=Object.create?Object.create(null):{},oe=[];for(N=0;N1?1:-1,Oe.size=0,Oe.type=5;else if("/"==Ve.slice(-1)){for(_e=N+1;_e=oe.length?-1:_e,_e=N+1;_e=oe.length?-1:_e,Oe.type=1}else i(S.FullPaths[N+1]||"")==i(Ve)&&(Oe.R=N+1),Oe.type=2}}}function X(S,O){var I=O||{};if("mad"==I.fileType)return function S7e(S,O){for(var I=O||{},P=I.boundary||"SheetJS",N=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(P="------="+P).slice(2)+'"',"","",""],L=S.FullPaths[0],re=L,_e=S.FileIndex[0],ie=1;ie=32&&dt<128&&++Oe;var Fe=Oe>=4*Ve/5;N.push(P),N.push("Content-Location: "+(I.root||"file:///C:/SheetJS/")+re),N.push("Content-Transfer-Encoding: "+(Fe?"quoted-printable":"base64")),N.push("Content-Type: "+x7e(_e,re)),N.push(""),N.push(Fe?k7e(se):w7e(se))}return N.push(P+"--\r\n"),N.join("\r\n")}(S,I);if("zip"===(B(S),I.fileType))return function y7e(S,O){var I=O||{},P=[],N=[],L=ue(1),re=I.compression?8:0,_e=0,oe=0,se=0,Oe=0,Ve=0,dt=S.FullPaths[0],Ge=dt,Fe=S.FileIndex[0],$t=[],xi=0;for(oe=1;oe0&&(ks<4096?Ge+=ks+63>>6:Fe+=ks+511>>9)}}for(var yr=dt.FullPaths.length+3>>2,wv=Ge+127>>7,kv=(Ge+7>>3)+Fe+yr+wv,Xh=kv+127>>7,RO=Xh<=109?0:Math.ceil((Xh-109)/127);kv+Xh+RO+127>>7>Xh;)RO=++Xh<=109?0:Math.ceil((Xh-109)/127);var Ll=[1,RO,Xh,wv,yr,Fe,Ge,0];return dt.FileIndex[0].size=Ge<<6,Ll[7]=(dt.FileIndex[0].start=Ll[0]+Ll[1]+Ll[2]+Ll[3]+Ll[4]+Ll[5])+(Ll[6]+7>>3),Ll}(S),N=ue(P[7]<<9),L=0,re=0;for(L=0;L<8;++L)N.write_shift(1,ve[L]);for(L=0;L<8;++L)N.write_shift(2,0);for(N.write_shift(2,62),N.write_shift(2,3),N.write_shift(2,65534),N.write_shift(2,9),N.write_shift(2,6),L=0;L<3;++L)N.write_shift(2,0);for(N.write_shift(4,0),N.write_shift(4,P[2]),N.write_shift(4,P[0]+P[1]+P[2]+P[3]-1),N.write_shift(4,0),N.write_shift(4,4096),N.write_shift(4,P[3]?P[0]+P[1]+P[2]-1:Te),N.write_shift(4,P[3]),N.write_shift(-4,P[1]?P[0]-1:Te),N.write_shift(4,P[1]),L=0;L<109;++L)N.write_shift(-4,L>9));for(_e(P[6]+7>>3);511&N.l;)N.write_shift(-4,ee.ENDOFCHAIN);for(re=L=0,ie=0;ie=4096)&&(se.start=re,_e(oe+63>>6));for(;511&N.l;)N.write_shift(-4,ee.ENDOFCHAIN);for(L=0;L32&&(console.error("Name "+Ve+" will be truncated to "+Ve.slice(0,32)),Ve=Ve.slice(0,32)),oe=2*(Ve.length+1),N.write_shift(64,Ve,"utf16le"),N.write_shift(2,oe),N.write_shift(1,se.type),N.write_shift(1,se.color),N.write_shift(-4,se.L),N.write_shift(-4,se.R),N.write_shift(-4,se.C),se.clsid)N.write_shift(16,se.clsid,"hex");else for(ie=0;ie<4;++ie)N.write_shift(4,0);N.write_shift(4,se.state||0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,0),N.write_shift(4,se.start),N.write_shift(4,se.size),N.write_shift(4,0)}else{for(ie=0;ie<17;++ie)N.write_shift(4,0);for(ie=0;ie<3;++ie)N.write_shift(4,-1);for(ie=0;ie<12;++ie)N.write_shift(4,0)}}for(L=1;L=4096)if(N.l=se.start+1<<9,on&&Buffer.isBuffer(se.content))se.content.copy(N,N.l,0,se.size),N.l+=se.size+511&-512;else{for(ie=0;ie0&&se.size<4096)if(on&&Buffer.isBuffer(se.content))se.content.copy(N,N.l,0,se.size),N.l+=se.size+63&-64;else{for(ie=0;ie>16|O>>8|O));function R(S,O){var I=$e[255&S];return O<=8?I>>>8-O:(I=I<<8|$e[S>>8&255],O<=16?I>>>16-O:(I=I<<8|$e[S>>16&255])>>>24-O)}function Mt(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=6?0:S[P+1]<<8))>>>I&3}function En(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=5?0:S[P+1]<<8))>>>I&7}function hn(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=3?0:S[P+1]<<8))>>>I&31}function Oi(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=1?0:S[P+1]<<8))>>>I&127}function Vn(S,O,I){var P=7&O,N=O>>>3,re=S[N]>>>P;return I<8-P||(re|=S[N+1]<<8-P,I<16-P)||(re|=S[N+2]<<16-P,I<24-P)||(re|=S[N+3]<<24-P),re&(1<>>3;return P<=5?S[N]|=(7&I)<>8-P),O+3}function Ze(S,O,I){return S[O>>>3]|=I=(1&I)<<(7&O),O+1}function Ho(S,O,I){var N=O>>>3;return S[N]|=255&(I<<=7&O),S[N+1]=I>>>=8,O+8}function Pn(S,O,I){var N=O>>>3;return S[N]|=255&(I<<=7&O),S[N+1]=255&(I>>>=8),S[N+2]=I>>>8,O+16}function oi(S,O){var I=S.length,P=2*I>O?2*I:O+5,N=0;if(I>=O)return S;if(on){var L=gQ(P);if(S.copy)S.copy(L);else for(;N>P-Oe,re=(1<=0;--re)O[_e|re<0;)ie[ie.l++]=_e[oe++]}return ie.l}(ie,oe):function re(_e,ie){for(var oe=0,se=0,Oe=Ee?new Uint16Array(32768):[];se<_e.length;){var Ve=Math.min(65535,_e.length-se);if(Ve<10){for(7&(oe=ft(ie,oe,+(se+Ve==_e.length)))&&(oe+=8-(7&oe)),ie.l=oe/8|0,ie.write_shift(2,Ve),ie.write_shift(2,65535&~Ve);Ve-- >0;)ie[ie.l++]=_e[se++];oe=8*ie.l}else{oe=ft(ie,oe,+(se+Ve==_e.length)+2);for(var dt=0;Ve-- >0;){var Ge=_e[se],Fe=-1,$t=0;if((Fe=Oe[dt=32767&(dt<<5^Ge)])&&((Fe|=-32768&se)>se&&(Fe-=32768),Fe2){(Ge=N[$t])<=22?oe=Ho(ie,oe,$e[Ge+1]>>1)-1:(Ho(ie,oe,3),Ho(ie,oe+=5,$e[Ge-23]>>5),oe+=3);var xi=Ge<8?0:Ge-4>>2;xi>0&&(Pn(ie,oe,$t-K[Ge]),oe+=xi),oe=Ho(ie,oe,$e[Ge=O[se-Fe]]>>3),oe-=3;var ks=Ge<4?0:Ge-2>>1;ks>0&&(Pn(ie,oe,se-Fe-G[Ge]),oe+=ks);for(var yr=0;yr<$t;++yr)Oe[dt]=32767&se,dt=32767&(dt<<5^_e[se]),++se;Ve-=$t-1}else Ge<=143?Ge+=48:oe=Ze(ie,oe,1),oe=Ho(ie,oe,$e[Ge]),Oe[dt]=32767&se,++se}oe=Ho(ie,oe,0)-1}}return ie.l=(oe+7)/8|0,ie.l}(ie,oe)}}();function fn(S){var O=ue(50+Math.floor(1.1*S.length)),I=Nc(S,O);return O.slice(0,I)}var ar=Ee?new Uint16Array(32768):is(32768),_a=Ee?new Uint16Array(32768):is(32768),Br=Ee?new Uint16Array(128):is(128),Kh=1,EZ=1;function _7e(S,O){var I=hn(S,O)+257,P=hn(S,O+=5)+1,N=function rt(S,O){var I=7&O,P=O>>>3;return(S[P]|(I<=4?0:S[P+1]<<8))>>>I&15}(S,O+=5)+4;O+=4;for(var L=0,re=Ee?new Uint8Array(19):is(19),_e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ie=1,oe=Ee?new Uint8Array(8):is(8),se=Ee?new Uint8Array(8):is(8),Oe=re.length,Ve=0;Ve>8-Ge;for(var Fe=(1<<7-Ge)-1;Fe>=0;--Fe)Br[dt|Fe<>>=3){case 16:for(L=3+Mt(S,O),O+=2,dt=$t[$t.length-1];L-- >0;)$t.push(dt);break;case 17:for(L=3+En(S,O),O+=3;L-- >0;)$t.push(0);break;case 18:for(L=11+Oi(S,O),O+=7;L-- >0;)$t.push(0);break;default:$t.push(dt),ie>>0,_e=0,ie=0;!(1&P);)if(P=En(S,I),I+=3,P>>>1)for(P>>1==1?(_e=9,ie=5):(I=_7e(S,I),_e=Kh,ie=EZ);;){!O&&re>>1==1?au[se]:ar[se];if(I+=15&Oe,(Oe>>>=4)>>>8&255){if(256==Oe)break;var Ve=(Oe-=257)<8?0:Oe-4>>2;Ve>5&&(Ve=0);var dt=L+K[Oe];Ve>0&&(dt+=Vn(S,I,Ve),I+=Ve),se=Vn(S,I,ie),I+=15&(Oe=P>>>1==1?xv[se]:_a[se]);var Ge=(Oe>>>=4)<4?0:Oe-2>>1,Fe=G[Oe];for(Ge>0&&(Fe+=Vn(S,I,Ge),I+=Ge),!O&&re>>3]|S[1+(I>>>3)]<<8;if(I+=32,oe>0)for(!O&&re0;)N[L++]=S[I>>>3],I+=8}return O?[N,I+7>>>3]:[N.slice(0,L),I+7>>>3]}(S.slice(S.l||0),O);return S.l+=P[1],P[0]}function DZ(S,O){if(!S)throw new Error(O);typeof console<"u"&&console.error(O)}function IZ(S,O){var I=S;Or(I,0);var L={FileIndex:[],FullPaths:[]};E(L,{root:O.root});for(var re=I.length-4;(80!=I[re]||75!=I[re+1]||5!=I[re+2]||6!=I[re+3])&&re>=0;)--re;I.l=re+4,I.l+=4;var _e=I.read_shift(2);I.l+=6;var ie=I.read_shift(4);for(I.l=ie,re=0;re<_e;++re){I.l+=20;var oe=I.read_shift(4),se=I.read_shift(4),Oe=I.read_shift(2),Ve=I.read_shift(2),dt=I.read_shift(2);I.l+=8;var Ge=I.read_shift(4),Fe=a(I.slice(I.l+Oe,I.l+Oe+Ve));I.l+=Oe+Ve+dt;var $t=I.l;I.l=Ge+4,Fe&&Fe[1]&&((Fe[1]||{}).usz&&(se=Fe[1].usz),(Fe[1]||{}).csz&&(oe=Fe[1].csz)),v7e(I,oe,se,L,Fe),I.l=$t}return L}function v7e(S,O,I,P,N){S.l+=2;var L=S.read_shift(2),re=S.read_shift(2),_e=function s(S){var O=65535&S.read_shift(2),I=65535&S.read_shift(2),P=new Date,N=31&I,L=15&(I>>>=5);I>>>=4,P.setMilliseconds(0),P.setFullYear(I+1980),P.setMonth(L-1),P.setDate(N);var re=31&O,_e=63&(O>>>=5);return P.setHours(O>>>=6),P.setMinutes(_e),P.setSeconds(re<<1),P}(S);if(8257&L)throw new Error("Unsupported ZIP encryption");S.read_shift(4);for(var oe=S.read_shift(4),se=S.read_shift(4),Oe=S.read_shift(2),Ve=S.read_shift(2),dt="",Ge=0;Ge"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Nb(t,n,e){if(typeof Dl<"u"&&Dl.writeFileSync)return e?Dl.writeFileSync(t,n,e):Dl.writeFileSync(t,n);if(typeof Deno<"u"){if(e&&"string"==typeof n)switch(e){case"utf8":n=new TextEncoder(e).encode(n);break;case"binary":n=Rb(n);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,n)}var i="utf8"==e?Ic(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,t);if(typeof Blob<"u"){var r=new Blob([kFe(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if(typeof saveAs<"u")return saveAs(r,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var s=document.createElement("a");if(null!=s.download)return s.download=t,s.href=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(t);return a.open("w"),a.encoding="binary",Array.isArray(n)&&(n=Sc(n)),a.write(n),a.close(),n}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function Pi(t){for(var n=Object.keys(t),e=[],i=0;i0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):n<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==zQ.getFullYear()&&!isNaN(e.getFullYear())){var i=e.getFullYear();return t.indexOf(""+i)>-1||e.setFullYear(e.getFullYear()+100),e}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Ih(t,n){if(on&&Buffer.isBuffer(t)){if(n&&Mb){if(255==t[0]&&254==t[1])return Ic(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ic(function mQ(t){for(var n=[],e=0;e>1;++e)n[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return n.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(n){if(255==t[0]&&254==t[1])return Ic(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ic(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(o){return e[o]||o})}catch{}for(var i=[],r=0;r!=t.length;++r)i.push(String.fromCharCode(t[r]));return i.join("")}function ei(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=ei(t[e]));return n}function Rn(t,n){for(var e="";e.length3&&-1==MFe.indexOf(n))return o}else if(n.replace(/[ap]m?/,"").match(/[a-z]/))return o;return s<0||s>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function en(t,n,e){if(t.FullPaths){var i;if("string"==typeof e)return i=on?Ec(e):function KPe(t){for(var n=[],e=0,i=t.length+250,r=Qd(t.length+255),o=0;o>6&31,r[e++]=128|63&s;else if(s>=55296&&s<57344){s=64+(1023&s);var a=1023&t.charCodeAt(++o);r[e++]=240|s>>8&7,r[e++]=128|s>>2&63,r[e++]=128|a>>6&15|(3&s)<<4,r[e++]=128|63&a}else r[e++]=224|s>>12&15,r[e++]=128|s>>6&63,r[e++]=128|63&s;e>i&&(n.push(r.slice(0,e)),e=0,r=Qd(65535),i=65530)}return n.push(r.slice(0,e)),mr(n)}(e),wt.utils.cfb_add(t,n,i);wt.utils.cfb_add(t,n,e)}else t.file(n,e)}function ZP(){return wt.utils.cfb_new()}var rr='\r\n',JP=eC({""":'"',"'":"'",">":">","<":"<","&":"&"}),eF=/[&<>'"]/g,VFe=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function tn(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(VFe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function KQ(t){return tn(t).replace(/ /g,"_x0020_")}var XQ=/[\u0000-\u001f]/g;function rC(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(/\n/g,"
").replace(XQ,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function tF(t){for(var n="",e=0,i=0,r=0,o=0,s=0,a=0;e191&&i<224?(s=(31&i)<<6,s|=63&r,n+=String.fromCharCode(s)):(o=t.charCodeAt(e++),i<240?n+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o):(a=((7&i)<<18|(63&r)<<12|(63&o)<<6|63&(s=t.charCodeAt(e++)))-65536,n+=String.fromCharCode(55296+(a>>>10&1023)),n+=String.fromCharCode(56320+(1023&a)))));return n}function ZQ(t){var e,i,a,n=Qd(2*t.length),r=1,o=0,s=0;for(i=0;i>>10&1023),e=56320+(1023&e)),0!==s&&(n[o++]=255&s,n[o++]=s>>>8,s=0),n[o++]=e%256,n[o++]=e>>>8;return n.slice(0,o).toString("ucs2")}function JQ(t){return Ec(t,"binary").toString("utf8")}var oC="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ni=on&&(JQ(oC)==tF(oC)&&JQ||ZQ(oC)==tF(oC)&&ZQ)||tF,Ic=on?function(t){return Ec(t,"utf8").toString("binary")}:function(t){for(var n=[],e=0,i=0,r=0;e>6))),n.push(String.fromCharCode(128+(63&i)));break;case i>=55296&&i<57344:i-=55296,r=t.charCodeAt(e++)-56320+(i<<10),n.push(String.fromCharCode(240+(r>>18&7))),n.push(String.fromCharCode(144+(r>>12&63))),n.push(String.fromCharCode(128+(r>>6&63))),n.push(String.fromCharCode(128+(63&r)));break;default:n.push(String.fromCharCode(224+(i>>12))),n.push(String.fromCharCode(128+(i>>6&63))),n.push(String.fromCharCode(128+(63&i)))}return n.join("")},nK=/(^\s|\s$|\n)/;function fo(t,n){return"<"+t+(n.match(nK)?' xml:space="preserve"':"")+">"+n+""}function Bb(t){return Pi(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function Ne(t,n,e){return"<"+t+(null!=e?Bb(e):"")+(null!=n?(n.match(nK)?' xml:space="preserve"':"")+">"+n+""}function nF(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}var Fr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ah=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ws={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},iK=function(t){for(var n=[],i=0;i0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(n){return Buffer.isBuffer(n)?n:Ec(n)})):iK(t)}:iK,oK=function(t,n,e){for(var i=[],r=n;r0?jp(t,n+4,n+4+e-1):""},iF=lK,dK=function(t,n){var e=Yr(t,n);return e>0?jp(t,n+4,n+4+e-1):""},rF=dK,uK=function(t,n){var e=2*Yr(t,n);return e>0?jp(t,n+4,n+4+e-1):""},oF=uK,hK=function(n,e){var i=Yr(n,e);return i>0?aC(n,e+4,e+4+i):""},sF=hK,fK=function(t,n){var e=Yr(t,n);return e>0?jp(t,n+4,n+4+e):""},aF=fK,mK=function(t,n){return function GFe(t,n){for(var e=1-2*(t[n+7]>>>7),i=((127&t[n+7])<<4)+(t[n+6]>>>4&15),r=15&t[n+6],o=5;o>=0;--o)r=256*r+t[n+o];return 2047==i?0==r?e*(1/0):NaN:(0==i?i=-1022:(i-=1023,r+=Math.pow(2,52)),e*Math.pow(2,i-52)*r)}(t,n)},cC=mK,cF=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};on&&(iF=function(n,e){if(!Buffer.isBuffer(n))return lK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},rF=function(n,e){if(!Buffer.isBuffer(n))return dK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},oF=function(n,e){if(!Buffer.isBuffer(n)||!Mb)return uK(n,e);var i=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i-1)},sF=function(n,e){if(!Buffer.isBuffer(n)||!Mb)return hK(n,e);var i=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i)},aF=function(n,e){if(!Buffer.isBuffer(n))return fK(n,e);var i=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+i)},cC=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):mK(n,e)},cF=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array}),typeof Zt<"u"&&function pK(){aC=function(t,n,e){return Zt.utils.decode(1200,t.slice(n,e)).replace(Fo,"")},jp=function(t,n,e){return Zt.utils.decode(65001,t.slice(n,e))},iF=function(t,n){var e=Yr(t,n);return e>0?Zt.utils.decode(Sh,t.slice(n+4,n+4+e-1)):""},rF=function(t,n){var e=Yr(t,n);return e>0?Zt.utils.decode(Pr,t.slice(n+4,n+4+e-1)):""},oF=function(t,n){var e=2*Yr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},sF=function(t,n){var e=Yr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e)):""},aF=function(t,n){var e=Yr(t,n);return e>0?Zt.utils.decode(65001,t.slice(n+4,n+4+e)):""}}();var $p=function(t,n){return t[n]},Il=function(t,n){return 256*t[n+1]+t[n]},qFe=function(t,n){var e=256*t[n+1]+t[n];return e<32768?e:-1*(65535-e+1)},Yr=function(t,n){return t[n+3]*(1<<24)+(t[n+2]<<16)+(t[n+1]<<8)+t[n]},Mh=function(t,n){return t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]},QFe=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function Ub(t,n){var i,r,s,a,c,l,e="",o=[];switch(n){case"dbcs":if(l=this.l,on&&Buffer.isBuffer(this)&&Mb)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?Mh:QFe)(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return r=8==t?cC(this,this.l):cC([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;t=8;case 16:e=aK(this,this.l,t)}}return this.l+=t,e}var KFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255,t[e+2]=n>>>16&255,t[e+3]=n>>>24&255},XFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>8&255,t[e+2]=n>>16&255,t[e+3]=n>>24&255},YFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255};function ZFe(t,n,e){var i=0,r=0;if("dbcs"===e){for(r=0;r!=n.length;++r)YFe(this,n.charCodeAt(r),this.l+2*r);i=2*n.length}else if("sbcs"===e||"cpstr"==e)if(typeof Zt<"u"&&874==Sh){for(r=0;r!=n.length;++r){var o=Zt.utils.encode(Sh,n.charAt(r));this[this.l+r]=o[0]}i=n.length}else if(typeof Zt<"u"&&"cpstr"==e){if((o=Zt.utils.encode(Pr,n)).length==n.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:i=3,this[this.l]=255&n,this[this.l+1]=255&(n>>>=8),this[this.l+2]=255&(n>>>=8);break;case 4:i=4,KFe(this,n,this.l);break;case 8:if(i=8,"f"===e){!function WFe(t,n,e){var i=(n<0||1/n==-1/0?1:0)<<7,r=0,o=0,s=i?-n:n;isFinite(s)?0==s?r=o=0:(r=Math.floor(Math.log(s)/Math.LN2),o=s*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|i}(this,n,this.l);break}case 16:break;case-4:i=4,XFe(this,n,this.l)}}return this.l+=i,this}function gK(t,n){var e=aK(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Or(t,n){t.l=n,t.read_shift=Ub,t.chk=gK,t.write_shift=ZFe}function No(t,n){t.l+=n}function ue(t){var n=Qd(t);return Or(n,0),n}function xs(){var t=[],n=on?256:2048,e=function(l){var d=ue(l);return Or(d,0),d},i=e(n),r=function(){i&&(i.l&&(i.length>i.l&&((i=i.slice(0,i.l)).l=i.length),i.length>0&&t.push(i)),i=null)},o=function(l){return i&&l=128?1:0)+1,i>=128&&++o,i>=16384&&++o,i>=2097152&&++o;var s=t.next(o);r<=127?s.write_shift(1,r):(s.write_shift(1,128+(127&r)),s.write_shift(1,r>>7));for(var a=0;4!=a;++a){if(!(i>=128)){s.write_shift(1,i);break}s.write_shift(1,128+(127&i)),i>>=7}i>0&&cF(e)&&t.push(e)}}function zb(t,n,e){var i=ei(t);if(n.s?(i.cRel&&(i.c+=n.s.c),i.rRel&&(i.r+=n.s.r)):(i.cRel&&(i.c+=n.c),i.rRel&&(i.r+=n.r)),!e||e.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function _K(t,n,e){var i=ei(t);return i.s=zb(i.s,n.s,e),i.e=zb(i.e,n.s,e),i}function Hb(t,n){if(t.cRel&&t.c<0)for(t=ei(t);t.c<0;)t.c+=n>8?16384:256;if(t.rRel&&t.r<0)for(t=ei(t);t.r<0;)t.r+=n>8?1048576:n>5?65536:16384;var e=dn(t);return!t.cRel&&null!=t.cRel&&(e=function tOe(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function JFe(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function lF(t,n){return 0!=t.s.r||t.s.rRel||t.e.r!=(n.biff>=12?1048575:n.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(n.biff>=12?16383:255)||t.e.cRel?Hb(t.s,n.biff)+":"+Hb(t.e,n.biff):(t.s.rRel?"":"$")+kn(t.s.r)+":"+(t.e.rRel?"":"$")+kn(t.e.r):(t.s.cRel?"":"$")+sn(t.s.c)+":"+(t.e.cRel?"":"$")+sn(t.e.c)}function dF(t){return parseInt(function eOe(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function kn(t){return""+(t+1)}function uF(t){for(var n=function nOe(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,i=0;i!==n.length;++i)e=26*e+n.charCodeAt(i)-64;return e-1}function sn(t){if(t<0)throw new Error("invalid column "+t);var n="";for(++t;t;t=Math.floor((t-1)/26))n=String.fromCharCode((t-1)%26+65)+n;return n}function Wn(t){for(var n=0,e=0,i=0;i=48&&r<=57?n=10*n+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:n-1}}function dn(t){for(var n=t.c+1,e="";n;n=(n-1)/26|0)e=String.fromCharCode((n-1)%26+65)+e;return e+(t.r+1)}function Nr(t){var n=t.indexOf(":");return-1==n?{s:Wn(t),e:Wn(t)}:{s:Wn(t.slice(0,n)),e:Wn(t.slice(n+1))}}function Qt(t,n){return typeof n>"u"||"number"==typeof n?Qt(t.s,t.e):("string"!=typeof t&&(t=dn(t)),"string"!=typeof n&&(n=dn(n)),t==n?t:t+":"+n)}function jb(t){var n=Nr(t);return"$"+sn(n.s.c)+"$"+kn(n.s.r)+":$"+sn(n.e.c)+"$"+kn(n.e.r)}function $b(t,n){if(!(t||n&&n.biff<=5&&n.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Cn(t){var n={s:{c:0,r:0},e:{c:0,r:0}},e=0,i=0,r=0,o=t.length;for(e=0;i26);++i)e=26*e+r;for(n.s.c=--e,e=0;i9);++i)e=10*e+r;if(n.s.r=--e,i===o||10!=r)return n.e.c=n.s.c,n.e.r=n.s.r,n;for(++i,e=0;i!=o&&!((r=t.charCodeAt(i)-64)<1||r>26);++i)e=26*e+r;for(n.e.c=--e,e=0;i!=o&&!((r=t.charCodeAt(i)-48)<0||r>9);++i)e=10*e+r;return n.e.r=--e,n}function Ac(t,n,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?Ml[t.v]||t.v:function bK(t,n){var e="d"==t.t&&n instanceof Date;if(null!=t.z)try{return t.w=vs(t.z,e?pr(n):n)}catch{}try{return t.w=vs((t.XF||{}).numFmtId||(e?14:0),e?pr(n):n)}catch{return""+n}}(t,null==n?t.v:n))}function Zd(t,n){var e=n&&n.sheet?n.sheet:"Sheet1",i={};return i[e]=t,{SheetNames:[e],Sheets:i}}function vK(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=ir&&null==r&&(r=ir);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var s=0,a=0;if(o&&null!=i.origin){if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?Wn(i.origin):i.origin;s=c.r,a=c.c}o["!ref"]||(o["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=Cn(o["!ref"]);l.s.c=d.s.c,l.s.r=d.s.r,l.e.c=Math.max(l.e.c,d.e.c),l.e.r=Math.max(l.e.r,d.e.r),-1==s&&(l.e.r=s=d.e.r+1)}for(var u=[],h=0;h!=n.length;++h)if(n[h]){if(!Array.isArray(n[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=s+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=n[h].length;++g)if(!(typeof n[h][g]>"u")){var p={v:n[h][g]},v=a+g;if(l.s.r>f&&(l.s.r=f),l.s.c>v&&(l.s.c=v),l.e.r0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}function oOe(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function hF(t,n){var e=t.l,i=t.read_shift(1),r=Lo(t),o=[],s={t:r,h:r};if(1&i){for(var a=t.read_shift(4),c=0;c!=a;++c)o.push(oOe(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+n,s}var cOe=hF;function ha(t){var n=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:n,iStyleRef:e}}function Rh(t,n){return null==n&&(n=ue(8)),n.write_shift(-4,t.c),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}function Ph(t){var n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:n}}function Fh(t,n){return null==n&&(n=ue(4)),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}var dOe=Lo,yK=Lr;function fF(t){var n=t.read_shift(4);return 0===n||4294967295===n?"":t.read_shift(n,"dbcs")}function Gb(t,n){var e=!1;return null==n&&(e=!0,n=ue(127)),n.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}var uOe=Lo,mF=fF,pF=Gb;function gF(t){var n=t.slice(t.l,t.l+4),e=1&n[0],i=2&n[0];t.l+=4;var r=0===i?cC([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):Mh(n,0)>>2;return e?r/100:r}function xK(t,n){null==n&&(n=ue(4));var e=0,i=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?i=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(i=1,e=1),!i)throw new Error("unsupported RkNumber "+t);n.write_shift(-4,((e?r:t)<<2)+(e+2))}function wK(t){var n={s:{},e:{}};return n.s.r=t.read_shift(4),n.e.r=t.read_shift(4),n.s.c=t.read_shift(4),n.e.c=t.read_shift(4),n}var Oh=wK,Wp=function hOe(t,n){return n||(n=ue(16)),n.write_shift(4,t.s.r),n.write_shift(4,t.e.r),n.write_shift(4,t.s.c),n.write_shift(4,t.e.c),n};function Vo(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Nh(t,n){return(n||ue(8)).write_shift(8,t,"f")}function lC(t,n){if(n||(n=ue(8)),!t||t.auto)return n.write_shift(4,0),n.write_shift(4,0),n;null!=t.index?(n.write_shift(1,2),n.write_shift(1,t.index)):null!=t.theme?(n.write_shift(1,6),n.write_shift(1,t.theme)):(n.write_shift(1,5),n.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),n.write_shift(2,e),t.rgb&&null==t.theme){var i=t.rgb||"FFFFFF";"number"==typeof i&&(i=("000000"+i.toString(16)).slice(-6)),n.write_shift(1,parseInt(i.slice(0,2),16)),n.write_shift(1,parseInt(i.slice(2,4),16)),n.write_shift(1,parseInt(i.slice(4,6),16)),n.write_shift(1,255)}else n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n}var bF={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},vF={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function COe(t){return t.map(function(n){return[n>>16&255,n>>8&255,255&n]})}var Lh=ei(COe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Ml={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},yF={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},xF=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],wF={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},fC={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function SK(t,n,e){var o,i=function TFe(t){for(var n=[],e=Pi(t),i=0;i!==e.length;++i)null==n[t[e[i]]]&&(n[t[e[i]]]=[]),n[t[e[i]]].push(e[i]);return n}(wF),r=[];e||(r[r.length]=rr,r[r.length]=Ne("Types",null,{xmlns:Fr.CT,"xmlns:xsd":Fr.xsd,"xmlns:xsi":Fr.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ne("Default",null,{Extension:l[0],ContentType:l[1]})})));var s=function(l){t[l]&&t[l].length>0&&(r[r.length]=Ne("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:fC[l][n.bookType]||fC[l].xlsx}))},a=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ne("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:fC[l][n.bookType]||fC[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ne("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:i[l][0]})})};return s("workbooks"),a("sheets"),a("charts"),c("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),a("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var nn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Wb(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function qp(t){var n=[rr,Ne("Relationships",null,{xmlns:Fr.RELS})];return Pi(t["!id"]).forEach(function(e){n[n.length]=Ne("Relationship",null,t["!id"][e])}),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function ii(t,n,e,i,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),n<0)for(n=t["!idx"];t["!id"]["rId"+n];++n);if(t["!idx"]=n+1,r.Id="rId"+n,r.Type=i,r.Target=e,o?r.TargetMode=o:[nn.HLINK,nn.XPATH,nn.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+n);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,n}function DK(t,n,e){return[' \n',' \n'," \n"].join("")}function AOe(t,n){return[' \n',' \n'," \n"].join("")}function IK(t,n){return'SheetJS '+Ib.version+""}var fa=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function CF(t,n,e,i,r){null!=r[t]||null==n||""===n||(r[t]=n,n=tn(n),i[i.length]=e?Ne(t,n,e):fo(t,n))}function MK(t,n){var e=n||{},i=[rr,Ne("cp:coreProperties",null,{"xmlns:cp":Fr.CORE_PROPS,"xmlns:dc":Fr.dc,"xmlns:dcterms":Fr.dcterms,"xmlns:dcmitype":Fr.dcmitype,"xmlns:xsi":Fr.xsi})],r={};if(!t&&!e.Props)return i.join("");t&&(null!=t.CreatedDate&&CF("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:nF(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r),null!=t.ModifiedDate&&CF("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:nF(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r));for(var o=0;o!=fa.length;++o){var s=fa[o],a=e.Props&&null!=e.Props[s[1]]?e.Props[s[1]]:t?t[s[1]]:null;!0===a?a="1":!1===a?a="0":"number"==typeof a&&(a=String(a)),null!=a&&CF(s[0],a,null,i,r)}return i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Vh=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],RK=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function FK(t){var n=[],e=Ne;return t||(t={}),t.Application="SheetJS",n[n.length]=rr,n[n.length]=Ne("Properties",null,{xmlns:Fr.EXT_PROPS,"xmlns:vt":Fr.vt}),Vh.forEach(function(i){if(void 0!==t[i[1]]){var r;switch(i[2]){case"string":r=tn(String(t[i[1]]));break;case"bool":r=t[i[1]]?"true":"false"}void 0!==r&&(n[n.length]=e(i[0],r))}}),n[n.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(i){return""+tn(i)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function OK(t){var n=[rr,Ne("Properties",null,{xmlns:Fr.CUST_PROPS,"xmlns:vt":Fr.vt})];if(!t)return n.join("");var e=1;return Pi(t).forEach(function(r){++e,n[n.length]=Ne("property",function $Fe(t,n){switch(typeof t){case"string":var e=Ne("vt:lpwstr",tn(t));return n&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Ne((0|t)==t?"vt:i4":"vt:r8",tn(String(t)));case"boolean":return Ne("vt:bool",t?"true":"false")}if(t instanceof Date)return Ne("vt:filetime",nF(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:tn(r)})}),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var TF={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function zK(t,n){var e=ue(4),i=ue(4);switch(e.write_shift(4,80==t?31:t),t){case 3:i.write_shift(-4,n);break;case 5:(i=ue(8)).write_shift(8,n,"f");break;case 11:i.write_shift(4,n?1:0);break;case 64:i=function BOe(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,i=e%Math.pow(2,32),r=(e-i)/Math.pow(2,32);r*=1e7;var o=(i*=1e7)/Math.pow(2,32)|0;o>0&&(i%=Math.pow(2,32),r+=o);var s=ue(8);return s.write_shift(4,i),s.write_shift(4,r),s}(n);break;case 31:case 80:for((i=ue(4+2*(n.length+1)+(n.length%2?0:2))).write_shift(4,n.length+1),i.write_shift(0,n,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}return mr([e,i])}var jK=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function WOe(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function $K(t,n,e){var i=ue(8),r=[],o=[],s=8,a=0,c=ue(8),l=ue(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),s+=8+c.length,!n){(l=ue(8)).write_shift(4,0),r.unshift(l);var d=[ue(4)];for(d[0].write_shift(4,t.length),a=0;a-1||RK.indexOf(t[a][0])>-1)&&null!=t[a][1]){var h=t[a][1],f=0;if(n){var m=e[f=+n[t[a][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=zK(m.t,h)}else{var p=WOe(h);-1==p&&(p=31,h=String(h)),c=zK(p,h)}o.push(c),(l=ue(8)).write_shift(4,n?f:2+a),r.push(l),s+=8+c.length}var v=8*(o.length+1);for(a=0;a=12?2:1),r="sbcs-cont",o=Pr;e&&e.biff>=8&&(Pr=1200),e&&8!=e.biff?12==e.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont"),e.biff>=2&&e.biff<=5&&(r="cpstr");var a=i?t.read_shift(i,r):"";return Pr=o,a}function YOe(t){var n=t.t||"",i=ue(3);i.write_shift(2,n.length),i.write_shift(1,1);var r=ue(2*n.length);return r.write_shift(2*n.length,n,"utf16le"),mr([i,r])}function KK(t,n,e){return e||(e=ue(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function XK(t,n){n||(n=ue(6+2*t.length)),n.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(i.charAt(0)){case"#":o=28;break;case".":o&=-3}n.write_shift(4,2),n.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(e=0;e-1?i.slice(0,r):i;for(n.write_shift(4,2*(a.length+1)),e=0;e-1?i.slice(r+1):"",n)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e8?4:2;return[t.read_shift(i),t.read_shift(i,"i"),t.read_shift(i,"i")]}function gC(t){var n=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:n},e:{c:t.read_shift(2),r:e}}}function eX(t,n){return n||(n=ue(8)),n.write_shift(2,t.s.r),n.write_shift(2,t.e.r),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c),n}function IF(t,n,e){var i=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":i=1280,r=8;break;case"biff4":i=4,r=6;break;case"biff3":i=3,r=6;break;case"biff2":i=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=ue(r);return o.write_shift(2,i),o.write_shift(2,n),r>4&&o.write_shift(2,29282),r>6&&o.write_shift(2,1997),r>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function bNe(t,n){var e=!n||n.biff>=8?2:1,i=ue(8+e*t.name.length);i.write_shift(4,t.pos),i.write_shift(1,t.hs||0),i.write_shift(1,t.dt),i.write_shift(1,t.name.length),n.biff>=8&&i.write_shift(1,1),i.write_shift(e*t.name.length,t.name,n.biff<8?"sbcs":"utf16le");var r=i.slice(0,i.l);return r.l=i.l,r}function LNe(t,n,e,i){var r=e&&5==e.biff;i||(i=ue(r?3+n.length:5+2*n.length)),i.write_shift(2,t),i.write_shift(r?1:2,n.length),r||i.write_shift(1,1),i.write_shift((r?1:2)*n.length,n,r?"sbcs":"utf16le");var o=i.length>i.l?i.slice(0,i.l):i;return null==o.l&&(o.l=o.length),o}function oX(t,n,e,i){var r=e&&5==e.biff;i||(i=ue(r?16:20)),i.write_shift(2,0),t.style?(i.write_shift(2,t.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,t.numFmtId||0),i.write_shift(2,n<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),i.write_shift(4,o),i.write_shift(4,0),r||i.write_shift(4,0),i.write_shift(2,0),i}function l4e(t){var n=ue(24),e=Wn(t[0]);n.write_shift(2,e.r),n.write_shift(2,e.r),n.write_shift(2,e.c),n.write_shift(2,e.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)n.write_shift(1,parseInt(i[r],16));return mr([n,iNe(t[1])])}function u4e(t){var n=t[1].Tooltip,e=ue(10+2*(n.length+1));e.write_shift(2,2048);var i=Wn(t[0]);e.write_shift(2,i.r),e.write_shift(2,i.r),e.write_shift(2,i.c),e.write_shift(2,i.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var v=d.read_shift(2),x=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(x=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var C=[],D={},j=Math.min(d.length,2==u?521:p-10-(f?264:0)),M=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++E]=[],V=0,V=0;V!=C.length;++V){var B=d.slice(d.l,d.l+C[V].len);d.l+=C[V].len,Or(B,0);var X=typeof Zt<"u"?Zt.utils.decode(x,B):Sc(B);switch(C[V].type){case"C":X.trim().length&&(l[E][V]=X.replace(/\s+$/,""));break;case"D":l[E][V]=8===X.length?new Date(+X.slice(0,4),+X.slice(4,6)-1,+X.slice(6,8)):X;break;case"F":l[E][V]=parseFloat(X.trim());break;case"+":case"I":l[E][V]=m?2147483648^B.read_shift(-4,"i"):B.read_shift(4,"i");break;case"L":switch(X.trim().toUpperCase()){case"Y":case"T":l[E][V]=!0;break;case"N":case"F":l[E][V]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+X+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[E][V]="##MEMO##"+(m?parseInt(X.trim(),10):B.read_shift(4));break;case"N":(X=X.replace(/\u0000/g,"").trim())&&"."!=X&&(l[E][V]=+X||0);break;case"@":l[E][V]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":l[E][V]=new Date(864e5*(B.read_shift(4)-2440588)+B.read_shift(4));break;case"Y":l[E][V]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[E][V]=-B.read_shift(-8,"f");break;case"B":if(f&&8==C[V].len){l[E][V]=B.read_shift(8,"f");break}case"G":case"P":B.l+=C[V].len;break;case"0":if("_NullFlags"===C[V].name)break;default:throw new Error("DBF Unsupported data type "+C[V].type)}}else d.l+=v;if(2!=u&&d.l=0&&ca(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=xs(),h=RC(a,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=a["!cols"]||[],p=0,v=0,x=0,C=1;for(p=0;p250&&(X=250),"C"==(B=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>X&&(X=g[p].DBF.len),"B"==V&&"N"==B&&(V="N",E[p]=g[p].DBF.dec,X=g[p].DBF.len),M[p]="C"==V||"N"==B?X:o[V]||0,C+=M[p],j[p]=V}else j[p]="?"}var Q=u.next(32);for(Q.write_shift(4,318902576),Q.write_shift(4,m.length),Q.write_shift(2,296+32*x),Q.write_shift(2,C),p=0;p<4;++p)Q.write_shift(4,0);var Te=+n[Pr]||3;for(Q.write_shift(4,Te<<8),t[Te]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Pr+", using 1252"),Pr=1252),p=0,v=0;pM[v]&&(ye=ye.slice(0,M[v])),x=0;x":190,"?":191,"{":223},n=new RegExp("\x1bN("+Pi(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?GP(f):f},i=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:GP(m)};function o(u,h){var X,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,v=0,x=[],C=[],D=null,j={},M=[],E=[],V=[],B=0,ne={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&ca(+h.codepage);p!==f.length;++p){B=0;var ve,Q=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,e),Te=Q.replace(/;;/g,"\0").split(";").map(function(fe){return fe.replace(/\u0000/g,";")});if(Q.length>0)switch(Te[0]){case"ID":case"E":case"B":case"W":break;case"O":for(v=1;v=1&&ae<=4&&(ne.Workbook.WBProps.date1904=!0)}break;case"P":"P"===Te[1].charAt(0)&&C.push(Q.slice(3).replace(/;;/g,";"));break;case"NN":var ee={Sheet:0};for(v=1;v-1&&x[at][Dt];if(!K||!K[1])throw new Error("SYLK shared formula cannot find base");F=DX(K[1],{r:m-at,c:g-Dt})}F&&(x[m][g]?x[m][g].f=F:x[m][g]={t:"n",f:F});break;case"F":var G=0;for(v=1;v0?(M[m].hpt=B,M[m].hpx=Kp(B)):0===B&&(M[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}G<1&&(D=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}}return M.length>0&&(j["!rows"]=M),E.length>0&&(j["!cols"]=E),E.forEach(function(fe){eu(fe)}),h&&h.sheetRows&&(x=x.slice(0,h.sheetRows)),[x,j,ne]}function a(u,h,f,m){var g="C;Y"+(f+1)+";X"+(m+1)+";K";switch(u.t){case"n":g+=u.v||0,u.f&&!u.F&&(g+=";E"+kC(u.f,{r:f,c:m}));break;case"b":g+=u.v?"TRUE":"FALSE";break;case"e":g+=u.w||u.v;break;case"d":g+='"'+(u.w||u.v)+'"';break;case"s":g+='"'+(null==u.v?"":String(u.v)).replace(/"/g,"").replace(/;/g,";;")+'"'}return g}return t["|"]=254,{to_workbook:function s(u,h){var f=function r(u,h){switch(h.type){case"base64":return o($s(u),h);case"binary":return o(u,h);case"buffer":return o(on&&Buffer.isBuffer(u)?u.toString("binary"):Sc(u),h);case"array":return o(Ih(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],v=ei(h);v.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var x=Gp(m,v);Pi(g).forEach(function(D){x[D]=g[D]});var C=Zd(x,h);return Pi(p).forEach(function(D){C[D]=p[D]}),C.bookType="sylk",C},from_sheet:function d(u,h,f){var v,m=["ID;PSheetJS;N;E"],g=[],p=Cn(u["!ref"]),x=null!=u["!data"],C="\r\n",D=(((f||{}).Workbook||{}).WBProps||{}).date1904;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&function c(u,h){h.forEach(function(f,m){var g="F;W"+(m+1)+" "+(m+1)+" ";f.hidden?g+="0":("number"==typeof f.width&&!f.wpx&&(f.wpx=Yb(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Zb(f.wpx)),"number"==typeof f.wch&&(g+=Math.round(f.wch)))," "!=g.charAt(g.length-1)&&u.push(g)})}(m,u["!cols"]),u["!rows"]&&function l(u,h){h.forEach(function(f,m){var g="F;";f.hidden?g+="M0;":f.hpt?g+="M"+20*f.hpt+";":f.hpx&&(g+="M"+20*Jb(f.hpx)+";"),g.length>2&&u.push(g+"R"+(m+1))})}(m,u["!rows"]),m.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" ")),m.push("O;L;D;B"+(D?";V4":"")+";K47;G100 0.001");for(var j=p.s.r;j<=p.e.r;++j)if(!x||u["!data"][j]){for(var M=[],E=p.s.c;E<=p.e.c;++E)(v=x?u["!data"][j][E]:u[sn(E)+kn(j)])&&(null!=v.v||v.f&&!v.F)&&M.push(a(v,0,j,E));g.push(M.join(C))}return m.join(C)+C+g.join(C)+C+"E"+C}}}(),pX=function(){function n(a,c){for(var l=a.split("\n"),d=-1,u=-1,h=0,f=[];h!==l.length;++h)if("BOT"!==l[h].trim()){if(!(d<0)){for(var m=l[h].trim().split(","),g=m[0],p=m[1],v=l[++h]||"";1&(v.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=ir&&null==h.dense&&(h.dense=ir);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,v=0,x=0,C=0,D=0,j=f.charCodeAt(0),M=!1,E=0,V=d.charCodeAt(0),B=null!=h.dateNF?function vFe(t){var n="number"==typeof t?Et[t]:t;return n=n.replace(OQ,"(\\d+)"),new RegExp("^"+n+"$")}(h.dateNF):null;function X(){var ne=d.slice(C,D);"\r"==ne.slice(-1)&&(ne=ne.slice(0,-1));var Q={};if('"'==ne.charAt(0)&&'"'==ne.charAt(ne.length-1)&&(ne=ne.slice(1,-1).replace(/""/g,'"')),0===ne.length?Q.t="z":h.raw||0===ne.trim().length?(Q.t="s",Q.v=ne):61==ne.charCodeAt(0)?34==ne.charCodeAt(1)&&34==ne.charCodeAt(ne.length-1)?(Q.t="s",Q.v=ne.slice(2,-1).replace(/""/g,'"')):function iVe(t){return 1!=t.length}(ne)?(Q.t="n",Q.f=ne.slice(1)):(Q.t="s",Q.v=ne):"TRUE"==ne?(Q.t="b",Q.v=!0):"FALSE"==ne?(Q.t="b",Q.v=!1):isNaN(x=Gs(ne))?!isNaN((x=Hp(ne)).getDate())||B&&ne.match(B)?(Q.z=h.dateNF||Et[14],B&&ne.match(B)&&(ne=function yFe(t,n,e){var i=-1,r=-1,o=-1,s=-1,a=-1,c=-1;(n.match(OQ)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":i=f;break;case"d":o=f;break;case"h":s=f;break;case"s":c=f;break;case"m":s>=0?a=f:r=f}}),c>=0&&-1==a&&r>=0&&(a=r,r=-1);var l=(""+(i>=0?i:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var d=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==s&&-1==a&&-1==c?l:-1==i&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,ne.match(B)||[]),x=Fi(ne,1)),h.cellDates?(Q.t="d",Q.v=x):(Q.t="n",Q.v=pr(x)),!1!==h.cellText&&(Q.w=vs(Q.z,Q.v instanceof Date?pr(Q.v):Q.v)),h.cellNF||delete Q.z):(Q.t="s",Q.v=ne):(Q.t="n",!1!==h.cellText&&(Q.w=ne),Q.v=x),"z"==Q.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][v]=Q):m[dn({c:v,r:p})]=Q),V=d.charCodeAt(C=D+1),g.e.c0&&X(),m["!ref"]=Qt(g),m}(d,u):Gp(function n(d,u){var h=u||{},f=[];if(!d||0===d.length)return f;for(var m=d.split(/[\r\n]/),g=m.length-1;g>=0&&0===m[g].length;)--g;for(var p=10,v=0,x=0;x<=g;++x)-1==(v=m[x].indexOf(" "))?v=m[x].length:v++,p=Math.max(p,v);for(x=0;x<=g;++x){f[x]=[];var C=0;for(t(m[x].slice(0,p).trim(),f,x,C,h),C=1;C<=(m[x].length-p)/10+1;++C)t(m[x].slice(p+10*(C-1),p+10*C).trim(),f,x,C,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function a(d,u){var h="",f="string"==u.type?[0,0,0,0]:function ZF(t,n){var e="";switch((n||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=$s(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(d,u);switch(u.type){case"base64":h=$s(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Zt<"u"?Zt.utils.decode(u.codepage,d):on&&Buffer.isBuffer(d)?d.toString("binary"):Sc(d);break;case"array":h=Ih(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=ni(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=ni(h):"binary"==u.type&&typeof Zt<"u"&&u.codepage&&(h=Zt.utils.decode(u.codepage,Zt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?gX.to_sheet("string"==u.type?h:ni(h),u):s(h,u)}return{to_workbook:function c(d,u){return Zd(a(d,u),u)},to_sheet:a,from_sheet:function l(d){for(var f,u=[],h=Cn(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],v=h.s.c;v<=h.e.c;++v){var x=dn({r:g,c:v});if((f=m?(d["!data"][g]||[])[v]:d[x])&&null!=f.v){for(var C=(f.w||(Ac(f),f.w)||"").slice(0,10);C.length<10;)C+=" ";p.push(C+(0===v?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),Hh=function(){function t(F,te,K){if(F){Or(F,F.l||0);for(var G=K.Enum||ge;F.l255||Qe.s.r>999999)break;Qe.e.cEn&&(Qe.s.c=En),rt=ft.read_shift(4),Qe.s.r>rt&&(Qe.s.r=rt),rt=ft.read_shift(4),Qe.e.rrt&&(Qe.s.r=rt),Qe.e.r0&&R>=0;){if(32&oi)switch(31&oi){case 2:Pn={t:"n",v:Pn.v+jo&65535};break;case 3:(Pn={t:"n",v:Pn.v+jo&65535}).v>32767&&(Pn.v-=65536);break;case 7:Pn={t:"s",v:fe[Mt=Mt+jo>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&oi)}else switch(31&oi){case 1:Pn={t:"z"};break;case 2:Pn={t:"n",v:ft.read_shift(2)};break;case 7:Pn={t:"s",v:fe[Mt=ft.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&oi)}!K.sheetStubs&&"z"==Pn.t||(null!=G["!data"]?(G["!data"][rt]||(G["!data"][rt]=[]),G["!data"][rt][En]=Pn):G[Ho+kn(rt)]=Pn),++rt,--R}}}F.l+=Vn}return hn}(F,te);if(0==F[2]&&(8==F[3]||9==F[3])&&F.length>=16&&5==F[14]&&108===F[15])throw new Error("Unsupported Works 3 for Mac file");if(2==F[2])K.Enum=ge,t(F,function(Ze,Ho,Pn){switch(Pn){case 0:K.vers=Ze,Ze>=4096&&(K.qpro=!0);break;case 255:K.vers=Ze,K.works=!0;break;case 6:rt=Ze;break;case 204:Ze&&(Ee=Ze);break;case 222:Ee=Ze;break;case 15:case 51:(!K.qpro&&!K.works||51==Pn)&&Ze[1].v.charCodeAt(0)<48&&(Ze[1].v=Ze[1].v.slice(1)),(K.works||K.works2)&&(Ze[1].v=Ze[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==Pn&&!(112&~Ze[2])&&(15&Ze[2])>1&&(15&Ze[2])<15&&(Ze[1].z=K.dateNF||Et[14],K.cellDates&&(Ze[1].t="d",Ze[1].v=iC(Ze[1].v))),K.qpro&&Ze[3]>$e&&(G["!ref"]=Qt(rt),Qe[fe]=G,R.push(fe),G={},K.dense&&(En=G["!data"]=[]),rt={s:{r:0,c:0},e:{r:0,c:0}},$e=Ze[3],fe=Ee||"Sheet"+($e+1),Ee="");var oi=K.dense?(En[Ze[0].r]||[])[Ze[0].c]:G[dn(Ze[0])];if(oi){oi.t=Ze[1].t,oi.v=Ze[1].v,null!=Ze[1].z&&(oi.z=Ze[1].z),null!=Ze[1].f&&(oi.f=Ze[1].f);break}K.dense?(En[Ze[0].r]||(En[Ze[0].r]=[]),En[Ze[0].r][Ze[0].c]=Ze[1]):G[dn(Ze[0])]=Ze[1];break;case 21509:K.works2=!0}},K);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);K.Enum=at,14==F[2]&&(K.qpro=!0,F.l=0),t(F,function(Ze,Ho,Pn){switch(Pn){case 204:fe=Ze;break;case 22:Ze[1].v.charCodeAt(0)<48&&(Ze[1].v=Ze[1].v.slice(1)),Ze[1].v=Ze[1].v.replace(/\x0F./g,function(oi){return String.fromCharCode(oi.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ze[3]>$e&&(G["!ref"]=Qt(rt),Qe[fe]=G,R.push(fe),G={},K.dense&&(En=G["!data"]=[]),rt={s:{r:0,c:0},e:{r:0,c:0}},fe="Sheet"+(($e=Ze[3])+1)),hn>0&&Ze[0].r>=hn)break;K.dense?(En[Ze[0].r]||(En[Ze[0].r]=[]),En[Ze[0].r][Ze[0].c]=Ze[1]):G[dn(Ze[0])]=Ze[1],rt.e.c=128?95:Ee)}return G.write_shift(1,0),G}function m(F,te,K){var G=ue(7);return G.write_shift(1,255),G.write_shift(2,te),G.write_shift(2,F),G.write_shift(2,K,"i"),G}function p(F,te,K){var G=ue(13);return G.write_shift(1,255),G.write_shift(2,te),G.write_shift(2,F),G.write_shift(8,K,"f"),G}function x(F,te,K){var G=32768&te;return te=(G?F:0)+((te&=-32769)>=8192?te-16384:te),(G?"":"$")+(K?sn(te):kn(te))}var C={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],63:["ROUND",2],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},D=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(F){var te=[{c:0,r:0},{t:"n",v:0},0];return te[0].r=F.read_shift(2),te[3]=F[F.l++],te[0].c=F[F.l++],te}function V(F,te,K,G){var fe=ue(6+G.length);fe.write_shift(2,F),fe.write_shift(1,K),fe.write_shift(1,te),fe.write_shift(1,39);for(var Ee=0;Ee=128?95:$e)}return fe.write_shift(1,0),fe}function X(F,te){var K=M(F),G=F.read_shift(4),fe=F.read_shift(4),Ee=F.read_shift(2);if(65535==Ee)return 0===G&&3221225472===fe?(K[1].t="e",K[1].v=15):0===G&&3489660928===fe?(K[1].t="e",K[1].v=42):K[1].v=0,K;var $e=32768&Ee;return Ee=(32767&Ee)-16446,K[1].v=(1-2*$e)*(fe*Math.pow(2,Ee+32)+G*Math.pow(2,Ee)),K}function ne(F,te,K,G){var fe=ue(14);if(fe.write_shift(2,F),fe.write_shift(1,K),fe.write_shift(1,te),0==G)return fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(2,65535),fe;var Ee=0,$e=0,R=0;return G<0&&(Ee=1,G=-G),$e=0|Math.log2(G),2147483648&(R=(G/=Math.pow(2,$e-31))>>>0)||(++$e,R=(G/=2)>>>0),G-=R,R|=2147483648,R>>>=0,G*=Math.pow(2,32),fe.write_shift(4,G>>>0),fe.write_shift(4,R),fe.write_shift(2,$e+=16383+(Ee?32768:0)),fe}function Ae(F,te){var K=M(F),G=F.read_shift(8,"f");return K[1].v=G,K}function ae(F,te){return 0==F[F.l+te-1]?F.read_shift(te,"cstr"):""}function Ye(F,te){var K=ue(5+F.length);K.write_shift(2,14e3),K.write_shift(2,te);for(var G=0;G127?95:fe}return K[K.l++]=0,K}var ge={0:{n:"BOF",f:sr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function a(F,te,K){var G={s:{c:0,r:0},e:{c:0,r:0}};return 8==te&&K.qpro?(G.s.c=F.read_shift(1),F.l++,G.s.r=F.read_shift(2),G.e.c=F.read_shift(1),F.l++,G.e.r=F.read_shift(2),G):(G.s.c=F.read_shift(2),G.s.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),G.e.c=F.read_shift(2),G.e.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),65535==G.s.c&&(G.s.c=G.e.c=G.s.r=G.e.r=0),G)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function f(F,te,K){var G=l(F,0,K);return G[1].v=F.read_shift(2,"i"),G}},14:{n:"NUMBER",f:function g(F,te,K){var G=l(F,0,K);return G[1].v=F.read_shift(8,"f"),G}},15:{n:"LABEL",f:function d(F,te,K){var G=F.l+te,fe=l(F,0,K);if(fe[1].t="s",20768==K.vers){F.l++;var Ee=F.read_shift(1);return fe[1].v=F.read_shift(Ee,"utf8"),fe}return K.qpro&&F.l++,fe[1].v=F.read_shift(G-F.l,"cstr"),fe}},16:{n:"FORMULA",f:function v(F,te,K){var G=F.l+te,fe=l(F,0,K);if(fe[1].v=F.read_shift(8,"f"),K.qpro)F.l=G;else{var Ee=F.read_shift(2);(function j(F,te){Or(F,0);for(var K=[],G=0,fe="",Ee="",$e="",Qe="";F.lK.length)return void console.error("WK1 bad formula parse 0x"+R.toString(16)+":|"+K.join("|")+"|");var hn=K.slice(-G);K.length-=G,K.push(C[R][0]+"("+hn.join(",")+")")}}}1==K.length?te[1].f=""+K[0]:console.error("WK1 bad formula parse |"+K.join("|")+"|")})(F.slice(F.l,F.l+Ee),fe),F.l+=Ee}return fe}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:function h(F,te,K){var G=F.l+te,fe=l(F,0,K);if(fe[1].t="s",20768==K.vers){var Ee=F.read_shift(1);return fe[1].v=F.read_shift(Ee,"utf8"),fe}return fe[1].v=F.read_shift(G-F.l,"cstr"),fe}},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ae},222:{n:"SHEETNAMELP",f:function ee(F,te){var K=F[F.l++];K>te-1&&(K=te-1);for(var G="";G.length>1;if(1&K[1].v)switch(7&G){case 0:G=5e3*(G>>3);break;case 1:G=500*(G>>3);break;case 2:G=(G>>3)/20;break;case 3:G=(G>>3)/200;break;case 4:G=(G>>3)/2e3;break;case 5:G=(G>>3)/2e4;break;case 6:G=(G>>3)/16;break;case 7:G=(G>>3)/64}return K[1].v=G,K}},25:{n:"FORMULA19",f:function Q(F,te){var K=X(F);return F.l+=te-14,K}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function pe(F,te){for(var K={},G=F.l+te;F.l>6,K}},38:{n:"??"},39:{n:"NUMBER27",f:Ae},40:{n:"FORMULA28",f:function ve(F,te){var K=Ae(F);return F.l+=te-12,K}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ae},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function ye(F,te,K){if(K.qpro&&!(te<21)){var G=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[G,F.read_shift(te-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function i(F,te){var K=te||{};if(+K.codepage>=0&&ca(+K.codepage),"string"==K.type)throw new Error("Cannot write WK1 to JS string");var G=xs(),fe=Cn(F["!ref"]),Ee=null!=F["!data"],$e=[];je(G,0,function o(F){var te=ue(2);return te.write_shift(2,F),te}(1030)),je(G,6,function c(F){var te=ue(8);return te.write_shift(2,F.s.c),te.write_shift(2,F.s.r),te.write_shift(2,F.e.c),te.write_shift(2,F.e.r),te}(fe));for(var Qe=Math.min(fe.e.r,8191),R=fe.s.c;R<=fe.e.c;++R)$e[R]=sn(R);for(var Mt=fe.s.r;Mt<=Qe;++Mt){var En=kn(Mt);for(R=fe.s.c;R<=fe.e.c;++R){var rt=Ee?(F["!data"][Mt]||[])[R]:F[$e[R]+En];rt&&"z"!=rt.t&&("n"==rt.t?(0|rt.v)==rt.v&&rt.v>=-32768&&rt.v<=32767?je(G,13,m(Mt,R,rt.v)):je(G,14,p(Mt,R,rt.v)):je(G,15,u(Mt,R,Ac(rt).slice(0,239))))}}return je(G,1),G.end()},book_to_wk3:function r(F,te){var K=te||{};if(+K.codepage>=0&&ca(+K.codepage),"string"==K.type)throw new Error("Cannot write WK3 to JS string");var G=xs();je(G,0,function s(F){var te=ue(26);te.write_shift(2,4096),te.write_shift(2,4),te.write_shift(4,0);for(var K=0,G=0,fe=0,Ee=0;Ee8191&&(K=8191),te.write_shift(2,K),te.write_shift(1,fe),te.write_shift(1,G),te.write_shift(2,0),te.write_shift(2,0),te.write_shift(1,1),te.write_shift(1,2),te.write_shift(4,0),te.write_shift(4,0),te}(F));for(var fe=0,Ee=0;fe=0;--o)n=((16384&n?1:0)|n<<1&32767)^e[o];return 52811^n}function Xb(t){for(var n=0,e=1;3!=n;++n)e=256*e+(t[n]>255?255:t[n]<0?0:t[n]);return e.toString(16).toUpperCase().slice(1)}var Uo=6;function Yb(t){return Math.floor((t+Math.round(128/Uo)/256)*Uo)}function Zb(t){return Math.floor((t-5)/Uo*100+.5)/100}function yC(t){return Math.round((t*Uo+5)/Uo*256)/256}function eu(t){t.width?(t.wpx=Yb(t.width),t.wch=Zb(t.wpx),t.MDW=Uo):t.wpx?(t.wch=Zb(t.wpx),t.width=yC(t.wch),t.MDW=Uo):"number"==typeof t.wch&&(t.width=yC(t.wch),t.wpx=Yb(t.width),t.MDW=Uo),t.customWidth&&delete t.customWidth}var wX=96;function Jb(t){return 96*t/wX}function Kp(t){return t*wX/96}function OLe(t,n,e){e||(e=ue(6+4*n.length)),e.write_shift(2,t),Lr(n,e);var i=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),i}var OF,VLe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],BLe=No;function kX(t,n){n||(n=ue(84)),OF||(OF=eC(VLe));var e=OF[t.patternType];null==e&&(e=40),n.write_shift(4,e);var i=0;if(40!=e)for(lC({auto:1},n),lC({auto:1},n);i<12;++i)n.write_shift(4,0);else{for(;i<4;++i)n.write_shift(4,0);for(;i<12;++i)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function CX(t,n,e){return e||(e=ue(16)),e.write_shift(2,n||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function ev(t,n){return n||(n=ue(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var zLe=No;function t3e(t,n){var e=xs();return ke(e,278),function WLe(t,n){if(n){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)null!=n[r]&&++e}),0!=e&&(ke(t,615,Ua(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)null!=n[r]&&ke(t,44,OLe(r,n[r]))}),ke(t,616))}}(e,t.SSF),function qLe(t){ke(t,611,Ua(1)),ke(t,43,function LLe(t,n){n||(n=ue(153)),n.write_shift(2,20*t.sz),function pOe(t,n){n||(n=ue(2)),n.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),n.write_shift(1,0)}(t,n),n.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),n.write_shift(2,e),n.write_shift(1,t.underline||0),n.write_shift(1,t.family||0),n.write_shift(1,t.charset||0),n.write_shift(1,0),lC(t.color,n);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),n.write_shift(1,i),Lr(t.name,n),n.length>n.l?n.slice(0,n.l):n}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ke(t,612)}(e),function QLe(t){ke(t,603,Ua(2)),ke(t,45,kX({patternType:"none"})),ke(t,45,kX({patternType:"gray125"})),ke(t,604)}(e),function KLe(t){ke(t,613,Ua(1)),ke(t,46,function HLe(t,n){return n||(n=ue(51)),n.write_shift(1,0),ev(0,n),ev(0,n),ev(0,n),ev(0,n),ev(0,n),n.length>n.l?n.slice(0,n.l):n}()),ke(t,614)}(e),function XLe(t){ke(t,626,Ua(1)),ke(t,47,CX({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ke(t,627)}(e),function YLe(t,n){ke(t,617,Ua(n.length)),n.forEach(function(e){ke(t,47,CX(e,0))}),ke(t,618)}(e,n.cellXfs),function ZLe(t){ke(t,619,Ua(1)),ke(t,48,function jLe(t,n){return n||(n=ue(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),Gb(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}({xfId:0,builtinId:0,name:"Normal"})),ke(t,620)}(e),function JLe(t){ke(t,505,Ua(0)),ke(t,506)}(e),function e3e(t){ke(t,508,function $Le(t,n,e){var i=ue(2052);return i.write_shift(4,t),Gb(n,i),Gb(e,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),ke(t,509)}(e),ke(e,279),e.end()}function NF(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[rr];return e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]='',e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]='',e[e.length]="",e[e.length]="",e[e.length]="",e[e.length]="",e.join("")}function EX(t,n){var e=[21600,21600],i=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Ne("xml",null,{"xmlns:v":Ws.v,"xmlns:o":Ws.o,"xmlns:x":Ws.x,"xmlns:mv":Ws.mv}).replace(/\/>/,">"),Ne("o:shapelayout",Ne("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,s=n||[];return s.length>0&&r.push(Ne("v:shapetype",[Ne("v:stroke",null,{joinstyle:"miter"}),Ne("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:i})),s.forEach(function(a){++o,r.push(function O3e(t,n){var e=Wn(t[0]),i={color2:"#BEFF82",type:"gradient"};"gradient"==i.type&&(i.angle="-180");var r="gradient"==i.type?Ne("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ne("v:fill",r,i);return["",o,Ne("v:shadow",null,{on:"t",obscured:"t"}),Ne("v:path",null,{"o:connecttype":"none"}),'
','',"","",fo("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),fo("x:AutoFill","False"),fo("x:Row",String(e.r)),fo("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(a,o))}),r.push(""),r.join("")}function L3e(t){var n=[rr,Ne("comments",null,{xmlns:Ah[0]})],e=[];return n.push(""),t.forEach(function(i){i[1].forEach(function(r){var o=tn(r.a);-1==e.indexOf(o)&&(e.push(o),n.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),n.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),n.push("SheetJ5")),n.push(""),n.push(""),t.forEach(function(i){var r=0,o=[],s=0;if(i[1][0]&&i[1][0].T&&i[1][0].ID&&(r=e.indexOf("tc="+i[1][0].ID)),i[1].forEach(function(l){l.a&&(r=e.indexOf(tn(l.a))),l.T&&++s,o.push(null==l.t?"":tn(l.t))}),0===s)i[1].forEach(function(l){n.push(''),n.push(fo("t",null==l.t?"":tn(l.t))),n.push("")});else{n.push('');for(var a="Comment:\n "+o[0]+"\n",c=1;c")}}),n.push(""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function B3e(t,n,e){var i=[rr,Ne("ThreadedComments",null,{xmlns:Fr.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(s,a){if(s.T){s.a&&-1==n.indexOf(s.a)&&n.push(s.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==a?o=c.id:c.parentId=o,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+n.indexOf(s.a)).slice(-12)+"}"),i.push(Ne("threadedComment",fo("text",s.t||""),c))}else delete s.ID})}),i.push(""),i.join("")}var $3e=Lo;function q3e(t){var n=xs(),e=[];return ke(n,628),ke(n,630),t.forEach(function(i){i[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),ke(n,632,function G3e(t){return Lr(t.slice(0,54))}(r.a)))})}),ke(n,631),ke(n,633),t.forEach(function(i){i[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:Wn(i[0]),e:Wn(i[0])};ke(n,635,function j3e(t,n){return null==n&&(n=ue(36)),n.write_shift(4,t[1].iauthor),Wp(t[0],n),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n}([o,r])),r.t&&r.t.length>0&&ke(n,637,function lOe(t,n){var e=!1;return null==n&&(e=!0,n=ue(23+4*t.t.length)),n.write_shift(1,1),Lr(t.t,n),n.write_shift(4,1),function sOe(t,n){n||(n=ue(4)),n.write_shift(2,t.ich||0),n.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},n),e?n.slice(0,n.l):n}(r)),ke(n,636),delete r.iauthor})}),ke(n,634),ke(n,629),n.end()}var Y3e=["xlsb","xlsm","xlam","biff8","xla"],jh=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,n={r:0,c:0};function e(i,r,o,s){var a=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==s.length?a=!0:"["==s.charAt(0)&&(a=!0,s=s.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=s.length>0?0|parseInt(s,10):0;return a?d+=n.c:--d,c?l+=n.r:--l,r+(a?"":"$")+sn(d)+(c?"":"$")+kn(l)}return function(r,o){return n=o,r.replace(t,e)}}(),LF=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,kC=function(){return function(n,e){return n.replace(LF,function(i,r,o,s,a,c){var l=uF(s)-(o?0:e.c),d=dF(c)-(a?0:e.r);return r+"R"+("$"==a?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function DX(t,n){return t.replace(LF,function(e,i,r,o,s,a){return i+("$"==r?r+o:sn(uF(o)+n.c))+("$"==s?s+a:kn(dF(a)+n.r))})}function br(t){t.l+=1}function tu(t,n){var e=t.read_shift(1==n?1:2);return[16383&e,e>>14&1,e>>15&1]}function AX(t,n,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return MX(t);12==e.biff&&(i=4)}var r=t.read_shift(i),o=t.read_shift(i),s=tu(t,2),a=tu(t,2);return{s:{r,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:a[0],cRel:a[1],rRel:a[2]}}}function MX(t){var n=tu(t,2),e=tu(t,2),i=t.read_shift(1),r=t.read_shift(1);return{s:{r:n[0],c:i,cRel:n[1],rRel:n[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function RX(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return function oVe(t){var n=tu(t,2),e=t.read_shift(1);return{r:n[0],c:e,cRel:n[1],rRel:n[2]}}(t);var i=t.read_shift(e&&12==e.biff?4:2),r=tu(t,2);return{r:i,c:r[0],cRel:r[1],rRel:r[2]}}function sVe(t){var n=t.read_shift(2),e=t.read_shift(2);return{r:n,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function PX(t){var n=1&t[t.l+1];return t.l+=4,[n,1]}function FX(t){return[t.read_shift(1),t.read_shift(1)]}function OVe(t,n){var e=[t.read_shift(1)];if(12==n)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function or(t,n){return 1===t.read_shift(n)}(t,1)?"TRUE":"FALSE",12!=n&&(t.l+=7);break;case 37:case 16:e[1]=Ml[t[t.l]],t.l+=12==n?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Vo(t);break;case 2:e[1]=function Uh(t,n,e){if(e.biff>5)return function Kb(t,n,e){var i=t.read_shift(e&&2==e.biff?1:2);return 0===i?(t.l++,""):function Bh(t,n,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(n,"cpstr");if(e.biff>=12)return t.read_shift(n,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(n,0===r?"sbcs-cont":"dbcs-cont")}(t,i,e)}(t,0,e);var i=t.read_shift(1);return 0===i?(t.l++,""):t.read_shift(i,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:n>0&&n<8?2:n});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function NVe(t,n,e){for(var i=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=i;++o)r.push((12==e.biff?Oh:gC)(t,8));return r}function LVe(t,n,e){var i=0,r=0;12==e.biff?(i=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),i=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--i,0==--r&&(r=256));for(var o=0,s=[];o!=i&&(s[o]=[]);++o)for(var a=0;a!=r;++a)s[o][a]=OVe(t,e.biff);return s}function tv(t,n,e){return t.l+=2,[sVe(t)]}function VF(t){return t.l+=6,[]}function OX(t){return t.l+=2,[sr(t),1&t.read_shift(2)]}var iBe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],NX={1:{n:"PtgExp",f:function IVe(t,n,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:No},3:{n:"PtgAdd",f:br},4:{n:"PtgSub",f:br},5:{n:"PtgMul",f:br},6:{n:"PtgDiv",f:br},7:{n:"PtgPower",f:br},8:{n:"PtgConcat",f:br},9:{n:"PtgLt",f:br},10:{n:"PtgLe",f:br},11:{n:"PtgEq",f:br},12:{n:"PtgGe",f:br},13:{n:"PtgGt",f:br},14:{n:"PtgNe",f:br},15:{n:"PtgIsect",f:br},16:{n:"PtgUnion",f:br},17:{n:"PtgRange",f:br},18:{n:"PtgUplus",f:br},19:{n:"PtgUminus",f:br},20:{n:"PtgPercent",f:br},21:{n:"PtgParen",f:br},22:{n:"PtgMissArg",f:br},23:{n:"PtgStr",f:function FVe(t,n,e){return t.l++,Qb(t,0,e)}},26:{n:"PtgSheet",f:function sBe(t,n,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function aBe(t,n,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function AVe(t){return t.l++,Ml[t.read_shift(1)]}},29:{n:"PtgBool",f:function RVe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function MVe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function PVe(t){return t.l++,Vo(t)}},32:{n:"PtgArray",f:function mVe(t,n,e){var i=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[i]}},33:{n:"PtgFunc",f:function TVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[BBe[r],UX[r],i]}},34:{n:"PtgFuncVar",f:function EVe(t,n,e){var i=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==i?-1:0,t.read_shift(1)]:function SVe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?UX:VBe)[o[1]]]}},35:{n:"PtgName",f:function VVe(t,n,e){var i=t.read_shift(1)>>>5&3,o=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[i,0,o]}},36:{n:"PtgRef",f:function wVe(t,n,e){var i=(96&t[t.l])>>5;return t.l+=1,[i,RX(t,0,e)]}},37:{n:"PtgArea",f:function lVe(t,n,e){return[(96&t[t.l++])>>5,AX(t,0,e)]}},38:{n:"PtgMemArea",f:function zVe(t,n,e){var i=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[i,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:No},40:{n:"PtgMemNoMem",f:No},41:{n:"PtgMemFunc",f:function HVe(t,n,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function jVe(t,n,e){var i=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[i]}},43:{n:"PtgAreaErr",f:function uVe(t,n,e){var i=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[i]}},44:{n:"PtgRefN",f:function kVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=function aVe(t,n,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return function cVe(t){var n=t.read_shift(2),e=t.read_shift(1),i=(32768&n)>>15,r=(16384&n)>>14;return n&=16383,1==i&&n>=8192&&(n-=16384),1==r&&e>=128&&(e-=256),{r:n,c:e,cRel:r,rRel:i}}(t);var r=t.read_shift(i>=12?4:2),o=t.read_shift(2),s=(16384&o)>>14,a=(32768&o)>>15;if(o&=16383,1==a)for(;r>524287;)r-=1048576;if(1==s)for(;o>8191;)o-=16384;return{r,c:o,cRel:s,rRel:a}}(t,0,e);return[i,r]}},45:{n:"PtgAreaN",f:function fVe(t,n,e){var i=(96&t[t.l++])>>5,r=function rVe(t,n,e){if(e.biff<8)return MX(t);var i=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=tu(t,2),s=tu(t,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:s[0],cRel:s[1],rRel:s[2]}}}(t,0,e);return[i,r]}},46:{n:"PtgMemAreaN",f:function cBe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function lBe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function BVe(t,n,e){return 5==e.biff?function UVe(t){var n=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var i=t.read_shift(2);return t.l+=12,[n,e,i]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function CVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[i,r,RX(t,0,e)]}},59:{n:"PtgArea3d",f:function dVe(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[i,r,AX(t,0,e)]}},60:{n:"PtgRefErr3d",f:function $Ve(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[i,r]}},61:{n:"PtgAreaErr3d",f:function hVe(t,n,e){var i=(96&t[t.l++])>>5,r=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[i,r]}},255:{}},uBe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},hBe={1:{n:"PtgElfLel",f:OX},2:{n:"PtgElfRw",f:tv},3:{n:"PtgElfCol",f:tv},6:{n:"PtgElfRwV",f:tv},7:{n:"PtgElfColV",f:tv},10:{n:"PtgElfRadical",f:tv},11:{n:"PtgElfRadicalS",f:VF},13:{n:"PtgElfColS",f:VF},15:{n:"PtgElfColSV",f:VF},16:{n:"PtgElfRadicalLel",f:OX},25:{n:"PtgList",f:function rBe(t){t.l+=2;var n=t.read_shift(2),e=t.read_shift(2),i=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:n,coltype:3&e,rt:iBe[e>>2&31],idx:i,c:r,C:o}}},29:{n:"PtgSxName",f:function oBe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},fBe={0:{n:"PtgAttrNoop",f:function dBe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function vVe(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[i]}},2:{n:"PtgAttrIf",f:function _Ve(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function pVe(t,n,e){t.l+=2;for(var i=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=i;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function gVe(t,n,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function DVe(t,n,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:PX},33:{n:"PtgAttrBaxcel",f:PX},64:{n:"PtgAttrSpace",f:function yVe(t){return t.read_shift(2),FX(t)}},65:{n:"PtgAttrSpaceSemi",f:function xVe(t){return t.read_shift(2),FX(t)}},128:{n:"PtgAttrIfError",f:function bVe(t){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},255:{}};function nv(t,n,e,i){if(i.biff<8)return No(t,n);for(var r=t.l+n,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=LVe(t,0,i),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=NVe(t,0,i),o.push(e[s][2]);break;case"PtgExp":i&&12==i.biff&&(e[s][1][1]=t.read_shift(4),o.push(e[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[s][0]}return 0!=(n=r-t.l)&&o.push(No(t,n)),o}function mBe(t){for(var n=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function gBe(t,n){var e=t.lastIndexOf("!"),i=n.lastIndexOf("!");return-1==e&&-1==i?t+":"+n:e>0&&i>0&&t.slice(0,e).toLowerCase()==n.slice(0,i).toLowerCase()?t+":"+n.slice(i+1):(console.error("Cannot hydrate range",t,n),t+":"+n)}function LX(t,n,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[n]))return t.SheetNames[n];if(!t.XTI)return"SH33TJSERR6";var i=t.XTI[n];if(e.biff<8)return n>1e4&&(n-=65536),n<0&&(n=-n),0==n?"":t.XTI[n-1];if(!i)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[i[0]][0]){case 357:return r=-1==i[1]?"#REF":t.SheetNames[i[1]],i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[i[0]][0];default:return"SH33TJSSRC"+t[i[0]][0]}switch(t[i[0]][0][0]){case 1025:return r=-1==i[1]?"#REF":t.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?r:r+":"+t.SheetNames[i[2]];case 14849:return t[i[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[i[0]][0][3]?(r=-1==i[1]?"#REF":t[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?r:r+":"+t[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function VX(t,n,e){var i=LX(t,n,e);return"#REF"==i?i:$b(i,e)}function zo(t,n,e,i,r){var c,l,d,f,o=r&&r.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},a=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",v=0,x=t[0].length;v=0){switch(t[0][g][1][0]){case 0:p=Rn(" ",t[0][g][1][1]);break;case 1:p=Rn("\r",t[0][g][1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}l+=p,g=-1}a.push(l+pBe[C[0]]+c);break;case"PtgIsect":c=a.pop(),l=a.pop(),a.push(l+" "+c);break;case"PtgUnion":c=a.pop(),l=a.pop(),a.push(l+","+c);break;case"PtgRange":c=a.pop(),l=a.pop(),a.push(gBe(l,c));break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":d=zb(C[1][1],s,r),a.push(Hb(d,o));break;case"PtgRefN":d=e?zb(C[1][1],e,r):C[1][1],a.push(Hb(d,o));break;case"PtgRef3d":u=C[1][1],d=zb(C[1][2],s,r),m=VX(i,u,r),a.push(m+"!"+Hb(d,o));break;case"PtgFunc":case"PtgFuncVar":var j=C[1][0],M=C[1][1];j||(j=0);var E=0==(j&=127)?[]:a.slice(-j);a.length-=j,"User"===M&&(M=E.shift()),a.push(M+"("+E.join(",")+")");break;case"PtgBool":a.push(C[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":a.push(C[1]);break;case"PtgNum":a.push(String(C[1]));break;case"PtgStr":a.push('"'+C[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=_K(C[1][1],e?{s:e}:s,r),a.push(lF(f,r));break;case"PtgArea":f=_K(C[1][1],s,r),a.push(lF(f,r));break;case"PtgArea3d":f=C[1][2],m=VX(i,u=C[1][1],r),a.push(m+"!"+lF(f,r));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgName":var V=(i.names||[])[(h=C[1][2])-1]||(i[0]||[])[h],B=V?V.Name:"SH33TJSNAME"+String(h);B&&"_xlfn."==B.slice(0,6)&&!r.xlfn&&(B=B.slice(6)),a.push(B);break;case"PtgNameX":var ne,X=C[1][1];if(h=C[1][2],!(r.biff<=5)){var Q="";if(14849==((i[X]||[])[0]||[])[0]||(1025==((i[X]||[])[0]||[])[0]?i[X][h]&&i[X][h].itab>0&&(Q=i.SheetNames[i[X][h].itab-1]+"!"):Q=i.SheetNames[h-1]+"!"),i[X]&&i[X][h])Q+=i[X][h].Name;else if(i[0]&&i[0][h])Q+=i[0][h].Name;else{var Te=(LX(i,X,r)||"").split(";;");Te[h-1]?Q=Te[h-1]:Q+="SH33TJSERRX"}a.push(Q);break}X<0&&(X=-X),i[X]&&(ne=i[X][h]),ne||(ne={Name:"SH33TJSERRY"}),a.push(ne.Name);break;case"PtgParen":var Ae="(",ve=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:Ae=Rn(" ",t[0][g][1][1])+Ae;break;case 3:Ae=Rn("\r",t[0][g][1][1])+Ae;break;case 4:ve=Rn(" ",t[0][g][1][1])+ve;break;case 5:ve=Rn("\r",t[0][g][1][1])+ve;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}a.push(Ae+a.pop()+ve);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":a.push("#REF!");break;case"PtgExp":var ae={c:e.c,r:e.r};if(i.sharedf[dn(d={c:C[1][1],r:C[1][0]})]){var ee=i.sharedf[dn(d)];a.push(zo(ee,0,ae,i,r))}else{var ye=!1;for(c=0;c!=i.arrayf.length;++c)if(!(d.c<(l=i.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){a.push(zo(l[1],0,ae,i,r)),ye=!0;break}ye||a.push(C[1])}break;case"PtgArray":a.push("{"+mBe(C[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=v;break;case"PtgMissArg":a.push("");break;case"PtgList":a.push("Table"+C[1].idx+"[#"+C[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(C))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][v][0])){var Ye=!0;switch((C=t[0][g])[1][0]){case 4:Ye=!1;case 0:p=Rn(" ",C[1][1]);break;case 5:Ye=!1;case 1:p=Rn("\r",C[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+C[1][0])}a.push((Ye?p:"")+a.pop()+(Ye?"":p)),g=-1}}if(a.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==a[0]||"FALSE"!=a[0]&&a[0]}function CC(t,n,e){var i=t.read_shift(4),r=function iv(t,n,e){for(var r,o,i=t.l+n,s=[];i!=t.l;)n=i-t.l,r=NX[o=t[t.l]]||NX[uBe[o]],(24===o||25===o)&&(r=(24===o?hBe:fBe)[t[t.l+1]]),r&&r.f?s.push([r.n,r.f(t,n,e)]):No(t,n);return s}(t,i,e),o=t.read_shift(4);return[r,o>0?nv(t,o,r,e):null]}var CBe=CC,TC=CC,TBe=CC,EBe=CC;function BX(t){if((0|t)==t&&t=0){var n=ue(11);return n.write_shift(4,3),n.write_shift(1,30),n.write_shift(2,t),n.write_shift(4,0),n}var e=ue(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var LBe=function NBe(t,n){if("number"==typeof t)return BX(t);if("boolean"==typeof t)return function DBe(t){var n=ue(10);return n.write_shift(4,2),n.write_shift(1,29),n.write_shift(1,t?1:0),n.write_shift(4,0),n}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function SBe(t){var n=ue(10);return n.write_shift(4,2),n.write_shift(1,28),n.write_shift(1,t),n.write_shift(4,0),n}(+yF[t]);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function ABe(t){var n=Wn(t),e=ue(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,n.r),e.write_shift(2,n.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),e.write_shift(4,0),e}(t);if(t.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function PBe(t){var n=t.split(":"),e=n[0],i=ue(23);i.write_shift(4,15);var r=Wn(e=n[0]);return i.write_shift(1,36),i.write_shift(4,r.r),i.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),i.write_shift(4,0),r=Wn(e=n[1]),i.write_shift(1,36),i.write_shift(4,r.r),i.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),i.write_shift(4,0),i.write_shift(1,17),i.write_shift(4,0),i}(t);if(t.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function OBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=Nr(t),o=ue(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+n.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,r.s.r),o.write_shift(4,r.e.r),o.write_shift(2,r.s.c),o.write_shift(2,r.e.c),o.write_shift(4,0),o}(t,n);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function MBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e),r=Wn(t=t.slice(e+1));"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var o=ue(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(s){return s.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,r.r),o.write_shift(2,r.c|("$"==t.charAt(0)?0:1)<<14|(t.match(/\$\d/)?0:1)<<15),o.write_shift(4,0),o}(t,n);if(t.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function FBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");s=r[0];var o=ue(27);o.write_shift(4,19);var s=r[0],a=Wn(s);return o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,a.r),o.write_shift(2,a.c|("$"==s.charAt(0)?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),a=Wn(s=r[1]),o.write_shift(1,58),o.write_shift(2,2+n.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(i.toLowerCase())),o.write_shift(4,a.r),o.write_shift(2,a.c|("$"==s.charAt(0)?0:1)<<14|(s.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,n);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function RBe(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e);t=t.slice(e+1),"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var r=ue(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+n.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(i.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,n);if(/^".*"$/.test(t))return function IBe(t){var n=ue(7);n.write_shift(4,3+2*t.length),n.write_shift(1,23),n.write_shift(2,t.length);var e=ue(2*t.length);e.write_shift(2*t.length,t,"utf16le");var i=ue(4);return i.write_shift(4,0),mr([n,e,i])}(t);if(/^[+-]\d+$/.test(t))return BX(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},VBe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},UX={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},BBe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function UBe(t){return("of:="+t.replace(LF,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function HX(t){return t.replace(/!/,".")}var ov=typeof Map<"u";function zF(t,n,e){var i=0,r=t.length;if(e){if(ov?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var o=ov?e.get(n):e[n];i-1?(e.width=yC(i),e.customWidth=1):null!=n.width&&(e.width=n.width),n.hidden&&(e.hidden=!0),null!=n.level&&(e.outlineLevel=e.level=n.level),e}function $h(t,n){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==n&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function nu(t,n,e){var i=e.revssf[null!=n.z?n.z:"General"],r=60,o=t.length;if(null==i&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Yd(n.z,r),e.ssf[r]=n.z,e.revssf[n.z]=i=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===i)return r;return t[o]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function zBe(t,n,e){if(t&&t["!ref"]){var i=Cn(t["!ref"]);if(i.e.c"u")return"";var r="",o=t.t,s=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=Ml[t.v];break;case"d":i&&i.cellDates?r=Fi(t.v,-1).toISOString():((t=ei(t)).t="n",r=""+(t.v=pr(Fi(t.v)))),typeof t.z>"u"&&(t.z=Et[14]);break;default:r=t.v}var a="z"==t.t||null==t.v?"":fo("v",tn(r)),c={r:n},l=nu(i.cellXfs,t,i);switch(0!==l&&(c.s=l),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){a=fo("v",""+zF(i.Strings,t.v,i.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=s),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,n.length)==n?{t:"array",ref:t.F}:null;a=Ne("f",tn(t.f),d)+(null!=t.v?a:"")}return t.l&&(t.l.display=tn(r),e["!links"].push([n,t.l])),t.D&&(c.cm=1),Ne("c",a,c)}function b5e(t,n,e,i){var s,r=[rr,Ne("worksheet",null,{xmlns:Ah[0],"xmlns:r":Fr.r})],a="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Cn(l);if(d.e.c>16383||d.e.r>1048575){if(n.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),l=Qt(d)}i||(i={}),c["!comments"]=[];var u=[];(function t5e(t,n,e,i,r){var o=!1,s={},a=null;if("xlsx"!==i.bookType&&n.vbaraw){var c=n.SheetNames[e];try{n.Workbook&&(c=n.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,s.codeName=Ic(tn(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),a=(a||"")+Ne("outlinePr",null,l)}!o&&!a||(r[r.length]=Ne("sheetPr",a,s))})(c,e,t,n,r),r[r.length]=Ne("dimension",null,{ref:l}),r[r.length]=function m5e(t,n,e,i){var r={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),Ne("sheetViews",Ne("sheetView",null,r),{})}(0,0,0,e),n.sheetFormat&&(r[r.length]=Ne("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function l5e(t,n){for(var i,e=[""],r=0;r!=n.length;++r)(i=n[r])&&(e[e.length]=Ne("col",null,EC(r,i)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[s=r.length]="",c["!links"]=[],null!=c["!ref"]&&(a=function _5e(t,n,e,i){var c,p,r=[],o=[],s=Cn(t["!ref"]),a="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},v=-1;for(h=s.s.c;h<=s.e.c;++h)d[h]=sn(h);for(u=s.s.r;u<=s.e.r;++u){for(o=[],l=kn(u),h=s.s.c;h<=s.e.c;++h){c=d[h]+l;var x=m?(t["!data"][u]||[])[h]:t[c];void 0!==x&&null!=(a=p5e(x,c,t,n))&&o.push(a)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),v=-1,p.hpx?v=Jb(p.hpx):p.hpt&&(v=p.hpt),v>-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Ne("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Ne("row","",g));return r.join("")}(c,n),a.length>0&&(r[r.length]=a)),r.length>s+1&&(r[r.length]="",r[s]=r[s].replace("/>",">")),c["!protect"]&&(r[r.length]=function r5e(t){var n={sheet:1};return n5e.forEach(function(e){null!=t[e]&&t[e]&&(n[e]="1")}),i5e.forEach(function(e){null!=t[e]&&!t[e]&&(n[e]="0")}),t.password&&(n.password=RF(t.password).toString(16).toUpperCase()),Ne("sheetProtection",null,n)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function u5e(t,n,e,i){var r="string"==typeof t.ref?t.ref:Qt(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,s=Nr(r);s.s.r==s.e.r&&(s.e.r=Nr(n["!ref"]).e.r,r=Qt(s));for(var a=0;a0&&(r[r.length]=function JBe(t){if(0===t.length)return"";for(var n='',e=0;e!=t.length;++e)n+='';return n+""}(c["!merges"]));var f,h=-1,m=-1;return c["!links"].length>0&&(r[r.length]="",c["!links"].forEach(function(g){g[1].Target&&(f={ref:g[0]},"#"!=g[1].Target.charAt(0)&&(m=ii(i,-1,tn(g[1].Target).replace(/#.*$/,""),nn.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=tn(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=tn(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Ne("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function a5e(t){return $h(t),Ne("pageMargins",null,t)}(c["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&(r[r.length]=fo("ignoredErrors",Ne("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ii(i,-1,"../drawings/drawing"+(t+1)+".xml",nn.DRAW),r[r.length]=Ne("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ii(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",nn.VML),r[r.length]=Ne("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function x5e(t,n,e,i){var r=function y5e(t,n,e){var i=ue(145),r=(e["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var o=320;r.hpx?o=20*Jb(r.hpx):r.hpt&&(o=20*r.hpt),i.write_shift(2,o),i.write_shift(1,0);var s=0;r.level&&(s|=r.level),r.hidden&&(s|=16),(r.hpx||r.hpt)&&(s|=32),i.write_shift(1,s),i.write_shift(1,0);var a=0,c=i.l;i.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(n.s.c>u+1<<10||n.e.ci.l?i.slice(0,i.l):i}(i,e,n);(r.length>17||(n["!rows"]||[])[i])&&ke(t,0,r)}var w5e=Oh,k5e=Wp;var o8e=Oh,s8e=Wp,WX=["left","right","top","bottom","header","footer"];function k8e(t,n,e,i,r,o,s){var a={r:e,c:i};if(n.c&&o["!comments"].push([dn(a),n.c]),void 0===n.v)return!1;var c="";switch(n.t){case"b":c=n.v?"1":"0";break;case"d":(n=ei(n)).z=n.z||Et[14],n.v=pr(Fi(n.v)),n.t="n";break;case"n":case"e":c=""+n.v;break;default:c=n.v}switch(a.s=nu(r.cellXfs,n,r),n.l&&o["!links"].push([dn(a),n.l]),n.t){case"s":case"str":return r.bookSST?(c=zF(r.Strings,null==n.v?"":String(n.v),r.revStrings),a.t="s",a.v=c,s?ke(t,18,function H5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),e.write_shift(4,n.v),e}(0,a)):ke(t,7,function U5e(t,n,e){return null==e&&(e=ue(12)),Rh(n,e),e.write_shift(4,n.v),e}(0,a))):(a.t="str",s?ke(t,17,function e8e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(8+4*i.length)),Fh(n,e),Lr(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a)):ke(t,6,function Z5e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(12+4*t.v.length)),Rh(n,e),Lr(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a))),!0;case"n":return n.v==(0|n.v)&&n.v>-1e3&&n.v<1e3?s?ke(t,13,function K5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),xK(t.v,e),e}(n,a)):ke(t,2,function q5e(t,n,e){return null==e&&(e=ue(12)),Rh(n,e),xK(t.v,e),e}(n,a)):s?ke(t,16,function G5e(t,n,e){return null==e&&(e=ue(12)),Fh(n,e),Nh(t.v,e),e}(n,a)):ke(t,5,function $5e(t,n,e){return null==e&&(e=ue(16)),Rh(n,e),Nh(t.v,e),e}(n,a)),!0;case"b":return a.t="b",s?ke(t,15,function F5e(t,n,e){return null==e&&(e=ue(5)),Fh(n,e),e.write_shift(1,t.v?1:0),e}(n,a)):ke(t,4,function R5e(t,n,e){return null==e&&(e=ue(9)),Rh(n,e),e.write_shift(1,t.v?1:0),e}(n,a)),!0;case"e":return a.t="e",s?ke(t,14,function V5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(n,a)):ke(t,3,function N5e(t,n,e){return null==e&&(e=ue(9)),Rh(n,e),e.write_shift(1,t.v),e}(n,a)),!0}return s?ke(t,12,function A5e(t,n,e){return null==e&&(e=ue(4)),Fh(n,e)}(0,a)):ke(t,1,function D5e(t,n,e){return null==e&&(e=ue(8)),Rh(n,e)}(0,a)),!0}function P8e(t,n,e,i){var r=xs(),o=e.SheetNames[t],s=e.Sheets[o]||{},a=o;try{e&&e.Workbook&&(a=e.Workbook.Sheets[t].CodeName||a)}catch{}var c=Cn(s["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(n.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],ke(r,129),(e.vbaraw||s["!outline"])&&ke(r,147,function E5e(t,n,e){null==e&&(e=ue(84+4*t.length));var i=192;n&&(n.above&&(i&=-65),n.left&&(i&=-129)),e.write_shift(1,i);for(var r=1;r<3;++r)e.write_shift(1,0);return lC({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),yK(t,e),e.slice(0,e.l)}(a,s["!outline"])),ke(r,148,k5e(c)),function M8e(t,n,e){ke(t,133),ke(t,137,function _8e(t,n,e){null==e&&(e=ue(30));var i=924;return(((n||{}).Views||[])[0]||{}).RTL&&(i|=32),e.write_shift(2,i),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),ke(t,138),ke(t,134)}(r,0,e.Workbook),function E8e(t,n){!n||!n["!cols"]||(ke(t,390),n["!cols"].forEach(function(e,i){e&&ke(t,60,function f8e(t,n,e){null==e&&(e=ue(18));var i=EC(t,n);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(i.width||10)),e.write_shift(4,0);var r=0;return n.hidden&&(r|=1),"number"==typeof i.width&&(r|=2),n.level&&(r|=n.level<<8),e.write_shift(2,r),e}(i,e))}),ke(t,391))}(r,s),function C8e(t,n,e,i){var r=Cn(n["!ref"]||"A1"),s="",a=[];ke(t,145);var c=null!=n["!data"],l=r.e.r;n["!rows"]&&(l=Math.max(r.e.r,n["!rows"].length-1));for(var d=r.s.r;d<=l;++d){s=kn(d),x5e(t,n,r,d);var u=!1;if(d<=r.e.r)for(var h=r.s.c;h<=r.e.c;++h){d===r.s.r&&(a[h]=sn(h));var f=c?(n["!data"][d]||[])[h]:n[a[h]+s];u=!!f&&k8e(t,f,d,h,i,n,u)}}ke(t,146)}(r,s,0,n),function R8e(t,n){n["!protect"]&&ke(t,535,function v8e(t,n){return null==n&&(n=ue(66)),n.write_shift(2,t.password?RF(t.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){n.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),n}(n["!protect"]))}(r,s),function A8e(t,n,e,i){if(n["!autofilter"]){var r=n["!autofilter"],o="string"==typeof r.ref?r.ref:Qt(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,a=Nr(o);a.s.r==a.e.r&&(a.e.r=Nr(n["!ref"]).e.r,o=Qt(a));for(var c=0;c0){var r=ii(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",nn.VML);ke(t,551,pF("rId"+r)),n["!legacy"]=r}}(r,s,t,i),ke(r,130),r.end()}var jF=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],j8e=":][*?/\\".split("");function XX(t,n){try{if(""==t)throw new Error("Sheet name cannot be blank");if(t.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==t.charCodeAt(0)||39==t.charCodeAt(t.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==t.toLowerCase())throw new Error("Sheet name cannot be 'History'");j8e.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(n)return!1;throw e}return!0}function K8e(t,n){return n||(n=ue(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),pF(t.strRelID,n),Lr(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function l6e(t,n){var e=xs();return ke(e,131),ke(e,128,function i6e(t,n){n||(n=ue(127));for(var e=0;4!=e;++e)n.write_shift(4,0);return Lr("SheetJS",n),Lr(Ib.version,n),Lr(Ib.version,n),Lr("7262",n),n.length>n.l?n.slice(0,n.l):n}()),ke(e,153,function Y8e(t,n){n||(n=ue(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),n.write_shift(4,e),n.write_shift(4,0),yK(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(t.Workbook&&t.Workbook.WBProps||null)),function o6e(t,n){if(n.Workbook&&n.Workbook.Sheets){for(var e=n.Workbook.Sheets,i=0,r=-1,o=-1;ir||(ke(t,135),ke(t,158,function r6e(t,n){return n||(n=ue(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,t),n.write_shift(4,t),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n}(r)),ke(t,136))}}(e,t),function n6e(t,n){ke(t,143);for(var e=0;e!=n.SheetNames.length;++e)ke(t,156,K8e({Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e]&&n.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:n.SheetNames[e]}));ke(t,144)}(e,t),function c6e(t,n){ke(t,353),ke(t,357),ke(t,362,function a6e(t){var n=t.SheetNames.length,e=ue(12*n+28);e.write_shift(4,n+2),e.write_shift(4,0),e.write_shift(4,-2),e.write_shift(4,-2),e.write_shift(4,0),e.write_shift(4,-1),e.write_shift(4,-1);for(var i=0;i-1&&(i|=32,r=r.slice(6)),e.write_shift(4,i),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Lr(r),LBe(t.Ref,n)];if(t.Comment)o.push(Gb(t.Comment));else{var s=ue(4);s.write_shift(4,4294967295),o.push(s)}return mr(o)}(e,n))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),ke(e,132),e.end()}function eY(t){return Ne("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+kC(t.Ref,{r:0,c:0})})}function N6e(t,n,e,i,r,o,s){if(!t||null==t.v&&null==t.f)return"";var a={};if(t.f&&(a["ss:Formula"]="="+tn(kC(t.f,s))),t.F&&t.F.slice(0,n.length)==n){var c=Wn(t.F.slice(n.length+1));a["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(t.l&&t.l.Target&&(a["ss:HRef"]=tn(t.l.Target),t.l.Tooltip&&(a["x:HRefScreenTip"]=tn(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=s.c||l[d].s.r!=s.r||(l[d].e.c>l[d].s.c&&(a["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(a["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!i.sheetStubs)return"";break;case"n":u="Number",h=String(t.v);break;case"b":u="Boolean",h=t.v?"1":"0";break;case"e":u="Error",h=Ml[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||Et[14]);break;case"s":u="String",h=function BFe(t){return(t+"").replace(eF,function(e){return JP[e]}).replace(XQ,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=nu(i.cellXfs,t,i);a["ss:StyleID"]="s"+(21+f),a["ss:Index"]=s.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function O6e(t){return t.map(function(n){var e=function UFe(t){return t.replace(/(\r\n|[\r\n])/g," ")}(n.t||""),i=Ne("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ne("Comment",i,{"ss:Author":n.a})}).join("")}(t.c)),Ne("Cell",g,a)}function L6e(t,n){var e='"}function B6e(t,n,e){var i=[],o=e.Sheets[e.SheetNames[t]],s=o?function P6e(t,n,e,i){if(!t||!((i||{}).Workbook||{}).Names)return"";for(var r=i.Workbook.Names,o=[],s=0;s0&&i.push(""+s+""),s=o?function V6e(t,n,e,i){if(!t["!ref"])return"";var r=Cn(t["!ref"]),o=t["!merges"]||[],s=0,a=[];t["!cols"]&&t["!cols"].forEach(function(p,v){eu(p);var x=!!p.width,C=EC(v,p),D={"ss:Index":v+1};x&&(D["ss:Width"]=Yb(C.width)),p.hidden&&(D["ss:Hidden"]="1"),a.push(Ne("Column",null,D))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[L6e(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(s=0;s!=o.length;++s)if(!(o[s].s.c>u||o[s].s.r>l||o[s].e.c"),d.length>2&&a.push(d.join(""))}return a.join("")}(o,n):"",s.length>0&&i.push(""+s+"
"),i.push(function F6e(t,n,e,i){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Ne("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Ne("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Ne("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e])if(i.Workbook.Sheets[e].Hidden)r.push(Ne("Visible",1==i.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(fo("ProtectContents","True")),t["!protect"].objects&&r.push(fo("ProtectObjects","True")),t["!protect"].scenarios&&r.push(fo("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(fo("EnableSelection","UnlockedCells")):r.push(fo("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){t["!protect"][s[0]]&&r.push("<"+s[1]+"/>")})),0==r.length?"":Ne("WorksheetOptions",r.join(""),{xmlns:Ws.x})}(o,0,t,e)),o["!autofilter"]&&i.push(''),i.join("")}function U6e(t,n){n||(n={}),t.SSF||(t.SSF=ei(Et)),t.SSF&&(zp(),Ob(t.SSF),n.revssf=tC(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF,n.cellXfs=[],nu(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function I6e(t,n){var e=[];return t.Props&&e.push(function LOe(t,n){var e=[];return Pi(TF).map(function(i){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,n)),e.push(function A6e(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var i=0;i'];return n.cellXfs.forEach(function(i,r){var o=[];o.push(Ne("NumberFormat",null,{"ss:Format":tn(Et[i.numFmtId])}));var s={"ss:ID":"s"+(21+r)};e.push(Ne("Style",o.join(""),s))}),Ne("Styles",e.join(""))}(0,n),e[3]=function R6e(t){if(!((t||{}).Workbook||{}).Names)return"";for(var n=t.Workbook.Names,e=[],i=0;i0&&(i.family=a);var c=t.read_shift(1);switch(c>0&&(i.charset=c),t.l++,i.color=function fOe(t){var n={},i=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),s=t.read_shift(1),a=t.read_shift(1),c=t.read_shift(1);switch(t.l++,i){case 0:n.auto=1;break;case 1:n.index=r;var l=Lh[r];l&&(n.rgb=Xb(l));break;case 2:n.rgb=Xb([s,a,c]);break;case 3:n.theme=r}return 0!=o&&(n.tint=o>0?o/32767:o/32768),n}(t),t.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor"}return i.name=Lo(t),i}},44:{f:function FLe(t,n){return[t.read_shift(2),Lo(t)]}},45:{f:BLe},46:{f:zLe},47:{f:function ULe(t,n){var e=t.l+n,i=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:i,numFmtId:r}}},48:{},49:{f:function rOe(t){return t.read_shift(4,"i")}},50:{},51:{f:function x3e(t){for(var n=[],e=t.read_shift(4);e-- >0;)n.push([t.read_shift(4),t.read_shift(4)]);return n}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function fX(t,n,e){if(!e.cellStyles)return No(t,n);var i=e&&e.biff>=12?4:2,r=t.read_shift(i),o=t.read_shift(i),s=t.read_shift(i),a=t.read_shift(i),c=t.read_shift(2);2==i&&(t.l+=2);var l={s:r,e:o,w:s,ixfe:a,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function X5e(t){return[ha(t),hF(t),"is"]}},63:{f:function M3e(t){var n={};n.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),n.r=dn(e);var i=t.read_shift(1);return 2&i&&(n.l="1"),8&i&&(n.a="1"),n}},64:{f:function y8e(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:No,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function g8e(t){var n=t.read_shift(2);return t.l+=28,{RTL:32&n}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function T5e(t,n){var e={},i=t[t.l];return++t.l,e.above=!(64&i),e.left=!(128&i),t.l+=18,e.name=dOe(t,n-19),e}},148:{f:w5e,p:16},151:{f:function d8e(){}},152:{},153:{f:function X8e(t,n){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=n>8?Lo(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&i),e.backupFile=!!(64&i),e.checkCompatibility=!!(4096&i),e.date1904=!!(1&i),e.filterPrivacy=!!(8&i),e.hidePivotFieldList=!!(1024&i),e.promptedSolutions=!!(16&i),e.publishItems=!!(2048&i),e.refreshAllConnections=!!(262144&i),e.saveExternalLinkValues=!!(128&i),e.showBorderUnselectedTables=!!(4&i),e.showInkAnnotation=!!(32&i),e.showObjects=["all","placeholders","none"][i>>13&3],e.showPivotChartFilter=!!(32768&i),e.updateLinks=["userSet","never","always"][i>>8&3],e}},154:{},155:{},156:{f:function Q8e(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=mF(t,n-8),e.name=Lo(t),e}},157:{},158:{},159:{T:1,f:function q4e(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Oh},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:o8e},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function v3e(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:Lo(t)}}},336:{T:-1},337:{f:function C3e(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:mF},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function dX(t,n,e){if(e.biff<8||!(e.biff>8)&&n==t[t.l]+(3==t[t.l+1]?1:0)+1)return function uX(t,n,e){3==t[t.l+1]&&t[t.l]++;var i=Qb(t,0,e);return 3==i.charCodeAt(0)?i.slice(1):i}(t,0,e);for(var i=[],r=t.l+n,o=t.read_shift(e.biff>8?4:2);0!=o--;)i.push(sNe(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return i}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function u8e(t,n,e){var i=t.l+n,r=wK(t),o=t.read_shift(1),s=[r];if(s[2]=o,e.cellFormula){var a=CBe(t,i-t.l,e);s[1]=a}else t.l=i;return s}},427:{f:function h8e(t,n,e){var i=t.l+n,o=[Oh(t,16)];if(e.cellFormula){var s=EBe(t,i-t.l,e);o[1]=s,t.l=i}else t.l=i;return o}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function m8e(t){var n={};return WX.forEach(function(e){n[e]=Vo(t)}),n}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function C5e(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function c8e(t,n){var e=t.l+n,i=Oh(t,16),r=fF(t),o=Lo(t),s=Lo(t),a=Lo(t);t.l=e;var c={rfx:i,relId:r,loc:o,display:a};return s&&(c.Tooltip=s),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:mF},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:$3e},633:{T:1},634:{T:-1},635:{T:1,f:function H3e(t){var n={};n.iauthor=t.read_shift(4);var e=Oh(t,16);return n.rfx=e.s,n.ref=dn(e.s),t.l+=16,n}},636:{T:-1},637:{f:cOe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function L8e(t,n){return t.l+=10,{name:Lo(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function x8e(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function je(t,n,e,i){var r=n;if(!isNaN(r)){var o=i||(e||[]).length||0,s=t.next(4);s.write_shift(2,r),s.write_shift(2,o),o>0&&cF(e)&&t.push(e)}}function lv(t,n,e){return t||(t=ue(7)),t.write_shift(2,n),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function Y6e(t,n,e,i){if(null!=n.v)switch(n.t){case"d":case"n":var r="d"==n.t?pr(Fi(n.v)):n.v;return void(r==(0|r)&&r>=0&&r<65536?je(t,2,function I4e(t,n,e){var i=ue(9);return lv(i,t,n),i.write_shift(2,e),i}(e,i,r)):je(t,3,function S4e(t,n,e){var i=ue(15);return lv(i,t,n),i.write_shift(8,e,"f"),i}(e,i,r)));case"b":case"e":return void je(t,5,function K6e(t,n,e,i){var r=ue(9);return lv(r,t,n),QK(e,i||"b",r),r}(e,i,n.v,n.t));case"s":case"str":return void je(t,4,function X6e(t,n,e){var i=ue(8+2*e.length);return lv(i,t,n),i.write_shift(1,e.length),i.write_shift(e.length,e,"sbcs"),i.l255||f.e.r>=m){if(n.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,m-1)}je(i,2057,IF(0,16,n)),je(i,13,ma(1)),je(i,12,ma(100)),je(i,15,ns(!0)),je(i,17,ns(!1)),je(i,16,Nh(.001)),je(i,95,ns(!0)),je(i,42,ns(!1)),je(i,43,ns(!1)),je(i,130,ma(1)),je(i,128,function WNe(t){var n=ue(8);return n.write_shift(4,0),n.write_shift(2,t[0]?t[0]+1:0),n.write_shift(2,t[1]?t[1]+1:0),n}([0,0])),je(i,131,ns(!1)),je(i,132,ns(!1)),l&&function oUe(t,n){if(n){var e=0;n.forEach(function(i,r){++e<=256&&i&&je(t,125,function _4e(t,n){var e=ue(12);e.write_shift(2,n),e.write_shift(2,n),e.write_shift(2,256*t.width),e.write_shift(2,0);var i=0;return t.hidden&&(i|=1),e.write_shift(1,i),e.write_shift(1,i=t.level||0),e.write_shift(2,0),e}(EC(r,i),r))})}}(i,o["!cols"]),je(i,512,function BNe(t,n){var e=8!=n.biff&&n.biff?2:4,i=ue(2*e+6);return i.write_shift(e,t.s.r),i.write_shift(e,t.e.r+1),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c+1),i.write_shift(2,0),i}(f,n)),l&&(o["!links"]=[]);for(var g=[],p=[],v=f.s.c;v<=f.e.c;++v)h[v]=sn(v);for(var x=f.s.r;x<=f.e.r;++x)for(c&&(p=o["!data"][x]||[]),u=kn(x),v=f.s.c;v<=f.e.c;++v){d=h[v]+u;var C=c?p[v]:o[d];C&&(sUe(i,C,x,v,n),l&&C.l&&o["!links"].push([d,C.l]),l&&C.c&&g.push([d,C.c]))}var D=a.CodeName||a.name||r;return l&&je(i,574,function DNe(t){var n=ue(18),e=1718;return t&&t.RTL&&(e|=64),n.write_shift(2,e),n.write_shift(4,0),n.write_shift(4,64),n.write_shift(4,0),n.write_shift(4,0),n}((s.Views||[])[0])),l&&(o["!merges"]||[]).length&&je(i,229,function i4e(t){var n=ue(2+8*t.length);n.write_shift(2,t.length);for(var e=0;e255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var o=n||{};switch(o.biff||2){case 8:case 5:return function lUe(t,n){var e=n||{},i=[];t&&!t.SSF&&(t.SSF=ei(Et)),t&&t.SSF&&(zp(),Ob(t.SSF),e.revssf=tC(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,YF(e),e.cellXfs=[],nu(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(i.WTF)throw new Error("Range "+(n["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383)}for(var l=[],d=o.s.c;d<=o.e.c;++d)c[d]=sn(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=n["!data"][u]||[]),a=kn(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:n[c[d]+a];h&&Y6e(t,h,u,d)}}(i,t.Sheets[t.SheetNames[r]],0,e),je(i,10),i.end()}(t,n)}throw new Error("invalid type "+o.bookType+" for BIFF")}function iY(t,n,e,i){for(var r=t["!merges"]||[],o=[],s={},a=null!=t["!data"],c=n.s.c;c<=n.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(s.rowspan=l),d>1&&(s.colspan=d),i.editable?m=''+m+"":f&&(s["data-t"]=f&&f.t||"z",null!=f.v&&(s["data-v"]=f.v),null!=f.z&&(s["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),s.id=(i.id||"sjs")+"-"+h,o.push(Ne("td",m,s))}}return""+o.join("")+""}var rY='SheetJS Table Export',oY="";function aY(t,n){var e=n||{},r=null!=e.footer?e.footer:oY,o=[null!=e.header?e.header:rY],s=Nr(t["!ref"]);o.push(function sY(t,n,e){return[].join("")+""}(0,0,e));for(var a=s.s.r;a<=s.e.r;++a)o.push(iY(t,s,a,e));return o.push(""+r),o.join("")}var mUe=function(){var t=["",'',"",'',"",'',"",""].join(""),n=""+t+"";return function(){return rr+n}}();function pUe(t,n){var e="number",i="",r={"style:name":n},o="",s=0;e:if((t=t.replace(/"[$]"/g,"$")).indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+t),t=t.slice(0,t.indexOf(";"))),"@"!=t){if(t.indexOf(/\$/)>-1&&(e="currency"),'"'==t[s]){for(o="";'"'!=t[++s]||'"'==t[++s];)o+=t[s];"*"==t[1+--s]?(s++,i+=""+tn(o.replace(/""/g,'"'))+""):i+=""+tn(o.replace(/""/g,'"'))+"",t=t.slice(s+1),s=0}var a=t.match(/# (\?+)\/(\?+)/);if(a)i+=Ne("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":a[1].length,"number:max-denominator-value":Math.max(+a[1].replace(/./g,"9"),+a[2].replace(/./g,"9"))});else if(a=t.match(/# (\?+)\/(\d+)/))i+=Ne("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":a[1].length,"number:denominator-value":+a[2]});else if(a=t.match(/(\d+)(|\.\d+)%/))e="percentage",i+=Ne("number:number",null,{"number:decimal-places":a[2]&&a.length-1||0,"number:min-decimal-places":a[2]&&a.length-1||0,"number:min-integer-digits":a[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;s";break;case"yyy":case"yyyy":i+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":i+='';break;case"d":case"dd":i+='';break;case"ddd":case"dddd":i+=''}break;case'"':for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.slice(1).replace(/""/g,'"'))+"";break;case"/":i+=""+tn(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(s+1),s=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");s';break;case"m":case"mm":i+='';break;case"s":case"ss":if("."==t[s+1])do{o+=t[s+1],++s}while("0"==t[s+1]);i+='"}break;case'"':for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.slice(1).replace(/""/g,'"'))+"";break;case"/":i+=""+tn(o)+"";break;case"a":if("a/p"==t.slice(s,s+3).toLowerCase()){i+="",s+=2;break}if("am/pm"==t.slice(s,s+5).toLowerCase()){i+="",s+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(i+='$',t=t.slice(1),s=0),'"'==t[s=0]){for(;'"'!=t[++s]||'"'==t[++s];)o+=t[s];"*"==t[1+--s]?(s++,i+=""+tn(o.replace(/""/g,'"'))+""):i+=""+tn(o.replace(/""/g,'"'))+"",t=t.slice(s+1),s=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");i+="-1?' number:grouping="true"':"")+(d[2]&&' number:decimal-places="'+(d[2].length-1)+'"'||' number:decimal-places="0"')+(d[3]&&d[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(d[3]?' number:min-exponent-digits="'+d[3].match(/0+/)[0].length+'"':"")+">",s=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[s]){for(o="";'"'!=t[++s]||'"'==t[++s];)o+=t[s];--s,i+=""+tn(o.replace(/""/g,'"'))+""}}}}else e="text",i="";return i?Ne("number:"+e+"-style",i,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function pY(t,n,e){var i=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return i.length?" \n"+i.map(function(r){var o=HX(r.Ref);return" "+Ne("table:named-range",null,{"table:name":r.Name,"table:cell-range-address":o,"table:base-cell-address":o.replace(/[\.]?[^\.]*$/,".$A$1")})}).join("\n")+"\n \n":""}var gY=function(){var t=function(o){return tn(o).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"
").replace(/^ /,"").replace(/ $/,"")},n=" \n",i=function(o,s,a,c,l){var d=[];d.push(' \n');var u=0,h=0,f=Nr(o["!ref"]||"A1"),m=o["!merges"]||[],g=0,p=null!=o["!data"];if(o["!cols"])for(h=0;h<=f.e.c;++h)d.push(" \n");var x=o["!rows"]||[];for(u=0;u\n");for(;u<=f.e.r;++u){for(d.push(" \n"),h=0;hh||m[g].s.r>u||m[g].e.c\n");else{var M=dn({r:u,c:h}),E=p?(o["!data"][u]||[])[h]:o[M];if(E&&E.f&&(D["table:formula"]=tn(UBe(E.f)),E.F&&E.F.slice(0,M.length)==M)){var V=Nr(E.F);D["table:number-matrix-columns-spanned"]=V.e.c-V.s.c+1,D["table:number-matrix-rows-spanned"]=V.e.r-V.s.r+1}if(E){switch(E.t){case"b":j=E.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=E.v?"true":"false";break;case"n":j=E.w||String(E.v||0),D["office:value-type"]="float",D["office:value"]=E.v||0;break;case"s":case"str":j=null==E.v?"":E.v,D["office:value-type"]="string";break;case"d":j=E.w||Fi(E.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Fi(E.v).toISOString(),D["table:style-name"]="ce1";break;default:d.push(n);continue}var B=t(j);if(E.l&&E.l.Target){var X=E.l.Target;"#"!=(X="#"==X.charAt(0)?"#"+HX(X.slice(1)):X).charAt(0)&&!X.match(/^\w+:/)&&(X="../"+X),B=Ne("text:a",B,{"xlink:href":X.replace(/&/g,"&")})}l[E.z]&&(D["table:style-name"]="ce"+l[E.z].slice(1)),d.push(" "+Ne("table:table-cell",Ne("text:p",B,{}),D)+"\n")}else d.push(n)}}d.push(" \n")}return(s.Workbook||{}).Names&&d.push(pY(s.Workbook.Names,0,a)),d.push(" \n"),d.join("")};return function(s,a){var c=[rr],l=Bb({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Bb({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==a.bookType?(c.push("\n"),c.push(IK().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,s){o.push(" \n");var a=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++a}});var c=0;s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u&&u["!rows"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++c}}),o.push(' \n'),o.push(' \n'),o.push(" \n"),o.push(' \n'),o.push(' \n'),o.push(" /\n"),o.push(' \n'),o.push(" /\n"),o.push(" \n"),o.push(" \n");var l={},d=69;return s.SheetNames.map(function(u){return s.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=Nr(u["!ref"]),m=0;m<=f.e.r;++m)for(var g=0;g<=f.e.c;++g){var p=h?(u["!data"][m]||[])[g]:u[dn({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var v=pUe(p.z,"N"+d);v&&(l[p.z]="N"+d,++d,o.push(v+"\n"))}}}),o.push(' \n'),Pi(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,s);c.push(" \n"),c.push(" \n"),((s.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=s.SheetNames.length;++h)c.push(i(s.Sheets[s.SheetNames[h]],s,h,0,u));return(s.Workbook||{}).Names&&c.push(pY(s.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==a.bookType?"":""),c.join("")}}();function _Y(t,n){if("fods"==n.bookType)return gY(t,n);var e=ZP(),i="",r=[],o=[];return en(e,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),en(e,i="content.xml",gY(t,n)),r.push([i,"text/xml"]),o.push([i,"ContentFile"]),en(e,i="styles.xml",mUe(t,n)),r.push([i,"text/xml"]),o.push([i,"StylesFile"]),en(e,i="meta.xml",rr+IK()),r.push([i,"text/xml"]),o.push([i,"MetadataFile"]),en(e,i="manifest.rdf",function MOe(t){var n=[rr];n.push('\n');for(var e=0;e!=t.length;++e)n.push(DK(t[e][0],t[e][1])),n.push(AOe("",t[e][0]));return n.push(DK("","Document","pkg")),n.push(""),n.join("")}(o)),r.push([i,"application/rdf+xml"]),en(e,i="META-INF/manifest.xml",function IOe(t){var n=[rr];n.push('\n'),n.push(' \n');for(var e=0;e\n');return n.push(""),n.join("")}(r)),e}var vr=function(){try{return typeof Uint8Array>"u"||typeof Uint8Array.prototype.subarray>"u"?"slice":typeof Buffer<"u"?typeof Buffer.prototype.subarray>"u"?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch{return"slice"}}();function Pl(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Jr(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):ni(Sc(t))}function Ha(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):es(Ic(t))}function iu(t){for(var n=0,e=0;e=128&&(i|=(127&t[e])<<7,t[e++]<128||(i|=(127&t[e])<<14,t[e++]<128)||(i|=(127&t[e])<<21,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return n.l=e,i}function gt(t){var n=new Uint8Array(7);n[0]=127&t;var e=1;e:if(t>127){if(n[e-1]|=128,n[e]=t>>7&127,++e,t<=16383||(n[e-1]|=128,n[e]=t>>14&127,++e,t<=2097151)||(n[e-1]|=128,n[e]=t>>21&127,++e,t<=268435455)||(n[e-1]|=128,n[e]=t/256>>>21&127,++e,t<=34359738367)||(n[e-1]|=128,n[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;n[e-1]|=128,n[e]=t/16777216>>>21&127,++e}return n[vr](0,e)}function bY(t){for(var n={l:0},e=[];n.l=128){if(e|=(127&t[n])<<7,t[n++]<128||(e|=(127&t[n])<<14,t[n++]<128)||(e|=(127&t[n])<<21,t[n++]<128))break e;e|=(127&t[n])<<28}return e}function et(t){for(var n=[],e={l:0};e.l=128;);s=t[vr](e.l,a),e.l=a;break;case 1:s=t[vr](a,a+8),e.l=a+8;break;case 2:var c=dv(t,e);s=t[vr](e.l,e.l+c),e.l+=c;break;case 5:s=t[vr](a,a+4),e.l=a+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(i))}var l={data:s,type:o};null==n[r]&&(n[r]=[]),n[r].push(l)}return n}function kt(t){var n=[];return t.forEach(function(e,i){0!=i&&e.forEach(function(r){r.data&&(n.push(gt(8*i+r.type)),2==r.type&&n.push(gt(r.data.length)),n.push(r.data))})}),iu(n)}function Gh(t,n){return t?.map(function(e){return n(e.data)})||[]}function uv(t){for(var n,e=[],i={l:0};i.l>>0>0),e.push(s)}return e}function hv(t){var n=[];return t.forEach(function(e){var i=[[],[{data:gt(e.id),type:0}],[]];null!=e.merge&&(i[3]=[{data:gt(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(s){r.push(s.data),s.meta[3]=[{type:0,data:gt(s.data.length)}],i[2].push({data:kt(s.meta),type:2})});var o=kt(i);n.push(gt(o.length)),n.push(o),r.forEach(function(s){return n.push(s)})}),iu(n)}function bUe(t,n){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},i=dv(n,e),r=[],o=e.l;o>2&7),l=(224&n[o++])<<3,l|=n[o++]):(d=1+(n[o++]>>2),2==s?(l=n[o]|n[o+1]<<8,o+=2):(l=(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0,o+=4)),0==l)throw new Error("Invalid offset 0");for(var u=r.length-1,h=l;u>=0&&h>=r[u].length;)h-=r[u].length,--u;if(u<0){if(0!=h)throw new Error("Invalid offset beyond length");h=r[u=0].length}if(d0&&(r.push(r[u][vr](r[u].length-h)),d-=h),++u;d>=r[u].length;)r.push(r[u]),d-=r[u].length,++u;d&&r.push(r[u][vr](0,d))}r.length>25&&(r=[iu(r)])}else{var a=n[o++]>>2;if(a<60)++a;else{var c=a-59;a=n[o],c>1&&(a|=n[o+1]<<8),c>2&&(a|=n[o+2]<<16),c>3&&(a|=n[o+3]<<24),a>>>=0,a++,o+=c}r.push(n[vr](o,o+a)),o+=a}}for(var f=0,m=0;m>8&255]))):i<=16777216?(s+=4,n.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(s+=5,n.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),n.push(t[vr](e,e+i)),s+=i,r[0]=0,r[1]=255&s,r[2]=s>>8&255,r[3]=s>>16&255,e+=i}return iu(n)}function DC(t,n){var e=new Uint8Array(32),i=Pl(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function _Ue(t,n,e){var i=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,i-6176);t[n+15]|=i>>7,t[n+14]|=(127&i)<<1;for(var o=0;r>=1;++o,r/=256)t[n+o]=255&r;t[n+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,i.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var s=null==t.v?"":String(t.v),a=n.indexOf(s);-1==a&&(n[a=n.length]=s),e[1]=3,i.setUint32(r,a,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,o,!0),e[vr](0,r)}function IC(t,n){var e=new Uint8Array(32),i=Pl(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,i.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,i.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var s=null==t.v?"":String(t.v),a=n.indexOf(s);-1==a&&(n[a=n.length]=s),e[2]=3,i.setUint32(r,a,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,o,!0),e[vr](0,r)}function ri(t){return Tn(et(t)[1][0].data)}function Fl(t){return kt([[],[{type:0,data:gt(t)}]])}function ru(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?bY(t.messages[0].meta[5][0].data):[];-1==i.indexOf(n)&&(i.push(n),t.messages[0].meta[5]=[{type:2,data:vY(i)}])}function Ol(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?bY(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:vY(i.filter(function(r){return r!=n}))}]}function IUe(t,n,e){var i,r,o=[[],[{type:0,data:gt(0)}],[{type:0,data:gt(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:gt(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:gt(1)}]];if(null==(i=o[6])||!i[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var s=0;if(o[7][0].data.length<2*t.length){var a=new Uint8Array(2*t.length);a.set(o[7][0].data),o[7][0].data=a}if(o[4][0].data.length<2*t.length){var c=new Uint8Array(2*t.length);c.set(o[4][0].data),o[4][0].data=c}for(var l=Pl(o[7][0].data),d=0,u=[],h=Pl(o[4][0].data),f=0,m=[],g=e?4:1,p=0;p-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};YF(n=n||{});var o=ZP(),s="",a=0;if(n.cellXfs=[],nu(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),en(o,s="docProps/core.xml",MK(t.Props,n)),r.coreprops.push(s),ii(n.rels,2,s,nn.CORE_PROPS),s="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(en(o,s="docProps/custom.xml",OK(t.Custprops)),r.custprops.push(s),ii(n.rels,4,s,nn.CUST_PROPS));var d=["SheetJ5"];for(n.tcid=0,a=1;a<=t.SheetNames.length;++a){var u={"!id":{}},h=t.Sheets[t.SheetNames[a-1]];if(en(o,s="xl/worksheets/sheet"+a+"."+e,b5e(a-1,n,t,u)),r.sheets.push(s),ii(n.wbrels,-1,"worksheets/sheet"+a+"."+e,nn.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var v=!1;m.forEach(function(x){x[1].forEach(function(C){1==C.T&&(v=!0)})}),v&&(en(o,p="xl/threadedComments/threadedComment"+a+".xml",B3e(m,d,n)),r.threadedcomments.push(p),ii(u,-1,"../threadedComments/threadedComment"+a+".xml",nn.TCMNT)),en(o,p="xl/comments"+a+"."+e,L3e(m)),r.comments.push(p),ii(u,-1,"../comments"+a+"."+e,nn.CMNT),g=!0}h["!legacy"]&&g&&en(o,"xl/drawings/vmlDrawing"+a+".vml",EX(a,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&en(o,Wb(s),qp(u))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function W4e(t,n){if(!n.bookSST)return"";var e=[rr];e[e.length]=Ne("sst",null,{xmlns:Ah[0],count:t.Count,uniqueCount:t.Unique});for(var i=0;i!=t.length;++i)if(null!=t[i]){var r=t[i],o="";r.r?o+=r.r:(o+=""),e[e.length]=o+=""}return e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(n.Strings,n)),r.strs.push(s),ii(n.wbrels,-1,"sharedStrings."+e,nn.SST)),en(o,s="xl/workbook."+e,function q8e(t){var n=[rr];n[n.length]=Ne("workbook",null,{xmlns:Ah[0],"xmlns:r":Fr.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(jF.forEach(function(a){null!=t.Workbook.WBProps[a[0]]&&t.Workbook.WBProps[a[0]]!=a[1]&&(i[a[0]]=t.Workbook.WBProps[a[0]])}),t.Workbook.WBProps.CodeName&&(i.codeName=t.Workbook.WBProps.CodeName,delete i.CodeName)),n[n.length]=Ne("workbookPr",null,i);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(n[n.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),n[n.length]='',n[n.length]=""}for(n[n.length]="",o=0;o!=t.SheetNames.length;++o){var s={name:tn(t.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}n[n.length]=Ne("sheet",null,s)}return n[n.length]="",e&&(n[n.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(a){var c={name:a.Name};a.Comment&&(c.comment=a.Comment),null!=a.Sheet&&(c.localSheetId=""+a.Sheet),a.Hidden&&(c.hidden="1"),a.Ref&&(n[n.length]=Ne("definedName",tn(a.Ref),c))}),n[n.length]=""),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}(t)),r.workbooks.push(s),ii(n.rels,1,s,nn.WB),en(o,s="xl/theme/theme1.xml",NF(t.Themes,n)),r.themes.push(s),ii(n.wbrels,-1,"theme/theme1.xml",nn.THEME),en(o,s="xl/styles."+e,function PLe(t,n){var i,e=[rr,Ne("styleSheet",null,{xmlns:Ah[0],"xmlns:vt":Fr.vt})];return t.SSF&&null!=(i=function ILe(t){var n=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var i=e[0];i<=e[1];++i)null!=t[i]&&(n[n.length]=Ne("numFmt",null,{numFmtId:i,formatCode:tn(t[i])}))}),1===n.length?"":(n[n.length]="",n[0]=Ne("numFmts",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(t.SSF))&&(e[e.length]=i),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(i=function MLe(t){var n=[];return n[n.length]=Ne("cellXfs",null),t.forEach(function(e){n[n.length]=Ne("xf",null,e)}),n[n.length]="",2===n.length?"":(n[0]=Ne("cellXfs",null,{count:n.length-2}).replace("/>",">"),n.join(""))}(n.cellXfs))&&(e[e.length]=i),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,n)),r.styles.push(s),ii(n.wbrels,-1,"styles."+e,nn.STY),t.vbaraw&&i&&(en(o,s="xl/vbaProject.bin",t.vbaraw),r.vba.push(s),ii(n.wbrels,-1,"vbaProject.bin",nn.VBA)),en(o,s="xl/metadata."+e,function I3e(){var t=[rr];return t.push('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),t.join("")}()),r.metadata.push(s),ii(n.wbrels,-1,"metadata."+e,nn.XLMETA),d.length>1&&(en(o,s="xl/persons/person.xml",function z3e(t){var n=[rr,Ne("personList",null,{xmlns:Fr.TCMNT,"xmlns:x":Ah[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,i){n.push(Ne("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:e,providerId:"None"}))}),n.push(""),n.join("")}(d)),r.people.push(s),ii(n.wbrels,-1,"persons/person.xml",nn.PEOPLE)),en(o,"[Content_Types].xml",SK(r,n)),en(o,"_rels/.rels",qp(n.rels)),en(o,"xl/_rels/workbook.xml.rels",qp(n.wbrels)),delete n.revssf,delete n.ssf,o}function DY(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return Nb(n.file,wt.write(t,{type:on?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return wt.write(t,n)}function GUe(t,n){switch(n.bookType){case"ods":return _Y(t,n);case"numbers":return function MUe(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=wt.read(n.numbers,{type:"base64"}),i=function AUe(t){var n={},e=[];return t.FileIndex.map(function(i,r){return[i,t.FullPaths[r]]}).forEach(function(i){var r=i[0],o=i[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&uv(fv(r.content)).forEach(function(s){e.push(s.id),n[s.id]={deps:[],location:o,type:Tn(s.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(i){i.name.match(/\.iwa/)&&0==i.content[0]&&uv(fv(i.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(s){o.meta[s]&&o.meta[s].forEach(function(a){n[r.id].deps.push(Tn(a.data))})})})})}),n}(e),r=Pc(e,i,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=Gh(et(r.messages[0].data)[1],ri);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(s,a){a>=1&&(function RUe(t,n,e){var i=-1,r=-1,o={};Vr(t,n,1,function(l,d){var u=et(l.messages[0].data);i=ri(et(l.messages[0].data)[1][0].data),r=ou({deps:[1],location:n[i].location,type:2},n),o[i]=r,ru(l,r),u[1].push({type:2,data:Fl(r)});var h=Pc(t,n,i);h.id=r,n[1].location==n[r].location?d.push(h):Vr(t,n,r,function(f,m){return m.push(h)}),l.messages[0].data=kt(u)});var s=-1;Vr(t,n,r,function(l,d){for(var u=et(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=Gh(u[2],ri);f.forEach(function(p){return Ol(l,p)}),s=ou({deps:[r],location:n[f[0]].location,type:n[f[0]].type},n),ru(l,s),o[f[0]]=s,u[2]=[{type:2,data:Fl(s)}];var m=Pc(t,n,f[0]);if(m.id=s,n[f[0]].location==n[r].location)d.push(m);else{var g=n[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Vr(t,n,2,function(p){var v=et(p.messages[0].data),x=v[3].findIndex(function(D){var j,M,E=et(D.data);return null!=(j=E[3])&&j[0]?Jr(E[3][0].data)==g:!(null==(M=E[2])||!M[0]||Jr(E[2][0].data)!=g)}),C=et(v[3][x].data);C[6]||(C[6]=[]),C[6].push({type:2,data:kt([[],[{type:0,data:gt(s)}]])}),v[3][x].data=kt(C),p.messages[0].data=kt(v)}),Vr(t,n,s,function(p,v){return v.push(m)})}l.messages[0].data=kt(u)});var a=-1;Vr(t,n,s,function(l,d){for(var u=et(l.messages[0].data),h=et(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=ri(h[2][0].data);h[2][0].data=Fl(o[m]),u[1][0].data=kt(h);var g=ri(u[2][0].data);Ol(l,g),ru(l,a=ou({deps:[s],location:n[g].location,type:n[g].type},n)),o[g]=a,u[2][0].data=Fl(a);var p=Pc(t,n,g);p.id=a,n[s].location==n[a].location?d.push(p):Vr(t,n,a,function(v,x){return x.push(p)}),l.messages[0].data=kt(u)});var c=n[a].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Vr(t,n,a,function(l,d){var u,h,f=et(l.messages[0].data),g=Jr(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=Ha(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(M){return delete f[M]}),f[45]){var v=ri(et(f[45][0].data)[1][0].data);Ol(l,v),delete f[45]}f[70]&&(null==(u=et(f[70][0].data)[2])||u.forEach(function(M){var E=et(M.data);[2,3].map(function(V){return E[V][0]}).forEach(function(V){var B=et(V.data);if(B[8]){var X=ri(B[8][0].data);Ol(l,X)}})}),delete f[70]),[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach(function(M){if(f[M]){var E=ri(f[M][0].data);delete f[M],Ol(l,E)}});var C=et(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(M){var E;if(null!=(E=C[M])&&E[0]){var V=ri(C[M][0].data),B=ou({deps:[a],location:n[V].location,type:n[V].type},n);Ol(l,V),ru(l,B),o[V]=B;var X=Pc(t,n,V);if(X.id=B,n[V].location==n[a].location)d.push(X);else{n[B].location=n[V].location.replace(V.toString(),B.toString()),n[B].location==n[V].location&&(n[B].location=n[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),wt.utils.cfb_add(t,n[B].location,mv(hv([X])));var ne=n[B].location;ne=(ne=ne.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Vr(t,n,2,function(Q){var Te=et(Q.messages[0].data);Te[3].push({type:2,data:kt([[],[{type:0,data:gt(B)}],[{type:2,data:Ha(ne.replace(/-.*$/,""))}],[{type:2,data:Ha(ne)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Te[1]=[{type:0,data:gt(Math.max(B+1,Tn(Te[1][0].data)))}];var Ae=Te[3].findIndex(function(ae){var ee,ye,pe=et(ae.data);return null!=(ee=pe[3])&&ee[0]?Jr(pe[3][0].data)==c:!(null==(ye=pe[2])||!ye[0]||Jr(pe[2][0].data)!=c)}),ve=et(Te[3][Ae].data);ve[6]||(ve[6]=[]),ve[6].push({type:2,data:kt([[],[{type:0,data:gt(B)}]])}),Te[3][Ae].data=kt(ve),Q.messages[0].data=kt(Te)})}C[M][0].data=Fl(B)}});var D=et(C[1][0].data);null==(h=D[2])||h.forEach(function(M){var E=ri(M.data),V=ou({deps:[a],location:n[E].location,type:n[E].type},n);Ol(l,E),ru(l,V),o[E]=V;var B=Pc(t,n,E);if(B.id=V,n[E].location==n[a].location)d.push(B);else{n[V].location=n[E].location.replace(E.toString(),V.toString()),n[V].location==n[E].location&&(n[V].location=n[V].location.replace(/\.iwa/,"-".concat(V,".iwa"))),wt.utils.cfb_add(t,n[V].location,mv(hv([B])));var X=n[V].location;X=(X=X.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Vr(t,n,2,function(ne){var Q=et(ne.messages[0].data);Q[3].push({type:2,data:kt([[],[{type:0,data:gt(V)}],[{type:2,data:Ha(X.replace(/-.*$/,""))}],[{type:2,data:Ha(X)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Q[1]=[{type:0,data:gt(Math.max(V+1,Tn(Q[1][0].data)))}];var Te=Q[3].findIndex(function(ve){var ae,ee,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?Jr(ye[3][0].data)==c:!(null==(ee=ye[2])||!ee[0]||Jr(ye[2][0].data)!=c)}),Ae=et(Q[3][Te].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:kt([[],[{type:0,data:gt(V)}]])}),Q[3][Te].data=kt(Ae),ne.messages[0].data=kt(Q)})}M.data=Fl(V)}),C[1][0].data=kt(D);var j=et(C[3][0].data);j[1].forEach(function(M){var E=et(M.data),V=ri(E[2][0].data),B=o[V];if(!o[V]){B=ou({deps:[a],location:"",type:n[V].type},n),n[B].location="Root Entry/Index/Tables/Tile-".concat(B,".iwa"),o[V]=B;var X=Pc(t,n,V);X.id=B,Ol(l,V),ru(l,B),wt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(B,".iwa"),mv(hv([X]))),Vr(t,n,2,function(ne){var Q=et(ne.messages[0].data);Q[3].push({type:2,data:kt([[],[{type:0,data:gt(B)}],[{type:2,data:Ha("Tables/Tile")}],[{type:2,data:Ha("Tables/Tile-".concat(B))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:gt(0)}],[],[{type:0,data:gt(0)}]])}),Q[1]=[{type:0,data:gt(Math.max(B+1,Tn(Q[1][0].data)))}];var Te=Q[3].findIndex(function(ve){var ae,ee,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?Jr(ye[3][0].data)==c:!(null==(ee=ye[2])||!ee[0]||Jr(ye[2][0].data)!=c)}),Ae=et(Q[3][Te].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:kt([[],[{type:0,data:gt(B)}]])}),Q[3][Te].data=kt(Ae),ne.messages[0].data=kt(Q)})}E[2][0].data=Fl(B),M.data=kt(E)}),C[3][0].data=kt(j),f[4][0].data=kt(C),l.messages[0].data=kt(f)})}(e,i,a+1),r=Pc(e,i,1),o=Gh(et(r.messages[0].data)[1],ri)),function PUe(t,n,e,i,r,o){var s=[];Vr(t,n,o,function(l){var d=et(l.messages[0].data);d[1]=[{type:2,data:Ha(i)}],s=Gh(d[2],ri),l.messages[0].data=kt(d)});var c=ri(et(Pc(t,n,s[0]).messages[0].data)[2][0].data);Vr(t,n,c,function(l,d){return function FUe(t,n,e,i,r,o){var s=Nr(e["!ref"]);s.s.r=s.s.c=0;var a=!1;s.e.c>999&&(a=!0,s.e.c=999),s.e.r>999999&&(a=!0,s.e.r=999999),a&&console.error("Truncating to ".concat(Qt(s)));var c=RC(e,{range:s,header:1}),l=["~Sh33tJ5~"],d=n[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=et(i.messages[0].data);u[6][0].data=gt(s.e.r+1),u[7][0].data=gt(s.e.c+1),delete u[46];var h=et(u[4][0].data);Vr(t,n,ri(et(h[1][0].data)[2][0].data),function(Ae,ve){var ae,ee=et(Ae.messages[0].data);if(null!=(ae=ee?.[2])&&ae[0])for(var ye=0;ye0&&(en(o,s="docProps/custom.xml",OK(t.Custprops)),r.custprops.push(s),ii(n.rels,4,s,nn.CUST_PROPS)),a=1;a<=t.SheetNames.length;++a){var d={"!id":{}},u=t.Sheets[t.SheetNames[a-1]];if(en(o,s="xl/worksheets/sheet"+a+"."+e,P8e(a-1,n,t,d)),r.sheets.push(s),ii(n.wbrels,-1,"worksheets/sheet"+a+"."+e,nn.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(en(o,g="xl/comments"+a+"."+e,q3e(f)),r.comments.push(g),ii(d,-1,"../comments"+a+"."+e,nn.CMNT),m=!0),u["!legacy"]&&m&&en(o,"xl/drawings/vmlDrawing"+a+".vml",EX(a,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&en(o,Wb(s),qp(d))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function Y4e(t){var n=xs();ke(n,159,function K4e(t,n){return n||(n=ue(8)),n.write_shift(4,t.Count),n.write_shift(4,t.Unique),n}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+s)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(i=t.charCodeAt(l++))>255&&(i=95),s=(3&e)<<4|i>>4,(r=t.charCodeAt(l++))>255&&(r=95),a=(15&i)<<2|r>>6,c=63&r,isNaN(i)?a=c=64:isNaN(r)&&(c=64),n+=la.charAt(o)+la.charAt(s)+la.charAt(a)+la.charAt(c);return n}(t);case"binary":case"string":return t;case"file":return Nb(n.file,t,"binary");case"buffer":return on?Ec(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}(FY(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Fc(nO(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Fc(pX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return MC(AF.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Fc(Qp.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Fc(function _Le(t,n){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,i=Cn(t["!ref"]),o=null!=t["!data"],s=[],a=i.s.r;a<=i.e.r;++a){e.push("\\trowd\\trautofit1");for(var c=i.s.c;c<=i.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(s=t["!data"][a]||[]),c=i.s.c;c<=i.e.c;++c){var l=dn({r:a,c});(r=o?s[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Ac(r),r.w)||"").replace(/[\r\n]/g,"\\par ")),e.push("\\cell")):e.push(" \\cell")}e.push("\\pard\\intbl\\row")}return e.join("")+"}"}(t.Sheets[t.SheetNames[r]]),e);case"eth":return Fc(gX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Fc(_Y(t,e),e);case"wk1":return MC(Hh.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return MC(Hh.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),MC(tY(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function QUe(t,n){var e=n||{};return DY(function q6e(t,n){var e=n||{},i=wt.utils.cfb_new({root:"R"}),r="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":r="/Workbook",e.biff=8;break;case"biff5":r="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return wt.utils.cfb_add(i,r,tY(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function W6e(t,n){var s,e=[],i=[],r=[],o=0,a=LQ(bF,"n"),c=LQ(vF,"n");if(t.Props)for(s=Pi(t.Props),o=0;o-1||RK.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);i.length&&wt.utils.cfb_add(n,"/\x05SummaryInformation",WK(i,av.SI,c,vF)),(e.length||l.length)&&wt.utils.cfb_add(n,"/\x05DocumentSummaryInformation",WK(e,av.DSI,a,bF,l.length?l:null,av.UDI))}(t,i),8==e.biff&&t.vbaraw&&function X3e(t,n){n.FullPaths.forEach(function(e,i){if(0!=i){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&wt.utils.cfb_add(t,r,n.FileIndex[i].content)}})}(i,wt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),i}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function WUe(t,n){var e=ei(n||{});return function IY(t,n){var e={},i=on?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(n.compression&&(e.compression="DEFLATE"),n.password)e.type=i;else switch(n.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":e.type=i;break;default:throw new Error("Unrecognized type "+n.type)}var r=t.FullPaths?wt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!n.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==n.type||"base64"==n.type)return r;r=new Uint8Array(Rb(r))}return n.password&&typeof encrypt_agile<"u"?DY(encrypt_agile(r,n.password),n):"file"===n.type?Nb(n.file,r):"string"==n.type?ni(r):r}(GUe(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function MY(t,n,e,i,r,o,s){var a=kn(e),c=s.defval,l=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,u=null!=t["!data"],h=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch{h.__rowNum__=e}else h.__rowNum__=e;if(!u||t["!data"][e])for(var f=n.s.c;f<=n.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[i[f]+a];if(void 0!==m&&void 0!==m.t){var g=m.v;switch(m.t){case"z":if(null==g)break;continue;case"e":g=0==g?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(null!=o[f]){if(null==g)if("e"==m.t&&null===g)h[o[f]]=null;else if(void 0!==c)h[o[f]]=c;else{if(!l||null!==g)continue;h[o[f]]=null}else h[o[f]]=l&&("n"!==m.t||"n"===m.t&&!1!==s.rawNumbers)?g:Ac(m,g,s);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function RC(t,n){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},i=0,r=1,o=[],s=0,a="",c={s:{r:0,c:0},e:{r:0,c:0}},l=n||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?i=1:"A"===l.header?i=2:Array.isArray(l.header)?i=3:null==l.header&&(i=0),typeof d){case"string":c=Cn(d);break;case"number":(c=Cn(t["!ref"])).s.r=d;break;default:c=d}i>0&&(r=0);var u=kn(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],v=c.s.r,x=0,C={};p&&!t["!data"][v]&&(t["!data"][v]=[]);var D=l.skipHidden&&t["!cols"]||[],j=l.skipHidden&&t["!rows"]||[];for(x=c.s.c;x<=c.e.c;++x)if(!(D[x]||{}).hidden)switch(h[x]=sn(x),e=p?t["!data"][v][x]:t[h[x]+u],i){case 1:o[x]=x-c.s.c;break;case 2:o[x]=h[x];break;case 3:o[x]=l.header[x-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),a=s=Ac(e,null,l),g=C[s]||0){do{a=s+"_"+g++}while(C[a]);C[s]=g,C[a]=1}else C[s]=1;o[x]=a}for(v=c.s.r+r;v<=c.e.r;++v)if(!(j[v]||{}).hidden){var M=MY(t,c,v,h,i,o,l);(!1===M.isempty||(1===i?!1!==l.blankrows:l.blankrows))&&(f[m++]=M.row)}return f.length=m,f}var RY=/"/g;function PY(t,n,e,i,r,o,s,a){for(var c=!0,l=[],d="",u=kn(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=n.s.c;m<=n.e.c;++m)if(i[m]){var g=h?f[m]:t[i[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(a.rawNumbers&&"n"==g.t?g.v:Ac(g,null,a));for(var p=0,v=0;p!==d.length;++p)if((v=d.charCodeAt(p))===r||v===o||34===v||a.forceQuotes){d='"'+d.replace(RY,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(RY,'""')+'"'));l.push(d)}return!1===a.blankrows&&c?null:l.join(s)}function nO(t,n){var e=[],i=n??{};if(null==t||null==t["!ref"])return"";for(var r=Cn(t["!ref"]),o=void 0!==i.FS?i.FS:",",s=o.charCodeAt(0),a=void 0!==i.RS?i.RS:"\n",c=a.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=i.skipHidden&&t["!cols"]||[],f=i.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=sn(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=PY(t,r,p,u,s,c,o,i))&&(i.strip&&(d=d.replace(l,"")),(d||!1!==i.blankrows)&&e.push((g++?a:"")+d));return e.join("")}function FY(t,n){n||(n={}),n.FS="\t",n.RS="\n";var e=nO(t,n);return typeof Zt>"u"||"string"==n.type?e:"\xff\xfe"+Zt.utils.encode(1200,e,"str")}function OY(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=ir&&null==r&&(r=ir);var o=+!i.skipHeader,s=t||{};!t&&r&&(s["!data"]=[]);var a=0,c=0;if(s&&null!=i.origin)if("number"==typeof i.origin)a=i.origin;else{var l="string"==typeof i.origin?Wn(i.origin):i.origin;a=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:a+n.length-1+o}};if(s["!ref"]){var u=Cn(s["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==a&&(d.e.r=(a=u.e.r+1)+n.length-1+o)}else-1==a&&(a=0,d.e.r=n.length-1+o);var h=i.header||[],f=0,m=[];n.forEach(function(p,v){r&&!s["!data"][a+v+o]&&(s["!data"][a+v+o]=[]),r&&(m=s["!data"][a+v+o]),Pi(p).forEach(function(x){-1==(f=h.indexOf(x))&&(h[f=h.length]=x);var C=p[x],D="z",j="",M=r?"":sn(c+f)+kn(a+v+o),E=r?m[c+f]:s[M];!C||"object"!=typeof C||C instanceof Date?("number"==typeof C?D="n":"boolean"==typeof C?D="b":"string"==typeof C?D="s":C instanceof Date?(D="d",i.cellDates||(D="n",C=pr(C)),j=null!=E&&E.z&&Xd(E.z)?E.z:i.dateNF||Et[14]):null===C&&i.nullError&&(D="e",C=0),E?(E.t=D,E.v=C,delete E.w,delete E.R,j&&(E.z=j)):r?m[c+f]=E={t:D,v:C}:s[M]=E={t:D,v:C},j&&(E.z=j)):r?m[c+f]=C:s[M]=C})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=kn(a);if(r&&!s["!data"][a]&&(s["!data"][a]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(i&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var s=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=s+r);++r);}if(XX(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=n,e}var LY_json_to_sheet=function JUe(t,n){return OY(null,t,n)};let f9e=(()=>{class t{constructor(){}exportAsExcelFile(e,i){const s=pv({Sheets:{data:LY_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(s,i)}saveAsExcelFile(e,i){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});_c.saveAs(r,i+"_export_"+(new Date).getTime()+".xlsx")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const m9e=["*",[["mat-toolbar-row"]]],p9e=["*","mat-toolbar-row"];let g9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return t})(),_9e=(()=>{class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(Ln),w(xt))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&ln(o,g9e,5),2&i){let s;Re(s=Pe())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(Ys(r.color?"mat-"+r.color:""),lt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[St],ngContentSelectors:p9e,decls:2,vars:0,template:function(i,r){1&i&&(Mn(m9e),ct(0),ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return t})(),b9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})();const VY=["*"],v9e=["content"],y9e=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],x9e=["mat-drawer","mat-drawer-content","*"];function w9e(t,n){if(1&t){const e=Se();_(0,"div",1),U("click",function(){return z(e),H(A()._onBackdropClicked())}),b()}2&t&<("mat-drawer-shown",A()._isShowingBackdrop())}function k9e(t,n){1&t&&(_(0,"mat-drawer-content"),ct(1,2),b())}const C9e={transformDrawer:Yn("transform",[bn("open, open-instant",We({transform:"none",visibility:"visible"})),bn("void",We({"box-shadow":"none",visibility:"hidden"})),Xt("void => open-instant",qt("0ms")),Xt("void <=> open, open-instant => void",qt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},T9e=new J("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function E9e(){return!1}}),BY=new J("MAT_DRAWER_CONTAINER");let rO=(()=>{class t extends Iw{constructor(e,i,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(gn),w(an(()=>zY)),w(He),w(Z_),w(Be))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,r){2&i&&Ki("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[it([{provide:Iw,useExisting:t}]),tt,St],ngContentSelectors:VY,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(0))},encapsulation:2,changeDetection:0})}return t})(),UY=(()=>{class t{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=Ir(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ir(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ir(e))}constructor(e,i,r,o,s,a,c,l){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=c,this._container=l,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me,this._animationEnd=new Me,this._animationState="void",this.openedChange=new Ce(!0),this._openedStream=this.openedChange.pipe(un(d=>d),mt(()=>{})),this.openedStart=this._animationStarted.pipe(un(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),Ux(void 0)),this._closedStream=this.openedChange.pipe(un(d=>!d),mt(()=>{})),this.closedStart=this._animationStarted.pipe(un(d=>d.fromState!==d.toState&&"void"===d.toState),Ux(void 0)),this._destroyed=new Me,this.onPositionChanged=new Ce,this._modeChanged=new Me,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ra(this._elementRef.nativeElement,"keydown").pipe(un(d=>27===d.keyCode&&!this.disableClose&&!To(d)),Tt(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(il((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{const{fromState:u,toState:h}=d;(0===h.indexOf("open")&&"void"===u||"void"===h&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){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(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_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(i=>{!i&&"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,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(Nn(1)).subscribe(s=>o(s?"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 i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static#e=this.\u0275fac=function(i){return new(i||t)(w(He),w(ZI),w(ta),w(Ln),w(Be),w(gw),w(xt,8),w(BY,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(1&i&&vt(v9e,5),2&i){let o;Re(o=Pe())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){1&i&&cx("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&i&&(ix("@transform",r._animationState),_t("align",null),lt("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:[St],ngContentSelectors:VY,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){1&i&&(Mn(),_(0,"div",1,0),ct(2),b())},dependencies:[Iw],encapsulation:2,data:{animation:[C9e.transformDrawer]},changeDetection:0})}return t})(),zY=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ir(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ir(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,o,s,a=!1,c){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new Gl,this.backdropClick=new Ce,this._destroyed=new Me,this._doCheckSubject=new Me,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me,e&&e.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(Gr(this._allDrawers),Tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Gr(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(nl(10),Tt(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,i=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,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(un(i=>i.fromState!==i.toState),Tt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Nn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Tt(Ci(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e: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(i){return new(i||t)(w(oo,8),w(He),w(Be),w(gn),w(cl),w(T9e),w(pi,8))};static#t=this.\u0275cmp=ze({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(1&i&&(ln(o,rO,5),ln(o,UY,5)),2&i){let s;Re(s=Pe())&&(r._content=s.first),Re(s=Pe())&&(r._allDrawers=s)}},viewQuery:function(i,r){if(1&i&&vt(rO,5),2&i){let o;Re(o=Pe())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){2&i&<("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[it([{provide:BY,useExisting:t}]),St],ngContentSelectors:x9e,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){1&i&&(Mn(y9e),q(0,w9e,1,2,"div",0),ct(1),ct(2,1),q(3,k9e,2,0,"mat-drawer-content")),2&i&&(_n(0,r.hasBackdrop?0:-1),y(3),_n(3,r._content?-1:3))},dependencies:[rO],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})}return t})(),S9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,ll,ll,Ft]})}return t})();function D9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A().setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function I9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A(2).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.resource.version)}}function A9e(t,n){if(1&t&&(zt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),q(7,I9e,2,1,"button",16),b(),Ht()),2&t){const e=n.$implicit,i=jt(4);y(),T("matMenuTriggerFor",i),y(),Ke(e.editionName),y(5),T("ngForOf",e.editions)}}function M9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A().setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e)}}function R9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A(2).setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.name)}}function P9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A(3).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e.resource.version)}}function F9e(t,n){if(1&t&&(zt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),q(7,P9e,2,1,"button",16),b(),Ht()),2&t){const e=n.$implicit,i=jt(4);y(),T("matMenuTriggerFor",i),y(),Ke(e.editionName),y(5),T("ngForOf",e.editions)}}function O9e(t,n){if(1&t){const e=Se();_(0,"button",15),U("click",function(){const r=z(e).$implicit;return H(A(2).setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;y(),Ke(e)}}function N9e(t,n){if(1&t){const e=Se();_(0,"mat-toolbar")(1,"button",21),U("click",function(){return z(e),A(),H(jt(2).toggle())}),_(2,"mat-icon"),k(3,"menu"),b()(),xe(4,"img",22),_(5,"span",23),k(6,"SNOMED CT Implementation Demos"),b(),_(7,"span",24),k(8,"Implementation Demos"),b(),xe(9,"span",25),_(10,"button",26),k(11,"Select Demonstrator"),b(),_(12,"mat-menu",14,6)(14,"button",15),U("click",function(){return z(e),H(A().navigate("/allergies"))}),k(15,"Allergies CRG"),b(),_(16,"button",15),U("click",function(){return z(e),H(A().navigate("/sandbox"))}),k(17,"Terminology Bindings Sandbox"),b(),_(18,"button",15),U("click",function(){return z(e),H(A().navigate("/questionnaires"))}),k(19,"SNOMED & FHIR Questionnaires"),b(),_(20,"button",15),U("click",function(){return z(e),H(A().navigate("/context"))}),k(21,"Context Representation"),b(),_(22,"button",15),U("click",function(){return z(e),H(A().navigate("/snoguess"))}),k(23,"Snoguess (A SNOMED game)"),b()(),_(24,"button",27),k(25),b(),_(26,"mat-menu",null,7),q(28,R9e,2,1,"button",16),b(),_(29,"button",27),k(30),b(),_(31,"mat-menu",14,8)(33,"span",17),k(34,"Editions"),b(),q(35,F9e,8,3,"ng-container",18),b(),_(36,"button",27),k(37),b(),_(38,"mat-menu",null,9),q(40,O9e,2,1,"button",16),b(),_(41,"a",28)(42,"mat-icon"),k(43,"info"),b()()()}if(2&t){const e=jt(13),i=jt(27),r=jt(32),o=jt(39),s=A();y(10),T("matMenuTriggerFor",e),y(14),T("matMenuTriggerFor",i),y(),Je("FHIR Server: ",s.selectedServer.name,""),y(3),T("ngForOf",s.fhirServers),y(),T("matMenuTriggerFor",r),y(),Ke(s.selectedEdition),y(5),T("ngForOf",s.editionsDetails),y(),T("matMenuTriggerFor",o),y(),Ke(s.selectedLanguage),y(3),T("ngForOf",s.languages)}}let L9e=(()=>{class t{constructor(e,i,r,o,s){this.codingSpecService=e,this.excelService=i,this.terminologyService=r,this.router=o,this.activatedRoute=s,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["da","de","en","es","et","fi","fr","nl","no","sv"],this.selectedEdition="Edition",this.selectedLanguage="en",this.fhirServers=[{name:"SNOMED Dev IS",url:"https://dev-is-browser.ihtsdotools.org/fhir"},{name:"SNOMED Public",url:"https://snowstorm.ihtsdotools.org/fhir"},{name:"SNOMED Dev 2",url:"https://snowstorm-temp.kaicode.io/fhir"}],this.selectedServer=this.fhirServers[1],this.embeddedMode=!1,this.router.events.subscribe(a=>{a instanceof dc&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const i of e)for(const r of i.bindings)this.bindingsForExport.push({section:i.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.activatedRoute.queryParams.subscribe(i=>{this.embeddedMode="true"===i.embedded,i.edition?this.updateCodeSystemOptions(i.edition):this.updateCodeSystemOptions()}),this.terminologyService.lang$.subscribe(i=>{this.selectedLanguage=i}),this.terminologyService.fhirUrlParam$.subscribe(i=>{this.editions?.length>0&&this.editions.forEach(r=>{r.resource.version===i&&(this.selectedEdition=r.resource.title?.replace("SNOMED CT release ",""))})})}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(e){this.terminologyService.getCodeSystems().subscribe(i=>{this.editionsDetails=[],this.editions=i.entry;let r=new Set;this.editions.forEach(s=>{r.add(s.resource.title)}),r.forEach(s=>{this.editionsDetails.push({editionName:s,editions:this.editions.filter(a=>a.resource.title.includes(s)).sort(this.compare)})});let o=this.editionsDetails.findIndex(s=>"International Edition"===s.editionName);e?this.editions.forEach(s=>{s.resource.version===e&&this.setEdition(s)}):this.setEdition(o>=0?this.editionsDetails[o].editions[0]:this.editions[0])})}compare(e,i){return e.resource.datei.resource.date?-1:0}setFhirServer(e){this.selectedServer=e,this.terminologyService.setSnowstormFhirBase(e.url),this.selectedEdition="Edition",this.editions=[],this.editionsDetails=[],this.updateCodeSystemOptions()}setEdition(e){this.selectedEdition=e.resource.title?.replace("SNOMED CT release ",""),this.terminologyService.setFhirUrlParam(e.resource.version)}setLanguage(e){this.selectedLanguage=e,this.terminologyService.setLang(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(HPe),w(f9e),w(so),w(fs),w(od))};static#t=this.\u0275cmp=ze({type:t,selectors:[["app-root"]],decls:37,vars:11,consts:[["drawer",""],["demosMenuN","matMenu"],["serverMenuN","matMenu"],["editionsMenuN","matMenu"],["menuN","matMenu"],["sub_menu","matMenu"],["demosMenu","matMenu"],["serverMenu","matMenu"],["editionsMenu","matMenu"],["menu","matMenu"],["autosize","",1,"example-container"],["mode","over",1,"example-sidenav"],[1,"flex","flex-col","justify-center"],["mat-button","",3,"matMenuTriggerFor"],[1,"wide-menu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[1,"ml-4"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","","id","menu-button",3,"click"],["src","assets/img/small_logo.png","id","logo"],["id","title"],["id","short-title"],[1,"example-spacer"],["mat-flat-button","","color","accent",1,"bar-button",3,"matMenuTriggerFor"],["mat-flat-button","","color","primary",1,"bar-button",3,"matMenuTriggerFor"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary","id","info-button"]],template:function(i,r){if(1&i){const o=Se();_(0,"mat-drawer-container",10)(1,"mat-drawer",11,0)(3,"div",12)(4,"button",13),k(5,"Select Demonstrator"),b(),_(6,"mat-menu",14,1)(8,"button",15),U("click",function(){return z(o),H(r.navigate("/allergies"))}),k(9,"Allergies CRG"),b(),_(10,"button",15),U("click",function(){return z(o),H(r.navigate("/sandbox"))}),k(11,"Terminology Bindings Sandbox"),b(),_(12,"button",15),U("click",function(){return z(o),H(r.navigate("/questionnaires"))}),k(13,"SNOMED & FHIR Questionnaires"),b(),_(14,"button",15),U("click",function(){return z(o),H(r.navigate("/context"))}),k(15,"Context Representation"),b(),_(16,"button",15),U("click",function(){return z(o),H(r.navigate("/snoguess"))}),k(17,"Playground"),b()(),_(18,"button",13),k(19),b(),_(20,"mat-menu",null,2),q(22,D9e,2,1,"button",16),b(),_(23,"button",13),k(24),b(),_(25,"mat-menu",14,3)(27,"span",17),k(28,"Editions"),b(),q(29,A9e,8,3,"ng-container",18),b(),_(30,"button",13),k(31),b(),_(32,"mat-menu",null,4),q(34,M9e,2,1,"button",16),b()()(),q(35,N9e,44,10,"mat-toolbar",19),xe(36,"router-outlet"),b()}if(2&i){const o=jt(7),s=jt(21),a=jt(26),c=jt(33);y(4),T("matMenuTriggerFor",o),y(14),T("matMenuTriggerFor",s),y(),Je("FHIR Server: ",r.selectedServer.name,""),y(3),T("ngForOf",r.fhirServers),y(),T("matMenuTriggerFor",a),y(),Je("Edition: ",r.selectedEdition,""),y(5),T("ngForOf",r.editionsDetails),y(),T("matMenuTriggerFor",c),y(),Je("Language: ",r.selectedLanguage,""),y(3),T("ngForOf",r.languages),y(),T("ngIf",!r.embeddedMode)}},dependencies:[ro,jr,vI,_9e,X_e,Eo,ia,So,Pa,mc,Wu,UY,zY],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}.bar-button[_ngcontent-%COMP%]{margin-left:15px}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}#menu-button[_ngcontent-%COMP%], #short-title[_ngcontent-%COMP%]{display:none}#logo[_ngcontent-%COMP%]{height:4rem}@media (max-width: 768px){#title[_ngcontent-%COMP%]{display:none}#short-title[_ngcontent-%COMP%]{display:block;margin-left:15px;font-size:.9rem}#logo[_ngcontent-%COMP%]{height:3.5rem}#info-button[_ngcontent-%COMP%]{display:none}}@media (max-width: 1200px){.bar-button[_ngcontent-%COMP%]{display:none}#menu-button[_ngcontent-%COMP%]{display:block}}"]})}return t})();function HY(t){return new le(3e3,!1)}function su(t){switch(t.length){case 0:return new K_;case 1:return t[0];default:return new j9(t)}}function jY(t,n,e=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((h,f)=>{let m=f,g=h;if("offset"!==f)switch(m=t.normalizePropertyName(m,r),g){case"!":g=e.get(f);break;case ol:g=i.get(f);break;default:g=t.normalizeStyleValue(f,m,g,r)}u.set(m,g)}),d||o.push(u),a=u,s=l}),r.length)throw function sze(t){return new le(3502,!1)}();return o}function oO(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&sO(e,"start",t)));break;case"done":t.onDone(()=>i(e&&sO(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&sO(e,"destroy",t)))}}function sO(t,n,e){const o=aO(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function aO(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function qs(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function $Y(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const bze=typeof document>"u"?null:document.documentElement;function cO(t){const n=t.parentNode||t.host||null;return n===bze?null:n}let Wh=null,GY=!1;function WY(t,n){for(;n;){if(n===t)return!0;n=cO(n)}return!1}function qY(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let lO=(()=>{class t{validateStyleProperty(e){return function yze(t){Wh||(Wh=function xze(){return typeof document<"u"?document.body:null}()||{},GY=!!Wh.style&&"WebkitAppearance"in Wh.style);let n=!0;return Wh.style&&!function vze(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Wh.style,!n&&GY&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wh.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return WY(e,i)}getParentElement(e){return cO(e)}query(e,i,r){return qY(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new K_(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class dO{static#e=this.NOOP=new lO}class uO{}const kze=1e3,hO="ng-enter",NC="ng-leave",LC="ng-trigger",VC=".ng-trigger",KY="ng-animating",fO=".ng-animating";function Nl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:mO(parseFloat(n[1]),n[2])}function mO(t,n){return"s"===n?t*kze:t}function BC(t,n,e){return t.hasOwnProperty("duration")?t:function Tze(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(HY()),{duration:0,delay:0,easing:""};r=mO(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=mO(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=t;if(!e){let a=!1,c=n.length;r<0&&(n.push(function V9e(){return new le(3100,!1)}()),a=!0),o<0&&(n.push(function B9e(){return new le(3101,!1)}()),a=!0),a&&n.splice(c,0,HY())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Oc(t,n,e){n.forEach((i,r)=>{const o=gO(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function qh(t,n){n.forEach((e,i)=>{const r=gO(i);t.style[r]=""})}function gv(t){return Array.isArray(t)?1==t.length?t[0]:function Z_e(t,n=null){return{type:Ot.Sequence,steps:t,options:n}}(t):t}const pO=new RegExp("{{\\s*(.+?)\\s*}}","g");function YY(t){let n=[];if("string"==typeof t){let e;for(;e=pO.exec(t);)n.push(e[1]);pO.lastIndex=0}return n}function _v(t,n,e){const i=`${t}`,r=i.replace(pO,(o,s)=>{let a=n[s];return null==a&&(e.push(function z9e(t){return new le(3003,!1)}()),a=""),a.toString()});return r==i?t:r}const Dze=/-+([a-z0-9])/g;function gO(t){return t.replace(Dze,(...n)=>n[1].toUpperCase())}function Qs(t,n,e){switch(n.type){case Ot.Trigger:return t.visitTrigger(n,e);case Ot.State:return t.visitState(n,e);case Ot.Transition:return t.visitTransition(n,e);case Ot.Sequence:return t.visitSequence(n,e);case Ot.Group:return t.visitGroup(n,e);case Ot.Animate:return t.visitAnimate(n,e);case Ot.Keyframes:return t.visitKeyframes(n,e);case Ot.Style:return t.visitStyle(n,e);case Ot.Reference:return t.visitReference(n,e);case Ot.AnimateChild:return t.visitAnimateChild(n,e);case Ot.AnimateRef:return t.visitAnimateRef(n,e);case Ot.Query:return t.visitQuery(n,e);case Ot.Stagger:return t.visitStagger(n,e);default:throw function H9e(t){return new le(3004,!1)}()}}function _O(t,n){return window.getComputedStyle(t)[n]}const Mze=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 ZY extends uO{normalizePropertyName(n,e){return gO(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(Mze.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function j9e(t,n){return new le(3005,!1)}())}return s+o}}const UC="*";const zC=new Set(["true","1"]),HC=new Set(["false","0"]);function JY(t,n){const e=zC.has(t)||HC.has(t),i=zC.has(n)||HC.has(n);return(r,o)=>{let s=t==UC||t==r,a=n==UC||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?zC.has(t):HC.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?zC.has(n):HC.has(n)),s&&a}}const Oze=new RegExp("s*:selfs*,?","g");function bO(t,n,e,i){return new Nze(t).build(n,e,i)}class Nze{constructor(n){this._driver=n}build(n,e,i){const r=new Bze(e);return this._resetContextStyleTimingState(r),Qs(this,gv(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function $9e(){return new le(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ot.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(a.type==Ot.Transition){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(function G9e(){return new le(3007,!1)}())}),{type:Ot.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{YY(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(function W9e(t,n){return new le(3008,!1)}(0,o.values()))}return{type:Ot.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Qs(this,gv(n.animation),e),r=function Rze(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function Pze(t,n,e){if(":"==t[0]){const c=function Fze(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function tze(t){return new le(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(JY(r,s)),"<"==o[0]&&(r!=UC||s!=UC)&&n.push(JY(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Ot.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Qh(n.options)}}visitSequence(n,e){return{type:Ot.Sequence,steps:n.steps.map(i=>Qs(this,i,e)),options:Qh(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=Qs(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Ot.Group,steps:o,options:Qh(n.options)}}visitAnimate(n,e){const i=function zze(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return vO(BC(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=vO(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=BC(e,n);return vO(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:We({});if(o.type==Ot.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};i.easing&&(l.easing=i.easing),s=We(l)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(s,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:Ot.Animate,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===ol?i.push(a):e.errors.push(new le(3002,!1)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:Ot.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=e.collectedStyles.get(e.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(function Q9e(t,n,e,i,r){return new le(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function Sze(t,n,e){const i=n.params||{},r=YY(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function U9e(t){return new le(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Ot.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function K9e(){return new le(3011,!1)}()),i;let o=0;const s=[];let a=!1,c=!1,l=0;const d=n.steps.map(v=>{const x=this._makeStyleAst(v,e);let C=null!=x.offset?x.offset:function Uze(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(x.styles),D=0;return null!=C&&(o++,D=x.offset=C),c=c||D<0||D>1,a=a||D0&&o{const C=h>0?x==f?1:h*x:s[x],D=C*p;e.currentTime=m+g.delay+D,g.duration=D,this._validateStyleAst(v,e),v.offset=C,i.styles.push(v)}),i}visitReference(n,e){return{type:Ot.Reference,animation:Qs(this,gv(n.animation),e),options:Qh(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ot.AnimateChild,options:Qh(n.options)}}visitAnimateRef(n,e){return{type:Ot.AnimateRef,animation:this.visitReference(n.animation,e),options:Qh(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Lze(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Oze,"")),t=t.replace(/@\*/g,VC).replace(/@\w+/g,e=>VC+"-"+e.slice(1)).replace(/:animating/g,fO),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,qs(e.collectedStyles,e.currentQuerySelector,new Map);const a=Qs(this,gv(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Ot.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Qh(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function J9e(){return new le(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:BC(n.timings,e.errors,!0);return{type:Ot.Stagger,animation:Qs(this,gv(n.animation),e),timings:i,options:null}}}class Bze{constructor(n){this.errors=n,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 Qh(t){return t?(t={...t}).params&&(t.params=function Vze(t){return t?{...t}:null}(t.params)):t={},t}function vO(t,n,e){return{duration:t,delay:n,easing:e}}function yO(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class jC{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const $ze=new RegExp(":enter","g"),Wze=new RegExp(":leave","g");function xO(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return(new qze).buildKeyframes(t,n,e,i,r,o,s,a,c,l)}class qze{buildKeyframes(n,e,i,r,o,s,a,c,l,d=[]){l=l||new jC;const u=new wO(n,e,l,r,o,d,[]);u.options=c;const h=c.delay?Nl(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),Qs(this,i,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let g=f.length-1;g>=0;g--){const p=f[g];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[yO(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Nl(_v(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Nl(i.duration):null,a=null!=i.delay?Nl(i.delay):null;return 0!==s&&n.forEach(c=>{const l=e.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Qs(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==Ot.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=$C);const s=Nl(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Qs(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Nl(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),Qs(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return BC(e.params?_v(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==Ot.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Nl(r.delay):0;o&&(e.previousNode.type===Ot.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$C);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(n.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),Qs(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let c=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;Qs(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const $C={};class wO{constructor(n,e,i,r,o,s,a,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$C,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new GC(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Nl(i.duration)),null!=i.delay&&(r.delay=Nl(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=_v(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new wO(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=$C,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Qze(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace($ze,"."+this._enterClassName)).replace(Wze,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&0==a.length&&s.push(function eze(t){return new le(3014,!1)}()),a}}class GC{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new GC(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||ol),this._currentKeyframe.set(e,ol);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Kze(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)e.set(o,ol)}else for(let[o,s]of r)e.set(o,s)}),e}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=_v(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ol),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((d,u)=>{"!"===d?n.add(u):d===ol&&e.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});const o=[...n.values()],s=[...e.values()];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return yO(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Qze extends GC{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,c=new Map(n[0]);c.set("offset",0),o.push(c);const l=new Map(n[0]);l.set("offset",nZ(a)),o.push(l);const d=n.length-1;for(let u=1;u<=d;u++){let h=new Map(n[u]);const f=h.get("offset");h.set("offset",nZ((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return yO(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function nZ(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function iZ(t,n,e,i,r,o,s,a,c,l,d,u,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const kO={};class rZ{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function Xze(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||kO,m=this.buildStyles(i,a&&a.params||kO,u),g=c&&c.params||kO,p=this.buildStyles(r,g,u),v=new Set,x=new Map,C=new Map,D="void"===r,j={params:oZ(g,h),delay:this.ast.options?.delay},M=d?[]:xO(n,e,this.ast.animation,o,s,m,p,j,l,u);let E=0;return M.forEach(V=>{E=Math.max(V.duration+V.delay,E)}),u.length?iZ(e,this._triggerName,i,r,D,m,p,[],[],x,C,E,u):(M.forEach(V=>{const B=V.element,X=qs(x,B,new Set);V.preStyleProps.forEach(Q=>X.add(Q));const ne=qs(C,B,new Set);V.postStyleProps.forEach(Q=>ne.add(Q)),B!==e&&v.add(B)}),iZ(e,this._triggerName,i,r,D,m,p,M,[...v.values()],x,C,E))}}function oZ(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class Yze{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=oZ(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=_v(s,r,e));const c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}}class Jze{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Yze(r.style,r.options&&r.options.params||{},i))}),sZ(this.states,"true","1"),sZ(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new rZ(n,r,this.states))}),this.fallbackTransition=function eHe(t,n,e){return new rZ(t,{type:Ot.Transition,animation:{type:Ot.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function sZ(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const tHe=new jC;class nHe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=bO(this._driver,e,i,[]);if(i.length)throw function aze(t){return new le(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=jY(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=xO(this._driver,e,o,hO,NC,new Map,new Map,i,tHe,r),s.forEach(d=>{const u=qs(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function cze(){return new le(3300,!1)}()),s=[]),r.length)throw function lze(t){return new le(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ol))})});const l=su(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function dze(t){return new le(3301,!1)}();return e}listen(n,e,i,r){const o=aO(e,"","","");return oO(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const aZ="ng-animate-queued",CO="ng-animate-disabled",aHe=[],cZ={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},cHe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed";class TO{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function hHe(t){return t??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const bv="void",EO=new TO(bv);class lHe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,ga(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function uze(t,n){return new le(3302,!1)}();if(null==i||0==i.length)throw function hze(t){return new le(3303,!1)}();if(!function fHe(t){return"start"==t||"done"==t}(i))throw function fze(t,n){return new le(3400,!1)}();const o=qs(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=qs(this._engine.statesByElement,n,new Map);return a.has(e)||(ga(n,LC),ga(n,LC+"-"+e),a.set(e,EO)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function mze(t){return new le(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new SO(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(ga(n,LC),ga(n,LC+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e);const l=new TO(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=EO),l.value!==bv&&c.value===l.value){if(!function gHe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{qh(n,p),Oc(n,v)})}return}const h=qs(this._engine.playersByElement,n,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,n,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:m}),m||(ga(n,aZ),s.onStart(()=>{Zp(n,aZ)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(n);if(p){let v=p.indexOf(s);v>=0&&p.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,VC,!0);i.forEach(r=>{if(r[ja])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const d=this.trigger(n,l,bv,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&su(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=i.get(s)||EO,d=new TO(bv),u=new SO(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[ja];(!o||o===cZ)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ga(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const c=aO(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,oO(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class dHe{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,r){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new lHe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const c=r.get(a);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(WC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!WC(e))return;const o=e[ja];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ga(n,CO)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Zp(n,CO))}removeNode(n,e,i){if(WC(e)){this.scheduler?.notify();const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[ja]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return WC(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,VC,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,fO,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return su(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[ja];if(e&&e.setForRemoval){if(n[ja]=cZ,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(CO)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?su(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function pze(t){return new le(3402,!1)}()}_flushAnimations(n,e){const i=new jC,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ae=>{d.add(ae);const ee=this.driver.query(ae,".ng-animate-queued",!0);for(let ye=0;ye{const ye=hO+g++;m.set(ee,ye),ae.forEach(pe=>ga(pe,ye))});const p=[],v=new Set,x=new Set;for(let ae=0;aev.add(pe)):x.add(ee))}const C=new Map,D=uZ(h,Array.from(v));D.forEach((ae,ee)=>{const ye=NC+g++;C.set(ee,ye),ae.forEach(pe=>ga(pe,ye))}),n.push(()=>{f.forEach((ae,ee)=>{const ye=m.get(ee);ae.forEach(pe=>Zp(pe,ye))}),D.forEach((ae,ee)=>{const ye=C.get(ee);ae.forEach(pe=>Zp(pe,ye))}),p.forEach(ae=>{this.processLeaveNode(ae)})});const j=[],M=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(e).forEach(ye=>{const pe=ye.player,Ye=ye.element;if(j.push(pe),this.collectedEnterElements.length){const G=Ye[ja];if(G&&G.setForMove){if(G.previousTriggersValues&&G.previousTriggersValues.has(ye.triggerName)){const fe=G.previousTriggersValues.get(ye.triggerName),Ee=this.statesByElement.get(ye.element);if(Ee&&Ee.has(ye.triggerName)){const $e=Ee.get(ye.triggerName);$e.value=fe,Ee.set(ye.triggerName,$e)}}return void pe.destroy()}}const ge=!u||!this.driver.containsElement(u,Ye),at=C.get(Ye),Dt=m.get(Ye),F=this._buildInstruction(ye,i,Dt,at,ge);if(F.errors&&F.errors.length)return void M.push(F);if(ge)return pe.onStart(()=>qh(Ye,F.fromStyles)),pe.onDestroy(()=>Oc(Ye,F.toStyles)),void r.push(pe);if(ye.isFallbackTransition)return pe.onStart(()=>qh(Ye,F.fromStyles)),pe.onDestroy(()=>Oc(Ye,F.toStyles)),void r.push(pe);const te=[];F.timelines.forEach(G=>{G.stretchStartingKeyframe=!0,this.disabledNodes.has(G.element)||te.push(G)}),F.timelines=te,i.append(Ye,F.timelines),s.push({instruction:F,player:pe,element:Ye}),F.queriedElements.forEach(G=>qs(a,G,[]).push(pe)),F.preStyleProps.forEach((G,fe)=>{if(G.size){let Ee=c.get(fe);Ee||c.set(fe,Ee=new Set),G.forEach(($e,Qe)=>Ee.add(Qe))}}),F.postStyleProps.forEach((G,fe)=>{let Ee=l.get(fe);Ee||l.set(fe,Ee=new Set),G.forEach(($e,Qe)=>Ee.add(Qe))})});if(M.length){const ae=[];M.forEach(ee=>{ae.push(function gze(t,n){return new le(3505,!1)}())}),j.forEach(ee=>ee.destroy()),this.reportError(ae)}const E=new Map,V=new Map;s.forEach(ae=>{const ee=ae.element;i.has(ee)&&(V.set(ee,ee),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,E))}),r.forEach(ae=>{const ee=ae.element;this._getPreviousPlayers(ee,!1,ae.namespaceId,ae.triggerName,null).forEach(pe=>{qs(E,ee,[]).push(pe),pe.destroy()})});const B=p.filter(ae=>fZ(ae,c,l)),X=new Map;dZ(X,this.driver,x,l,ol).forEach(ae=>{fZ(ae,c,l)&&B.push(ae)});const Q=new Map;f.forEach((ae,ee)=>{dZ(Q,this.driver,new Set(ae),c,"!")}),B.forEach(ae=>{const ee=X.get(ae),ye=Q.get(ae);X.set(ae,new Map([...ee?.entries()??[],...ye?.entries()??[]]))});const Te=[],Ae=[],ve={};s.forEach(ae=>{const{element:ee,player:ye,instruction:pe}=ae;if(i.has(ee)){if(d.has(ee))return ye.onDestroy(()=>Oc(ee,pe.toStyles)),ye.disabled=!0,ye.overrideTotalTime(pe.totalTime),void r.push(ye);let Ye=ve;if(V.size>1){let at=ee;const Dt=[];for(;at=at.parentNode;){const F=V.get(at);if(F){Ye=F;break}Dt.push(at)}Dt.forEach(F=>V.set(F,Ye))}const ge=this._buildAnimation(ye.namespaceId,pe,E,o,Q,X);if(ye.setRealPlayer(ge),Ye===ve)Te.push(ye);else{const at=this.playersByElement.get(Ye);at&&at.length&&(ye.parentPlayer=su(at)),r.push(ye)}}else qh(ee,pe.fromStyles),ye.onDestroy(()=>Oc(ee,pe.toStyles)),Ae.push(ye),d.has(ee)&&r.push(ye)}),Ae.forEach(ae=>{const ee=o.get(ae.element);if(ee&&ee.length){const ye=su(ee);ae.setRealPlayer(ye)}}),r.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let ae=0;ae!ge.destroyed);Ye.length?mHe(this,ee,Ye):this.processLeaveNode(ee)}return p.length=0,Te.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const ee=this.players.indexOf(ae);this.players.splice(ee,1)}),ae.play()}),Te}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==bv;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=qs(i,l,[]);this._getPreviousPlayers(l,d,s,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}qh(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,c=e.element,l=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const g=m.element;d.add(g);const p=g[ja];if(p&&p.removedBeforeQueried)return new K_(m.duration,m.delay);const v=g!==c,x=function pHe(t){const n=[];return hZ(t,n),n}((i.get(g)||aHe).map(E=>E.getRealPlayer())).filter(E=>!!E.element&&E.element===g),C=o.get(g),D=s.get(g),j=jY(this._normalizer,m.keyframes,C,D),M=this._buildPlayer(m,j,x);if(m.subTimeline&&r&&u.add(g),v){const E=new SO(n,a,g);E.setRealPlayer(M),l.push(E)}return M});l.forEach(m=>{qs(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function uHe(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>ga(m,KY));const f=su(h);return f.onDestroy(()=>{d.forEach(m=>Zp(m,KY)),Oc(c,e.toStyles)}),u.forEach(m=>{qs(r,m,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new K_(n.duration,n.delay)}}class SO{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new K_,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>oO(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){qs(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function WC(t){return t&&1===t.nodeType}function lZ(t,n){const e=t.style.display;return t.style.display=n??"none",e}function dZ(t,n,e,i,r){const o=[];e.forEach(c=>o.push(lZ(c)));const s=[];i.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=n.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[ja]=cHe,s.push(l))}),t.set(l,d)});let a=0;return e.forEach(c=>lZ(c,o[a++])),s}function uZ(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=e.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&e.get(c).push(a)}),e}function ga(t,n){t.classList?.add(n)}function Zp(t,n){t.classList?.remove(n)}function mHe(t,n,e){su(e).onDone(()=>t.processLeaveNode(n))}function hZ(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class vv{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new dHe(n.body,e,i,r),this._timelineEngine=new nHe(n.body,e,i),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],d=bO(this._driver,o,c,[]);if(c.length)throw function oze(t,n){return new le(3404,!1)}();a=function Zze(t,n,e){return new Jze(t,n,e)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=$Y(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=$Y(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class yv{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=yv.initialStylesByElement.get(n);r||yv.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Oc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oc(this._element,this._initialStyles),this._endStyles&&(Oc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(yv.initialStylesByElement.delete(this._element),this._startStyles&&(qh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qh(this._element,this._endStyles),this._endStyles=null),Oc(this._element,this._initialStyles),this._state=3)}}function DO(t){let n=null;return t.forEach((e,i)=>{(function bHe(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class mZ{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:_O(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class pZ{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return WY(n,e)}getParentElement(n){return cO(n)}query(n,e,i){return qY(n,e,i)}computeStyle(n,e,i){return _O(n,e)}animate(n,e,i,r,o,s=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=s.filter(f=>f instanceof mZ);(function Ize(t,n){return 0===t||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function Eze(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(f=>new Map(f));u=function Aze(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,_O(t,a)))}}return n}(n,u,l);const h=function _He(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=DO(n[0]),n.length>1&&(i=DO(n[n.length-1]))):n instanceof Map&&(e=DO(n)),e||i?new yv(t,e,i):null}(n,u);return new mZ(n,u,c,h)}}const gZ="@.disabled";class _Z{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==gZ?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class vHe extends _Z{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==gZ?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function yHe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function xHe(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}class wHe{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{const s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(n,e){const r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const l=this._rendererCache;let d=l.get(r);return d||(d=new _Z("",r,this.engine,()=>l.delete(r)),l.set(r,d)),d}const o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,n,l.name,l)};return e.data.animation.forEach(a),new vHe(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let kHe=(()=>{class t extends vv{constructor(e,i,r){super(e,i,r,he(By,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(xt),Y(dO),Y(uO))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const bZ=[{provide:uO,useFactory:function CHe(){return new ZY}},{provide:vv,useClass:kHe},{provide:rS,useFactory:function THe(t,n,e){return new wHe(t,n,e)},deps:[jD,vv,Be]}],IO=[{provide:dO,useFactory:()=>new pZ},{provide:pi,useValue:"BrowserAnimations"},...bZ],vZ=[{provide:dO,useClass:lO},{provide:pi,useValue:"NoopAnimations"},...bZ];let EHe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?vZ:IO}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({providers:IO,imports:[n6]})}return t})(),SHe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Ft]})}return t})(),i7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[QI,ac,Ft,Im,M9,SHe]})}return t})(),f7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=yt({imports:[Ft,Im]})}return t})();Gm("firebase","10.9.0","app"),yj({apiKey:"AIzaSyAFjiIuMBA1IpTrw__WdkQiK5PKht4_go8",authDomain:"snoguess-e4d1c.firebaseapp.com",projectId:"snoguess-e4d1c",storageBucket:"snoguess-e4d1c.appspot.com",messagingSenderId:"289449411190",appId:"1:289449411190:web:49ff68411f9e5148f11557"});let g7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t,bootstrap:[L9e]});static#n=this.\u0275inj=yt({imports:[wge,n6,owe,UPe,EHe,v1e,b9e,H9,obe,vbe,Q0e,ZCe,c1,Gye,Tbe,Yye,Yve,nwe,Rbe,nve,xwe,Y2,Rwe,zwe,X1e,oke,P1e,bke,i7e,pCe,Y2,S9e,f7e]})}return t})();Ehe().bootstrapModule(g7e).catch(t=>console.error(t))},867:(Ur,Yh,mo)=>{const Lc=mo(293).a,me=mo(687).array;Ur.exports=class eg{constructor(si={}){Object.assign(this,{list:si.emptyList&&[]||Array.prototype.concat.apply(Lc,[me,si.list||[]]),exclude:si.exclude||[],splitRegex:si.splitRegex||/\b/,placeHolder:si.placeHolder||"*",regex:si.regex||/[^a-zA-Z0-9|\$|\@]|\^/g,replaceRegex:si.replaceRegex||/\w/g})}isProfane(si){return this.list.filter(ji=>{const cr=new RegExp(`\\b${ji.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(ji.toLowerCase())&&cr.test(si)}).length>0||!1}replaceWord(si){return si.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(si){return si.split(this.splitRegex).map(ji=>this.isProfane(ji)?this.replaceWord(ji):ji).join(this.splitRegex.exec(si)[0])}addWords(){let si=Array.from(arguments);this.list.push(...si),si.map(ji=>ji.toLowerCase()).forEach(ji=>{this.exclude.includes(ji)&&this.exclude.splice(this.exclude.indexOf(ji),1)})}removeWords(){this.exclude.push(...Array.from(arguments).map(si=>si.toLowerCase()))}}},402:Ur=>{Ur.exports=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","twat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"]},687:(Ur,Yh,mo)=>{Ur.exports={object:mo(424),array:mo(402),regex:mo(658)}},424:Ur=>{Ur.exports={"4r5e":1,"5h1t":1,"5hit":1,a55:1,anal:1,anus:1,ar5e:1,arrse:1,arse:1,ass:1,"ass-fucker":1,asses:1,assfucker:1,assfukka:1,asshole:1,assholes:1,asswhole:1,a_s_s:1,"b!tch":1,b00bs:1,b17ch:1,b1tch:1,ballbag:1,balls:1,ballsack:1,bastard:1,beastial:1,beastiality:1,bellend:1,bestial:1,bestiality:1,"bi+ch":1,biatch:1,bitch:1,bitcher:1,bitchers:1,bitches:1,bitchin:1,bitching:1,bloody:1,"blow job":1,blowjob:1,blowjobs:1,boiolas:1,bollock:1,bollok:1,boner:1,boob:1,boobs:1,booobs:1,boooobs:1,booooobs:1,booooooobs:1,breasts:1,buceta:1,bugger:1,bum:1,"bunny fucker":1,butt:1,butthole:1,buttmuch:1,buttplug:1,c0ck:1,c0cksucker:1,"carpet muncher":1,cawk:1,chink:1,cipa:1,cl1t:1,clit:1,clitoris:1,clits:1,cnut:1,cock:1,"cock-sucker":1,cockface:1,cockhead:1,cockmunch:1,cockmuncher:1,cocks:1,cocksuck:1,cocksucked:1,cocksucker:1,cocksucking:1,cocksucks:1,cocksuka:1,cocksukka:1,cok:1,cokmuncher:1,coksucka:1,coon:1,cox:1,crap:1,cum:1,cummer:1,cumming:1,cums:1,cumshot:1,cunilingus:1,cunillingus:1,cunnilingus:1,cunt:1,cuntlick:1,cuntlicker:1,cuntlicking:1,cunts:1,cyalis:1,cyberfuc:1,cyberfuck:1,cyberfucked:1,cyberfucker:1,cyberfuckers:1,cyberfucking:1,d1ck:1,damn:1,dick:1,dickhead:1,dildo:1,dildos:1,dink:1,dinks:1,dirsa:1,dlck:1,"dog-fucker":1,doggin:1,dogging:1,donkeyribber:1,doosh:1,duche:1,dyke:1,ejaculate:1,ejaculated:1,ejaculates:1,ejaculating:1,ejaculatings:1,ejaculation:1,ejakulate:1,"f u c k":1,"f u c k e r":1,f4nny:1,fag:1,fagging:1,faggitt:1,faggot:1,faggs:1,fagot:1,fagots:1,fags:1,fanny:1,fannyflaps:1,fannyfucker:1,fanyy:1,fatass:1,fcuk:1,fcuker:1,fcuking:1,feck:1,fecker:1,felching:1,fellate:1,fellatio:1,fingerfuck:1,fingerfucked:1,fingerfucker:1,fingerfuckers:1,fingerfucking:1,fingerfucks:1,fistfuck:1,fistfucked:1,fistfucker:1,fistfuckers:1,fistfucking:1,fistfuckings:1,fistfucks:1,flange:1,fook:1,fooker:1,fuck:1,fucka:1,fucked:1,fucker:1,fuckers:1,fuckhead:1,fuckheads:1,fuckin:1,fucking:1,fuckings:1,fuckingshitmotherfucker:1,fuckme:1,fucks:1,fuckwhit:1,fuckwit:1,"fudge packer":1,fudgepacker:1,fuk:1,fuker:1,fukker:1,fukkin:1,fuks:1,fukwhit:1,fukwit:1,fux:1,fux0r:1,f_u_c_k:1,gangbang:1,gangbanged:1,gangbangs:1,gaylord:1,gaysex:1,goatse:1,God:1,"god-dam":1,"god-damned":1,goddamn:1,goddamned:1,hardcoresex:1,hell:1,heshe:1,hoar:1,hoare:1,hoer:1,homo:1,hore:1,horniest:1,horny:1,hotsex:1,"jack-off":1,jackoff:1,jap:1,"jerk-off":1,jism:1,jiz:1,jizm:1,jizz:1,kawk:1,knob:1,knobead:1,knobed:1,knobend:1,knobhead:1,knobjocky:1,knobjokey:1,kock:1,kondum:1,kondums:1,kum:1,kummer:1,kumming:1,kums:1,kunilingus:1,"l3i+ch":1,l3itch:1,labia:1,lust:1,lusting:1,m0f0:1,m0fo:1,m45terbate:1,ma5terb8:1,ma5terbate:1,masochist:1,"master-bate":1,masterb8:1,"masterbat*":1,masterbat3:1,masterbate:1,masterbation:1,masterbations:1,masturbate:1,"mo-fo":1,mof0:1,mofo:1,mothafuck:1,mothafucka:1,mothafuckas:1,mothafuckaz:1,mothafucked:1,mothafucker:1,mothafuckers:1,mothafuckin:1,mothafucking:1,mothafuckings:1,mothafucks:1,"mother fucker":1,motherfuck:1,motherfucked:1,motherfucker:1,motherfuckers:1,motherfuckin:1,motherfucking:1,motherfuckings:1,motherfuckka:1,motherfucks:1,muff:1,mutha:1,muthafecker:1,muthafuckker:1,muther:1,mutherfucker:1,n1gga:1,n1gger:1,nazi:1,nigg3r:1,nigg4h:1,nigga:1,niggah:1,niggas:1,niggaz:1,nigger:1,niggers:1,nob:1,"nob jokey":1,nobhead:1,nobjocky:1,nobjokey:1,numbnuts:1,nutsack:1,orgasim:1,orgasims:1,orgasm:1,orgasms:1,p0rn:1,pawn:1,pecker:1,penis:1,penisfucker:1,phonesex:1,phuck:1,phuk:1,phuked:1,phuking:1,phukked:1,phukking:1,phuks:1,phuq:1,pigfucker:1,pimpis:1,piss:1,pissed:1,pisser:1,pissers:1,pisses:1,pissflaps:1,pissin:1,pissing:1,pissoff:1,poop:1,porn:1,porno:1,pornography:1,pornos:1,prick:1,pricks:1,pron:1,pube:1,pusse:1,pussi:1,pussies:1,pussy:1,pussys:1,rectum:1,retard:1,rimjaw:1,rimming:1,"s hit":1,"s.o.b.":1,sadist:1,schlong:1,screwing:1,scroat:1,scrote:1,scrotum:1,semen:1,sex:1,"sh!+":1,"sh!t":1,sh1t:1,shag:1,shagger:1,shaggin:1,shagging:1,shemale:1,"shi+":1,shit:1,shitdick:1,shite:1,shited:1,shitey:1,shitfuck:1,shitfull:1,shithead:1,shiting:1,shitings:1,shits:1,shitted:1,shitter:1,shitters:1,shitting:1,shittings:1,shitty:1,skank:1,slut:1,sluts:1,smegma:1,smut:1,snatch:1,"son-of-a-bitch":1,spac:1,spunk:1,s_h_i_t:1,t1tt1e5:1,t1tties:1,teets:1,teez:1,testical:1,testicle:1,tit:1,titfuck:1,tits:1,titt:1,tittie5:1,tittiefucker:1,titties:1,tittyfuck:1,tittywank:1,titwank:1,tosser:1,turd:1,tw4t:1,twat:1,twathead:1,twatty:1,twunt:1,twunter:1,v14gra:1,v1gra:1,vagina:1,viagra:1,vulva:1,w00se:1,wang:1,wank:1,wanker:1,wanky:1,whoar:1,whore:1,willies:1,willy:1,xrated:1,xxx:1}},658:Ur=>{Ur.exports=/\b(4r5e|5h1t|5hit|a55|anal|anus|ar5e|arrse|arse|ass|ass-fucker|asses|assfucker|assfukka|asshole|assholes|asswhole|a_s_s|b!tch|b00bs|b17ch|b1tch|ballbag|balls|ballsack|bastard|beastial|beastiality|bellend|bestial|bestiality|bi\+ch|biatch|bitch|bitcher|bitchers|bitches|bitchin|bitching|bloody|blow job|blowjob|blowjobs|boiolas|bollock|bollok|boner|boob|boobs|booobs|boooobs|booooobs|booooooobs|breasts|buceta|bugger|bum|bunny fucker|butt|butthole|buttmuch|buttplug|c0ck|c0cksucker|carpet muncher|cawk|chink|cipa|cl1t|clit|clitoris|clits|cnut|cock|cock-sucker|cockface|cockhead|cockmunch|cockmuncher|cocks|cocksuck|cocksucked|cocksucker|cocksucking|cocksucks|cocksuka|cocksukka|cok|cokmuncher|coksucka|coon|cox|crap|cum|cummer|cumming|cums|cumshot|cunilingus|cunillingus|cunnilingus|cunt|cuntlick|cuntlicker|cuntlicking|cunts|cyalis|cyberfuc|cyberfuck|cyberfucked|cyberfucker|cyberfuckers|cyberfucking|d1ck|damn|dick|dickhead|dildo|dildos|dink|dinks|dirsa|dlck|dog-fucker|doggin|dogging|donkeyribber|doosh|duche|dyke|ejaculate|ejaculated|ejaculates|ejaculating|ejaculatings|ejaculation|ejakulate|f u c k|f u c k e r|f4nny|fag|fagging|faggitt|faggot|faggs|fagot|fagots|fags|fanny|fannyflaps|fannyfucker|fanyy|fatass|fcuk|fcuker|fcuking|feck|fecker|felching|fellate|fellatio|fingerfuck|fingerfucked|fingerfucker|fingerfuckers|fingerfucking|fingerfucks|fistfuck|fistfucked|fistfucker|fistfuckers|fistfucking|fistfuckings|fistfucks|flange|fook|fooker|fuck|fucka|fucked|fucker|fuckers|fuckhead|fuckheads|fuckin|fucking|fuckings|fuckingshitmotherfucker|fuckme|fucks|fuckwhit|fuckwit|fudge packer|fudgepacker|fuk|fuker|fukker|fukkin|fuks|fukwhit|fukwit|fux|fux0r|f_u_c_k|gangbang|gangbanged|gangbangs|gaylord|gaysex|goatse|God|god-dam|god-damned|goddamn|goddamned|hardcoresex|hell|heshe|hoar|hoare|hoer|homo|hore|horniest|horny|hotsex|jack-off|jackoff|jap|jerk-off|jism|jiz|jizm|jizz|kawk|knob|knobead|knobed|knobend|knobhead|knobjocky|knobjokey|kock|kondum|kondums|kum|kummer|kumming|kums|kunilingus|l3i\+ch|l3itch|labia|lust|lusting|m0f0|m0fo|m45terbate|ma5terb8|ma5terbate|masochist|master-bate|masterb8|masterbat*|masterbat3|masterbate|masterbation|masterbations|masturbate|mo-fo|mof0|mofo|mothafuck|mothafucka|mothafuckas|mothafuckaz|mothafucked|mothafucker|mothafuckers|mothafuckin|mothafucking|mothafuckings|mothafucks|mother fucker|motherfuck|motherfucked|motherfucker|motherfuckers|motherfuckin|motherfucking|motherfuckings|motherfuckka|motherfucks|muff|mutha|muthafecker|muthafuckker|muther|mutherfucker|n1gga|n1gger|nazi|nigg3r|nigg4h|nigga|niggah|niggas|niggaz|nigger|niggers|nob|nob jokey|nobhead|nobjocky|nobjokey|numbnuts|nutsack|orgasim|orgasims|orgasm|orgasms|p0rn|pawn|pecker|penis|penisfucker|phonesex|phuck|phuk|phuked|phuking|phukked|phukking|phuks|phuq|pigfucker|pimpis|piss|pissed|pisser|pissers|pisses|pissflaps|pissin|pissing|pissoff|poop|porn|porno|pornography|pornos|prick|pricks|pron|pube|pusse|pussi|pussies|pussy|pussys|rectum|retard|rimjaw|rimming|s hit|s.o.b.|sadist|schlong|screwing|scroat|scrote|scrotum|semen|sex|sh!\+|sh!t|sh1t|shag|shagger|shaggin|shagging|shemale|shi\+|shit|shitdick|shite|shited|shitey|shitfuck|shitfull|shithead|shiting|shitings|shits|shitted|shitter|shitters|shitting|shittings|shitty|skank|slut|sluts|smegma|smut|snatch|son-of-a-bitch|spac|spunk|s_h_i_t|t1tt1e5|t1tties|teets|teez|testical|testicle|tit|titfuck|tits|titt|tittie5|tittiefucker|titties|tittyfuck|tittywank|titwank|tosser|turd|tw4t|twat|twathead|twatty|twunt|twunter|v14gra|v1gra|vagina|viagra|vulva|w00se|wang|wank|wanker|wanky|whoar|whore|willies|willy|xrated|xxx)\b/gi},578:function(Ur,Yh){var mo,me;void 0!==(me="function"==typeof(mo=function(){"use strict";function hi(Fn,qn,Cs){var Qn=new XMLHttpRequest;Qn.open("GET",Fn),Qn.responseType="blob",Qn.onload=function(){cu(Qn.response,qn,Cs)},Qn.onerror=function(){console.error("could not download file")},Qn.send()}function si(Fn){var qn=new XMLHttpRequest;qn.open("HEAD",Fn,!1);try{qn.send()}catch{}return 200<=qn.status&&299>=qn.status}function ji(Fn){try{Fn.dispatchEvent(new MouseEvent("click"))}catch{var qn=document.createEvent("MouseEvents");qn.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Fn.dispatchEvent(qn)}}var cr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Gt=cr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),cu=cr.saveAs||("object"!=typeof window||window!==cr?function(){}:"download"in HTMLAnchorElement.prototype&&!Gt?function(Fn,qn,Cs){var Qn=cr.URL||cr.webkitURL,$o=document.createElement("a");$o.download=qn=qn||Fn.name||"download",$o.rel="noopener","string"==typeof Fn?($o.href=Fn,$o.origin===location.origin?ji($o):si($o.href)?hi(Fn,qn,Cs):ji($o,$o.target="_blank")):($o.href=Qn.createObjectURL(Fn),setTimeout(function(){Qn.revokeObjectURL($o.href)},4e4),setTimeout(function(){ji($o)},0))}:"msSaveOrOpenBlob"in navigator?function(Fn,qn,Cs){if(qn=qn||Fn.name||"download","string"!=typeof Fn)navigator.msSaveOrOpenBlob(function eg(Fn,qn){return typeof qn>"u"?qn={autoBom:!1}:"object"!=typeof qn&&(console.warn("Deprecated: Expected third argument to be a object"),qn={autoBom:!qn}),qn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Fn.type)?new Blob(["\ufeff",Fn],{type:Fn.type}):Fn}(Fn,Cs),qn);else if(si(Fn))hi(Fn,qn,Cs);else{var Qn=document.createElement("a");Qn.href=Fn,Qn.target="_blank",setTimeout(function(){ji(Qn)})}}:function(Fn,qn,Cs,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof Fn)return hi(Fn,qn,Cs);var $o="application/octet-stream"===Fn.type,Cv=/constructor/i.test(cr.HTMLElement)||cr.safari,tg=/CriOS\/[\d]+/.test(navigator.userAgent);if((tg||$o&&Cv||Gt)&&typeof FileReader<"u"){var Zh=new FileReader;Zh.onloadend=function(){var Vl=Zh.result;Vl=tg?Vl:Vl.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=Vl:location=Vl,Qn=null},Zh.readAsDataURL(Fn)}else{var ng=cr.URL||cr.webkitURL,Jh=ng.createObjectURL(Fn);Qn?Qn.location=Jh:location.href=Jh,Qn=null,setTimeout(function(){ng.revokeObjectURL(Jh)},4e4)}});cr.saveAs=cu.saveAs=cu,Ur.exports=cu})?mo.apply(Yh,[]):mo)&&(Ur.exports=me)},293:Ur=>{"use strict";Ur.exports=JSON.parse('{"a":["ahole","anus","ash0le","ash0les","asholes","ass","Ass Monkey","Assface","assh0le","assh0lez","asshole","assholes","assholz","asswipe","azzhole","bassterds","bastard","bastards","bastardz","basterds","basterdz","Biatch","bitch","bitches","Blow Job","boffing","butthole","buttwipe","c0ck","c0cks","c0k","Carpet Muncher","cawk","cawks","Clit","cnts","cntz","cock","cockhead","cock-head","cocks","CockSucker","cock-sucker","crap","cum","cunt","cunts","cuntz","dick","dild0","dild0s","dildo","dildos","dilld0","dilld0s","dominatricks","dominatrics","dominatrix","dyke","enema","f u c k","f u c k e r","fag","fag1t","faget","fagg1t","faggit","faggot","fagg0t","fagit","fags","fagz","faig","faigs","fart","flipping the bird","fuck","fucker","fuckin","fucking","fucks","Fudge Packer","fuk","Fukah","Fuken","fuker","Fukin","Fukk","Fukkah","Fukken","Fukker","Fukkin","g00k","God-damned","h00r","h0ar","h0re","hells","hoar","hoor","hoore","jackoff","jap","japs","jerk-off","jisim","jiss","jizm","jizz","knob","knobs","knobz","kunt","kunts","kuntz","Lezzian","Lipshits","Lipshitz","masochist","masokist","massterbait","masstrbait","masstrbate","masterbaiter","masterbate","masterbates","Motha Fucker","Motha Fuker","Motha Fukkah","Motha Fukker","Mother Fucker","Mother Fukah","Mother Fuker","Mother Fukkah","Mother Fukker","mother-fucker","Mutha Fucker","Mutha Fukah","Mutha Fuker","Mutha Fukkah","Mutha Fukker","n1gr","nastt","nigger;","nigur;","niiger;","niigr;","orafis","orgasim;","orgasm","orgasum","oriface","orifice","orifiss","packi","packie","packy","paki","pakie","paky","pecker","peeenus","peeenusss","peenus","peinus","pen1s","penas","penis","penis-breath","penus","penuus","Phuc","Phuck","Phuk","Phuker","Phukker","polac","polack","polak","Poonani","pr1c","pr1ck","pr1k","pusse","pussee","pussy","puuke","puuker","qweir","recktum","rectum","retard","sadist","scank","schlong","screwing","semen","sex","sexy","Sh!t","sh1t","sh1ter","sh1ts","sh1tter","sh1tz","shit","shits","shitter","Shitty","Shity","shitz","Shyt","Shyte","Shytty","Shyty","skanck","skank","skankee","skankey","skanks","Skanky","slag","slut","sluts","Slutty","slutz","son-of-a-bitch","tit","turd","va1jina","vag1na","vagiina","vagina","vaj1na","vajina","vullva","vulva","w0p","wh00r","wh0re","whore","xrated","xxx","b!+ch","bitch","blowjob","clit","arschloch","fuck","shit","ass","asshole","b!tch","b17ch","b1tch","bastard","bi+ch","boiolas","buceta","c0ck","cawk","chink","cipa","clits","cock","cum","cunt","dildo","dirsa","ejakulate","fatass","fcuk","fuk","fux0r","hoer","hore","jism","kawk","l3itch","l3i+ch","masturbate","masterbat*","masterbat3","motherfucker","s.o.b.","mofo","nazi","nigga","nigger","nutsack","phuck","pimpis","pusse","pussy","scrotum","sh!t","shemale","shi+","sh!+","slut","smut","teets","tits","boobs","b00bs","teez","testical","testicle","titt","w00se","jackoff","wank","whoar","whore","*damn","*dyke","*fuck*","*shit*","@$$","amcik","andskota","arse*","assrammer","ayir","bi7ch","bitch*","bollock*","breasts","butt-pirate","cabron","cazzo","chraa","chuj","Cock*","cunt*","d4mn","daygo","dego","dick*","dike*","dupa","dziwka","ejackulate","Ekrem*","Ekto","enculer","faen","fag*","fanculo","fanny","feces","feg","Felcher","ficken","fitt*","Flikker","foreskin","Fotze","Fu(*","fuk*","futkretzn","gook","guiena","h0r","h4x0r","hell","helvete","hoer*","honkey","Huevon","hui","injun","jizz","kanker*","kike","klootzak","kraut","knulle","kuk","kuksuger","Kurac","kurwa","kusi*","kyrpa*","lesbo","mamhoon","masturbat*","merd*","mibun","monkleigh","mouliewop","muie","mulkku","muschi","nazis","nepesaurio","nigger*","orospu","paska*","perse","picka","pierdol*","pillu*","pimmel","piss*","pizda","poontsee","poop","porn","p0rn","pr0n","preteen","pula","pule","puta","puto","qahbeh","queef*","rautenberg","schaffer","scheiss*","schlampe","schmuck","screw","sh!t*","sharmuta","sharmute","shipal","shiz","skribz","skurwysyn","sphencter","spic","spierdalaj","splooge","suka","b00b*","testicle*","titt*","twat","vittu","wank*","wetback*","wichser","wop*","yed","zabourah"]}')}},Ur=>{Ur(Ur.s=857)}]); \ No newline at end of file diff --git a/docs/styles.b0373a02df2a675f.css b/docs/styles.bd26200e00997c7d.css similarity index 94% rename from docs/styles.b0373a02df2a675f.css rename to docs/styles.bd26200e00997c7d.css index 5f3ab6f..b0c6ddb 100644 --- a/docs/styles.b0373a02df2a675f.css +++ b/docs/styles.bd26200e00997c7d.css @@ -1 +1 @@ -.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}html{--mat-ripple-color: rgba(0, 0, 0, .1);--mat-option-selected-state-label-text-color: #616161;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #0277bd;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #616161;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #616161;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #0277bd;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #0277bd;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px;--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54);--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #616161;--mdc-linear-progress-track-color: rgba(97, 97, 97, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #0277bd;--mdc-linear-progress-track-color: rgba(2, 119, 189, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px;--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff;--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px;--mdc-filled-text-field-caret-color: #616161;--mdc-filled-text-field-focus-active-indicator-color: #616161;--mdc-filled-text-field-focus-label-text-color: rgba(97, 97, 97, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #616161;--mdc-outlined-text-field-focus-outline-color: #616161;--mdc-outlined-text-field-focus-label-text-color: rgba(97, 97, 97, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(97, 97, 97, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #0277bd;--mdc-filled-text-field-focus-active-indicator-color: #0277bd;--mdc-filled-text-field-focus-label-text-color: rgba(2, 119, 189, .87);--mdc-outlined-text-field-caret-color: #0277bd;--mdc-outlined-text-field-focus-outline-color: #0277bd;--mdc-outlined-text-field-focus-label-text-color: rgba(2, 119, 189, .87);--mat-form-field-focus-select-arrow-color: rgba(2, 119, 189, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(97, 97, 97, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(2, 119, 189, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px);--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-autocomplete-background-color: white;--mdc-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mdc-dialog-container-shadow-color: #000;--mdc-dialog-container-shape: 4px;--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px;--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}.mat-mdc-standard-chip{--mdc-chip-container-shape-family: rounded;--mdc-chip-container-shape-radius: 16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family: rounded;--mdc-chip-with-avatar-avatar-shape-radius: 14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #616161;--mdc-chip-elevated-selected-container-color: #616161;--mdc-chip-elevated-disabled-container-color: #616161;--mdc-chip-flat-disabled-selected-container-color: #616161;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #0277bd;--mdc-chip-elevated-selected-container-color: #0277bd;--mdc-chip-elevated-disabled-container-color: #0277bd;--mdc-chip-flat-disabled-selected-container-color: #0277bd;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1;--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent;--mdc-switch-selected-focus-state-layer-color: #757575;--mdc-switch-selected-handle-color: #757575;--mdc-switch-selected-hover-state-layer-color: #757575;--mdc-switch-selected-pressed-state-layer-color: #757575;--mdc-switch-selected-focus-handle-color: #212121;--mdc-switch-selected-hover-handle-color: #212121;--mdc-switch-selected-pressed-handle-color: #212121;--mdc-switch-selected-focus-track-color: #e0e0e0;--mdc-switch-selected-hover-track-color: #e0e0e0;--mdc-switch-selected-pressed-track-color: #e0e0e0;--mdc-switch-selected-track-color: #e0e0e0;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color: black;--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #039be5;--mdc-switch-selected-handle-color: #039be5;--mdc-switch-selected-hover-state-layer-color: #039be5;--mdc-switch-selected-pressed-state-layer-color: #039be5;--mdc-switch-selected-focus-handle-color: #01579b;--mdc-switch-selected-hover-handle-color: #01579b;--mdc-switch-selected-pressed-handle-color: #01579b;--mdc-switch-selected-focus-track-color: #4fc3f7;--mdc-switch-selected-hover-track-color: #4fc3f7;--mdc-switch-selected-pressed-track-color: #4fc3f7;--mdc-switch-selected-track-color: #4fc3f7}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px;--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #616161;--mdc-radio-selected-hover-icon-color: #616161;--mdc-radio-selected-icon-color: #616161;--mdc-radio-selected-pressed-icon-color: #616161;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #616161;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #0277bd;--mdc-radio-selected-hover-icon-color: #0277bd;--mdc-radio-selected-icon-color: #0277bd;--mdc-radio-selected-pressed-icon-color: #0277bd;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #0277bd;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}html{--mdc-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block;--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%);--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-color: #616161;--mdc-slider-focus-handle-color: #616161;--mdc-slider-hover-handle-color: #616161;--mdc-slider-active-track-color: #616161;--mdc-slider-inactive-track-color: #616161;--mdc-slider-with-tick-marks-inactive-container-color: #616161;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-ripple-color: #616161;--mat-slider-hover-state-layer-color: rgba(97, 97, 97, .05);--mat-slider-focus-state-layer-color: rgba(97, 97, 97, .2);--mat-slider-value-indicator-opacity: .6}html .mat-accent{--mat-slider-ripple-color: #0277bd;--mat-slider-hover-state-layer-color: rgba(2, 119, 189, .05);--mat-slider-focus-state-layer-color: rgba(2, 119, 189, .2);--mdc-slider-handle-color: #0277bd;--mdc-slider-focus-handle-color: #0277bd;--mdc-slider-hover-handle-color: #0277bd;--mdc-slider-active-track-color: #0277bd;--mdc-slider-inactive-track-color: #0277bd;--mdc-slider-with-tick-marks-inactive-container-color: #0277bd;--mdc-slider-with-tick-marks-active-container-color: white}html .mat-warn{--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2);--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12);--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 0;--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #616161;--mdc-radio-selected-hover-icon-color: #616161;--mdc-radio-selected-icon-color: #616161;--mdc-radio-selected-pressed-icon-color: #616161}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #0277bd;--mdc-radio-selected-hover-icon-color: #0277bd;--mdc-radio-selected-icon-color: #0277bd;--mdc-radio-selected-pressed-icon-color: #0277bd}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #616161;--mdc-checkbox-selected-hover-icon-color: #616161;--mdc-checkbox-selected-icon-color: #616161;--mdc-checkbox-selected-pressed-icon-color: #616161;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #616161;--mdc-checkbox-selected-hover-state-layer-color: #616161;--mdc-checkbox-selected-pressed-state-layer-color: #616161;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #0277bd;--mdc-checkbox-selected-hover-icon-color: #0277bd;--mdc-checkbox-selected-icon-color: #0277bd;--mdc-checkbox-selected-pressed-icon-color: #0277bd;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #0277bd;--mdc-checkbox-selected-hover-state-layer-color: #0277bd;--mdc-checkbox-selected-pressed-state-layer-color: #0277bd;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#616161}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px;--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12);--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mdc-secondary-navigation-tab-container-height: 48px;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #616161;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #616161;--mat-tab-header-active-ripple-color: #616161;--mat-tab-header-inactive-ripple-color: #616161;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #616161;--mat-tab-header-active-hover-label-text-color: #616161;--mat-tab-header-active-focus-indicator-color: #616161;--mat-tab-header-active-hover-indicator-color: #616161}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #0277bd;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #0277bd;--mat-tab-header-active-ripple-color: #0277bd;--mat-tab-header-inactive-ripple-color: #0277bd;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #0277bd;--mat-tab-header-active-hover-label-text-color: #0277bd;--mat-tab-header-active-focus-indicator-color: #0277bd;--mat-tab-header-active-hover-indicator-color: #0277bd}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #616161;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #0277bd;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height: 48px}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16;--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #0277bd;--mdc-checkbox-selected-hover-icon-color: #0277bd;--mdc-checkbox-selected-icon-color: #0277bd;--mdc-checkbox-selected-pressed-icon-color: #0277bd;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #0277bd;--mdc-checkbox-selected-hover-state-layer-color: #0277bd;--mdc-checkbox-selected-pressed-state-layer-color: #0277bd;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-checkbox{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #616161;--mdc-checkbox-selected-hover-icon-color: #616161;--mdc-checkbox-selected-icon-color: #616161;--mdc-checkbox-selected-pressed-icon-color: #616161;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #616161;--mdc-checkbox-selected-hover-state-layer-color: #616161;--mdc-checkbox-selected-pressed-state-layer-color: #616161;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block;--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-keep-touch-target: false;--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px;--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-protected-button-container-shadow-color: #000;--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #616161;--mat-text-button-state-layer-color: #616161;--mat-text-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #0277bd;--mat-text-button-state-layer-color: #0277bd;--mat-text-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #616161;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #0277bd;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #616161;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #0277bd;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #616161;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #616161;--mat-outlined-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #0277bd;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #0277bd;--mat-outlined-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block;--mdc-icon-button-icon-size: 24px;--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #616161;--mat-icon-button-state-layer-color: #616161;--mat-icon-button-ripple-color: rgba(97, 97, 97, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #0277bd;--mat-icon-button-state-layer-color: #0277bd;--mat-icon-button-ripple-color: rgba(2, 119, 189, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape: 50%;--mdc-fab-icon-size: 24px;--mdc-fab-small-container-shape: 50%;--mdc-fab-small-icon-size: 24px;--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-fab-container-color: white;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-container-shadow-color: #000;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-fab-small-container-color: white;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shadow-color: #000;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-shadow-color: #000}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #616161;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #0277bd;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #616161;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #0277bd;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display: block;--mat-fab-small-touch-target-display: block;--mdc-snackbar-container-shape: 4px;--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #0277bd;--mat-table-row-item-outline-width: 1px;--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12);--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px;--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px;--mdc-circular-progress-active-indicator-color: #616161}html .mat-accent{--mdc-circular-progress-active-indicator-color: #0277bd}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0;--mat-badge-background-color: #616161;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color: #0277bd;--mat-badge-text-color: white}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-bottom-sheet-container-shape: 4px;--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white;--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12;--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0;--mat-standard-button-toggle-height: 48px;--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #616161;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(97, 97, 97, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(97, 97, 97, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(97, 97, 97, .3);--mat-datepicker-toggle-active-state-icon-color: #616161;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(97, 97, 97, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #0277bd;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(2, 119, 189, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(2, 119, 189, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(2, 119, 189, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(2, 119, 189, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #0277bd}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-divider-width: 1px;--mat-divider-color: rgba(0, 0, 0, .12);--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none;--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54);--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px;--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #616161}.mat-icon.mat-accent{--mat-icon-color: #0277bd}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto;--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6);--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #616161;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #616161;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #616161;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #0277bd;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #0277bd;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #0277bd;--mat-stepper-header-edit-state-icon-foreground-color: white}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px;--mat-sort-arrow-color: #757575;--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #616161;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #0277bd;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px;--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87);--mat-tree-node-min-height: 48px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}h1{font-size:1.5rem;line-height:2rem;margin-bottom:1.5rem;font-weight:700}h2{font-size:1.25rem;line-height:1.75rem;margin-bottom:1.5rem;font-weight:700}h3{font-size:1.125rem;line-height:1.75rem;margin-bottom:1.5rem;font-weight:700}h4{font-size:1rem;line-height:1.5rem;margin-bottom:1.5rem;font-weight:700}a{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}a:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-bottom-3{bottom:-.75rem}.right-5{right:1.25rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-8{margin-bottom:2rem}.ml-4{margin-left:1rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-48{margin-top:12rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-2\/3{width:66.666667%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.flex-grow,.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.whitespace-nowrap{white-space:nowrap}.text-pretty{text-wrap:pretty}.rounded-3xl{border-radius:1.5rem}.border-2{border-width:2px}.border-4{border-width:4px}.border-solid{border-style:solid}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-500{--tw-gradient-to: #6b7280 var(--tw-gradient-to-position)}.p-4{padding:1rem}.p-8{padding:2rem}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-12{padding-left:3rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.hover\:from-black:hover{--tw-gradient-from: #000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-blue-500:hover{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)} +.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}html{--mat-ripple-color: rgba(0, 0, 0, .1);--mat-option-selected-state-label-text-color: #616161;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #0277bd;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #616161;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #616161;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #0277bd;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #0277bd;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px;--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54);--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #616161;--mdc-linear-progress-track-color: rgba(97, 97, 97, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #0277bd;--mdc-linear-progress-track-color: rgba(2, 119, 189, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px;--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff;--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px;--mdc-filled-text-field-caret-color: #616161;--mdc-filled-text-field-focus-active-indicator-color: #616161;--mdc-filled-text-field-focus-label-text-color: rgba(97, 97, 97, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #616161;--mdc-outlined-text-field-focus-outline-color: #616161;--mdc-outlined-text-field-focus-label-text-color: rgba(97, 97, 97, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(97, 97, 97, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #0277bd;--mdc-filled-text-field-focus-active-indicator-color: #0277bd;--mdc-filled-text-field-focus-label-text-color: rgba(2, 119, 189, .87);--mdc-outlined-text-field-caret-color: #0277bd;--mdc-outlined-text-field-focus-outline-color: #0277bd;--mdc-outlined-text-field-focus-label-text-color: rgba(2, 119, 189, .87);--mat-form-field-focus-select-arrow-color: rgba(2, 119, 189, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(97, 97, 97, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(2, 119, 189, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px);--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-autocomplete-background-color: white;--mdc-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mdc-dialog-container-shadow-color: #000;--mdc-dialog-container-shape: 4px;--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px;--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}.mat-mdc-standard-chip{--mdc-chip-container-shape-family: rounded;--mdc-chip-container-shape-radius: 16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family: rounded;--mdc-chip-with-avatar-avatar-shape-radius: 14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #616161;--mdc-chip-elevated-selected-container-color: #616161;--mdc-chip-elevated-disabled-container-color: #616161;--mdc-chip-flat-disabled-selected-container-color: #616161;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #0277bd;--mdc-chip-elevated-selected-container-color: #0277bd;--mdc-chip-elevated-disabled-container-color: #0277bd;--mdc-chip-flat-disabled-selected-container-color: #0277bd;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1;--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent;--mdc-switch-selected-focus-state-layer-color: #757575;--mdc-switch-selected-handle-color: #757575;--mdc-switch-selected-hover-state-layer-color: #757575;--mdc-switch-selected-pressed-state-layer-color: #757575;--mdc-switch-selected-focus-handle-color: #212121;--mdc-switch-selected-hover-handle-color: #212121;--mdc-switch-selected-pressed-handle-color: #212121;--mdc-switch-selected-focus-track-color: #e0e0e0;--mdc-switch-selected-hover-track-color: #e0e0e0;--mdc-switch-selected-pressed-track-color: #e0e0e0;--mdc-switch-selected-track-color: #e0e0e0;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color: black;--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #039be5;--mdc-switch-selected-handle-color: #039be5;--mdc-switch-selected-hover-state-layer-color: #039be5;--mdc-switch-selected-pressed-state-layer-color: #039be5;--mdc-switch-selected-focus-handle-color: #01579b;--mdc-switch-selected-hover-handle-color: #01579b;--mdc-switch-selected-pressed-handle-color: #01579b;--mdc-switch-selected-focus-track-color: #4fc3f7;--mdc-switch-selected-hover-track-color: #4fc3f7;--mdc-switch-selected-pressed-track-color: #4fc3f7;--mdc-switch-selected-track-color: #4fc3f7}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px;--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #616161;--mdc-radio-selected-hover-icon-color: #616161;--mdc-radio-selected-icon-color: #616161;--mdc-radio-selected-pressed-icon-color: #616161;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #616161;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #0277bd;--mdc-radio-selected-hover-icon-color: #0277bd;--mdc-radio-selected-icon-color: #0277bd;--mdc-radio-selected-pressed-icon-color: #0277bd;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #0277bd;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}html{--mdc-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block;--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%);--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-color: #616161;--mdc-slider-focus-handle-color: #616161;--mdc-slider-hover-handle-color: #616161;--mdc-slider-active-track-color: #616161;--mdc-slider-inactive-track-color: #616161;--mdc-slider-with-tick-marks-inactive-container-color: #616161;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-ripple-color: #616161;--mat-slider-hover-state-layer-color: rgba(97, 97, 97, .05);--mat-slider-focus-state-layer-color: rgba(97, 97, 97, .2);--mat-slider-value-indicator-opacity: .6}html .mat-accent{--mat-slider-ripple-color: #0277bd;--mat-slider-hover-state-layer-color: rgba(2, 119, 189, .05);--mat-slider-focus-state-layer-color: rgba(2, 119, 189, .2);--mdc-slider-handle-color: #0277bd;--mdc-slider-focus-handle-color: #0277bd;--mdc-slider-hover-handle-color: #0277bd;--mdc-slider-active-track-color: #0277bd;--mdc-slider-inactive-track-color: #0277bd;--mdc-slider-with-tick-marks-inactive-container-color: #0277bd;--mdc-slider-with-tick-marks-active-container-color: white}html .mat-warn{--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2);--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12);--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 0;--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #616161;--mdc-radio-selected-hover-icon-color: #616161;--mdc-radio-selected-icon-color: #616161;--mdc-radio-selected-pressed-icon-color: #616161}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #0277bd;--mdc-radio-selected-hover-icon-color: #0277bd;--mdc-radio-selected-icon-color: #0277bd;--mdc-radio-selected-pressed-icon-color: #0277bd}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #616161;--mdc-checkbox-selected-hover-icon-color: #616161;--mdc-checkbox-selected-icon-color: #616161;--mdc-checkbox-selected-pressed-icon-color: #616161;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #616161;--mdc-checkbox-selected-hover-state-layer-color: #616161;--mdc-checkbox-selected-pressed-state-layer-color: #616161;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #0277bd;--mdc-checkbox-selected-hover-icon-color: #0277bd;--mdc-checkbox-selected-icon-color: #0277bd;--mdc-checkbox-selected-pressed-icon-color: #0277bd;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #0277bd;--mdc-checkbox-selected-hover-state-layer-color: #0277bd;--mdc-checkbox-selected-pressed-state-layer-color: #0277bd;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#616161}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px;--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12);--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mdc-secondary-navigation-tab-container-height: 48px;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #616161;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #616161;--mat-tab-header-active-ripple-color: #616161;--mat-tab-header-inactive-ripple-color: #616161;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #616161;--mat-tab-header-active-hover-label-text-color: #616161;--mat-tab-header-active-focus-indicator-color: #616161;--mat-tab-header-active-hover-indicator-color: #616161}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #0277bd;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #0277bd;--mat-tab-header-active-ripple-color: #0277bd;--mat-tab-header-inactive-ripple-color: #0277bd;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #0277bd;--mat-tab-header-active-hover-label-text-color: #0277bd;--mat-tab-header-active-focus-indicator-color: #0277bd;--mat-tab-header-active-hover-indicator-color: #0277bd}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #616161;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #0277bd;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height: 48px}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16;--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #0277bd;--mdc-checkbox-selected-hover-icon-color: #0277bd;--mdc-checkbox-selected-icon-color: #0277bd;--mdc-checkbox-selected-pressed-icon-color: #0277bd;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #0277bd;--mdc-checkbox-selected-hover-state-layer-color: #0277bd;--mdc-checkbox-selected-pressed-state-layer-color: #0277bd;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-checkbox{--mdc-form-field-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #616161;--mdc-checkbox-selected-hover-icon-color: #616161;--mdc-checkbox-selected-icon-color: #616161;--mdc-checkbox-selected-pressed-icon-color: #616161;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #616161;--mdc-checkbox-selected-hover-state-layer-color: #616161;--mdc-checkbox-selected-pressed-state-layer-color: #616161;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block;--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-keep-touch-target: false;--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px;--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-protected-button-container-shadow-color: #000;--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #616161;--mat-text-button-state-layer-color: #616161;--mat-text-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #0277bd;--mat-text-button-state-layer-color: #0277bd;--mat-text-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #616161;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #0277bd;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #616161;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #0277bd;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #616161;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #616161;--mat-outlined-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #0277bd;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #0277bd;--mat-outlined-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block;--mdc-icon-button-icon-size: 24px;--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #616161;--mat-icon-button-state-layer-color: #616161;--mat-icon-button-ripple-color: rgba(97, 97, 97, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #0277bd;--mat-icon-button-state-layer-color: #0277bd;--mat-icon-button-ripple-color: rgba(2, 119, 189, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape: 50%;--mdc-fab-icon-size: 24px;--mdc-fab-small-container-shape: 50%;--mdc-fab-small-icon-size: 24px;--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-fab-container-color: white;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-container-shadow-color: #000;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-fab-small-container-color: white;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shadow-color: #000;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-shadow-color: #000}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #616161;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #0277bd;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #616161;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #0277bd;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display: block;--mat-fab-small-touch-target-display: block;--mdc-snackbar-container-shape: 4px;--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #0277bd;--mat-table-row-item-outline-width: 1px;--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12);--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px;--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px;--mdc-circular-progress-active-indicator-color: #616161}html .mat-accent{--mdc-circular-progress-active-indicator-color: #0277bd}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0;--mat-badge-background-color: #616161;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color: #0277bd;--mat-badge-text-color: white}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-bottom-sheet-container-shape: 4px;--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white;--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12;--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0;--mat-standard-button-toggle-height: 48px;--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #616161;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(97, 97, 97, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(97, 97, 97, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(97, 97, 97, .3);--mat-datepicker-toggle-active-state-icon-color: #616161;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(97, 97, 97, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #0277bd;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(2, 119, 189, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(2, 119, 189, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(2, 119, 189, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(2, 119, 189, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #0277bd}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-divider-width: 1px;--mat-divider-color: rgba(0, 0, 0, .12);--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none;--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54);--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px;--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #616161}.mat-icon.mat-accent{--mat-icon-color: #0277bd}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto;--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6);--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #616161;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #616161;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #616161;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #0277bd;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #0277bd;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #0277bd;--mat-stepper-header-edit-state-icon-foreground-color: white}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px;--mat-sort-arrow-color: #757575;--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #616161;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #0277bd;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px;--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87);--mat-tree-node-min-height: 48px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}h1{font-size:1.5rem;line-height:2rem;margin-bottom:1.5rem;font-weight:700}h2{font-size:1.25rem;line-height:1.75rem;margin-bottom:1.5rem;font-weight:700}h3{font-size:1.125rem;line-height:1.75rem;margin-bottom:1.5rem;font-weight:700}h4{font-size:1rem;line-height:1.5rem;margin-bottom:1.5rem;font-weight:700}a{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}a:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.-bottom-3{bottom:-.75rem}.right-5{right:1.25rem}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-48{margin-bottom:12rem}.mb-8{margin-bottom:2rem}.ml-4{margin-left:1rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-48{margin-top:12rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.min-h-\[500px\]{min-height:500px}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-2\/3{width:66.666667%}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.flex-none{flex:none}.flex-grow,.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.whitespace-nowrap{white-space:nowrap}.text-pretty{text-wrap:pretty}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.border-2{border-width:2px}.border-4{border-width:4px}.border-solid{border-style:solid}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity))}.bg-transparent{background-color:transparent}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-500{--tw-gradient-to: #6b7280 var(--tw-gradient-to-position)}.p-4{padding:1rem}.p-8{padding:2rem}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-12{padding-left:3rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.hover\:from-black:hover{--tw-gradient-from: #000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-blue-500:hover{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)} diff --git a/src/app/questionnaires/questionnaire-history/questionnaire-history.component.ts b/src/app/questionnaires/questionnaire-history/questionnaire-history.component.ts index e761ffe..dfde09c 100644 --- a/src/app/questionnaires/questionnaire-history/questionnaire-history.component.ts +++ b/src/app/questionnaires/questionnaire-history/questionnaire-history.component.ts @@ -61,11 +61,16 @@ export class QuestionnaireHistoryComponent implements OnInit, OnChanges { } if (this.questionnaire) { this.loading = true; - this.fhirService.getQuestionnaireHistory(this.questionnaire.id).subscribe((bundle: any) => { - this.versions = bundle.entry.map((entry: any) => entry.resource); - this.dataSource.data = this.versions; - this.loading = false; - }); + this.fhirService.getQuestionnaireHistory(this.questionnaire.id).subscribe( + (bundle: any) => { + this.versions = bundle.entry.map((entry: any) => entry.resource); + this.dataSource.data = this.versions; + this.loading = false; + }, + (error: any) => { + this.loading = false; + } + ); } } diff --git a/src/app/questionnaires/questionnaires-main/questionnaires-main.component.html b/src/app/questionnaires/questionnaires-main/questionnaires-main.component.html index 781d2f8..27b6886 100644 --- a/src/app/questionnaires/questionnaires-main/questionnaires-main.component.html +++ b/src/app/questionnaires/questionnaires-main/questionnaires-main.component.html @@ -12,7 +12,34 @@

-

What do you want to do today?

+
+
+

Work with the Questionnaire Manager

+

Connect to a FHIR server to store and version your questionnaire resources. Use the integrated questionnaire manager, editor and validator.

+
+ + + + play_arrowReconnect to last FHIR Server + + + ( {{ selectedFhirServer }} as "{{ selectedUserTag }}" ) + +
+
+
+

Work with a single questionnaire

+

Create, preview or validate a questionnaire you upload from your computer.

+
+ + + +
+
+
+ + +
diff --git a/src/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json b/src/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json index 7f5e05b..42427f3 100644 --- a/src/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json +++ b/src/assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json @@ -1381,5 +1381,9 @@ "url": "http://snomed.info/fhir/cancer-synoptic-form/iccr-pancreatic", "title": "Carcinoma of the Exocrine Pancreas Histopathology Reporting Form", "status": "draft", - "description": "An FHIR Questionnaire implementation of the ICCR Exocrine pancreatic cancer form" + "description": "An FHIR Questionnaire implementation of the ICCR Exocrine pancreatic cancer form", + "meta": { + "versionId": "3", + "lastUpdated": "2024-05-06T18:24:30.652+00:00" + } } \ No newline at end of file